Feature/mx 1710 merged model zip

PR Context

Added

release script, creating merged-models. Merged models are written to a zip file, together with the content of the following directories: i18n, fields, vocabularies.

additional question regarding the readme: I changed some stuff in .cruft (model-update-v3), but it is not shown in the readme in model-update-v3. why is that?

@fdiehr the repo needs to run cruft update for those updates to take effect

can we include readme.md* and/or docs/index.md be as well?

hm, the full repo readme might be misleading though. because the zip doesn't include any docs or installable code for example.
we could however think about creating an extra readme just for this purpose, maybe also including the LICENSE? 🤔

concerning the linking of entities via $ref: @cutoffthetop said something about the identifier or the reference to the identifier is not exactly correct ? (not sure if it was the issue addressed in the comment above...)

they are correct in this zip for the merged items, yes. they are not exactly correct in the original model though. since the refs don't distinguish between extracted and merged

can we include readme.md* and/or docs/index.md be as well?

hm, the full repo readme might be misleading though. because the zip doesn't include any docs or installable code for example. we could however think about creating an extra readme just for this purpose, maybe also including the LICENSE? 🤔

I think that's a good idea!

I added

the extention folder in 4de37b1c5584dc8bcc19e2cb2556d0e0433b2b18
a custom README and the LICENSE in 78d732355d9043b6986a488e24c7ac1b212f2d86


Database Driver

Hello,
I'm interested in extending your package to be able to support or even add in the ability to use a database driver for manifest data .. (instead of the local .json store) can I get a very basic idea how to do this (what do i need to implement or extend and how to register it), I want to use Eloquent Module model .. just having a hard time understanding how i can implement this considering your current code base doesn't support this natively.

This is something I'm planning on implementing at some point. Discussed also in  #171

i'm working on at-least extending it in my project to include persisting to the database.
example:
class ModuleRepository extends Repository
{

    public function scan()
    {
        $modules = parent::scan();

        foreach ($modules as $key => $module) {
            $find = Module::where('name', $module->name)->get();

            if ($find->isEmpty()) {
                Module::create([
                    'name' => $module->name,
                    'alias' => $module->get('alias'),
                    'description' => $module->get('description')
                ]);
            }
        }

        return $modules;
    }

...

temporarily could add in the code base to check config options for example:

'database' => [
    'enabled' => true,

    // the model to use for CRUD operations (ideally Eloquent Model)
    'model' => \App\Module::class, // used for the data layer

    // a custom repository that abides by the `RepositoryInterface` contract
    'repository' => \App\Repositories\ModuleRepository::class
],

or something to that effect ...
That IMO would at least be a good start.
Issues I am noticing with the current code base:

No abstract BaseRepository class
Separate Drivers examples LocalRepository extends BaseRepository and EloquentRepository extends BaseRepository
Your Repository class is tightly coupled with the Module class (consider DI for this, or from the above config example)

I will be forking the repository and will contribute PR's as much as possible. I would like to keep this discussion open. Mark as enhancement ?
Thanks in advance

Hm multiple issues with this. There is no need to loop over modules and creating them in DB, as they will be created when they're generated. Something like this could be considered with a console command to move over existing modules to the DB.
I also wouldn't make the interface configurable, when if someone customises it with new methods ? All implementations would break.
There's a lot to take into account for this feature, with a little bit of patience, I'll get to it. 😄

Interesting idea on the console command ...
And as for the interface being configurable, sorry not sure where the confusion is with this, i don't see where i mentioned this ?

I'll close this so we don't have a duplicate with #171


Uncaught TypeError: undefined is not a function

[Enter steps to reproduce below:]

...
...

Atom Version: 0.194.0 :warning: in 1.0 API Preview Mode :warning:
System: Mac OS X 10.10.3
Thrown From: linter-flake8 package, v1.4.0
Stack Trace
Uncaught TypeError: undefined is not a function
At /Users/paltman/.atom/packages/linter-flake8/lib/linter-flake8.coffee:51

TypeError: undefined is not a function
  at LinterFlake8.destroy (/Users/paltman/.atom/packages/linter-flake8/lib/linter-flake8.coffee:51:17)
  at LinterView.remove (/Users/paltman/.atom/packages/linter/lib/linter-view.coffee:252:7)
  at /Users/paltman/.atom/packages/linter/lib/linter-view.coffee:124:8
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
  at TextEditor.module.exports.TextEditor.destroyed (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:279:27)
  at TextEditor.module.exports.Model.destroy (/Applications/Atom.app/Contents/Resources/app.asar/src/model.js:45:58)
  at Pane.module.exports.Pane.destroyItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:444:18)
  at Pane.module.exports.Pane.destroyActiveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:419:12)
  at Workspace.module.exports.Workspace.destroyActivePaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:582:35)
  at Workspace.module.exports.Workspace.destroyActivePaneItemOrEmptyPane (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:621:21)
  at atom-workspace.atom.commands.add.core:close (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace-element.js:307:30)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:238:29)
  at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:519:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:354:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:178:20)

Commands
  2x -1:19.2.0 core:backspace (atom-text-editor#linter-flake8.executableDir.editor.mini)
  5x -0:50.4.0 core:move-down (atom-text-editor.editor.is-focused)
  5x -0:48.7.0 core:move-up (atom-text-editor.editor.is-focused)
     -0:44.6.0 core:move-down (atom-text-editor.editor.is-focused)
     -0:43.1.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:41.2.0 core:move-up (atom-text-editor.editor.is-focused)
     -0:40.6.0 core:move-down (atom-text-editor.editor.is-focused)
     -0:39.2.0 core:move-up (atom-text-editor.editor.is-focused)
     -0:37.7.0 core:move-down (atom-text-editor.editor.is-focused)
     -0:26.8.0 core:save (atom-text-editor.editor)
  5x -0:19.7.0 core:backspace (atom-text-editor.editor)
     -0:18.7.0 core:save (atom-text-editor.editor)
     -0:17.2.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:16.8.0 core:save (atom-text-editor.editor.is-focused)
  2x -0:05.3.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)
     -0:00.8.0 core:close (atom-text-editor.editor.is-focused)

Config
{
  "core": {
    "projectHome": "/Users/paltman/Development",
    "ignoredNames": [
      ".git",
      ".DS_Store",
      "Thumbs.db",
      "*.pyc"
    ]
  },
  "linter-flake8": {
    "executableDir": "/usr/local/opt/pyenv/shims/"
  }
}

Installed Packages
# User
linter, v0.12.1
linter-flake8, v1.4.0
trailing-spaces, v0.2.5

# Dev
No dev packages

Hi, thanks for reporting - I'll have to fix it before June 1st :)

This was fixed by https://github.com/AtomLinter/linter-flake8/pull/38


Failed to import -<EMAIL_ADDRESS>due to missing node_buffer.js

Failing module

GitHub: https://github.com/mqttjs/MQTT.js
npm: https://www.npmjs.com/package/mqtt

import mqtt from "https://esm.sh/mqtt@4.3.7?target=es2022&pin=v99&bundle"

Error message
After onload I got this:
GET https://esm.sh/v99/node_buffer.js 404

Additional info

esm.sh version: v99
Browser version: Chrome 112.0.5615.49 (Official Build) (arm64)

mqtt depends on rfdc, which in turn depends on the node_buffer polyfill, which seems to have gone missing.

Guessing it might be related to this commit @ije

oh, sorry for the break change, just deployed a fix patch

https://esm.sh/v99/node_buffer.js -><EMAIL_ADDRESS>

https://esm.sh/v99/node_buffer.js -><EMAIL_ADDRESS>
they are same actually

Confirmed working again, thank you, @ije.


Perform rollback processing on ProducerFencedException when it is caused by the same thread

Affects Version(s): 2.3.6.RELASE
🎁 Enhancement
Scenario (using transactions and non batch listener) - (point 1-4 in attached log in the bottom):

Producer (clientId=producer-12) is created as there is partition assignment and transactional operation needs to be performed (ListenerConsumerRebalanceListener )
ListenerConsumerRebalanceListener fails on: Timeout expired after 30000milliseconds while awaiting InitProducerId
New producer is created (clientId=producer-13) and it also initialize transaction which calls InitProducerId
InitProducerId finished for both producers but it looks like there was a race condition as second producer got older epoch then first one: Producer (clientId=producer-12) for epoch 32 and producer (clientId=producer-13) got epoch 31 (see logs)
Currently used producer is producer-13 but it has old epoch so first transactional operation when processing record will be fenced:

currently as I am still using 2.3.1.RELEASE - producers are not closed when failing on transactions so it will just fail on every processed records but none of offsets will be commited - until there is restart or rebalance - this is not so bad
if I switch to 2.3.6 (which has closing fix https://github.com/spring-projects/spring-kafka/pull/1378) - then (I assume) when processing first record producer will be closed, but since rollback processing is not done for ProducerFencedException, record which was processed wont be processed again - another poll wont return it.

Is it possible to find out that producer is fenced by other producer created in the same thread?
For this case it would be good to do rollback to process the same records again or to send it to DLT since next poll will be able to fetch next record on partition.
Mar 3, 2020 @ 15:25:56.701	[Producer clientId=producer-12, transactionalId=some-processor.some.topic.event.0] ProducerId set to 18085 with epoch 32
Mar 3, 2020 @ 15:25:56.596	[Producer clientId=producer-12, transactionalId=some-processor.some.topic.event.0] Cluster ID: K3pyMpjRRHqd0goAdvtJ2Q
Mar 3, 2020 @ 15:25:56.202	[Producer clientId=producer-13, transactionalId=some-processor.some.topic.event.0] ProducerId set to 18085 with epoch 31
Mar 3, 2020 @ 15:25:56.097	[Producer clientId=producer-13, transactionalId=some-processor.some.topic.event.0] Cluster ID: K3pyMpjRRHqd0goAdvtJ2Q
Mar 3, 2020 @ 15:25:55.996	[Producer clientId=producer-13, transactionalId=some-processor.some.topic.event.0] ProducerId set to -1 with epoch -1
Mar 3, 2020 @ 15:25:55.994	[Producer clientId=producer-13, transactionalId=some-processor.some.topic.event.0] Overriding the default retries config to the recommended value of<PHONE_NUMBER> since the idempotent producer is enabled.
Mar 3, 2020 @ 15:25:55.993	ProducerConfig values:
Mar 3, 2020 @ 15:25:55.993	[Producer clientId=producer-13, transactionalId=some-processor.some.topic.event.0] Instantiated a transactional producer.
Mar 3, 2020 @ 15:25:55.974	[Consumer clientId=some-processor-0, groupId=some-processor] User provided listener org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer$ListenerConsumerRebalanceListener failed on partition assignment (org.springframework.transaction.CannotCreateTransactionException: Could not create Kafka transaction; nested exception is org.apache.kafka.common.errors.TimeoutException: Timeout expired after 30000milliseconds while awaiting InitProducerId)
Mar 3, 2020 @ 15:25:25.973	[Producer clientId=producer-12, transactionalId=some-processor.some.topic.event.0] ProducerId set to -1 with epoch -1
Mar 3, 2020 @ 15:25:25.972	[Producer clientId=producer-12, transactionalId=some-processor.some.topic.event.0] Overriding the default retries config to the recommended value of<PHONE_NUMBER> since the idempotent producer is enabled.
Mar 3, 2020 @ 15:25:25.971	ProducerConfig values:
Mar 3, 2020 @ 15:25:25.971	[Producer clientId=producer-12, transactionalId=some-processor.some.topic.event.0] Instantiated a transactional producer.

@bartosz-stasikowski-projectdrgn Interesting; as a work around, 2.3.6 also added the AssignmentCommitOption container property (https://github.com/spring-projects/spring-kafka/pull/1371).
If you set it to NEVER or LATEST_ONLY_NO_TX you can avoid creating a transactional producer during the rebalance.
	/**
	 * Set the assignment commit option. Default {@link AssignmentCommitOption#ALWAYS}.
	 * In a future release it will default to {@link AssignmentCommitOption#LATEST_ONLY}.
	 * @param assignmentCommitOption the option.
	 * @since 2.3.6
	 */
	public void setAssignmentCommitOption(AssignmentCommitOption assignmentCommitOption) {
		Assert.notNull(assignmentCommitOption, "'assignmentCommitOption' cannot be null");
		this.assignmentCommitOption = assignmentCommitOption;
	}

	public enum AssignmentCommitOption {

		/**
		 * Always commit the current offset during partition assignment.
		 */
		ALWAYS,

		/**
		 * Never commit the current offset during partition assignment.
		 */
		NEVER,

		/**
		 * Commit the current offset during partition assignment when auto.offset.reset is
		 * 'latest'; transactional if so configured.
		 */
		LATEST_ONLY,

		/**
		 * Commit the current offset during partition assignment when auto.offset.reset is
		 * 'latest'; use consumer commit even when transactions are being used.
		 */
		LATEST_ONLY_NO_TX

	}


Fonts are broken

Not sure why, or what's wrong, but they aren't working.

Nevermind, bug in 3rd party code.


Can't implement Index for Vector3 but works for Point3 since 0.13

I just upgraded my nalgebra 0.12 codebase to 0.14 and noticed that starting with 0.13 my build starts failing with this error:

error[E0210]: type parameter <nalgebra::DefaultAllocator as nalgebra::allocator::Allocator<f32, nalgebra::U3>>::Buffer must be used as the type parameter for some local type (e.g. MyStruct<T>); only traits defined in the current crate can be implemented for a type parameter

I have this:
#[derive(Debug, Copy, Clone, PartialEq)]
pub enum Axis {
    /// Index of the X axis.
    X = 0,

    /// Index of the Y axis.
    Y = 1,

    /// Index of the Z axis.
    Z = 2,
}

// This works:
impl Index<Axis> for Point3<f32> {
    type Output = f32;

    fn index(&self, axis: Axis) -> &f32 {
        match axis {
            Axis::X => &self.x,
            Axis::Y => &self.y,
            Axis::Z => &self.z,
        }
    }
}

// This now fails but used to work:
impl Index<Axis> for Vector3<f32> {
    type Output = f32;

    fn index(&self, axis: Axis) -> &f32 {
        match axis {
            Axis::X => &self.x,
            Axis::Y => &self.y,
            Axis::Z => &self.z,
        }
    }
}

Unfortunately, this seems to be a bug in the compiler. See https://github.com/rust-lang/rust/issues/46210. This used to work in the version 0.12 because the Vector3<f32> was an alias for: Matrix<f32, U3, U1, MatrixArray<f32, U3, U1>>. It no longer works now because the the last type parameter MatrixArray<f32, U3, U1> has been replaced by an associated type.
A work-around would be to implement Index<Axis> for Matrix<f32, U3, U1, MatrixArray<f32, U3, U1>>. I'll have to think more about it to see if there is an other way.


Explore SalesGenie vs Google API data

Create visualizations for the SalesGenie and Google API data.

SalesGenie data plots selected for shiny application


Clojure/Clojurescript images

yes please!
although clojurescript is unnecessary -- just use the node image. compiled cljs has no dependencies other than node.

This pull  #45 is awaiting review


Add support to show a old version banner

Description
Added support display a banner that notifies the user when the build belongs to an old major iso version.
Part of inmanta/infra-tickets#201
Self Check:

[x] Attached issue to pull request
[x] Changelog entry
[ ] Type annotations are present
[x] Code is clear and sufficiently documented
[ ] No (preventable) type errors (check using make mypy or make mypy-diff)
[ ] Sufficient test cases (reproduces the bug/tests the requested feature)
[x] Correct, in line with design
[x] End user documentation is included or an issue is created for end-user documentation (add ref to issue here: )
[ ] If this PR fixes a race condition in the test suite, also push the fix to the relevant stable branche(s) (see test-fixes for more info)

Processing this pull request

Merged into branches master in 9460b188d51a1371ea6166646378ceede8ad5937

Processing #7483.

Processing #7484.

Processing #7483.


Roll Flutter Engine from ea93c5d91b12 to 60c32c069bdf (1 revision)

https://github.com/flutter/engine/compare/ea93c5d91b12...60c32c069bdf
2024-04-01<EMAIL_ADDRESS>Roll Skia from 40c436a785fa to 0b0ed6ca101b (6 revisions) (flutter/engine#51823)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC jacksongardner@google.com,rmistry<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

AutoRoller is stopped; closing the active roll.


[third-party] Update SGX SDK to resolve DCAP issue

Description
teaclave-sgx-sdk PR #190
Type of change (select applied and DELETE the others)

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] API change with a documentation update
[ ] Additional test coverage
[x] Code cleanup or just sync with upstream third-party crates

How Has This Been Tested?
http://ci.mesalock-linux.org/dingelish/incubator-mesatee/44
Checklist (check ALL before submitting PR, even not applicable)

[x] Fork the repo and create your branch from master.
[x] If you've added code that should be tested, add tests.
[x] If you've changed APIs, update the documentation.
[x] Ensure the tests pass (see CI results).
[x] Make sure your code lints/format.

We may need to vender sgx_types/sgx_urts from github in crates-io submodule, instead of keep using the one from crates.io

CI passed


GTFS feed change following new website deployment

Hi,
Following a new website deployment, the GTFS feed for STO (Gatineau) has been changed. It would be necessary to update the feed.
The new feed is https://contenu.sto.ca/GTFS/GTFS.zip
The primary change is that the address is nos HTTPS instead of HTTP.
Could you please update the feed?
Thank you!

@rcoulombe Thanks for flagging this change! We will update the URL in our next round of feed updates.


Add LINK_CHECKER_API_SECRET_TOKEN to manuals-publisher

This PR adds the secret token env variable required for alphagov/manuals-publisher#1226

The secret has been added now.


Import SVG will give falsy values for Width & Height

Closing this as we are moving to https://github.com/boopathi/react-svg-loader


On injecting Class instances

Hi Yoichi. This isn't an issue, I just wanted to get your attention to see if you were able to answer this question on StackOverflow:
http://stackoverflow.com/questions/33010757/using-swinject-to-inject-a-model-class-instance-into-a-view-class-instance-in-sw

I answered to the question in StackOverflow. Thank you for asking the question there because a general question is more discoverable in StackOverflow than GitHub Issues.

Yoichi, thank you. I have made changes along the lines of your suggestion but I am still getting nowhere. I have edited the question to 1. make it clearer; and 2. include your suggestion, but I am still not succeeding. If possible, could you look again please and suggest changes? Thank you, JBM.

Updated my answer in StackOverflow. Also added Issue #12 to Swinject project. Thank you for asking the question. I can prioritize what new feature should be implemented next.

Thanks Yoichi, have managed to get my test project running, thank you for helping out, and thank you for being patient with my stupid, badly researched questions, very nice of you. It's also nice to have the first Swinject question on StackOverflow. As we both said, would be good to get an actual Swinject tag over there. JBM.

Swinject version 0.3 supports the implicit instantiation from "Main" storyboard.


Update main.in

Hi @Manthan03583, can you explain more about what you're attempting to do with this change? This file is not intended to be interpreted by Python.

Hi @Manthan03583, can you explain more about what you're attempting to do with this change? This file is not intended to be interpreted by Python.

I am just trying do this with python

Looks like this is trying to fix #8299, is that correct?

Documentation on adding new dependencies (which is effectively the same as declaring one explicitly) is available at https://warehouse.pypa.io/development/patterns/#adding-new-dependencies

Hi! yes this PR seems to be a fix of #8299. Do you need some help @Manthan03583

Looks like this is trying to fix #8299, is that correct?


ignore missing or too many barcodes in file name, but log them

We want to allow the handling of datasets that carry barcode identifiers in files or subfolders as opposed to the name. this moves responsibility away from the basic functionality of the dropboxhandler to its config and/or subsequent ETL scripts.

 Turn off barcode requirement in Dropboxhandler


Fixed up some compile issues

Fixes bunch of issues that prevented me from compiling the nativescript-4 branch

@vnen I changed some of the structs to classes because they were forward defined as classes with generate_bindings as well. Its not technically correct because I think they are still structs in Godot itself but it seems to work now without weird compiler and linker errors.

Thanks!


Explain development plan

Deployment plan (500-700 words - 5%)

[x] What are the steps required to deploy your project? (it is already briefly described here: https://github.com/maxxxxxdlp/eecs-448-pixelland/blob/main/documentation/README.md#production)
[x] Who is the potential market?
[ ] What will it cost to deploy it?

Example costs:

app store costs
costs to get your game on XBoxLive
costs to print disks for distribution
costs to buy domains
costs to attend conventions and conference and set up booths

Bulk description is finished; I should add more granularity/specific numbers to the cost section.
https://github.com/maxxxxxdlp/eecs-448-pixelland/commit/21ecaf9f17ef2435d5c3687533a1305b2cf2b21a

Finished in https://github.com/maxxxxxdlp/eecs-448-pixelland/commit/42a6f530fad512ff262eafc253ee8db42eff2361


Replace fetch to bible-api.com with the USFM data provider

This change is

lib/main.ts line 180 at r1 (raw file):

    const selector = this.#getSelector(verseRef);

    // Lookup the cached data first

Look up (as a verb) should be two words.


Implement "Disable BDPROCHOT"

Implements a similar feature found on ThrottleStop. Also, solves issue 163 (https://github.com/erpalma/throttled/issues/163)
This is my first PR for throttled, so I hope the code is in order.

Sorry for the late response.. I'm super busy at work lately!

Thank you, Francesco!
No worries!


[Feature] Allow links in a table to be opened in a new window

Summary
Links inside a table should be allowed to open in a new window instead of the same one.
Motivation
Users can open multiple links without worrying about navigating away from their app.

does cmd + click / right click + open not work here today?

@areyabhishek closing in favor of #1935


[PR] Fixing Codecov configuration fix

Description of change

Summary: Codecov configuration fix.

Codecov Report

Merging #54 into develop will increase coverage by 32.44%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##           develop      #54       +/-   ##
============================================
+ Coverage     6.92%   39.37%   +32.44%
============================================
  Files          165       25      -140
  Lines         6091      734     -5357
  Branches       344       61      -283
============================================
- Hits           422      289      -133
+ Misses        5649      425     -5224
  Partials        20       20


Master

What is the purpose of your pull request?

[ ] Bug fix
[ ] New feature

Proposed changes
Warning

Before submitting a pull request make sure you have:

[ ] Read the guidelines for contributing.
[ ] Wrote some tests.
[ ] Respected the PEP 8.

Coverage remained the same at 100.0% when pulling 2ef33fe498ea262cf81da1d8ffa9df63be50fcaf on mata62-ufba:master into c0fbdf8f086f538e02fc2d1ea01219b86b79e4cb on Fantomas42:master.

Coverage remained the same at 100.0% when pulling 2ef33fe498ea262cf81da1d8ffa9df63be50fcaf on mata62-ufba:master into c0fbdf8f086f538e02fc2d1ea01219b86b79e4cb on Fantomas42:master.

Coverage remained the same at 100.0% when pulling 2ef33fe498ea262cf81da1d8ffa9df63be50fcaf on mata62-ufba:master into c0fbdf8f086f538e02fc2d1ea01219b86b79e4cb on Fantomas42:master.


Create the examples directory

Currently, PR's have been submitted to add language specific examples (#4, #5, #8, #10), and probably more PRs will be submitted if you approve those. So, if you plan to approve it, you should create an examples directory to keep clean README. What do you think?

We will have more comprehensive documentation going up next week and will have some samples.  I don't want to bloat this repo with a bunch of different samples.

Yes, I agree completely. If we have basic API usage documentation, we don't need an example for each language.

@chrispat, It may be helpful to document an example:

using Docker, due to its specific, own cache management,
using cache and "jobs. <job_id> .needs" to separate build from testing performed in parallel (using "jobs.<job_id>.strategy").

@ad-m due to the way docker does its caching I don't think you would want to use this feature to cache docker layers.

In this case, the Docker cache issue in GitHub Actions remains open. Should this be an issue in this repository or in repository @actions/toolkit?

@ad-m I think it's fine to leave that in @actions/toolkit, as it's a general improvement to Docker actions. If the recommended step is to just cache before using every docker action, then that might be better if done by default.


Integration Test - Release - 2019/06/11 20:18:07

Auto create for integration test. IssueCommandFlow

@PRMergerTest2 : Thanks for your contribution! The author(s) have been notified to review your proposed change.


feat[charts]: revert tpl func on database url env.

Codecov Report

Merging #54 (0537a8d) into main (a102efe) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main      #54   +/-   ##
=========================================
  Coverage     95.10%   95.10%
  Complexity      431      431
=========================================
  Files            94       94
  Lines          1675     1675
=========================================
  Hits           1593     1593
  Misses           82       82

Flag
Coverage Δ

phpunit
95.10% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Continue to review full report at Codecov.

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


[docs] rewrite load docs

Superseedes #7087
Closes #7148
This rewrites the load docs in a way that is more grouped around use cases and problems you want to solve. It also adds API docs for the load functions.
While I was at it, I also added a link checker to check for broken links, which promptly found some outdated links which I also udpated.
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

[x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
[x] This message body should clearly illustrate what problems it solves.
[ ] Ideally, include a test that fails without this PR but passes with it.

Tests

[ ] Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

[x] If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. All changesets should be patch until SvelteKit 1.0

Cannot for the life of me figure out why this is failing to deploy. Builds fine locally

Ah, I tell a lie. Running build inside packages/kit to update the type definitions causes sites/kit.svelte.dev to fail to build

This is good stuff, but I can't shake the feeling that it doesn't belong in reference docs. It's a guide. Maybe we should move it to learn.svelte.dev?

For me learn.svelte.dev is the place for

the tutorial (even that I'm not 100% sure on from time to time)
recipes (how to write your own X)
guides (how to do auth)

For me this is not a guide in that sense.
What I envision for kit.svelte.dev to have is

API docs (the thing that's currently split up in types and modules, and which we probably should merge and enhance)
introductionary docs (later with some cross links to API docs, tutorial, guides) -> this is this rewrite

One thing that I noticed from lurking in the questions channel on Discord is that people have a hard time to understand how to actually use the parts we give them together, and this rewrite tries to answer that for the load function. API or pure reference docs can't solve that, the tutorial can't either because it does things piece by piece instead of giving an overview in one reading, which is why I think a middle ground between tutorial and API docs is needed. The routing docs for example do this nicely because they clearly show the use case and how things fit together. I tried something similar with these docs. Previously the pieces on that page were too disconnected to make sense of them as a whole.

Fair enough — in that case we should probably start thinking about what a better API section would look like.
I have some edits locally (since the GitHub UI is a bad place to make prose edits), will push them up tomorrow


[23.11] brave: 1.65.122 -> 1.66.110

https://community.brave.com/t/release-channel-1-66-110/548851
Description of changes
Manually backporting https://github.com/NixOS/nixpkgs/pull/312834

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Another Brave release with security patches came out today. Will open a new backport PR for the new one after it hits master.


Add MaxUploadBytes parameter

Fail fast on Content-Length header value, count for body in chunked when limit passed.
Failure state: current 413 Payload Too Large old 413 Request Entity Too Large
"The request is larger than the server is willing or able to process." RFC7231
.NET 4 - 4.6 default HttpRuntimeSection.MaxRequestLength 4MB
IIS default maxRequestEntityAllowed 200kB
or filtered default 28.6MB (returns 404.13 Content Length Too Large)
ngnix default client_max_body_size 1MB
apache.tomcat default maxPostSize 2MB
apache.httpd default LimitRequestBody unlimited
Will currently be enforced by reverse proxy config (e.g. IIS/nginx) when deployed in recommended configuration - but not in pure Kestrel deployment.

I think we should be careful when implementing this not to limit upgraded/websocket requests.

https://github.com/aspnet/KestrelHttpServer/issues/475

cc @blowdart

post-RC2

I've forgotten what we were planning to do here. Should this be reopened since we reverted the issue that originally closed it?
Closed #1244
Reverted: https://github.com/aspnet/KestrelHttpServer/pull/1253

Solved in Kestrel by the back pressure https://github.com/aspnet/KestrelHttpServer/pull/1244#issuecomment-265546975 maybe be an issue further up the pipeline if it can't handle the data; but isn't a server issue per se

It was reverted because it wasn't granular enough. The size limit needs vary too much per endpoint, similar to authorization.


allow nfts on pay

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#4315  👈
#4314
#4313
#4310
#4309
#4308
#4307
main

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

Join @wraeth-eth and the rest of your teammates on  Graphite


create zone widget for my own vscode extension

Hello.
I found that copilot chat display a zone widget inside textEditor when using fix feature.

I want to invoke a zone widget like this in my own vscode extension and customize the ui, but I can't find any documents relevant. Is there any way to work around?

See #85682 for proposed API, though there's currently no timetable for finalization.


Documentation does not properly document api for all versions

Given the following example
import hug

@hug.get('/echo', versions=1)
def echo(text):
    return text

@hug.get('/echo', versions=range(2, 5))
def echo(text, prefix):
    return "Echo: {prefix} {text}".format(**locals())

The documentation only returns the latest version's signature
{
    "404": "The API call you tried to make was not defined. Here's a definition of the API to help you get going :)",
    "documentation": {
        "version": 4,
        "versions": [
            1,
            2,
            3,
            4
        ],
        "handlers": {
            "/echo": {
                "GET": {
                    "outputs": {
                        "format": "JSON (Javascript Serialized Object Notation)",
                        "content_type": "application/json"
                    },
                    "inputs": {
                        "text": {
                            "type": "Basic text / string value"
                        },
                        "prefix": {
                            "type": "Basic text / string value"
                        }
                    }
                }
            }
        }
    }
}

Hi @rodcloutier,
This is intentional, you should be able to see any of the other versions of the documentation by calling {api_endpoint}/v{version_in_question}/ or passing the version header. Originally we returned all documentation in one call if the version wasn't specified, but this proved to be very noisy, and usually not what people want (most API users want the latest, or if they are hitting on older version only the docs for that)
Thanks!
~Timothy


Unable to create cluster on GCE

A lot went well - until the end where it complains about disk resources being busy. Was it trying to reuse a disk for a new node?
ERRO[0426] Error applying plan:                     source=Terraform
ERRO[0426]                                               source=Terraform
ERRO[0426] 3 error(s) occurred:                          source=Terraform
ERRO[0426]                                               source=Terraform
ERRO[0426] * google_compute_instance.node[2]: 1 error(s) occurred:  source=Terraform
ERRO[0426]                                               source=Terraform
ERRO[0426] * google_compute_instance.node.2: Error creating instance: googleapi: Error 400: The disk resource 'projects/openshifter-gcp/zones/us-central1-c/disks/openshift-cluster-node-0-root' is already being used by 'projects/openshifter-gcp/zones/us-central1-c/instances/openshift-cluster-node-1', resourceInUseByAnotherResource  source=Terraform
ERRO[0426] * google_compute_instance.node[0]: 1 error(s) occurred:  source=Terraform
ERRO[0426]                                               source=Terraform
ERRO[0426] * google_compute_instance.node.0: Error creating instance: googleapi: Error 400: The disk resource 'projects/openshifter-gcp/zones/us-central1-c/disks/openshift-cluster-node-0-root' is already being used by 'projects/openshifter-gcp/zones/us-central1-c/instances/openshift-cluster-node-1', resourceInUseByAnotherResource  source=Terraform
ERRO[0426] * google_compute_instance.node[3]: 1 error(s) occurred:  source=Terraform
ERRO[0426]                                               source=Terraform
ERRO[0426] * google_compute_instance.node.3: Error creating instance: googleapi: Error 400: The disk resource 'projects/openshifter-gcp/zones/us-central1-c/disks/openshift-cluster-node-0-root' is already being used by 'projects/openshifter-gcp/zones/us-central1-c/instances/openshift-cluster-node-1', resourceInUseByAnotherResource  source=Terraform
ERRO[0426]                                               source=Terraform
ERRO[0426] Terraform does not automatically rollback in the face of errors.  source=Terraform
ERRO[0426] Instead, your Terraform state file has been partially updated with  source=Terraform
ERRO[0426] any resources that successfully completed. Please address the error  source=Terraform
ERRO[0426] above and apply again to incrementally change your infrastructure.  source=Terraform
INFO[0426] Terraform finished
INFO[0426] Gathering cluster information
panic: runtime error: index out of range

After destroy, and create w/ just 1 node, now I see a different error:
ERRO[0213] ERROR: the playbook: /Users/rayt/Projects/git/openshifter-gopath/demo/openshift-ansible/playbooks/byo/config.yml could not be found  source=Ansible
INFO[0213] Ansible finished
INFO[0213] Gathering cluster information
panic: ssh: must specify HostKeyCallback

goroutine 1 [running]:
main.ConnectSsh(0x1314d63, 0x6, 0xc4202cf1f0, 0xe, 0xc420159c40, 0x3e)
	/Users/rayt/Projects/git/openshifter-gopath/src/openshifter/ssh.go:31 +0x4ab
main.SetupEnvironment(0x7fff5fbff783, 0x11, 0xc420014fc8, 0x3, 0x1314d8d, 0x6, 0x1314e23, 0x6, 0x13150b1, 0x7, ...)

In ssh.go, ClientConfig, added HostKeyCallback
sshConfig := &ssh.ClientConfig{
    User: "openshift",
    Auth: []ssh.AuthMethod{
      publicKeyFile(key),
    },
    HostKeyCallback: ssh.InsecureIgnoreHostKey(),
  }

However, this is still restricted to a single node configuration.

Regarding the 2nd error - did you run using the docker image? The image has all the Ansible stuff included so you do no need to pull the playbooks yourself.

1st problem should be fixed by 6ea229b ... and the docker image has been updated as well

thnx for the pointer to ansible playbook.
how abt the 3rd issue w/ hostKeyCallback?

Is the HostKeyCallback causing you any problems? I can establish connection just fine even without specifying the callback, but I see the doc states the callback should be there, just pushed the change.

It was causing me issues (runtime failures). Maybe it's the version of the libs? (needs vendoring).
Also seeing some issues w/ ansible:
ERRO[1328]  [WARNING]: sftp transfer mechanism failed on [<IP_ADDRESS>]. Use  source=Ansible
ERRO[1328] ANSIBLE_DEBUG=1 to see detailed information   source=Ansible
ERRO[1331]  [WARNING]: sftp transfer mechanism failed on [<IP_ADDRESS>]. Use  source=Ansible
ERRO[1331] ANSIBLE_DEBUG=1 to see detailed information   source=Ansible
INFO[1335] ok: [<IP_ADDRESS>] => (item={u'dest': u'/etc/yum.repos.d/', u'src': u'origin/repos/openshift-ansible-centos-paas-sig.repo'})  source=Ansible
INFO[1336] ok: [<IP_ADDRESS>] => (item={u'dest': u'/etc/yum.repos.d/', u'src': u'origin/repos/openshift-ansible-centos-paas-sig.repo'})  source=Ansible
ERRO[1344]  [WARNING]: scp transfer mechanism failed on [<IP_ADDRESS>]. Use  source=Ansible
ERRO[1344] ANSIBLE_DEBUG=1 to see detailed information   source=Ansible
INFO[1344] fatal: [<IP_ADDRESS>]: FAILED! => {"failed": true, "msg": "failed to transfer file to /home/openshift/.ansible/tmp/ansible-tmp-1491659886.14-30328348603894/file.py:\n\nlost connection\n"}  source=Ansible

Will review after #3 is done.

Not relevant for Python.


Updated readme with execution example.  Also typos, etc.

@rowandavies where is this up to?

@rowandavies thanks, I think this is starting to look much better. It's a big job. I assume there are still more sections you intend to change?

What is the status of this PR?

Just a few small fixes away from being done. :smile:

Looks good, just need to fix the logger.info statement in CustomerJob, and :+1:

:+1:


No connection to internet after WARP is connected

Example URL(s)
-https://developers.cloudflare.com/warp-client/get-started/linux/
Actual Behavior
I have followed the step above link. I have run WARP on Ubuntu 22.04 LTS and verified that warp=on. It is connected to WARP but no internet at all. If WARP is disconnected and able to access the internet.
What Did I Do Wrong? how to fix this problem? Please help me
Thank You
Expected Behavior
Once WARP is connected, should be able to access the internet.
Additional information
No response

Hi, thanks for contacting the docs team. To resolve technical issues, I recommend contacting Cloudflare Support.  Feel free to re-open the issue once you know what needs to change in the documentation.


excluded masks

add a new mask type that excludes anything that matches it from matching lethals

I think the way I'll tackle this is change this to return all matching masks and their mask types
https://github.com/Libera-Chat/maskwatch-bot/blob/239ee73ae883b76533303f1a136738fa3057ae45/maskwatch-bot/__init__.py#L98-L101
and then sort the list like:

EXCLUDE
DLETHAL
LETHAL
WARN

then only action the first match, but mark all of them as "hit"


React Hook useEffect has a missing dependency

src/App.js
Line 32:6: React Hook useEffect has a missing dependency: 'props'. Either include it or remove the dependency array. However, 'props' will change when any prop changes, so the preferred fix is to destructure the 'props' object outside of the useEffect call and refer to those specific props inside useEffect react-hooks/exhaustive-deps
function App({getUserAuth}) {
useEffect(() => {
getUserAuth();
}, [getUserAuth]);
Replaced to this by destructuring the props for useEffect.

@octocat @github
First time Open Source!!!   Yeah!!!!


Dimension out of range (expected to be in range of [-1, 0], but got 1)

Dear Authors,
I am having the following issue while trying to launch the training procedure:
Also, I am having some unresolved dependencies:
torchtext 0.18.0 has requirement torch>=2.3.0, but you have torch 2.1.0+cu121.
numba 0.56.4+1.g5f1bc7084 has requirement numpy<1.24,>=1.18, but you have numpy 1.26.0.
cupy-cuda12x 12.0.0b3 has requirement numpy<1.26,>=1.20, but you have numpy 1.26.0.
Could you please suggest? Also, can you provide a list installed packages maybe since that could help to resolve the dependency issues.
Traceback (most recent call last):
File "/home/jovyan/Torte/SUM/SUM-main/train.py", line 151, in
outputs = model(stimuli, condition)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
File "/home/jovyan/Torte/SUM/SUM-main/net/models/SUM.py", line 30, in forward
logits = self.salu_mamba(x, condition)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
File "/home/jovyan/Torte/SUM/SUM-main/net/models/vmamba.py", line 815, in forward
x = self.forward_features_up(x, skip_list, condition)
File "/home/jovyan/Torte/SUM/SUM-main/net/models/vmamba.py", line 792, in forward_features_up
x = layer_up(x, condition)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
File "/home/jovyan/Torte/SUM/SUM-main/net/models/vmamba.py", line 681, in forward
x = blk(x, condition)  # Pass the condition vector to each block
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
File "/home/jovyan/Torte/SUM/SUM-main/net/models/vmamba.py", line 552, in forward
indices = torch.argmax(condition, dim=1) # previous settings
IndexError: Dimension out of range (expected to be in range of [-1, 0], but got 1)

Thank you for reaching out and providing detailed information about the issues you're encountering. I'm sorry to hear you're experiencing difficulties with launching the training procedure. Let me address your concerns step-by-step:
1. Dependency Conflicts
To ensure compatibility, I recommend the following steps:

Use Google Colab: I've successfully run the training code on Google Colab without encountering these dependency issues. Colab provides a managed environment that often resolves such conflicts automatically.

Install Dependencies Anew: In Colab, follow the installation instructions provided in the repository to set up the environment from scratch. This approach helps in avoiding version mismatches.

I have also provide you mine env versions too
sum_env.zip

2. Addressing the Runtime Error
The error you encountered:
IndexError: Dimension out of range (expected to be in range of [-1, 0], but got 1)

indicates that the condition tensor passed to torch.argmax does not have the expected number of dimensions. Specifically, it seems condition must be a 1D tensor instead of the expected 2D tensor.
For guidance on how to properly feed data into the model, please refer to the test_model.py script in the repository. This script provides examples and can help ensure that you're supplying the model with correctly formatted inputs.
4. Additional Support
If you continue to experience issues or have further questions, please don't hesitate to reach out via email at<EMAIL_ADDRESS>

Thanks Arhosseini77,
Yeah, by this time I resolved the issue with the dimensionality already.
For other users ==> if you are retraining on your own dataset, with a single class label, you may want to add an extra logic, including the one_hot encoding transformation.
Best Regards,


How to code a Flow Control Node in nodeeditor?

This is a image of chigraph.
I'm trying to make a loop node in my CAD engine. But I have no idea  about that. Could you please show me how to make a flow control node in nodeeditor?
I always have problems of building or installing chigraph...
Thanks!

It's not currently supported in nodeeditor, it's something I've added support for for chigraph (I'm the author). Check out #117 for a real solution.


Highlight on selected text isn't visible

Looks like the parent selector of atom-text-editor needs to use ::shadow
This works in my in my styles.less
// Highlighted text
atom-text-editor::shadow {
  .selection .region {
    background-color: fade(rgb(248, 248, 242), 20%);
  }
}

@Ustice is that just for the hightlight? Or the whole element needs it?

That worked for me too. Thanks!

Closed with #8


"Implement missing members" doesn't handle default generic type parameters

To reproduce, invoke "Implement missing members" assist on the following program:
struct S;
impl PartialEq for S {}

Actual result:
impl PartialEq for S {
    fn eq(&self, other: &Rhs) -> std::primitive::bool { unimplemented!() }
}

This does not compile: "cannot find type `Rhs` in this scope".
Expected result:
impl PartialEq for S {
    fn eq(&self, other: &Self) -> std::primitive::bool { unimplemented!() }
}

Because PartialEq<Rhs=Self>.

rust-analyzer version: 2020-04-06 (c859a64)

Relevant bits of code:

https://github.com/rust-analyzer/rust-analyzer/blob/b7e5d94bda362ffc21174a79aa0be113c3288e1e/crates/ra_assists/src/ast_transform.rs#L34-L38
https://github.com/rust-analyzer/rust-analyzer/blob/b7e5d94bda362ffc21174a79aa0be113c3288e1e/crates/ra_assists/src/handlers/add_missing_impl_members.rs


Make de-generics wrappers for open and save_buffer

This makes the inner parts of these functions non-inlinable. It also
makes open_impl and save_buffer_impl be compiled once, as part of
compiling the crate, instead of having to compile them each time their
uses are compiled.
This was prompted by http://stackoverflow.com/questions/36317461/
Modifying the user library and recompiling took more than 20 seconds,
with this change, only < 0.3 s. This means that open's implementation
may no longer be inlined, but it shouldn't matter.

libstd uses this “pattern” in a few places too.

load could use the same kind of transformation I think, but you that know the library well need to make the call there.

Nice!


support submit first comment on your new video

Checklist

[X] I'm reporting a site feature request
[X] I've verified that I'm running ytb-up version 2022.05.18 (update instructions) or later (specify commit)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[X] I've read about sharing account credentials and I'm willing to share it if required

Region
No response
Example URLs
https://www.youtube.com/shorts/
Description
many creator want to use the first comment to drive more traffic to their website, so they need this feature

upload video to youtube or tiktok
submit prepared comment to this video after upload is done

@photkey this is much more an abuse function and not so much  related to this lib though


Issue #187: Addressing hangup when loading Aquifer data with TP data.elements equal NA

First plot in Shiny Compare_Two_Years expects TP, which is now absent in the Aquifer data, causing data.elements to be NA. This seems to cause hangup upon load of Aquifer data.  Added following statement to use only values of data.elements that are not NAs.:
data.elements <- data.elements[which(!is.na(data.elements))]
Still hanging up but seems to get beyond the TP worksheet to the PS worksheet when loading Aquifer data. @ldecicco-USGS @rwdudley-usgs @jshourds-usgs @lindsaycarr

Coverage increased (+0.09%) to 28.402% when pulling ef346b0f3251380f95bb948c0237481dcbdbd835 on grrmartin-USGS:master into 19df36af99aec9dc620ab169fc4c736852cb1ac3 on USGS-R:master.


status line / tab line colorscheme not updated in lightline when changing between tokyonight themes night, stormy and day

Thank you for the great plugin. I noticed that switching between tokyonight styles day and night doesn't update the lightline tab colors properly.
Here's what I did:

let g:tokyonight_style=day
set background=light
colorscheme tokyonight

and

let g:tokyonight_style=night
set background=dark
colorscheme tokyonight

The window colors update properly but status line and tab line stay in the colorscheme that I set first.

I found a solution:

colors needs to be unloaded upon colorscheme change: https://github.com/folke/tokyonight.nvim/blob/main/colors/tokyonight.vim#L5
lightline.colorscheme.tokyonight needs to be unloaded before https://github.com/folke/tokyonight.nvim/blob/main/autoload/lightline/colorscheme/tokyonight.vim#L1
before running :call lightline#update() the tokyonight-lightline configuration needs to be reloaded via :runtime autoload/lightline/colorscheme/tokyonight.vim

I have the same issue (and the links in the reply above don't work). Can anyone suggest some code I can use to force lightline to reload the light colour scheme? Thanks.


build: Use PKG_CONFIG_EXECUTABLE

... instead of using a hard-coded pkg-config to make cross-compiling
possible where the pkg-config binary is host-prefixed (e.g.
armv7-unknown-linux-pkg-config when cross-compiling for armv7)

LGTM, thanks for the patch.


8500C and 2x 2n7000 MOSFETs doesn't seem to be working.

I have a jackshaft 8500C with a Yellow Learn button and 888LM wall panel.
I built a protoboard today following the latest schematics, I had gotten the IRLB8721 before it was know they were not suitable, so I went with 2x 2n7000.
When flashing to native RATGDO opener for Board V2.5 and going with Security+ 1.0, nothing seems to work. If I switch to Security+ 2.0 I see more things in the logs, but no commands work.
With Security+ 1.0

Connecting to:
Homework...
Using static IP address
Set WiFi output power to: 20.50
.
WIFI CONNECTED
IP Address: <IP_ADDRESS>
nb of attempts: 1
IMPROVhttp://<IP_ADDRESS>X
WiFi connected
Local IP: <IP_ADDRESS>
SoftAP IP: (IP unset)
Server started
Webserver ready.
MQTT Last Will Params:
willTopic: GarageDoor/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT CONNECTED
Reading data from
the network...
TOPIC SUBSCRIBED [GarageDoor/command/#]
QUEUE MSG SENT [homeassistant/cover/GarageDoor/config]
{
"~": "GarageDoor",
"name": "Door",
"unique_id": "GarageDoor_4C:75:25:38:8E:B1",
"availability_topic": "~/status/availability",
"device_class": "garage",
"command_topic": "~/command/door",
"payload_open": "open",
"payload_close": "close",
"payload_stop": "stop",
"state_topic": "~/status/door",
"device": {
"name": "GarageDoor",
"identifiers": "GarageDoor_4C:75:25:38:8E:B1",
"manufacturer": "Paul Wieland",
"model": "ratgdo",
"sw_version": "2.51",
"configuration_url": "http://<IP_ADDRESS>/"
}
}
QUEUE MSG SENT [homeassistant/light/GarageDoor/config]
{
"~": "GarageDoor",
"name": "Light",
"unique_id": "GarageDoor_4C:75:25:38:8E:B1_light",
"availability_topic": "~/status/availability",
"command_topic": "~/command/light",
"payload_on": "on",
"payload_off": "off",
"state_topic": "~/status/light",
"device": {
"name": "GarageDoor",
"identifiers": "GarageDoor_4C:75:25:38:8E:B1",
"manufacturer": "Paul Wieland",
"model": "ratgdo",
"sw_version": "2.51",
"configuration_url": "http://<IP_ADDRESS>/"
}
}
QUEUE MSG SENT [homeassistant/binary_sensor/GarageDoor/config]
{
"~": "GarageDoor",
"name": "Obstruction",
"unique_id": "GarageDoor_4C:75:25:38:8E:B1_obs",
"availability_topic": "~/status/availability",
"device_class": "motion",
"state_topic": "~/status/obstruction",
"payload_on": "obstructed",
"payload_off": "clear",
"device": {
"name": "GarageDoor",
"identifiers": "GarageDoor_4C:75:25:38:8E:B1",
"manufacturer": "Paul Wieland",
"model": "ratgdo",
"sw_version": "2.51",
"configuration_url": "http://<IP_ADDRESS>/"
}
}
QUEUE MSG SENT [GarageDoor/status/availability]
online
Obstruction status clear
QUEUE MSG SENT [GarageDoor/status/obstruction]
clear
QUEUE MSG ARRIVED [GarageDoor/command/light]
on
MQTT: turn the light on
QUEUE MSG ARRIVED [GarageDoor/command/light]
off
MQTT: turn the light off
QUEUE MSG ARRIVED [GarageDoor/command/door]
open
MQTT: open the door
QUEUE MSG ARRIVED [GarageDoor/command/door]
stop
MQTT: stop the door
The door is not moving.QUEUE MSG ARRIVED [GarageDoor/command/door]
close
MQTT: close the door

No commands trigger anything.
Switching to 2.0

Connecting to:
Homework...
Using static IP address
Set WiFi output power to: 20.50
........
WIFI CONNECTED
IP Address: <IP_ADDRESS>
nb of attempts: 8
IMPROVhttp://<IP_ADDRESS>X
WiFi connected
Local IP: <IP_ADDRESS>
SoftAP IP: (IP unset)
Server started
Webserver ready.
MQTT Last Will Params:
willTopic: GarageDoor/status/availability
willPayload: offline
qos: 1
retain: 0
clean session: 1
MQTT CONNECTED
Reading data from
the network...
TOPIC SUBSCRIBED [GarageDoor/command/#]
QUEUE MSG SENT [homeassistant/cover/GarageDoor/config]
{
"~": "GarageDoor",
"name": "Door",
"unique_id": "GarageDoor_4C:75:25:38:8E:B1",
"availability_topic": "~/status/availability",
"device_class": "garage",
"command_topic": "~/command/door",
"payload_open": "open",
"payload_close": "close",
"payload_stop": "stop",
"state_topic": "~/status/door",
"device": {
"name": "GarageDoor",
"identifiers": "GarageDoor_4C:75:25:38:8E:B1",
"manufacturer": "Paul Wieland",
"model": "ratgdo",
"sw_version": "2.51",
"configuration_url": "http://<IP_ADDRESS>/"
}
}
QUEUE MSG SENT [homeassistant/light/GarageDoor/config]
{
"~": "GarageDoor",
"name": "Light",
"unique_id": "GarageDoor_4C:75:25:38:8E:B1_light",
"availability_topic": "~/status/availability",
"command_topic": "~/command/light",
"payload_on": "on",
"payload_off": "off",
"state_topic": "~/status/light",
"device": {
"name": "GarageDoor",
"identifiers": "GarageDoor_4C:75:25:38:8E:B1",
"manufacturer": "Paul Wieland",
"model": "ratgdo",
"sw_version": "2.51",
"configuration_url": "http://<IP_ADDRESS>/"
}
}
QUEUE MSG SENT [homeassistant/binary_sensor/GarageDoor/config]
{
"~": "GarageDoor",
"name": "Obstruction",
"unique_id": "GarageDoor_4C:75:25:38:8E:B1_obs",
"availability_topic": "~/status/availability",
"device_class": "motion",
"state_topic": "~/status/obstruction",
"payload_on": "obstructed",
"payload_off": "clear",
"device": {
"name": "GarageDoor",
"identifiers": "GarageDoor_4C:75:25:38:8E:B1",
"manufacturer": "Paul Wieland",
"model": "ratgdo",
"sw_version": "2.51",
"configuration_url": "http://<IP_ADDRESS>/"
}
}
QUEUE MSG SENT [GarageDoor/status/availability]
online
idCode doesn't exist. creating...
idCode write successful
idCode write successful
rolling doesn't exist. creating...
rolling write successful
Syncing rolling code counter after reboot...
rolling code for 62129 0|reboot1 :<PHONE_NUMBER>DB2DB6DB6DB6003EF9B4B7E96FBB
rolling code for 62129 1|reboot2 : 550100AA2CB2596D965961A0269C04B53BADB6
rolling code for 62129 2|reboot3 : 550100552D96CB2CB2CB2C50177809321C5DB4
rolling code for 62129 3|reboot4 :<PHONE_NUMBER>FBEFBEFBEFBD4122CBF6D4E13490
rolling code for 62129 4|reboot5 :<PHONE_NUMBER>209949241241202E9C04B41BCDA6
rolling code for 62129 5|reboot6 : 550100211A492F9249A493113AE8901729749E
rolling write successful
Obstruction status clear
QUEUE MSG SENT [GarageDoor/status/obstruction]
clear
Request Basic Authentication
pass: Dm8BiiU5LvA9Qy
QUEUE MSG ARRIVED [GarageDoor/command/light]
off
MQTT: turn the light off
rolling code for 62129 6|light :<PHONE_NUMBER>934B34D24D24801459BFF23B7DBA
rolling write successful
QUEUE MSG ARRIVED [GarageDoor/command/light]
on
MQTT: turn the light on
rolling code for 62129 7|light : 550100860B2CB4CB2DB64B61061896D43B349C
rolling write successful
QUEUE MSG ARRIVED [GarageDoor/command/door]
open
MQTT: open the door
rolling code for 62129 8|door1 :<PHONE_NUMBER>C92192496495103AFA9837BB2DA6
rolling code for 62129 8|door2 :<PHONE_NUMBER>C92192496494103AFA9837BB0DA6
rolling write successful
QUEUE MSG ARRIVED [GarageDoor/command/door]
close
MQTT: close the door
rolling code for 62129 9|door1 :<PHONE_NUMBER>CB68B6DB2DB5011863D991E924B0
rolling code for 62129 9|door2 :<PHONE_NUMBER>CB68B6DB2DB4011863D991E964B0
rolling write successful
QUEUE MSG ARRIVED [GarageDoor/command/door]
stop
MQTT: stop the door
The door is not moving.QUEUE MSG ARRIVED [GarageDoor/command/door]
close
MQTT: close the door
rolling code for 62129 10|door1 : 550100663B7DFCDF7FB7F860061A9EF4A96DBE
rolling code for 62129 10|door2 : 550100663B7DFCDF7FB7FA60061A9EF4A97DBE
rolling write successful
QUEUE MSG ARRIVED [GarageDoor/command/door]
open
MQTT: open the door
rolling code for 62129 11|door1 :<PHONE_NUMBER>B6914DA4DA6A5132CA52178D3483
rolling code for 62129 11|door2 :<PHONE_NUMBER>B6914DA4DA685132CA52178D1483
rolling write successful
QUEUE MSG ARRIVED [GarageDoor/command/door]
stop
MQTT: stop the door
The door is not moving.QUEUE MSG ARRIVED [GarageDoor/command/light]
off
MQTT: turn the light off
rolling code for 62129 12|light : 550100442FFFDDFDF7FF7F4016519F72737DBA
rolling write successful
QUEUE MSG ARRIVED [GarageDoor/command/light]
on
MQTT: turn the light on
rolling code for 62129 13|light :<PHONE_NUMBER>64B04B2C925921022A5F9189E4B1
rolling write successful

Rolling codes seem to do more, but I don't have any action from the opener for any functions. I used RAT-RATGDO V6 for D1 Mini and the native RATGDO firmware. Perhaps I need to change to the ESP Home firmware, but I was under the impression my opener was Security+ 1.0. What should I try next?

I believe the esphome firmware does have security 1.0+
Yellow button ahould mean security 2.0+ double checked the gpio, resistor types and mosfet to make sure everything is correct?

Have you tried syncing the rolling codes? I think those logs mean it communicating.

Thanks for the quick reply.
I double checked it visually a few times, but I'll bring home a Fluke87 this weekend and make sure.
As far as the version of security plus, the jackshaft openers usually fall under 1.0. Mine garage door will open if I short the remote wires.

Can't really speak for v1.0 at the moment as everybody building a board for a GDO which is Security+ 1.0 doesn't seem to have much luck.
For MOSFET testing, you can follow this video I made.  I would guess in your case if your MOSFET circuit is working, this test will toggle your garage door.
https://youtu.be/AlZNbD49sbE

Thanks for the quick reply.
I double checked it visually a few times, but I'll bring home a Fluke87 this weekend and make sure.
As far as the version of security plus, the jackshaft openers usually fall under 1.0. Mine garage door will open if I short the remote wires.

Ah okay yea, shorting the wires is a def security 1.0 then.
This is all my google fu was able to find.

Can't really speak for v1.0 at the moment as everybody building a board for a GDO which is Security+ 1.0 doesn't seem to have much luck.
For MOSFET testing, you can follow this video I made. I would guess in your case if your MOSFET circuit is working, this test will toggle your garage door.
https://youtu.be/AlZNbD49sbE

I'll try this this weekend. I suspect in my case this would cause the door to open.

Have you tried syncing the rolling codes? I think those logs mean it communicating.

I am not having luck finding out how to sync the rolling codes on either here or the official RATGDO page, any links?

I am not having luck finding out how to sync the rolling codes on either here or the official RATGDO page, any links?

This is from a comment I read:

Changing the client_id is like starting fresh from the GDO's point of view (it doesn't matter what the rolling code is when you change the client_id, but once you send the first command, the rolling code can only increase from that point on).

When you change the client_id is normal for the first command to be ignored, but the following ones should start working. A simple test is change the client_id and toggle the light from Home Assistant a couple times and it should toggle the GDO light. If that doesn't work, you have something wrong with the wiring.

So, just change the client_id and give it a try I think.

I am not having luck finding out how to sync the rolling codes on either here or the official RATGDO page, any links?

This is from a comment I read:

Changing the client_id is like starting fresh from the GDO's point of view (it doesn't matter what the rolling code is when you change the client_id, but once you send the first command, the rolling code can only increase from that point on).

When you change the client_id is normal for the first command to be ignored, but the following ones should start working. A simple test is change the client_id and toggle the light from Home Assistant a couple times and it should toggle the GDO light. If that doesn't work, you have something wrong with the wiring.

So, just change the client_id and give it a try I think.

Again, I am not finding any information on how to do this.

Again, I am not finding any information on how to do this.

Apologies mate, but most of us are as much in the dark as you are.  You could try asking on the official ratgdo repo but as soon as Paul finds out you're using a self-made one you may even be banned from posting there.  I've been banned already, but I mean, he's probably pissed that I created an open-source schematic. 😬

Closing due to lack of updates from OP.


Please mention the APIs that support this Unique key Policy

As of right now - i believe its just Core SQL API that supports this feature..

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

ID: bf261de8-a6fa-9497-ffff-106550e2a537
Version Independent ID: ee0468ba-1b3b-6ba4-d9f6-c60da3e7c486
Content: Use unique keys in Azure Cosmos DB
Content Source: articles/cosmos-db/unique-keys.md
Service: cosmos-db
GitHub Login: @rimman
Microsoft Alias: rimman

because this is a specific capability to Cosmos DB - that's why it is surfaced in our core API.

i might not have phrased my words correctly.. what i meant was that this feature is not available for Table API, Cassandra API or other document types of Cosmos.. It's just available for the Document API (Core SQL)...

We will add support for Cassandra next. Support for other APIs will be based on customer feedback. If there is a particular use-case you are after with a particular API, please ping us at<EMAIL_ADDRESS>Thanks.

@rajdhandus Unique keys are supported for both SQL and MongoDB accounts. You can see in the portal while container creation if the option is available. We don't want to mention anything explicit in the docs because the support will be enabled for other APIs in future.
Will close the issue if there aren't further questions.
#please-close


testresources needed in requirements.txt

Thanks for the update. I found I needed to install the testresources package to resolve an error message when updating the program. Probably not needed to execute successfully, but I wanted to pass that along.

interesting. i'm not sure why that would be a required. it hasn't been needed on a couple different dev environments i've tested with. if others report it, i'll dig in further. thanks for sharing.


Add support for Metal dylibs

Metal lets you make shared libraries of gpu code
Were you ever curious about what was inside of those?  Now you can find out.

Looks great, thanks!


Switch from snowpack to vite

Do this before starting any other major changes.

Done, vite is used + code base has been completely moved to TypeScript.


neovim: disable cursorless commands that aren't relevant to terminal to avoid misrecognition

I'm noticing I get a lot (at least enough to be annoying) of misrecognitions while I'm using the terminal with cursorless, especially while I'm manually spelling something, which is may be something I do more in the terminal than I do in vscode, due to weird file names and stuff.
But I've noticed for instance I can say something and it will miss recognize as click void and will try to click a target identified by space.
This is an example of the log
 'void', 'push'])
[954354.999] user/fidgetingbits-talon/plugin/command_history/command_history.py | action speech.enabled()
[954354.999] user/fidgetingbits-talon/plugin/subtitles/on_phrase.py | action speech.enabled()
[954354.999] user/cursorless-talon/src/cursorless.talon | action user.private_cursorless_action_or_ide_command({'value': 'followLink'
, 'type': 'cursorless_action'}, PrimitiveTarget(mark={'type': 'decoratedSymbol', 'symbolColor': 'default', 'character': ' '}, modifie
rs=None))
[954354.999] user/cursorless-talon/src/actions/actions.py | action user.cursorless_command('followLink', PrimitiveTarget(mark={'type'
: 'decoratedSymbol', 'symbolColor': 'default', 'character': ' '}, modifiers=None))
[954354.999] user/cursorless-talon/src/actions/actions.py | action user.private_cursorless_command_and_wait({'name': 'followLink', 't
arget': PrimitiveTarget(mark={'type': 'decoratedSymbol', 'symbolColor': 'default', 'character': ' '}, modifiers=None)})
[954354.999] user/cursorless-talon/src/command.py | action user.did_emit_pre_phrase_signal()
[954354.999] user/cursorless-talon/src/command.py | action user.private_cursorless_run_rpc_command_get('cursorless.command', {'versio
n': 7, 'spokenForm': 'click void push', 'usePrePhraseSnapshot': True, 'action': {'name': 'followLink', 'target': {'type': 'primitive'
, 'mark': {'type': 'decoratedSymbol', 'symbolColor': 'default', 'character': ' '}}}})
[954354.999] user/cursorless-talon/src/cursorless_command_server.py | action user.run_rpc_command_get('cursorless.command', {'version
': 7, 'spokenForm': 'click void push', 'usePrePhraseSnapshot': True, 'action': {'name': 'followLink', 'target': {'type': 'primitive',
 'mark': {'type': 'decoratedSymbol', 'symbolColor': 'default', 'character': ' '}}}}, None)
[954354.999] user/fidgetingbits-talon/plugin/command_client/command_client.py | action win.title()
[954354.999] user/fidgetingbits-talon/plugin/command_client/command_client.py | action user.command_server_directory()
[954355.000] user/fidgetingbits-talon/plugin/command_client/command_client.py | action user.trigger_command_server_command_execution(
)
[954355.000] user/neovim-talon/apps/neovim.py | action key('ctrl-`')

This ends up landing me in normal mode afterwards.
Click from the terminal is technically something we want eventually, but seemed a little bit surprising since we don't have hat so I perhaps incorrectly think it shouldn't be trying to target them right now?
I also get misrecognitions for things like like pour one, and it will try to pour a target. This me think that we should probably disable certain commands entirely while we're in terminal so they're not even associated with cursorless, but I don't know that that's actually possible. But for instance anything that attempts to edit the buffer while you're in terminal mode, just could probably be disabled. @saidelike I don't know how often you run into stuff like this so far?

Yes I think that would be nice to have, though I am not sure how to do it. I wonder if this would need to be done on the cursorless-talon side? cc @pokey
That being said, the misrecognition problem is kind of normal if you still use talon-vim and/or lots of your own commands that used to work fine but suddently will also conflict with legit working cursorless commands. so dealing with new conflicts might have to be handled anyway for valid commands.
But I agree having a way to disable those that are not supported would be nice, though I also like the idea of the cursorless being enabled on cursorless-talon side and then the cursorless neovim extension returning that they could have existed but are not supported, because it means other people could wish to add them and do a PR, etc. And also it means we have consistency with vscode in general for all commands.


Back-end: Fix position logic for cards in a choice

Cards might get the same position number. Thus those cards cannot be re-arranged.

Testing: see comment https://github.com/equinor/MAD-VSM-WEB/issues/254#issuecomment-970111206
Please test overall position and re-ordering of cards in the canvas

@Magos will take a look at implementing positioning logic without any changes needed for the front-end.
Note: position is not used in the front-end.

@SjoenH Do some initial testing. Thank you future me.

Initial testing in dev done. We have migrated the changes to test-environment for testing @ntorsen.
A bit hard to check for this...
The problem was that Sometimes a card under a choice wouldn't move when you tried to re-order the children.
This shouldn't happen any more.
Please test overall position and re-ordering of cards in the canvas

@SjoenH working really well 🙌
Even got this message when trying to move a parent to a child-object:

@Magos let's talk about releasing this bug-fix.

Planning a release for this today.
First to QA as a test-run, then we will add a service-message and get it out into prod.

Release to QA went OK. Verified by Magnus and me.
Service message is put up in Production.
Planning API-release around 11:00. There will be some downtime estimated to around 15 minutes.

We have discovered a bug that is affecting adding and reordering cards in a process. We are investigating and considering our options.

Rolling back seems to work OK for QA. As long as no-users have started using the new position as introduced in the new api.
It seems like I'm the only one that has done any changes in this period, so we should be fine, but we will keep our eyes open.

API was rolled back successfully. We did verify that all cards are using the old positioning index. 🙆♂

@ntorsen Ready again in test.
From initial testing, this looks good. But we will need to do take our time, testing the overall position and re-ordering of cards in the canvas.

Created a new process and added a main-activity to it. Then added a card under it. Does not give childIndex -1 anymore. First card added under main-activity gets number 1289, and the following cards get 1290 and 1291.

When moving position of a card, for example if I move the first sub-activity card to another main-activity, childIndex number change. In this case it first said 1289 and when moving it to another main-activity its then 1290. Don't know it this is important or not..
I don't get any negative numbers for childIndex when adding card under main-activity (that is for both sub-activity, choice, and waiting card).
Other remarks:

Still get message for not being able to move a parent to a child-object. So that's good 👍

Did an overall testing with moving different cards around, and it is working well. I get no errors or weird behavior when moving cards.

Possible flaw:

If I delete a row of cards that contained QIPR, they still appear in category-page. And I am still able to work on the page by adding/renaming/deleting categories

@SjoenH

I would say that keeping the QIPRs around even if the cards they're on is deleted is intended as far as I understand.

Thanks for testing @ntorsen.
Let's wait till next week with releasing this fix.
I want to be on the cautious side for this release.
Let's have a talk on Monday on when would be a good release window.

* Still get message for not being able to move a parent to a child-object. So that's good 👍
  ![image](https://user-images.githubusercontent.com/89014017/142602576-5a617d4e-1131-4343-a650-3b73ef443aae.png)

Good! BTW. this check is done in the front-end. Not sure if we would throw an error in the API for it. @Magos When you have time, it would be good to verify what API allows here. But low priority, atm.

* Did an overall testing with moving different cards around, and it is working well. I get no errors or weird behavior when moving cards.

Possible flaw:
* If I delete a row of cards that contained QIPR, they still appear in category-page. And I am still able to work on the page by adding/renaming/deleting categories

This is, as @Magos says, working as intended.
PQIRs exists by itself and can be added to as many cards in a process you want.  (Though I see how the design makes it look like there is a stronger link here...)
Categories also exists for themselves and can be added to as many PQIRs as you want.


Fixed issues seen on lighthouse audit

Added alt text to images.
Added an aria-label to a link.
Added meta tags for the description of the site.
Renamed h5 tag to h3 so it doesn't skip h tags.

👷 Deploy Preview for benevolent-sprinkles-4567d6 processing.

Name
Link

🔨 Latest commit
4aff6db8caa8e00b0937152db2381cb92a002825

🔍 Latest deploy log
https://app.netlify.com/sites/benevolent-sprinkles-4567d6/deploys/65c9f6b65e5f6f0008be1025


File descriptors are not worked with Python 3.8 images

'OSError: [Errno 88] Socket operation on non-socket' error occurred on Python 3.8 images. Python 3.7 images are works fine.

Image: python:3.8-slim-buster
$ docker run -it python:3.8-slim-buster
Python 3.8.1 (default, Feb  2 2020, 08:49:34)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> socket.fromfd(0, socket.AF_UNIX, socket.SOCK_STREAM)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.8/socket.py", line 544, in fromfd
    return socket(family, type, proto, nfd)
  File "/usr/local/lib/python3.8/socket.py", line 231, in __init__
    _socket.socket.__init__(self, family, type, proto, fileno)
OSError: [Errno 88] Socket operation on non-socket
>>>

Image: python:3.8-alpine3.11
$ docker run -it python:3.8-alpine3.11
Python 3.8.1 (default, Jan 18 2020, 02:42:17)
[GCC 9.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> socket.fromfd(0, socket.AF_UNIX, socket.SOCK_STREAM)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.8/socket.py", line 544, in fromfd
    return socket(family, type, proto, nfd)
  File "/usr/local/lib/python3.8/socket.py", line 231, in __init__
    _socket.socket.__init__(self, family, type, proto, fileno)
OSError: [Errno 88] Not a socket

Image: python:3.7.6-slim-buster
$ docker run -it python:3.7.6-slim-buster
Python 3.7.6 (default, Feb  2 2020, 09:11:24)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> socket.fromfd(0, socket.AF_UNIX, socket.SOCK_STREAM)
<socket.socket fd=3, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0>

Oh... It's cpython's 🐛  https://bugs.python.org/issue39685

Since this issue is only on 3.8 and affects all variants I would think this a bug/change upstream
Maybe looking through the commits of socket.py might yield something https://github.com/python/cpython/commits/3.8/Lib/socket.py
Python 3.7 was release June 27, 2018 so maybe sometime between then and 3.8's release October 14th, 2019

kosei:pikachu:  40 minutes ago
https://bugs.python.org/issue39685
もしかしたらこの cpython のバグかもしれないです :thinking_face:
kosei:pikachu:  36 minutes ago
リンクされている issue に
https://bugs.python.org/issue35415
この変更以降出るようになったと書いてありますね・・・
https://github.com/python/cpython/commit/e991270363435da12049ecfe70bb69bd9c14b535
やっぱり私の技術力ではお手上げだ
atsuoishimoto  33 minutes ago
なるほど。。。

@wglambert Thank you for your advice :)


[Feature] Grading System - Course and Exam Scores

Checklist

[x] I tested all changes and all related features with different users (student, tutor, editor, instructor, admin) on the test server https://artemistest.ase.in.tum.de.
[x] Server: I followed the coding and design guidelines.
[x] Server: I added multiple integration tests (Spring) related to the features (with a high test coverage)
[x] Server: I implemented the changes with a good performance and prevented too many database calls
[x] Server: I documented the Java code using JavaDoc style.
[x] Client: I followed the coding and design guidelines.
[x] Client: I added multiple integration tests (Jest) related to the features (with a high test coverage)
[x] Client: I documented the TypeScript code using JSDoc style.
[x] Client: I added multiple screenshots/screencasts of my UI changes
[x] Client: I translated all the newly inserted strings into German and English

Motivation and Context

This PR provides integration for the grading system on the course and exam scores pages. The instructor would be able to view more detailed information if a grading scale for the given course/exam has been set.
Description

I've mainly modified the course and exam scores components by first checking if a grading scale exists for the course/exam and then calculating additional properties that get displayed in the statistics tables/graphs based on that.
Steps for Testing

1 Log in to Artemis as an instructor
2.1 Navigate to Course Administration -> Course with some exercise submissions
3.1 Open the scores page to see what it looks like for reference
4.1 Create a Grade Key of "Grade" type for the course and check the scores page again
a) there should be a grades column that has a valid mapping to the grade key based on the overall percentage
b) test if the exported file has additional grades information
5.1 Create a Grade Key of "Bonus" type for that course and check the scores page again
a) there should be a bonus points column  that has a valid mapping to the grade key based on the overall percentage
b) test if the exported file has additional bonus points information
2.2. Navigate to Course Administration -> Exams and find an Exam with existing student submissions (alternatively create one and do multiple student submissions with different grading outcomes)
3.2 Make sure the exam has no grade key set and check the scores page to see what it looks like if that's the case
4.2 Create a Grade Key of "Grade" type and check the scores page again
a) additional statistics should be displayed like average and median grade, statistics for students who have passed the exam
b) the graph should display the grade key mapping instead of the default one and the scores should again be mapped to the correct grades
c) exercise groups table should have an average grade column with the correct grade
d) student table should have an "overall grade" and a "passed" column with the correct values
e) test exporting
5.2 Now change the Grade Key to "Bonus" type
a) check that the column names are different (bonus points instead of grades)
b) the "Passing" columns in both the overview and student table shouldn't be present
c) the graph should map to the bonus points grade key
d) test exporting
6 Delete the Grade Key and check that the scores page is again presenting the default values
7 Make sure that no TypeErrors (or any Errors) occur in the console when opening the page with or without a grade key set.
Test Coverage

grading-system.service.ts: 100%
course-scores.component.ts: 91.05%
exam-scores.component.ts: 86.2%
Screenshots

Tested on ts1, works as expected.
One thing: How is the average grade in the course statistics computed. Is that the average grade or is that the average score mapped to a grade (they can be different). Maybe this could get clarified somehow

It's the average score mapped to a grade since the grade depends on the score. But that's a good point.

One additional comment to the method matchingGradePercentage in GradeStep. This might cause issues in the future based on the precision of double values. Could you please change the part
        if (percentage == lowerBoundPercentage) {
            return lowerBoundInclusive;
        }
        else if (percentage == upperBoundPercentage) {
            return upperBoundInclusive;
        }

and instead use Precision.equals(percentage, lowerBoundPercentage, epsilon) as shown on https://www.baeldung.com/java-comparing-doubles using Apache Commons Math?
Same for the upper bound
Epsilon should probably somewhere in the range of 0.01


vscode onedarkpro vs this one

Hi,
This is a suggestion.
I end up changing many highlights and colors to represent the onedarkpro for vscode that has over 4M downloads, a standard onedarkpro theme. If this repo is for everyone to enjoy the standard onedarkpro theme with neovim you should represent the exact onedarkpro.
For example, the default backgroud color should be bg = "#282c34", the next line should be purple and not italic 		TSInclude = { fg = theme.colors.blue, style = theme.options.italic }, -- For includes: "#include" in C, "use" or "extern crate" in Rust, or "require" in Lua. and so on.
People should start from the standard theme and then change settings/highlights/colors if needed. But, if this repo is for yourself just ignore what I just said.
One last suggestion, the plugins by default should be set to false, so we can keep the onedarkpro.settup clean as much as possible.
Thanks

Thanks for the feedback.
Could you let me know the highlights and colors that you've changed and I'll look into incorporating into the theme.
Regarding the italics, I'll caveat by saying in the readme I specify "Use the themes opinionated italic styles?" but there is a case for setting this to false by default.

local colors = require("onedarkpro").get_colors("onedark")
...

colors = {
   bg = "#282c34"
},

hlgroups = {
   -- onedarkpro -> treesitter.lua plugin
   TSInclude = { fg = colors.purple, style = "NONE" },
   TSTypeBuiltin = { fg = colors.yellow },
   TSConstBuiltin = { fg = colors.purple },
   TSConstructor = { fg = colors.yellow },
   TSRepeat = { style = "NONE" },
   TSFuncMacro = { fg = colors.blue },
   TSParameterReference = { fg = colors.red },

   -- onedarkpro -> theme.lua
   Include = { fg = colors.purple },
   Function = { fg = colors.blue },
   Operator = { fg = colors.fg },
   Macro = { fg = colors.blue },
   Special = { fg = colors.fg },
   Structure = { fg = colors.purple },
   Identifier = { fg = colors.red },
   Typedef = { fg = colors.purple },
   Constant = { fg = colors.orange },
 }

Results:

Rust
nvim

vscode

C
nvim

vscode

C#
nvim (The first  in red is annoying. It should be yellow but TSVariables set it to red)

vscode

Go
nvim (the functions in the interface are in red)

vscode

Typescript is ok

Javascript is not

The onedarkpro for vscode is adding unique style for each language. IMO, this repo should do the same.
For now, I'm trying to add custom highlighters with treesitter/playground.
Nice work BTW.

Firstly, thank you for your detailed feedback and config. It is greatly appreciated.
I agree with the majority of your changes and have addressed them in the latest commit. Some I have not included (detail and reasoning below).

The onedarkpro for vscode is adding unique style for each language. IMO, this repo should do the same.

Yes it does. I have actively thought about doing this and may look into it in the near future. Let me know if you make any progress. Always open to pull requests.
FYI, the hlgroups which I have kept the same are:
TSRepeat
Operator
Special

Reason being that they caused some difference in look between Neovim and VS Code in Ruby, Python and Javascript files which I don't have with their current values. Happy to be corrected and adjust them (could always be a setting I missed in my custom VS Code config).

Thanks both! I was able to remove a few of my customizations after updating.

https://github.com/olimorris/onedarkpro.nvim/commit/bde2f189e904f01f612326b795be9ec5d94b5ce1#diff-6278de756e40002a1404b733de0b7f2d1526f9fd53e80f01b4aff117ac98e17dR112
@olimorris Typo here, I think :wink:

bde2f18#diff-6278de756e40002a1404b733de0b7f2d1526f9fd53e80f01b4aff117ac98e17dR112
@olimorris Typo here, I think 😉
Edit: also bde2f18#diff-6278de756e40002a1404b733de0b7f2d1526f9fd53e80f01b4aff117ac98e17dR93

I can't see where the typos are in the diff. In the readme?

Maacro and Faunction in theme.lua:
https://github.com/olimorris/onedarkpro.nvim/blob/bde2f189e904f01f612326b795be9ec5d94b5ce1/lua/onedarkpro/theme.lua#L112
https://github.com/olimorris/onedarkpro.nvim/blob/bde2f189e904f01f612326b795be9ec5d94b5ce1/lua/onedarkpro/theme.lua#L93

@mmirus, you sir, are a legend as always! Thanks for spotting

You got it!

Ok for the highlights but the plugins are somehow always set to true event I change it to false.

Should now be fixed. I've had to apply some trickery to how we merge the default config with the user's custom config. End result is your test cases above now work.

@sinkyl - Would you also be willing to try out the filetype_hlgroups branch?
I've got a WIP feature which allows you to add custom highlight groups for specific filetypes. Works great on my end (to overcome the TSField issue with yaml files) but keen to see your use cases and especially if you notice any performance issues.

All good now.
I'll give a try later.
Thx 💯


Update engine.rb to work with PRE="1" or <IP_ADDRESS>

A security patch was released as version <IP_ADDRESS>. This fixes the hardcode to support that version, too

Thank you.

@jejacks0n YW. do you plan to release a new gem?

I wasn't planning on it, but yeah, can you ping me tomorrow and I will update the changelog and release a new version? can't this evening. Thanks again. :+1:

I'll point to master for now, so no need on my end, but I can see others being in same spot since it is a security update on rails-side.

:+1: Yes, same spot.

@jejacks0n can we get a release for this?

released 1.1.3, thanks all.


Fix rate metrics type

What does this PR do?
Update the metadata file to declare rate metrics as rates.
Motivation
We wanted to add an extra check in the tests in the PR https://github.com/DataDog/integrations-core/pull/12689 and it showed that the metadata.csv file was incorrect. Fixing it in a separate PR.
Additional Notes

Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] PR title must be written as a CHANGELOG entry (see why)
[ ] Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
[ ] PR must have changelog/ and integration/ labels attached

Closing the PR as this is not a bug


skipselect now takes in player and world name

Description of the Change
User will be able to specify which player and world they want to launch with -skipselect launch option. When either one of the fields is invalid/empty, it will choose the default player/world (meaning first in the list).
Benefits
Adds the ability to specify which player/world is used for debugging.
Sample Usage
-skipselect "Itorius:TestWorld"

Thanks a bunch.


Fix Sphinx docs to be pep8

this looks like it was only messed up on mobile. viewing on desktop looks fine


NPSP Settings > Household Naming Settings: Contact insert/update fails when Phone/Fax fields are included in Household Name Format

How to reproduce:

View NPSP Settings > People > Households > Edit > Set Household Name Format field to include the Phone or Fax in the format > Save
Create or select a Contact > Edit a Contact > Save > an error is generated.

**lurch: attach w-019970

Tracking W-019970

Included in beta release 3.105 (Beta 5)

Included in production release rel/3.105


introduces a two-step patching process

. 2 new flags to control status:

Main.Loaded = true when game finishes GameManager.BindPostDatabase
Main.Enabled = true when all other patches were applied and models were loaded
IsSafeToLoad() is true at the moment but idea is be able to use this to determine if safe to patch the game or not

I only left a comment on Harmony decoration at GameManagerPatcher. Willing to reduce conflict during merge. Please move anything that got merged on this file Postfix() and move over to Main.FinishLoading()

and of course delete GameManagerPatcher.cs as it won't be required anymore

Added a different mod ID on purpose with a PreLoad postfix.

closing this one as this approach can produce some crazy bugs in the end.


Key combination does not show up in EventViewer

I'm mapping spacebar to left_shift when caps_lock is pressed. It works for the entire keyboard except the keys h, n, y and p. Pressing caps_lock+spacebar+<any of the mentioned keys> while viewing the events in EventViewer and nothing happens, it's completely silent.
Works: caps_lock+left_shift+h
Doesn't work: caps_lock+spacebar+h (with spacebar mapped to left_shift)
Works: caps_lock+spacebar+k (or most other letters)
Here's a minimal configuration
{
  "title": "Foo",
  "rules": [
    {
      "description": "Foo",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "caps_lock",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "set_variable": {
                "name": "caps_lock pressed",
                "value": 1
              }
            }
          ],
          "to_after_key_up": [
            {
              "set_variable": {
                "name": "caps_lock pressed",
                "value": 0
              }
            }
          ]
        },
        {
          "type": "basic",
          "description": "Space to shift",
          "from": {
            "key_code": "spacebar",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "key_code": "left_shift"
            }
          ],
          "conditions": [
            {
              "type": "variable_if",
              "name": "caps_lock pressed",
              "value": 1
            }
          ]
        }
      ]
    }
  ]
}

I'm also working on a mapping that uses the spacebar as a pseudo-modifier key, and have run into similar issues with other key combos. Specifically, left_command + spacebar + hyphen and left_command + spacebar + open_bracket. With EventViewer open, even with no complex modifications, if I hold the left command key, the spacebar, and then tap - or [, no hyphen or open_bracket event appears in the list – I only see left_gui and spacebar.
Like @jgogstad said, those keys with other modifiers, and those modifiers with other keys, work just fine. What surprised me the most was that that they also work if I use right_command instead of left_command. However, using a simple modification to map the left_command key to right_command doesn't fix the problem. I almost suspect this is a hardware limitation. Other than using EventViewer, I'm not sure how to view the exact data that's being sent from my keyboard to Karabiner, but maybe that would reveal something about what's going on.
Final revelation: everything I just wrote appears to only apply to my external keyboard, an Apple wired keyboard with a numeric keypad (vendor ID 1452, product ID 591), but not to my MacBook Pro's built-in keyboard (vendor 1452, product 627). And the combinations that @jgogstad wrote about – caps_lock + spacebar + h, etc – work on my external keyboard, but not the built-in one.
FWIW, I looked at the key codes shown by EventViewer and I don't see an obvious pattern. In my case they're 0xe3 (left command), 0x2c (space), 0x2f ([), and 0x2d (-). Yet 0x2e, the "m" key, works while both 0xe3 and 0x2c are held.

I thought of hardware limitations as well, but you'd think that caps_lock + spacebar + k wouldn't work then, or any other keys. It's only the "vertical line" formed by 6, y, h and n that doesn't work.
Tested on MacBook Pro 2017 keyboard and Apple Magic Keyboard 2.


#2198 - Move away from the file API to Pages API

Switched the spo control list command to the Pages API. Mapped the output of the API to the output of how it was before. Apart from the htmlProperties as this is meant to change/break.

Awesome! Thank you so much! Let's get this in asap 👏

Merged manually. Thank you! 👏