Add an informational screen to add more detail from the your-grievance-process PDF.

There isn't really much information in the your-grievance-process PDF, so I'm going to leave this issue open for now. Might revisit with feedback from someone who reviews this form that is unfamiliar with the process.


could not scroll in android at all

Touch scrolling is not supported yet. I will try to implement that in the future. However, contributions are always welcome!


how can i applay pomocode one time for each user ?

This is default behaviour of new release. If you don't specify promocode to be multi use, it will only allow one use per user.


⚠ Bofrost.at has degraded performance

In 0454bc3, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2088 ms

Resolved: Bofrost.at performance has improved in 73588d1.


How to restrict publish and subscribe using ACL and topic permissions.

I have a 2-node emq cluster. I want to restrict clients from subscribing and publishing to the topics which don't concern them. I saw ACL in the docs but that isn't very clear, some light on the topic would be much appreciated.
TL;DR: Help needed in implementing ACL and Topic restriction on clients.

Incorrectly asked in the wrong repo. Moved to here: https://github.com/emqtt/emqttd/issues/1586


Implementing Access Restrictions

Feature name
Implementing Access Restrictions
Is your feature request related to a problem? Please describe.
It is password protected, but I can see configuration diagrams that may contain sensitive information from anywhere.
Describe the feature you'd like to see implemented
Add WAF.

Thanks for raising this. Could you please explain in a little more detail what you are seeing here?
Is it that when you save a diagram you don't want to be able to make it available to your colleagues? If so, then saving as 'Private' will ensure only you can see it.
Is it the 'public' term that is the issue here? Any diagrams stored are only available to other users on your deployment of Perspective.

Thanks for your reply.
I don't want to expose it to the outside Company.
As long as they can access CloudFront, there is a possibility of a brute force attack on Cognito authentication, so I thought it would be nice if we could restrict IPs.

We evaluated this request and it is not prioritised in the immediate roadmap for the solution.


[Net] Rename RPC constants and annotation arguments.

any -> any_peer
sync -> call_local
ordered -> unreliable_ordered
Multiplayer.RPC_MODE_ANY -> RPC_MODE_ANY_PEER
Multiplayer.TRANSFER_MODE_ORDERED -> TRANSFER_MODE_UNRELIABLE_ORDERED
As emerged from the feedback to my blog post (which I'll need to update)

Should Mono attributes be updated again? #53106

Didn't know they were changed already, updated.

I think it looks good, my only concern in general is that the way unreliable_orered works is kind of misleading, but I guess it can be addressed in another PR.


MultipleClassCalibrator Tutorial

This error only occurs for the MultipleClassCalibrator in the tutorial.ipynb

Thanks for posting the error message. I also get this error when using the latest pypi version of AixCaliBuHA. However, when installing the latest fix (https://github.com/RWTH-EBC/ebcpy/issues/45) via pip install -e ebcpy, the error will be gone and only a warning is printed indicating the FMU was already closed.
I forgot to mention this fix directly in the answer to your review (https://github.com/openjournals/joss-reviews/issues/3861).
If this fix does not work for you, please re-open this issue!


Sugestions: Queue file operations and a more compact details view

I'd switch to this great piece of software if I could queue ongoing file operations (copy, move, delete) instead of launching them in parallel, just like windows explorer does.
Also, line separation is too big in details view. A more compact view would be appreciated.
Everything else is great, which is a lot!
Greetings!

Merging with #2447 #1940


CoAP support

Hello Everybody
We, at gatesense, are working on CoAP support for Node-RED. Would you be interested in PR into core?
You can find the code here.

Hi, thanks for this.
We already have issue #248 for exactly this.
Rather than pull these into the core of node-red, I suggest you self-publish them to the npm repository where anyone will be able to install into their node-red runtime should their want CoAP support.
I suggest you also publicise this on the node-red mailing list as I'm sure there will be interested people on that list who don't follow the day-to-day issues over here.
Nick

Hi Nick,
I've done that. Here's the mailing list link for reference.
/Justas

@knolleary just for clarity, if a CoAP node is better located in its own module, then we can close #248. The actual outcome there was 'can someone do it?', because it is done, and if wanted @reederz can submit that PR.
A module in 'core' has much more visibility than a module in NPM, as these are not listed on the website and in the README. How about making more public (maybe in README and in the web page) the fact that there are community modules on npm by adding a link to the npm search page? The last sentence in a blog post is not enough. Another option is curating a wiki page: for LevelUp we have a list of all modules: https://github.com/rvagg/node-levelup/wiki/Modules

@mcollina yes, #248 can be closed as they have published their node to npm
We have added links to the npm search page in a couple places, but I agree we need to make it more obvious.
At some point we will add the ability to search/install nodes into the editor itself. The underlying  runtime APIs are in place, just needs the editor UI work to be done.


Proposal: View Component Slots

Feature Proposal
Provide a built-in or otherwise framework supplied mechanism for View Components, when rendered via a tag helper, to render user-supplied child content that can be injected into the View Component's view template in pre-defined locations
Use Case
When building component based presentation a number of useful features present in other component inspired frameworks are missing in Mvc:

The ability to render user supplied child content from its invocation location in the component template
The ability to mark and control placement of multiple elements of user supplied child content in the component template
The ability to show default content if user supplied content was not provided
Child content mechanism is supplied and supported by the framework, standardizing syntax and usage.

Allowing view components to accept child content provides new ways to build complex component driven presentation.
Use Case Example
Within some calling view, instantiating a View Component via a tag helper and supplying child content:
Calling View:
<vc:custom-view-component>

My Default Slot Content!

My First Slot Content!

My Second Slot Content!

    <vc:custom-view-component vc:slot="nested">

My NESTED Default Slot Content!

My NESTED First Slot Content!

My NESTED Second Slot Content!

    </vc:custom-view-component>

More Default Slot Content!

</vc:custom-view-component>

The ViewComponents view template would provide the slot mechanism to place the user defined child content:
View Component View Template:

Custom View Component

Second slot content

<vc:slot name="second">
please supply a value for my second slot
</vc:slot>

First slot content

<vc:slot name="first">
please supply a value for my first slot
</vc:slot>

Default slot content

<vc:slot>
please supply a value for my default slot
</vc:slot>

Repeating slots render the same data

<vc:slot name="first">please supply a value for my first slot</vc:slot>
<vc:slot name="second">please supply a value for my second slot</vc:slot>
<vc:slot>
please supply a value for my default slot
</vc:slot>

Nesting components with slots works

    <vc:slot name="nested">no nested content supplied</vc:slot>

The View Component slotting mechanism will take care of rendering the user supplied child content into the correct slots in the View Component's user defined slot locations. Example output of the following:

Inspiration
Content slotting or otherwise rendering user supplied child content in a parent template is a known and useful pattern seeing fair usage today:

Web Component Slots (MDN): https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_templates_and_slots
vuejs Slots: https://vuejs.org/v2/guide/components-slots.html
Angular Template Outlet: https://angular.io/api/common/NgTemplateOutlet

Primary insipriation is from the web component HTML templates spec
Requirements
Some potential requirements determined while researching this proposal:

View Component slots should re-use the existing View Component tag helper <vc:[component_kebab_case_name]>
A new tag helper MUST be introduced (<vc:slot>) to mark locations in a View Component's view template where user supplied content can be placed
User supplied child content within the body of the View Component Tag Helper MUST be optional
All existing view attribute binding expression features MUST continue to work
The View Component slotting mechanism MUST properly handle nested View Component Tag Helpers and View Component slots to any arbitrary depth in user supplied child content
Users MUST be able to target zero or more named View Component slots within their supplied child content, whether or not a named slot exists in the View Component's view template.

Experimental Implementation
To facilitate interest in this proposal a simple experiement was built to showcase the View Component Slotting mechanism in action. This experiement does not necessarly implement all identified requirements and is not guarenteed to be bug-free.
https://github.com/rdlaitila/AspNetCore.Mvc.ViewComponentSlots
what should work:

Invoking a view component from a tag helper (see differences)
Ability to supply arbitrary (non slot targeted) child content that will be placed in the parent View Component's default <vc:slot>
Ability to supply slot targeted child content that will be placed in a matching <vc:slot> element in the View Component's view template where a slot with attribute name="[slot_name]" exists (ex: <vc:slot name="some-slot">)
Ability for View Component Slots to render default content if no user supplied child content targeting that slot was supplied.
Ability to render nested View Component Tag Helpers and slots
tag parameter expression binding within user supplied child content

differences:

Due to the inability to hook into the existing View Component Tag Helper, a custom View Component Tag Helper was built that can invoke a view component by the tag elements name in either kebab-case or PascalCase where the tag contains attribute vc (ex: <my-custom-component vc> or <MyCustomComponent vc>)
slot elements are named <vc:slot> as well as the slot selector attribute  vc:slot="[name]"simply to match the existing View Component Tag Helper naming convention <vc:[component-kebab-name]> for consistency. There is no reason we could not adopt the current web component slot naming convension, or using some other name entirly.

Author's Contribution
Unfortunatly I will be time limited to focus on a core contribution of View Component Slots to aspnet/Mvc and don't posses deep enough knolwedge of contribution guidelines or the Mvc sources to properly facilitate implementation of this proposal.
I can however allocate some time to improve the experimental proposal implementation as needed and respond to community issues and pull requests on a best-effort basis. I hope the experimental implementation can validate that this use case is valid and valuable to others.
Community Contribution
I would be excited to see community members either help improve the example implementation or help propose how to best implement such a feature into the Mvc core.

This is something I was looking for for quite a while now. Why is this closed, now that 3.0 is released, wouldn't it make sense to reevaluate priorities?

@SteveSandersonMS please correct me, if I'm wrong, but if I remember correctly, this is possible today using RenderFragment properties and we wanted to avoid introducing a second way of doing essentially the same thing.

@mkArtakMSFT thanks for the quick reply! RenderFragment seems to be blazor related in regard to the new razor facilities? Do you have any documentation on how to use RenderFragment within SSR Asp.Net Core MVC View Components along with their associated tag helper invocation? Specifically:
https://docs.microsoft.com/en-us/aspnet/core/mvc/views/view-components?view=aspnetcore-3.0#invoking-a-view-component-as-a-tag-helper
The original use case is to give a more nested component-based approach when using traditional MVC. Using the newer razor components under blazor (server hosted) brings on new dependencies such as required websockets and SignalR which may not fit into some application stacks.

@rdlaitila, it seems I've got confused about this issue being a request for Blazor. Please ignore my last comment.
However, while I don't recall the exact reason for closing the original ask, seeing how old this issues is makes me believe that we've closed it because there was no much community interest in it. We usually prioritize things which are highly requested, and this one doesn't meet the bar.

@mkArtakMSFT
So how about opening up where the vc: convention for 'view components as tag helpers' is established, and allowing a custom implementation there?
That'd be enough to get the ball rolling for slots as a proper community add-on. Right now, any implementation of this feature eventually hits the wall where the vc: tag helper logic is non-extensible and you need to hack around it with non-intuitive alternate syntax.


WIP: Renamed all scripts to lower case & underscores

Contents:

All scripts now use the same file naming: all lowercase and underscores.
All references to said scripts are updated as well
The commits are atomic, i. e. the contain the renaming of only one script and all references to that script. For that reason, please do not squash.

Resolves #440.

Waiting for #488 to be merged first.

Waiting for #503 to be merged first.

Ready for review.

merging

(squashed and) merged: 08b406b00d2cf86141d5704f9c5f9dd7be1b8a04


minikube's default storage-provisioner RBAC is missing some permissions

Received this in the logs after creating a PVC:
$ kubectl logs -f storage-provisioner -n kube-system
Error watching for provisioning success, can't provision for claim "test/s4rdfk-cloudcmd": events is forbidden: User "system:serviceaccount:kube-system:storage-provisioner" cannot list events in the namespace "test"
Error watching for provisioning success, can't provision for claim "test/spd9xt-cloudcmd": events is forbidden: User "system:serviceaccount:kube-system:storage-provisioner" cannot list events in the namespace "test"

Manual workaround that worked for now:
# Edit to add the "list" verb to the "events" resource
$ kubectl edit clusterrole -n kube-system system:persistent-volume-provisioner
$ kubectl get pvc -n test
NAME              STATUS    VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   AGE
s4rdfk-cloudcmd   Bound     pvc-e794fa3e-b6ac-11e8-8044-080027add193   1Mi        RWX            standard       12m
spd9xt-cloudcmd   Bound     pvc-6baa04ab-b6ad-11e8-8044-080027add193   1Mi        RWX            standard       8m
src67q-cloudcmd   Bound     pvc-2243a82c-b6ae-11e8-8044-080027add193   1Mi        RWX            standard       3m

We should probably submit this as an issue to minikube's official issue tracker.

Submitted this to minikube as https://github.com/kubernetes/minikube/issues/3129


Flyway: adding User and Authority SQL file

following https://github.com/jhipster/jhipster-lite/pull/570
similar to what was done for Liquibase

I've develop the flyway feature, i can continue ?

sure, you're welcome !


Testing on images with lots of noise returns bad result

@caiyuanhao1998 Hi Yuanhao, I am testing to use your model to process low-light pictures that have lots of noise which are shot from not-advanced cameras. The direct result is not good. Do you recommend to apply some deep-learning based denoise model first to the image, then use your model to process it? Or will it make the result even worse? Hope to get some insight from you, thanks a lot!

Hi, it would be better you switch to our other enhancement models that can handle severe image degradation
I suggest you try SID and SMID models.
If you found our repo useful, please help us star it, thanks :)

@caiyuanhao1998 Hi Yuanhao, SID and SMID models are for raw pictures. Is my understanding right that for pictures like jpg, the general low light enhancement models trained on LOL like datasets will not be able to handle severe image degradation? I am thinking to apply some denoise models based on jpg pictures to eliminate noise then apply your model to do enhancement. Not sure if it is gonna work out. Please share your insight. Thanks!

@caiyuanhao1998 Please offer your valuable insight if you are able to see this


Restart executor and readers if execution API rollup returns error

Conductor should restart its executor and reader tasks if communication with executor fails. Specifically, we should add retry logic for:

getting genesis info and initial commitment state;
executing blocks and updating state.

However, we must distinguish between network (and other) failures and conductor trying to execute invalid state against the rollup. One idea is to have the rollup return error codes that result in an immediate retart of the executor and reader tasks within conductor.

Closed with #1463


Testing utilities: testing actors

For milestone 1 we aim to have a first simple testing flow for our actors.
When executing tests, our testing utilities should ensure that our target actor has a clean state, meaning that a user has full control over how the state of an actor will evolve during a test.
For naming convention of our methods in test actors we'll follow foundry's decision:

Constructor: Optional function invoked at deployment time
SetUp: An optional function invoked before each test case is run
Test*: Functions prefixed with test are run as a test case
TestFail*: The inverse of the test prefix - if the function does not revert, the test fails

Test fails can be seen through the return of an ExitCode::USR_ASSERTION_FAILED (Exit code 24).
For all tests contract we should execute all test methods declared and print out if the method was a success or a failure.

Closed by #54


Allow Hooks to be sent for a specific user or all users.

At the moment you need to have a user field/property defined in the model you use the hook for.
Also you can use the "all users" behaviour, by specifying a '+' in the HOOK_EVENTS settings, which is bad and out of place.
This needs to be defined in the Hook model.

Agree with you. This was implemented by extending the Hook model with global_hook flag.


Implement Asset bundling for WordPress Theme & Plugin

Added basic asset bundling using inpsyde/assets and webpack-encore with a flag, so you can remove if you don't need it or only want to use static files.
Question: I added a plugin.assets.php.template and functions.assets.php.template with a basic WebpackManifestLoader for the AssetManager , keep this or remove it?

I'd say it would be better to run some composer commands at the end depending on the answers given from the user. That way we could avoid having different composer.json template files but for now I'm okay with this approach.

Yeah, I will rewrite it, sounds better to me!

Please add the missing new lines at the end of each file.

Added new lines at the end, but on somehow it's not shown in some files.

I'd say it would be better to run some composer commands at the end depending on the answers given from the user. That way we could avoid having different composer.json template files but for now I'm okay with this approach.

Yeah, I will rewrite it, sounds better to me!

Please add the missing new lines at the end of each file.

Added new lines at the end, but on somehow it's not shown in some files.


Hide the whole 'This Frame' in frame-context.css

We have #context-navigation, to Hide whole navigation bar. Can you add option to Hide the whole 'This Frame' in frame-context.css?
#frame, seems not remove whole 'This Frame' for me.

If I understand you correctly, #frame should already do what you want (and indeed does in my recent test).
The question is, where are leftovers for you?

Yes, seem I need to restart firefox to get it applied.

Doesn't only seem like it. It's mandatory.
See item 7 in the instructions.


Resolved a test error hidden by connection reuse.

When you establish a stored access policy on a container, it may take up to 30 seconds to take effect. During this interval, a shared access signature that is associated with the stored access policy will fail with status code 403 (Forbidden), until the access policy becomes active.
https://docs.microsoft.com/en-us/rest/api/storageservices/set-container-acl

This also makes local test runs quite long.

/azp run cpp - storage

This show came up in https://github.com/Azure/azure-sdk-for-cpp/pull/897

Is there a way to loop and poll for the acl of the container rather than waiting and continue as soon as it is set?

The problem with polling is that now we need a timeout to avoid polling in the test forever.

The problem with polling is that now we need a timeout to avoid polling in the test forever.

That's quit an easy problem to solve though :)
Having an upper bound on the polling (say of a minute) seems reasonable.

Oh...looks like an unrelated, intermittent segfault on one of the storage live tests on Mac:
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=646201&view=logs&j=267db408-59fc-59d9-cfd0-fd1515cbe21c&t=2098805b-0a17-5773-080f-3859d901c023

121: [----------] 6 tests from DataLakeDirectoryClientTest
121: unknown file: Failure
121: C++ exception with description "409 The specified container already exists.
121: The specified container already exists.
121: RequestId:871991ae-101e-0000-7ca3-cdda24000000
121: Time:2020-12-08T20:48:54.0566648Z
121: Request ID: 871991ae-101e-0000-7ca3-cdda24000000" thrown in SetUpTestSuite().
121: [ RUN      ] DataLakeDirectoryClientTest.CreateDeleteDirectory
121: [       OK ] DataLakeDirectoryClientTest.CreateDeleteDirectory (7836 ms)
121: [ RUN      ] DataLakeDirectoryClientTest.RenameDirectory
121: [       OK ] DataLakeDirectoryClientTest.RenameDirectory (12049 ms)
121: [ RUN      ] DataLakeDirectoryClientTest.DirectoryMetadata
1/1 Test #121: azure-storage-test ...............***Exception: SegFault243.81 sec

A similar fix needs to be applied here:
https://github.com/Azure/azure-sdk-for-cpp/blob/035ba8509c6d4857026529ee6f6b25902ca95e46/sdk/storage/azure-storage-files-datalake/test/datalake_sas_test.cpp#L396-L405
And anywhere else .SetAccessPolicy is called, such as:
https://github.com/Azure/azure-sdk-for-cpp/blob/035ba8509c6d4857026529ee6f6b25902ca95e46/sdk/storage/azure-storage-files-datalake/test/datalake_directory_client_test.cpp#L382-L385
@Jinming-Hu got any suggestions no how to fix the datalake_sas_test?

The problem with polling is that now we need a timeout to avoid polling in the test forever.

That's quit an easy problem to solve though :)
Having an upper bound on the polling (say of a minute) seems reasonable, particularly for tests.

There is no use in polling, one node that refreshed the cache might be returning the latest ACL, while another node with outdated cache handling the GetBlob request still returning 401.

Oh...looks like an unrelated, intermittent segfault on one of the storage live tests on Mac:
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=646201&view=logs&j=267db408-59fc-59d9-cfd0-fd1515cbe21c&t=2098805b-0a17-5773-080f-3859d901c023

121: [----------] 6 tests from DataLakeDirectoryClientTest
121: unknown file: Failure
121: C++ exception with description "409 The specified container already exists.
121: The specified container already exists.
121: RequestId:871991ae-101e-0000-7ca3-cdda24000000
121: Time:2020-12-08T20:48:54.0566648Z
121: Request ID: 871991ae-101e-0000-7ca3-cdda24000000" thrown in SetUpTestSuite().
121: [ RUN      ] DataLakeDirectoryClientTest.CreateDeleteDirectory
121: [       OK ] DataLakeDirectoryClientTest.CreateDeleteDirectory (7836 ms)
121: [ RUN      ] DataLakeDirectoryClientTest.RenameDirectory
121: [       OK ] DataLakeDirectoryClientTest.RenameDirectory (12049 ms)
121: [ RUN      ] DataLakeDirectoryClientTest.DirectoryMetadata
1/1 Test #121: azure-storage-test ...............***Exception: SegFault243.81 sec

The container name is randomized, but not using a GUID, so clashing container name could happen, just rare.
I reviewed the code for setting up, doesn't seem to have other random error potentials.

The container name is randomized, but not using a GUID, so clashing container name could happen, just rare.

Nah, I don't think so. The container name is 10 digits. The possibility of name clash is very very rare. can't be it, must be caused by another reason.

The container name is randomized, but not using a GUID, so clashing container name could happen, just rare.

Nah, I don't think so. The container name is 10 digits. The possibility of name clash is very very rare. can't be it, must be caused by another reason.

I haven't found the issue and cannot reproduce the issue locally. I'm going with this theory :).

Can we change it to be  GUID instead so we can rule it out?

cc @JeffreyRichter


docs: Run Envoy Gateway like DaemonSet

Description:
Add a doc for 'Run Envoy Gateway like DaemonSet' in https://gateway.envoyproxy.io/v1.0/tasks/operations/deployment-mode/
xref: https://github.com/envoyproxy/gateway/issues/2969, https://github.com/envoyproxy/gateway/pull/3092

I can take this one

Thanks @jukie for taking this.

I sumbit an e2e PR, hope it can give you some help.


rkt stage1 kvm kernel is out of date

The kernel used in the kvm stage1 is very out of date. We need to ensure it's updated in sync with kernel security releases in general, and probably need an equivalent process for qemu. We also need to figure out whether this will include point releases of previous versions of rkt.

These two components got an ad-hoc update, but we still need a better process for updating dependencies that we end up shipping inside release artifacts.

For kernel update we needed updated config, for QEMU - another bios binary so this process cannot be automated easily

@lucab: for QEMU it should be fairly easy. For kernel: maybe before kernel compilation we could add one more step: "make silentoldconfig"? -> this should update current kernel config to be ready to use with new kernel.

@lucab we can close it cause kernel was bumped in #3342

@lucab Please assign this to me. I'm working on a more formal process for the kernel stable updates, and want to align those with how we handle the same situation in Clear Containers.
The general premise I believe will be to track the most recent stable kernel (I will do an update to 4.9.x rsn). We then need to decide and document the 'triggers' - it may end up as something like any update with a security (CVE) patch will be done, otherwise we will check/update monthly for less critical issues.

@grahamwhaley I'd be pretty happy to just follow CC cycle (and config) here if it isn't too long compared to rkt one.


Add lovr.graphics.getTransforms(kind) and lovr.graphics.getViewports()

This makes it possible to reverse a lovr-mouse click on the mirror window into worldspace in pure Lua. Some C functions got added to graphics.h to support this.
lovr.graphics.getTransforms() takes one of "projection", "view", "model" and "mvp" and returns either one or two tables containing matrix coefficients (bjorn says we can't return matrices right now…)
lovr.graphics.getViewports() returns either one or two tables containing (x,y,width,height) rectangles for the eyes
Test code (this can go into lovr-docs, though I worry it's not as readable as it could be-- it's long and the "important" math is a bit down)
(Demo requires lovr-mouse.lua in the same directory)
(A really absurd, funny version of this demo would be tic-tac-toe with player 1 using the VR controllers and player 2 clicking on the screen, but that would be even longer)
-- "Second screen experience" Raycast demo
-- Click grid on desktop screen to alter scene visible in VR space
--
-- Sample contributed by andi mcc

-- In order for lovr.mouse to work, and therefore for this example to work,
-- we must be using LuaJIT and we must be using GLFW (ie: we can't be on Oculus Mobile)
if type(jit) == 'table' and lovr.headset.getDriver() ~= "oculusmobile" then
	lovr.mouse = require 'lovr-mouse'
end

local mirror = lovr.mirror              -- Backup lovr.mirror before it is overwritten

-- Constants
local pixwidth = lovr.graphics.getWidth()   -- Window pixel width and height
local pixheight = lovr.graphics.getHeight()
local cells = 7                             -- Number of cells in grid (per side)
local gridheight = 1.75                     -- Height of grid in worldspace

-- Derived constants
local gridspan = gridheight/2               -- Half height of grid in worldspace
local cellheight = gridheight/cells         -- Height of one grid cell in worldspace

-- State: We will store the blocks to draw as a 2D array of heights (nil for no block)
local grid = {}
for x=1,cells do grid[x] = {} end

-- Clicks to be processed
local clicks

function lovr.load()
	lovr.handlers['mousepressed'] = function(x,y)
		if not clicks then clicks = {} end
		table.insert(clicks, {x,y})
	end
end

local function drawGrid()
	-- Draw cell backgrounds (where present)
	for _x=1,cells do for _y=1,cells do
		local gray = grid[_x][_y]
		if gray then
			local x = _x - 0.5 -- Center of cell
			local y = _y - 0.5

			lovr.graphics.setColor(1,1,1, gray)
			lovr.graphics.plane('fill', x, y, 0, 1, 1)
		end
	end end

	-- Draw grid lines
	lovr.graphics.setColor(1,1,1,1)
	for c=0,cells do
		local x = c
		local y = c
		lovr.graphics.line(0, y, 0, cells, y, 0)
		lovr.graphics.line(x, 0, 0, x, cells, 0)
	end
end

local function invert(x,y)
	if grid[x][y] then
		grid[x][y] = nil
	else
		grid[x][y] = 0.5
	end
end

-- Draw 3D scene
function lovr.draw()
	-- First, draw a floor
	lovr.graphics.setColor(0.25,0.25,0.25)
	lovr.graphics.plane('fill', 0,0,0, 5,5, math.pi/2,1,0,0)

	-- Grid:
	lovr.graphics.push()
	lovr.graphics.translate(-gridspan,0.5,-1)
	lovr.graphics.scale(cellheight)
	-- Because getTransforms() is based on the current transform, we have to wait to process clicks until the draw function.
	if clicks then
		local viewports = {lovr.graphics.getViewports()}
		local matrices = {lovr.graphics.getTransforms()}
		for _,click in ipairs(clicks) do
			local x,y = unpack(click)
			local viewport
			for v,rect in ipairs(viewports) do
				local rx,ry,rwidth,rheight = unpack(rect)
				if x >= rx and x < rx+rwidth and y >= ry and y < ry+rheight then
					-- Unproject from world space
					local matrix = lovr.math.mat4(unpack(matrices[v])):invert()
					local ndcX = -1 + (x - rx)/rwidth * 2 -- Normalized Device Coordinates
					local ndcY = 1 - (y - ry)/rheight * 2 -- Note: Mouse coordinates have y+ down but OpenGL NDCs are y+ up
					local near = matrix:mul( lovr.math.vec3(ndcX, ndcY, 0) ) -- Where you clicked, touching the screen
					local far  = matrix:mul( lovr.math.vec3(ndcX, ndcY, 1) ) -- Where you clicked, touching the clip plane

					-- Project onto z-plane
					-- (Because we call this inside the push..pop the drawing grid IS the z-plane, and the math is easier)
					local ray = (far-near):normalize()
					local normal = lovr.math.vec3(0,0,1) -- Normal to z plane
					local distanceDenominator = ray:dot(normal)
					if distanceDenominator ~= 0 then
						local origin = lovr.math.vec3(0,0,0) -- Origin of z plane
						local distance = (origin - near):dot(normal)/distanceDenominator -- How far from near to z-plane?
						local pointAt = near + ray*distance  -- Where click ray intersects z plane

						-- In object space the grid squares are each 1x1 so we can floor to get the grid cells
						local cellX = math.floor(pointAt.x)
						local cellY = math.floor(pointAt.y)
						if cellX >= 0 and cellX < cells and cellY >= 0 and cellY < cells then
							invert(cellX + 1, cellY + 1)
						end
					end
				end
			end
		end
		clicks = nil
	end
	-- Finally draw the grid
	drawGrid()
	lovr.graphics.pop()

	if not lovr.mouse then -- If you can't click, you can't create any blocks
		lovr.graphics.print('This example only works on a desktop computer.', 0, 1.7, -3, .2)
	end
end

Looks like:

Here is what I'm thinking for adding getters/setters for the view and projection matrices.  It's a subset of the functionality presented here but it's still relevant.
x, y, z, angle, ax, ay, az = lovr.graphics.getViewPose(index)
matrix = lovr.graphics.getViewPose(index, matrix, invert)
lovr.graphics.setViewPose(index, x, y, z, angle, ax, ay, az)
lovr.graphics.setViewPose(index, matrix, invert)

left, right, top, bottom = lovr.graphics.getViewAngles(index)
matrix = lovr.graphics.getViewAngles(index, matrix)
lovr.graphics.setViewAngles(index, left, right, top, bottom)
lovr.graphics.setViewAngles(index, matrix)

Supporting a more intuitive representation (position of camera and angles of its field of view) could be helpful for people that aren't yet comfortable thinking in matrices.  The matrix variant is still there for when it's needed -- important for exotic camera stuff like shearing or oblique projections.  The invert flag is optional but may make it possible to skip a few matrix inversions.
It also tries to line up with the headset accessors for views, so something like this is possible:
for i = 1, lovr.headset.getViewCount() do
  lovr.graphics.setViewPose(i, lovr.headset.getViewPose(i))
  lovr.graphics.setViewAngles(i, lovr.headset.getViewAngles(i))
end

-- render

This can make lovr.headset.renderTo less of a black box so it can be more easily customized.

Hm. Could you use setViewAngles to reproduce the x,y pixel size of the viewport?
I think those are good functions to support but I don't think they obviate the need to query and set raw matrices sometimes.
I don't know how to reproduce my "reverse a click into a pixel" example above using the functions there (for one thing, my example needs the combined MVP matrix or at least the projection matrix).
I have a separate demo that I haven't posted, it involves constructing a skybox. This requires creating and setting custom perspective and view matrices, and it kind of has to be this way because I use the builtin lovr matrix features:
	local perspective = lovr.math.mat4():perspective(90.0, 1, 0.1, 1000)
	local views = {
		lovr.math.mat4():lookAt(center, center + unitX, up),
		lovr.math.mat4():lookAt(center, center - unitX, up),
		lovr.math.mat4():lookAt(center, center + unitY, up + bias),
		lovr.math.mat4():lookAt(center, center - unitY, up - bias),
		lovr.math.mat4():lookAt(center, center + unitZ, up),
		lovr.math.mat4():lookAt(center, center - unitZ, up)
	}

There's lovr.graphics.setProjection, but here's the ugly part, when I'm done using the custom perspective matrices, I have to restore the "original" matrix, and I can't do that without the ability to query that matrix.

Both the viewport and model matrix still wouldn't be accessible with these 2 functions, so they still need to be worked out.

I'm also implementing mouse picking right now and would love accessors similar to what Andi is proposing.

The lack of this feature or something like this feature is one of the big things that has me developing in a Lovr branch rather than against Lovr master.

There is lovr.headset.getViewPose and lovr.headset.getViewAngles which can be used to derive view/projection matrices for things like frustum culling, creating modified versions of the matrices, or other tasks like mouse picking that need to access the view/projection matrices.
Just added accessors to the graphics module for this data as well, similar to some of the changes in this PR:

x, y, z, angle, ax, ay, az = lovr.graphics.getViewPose(viewIndex)
left, right, up, down = lovr.graphics.getProjection(viewIndex)
m = lovr.graphics.getViewPose(viewIndex, m, [invert = false])
m = lovr.graphics.getProjection(viewIndex, m)

The invert flag can be used to get a view matrix without requiring expensive inversions.
There are also setters:

lovr.graphics.setViewPose(viewIndex, x, y, z, angle, ax, ay, az)
lovr.graphics.setViewPose(viewIndex, m, [inverted])
lovr.graphics.setProjection(viewIndex, left, right, up, down, near, far)
lovr.graphics.setProjection(viewIndex, m)

These change the data sent to lovrViews[2] and lovrProjections[2] in GLSL.  It isn't recommended to use these when rendering VR content because some headset APIs need you to tell them what pose/fov you used to render and there isn't an easy way to plumb this through right now (but there are ways to make this possible in the future).


useSentry: patch for defaultSkipError, which should return true if the error is an EnvelopError instance.

Patch for defaultSkipError, which should return true if the error is an EnvelopError instance.

thanks @dburles , released as<EMAIL_ADDRESS>


Add NGLClient to NanoVer as a module

This PR adds the existing NGLClient python script used in various places in the tutorials in examples to NanoVer as its own module. At this stage, all that we have done is add the existing file and replicate the structure of the other module directories in the new nanover-nglview directory, but there are a few things we're not sure about:

Does anything need to be modified on the GitHub CI to make this work?
Will adding this package with a new dependency interfere with existing users setups?
Should this package be installed automatically with NanoVer or should it be optional (like LAMMPS), and how do we do this?
Any other considerations?

You can see an example of the changes I made when adding the nanover-omni module here: https://github.com/IRL2/nanover-protocol/pull/151/files
I think we should avoid making the packages too granular, so perhaps renaming this to nanover-notebooks or nanover-jupyter or something would be better.
I don't see any problem with installing by default -- you do this by making a dependency of nanover-server


Add Webpush Variant to support Push API in Mozilla Firefox and Google Chrome

After discussion in mailing list we decided to try create a Webpush variant for all browsers, which support Push API.
Current version supports sending push notifications just to Firefox.
To add Google Chrome we have to store auth tokens and determine the browser type in WebpushPushNotificationSender.java.

@matzew I've also created a branch with name webpush-variant in aerogear/aerogear-unifiedpush-server: https://github.com/aerogear/aerogear-unifiedpush-server/tree/webpush-variant
Should this PR be closed?

@idelpivnitskiy sorry for late reply - makes sense to move this to webpush-variant branch ?
Or is this really isolated ?

@matzew this code is already in webpush-variant branch. So, for me, this PR may be closed. And we may reopen PR from webpush-variant against master, just for code review.

Ok, thanks for the update - will close this guy


Inspect uncompilable code in project browser - get walkback

Select text Zork foo in the body of a method in the project browser and inspect.  Get this walkback.
9:54:41 AM, Tuesday, February 25, 2020: 'JadeAutoTextPresenter3 does not understand #showCompileError:'
JadeAutoTextPresenter3(Object)>>doesNotUnderstand:
[] in JadeiteInspector>>evaluateSelectedTextIn:thenInspectInContext:
BlockClosure>>ifCurtailed:
BlockClosure>>ensure:
JadeiteInspector>>evaluateSelectedTextIn:thenInspectInContext:
JadeiteBrowserPresenter>>jadeInspect
Symbol>>forwardTo:
CommandDescription>>performAgainst:
[] in Command>>value
BlockClosure>>ifCurtailed:
BlockClosure>>ensure:
Command>>value
ShellView>>performCommand:
JadeiteBrowser(Shell)>>performCommand:
CommandQuery>>perform
DelegatingCommandPolicy(CommandPolicy)>>route:
[] in ShellView(View)>>onCommand:
BlockClosure>>ifCurtailed:
BlockClosure>>ensure:
Cursor>>showWhile:
ShellView(View)>>onCommand:
ShellView(View)>>wmCommand:wParam:lParam:
ShellView(View)>>dispatchMessage:wParam:lParam:
[] in InputState>>wndProc:message:wParam:lParam:cookie:
BlockClosure>>ifCurtailed:
InputState>>wndProc:message:wParam:lParam:cookie:
ShellView>>translateAccelerator:
ShellView>>preTranslateKeyboardInput:
ShellView(View)>>preTranslateMessage:
InputState>>preTranslateMessage:
InputState>>pumpMessage:
InputState>>loopWhile:
InputState>>mainLoop
[] in InputState>>forkMain
ExceptionHandler(ExceptionHandlerAbstract)>>markAndTry
[] in ExceptionHandler(ExceptionHandlerAbstract)>>try:
BlockClosure>>ifCurtailed:
BlockClosure>>ensure:
ExceptionHandler(ExceptionHandlerAbstract)>>try:
BlockClosure>>on:do:
[] in BlockClosure>>newProcess

Fixed in 3.0.93.


Import to Extra instead of Note

See support log ID ZYWCXKIG-refs-euc. This probably isn't so much an issue as it is my just not seeing how to handle what I'm trying to do with BBT.
You can access the Zotero item in the support log via the API here. The default import though is to attach annote: BDAG and other contents of the Extra field as a note on the Zotero record.
What I'm trying to see if I can do with BBT is to store annote: BDAG in Zotero in such a way that, if someone else has BBT installed also, adding the citation from the bibtex API link will mean that annote: BDAG automatically goes back into (their) Zotero's Extra field without having to be copied and pasted there by the user.
Is this possible? And if so, could you point me in the right direction for how to achieve this result?
Thanks so much!

I should perhaps add that "importExtra" is set to "True."

With this build you can set importNoteToExtra to value note, and the contents of the note field will be imported to extra.
There is a remaining issue, that the Zotero bibtex exporter exports your extra field to
note = {annote: BDAG
bibtex.note=annote: BDAG},

note the single newline. In LaTeX this is equivalent to a space, so that's how it's imported, and you'll end up with a single line in your extra field after import.

Thanks so much! It looks like this works quite well with the exception one particular version of the multi-line case you mentioned.
Sometimes, it's necessary to add multiple fields in Extra to produce the proper output with Zotero. Here's one such case. In several styles, annote is being used to store abbreviations that sometimes need to be italicized, sometimes not. So, the CSL is built around roman output and having the <i> … </i> tags in Extra with the rest of the content of the annote variable when the output needs to be italicized.
I see that rich text is an exclusion for the importNoteToExtra function you've added. And that makes a lot of sense given some of what else I've seen about how others are using the Extra field and BBT together. But, correspondingly, when I import this example reference back into Zotero with the new BBT build installed and enabled, I get "Annote: ISBE issued: 1979/1988" appended in a note rather than having it placed back into Extra.
Is/could there be a way to force a bypass of this exclusion in particular cases where rich text tagging needs to be included in Extra?

Why not use RIS or RDF as the share format rather than bibtex?

That's not great.
Unfortunately, it would be a pretty awkward change to make to my bibtex parser. I can make it so that the extra field roundtrips through BBT, but the stock exporter which exports a single newline won't roundrip that way. And I don't see any translator that roundtrips the extra field.
Arguably, this share functionality of Zotero should offer a format that reliably copies items between libraries.

Arguably, this share functionality of Zotero should offer a format that reliably copies items between libraries.

I totally agree. Shared libraries might fit that bill in certain scenarios, but they also have some problematic downsides too.

I can make it so that the extra field roundtrips through BBT, but the stock exporter which exports a single newline won't roundrip that way.

Does this mean #2 above (round tripping Extra even when rich text tags are applied to variables stored there) is feasible but #1 is the one that might require more awkward changes?
If not, I totally get that BBT can't be expected to do everything. But if so, having BBT handle cases like #2 above would be a definite boon. And then, users importing the citations should hopefully pretty easily add in the line break on the usually rarer occasion that that's actually needed.
Thanks, again, so much for the thought and time you're giving to this use case!

Does this mean no. 2 above (round tripping Extra even when rich text tags are applied to variables stored there) is feasible but no. 1 is the one that might require more awkward changes?

There really ought not to be rich text in the extra field. The problem is more that if at import I'm offered a note-like field, I cannot know whether that originated in a plaintext-source (like the extra field) or a richtext source (like a note). If there is richtext in the note being offered for import, I have to assume it had a note-like source.
The awkward change is that even if you indicate "whenever you see a note field, assume it is plaintext meant for the extra field", I would have to add a special mode to my bibtex parser to say "if you are parsing this field, newlines behave non-latexy". My parser is largely context-free, and adding context is complicated, and this is already a pretty complicated parser. The parser is its own project; BBT sees the content after this parser has done its job, and newlines (aot) will have been transformed already.
I will give it a stab, but it feels really weird to add this to the bibtex parser. It may be possible to use a variant of the verbatim mode.

If not, I totally get that BBT can't be expected to do everything. But if so, having BBT handle cases like no. 2 above would be a definite boon. And then, users importing the citations should hopefully pretty easily add in the line break on the usually rarer occasion that that's actually needed.

I don't mind doing work for a feature that's rarely used, but this change would add an out-of-spec mode to the bibtex parser solely because bibtex is bein (ab)used as a data exchange format. BBT's aim is to generate functionally appropriate output, and that largely means "if you render a bibliography with Zotero, and from BBT-produced biblatex from the same items, it is a design goal that they look the same".
It is another soft goal that data roundtrips where possible, so that would fit this bill, but for this I've changed how BBT exports the extra field, so that it can be parsed correctly by a compliant parser. The output that the stock exporter yields is understandable, but the fact remains that
field = {As you set out for Ithaka
hope the voyage is a long one,
full of adventure, full of discovery.
}

and
field = {As you set out for Ithaka hope the voyage is a long one, full of adventure, full of discovery.}

mean exactly the same in latex.

Some option for "whatever's in extra, treat as plain text" sounds workable to get tagged text into that Zotero field. Though, if your idea for an RDF-based mechanism works out, it sounds like that's a still better way to go given that (1) it doesn't require shoehorning BibTeX and (2) doesn't leave the lingering issue of multiple lines needing to be re-broken out in extra again after import.


Homebrew cask support

Homebrew cask will allow Brooklyn to be:

installed via terminal
receive automatic updates
etc

If you support Homebrew, please also support MacPorts. Homebrew is full of weaknesses and can't be used for mass deployment scenario.

Sounds good to me @ygini, do you want to add that feature?

If only I had the time to do it… I just try to educates people too exposed to Homebrew that the solution isn't scalable and will not fit in an enterprise deployment, unlike MacPorts.
So depending of your goals, MacPorts will offer you a better coverage and will help ITs to deploy your payload correctly.
Which could be a nice things regarding your screensaver :)

Thanks for your feedback 😄

This seems to already be done? https://github.com/Homebrew/homebrew-cask/blob/e0d756cc99e7c49fae499d05653b527f59eae00c/Casks/brooklyn.rb

Great @Braden1996! Sadly, the author didn't inform me 😢
Could you please test it and if everything is fine update Brooklyn's README.md to include this option?

I just ran it (brew cask install brooklyn) and it's working fine

Can confirm! Thanks a lot @Braden1996  & @tarpdalton! 🙌 ❤

Solved in https://github.com/pedrommcarrasco/Brooklyn/pull/24. Thanks a lot to both @Braden1996  & @tarpdalton 🙌


Specify schema to place dbt-snowflake-monitoring objects

dbt-snowflake-monitoring places it's objects in the schema defined in the profiles.yml file.  Is there any way to specify an alternative schema name for those objects?
Thanks,

Hey @mjahammel - this is covered in the dbt docs so we won't repeat here. Glad you got it sorted!
https://docs.getdbt.com/docs/build/packages#configuring-packages


fix(popover): null protection

fix(popover): null protection

:hammer_and_wrench: Type Of Change

[x] Fix
[ ] Feature
[ ] Refactoring
[ ] Documentation

:book: Description
Couple of null protection fixes on popover.
:bulb: Context
Some errors were being triggered in sentry due to this.

Do you think this relates to this?
https://dialpad.atlassian.net/browse/DP-68338
I've been investigating about it but have not been able to reproduce it.

I think my recent change will actually fix this. https://github.com/dialpad/firespotter/commit/1f8e7520c66f0c281a8ede2de4f9723b0ee16a0b#diff-1d3883cc963634603b675b60cb4f8c6911046990a1f74433ba1ae9b1ed925483L376
It is not necessary to do this focus after changing to DtDropdown

I think my recent change will actually fix this. dialpad/firespotter@1f8e752#diff-1d3883cc963634603b675b60cb4f8c6911046990a1f74433ba1ae9b1ed925483L376
It is not necessary to do this focusInput after changing to DtDropdown

Nice! Thanks a lot brad, I'll update that ticket then.


Fixes #2253 - increase server keep alive timeout

See #2253
AWS ALB idle timeout is 60 seconds.  Node.js server timeout must be greater than that to avoid 502 Bad Gateway errors.  This PR increases the default keep alive timeout to 90 seconds.

coverage: 94.193%. remained the same when pulling 9f2b2bf4ae182d2006a3211b335685a8e3dca452 on cody-server-keep-alive-timeout into 8bbb31da1ad12b08c3678ae3362d21b717ac1020 on main.


Can the async stuff be feasibly upstreamed?

Currently you maintain a bunch of downstream forks (which is great!) but I think it'd be even better if async with esp32 could just work out of the box with upstream libraries. Do you think there's a chance to get your work integrated upstream?

Yes, there is. But I think it is a bit too early. For one, I've yet to see something meaningful implemented either by the community, or by me which is using these patches. For example, a pure rust async mqtt client. Or http client. Or http server. Once some of these things start popping up, I'll upstream.

By the way - and if it is not clear - the "async" patches revolve around asynchronous networking. They basically (a) patch the socket2 to be ESP-IDF compatible, and (b) the polling crate (the smol "reactor") to be - ditto - ESP-IDF compatible. Hence my comment that until somebody starts using async networking from Rust (as in async TCP sockets), I don't feel comfortable upstreaming those.
If you don't explicitly require/use async networking (as in instead just using the available HTTP client and MQTT client from esp-idf-svc - note that the later can be "asyncified" - haven't checked the former yet) - you actually don't even need these patches.
For example, async-task (the async executor used by smol and async-std) as well as the executor of futures-rs work just fine, unpatched. I've even implemented and I'm using an async executor (on top of async-task) that can be notified directly from an ISR context. E.g. a button click or a timer firing. But that's another story.

With edge-net on the horizon, I've started upstreaming the async stuff.
First patch that needs to happen is in libc itself: https://github.com/rust-lang/libc/pull/2864
The patches to polling, socket2 and smol itself will follow after that.

Hence my comment that until somebody starts using async networking from Rust (as in async TCP sockets), I don't feel comfortable upstreaming those.

Hi! I recently got a couple ESP32-C3 boards. The project I have in mind would involve an HTTPS client (to send sensor data to a server, and i2c and BTLE to collect said data). I was thinking of using esp-idf for the wifi driver and the TCP implementation, but use Rust async + Hyper + rustls for HTTPS. I’m happy to try out patches.

I'm also attempting upstreaming similar changes but for tokio support: https://github.com/tokio-rs/tokio/issues/5867.  The socket2 changes are the same, though.

Both tokio and smol changes are now upstreamed. Moreover, the changes to the async-io echosystem are also released as async-io 2.
Closed.

That's great news!


Series Filter/Search function

It mostly works, with a minor issue where issuing a refresh while there aren't enough series to fill the screen results in the search not searching through all available series. This is more an issue with the way the paginated data is fetched though...


BUG:  Fails to build on termux

This is a pyzmq bug

[X] This is a pyzmq-specific bug, not an issue of zmq socket behavior. Don't worry if you're not sure! We'll figure it out together.

What pyzmq version?
master
What libzmq version?
master
Python version (and how it was installed)
3.11
OS
termux/android
What happened?
When I try to install via pip, it spews out cmake related errors.
~ $ pip install zmq
Collecting zmq
  Using cached zmq-0.0.0.zip (2.2 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pyzmq (from zmq)
  Using cached pyzmq-26.0.3.tar.gz (267 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... error
  error: subprocess-exited-with-error

  × pip subprocess to install backend dependencies did not run successfully.
  │ exit code: 1
  ╰─> [88 lines of output]
      Collecting cmake>=3.14
        Using cached cmake-3.29.3.tar.gz (30 kB)
        Installing build dependencies: started
        Installing build dependencies: finished with status 'done'
        Getting requirements to build wheel: started
        Getting requirements to build wheel: finished with status 'done'
        Installing backend dependencies: started
        Installing backend dependencies: finished with status 'error'
        error: subprocess-exited-with-error

        × pip subprocess to install backend dependencies did not run successfully.
        │ exit code: 2
        ╰─> [65 lines of output]
            Collecting cmake
              Using cached cmake-3.29.3.tar.gz (30 kB)
            ERROR: Exception:
            Traceback (most recent call last):
              File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pip/_internal/cli/base_command.py", line 169, in exc_logging_wrapper
                status = run_func(*args)
                         ^^^^^^^^^^^^^^^
              File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pip/_internal/cli/req_command.py", line 248, in wrapper
                return func(self, options, args)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^
              File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pip/_internal/commands/install.py", line 391, in run
                requirement_set = resolver.resolve(
                                  ^^^^^^^^^^^^^^^^^
              File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 92, in resolve
                result = self._result = resolver.resolve(
                                        ^^^^^^^^^^^^^^^^^
              File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pip/_vendor/resolvelib/resolvers.py", line 546, in resolve
                state = resolution.resolve(requirements, max_rounds=max_rounds)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pip/_vendor/resolvelib/resolvers.py", line 397, in resolve
                self._add_to_criteria(self.state.criteria, r, parent=None)
              File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pip/_vendor/resolvelib/resolvers.py", line 173, in _add_to_criteria
                if not criterion.candidates:
              File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pip/_vendor/resolvelib/structs.py", line 156, in __bool__
                return bool(self._sequence)
                       ^^^^^^^^^^^^^^^^^^^^
              File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in __bool__
                return any(self)
                       ^^^^^^^^^
              File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 143, in <genexpr>
                return (c for c in iterator if id(c) not in self._incompatible_ids)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 47, in _iter_built
                candidate = func()
                            ^^^^^^
              File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 206, in _make_candidate_from_link
                self._link_candidate_cache[link] = LinkCandidate(
                                                   ^^^^^^^^^^^^^^
              File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 293, in __init__
                super().__init__(
              File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 156, in __init__
                self.dist = self._prepare()
                            ^^^^^^^^^^^^^^^
              File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 225, in _prepare
                dist = self._prepare_distribution()
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 304, in _prepare_distribution
                return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pip/_internal/operations/prepare.py", line 516, in prepare_linked_requirement
                return self._prepare_linked_requirement(req, parallel_builds)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pip/_internal/operations/prepare.py", line 631, in _prepare_linked_requirement
                dist = _get_prepared_distribution(
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pip/_internal/operations/prepare.py", line 68, in _get_prepared_distribution
                with build_tracker.track(req):
              File "/data/data/com.termux/files/usr/lib/python3.11/contextlib.py", line 137, in __enter__
                return next(self.gen)
                       ^^^^^^^^^^^^^^
              File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pip/_internal/operations/build/build_tracker.py", line 122, in track
                self.add(req)
              File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pip/_internal/operations/build/build_tracker.py", line 92, in add
                raise LookupError(message)
            LookupError: https://files.pythonhosted.org/packages/9e/cf/fbd014f36d3407f04fcbd4d216a1431ef05f2ec69a25a2ad3af1de75e835/cmake-3.29.3.tar.gz (from https://pypi.org/simple/cmake/) (requires-python:>=3.7) is already being built: cmake>=3.14 from https://files.pythonhosted.org/packages/9e/cf/fbd014f36d3407f04fcbd4d216a1431ef05f2ec69a25a2ad3af1de75e835/cmake-3.29.3.tar.gz
            [end of output]

        note: This error originates from a subprocess, and is likely not a problem with pip.
      error: subprocess-exited-with-error

      × pip subprocess to install backend dependencies did not run successfully.
      │ exit code: 2
      ╰─> See above for output.

      note: This error originates from a subprocess, and is likely not a problem with pip.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install backend dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

I tried following the old advice from here, but it seems pyzmq was recently upgraded to cmake infra so it no longer is true.
Code to reproduce bug
No response
Traceback, if applicable
No response
More info
No response

building pyzmq from source requires cmake. Try installing cmake first. scikit-build-core tries to install cmake via a wheel if it's not present, but it doesn't work everywhere.

Thanks, actually I already did that, but it seems cmake required libxml2 to also be installed. Installing that fixed the current error, but now I get another one:
~ $ pip install zmq
Collecting zmq
  Using cached zmq-0.0.0.zip (2.2 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pyzmq (from zmq)
  Using cached pyzmq-26.0.3.tar.gz (267 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: zmq, pyzmq
  Building wheel for zmq (pyproject.toml) ... done
  Created wheel for zmq: filename=zmq-0.0.0-py3-none-any.whl size=1262 sha256=6873696fe49cc5eca00f165831e304a886bfd8a0899c4f33cbd11f0ccb050318
  Stored in directory: /data/data/com.termux/files/home/.cache/pip/wheels/16/9e/c7/d497825227491fa00cca08b88ae37f9bcc14809233db76342c
  Building wheel for pyzmq (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pyzmq (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      *** scikit-build-core 0.9.5 using CMake 3.29.4 (wheel)
      *** Configuring CMake...
      loading initial cache file /data/data/com.termux/files/usr/tmp/tmp_avl48zb/build/CMakeInit.txt
      /home/builder/.termux-build/libuv/src/src/unix/process.c:957: assertion "!(options->flags & ~(UV_PROCESS_DETACHED | UV_PROCESS_SETGID | UV_PROCESS_SETUID | UV_PROCESS_WINDOWS_HIDE | UV_PROCESS_WINDOWS_HIDE_CONSOLE | UV_PROCESS_WINDOWS_HIDE_GUI | UV_PROCESS_WINDOWS_VERBATIM_ARGUMENTS))" failed

      *** CMake configuration failed
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyzmq
Successfully built zmq
Failed to build pyzmq
ERROR: Could not build wheels for pyzmq, which is required to install pyproject.toml-based projects

Hm, it looks like the cmake wheel built, but it doesn't work. Can you install cmake with your package manager and check the version? I don't know anything about termux.

I already installed cmake (and libxml2) otherwise we get the first error.
cmake version is 3.29.4

Something's fishy, since it says
scikit-build-core 0.9.5 using CMake 3.29.4 (wheel)

which suggests scikit-build-core is not finding an acceptable cmake, and instead using the cmake wheel, which appears to not be built properly. What's are which -a cmake and cmake --version in the shell before you call pip install?
Also note, the package is not called zmq, it's pyzmq. zmq is a typo-squatting package that only depends on pyzmq.

which shows the path as /data/data/com.termux/files/usr/bin/cmake. The cmake version is 3.29.4.
I tried building the docker image, and got a pyzmq wheel file for aarch64. Installed that, but it couldn't find libzmq.so which is in /data/data/com.termux/files/usr/lib, so then I set LD_LIBRARY_PATH. Now when trying to import zmq, I get ImportError: dlopen failed: cannot locate symbol "PyExc_ImportError" referenced by "/data/data/com.termux/files/usr/lib/python3.11/site-packages/zmq/backend/cython/_zmq.cpython-311.so"...
I guess it's not to be... 😁

I guess it's not to be... 😁
FYI I just got it to install with

SODIUM_INSTALL=system CC=clang pip install --no-binary=pyzmq pyzmq

@tribixbite but does it also load? That's where I run into trouble.

@tribixbite but does it also load? That's where I run into trouble.

The thing I needed it for worked after and the below worked so, yeah

Before installing zmq, I executed:
pkg install libczmq
This solved my similar problem.


Create a stats19 layer

Frontend PR coming momentarily. Limitations are noted there. Mainly, about 155 records have coordinates that fail to transform, and I haven't looked into it yet.
Pete, please run.sh, upload the output to both GCS buckets, and update the manifest. stats19.pmtiles is 22MB for me.

Great to see this. Will take a look with ATE hat on tomorrow, or maybe before if time allows.

Plan to look at this in conversation with @Pete-Y-CS ~15:00. Want to join @dabreegster ?

Sure


Fix typos

Official and organized are spelled incorrectly.

organised could be acceptable, but elsewhere in the doc it says optimizations, so this should be fine.

I just learned it can be spelled both ways: http://grammarist.com/spelling/organise-organize/

I'm not merging PRs into the master branch anymore to not make the merge with the v3.0.0 branch even harder for me later on. I'd love a PR fixing the typos on the v3.0.0 branch though...


[recnet-web] Fix: Use unified link in rec form

Description

When creating new rec, if article is returned by our API (found by arxiv API), we use the "unified link" instead of the original link provided by user. Thus, if user provide a pdf arxiv link, we will overwrite by a arxiv abs link.
Related Issue

#298

Notes

Test
Try to use the any arxiv pdf link when creating new rec, you should see it's replaced by an abs arxiv link.
TODO

[ ] Paste the testing link
[x] Clear console.log or console.error for debug usage
[x] Update the documentation recnet-docs if needed
[x] Version bump in package.json if needed

should it merge to dev first


fixed properties for completion

Resolved conflict with 1.9.2 since these changes are for lsp branch.

The squash came out a little off, but it looks like it just needed to be rebased. After the rebase everything looks right.


Can't login

is this correct? can't login successful

доброго дня. а можно скрин вашего запущенного интерфейса вместе с url?

is this?
I'm using that programm on yellow circle.. is that correct?

<IP_ADDRESS> is your localhost ip address you need to use computer ip address like 192.168.xxx.yyy

 is this? I'm using that programm on yellow circle.. is that correct?

I confirm, the fact is that you specify the local ip of the machine, and not the external one inside the network.


CORS error even when --web.cors.origin flag is passed

What did you do?
I am trying to hit Prometheus API but was getting CORS error, searched over internet and found the flag --web.cors.origin can be used to configure CORS. So I added that and now my kubectl describe pod lists this command in Prometheus container
    Command:
      /bin/sh
      -c
      sed -e '5s/[()]//g' -e 's/SHARD//g'  -e 's/$NAMESPACE/'"$NAMESPACE"'/g;s/$POD_NAME/'"$POD_NAME"'/g;s/$()/'$(SHARD)'/g' /etc/prometheus/config/prometheus.yml > /etc/prometheus/config_out/prometheus.yml && /bin/prometheus --web.enable-admin-api --web.enable-lifecycle --config.file=/etc/prometheus/config_out/prometheus.yml --storage.tsdb.path=/data/prometheus --storage.tsdb.retention.time=365d --web.read-timeout=5m --web.max-connections=512 --storage.remote.read-concurrent-limit=10 --web.cors.origin=".*"

Still when I am trying to hit this from UI we are building it is throwing CORS error.
What did you expect to see?
CORS error should not occur and Prometheus pod should return the data. This is working when hit form postman
What did you see instead? Under which circumstances?
I am getting CORS error even when flag to configure cors is passed
System information
Linux 5.10.0-0.bpo.3-cloud-amd64 x86_64
Prometheus version
prometheus, version 2.27.1 (branch: HEAD, revision: db7f0bcec27bd8aeebad6b08ac849516efa9ae02)
  build user:       root@fd804fbd4f25
  build date:       20210518-14:17:54
  go version:       go1.16.4
  platform:         linux/amd64

Prometheus configuration file
Not needed, let me know if anyone wants specific values to be looked at

Alertmanager version
No response
Alertmanager configuration file
No response
Logs
No response

Could you please provide us with more details regarding the error message you are receiving from the UI? Also, please check if the CORS headers are visible in the web dev tools of the browser.

@roidelapluie attaching screenshots for you to look over. API doesn't return any error code it just says CORS error. Also, I don't see any header related to CORS

Also these are server startup logs
level=info ts=2023-03-06T13:09:31.370Z caller=main.go:426 msg="Starting Prometheus" version="(version=2.27.1, branch=HEAD, revision=db7f0bcec27bd8aeebad6b08ac849516efa9ae02)"
level=info ts=2023-03-06T13:09:31.370Z caller=main.go:431 build_context="(go=go1.16.4, user=root@fd804fbd4f25, date=20210518-14:17:54)"
level=info ts=2023-03-06T13:09:31.371Z caller=main.go:432 host_details="(Linux 5.10.0-0.bpo.3-cloud-amd64 #1 SMP Debian 5.10.13-1~bpo10+1 (2021-02-11) x86_64 raj-test-hyd-monitor
-0 (none))"
level=info ts=2023-03-06T13:09:31.371Z caller=main.go:433 fd_limits="(soft=1048576, hard=1048576)"
level=info ts=2023-03-06T13:09:31.371Z caller=main.go:434 vm_limits="(soft=unlimited, hard=unlimited)"
level=info ts=2023-03-06T13:09:31.373Z caller=web.go:540 component=web msg="Start listening for connections" address=<IP_ADDRESS>:9090
level=info ts=2023-03-06T13:09:31.374Z caller=main.go:803 msg="Starting TSDB ..."
level=info ts=2023-03-06T13:09:31.377Z caller=tls_config.go:191 component=web msg="TLS is disabled." http2=false
level=info ts=2023-03-06T13:09:31.377Z caller=head.go:741 component=tsdb msg="Replaying on-disk memory mappable chunks if any"
level=info ts=2023-03-06T13:09:31.377Z caller=head.go:755 component=tsdb msg="On-disk memory mappable chunks replay completed" duration=2.033µs
level=info ts=2023-03-06T13:09:31.377Z caller=head.go:761 component=tsdb msg="Replaying WAL, this may take a while"
level=info ts=2023-03-06T13:09:31.378Z caller=head.go:813 component=tsdb msg="WAL segment loaded" segment=0 maxSegment=0
level=info ts=2023-03-06T13:09:31.378Z caller=head.go:818 component=tsdb msg="WAL replay completed" checkpoint_replay_duration=16.137µs wal_replay_duration=155.043µs total_replay_duration=184.784µs
level=info ts=2023-03-06T13:09:31.378Z caller=main.go:828 fs_type=EXT4_SUPER_MAGIC
level=info ts=2023-03-06T13:09:31.378Z caller=main.go:831 msg="TSDB started"
level=info ts=2023-03-06T13:09:31.378Z caller=main.go:957 msg="Loading configuration file" filename=/etc/prometheus/config_out/prometheus.yml
level=info ts=2023-03-06T13:09:31.382Z caller=kubernetes.go:266 component="discovery manager scrape" discovery=kubernetes msg="Using pod service account via in-cluster config"
level=info ts=2023-03-06T13:09:31.424Z caller=main.go:988 msg="Completed loading of configuration file" filename=/etc/prometheus/config_out/prometheus.yml totalDuration=45.173445ms remote_storage=1.584µs web_handler=349ns query_engine=647ns scrape=237.087µs scrape_sd=2.202854ms notify=38.233µs notify_sd=29.058µs rules=39.20739ms
level=info ts=2023-03-06T13:09:31.424Z caller=main.go:775 msg="Server is ready to receive web requests."

I noticed that your UI is running on port 3005 while your api is on port 8082. This is the reason why you are currently getting CORS errors. Can you please confirm if your external URL is set correctly in the Prometheus CLI flags?

@roidelapluie
Yes, the test setup is UI (our custom UI) is running on localhost:3005 and the Prometheus is running on K8s pod which is port forwarded to localhost:8082. Do we need to set up an external URL for using the Prometheus server's rest APIs? Also, I couldn't find any such documentation. Can you point me to the correct documentation if it exists?

We automatically add the Access-Control-Allow-Origin header if there is an Origin header, which is typically handled by the browser. It appears that there may be a bug in your custom UI that is causing the CORS error.
To resolve this issue, you may try serving both the UI and Prometheus with the same reverse proxy to avoid CORS issues. Alternatively, you can investigate the bug in your custom UI that is causing the issue.


Translated print statements

translated print statements

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

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

Closed and Reopened this PR to attempt to resolve a specific Travis build failure.

Congrats @JChirinos3201 on your first pull request (PR)! 🎉
Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 📝


support puppetlabs-stdlib 6.0.0 and higher

I wonder if it would be possible to support higher version of puppetlabs-stdlib.
many thanks,
hp

@hpkunz feel free to open a PR to bump versions. Please do check out development guidelines before doing so.

This issue has been resolved in develop with the merge of #111


Created Somatic-PON-QC workflow

Completed steps

[x] Merged #80
[x] Merged #82

Next steps

[x] Follow-up and register wfr.e0cccb29cf44482182507bd33579270c
[x] Merge #83
[x] Merge #84
[x] Merge main into this branch
[x] Covert to review ready PR

cc - @scwatts (in case you would like to stay updated on this workflow)

@alexiswl  - ready for review

Looks like a few items from config/run.yaml have been deleted. Could this have been an issue with merging main into this branch?

Looks like a few items from config/run.yaml have been deleted. Could this have been an issue with merging main into this branch?

updated!


DacpacToolCommand fails

My dotnet.exe build of SSDT project is failing for:
C:\Users\Me\.nuget\packages\msbuild.sdk.sqlproj\2.8.1\Sdk\Sdk.targets(173,5): error MSB3073: The command "..." exited with code 9009. [C:\repo\AdventureWorks_SSDT\AdventureWorks_SSDT.fsproj]

9009 is file not found, but the files are there.
So I open the file, Sdk.targets, the line is <Exec Command="$(DacpacToolCommand)"  and above is a low-prio message, I set it to high, to see the message. It says:
  Running command: dotnet "C:\Users\Me\.nuget\packages\msbuild.sdk.sqlproj\2.8.1\Sdk\../tools/net6.0/DacpacTool.dll" collect-includes
  'dotnet' is not recognized as an internal or external command,
  operable program or batch file.

Ok, so either dotnet is not found (which is very weird, as it's in the path):
C:\repo>dotnet --version
 8.0.400

...or mixing the \ and / are messing something. Also the file is there:
Directory of C:\Users\Me\.nuget\packages\msbuild.sdk.sqlproj\2.8.1\tools\net6.0
26/08/2024  14:17           225,280 DacpacTool.dll

I see this first time today (after some Windows updates of course). VisualStudio 2022 builds the dacpac just fine. Any ideas what could it be?

The SSDT project is here:
https://github.com/fsprojects/SQLProvider/blob/master/tests/SqlProvider.Core.Tests/MsSqlSsdt/MsSqlSsdt.Tests/AdventureWorks_SSDT/AdventureWorks_SSDT.fsproj
...and even if I remove about all and rip it to bare minimum, it still fails. And the same success on CI. So I expect there is something wrong with my machine.

That is an very old SDK version. Could you please try with 2.8.1

Yes, I'm locally running on 2.8.1 which having this issue (not pushed to GitHub as it's broken!)
I don't know if the issue exists in the old one, but I tested with 2.7.1 also and it had it, so this is not regression.

Ah! You should target netstandard2.0, not net6.0 as stated in our docs

Thanks, but didn't help...
  Running command: dotnet "C:\Users\Me\.nuget\packages\msbuild.sdk.sqlproj\2.8.1\Sdk\../tools/net8.0/DacpacTool.dll" collect-includes
  'dotnet' is not recognized as an internal or external command,
  operable program or batch file.
C:\Users\Me\.nuget\packages\msbuild.sdk.sqlproj\2.8.1\Sdk\Sdk.targets(173,5): error MSB3073: The command "..." exited with code 9009. [C:\repo\AdventureWorks_SSDT\AdventureWorks_SSDT.fsproj]

If I run the command manually, it has no output (and no error). Thus I expect my build tool (MSBuild or whatever) somehow don't transfer some the environment variables (e.g. path) properly. Then when it sees "dotnet" in Sdk.targets(173,5) it cannot do it.
But I found a weird workaround: Don't use the "Developer Command Prompt for VS2022" instead use local cmd.exe and it works! It must be that the latest VS2022 updated developer variables are somehow messed in my computer.


Use DataSet instead of array

Workaround for https://github.com/almende/vis/issues/3117

This was resolved in #29


nixosTests.virtualbox: Port to python

Motivation for this change
Making progress on #72828.
I can only get these to run with use64bitGuest=true. The 32-bit VMs just boot very slowly and then stall completely. Not sure if this makes these tests broken?
Includes a fix for network interface names in net-hostonlyif test in the first commit.
cc @blitz since you said you were also working on this.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

@liff thanks for the PR!
@blitz, @tfc, could you take a look at this?

@liff Awesome that you took this on! I wouldn't worry too much about 32-bit tests. If 64-bit guests work with nested virtualization enabled on the host, I'm good. (This should be the default since Linux 5.1)
@flokli I'm without a laptop for a week. Maybe @tfc can find someone to review in the meantime.

For some reason this both stalls on my Intel Laptop, as well as AMD workstation, even after multiple tries.
On the workstation, I also saw some resets of the (virtual) ATA port in the guests' dmesg. I also tried toggling useKvmNestedVirt and use64bitGuest, but it didn't change much.

Apparently I had more luck with --arg useKvmNestedVirt true --arg use64bitGuest true on the intel box, and got tests to succeed there. :tada:
Let's merge this, we can improve these things later.


Bug: Undefined behavior when running generate on a file that doesn't have code

Description
When I ran rm-generator generate on a file that does not contain source code, for example, on a file that contains:
One upon a time, there was a boy named Romeo. Then, Romeo met Juliet!

The rm-generator still generated a readme file for it, discussing Shakespearean tragedies, going deeper into the story, etc... This should not be happening. Instead, the rm-generator should throw an error when it attempts to process a file that does not contain source code!

Reproducing The Issue

Run rm-generator generate none_source_code_file or substitute none_source_code_file with any file name of a file that doesn't have source code in it, in your directory.
Verify that a README.md file has been generated discussing/analyzing the content of your file -- even though it is not source code.

Fix Suggestion

Further enhance the prompts given to the LLM using these Prompt Engineer Tips, particularly focusing on emphasizing the importance of certain prompts, and reiterating the most crucial prompts, i.e.:

      const prompt = `
      Important Note: IF THE FILE CONTENT GIVEN IS NOT SOURCE CODE, REPLY WITH 'Unable To Process'.

      Please generate a README.md file explaining the contents of the following file.
      The README should have a title, description, and code snippets with explanations.
      The code snippet should be pieces of code from the source code file. Not the entire code.
      The title should be # tag, subheadings should be ## tags, and code snippets should be in a code block.
      Do not use "Title" as the title header. Just use directly the title for the documentation as the title header.
      Code snippets should be in a code block using the triple backticks.
      The generated README must be according to documentation stanrdards.
      This README will be used to document the source code file. Generate the README as if you are documenting the source code for a project.

      Important Note: IF THE FILE CONTENT GIVEN IS NOT SOURCE CODE, REPLY WITH 'Unable To Process'.`;

Then handle the Unable To Process message in your code, perhaps print to the screen that README.md generation has halted because the content provided was not code.

As someone completely new with prompt engineering, I never thought something as simple as this could completely break my prompt! Thank you for catching this and providing some tips!
I have improved my prompt and should now properly handle non-code related files or files that contain no code at all.
Closed this issue with PR: #10


ECMPS Home/Landing Page

ECMPS Home/Landing Page Prototype: https://xd.adobe.com/view/a0d50a31-567b-49f0-9058-e98b42bb3b53-f586/
Log in is functional (from both login button/modal or login box). Log in box is removed and profile is visible  after successful login
MP/QA/Emissions link are functional
System banner is out of scope (need to determine how to dynamically update content)

@mosesdeeCVP @Qb10 @tdavydets Hey team! Can you please add your planning poker estimates with ZenHub

Test Case: TC330


config init generates a TOML file with 4 space indent

Scenario:

Follow https://github.com/consensus-shipyard/ipc-agent/blob/main/docs/quickstart-calibration.md
Install all software and compile ipc-agent
./ipc-agent/bin/ipc-agent config init
Review the config file cat ~/.ipc-agent/config.toml

Expected:
TOML file without indent
[server]
json_rpc_address = "<IP_ADDRESS>:3030"

[[subnets]]
id = "/r123"
network_name = "test"
...

Observed:
    [server]
    json_rpc_address = "<IP_ADDRESS>:3030"

    [[subnets]]
    id = "/r123"
    network_name = "test"
    ...

We should probably generate config for calibration at the moment.


test_operator_gpu.py::test_batchnorm_with_type inadvertently retests cases, misses others

Description
Notice the test case duplication in the code:
https://github.com/apache/incubator-mxnet/blob/2abf0b8c2b3361c73c9dfdeabdb8a88278b693d0/tests/python/gpu/test_operator_gpu.py#L406-L424
This is one of the issues fixed by PR https://github.com/apache/incubator-mxnet/pull/18694 in commit https://github.com/apache/incubator-mxnet/pull/18694/commits/4e81d14fb05d48e1eb53e861fb0065b68347f4c0

fixed by #18694


where i find pretrain models?

where i find pretrain models?

A pretrained model is useless, since training is a part of the unsupervised inference process and is done for each new video.


Support for Umami Tags

Hi,
I was wondering if there are plans to directly support Umami tags as described here: https://umami.is/docs/tags
I could not find any mention in the configuration but maybe I'm missing something.
Thank you

Hey :wave:. No, it's currently not implemented. Should be, soon.
Thinking about it, not sure whether to implement it as a param on the tracking fns:
umTrackEvent(eventName, eventData, tag?)

or an env variable that gets automatically added to all payloads
{
  ...payload,
  tag: process.env.NUXT_UMAMI_TAG,
}

Have you used tags in other projects? If yes, how do you use it?
I don't have ~much~ any experience with a/b testing, I'd appreciate your insight.

Hi,
thanks for the quick response.
In raw Umami I set it on the umami script tag, which would match your second idea. I use it to differentiate whether users are logged in or not, since this is important to interpret results.
There seems to be some overlap with the session identify method, but that one is only shown in the session itself. Tags can be used in most screens for filtering and such which is really useful for any segmenting where you need to be able to compare.
Hope this helps

Hi again, @melchiorb.
This is available now in v3.1.1.  Ran into some weird issues, sorry it took a whole week!
Fire me an issue if anything isn't working as intended.
Happy weekend!


Fix the modal dialog can not dismiss automatically

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1186

Relevant Lines:
1186

💛  - Coveralls


The document mismatch with the code

In the file transaction.rs, the comment illustrated that Delete conflicts with Append as below:

While in the function conflicts_with Delete doesn't conflict with Append.

Ah, you are right. I forgot to update the docs in this PR where I relaxed the default isolation level:
https://github.com/lancedb/lance/pull/2537


Auto de-dupe build scripts to link

I removed this in 68014ab8 thinking it wasn't necessary, which it technically
isn't for correctness but it ends up leading to absurdly long command lines to
the compiler for larger projects. This also changes the Vec to be a BTreeSet
to have sorting and deduplication as we go along which should be much faster
than waiting to sort until the very end.

r? @brson

r? @huonw
(rust_highfive has picked a reviewer for you, use r? to override)

@bors r+

:pushpin: Commit 20a0e30 has been approved by brson

:hourglass: Testing commit 20a0e30 with merge f6d8d06...

:broken_heart: Test failed - cargo-mac-32

@bors: r=brson febcab0

:hourglass: Testing commit febcab0 with merge a377fd7...

:sunny: Test successful - cargo-linux-32, cargo-linux-64, cargo-mac-32, cargo-mac-64, cargo-win-gnu-32, cargo-win-gnu-64, cargo-win-msvc-32, cargo-win-msvc-64


Add file icon

Hat tip to @Stuart-Wilcox for showing that this was possible. Looks like this:

And in the tab bar:

Fixes #558

This will resolve issue #558. Huge thank you @50Wliu!

Awesome!


No Vaild camera found

Device android SS A13 - Android 13
we have a issue "No Vaild camera found"
Pls help me check, I can not open camera
But we test cameraX or cameraView application can open camera
I think we issue
private val mCameraList: ArrayList<CameraInfo> by lazy {
        CameraInfo.getValidCameras(
            mCameraManager,
        )
    }

Hi @longquangpham90
The application only support cameras that support manual control (and raw format).


feat(gateway): adds reasons to close events codes

Summary

Closes GH-873

Note: the mapping GATEWAY_CLOSE_EVENT_REASONS can't be defined in gateway.py because code could be None, imo it's better to define it in errors.py/ConnectionClosed any suggestion is welcome
Edit: thinking about it, it could be defined in gateway.py, what's the best choice?
Checklist

[x] If code changes were made, then they have been tested

[ ] I have updated the documentation to reflect the changes
[x] I have formatted the code properly by running task lint
[x] I have type-checked the code by running task pyright

[ ] This PR fixes an issue
[x] This PR adds something new (e.g. new method or parameters)
[ ] This PR is a breaking change (e.g. methods or parameters removed/renamed)
[ ] This PR is not a code change (e.g. documentation, README, ...)

it could be defined in gateway.py, what's the best choice?

Keeping it in errors.py seems fine, since those values are only used with errors.ConnectionClosed and are purely informational to the user.
As it stands right now ConnectionClosed is also used by the voice ws, which has slightly different 4xxx close codes. Adding a new is_voice parameter to ConnectionClosed.__init__ and changing lookups based on that would be one possible solution, but I haven't looked into it yet.

it could be defined in gateway.py, what's the best choice?

Keeping it in errors.py seems fine, since those values are only used with errors.ConnectionClosed and are purely informational to the user. As it stands right now ConnectionClosed is also used by the voice ws, which has slightly different 4xxx close codes. Adding a new is_voice parameter to ConnectionClosed.__init__ and changing lookups based on that would be one possible solution, but I haven't looked into it yet.

we could make the mapping [str, str] and use the same code with a suffix for voice opcodes e.g:
GATEWAY_CLOSE_EVENT_REASONS: Dict[int, str] = {
        "4004": "Authentication failed",
        "4004_voice": ...,
        ...: ...,
}

we'll access reasons with
GATEWAY_CLOSE_EVENT_REASONS.get(str(self.code) if not self.is_voice else str(self.code) + "_voice", "Unknown reason")

also should we add reasons for every close event opcodes or just for opcodes where a reconnect isn't possible? If it's the latter, what voice close event opcodes should we implement? (docs doesn't say almost anything where a reconnect is possible with voice)

we could make the mapping [str, str] and use the same code with a suffix for voice opcodes e.g:

Not worth the additional complexity, having two different mappings with some overlap/duplication is fine. I don't really expect them to change at any point, so this should really not result in extra maintenance burden.

also should we add reasons for every close event opcodes or just for opcodes where a reconnect isn't possible?

Yeah, adding all close codes wouldn't hurt, and makes it easier to compare to the api docs for completeness.


How does Apollo distinguish between multiple traffic lights in the ROI? Also does apollo recognize a flashing red and yellow light?

Dear Contributors and Apollo community,
I am working on traffic light detection module in Apollo and observed a few limitations in the module. Can you share information regarding these:

Does Apollo recognize a flashing red light and flashing yellow light as STOP and YIELD signs respectively? If NO, in which version of Apollo do you plan to include the feature. Is anyone currently working on that aspect?
How does Apollo distinguish between multiple traffic lights in the region of interest? As far as I have observed, a statement in the docs mentioned that it chooses it based on input lights position and shape. However, this is still unclear of how it decides in the event of a non-reliable localization message. Do we have a fault tolerant system ?

Looking forward for your replies.
Best,
Aniketh Reddy.

Hi @aseelam ,
Thank you for showing an interest in Apollo.

We do not recognize the flashing red light yet. Each country has different meaning for flashing lights. For example, in China there is no flashing red or yellow lights. We will plan to support them later.
We use the HD map for traffic light detection. All 3D localization of traffic lights are saved in the HD map.
Thank you,
Tae Eun


init iflow-redux-logger; more thorough README

Simple redux-logger interface

I can split these up into separate PR's if you'd like. I just got carried away :P


meltano run error: 'SubprocessStreamProtocol' object has no attribute '_closed'

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/3347
Originally created by @pandemicsyn on 2022-03-23 14:04:14

What is the current bug behavior?

I’m trying out the new meltano run command and I’m getting this error:
'SubprocessStreamProtocol' object has no attribute '_closed'
I don’t have environments set up currently
I’m using target-postgres (pipelinewise) and tap-mysql (singer)
Works fine with etl FWIW.
I think it’s the target that’s failing but am not sure

via https://meltano.slack.com/archives/C01TCRBBJD7/p1647644988807389
What is the expected correct behavior?
What should be happening?
Steps to reproduce
How one can reproduce the issue?
Relevant logs and/or screenshots
2022-03-23T03:54:22.383009Z [debug    ] Deleted configuration at /opt/meltano/.meltano/run/tap-mysql/tap.f3cb2165-e227-4ffb-9276-524d205a263e.config.json
2022-03-23T03:54:22.383883Z [debug    ] Deleted configuration at /opt/meltano/.meltano/run/target-postgres/target.4daa2906-118d-476b-a50d-562be5def8c3.config.json
2022-03-23T03:54:22.384867Z [debug    ] 'SubprocessStreamProtocol' object has no attribute '_closed'
Traceback (most recent call last):
  File "/home/analytics/.cache/pypoetry/virtualenvs/corsair-meltano-8vM4tV9J-py3.7/lib/python3.7/site-packages/meltano/cli/__init__.py", line 47, in main
    cli(obj={"project": None})
  File "/home/analytics/.cache/pypoetry/virtualenvs/corsair-meltano-8vM4tV9J-py3.7/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/analytics/.cache/pypoetry/virtualenvs/corsair-meltano-8vM4tV9J-py3.7/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/analytics/.cache/pypoetry/virtualenvs/corsair-meltano-8vM4tV9J-py3.7/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/analytics/.cache/pypoetry/virtualenvs/corsair-meltano-8vM4tV9J-py3.7/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/analytics/.cache/pypoetry/virtualenvs/corsair-meltano-8vM4tV9J-py3.7/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/analytics/.cache/pypoetry/virtualenvs/corsair-meltano-8vM4tV9J-py3.7/lib/python3.7/site-packages/meltano/cli/params.py", line 23, in decorate
    return func(*args, **kwargs)
  File "/home/analytics/.cache/pypoetry/virtualenvs/corsair-meltano-8vM4tV9J-py3.7/lib/python3.7/site-packages/meltano/cli/params.py", line 56, in decorate
    func(project, *args, **kwargs)
  File "/home/analytics/.cache/pypoetry/virtualenvs/corsair-meltano-8vM4tV9J-py3.7/lib/python3.7/site-packages/meltano/core/utils/__init__.py", line 71, in wrapper
    return run_async(func(*args, **kwargs))
  File "/home/analytics/.cache/pypoetry/virtualenvs/corsair-meltano-8vM4tV9J-py3.7/lib/python3.7/site-packages/meltano/core/utils/__init__.py", line 50, in run_async
    loop.run_until_complete(future)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 587, in run_until_complete
    return future.result()
  File "/home/analytics/.cache/pypoetry/virtualenvs/corsair-meltano-8vM4tV9J-py3.7/lib/python3.7/site-packages/meltano/cli/run.py", line 84, in run
    await _run_blocks(parsed_blocks)
  File "/home/analytics/.cache/pypoetry/virtualenvs/corsair-meltano-8vM4tV9J-py3.7/lib/python3.7/site-packages/meltano/cli/run.py", line 93, in _run_blocks
    await blk.run()
  File "/home/analytics/.cache/pypoetry/virtualenvs/corsair-meltano-8vM4tV9J-py3.7/lib/python3.7/site-packages/meltano/core/block/extract_load.py", line 406, in run
    await self.execute()
  File "/home/analytics/.cache/pypoetry/virtualenvs/corsair-meltano-8vM4tV9J-py3.7/lib/python3.7/site-packages/meltano/core/block/extract_load.py", line 396, in execute
    await manager.run()
  File "/home/analytics/.cache/pypoetry/virtualenvs/corsair-meltano-8vM4tV9J-py3.7/lib/python3.7/site-packages/meltano/core/block/extract_load.py", line 591, in run
    await self._wait_for_process_completion(self.elb.head)
  File "/home/analytics/.cache/pypoetry/virtualenvs/corsair-meltano-8vM4tV9J-py3.7/lib/python3.7/site-packages/meltano/core/block/extract_load.py", line 670, in _wait_for_process_completion
    await self._handle_head_completed(current_head, start_idx)
  File "/home/analytics/.cache/pypoetry/virtualenvs/corsair-meltano-8vM4tV9J-py3.7/lib/python3.7/site-packages/meltano/core/block/extract_load.py", line 697, in _handle_head_completed
    await next_head.stdin.wait_closed()
  File "/usr/local/lib/python3.7/asyncio/streams.py", line 323, in wait_closed
    await self._protocol._closed
AttributeError: 'SubprocessStreamProtocol' object has no attribute '_closed'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/analytics/.cache/pypoetry/virtualenvs/corsair-meltano-8vM4tV9J-py3.7/lib/python3.7/site-packages/meltano/cli/__init__.py", line 55, in main
    raise CliError(str(err)) from err
meltano.cli.utils.CliError: 'SubprocessStreamProtocol' object has no attribute '_closed'
'SubprocessStreamProtocol' object has no attribute '_closed'

Possible fixes
If you can, link to the line of code that might be responsible for the problem or suggest a fix
Further regression test
Ensure we automatically catch similar issues in the future

[ ] Write additional adequate test cases and submit test results
[ ] Test results should be reviewed by a person from the team

View 6 previous comments from the original issue on GitLab


Do not remove uv itself on pip sync

Summary
Added uv to the list of the preserved packages when building the installer plan. In that case uv is not going to be removed when, for example, using python -m uv pip sync requirements.txt when requirements.txt does not contain uv, but uv is installed in that venv.
Closes #1631
Test Plan
Got through the example attached to https://github.com/astral-sh/uv/issues/1631 and did see the uv deletion in the output
$ python -m uv pip sync requirements.txt
Installed 1 package in 20ms
 + ruff==0.2.2

Nice, thank you!

Welcome to the project.