Allow multiple independent conclusions for checks.

Currently, we can conclude multiple checks at once using:
      - uses: dflydev/check-runs-action@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          conclusion: success

And we can even specify the checks that this should apply to, using JSON:
      - uses: dflydev/check-runs-action@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          checks: [ { "id": "check-1", name: "Check 1" }, { "id": "check-2", name: "Check 2" } ]
          conclusion: success

But it is impossible to set individual conclusions for the different checks. It seems it would be simple enough:
      - uses: dflydev/check-runs-action@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          checks: [ { "id": "check-1", name: "Check 1", conclusion: "success" }, { "id": "check-2", name: "Check 2", conclusion: "failure", output: { summary: "Meep" } } ]

But this is not currently permitted; and we get the odd message:
Error: invalid format for 'checks: SyntaxError: Unexpected token c in JSON at position 46

This forces us to duplicate the job countless times for each individual check, which is sloppy and a maintenance pain.
Ideally, the checks input would accept the full scope of a check's definition, as specified in https://github.com/dflydev/check-runs-action/blob/master/src/namespaces/Inputs.ts#L28-L42

My bad, I did not include " around conclusion. I do not understand why it's necessary, but it apparently is; a bit confusing.


I build this package but it shows cannot import Base,I don't know why

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Modin installed from (source or binary):
Modin version:
Python version:
Exact command to reproduce:

Describe the problem

Source code / logs

Hi @seufisherwang, can you provide more information?
How did you build, what is your OS, what is the traceback, what command did you try to run, etc. would all be helpful information. Thanks!

my os is win10 64 python3.5, I use pip install modin,but when I use "import modin.pandas as pd", it shows wrong information.

@seufisherwang what is the error it is showing? you may need to install with pip install modin[dask] if you don't have a local installation of Dask already.


R_LoadDDSImage: compressed texture images must be power of two

Dæmon fails to load some Xonotic textures, here is an example:
Warn: R_LoadDDSImage: compressed texture images must be power of two "dds/textures/map_xoylent/border_big.dds"
Warn: R_FindImageFile could not find image 'textures/map_xoylent/border_big.tga' in shader 'textures/map_xoylent/border_big'
Warn: Shader textures/map_xoylent/border_big has a colormap stage with no image

You can find the file there: border_big.dds
Note that crunch is able to convert this dds file back to tga without complaining.

Does this help?
https://web.archive.org/web/20130302030405/http://wiki.code43.net/index.php/Texturing
The error message from memory might just be shader file entries missing depending on the dds type. (hence the link.)

I don't know but this link gave the answer for another question I asked there #30
Thank-you


Best metric is now only logged for the first of all the validation subsets

Best metric is now only logged for the first of all the validation subsets
Before submitting

[x ] Was this discussed/approved via a Github issue? (no need for typos, doc improvements)

https://groups.google.com/g/fairseq-users/c/7nk3rJmvlg8

[ ] Did you read the contributor guideline?
[ ] Did you make sure to update the docs?
[ ] Did you write any new necessary tests?

What does this PR do?
Fixes #4162
[2022-01-18 05:41:02,006][fairseq_cli.train][INFO] - begin validation on "test" subset
[2022-01-18 05:43:26,995][test][INFO] -
{"epoch": 150, "test_loss": "24.118", "test_ntokens": "674.778", "test_nsentences": "13.3364",
"test_nll_loss": "0.477", "test_uer": "7.599", "test_wer": "22.706", "test_raw_wer": "22.706",
"test_wps": "1999.9", "test_wpb": "674.8", "test_bsz": "13.3", "test_num_updates": "20000",
"test_best_wer": "14.46"}
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃

looks good to me, thanks! if you sign the CLA then I can merge it

also plz black-format your changes. thanks!

Done formatting. Please bear with me for a little while regarding the CLA

@alexeib PR moved here: https://github.com/pytorch/fairseq/pull/4180 - new github username, CLA on that one should be updated in a centralized way, communication sent to<EMAIL_ADDRESS>


[DISCUSSION GUIDE] Raster data part 2

This week we won't have a discussion unless you would like to continue from last week.
Agenda:

[ ] Survey [15 min]
[ ] Student screen share: debugging data download
[ ] Student screen share: continue with the NDVI assignment

/adminteamassign @earthlab-education/ea-instructors


Question: Can you check if your mod works with weather?

I haven't checked this, but... After browsing through the config files, the "bunker spider" stood out for me.
Its default "MaxEnemyCount = 1" but for numerous occasions, I've encountered more than 1 bunker spider on moons with weather conditions (presumably Eclipse).
This made me wonder how does weather affect enemy spawn? MaxEnemyCount and such, and the fact wether your mod takes those into account. Thank you!

Hi, eclipse weather affects the minimum number of enemies to spawn inside and outside, when a chance to spawn an enemy is available. This is why in daytime, enemies spawn even though they normally would not. However, the minimum number of enemies should not affect what types of enemies that spawn(based on their max count and other variables).
Since this mod doesn't change the spawn logic, only the numbers, weather shouldn't differ from the vanilla behavior. I'm not sure why there is more than one bunker spider spawning, but it could be another mod influencing the spawn rates or forcefully spawning spiders in. As a side note, all configs are disabled by default and do not affect gameplay in any way unless enabled.

Hi, eclipse weather affects the minimum number of enemies to spawn inside and outside, when a chance to spawn an enemy is available. This is why in daytime, enemies spawn even though they normally would not. However, the minimum number of enemies should not affect what types of enemies that spawn(based on their max count and other variables).
Since this mod doesn't change the spawn logic, only the numbers, weather shouldn't differ from the vanilla behavior. I'm not sure why there is more than one bunker spider spawning, but it could be another mod influencing the spawn rates or forcefully spawning spiders in. As a side note, all configs are disabled by default and do not affect gameplay in any way unless enabled.

I see, however, I've encountered the more than one spider spawning situations even when I was playing the game without any mods. Hence my surprise when I found out through your mod that spiders have a maximum number of 1 per map.
Btw, if you don't mind. Can you explain to me how the game treat "dead" monsters? Like how those affect the "MaxEnemyCount" and the "MaxPowerCount"? Thank you!

Once an enemy is killed, it only decreases the power level and allows more enemies to spawn. However, it does not decrease the enemy count for that type, and should not allow more enemies of that type to spawn, if it has already hit the MaxEnemyCount. I don't know why there is more than one spider. 🤔
For the rarity, it is a misconception that it needs to be between 0 and 100. The rarity refers to a weight for that particular type. For example, if a spider has a rarity of 60, and a hoarding bug has a rarity of 40, then the spider has a 60/(60+40) = 60% chance to spawn. Likewise, if both the spider and hoarding bug have a rarity of 1, then both enemies have a 1/(1+1) = 50% chance to spawn.  Limiting the total rarity of all the enemies combined to 100 is just to make it convenient for calculating their spawn chances.

Once an enemy is killed, it only decreases the power level and allows more enemies to spawn. However, it does not decrease the enemy count for that type, and should not allow more enemies of that type to spawn, if it has already hit the MaxEnemyCount. I don't know why there is more than one spider. 🤔
For the rarity, it is a misconception that it needs to be between 0 and 100. The rarity refers to a weight for that particular type. For example, if a spider has a rarity of 60, and a hoarding bug has a rarity of 40, then the spider has a 60/(60+40) = 60% chance to spawn. Likewise, if both the spider and hoarding bug have a rarity of 1, then both enemies have a 1/(1+1) = 50% chance to spawn. Limiting the total rarity of all the enemies combined to 100 is just to make it convenient for calculating their spawn chances.

Understood! Thank you!

This seems to be fixed/answered, so if any errors/bugs still persist, please open a new issue. Thanks!


Type forwarding - mention TypeForwardedFromAttribute as well?

TypeForwardedFromAttribute is remarks indicate:

The TypeForwardedFromAttribute attribute enables the target framework provider to trace a loaded type back to the original assembly it was forwarded from.

I'm not sure if this is still relevant, but perhaps something could be added to this page stating either way what the best practice is.
Perhaps TypeForwardedToAttribute might also benefit from a back link to this page.

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

ID: e0f7fddd-7181-30c5-acb6-5dcdb007fa76
Version Independent ID: 06112331-f980-d74a-5d76-c3b5916a99ba
Content: Type forwarding in the common language runtime
Content Source: docs/standard/assembly/type-forwarding.md
Product: dotnet-fundamentals
GitHub Login: @IEvangelist
Microsoft Alias: dapine

Related to https://github.com/dotnet/dotnet-api-docs/issues/7451.


Software Placeholder for CVD application

Create the application place holder, as per the final design sheet for CVD application.

The software place holder has been completed.


HD-1461: For timelineserver, non delegation token management operation calls authHandler

Allen reviewed this and found this to be the incorrect fix. e.g. if a client sends an OPTIONS request for getdelegationtoken, it will get a delegation token when it shouldn't (its an OPTIONS request).


Build Luigi App with React

Tutorial: https://developers.sap.com/tutorials/luigi-app-react.html
In step two the command npm run eject did not work. Stackoferflow had the answer: https://stackoverflow.com/questions/45671057/how-to-run-eject-in-my-react-app I had to commit my changes first (so quickly setup a private github repo and did that). Afterwards the command did run without an error. With the error I was only able to go until step 5..   either a different solution or the one I found should be mentioned here.
In step five:

At line 27, add:

the line number might be missleading - in my case line 27 looks like that:

const typescriptFormatter = require('react-dev-utils/typescriptFormatter');

Line 29 is empty - maybe that's the place where the line should be added?
The command:

Remove the following line from the file (use search/find and replace, it should be at line 19 and line 311).

Line 19 is correct and it's used in line 345 in the plugins part - and my guess is that I have to delete the whole entry:
        new ModuleScopePlugin(paths.appSrc, [
          paths.appPackageJson,
          reactRefreshOverlayEntry,
        ]),

The Prettier plugin might be responsible for the different lines but the description could be clearer
Step 13

the import link manager was already part of step 10

Add onClick event at the Tile component:

There is no title component in List.jsx

I stopped here. Starting the react app did result in an error.
BR Hendrik

Hello,
thank you for the feedback! We will make changes in the tutorials ASAP. It had been tested before but because of different user setups, it seems to vary between users (with line numbers, etc.) but we weren't aware of the npm run eject issue and will investigate it again

@alexandra-simeonova Any updates? Please close this issue when you have made the changes to your tutorial.

@alexandra-simeonova Any updates? Please close this issue when you have made the changes to your tutorial.

Hello,
The tutorial was updated some time ago with a note about the potential problem with npm. I will close this issue.


Implement updateBody function for Gcp Events Filter

Update Body functionality:
After receiving HttpRequest unbinded from SDK, update incoming HTTP request accordingly.
For PR#3, the detail logic for updateHeader function has not be implemented yet. It only drain all the buffered data and replace with example string This is a example body. Return absl::OkStatus().
Please checkout PR#3 for more detail.

For PR#6, the dependency of HttpRequest (boost beast) has been successfully imported into Envoy.
So the detail logic for updateBody function has been implemented.
updateBody takes an HttpRequest as input parameter and update the previous body from by decoder_callbacks_.modifyDecodingBuffer"() accordingly.


Federation of Image and GeoEvent Server gets stuck "Get Portal oken from..."

Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request

Module Version

3.3.0

Affected Resource(s)

ArcGIS Image Server
ArcGIS GeoEvent Server
ArcGIS Portal

Configuration Files
Expected Behavior
We installed a Mulit-Machine Deployment via DSC. Portal, Hosting Server, Data Store, GeoEvent Server and Image Server on seperate machines.
Expectation would be that the compontens für ArcGS Image Server and GeoEvent Server get installed, licensed and then federated with Portal for ArcGIS.
Actual Behavior
The installation of the base deployment went smoothly and the federation with the Hosting Server (also on a seperate machine) worked as well. With GeoEvent Server and ArcGIS Image Server the installation and licensing were completed successfully but both deployments get stuck while federating with Portal for ArcGIS.
The logs state that the machines are trying to get a portal token
12/28/2021 9:59:56 AM: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = SendConfigurationApply,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'.
12/28/2021 9:59:56 AM: An LCM method call arrived from computer MACHINE with user sid S-1-5-21-3275456840-540740917-969043790-1251.
12/28/2021 10:00:01 AM: [Image Server]: LCM:  [ Start  Set      ]
12/28/2021 10:00:01 AM: [Image Server]: LCM:  [ Start  Resource ]  [[ArcGIS_Federation]Federate]
12/28/2021 10:00:01 AM: [Image Server]: LCM:  [ Start  Test     ]  [[ArcGIS_Federation]Federate]
12/28/2021 10:00:01 AM: [Image Server]:                            [[ArcGIS_Federation]Federate] Get Portal Token from Deployment 'machine.domain.de'
There is no error message shown. The installation just gets stuck at this point.
Steps to Reproduce
Since this behaviour occurs with two servers it could be a communicational problem. We checked if we can reach the the urls from the machines, ports are open and it workd fine with the Hosting server.
Is this a known behaviour? Has anyone a idea what the reason for this behaviour could be?
Important Factoids
References

Hi @mareikekoc,
Lets check the values used for the attributes within the ConfigData.Federation block. Is the federation going through the PortalWebAdaptor, ExternalLoadBalancer\Reverse Proxy or directly through the portal itself via 7443?
For example, directly through portal using 7443:
"Federation": {
            "PortalHostName": "PortalMachine.domain.de",
            "PortalPort": "7443",
            "PortalContext": "arcgis",
            "PortalAdministrator": {
                "UserName": "portaladmin",
                "Password": "portaladmin"
            }
        }

this will construct the url as https://PortalMachine.domain.de:7443/arcgis
or PortalWebAdaptor:
"Federation": {
            "PortalHostName": "PortalWebAdaptorMachine.domain.de",
            "PortalPort": "443",
            "PortalContext": "portal",
            "PortalAdministrator": {
                "UserName": "portaladmin",
                "Password": "portaladmin"
            }
        }

this will construct the url as https://PortalWebAdaptorMachine.domain.de/portal
Perhaps it may be helpful to check the ArcGISFederation-Verbose.txt log file in the dsc logs from the hosting server run to see what values were used for the POST requests, and we can use these for the ConfigData.Federation block of the ArcGIS GeoEvent Server and Image Server.
Thanks,
Cameron K.

Hey Cameron,
Thanks a lot for your fast reply. It already helped :-)
We are quite new to PowerShell and thought that the PortalContext is just stating that the Server should be federated with the defined portal. But knowing it is the Web Adaptor Name it makes sense.
We had
"Federation": {
"PortalHostName": "PortalMachine.domain.de",
"PortalPort": "7443",
"PortalContext": "portal",
"PortalAdministrator": {
"UserName": "portaladmin",
"Password": "portaladmin"
}
}
in the federation blog and changed it to
"Federation": {
"PortalHostName": "PortalMachine.domain.de",
"PortalPort": "7443",
"PortalContext": "arcgis",
"PortalAdministrator": {
"UserName": "portaladmin",
"Password": "portaladmin"
}
}
and now it worked.
Unfortunately the federated Server website in Portal looks strange. It shows a comma in front of Hosting Server and there is no Server role defined for GeoEvent Server:

For Image Server Server it looks as it should be. As far as i can see this has no influence on the functionality. At least for the Hosting Server. Publishing works for example.
Do you also have an idea what a reason for this behaviour could be?
Thanks a lot.
Mareike K.


Attachment is actually 'Incoming Document'

This documentation is confusing: it states 'Represents an attachment object in Dynamics 365 Business Central'. But instead of representing 'Document Attachment' (table 1173) -- that are actually referred to as attachments in the Business Central UI -- this api actually represents an 'Incoming Document' (table 130).

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

ID: 268f0f59-f23e-b0c9-5485-ce532a73db2e
Version Independent ID: a1830a8c-3870-9b77-3d47-7d6492c20f66
Content: attachment resource type - Dynamics NAV
Content Source: dynamics-nav/api-reference/v1.0/resources/dynamics_attachment.md
Service: dynamics365-financials
GitHub Login: @SusanneWindfeldPedersen
Microsoft Alias: solsen

Hello, thanks for your feedback. I agree that this is confusing, which is partially due to an unfortunate naming in the api. If you want to, you can file a product bug. Thanks.


move to cmn v0.12.0

fix #47
should partially solved some issue raised by #48 as well

this PR should help to test if the issue #44 and #25 are fixed with cmn v0.13.0 once it is available too.

:+1: Super nice, thank you :)
Btw., the snippet selection by mouse now works for me, but the editor is unfocussed afterwards.

A bit weird the snippet is working since the patch is not yet released :o

:+1:


Increase coverage for saveas command

Coverage increased (+0.9%) to 86.478% when pulling 3a4e7af7ca7c3cbd170d5de0c3b92768206edd2b on aditya4-v0.5 into d45e6cd9789ffc5c4e7b13a03778e5b6664c6bb5 on v0.5.


Unable to get this working

Hi,
I have followed the walkthrough instructions on this page, and successfully got to the point where I "Click Finish" to create a new project in VS2022.
I then get the following in VS2022:

Solution Explorer:    Solution 'CallingCodeFromVBA' (0 projects).
Nothing else appears in the Solution Explorer.
Background tasks:    Indexing files CallingCodeFromVBA is continually running in the background.

Much appreciated if this issue can be resolved.
Regards, Geoff

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

ID: 7fb5616f-d7aa-e79f-7068-2ac6d00a6bc9
Version Independent ID: c5598dc6-1b8c-586c-c7f1-74ce650f54cb
Content: Walkthrough: Call code from VBA in a Visual Basic project
Content Source: docs/vsto/walkthrough-calling-code-from-vba-in-a-visual-basic-project.md
Product: visual-studio-windows
Technology: office-development
GitHub Login: @John-Hart
Microsoft Alias: johnhart

PS.  I have tried the same procedure with an Excel file and got exactly the same result.

@geoffnormanconsulting  can you please provide feedback through Visual Studio for this issue?  You can do that by accessing the  Help > Send Feedback > Report a Problem in Visual Studio


Allow rate limit quota deduction value to be set for individual endpoints

Context
Currently, API Umbrella subtracts one unit from rate limiting quota per request (regardless of IP or API Key rate limiting rule).
Idea

As an API Owner
I would like to subtract from the rate limiting quota by using a 'consumption' header
so that rate limiting can subtract more than one unit for request(s) to resource intensive requests

Feature request
Allow rate limiting quota to be deducted based on 'consumption' header, rather than one point per request. 'Consumption' header would be a value to indicate how many quota units to subtract, and will be provided by the upstream API.
Rationale
Some API requests consume more resources than others. E.g.

bandwidth - requests may return varying amounts of data
processing - requests may trigger CPU intensive processes, such as aggregation
RAM - requests may trigger memory intensive processes

As a result, not all API endpoints are equal. For APIs that, such as GraphQL, where a single endpoint might provide diverse responses, the API server can calculate a 'consumption' header. The proxy can use this 'consumption' header to deduct from the API consumer quota.

Ping @GUI @tuukka @baijat @shaliko

We currently have the ability to set custom rate limits on a per-API (or sub-URL) basis. That should allow each API Backend to have its own custom rate limit (inside the API Backend, underneath "Global Request Settings"), or you can also rate limit specific paths or HTTP methods differently (under "Sub-URL Request Settings" you can match a more specific path, or do something like rate limit all POST requests differently).
Does that give you the functionality you're looking for, or are you looking for something slightly different?

@GUI, thanks for your response. From my perspective, the Sub-URL Request Settings may be sufficient, if the goal is to provide different rate limits for more resource intensive endpoints/methods.
@tuukka could the Sub-URL Request Settings be made to work for your use-case, or is there something more specific we are overlooking?
Ping @bajiat

I have updated this issue description based on @tuukka's downstream comments. @tuukka please respond here, and clarify any omissions, so that we understand your request.

I have also updated the issue title, based on discussion. Related issue #297

@brylie looks good.

Ah, okay, I think all that makes sense. So basically, you're looking to have more dynamic rate limits where the API backend can send back information on the "cost" of each request (via an HTTP header) and then have it subtract from the quota a dynamic amount (rather than it always representing 1 hit). If I'm understanding that correctly, then I can definitely see the use-cases behind that, and that seems like a pretty clean way to handle that. We've actually encountered some circumstance with our own APIs where something like this might be useful, so I like the idea (although I'm not sure we'll have a chance to get to it anytime soon).
I think implementing this should be pretty doable within API Umbrella. We'd welcome any pull requests implementing it.
I think the main trick to implementing it is that currently we implement all our rate limiting logic before the request is allowed to be made to the API backend (see increment_all_limits which happens during nginx's access phase phase). For this type of functionality, we'd need to shift some of the logic so rate limits could also be applied after the response is received (somewhere in nginx's header_filter phase). A couple other thoughts or things to consider:

This may allow a user to exceed their rate limit by a single request (which may or may not represent a large "cost"), since API Umbrella wouldn't know the full cost of the query until the response is received. It may be useful for API Umbrella to pass information on the user's current rate limits via HTTP headers to the API backend (like we do for the API key ID and the API key roles), so the API backend could implement additional logic around whether the request should be allowed (eg, if they're nearing their limit, but haven't exceeded it, and make a request that represents a high cost).
One potential way to implement this without as many changes to the current codebase might be to still always increment the rate limit by 1 before the request is made. Then the response header from the API could just represent the additional cost beyond 1 to increment things by (so if the header returned 0, then the total cost of the request would still 1, while if the header returned 1, then the total cost would be 2). However, a potential downside of this approach is that there would always be a fixed upfront cost of 1 hit. That might be okay, but it wouldn't allow the API backend to declare some requests to be completely free of cost.

@GUI, could we schedule a brief meeting to discuss contributing this feature?
@tuukka thoughts?
Ping @bajiat

@GUI great to have your insights - thank you!

I suppose it's inevitable to check the remaining quota before letting the request through (and then you can easily pass the quota to the API backend as well), because otherwise API Umbrella wouldn't be protecting the API backend from too much requests. Similarly, the idea under discussion makes it necessary to deduct the quota after the API backend responds, because otherwise the API backend couldn't affect the quota.

An issue that I now see with this otherwise simple model is how to deal with concurrent requests that are using the same quota.

It has to be up to the API backend to limit the combined cost of the requests that it's processing concurrently under single quota. This means there should be a request header that identifies the quota. There might also need to be a request header to somehow communicate which requests have already been taken into account in the version of the quota number that is sent in the request.

How to stop DoS caused by a sheer number of parallel requests? The current quota system can do that (by always deducting by 1 before letting the request through) but perhaps it should be developed even more in the direction of controlling concurrency? Depending on the API you might want to get rid of concurrency issues by setting the number of parallel requests per quota to 1, or you might just want to schedule concurrent requests by multiple users fairly without setting limits.

Regarding always deducting by 1 before the request is let through: Such an offset would make the header a little more opaque. Still, if the header could return -1, then that would express a request completely free of cost. Another option might be to choose the scale of the quota so that the cost of 1 is insignificantly small. However, that would make it necessary to have another method of controlling concurrency again.

Are there currently methods for what it takes to control concurrency?


Process timeout error when view opens

"OS process timed out" error when trying to open big view. View size is hundreds of thousands documents and almost 400mb on disc.
Steps to Reproduce

upload big amount of data to some database
create view for this database
provide simple map function:

function (doc) {
    emit(doc._id, 1);
}

save view and wait for index to build
try to open the view
get the "OS process timed out" error

Expected Behaviour
view just opens
Your Environment
{
    "couchdb": "Welcome",
    "version": "3.2.1",
    "git_sha": "244d428af",
    "uuid": "6c8c861378cadc7a55a1e3565a456dc8",
    "features":
    [
        "access-ready",
        "partitioned",
        "pluggable-storage-engines",
        "reshard",
        "scheduler"
    ],
    "vendor":
    {
        "name": "The Apache Software Foundation"
    }
}

Firefox 110.0
couchDB runs on Ubuntu 20.04, kernel is 5.4.0-139-generic

Additional Context
Related logs:
[info] 2023-02-22T11:42:38.082498Z nonode@nohost <0.286.0> -------- couch_proc_manager <0.1161.25> died normal
[error] 2023-02-22T11:42:38.082591Z nonode@nohost <0.1112.25> -------- OS Process Error <0.1161.25> :: {os_process_error,"OS process timed out."}
[error] 2023-02-22T11:42:38.084320Z nonode@nohost <0.1100.25> 48dd004b0d rexi_server: from: nonode@nohost(<0.480.25>) mfa: fabric_rpc:map_view/5 throw:{os_process_error,"OS process timed out."} [{couch_mrview_util,get_view_index_state,5,[{file,"src/couch_mrview_util.erl"},{line,138}]},{couch_mrview_util,get_view,4,[{file,"src/couch_mrview_util.erl"},{line,82}]},{couch_mrview,query_view,6,[{file,"src/couch_mrview.erl"},{line,262}]},{rexi_server,init_p,3,[{file,"src/rexi_server.erl"},{line,141}]}]
[error] 2023-02-22T11:42:38.084764Z nonode@nohost emulator -------- Error in process <0.1112.25> with exit value:
{{nocatch,{os_process_error,"OS process timed out."}},[{couch_os_process,prompt,2,[{file,"src/couch_os_process.erl"},{line,59}]},{couch_query_servers,map_doc_raw,2,[{file,"src/couch_query_servers.erl"},{line,68}]},{couch_mrview_updater,'-map_docs/2-fun-0-',3,[{file,"src/couch_mrview_updater.erl"},{line,165}]},{lists,foldl,3,[{file,"lists.erl"},{line,1267}]},{couch_mrview_updater,map_docs,2,[{file,"src/couch_mrview_updater.erl"},{line,172}]}]}

[error] 2023-02-22T11:42:38.085516Z nonode@nohost emulator -------- Error in process <0.1112.25> with exit value:
{{nocatch,{os_process_error,"OS process timed out."}},[{couch_os_process,prompt,2,[{file,"src/couch_os_process.erl"},{line,59}]},{couch_query_servers,map_doc_raw,2,[{file,"src/couch_query_servers.erl"},{line,68}]},{couch_mrview_updater,'-map_docs/2-fun-0-',3,[{file,"src/couch_mrview_updater.erl"},{line,165}]},{lists,foldl,3,[{file,"lists.erl"},{line,1267}]},{couch_mrview_updater,map_docs,2,[{file,"src/couch_mrview_updater.erl"},{line,172}]}]}

[error] 2023-02-22T11:42:38.086140Z nonode@nohost <0.480.25> 48dd004b0d req_err(157986948) os_process_error : OS process timed out.
    [<<"couch_mrview_util:get_view_index_state/5 L138">>,<<"couch_mrview_util:get_view/4 L82">>,<<"couch_mrview:query_view/6 L262">>,<<"rexi_server:init_p/3 L141">>]
[notice] 2023-02-22T11:42:38.087003Z nonode@nohost <0.480.25> 48dd004b0d <IP_ADDRESS>:25984 <IP_ADDRESS> admin GET /nvd/_design/test_view/_view/new-view?reduce=false&skip=0&limit=21 500 ok 24777

I already have tried to increase os_process_timeout but it didn't affect anything.

Is the view getting fully build when you query it?

Try increasing the [query_server_config] os_process_limit to something higher, say 500 and see if that help.
Do you see any other errors or crashes in the log? Or use any reduce functions that may produce large results.

@big-r81, I wait until all tasks in tasks view are done, and only then trying to open view.
@nickva, thank you for the suggestion. It doesn't help, i even tried 50000, but problem is still here.
Also I've updated my couchdb installation to 3.3.1, but it doesn't help too.

Installed couchdb locally on my macbook and have got exactly same problem with same data. I found that there are document with more than 120mb of data. I have deleted this document from database and view was loaded successfully. But it doesn't eliminate the problem. I need this document to be in my database and i cannot see any problem for couch to hold and process it.  My max_document_size is equals to 524288000 (500mb).
Fact that couchdb doesn't provide any meaningful error message is very frustrating. Process obviously doesn't time out, it just fails at some point. I've enabled debug logs and found the id of last processed document logged before error has happened and it was exactly same id that I've deleted. I tried to increase all possible process limits but it didn't affect situation at all. It continued to fail after 5-10 seconds when i opened view.
Question is still here: how to eliminate the error and put 120mb document to database?

After some research i've got much more ridiculous behavior. I've loaded big document back to reproduce error again and for some reason error is different now. It just crashes with out of memory after it eats all available 10GB of available RAM.
couchdb-couchdb-1  | out of memory
couchdb-couchdb-1  | [error] 2023-02-27T11:43:22.305878Z nonode@nohost <0.735.0> -------- OS Process Error <0.756.0> :: {os_process_error,{exit_status,1}}
couchdb-couchdb-1  | [info] 2023-02-27T11:43:22.305884Z nonode@nohost <0.274.0> -------- couch_proc_manager <0.756.0> died normal
couchdb-couchdb-1  | [error] 2023-02-27T11:43:22.306495Z nonode@nohost <0.719.0> 7f0651721d rexi_server: from: nonode@nohost(<0.562.0>) mfa: fabric_rpc:map_view/5 throw:{os_process_error,{exit_status,1}} [{couch_mrview_util,get_view_index_state,5,[{file,"src/couch_mrview_util.erl"},{line,208}]},{couch_mrview_util,get_view,4,[{file,"src/couch_mrview_util.erl"},{line,153}]},{couch_mrview,query_view,6,[{file,"src/couch_mrview.erl"},{line,286}]},{rexi_server,init_p,3,[{file,"src/rexi_server.erl"},{line,146}]}]
couchdb-couchdb-1  | [error] 2023-02-27T11:43:22.306650Z nonode@nohost emulator -------- Error in process <0.735.0> with exit value:
couchdb-couchdb-1  | {{nocatch,{os_process_error,{exit_status,1}}},[{couch_os_process,prompt,2,[{file,"src/couch_os_process.erl"},{line,59}]},{couch_query_servers,map_doc_raw,2,[{file,"src/couch_query_servers.erl"},{line,73}]},{couch_mrview_updater,'-map_docs/2-fun-0-',3,[{file,"src/couch_mrview_updater.erl"},{line,174}]},{lists,foldl,3,[{file,"lists.erl"},{line,1267}]},{couch_mrview_updater,map_docs,2,[{file,"src/couch_mrview_updater.erl"},{line,181}]}]}
couchdb-couchdb-1  |
couchdb-couchdb-1  | [error] 2023-02-27T11:43:22.306791Z nonode@nohost emulator -------- Error in process <0.735.0> with exit value:
couchdb-couchdb-1  | {{nocatch,{os_process_error,{exit_status,1}}},[{couch_os_process,prompt,2,[{file,"src/couch_os_process.erl"},{line,59}]},{couch_query_servers,map_doc_raw,2,[{file,"src/couch_query_servers.erl"},{line,73}]},{couch_mrview_updater,'-map_docs/2-fun-0-',3,[{file,"src/couch_mrview_updater.erl"},{line,174}]},{lists,foldl,3,[{file,"lists.erl"},{line,1267}]},{couch_mrview_updater,map_docs,2,[{file,"src/couch_mrview_updater.erl"},{line,181}]}]}
couchdb-couchdb-1  |
couchdb-couchdb-1  | [error] 2023-02-27T11:43:22.306886Z nonode@nohost <0.562.0> 7f0651721d req_err(810725583) os_process_error : {exit_status,1}
couchdb-couchdb-1  |     [<<"couch_mrview_util:get_view_index_state/5 L208">>,<<"couch_mrview_util:get_view/4 L153">>,<<"couch_mrview:query_view/6 L286">>,<<"rexi_server:init_p/3 L146">>]
couchdb-couchdb-1  | [notice] 2023-02-27T11:43:22.307330Z nonode@nohost <0.562.0> 7f0651721d localhost:25984 <IP_ADDRESS> admin GET /nvd/_design/test_view/_view/new-view?reduce=false&skip=0&limit=21 500 ok 13040
couchdb-couchdb-1  | [debug] 2023-02-27T11:45:08.436952Z nonode@nohost <0.723.0> -------- Index shutdown by monitor notice for db: shards/80000000-ffffffff/nvd.1677477593 idx: _design/test_view
couchdb-couchdb-1  | [debug] 2023-02-27T11:45:08.437287Z nonode@nohost <0.723.0> -------- Closing index for db: shards/80000000-ffffffff/nvd.1677477593 idx: _design/test_view sig: "9a0adb2bcc4e63b9bb9de044429dd869" because normal
couchdb-couchdb-1  | [debug] 2023-02-27T11:46:09.438794Z nonode@nohost <0.724.0> -------- Index shutdown by monitor notice for db: shards/00000000-7fffffff/nvd.1677477593 idx: _design/test_view
couchdb-couchdb-1  | [debug] 2023-02-27T11:46:09.439016Z nonode@nohost <0.724.0> -------- Closing index for db: shards/00000000-7fffffff/nvd.1677477593 idx: _design/test_view sig: "9a0adb2bcc4e63b9bb9de044429dd869" because normal

It happens while processing exactly same document. Checked my another server with same problem and memory usage is normal while i still get os process timed out error.

Hi,
some suggestions:

You shouldn't put such large documents in your db.
Did your view process this large file? Can you exclude it from view-processing?
You can also try to increase [couchdb] os_process_timeout, but I'm really shure you hit an request timeout.
Try to increase [fabric] request_timeout.
Maybe you hit the memory of the Javascript view server (default 64MB).

@big-r81 good idea about couchjs memory limit.
Seeing {{nocatch,{os_process_error,{exit_status,1}}}, point to that as well.
With documents that large couchjs process will crash because it has a heap size limit of 64Mb by default. You can try to increase using the -S ... parameter. That parameter can be inserted in the  COUCHDB_QUERY_SERVER_JAVASCRIPT=".../couchjs -S 536870912 .../main.js.  Normally that's defined in bin/couchdb startup script but you can set it outside of it and it will take your value.

@nickva, thank you. It works as expected now.


Fix namespace generation

Thank you for the contribution!
You have to update the test snapshots for the build to succeed.


Circular imports

Feature branch: 5.1
The current module structure makes circular imports fairly easy. The package should be restructured to improve the architecture and minimize the risk of creating circular imports while still allowing for flexibilities.

Create interface_toolbox.py to accommodate to miscellaneous functions which depended on interface

Fixed dependencies and created diagram under docs/modules.uxf


Create an enum to handle the Task Status

Description
Currently, the Task status in TaskInfo is a String
public class TaskInfo {
    protected String status = "";
    protected int taskUid = 0;
    protected String indexUid = "";
    protected String type = null;
    protected Date enqueuedAt = null;

    public TaskInfo() {}
}

But the status could only be one of this value: enqueued, processing, succeeded, failed, canceled.
It could be great to create an enum to handle this like in the .NET repository.

I can work on it!

Hi @TheClerici,
Of course 😃


Propagate json error object to the caller

When plugin errors out, it prints out a JSON object to stdout
describing the failure. This object needs to be propagated out
through the plugins and to the container runtime. This change
also adds Print method to both the result and error structs
for easy serialization to stdout.

s/propogate/propagate fyi

@jonboulle PTAL

lgtm


Move *RestController.java and *Payload.java

*RestController went to cts/controller
*Payload went to cts/controller/payloads
This is meant to move us toward a DAO/model/service architecture
Unrelatedly, I also tried to fix the idtypes folder bug.

You won't need the idtypes folder to fix the build error. In the .classpath file, there's an entry that declares idtypes as a source folder. Since the .classpath and .project files are supposed to be generated automatically by your development environment (at least when you're using maven) they shouldn't be in the project in the first place. Removing the two files should fix the issue.


feat: populate metadata with build information

Fixes #19
Depends on https://github.com/near/near-sdk-rs/pull/927

Looks like we're going to have to merge this in before https://github.com/near/cargo-near/pull/74, since it depends on a version of near-sdk that in-turn depends on near-abi v0.2.0. CI

@miraclx I was waiting for 4.1.0-pre.4 release (expected it to come a bit sooner) to not have to bother with git revs, but will update & merge this PR to unblock you.


CM-1145: Fix for infinite loading indicator when geoloction is blocked

Jira Ticket:
CM-1145
Description:

renamed isCityNameLoading to acquiringGeolocation
fixed a condition where location 0 was loaded from the querystring with geolocation blocked causing an infinite loading indicator

Where's this part?

fixed a condition where location 0 was loaded from the querystring with geolocation blocked causing an infinite loading indicator

Where's this part?

fixed a condition where location 0 was loaded from the querystring with geolocation blocked causing an infinite loading indicator

It's right before the console.log
    if (qsLocation === "0") {
      setIsCityNameLoading(true)
      setAcquiringGeolocation(true)
      if (navigator.geolocation) {
        navigator.geolocation.getCurrentPosition(showPosition)
      } else {
        setAcquiringGeolocation(false);
        console.log("Geolocation is not supported by your browser")
      }
    }


Tried to run my integration tests:
git clone git@codeberg.org:mellium/xmpp.git
cd xmpp
go test -v -tags "integration" -run Integration ...

Annoyingly, this only happens when running integration tests. This exact output happens after bumping the version in go.mod to 1.22 or 1.23, but a similar thing happens with the existing Go version (currently 1.18)
What did you see happen?
$ go test -v -tags "integration" -run Integration ...
go: updates to go.mod needed; to update it:
go mod tidy
$ go mod tidy
$ go test -v -tags "integration" -run Integration ...
go: updates to go.mod needed; to update it:
go mod tidy
What did you expect to see?
Tests run after running go mod tidy.
EDIT: everything appears to be working in CI, so maybe it's something to do with my setup or Arch specifically.

Related Issues and Documentation

modules: "updates to go.mod needed" when I test 1.20 code using 1.21+ #65751 (closed)
cmd/go: run constantly fails and suggests 'go mod tidy' #41416 (closed)
cmd/go: confusing error message when `go list` is missing checksums for patterns outside the main module #59755
cmd/go: mod tidy doesn't remove unused dependencies in go.sum, in same cases #37842 (closed)
cmd/go: mod tidy removes lines that build seems to need #31248 (closed)
cmd/go: go test ./... or go build should not update existing dependencies and only add new dependencies as needed to satisfy imports #37780 (closed)
x: keep versions syncronized #37840 (closed)
cmd/go: 'go mod tidy' removes needed requirements when the module directory ends in '/testdata' #28481 (closed)
cmd/go: require directive fails verifying local modules #33873 (closed)
cmd/go: 'go mod tidy' retains sums for modules in the requirement graph but not the build list #39424 (closed)

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

... targets every package in the dependency graph which, I assume this should have been ./...

I stared at this for ages trying to figure out where in the world that dependency came from and what the difference between CI and local was; that's it. Thanks!


[Request] Ability to add kernel regularization to existing model through get_layer() interface

Using keras 2.2.4 on Windows 7 with Python 3.5
Augment the interface to get_layers so that one can add kernel regularizes to it after forming the model.  This allows a much cleaner interface to add regularizes to every layer in a model without having to type them in explicitly.
An example use of the new interface I propose.
def globalWeightDecay(model, decay, weightBias = False):
    # Go through ever layer in the model and apply l2 regularization with the weight specified.
    for layerIdx, tmp in enumerate(model.layers):
        if hasattr(tmp, 'kernel_regularizer'):
            model.get_layer(index=layerIdx).kernel_regularizer = keras.regularizers.l2(l=decay)
        if weightBias and hasattr(tmp, 'bias_regularizer'):
            layer.bias_regularizer = keras.regularizers.l2(l=decay)
        #
    #
    return model

To utilize this interface you would do the following:
model = buildModel() # Builds the initial model
model = globalWeightDecay(model, 1e-2, False)
model.compile(optimizer = keras.optimizers.Adadelta(lr=learningRate), loss = 'logcosh')

model.losses shows would show all the regularizers (in addition to the logcosh specified here).

Any updates on this?

No.

Try this:
# a utility function to add weight decay after the model is defined.
def add_weight_decay(model, weight_decay):
	if (weight_decay is None) or (weight_decay == 0.0):
		return

	# recursion inside the model
	def add_decay_loss(m, factor):
		if isinstance(m, tf.keras.Model):
			for layer in m.layers:
				add_decay_loss(layer, factor)
		else:
			for param in m.trainable_weights:
				with tf.keras.backend.name_scope('weight_regularizer'):
					regularizer = lambda: tf.keras.regularizers.l2(factor)(param)
					m.add_loss(regularizer)

	# weight decay and l2 regularization differs by a factor of 2
	add_decay_loss(model, weight_decay/2.0)
	return

It really boggles the mind that something which is literally a single optimizer parameter in PyTorch and is an essential regularization technique that's used by everyone pretty much all the time there is not really doable in Keras. I've spent hours trying to track down an "official" way of doing this, and incredibly there isn't one.


Documentation: review how to define a primary index section

Review this section, make sure it is an how to (a receipe not how to cook)
https://github.com/EOSIO/eosio.cdt/blob/docs/starter/docs/06_how-to-guides/02_multi-index/how-to-define-a-primary-index.md

This has been addressed by previous work.


Use common includes for orchestration pages

Within each major version, a series of pages about Kubernetes is driven by a series of includes about Kubernetes. Kubernetes itself is CRDB-version-agnostic.  Rather than moving the content pages around, this PR shares the common includes related to Kubernetes among major version docs. This will ease maintenance of this content, and may also improve site build times by reducing the # of files being built.
This PR:

Moves images/v24.2/kubernetes*.png to images/common/
Moves _includes/v24.2/orchesteration/ to _includes/common/orchestration
Updates includes within _includes/common/orchestration to point to the common content for their own includes and to use the common images.

No includes other than orchestration includes are called within _includes/v24.2 and no other v24.2 pages use the common images.

Updates pages within v24.2/ to point to the common content for orchestration includes and images.
Tweak the cockroachcloud/use-cloud-instead.md include to use a Markdown link.
Where an include I review or modify contains no Liquid, update related include statements to include_cached.
Backports the above to v24.1, v23.2, v23.1, v22.2

Tests:

Local build
Local linkcheck

@taroface The simplest way for me to address the include mistakes was to go back to before the backports, fix the mistakes in v24.3, and make sure that v24.2 and v24.3 were in sync. I will pause here for your re-review before redoing the remaining backports.


Fix structure of polymorphic (and indirect?) assignment wording.

Duplicate of #452

Duplicate of #452


update for MS3 type of cleavable crosslink data.

Changes include:

Data loading bug
Child Scan match
Parent ions information for cleavable crosslinker.

This pull request is ready. I have these weird data in \bison\share\Users\Lei\XL_SyntheticLibrary. Let me know if you have any questions running the data for testing.

much of this PR is covered by unit test. So that is looking good. maybe just a couple spots missing/


[FX-4618] Migrate Section to TailwindCSS

FX-4618
Description
This pull request migrates Section component to TailwindCSS.
Previous version of Section component  https://github.com/toptal/picasso/blob/master/packages/base/Section/src/Section/Section.tsx.
How to test

Temploy
Visual changes should break at the exact same places where empty feature/tailwind-w20 pull request breaks (https://github.com/toptal/picasso/pull/4306)

Development checks

[x] Add changeset according to guidelines (if needed)
[x] Read CONTRIBUTING.md and Component API principles
[N/A] Make sure that additions and changes on the design follow Toptal's BASE design, and it's been already discussed with designers at #-base-core
[N/A] Annotate all props in component with documentation
[N/A] Create examples for component
[N/A] Ensure that deployed demo has expected results and good examples
[N/A] Ensure the changed/created components have not caused accessibility issues. How to use accessibility plugin in storybook.
[x] Self reviewed
[N/A] Covered with tests (visual tests included)

Breaking change

[N/A] codemod is created and showcased in the changeset
[ ] test alpha package of Picasso in StaffPortal

All development checks should be done and set checked to pass the
GitHub Bot: TODOLess action

PR commands

List of available commands:

@toptal-bot run package:alpha-release - Release alpha version
@toptal-anvil ping reviewers - Ping FX team for review

PR Review Guidelines

When to approve? ✅
You are OK with merging this PR and

You have no extra requests.
You have optional requests.

Add nit: to your comment. (ex. nit: I'd rename this variable from makeCircle to getCircle)

When to request changes? ❌
You are not OK with merging this PR because

Something is broken after the changes.
Acceptance criteria is not reached.
Code is dirty.

When to comment (neither ✅ nor ❌)
You want your comments to be addressed before merging this PR in cases like:

There are leftovers like unnecessary logs, comments, etc.
You have an opinionated comment regarding the code that requires a discussion.
You have questions.

How to handle the comments?

An owner of a comment is the only one who can resolve it.
An owner of a comment must resolve it when it's addressed.
A PR owner must reply with ✅ when a comment is addressed.

@toptal-bot run package:alpha-release

@toptal-bot run package:alpha-release

@toptal-anvil ping reviewers


Support stack traces of all threads

Hello,
Your tool is the best we could find for getting the stack trace of one thread,
is there a way, even partial, to get the stack traces of all threads ?
This will be for us the feature that will make this project the best tool above all.
I am willing to help for the Linux part.
It's lightweight, easy to implement, and the code is readable, thank you for this awsome project.

@bombela I wrote https://gist.github.com/bkietz/9e72ff72d58c6f9d977845c39fd63a21 as an example of how one could accomplish this under pthreads. I'm not sure if there's a more simultaneous/less hacky way to get all threads to stop; gdb seems to use signals to the non-segfaulted threads in a similar fashion. Is this an implementation you'd like a PR for? If so, any guidance on how you would like it structured in backward::?

OTOH, having written that I think the correct solution to the all-threads-trace problem is probably to allow the process to core dump then reading stacks out of that. This has two advantages over in-process tracing:

When a signal handler exists, the non-signaled threads continue execution until they receive signals of their own. However if a signal is known to be fatal, the OS can shut threads down more aggressively- this means it is possible to can get less out-of-date traces from the threads which didn't segfault than would be possible with interthread signals
We'd probably be reading the core dump with gdb or another debugger and we'd have access to the process' full memory, so we could print not just snippets of the source files but values of local variables as well

So maybe this should be closed as out of scope for backward.

@bkietz sure it's close to out of scope feature, but if it could be done in a clean maner even perhaps using a complementary repo it would be a killer feature.

I don't mind the addition of a "pthread.hpp" file or something like that. And overtime it could even morph into a cross platform solution "threads.hpp".

As for the proposed implementation @bkietz, it must possible to enumerate the threads via the OS. After all, ps and top can do it!

It's definitely possible; GDB does it by reading procfs. I intentionally avoided this because doing so adds more syscall delay between the first signal and signalling the other threads, which degrades the quality of the traces from other threads. A manual table of pthread_t is more work but lets you get straight to signaling. If the boilerplate is intolerable we could read procfs instead (unless you know of a faster way to enumerate threads?).

The manual table also limits you to the threads that you control directly. So threads created by a library won't be visible unless the library happens to also use the same registry (including the same ABI).
Threads that are short lived cannot be registered. Because after the thread terminates. The thread ID could be reused as the pthread documentation describes.
So threads that terminate should be unregistered.
I don't think there is any other way than procfs for listing them all. And that wouldn't be atomic and too slow as you said.
So... a registry with some ways to register in start and deregister on thread termination seems to be the way to go.
I guess its always possible to override pthread_create and wrap the function to execute with a push/pop cleanup to deregister on termination. See https://linux.die.net/man/3/pthread_cleanup_push

Yet another option would be to look even more like gdb: provide a helper to be executed (very) early in main() which calls vfork and ptrace. The tracing process watches for new/exiting threads (potentially child processes too, needs more thought) and maintains the listing of what needs a tgkill. This introduces some overhead due to context switching into the tracing process when the initial signal is received and couldn't be used at the same time as a debugger (since only one process may ptrace another). Also would require some doc for use in containers since some (docker at least) forbid ptrace calls by default. Still, seemed worth mentioning on the strength of "one line addition for consumers"


feat: Use sharedInformer for watch

Use SharedInformer and add a delete event instead of watch. This will keep the channel open.

manual  e2e:
...
NAME: carbon-e2e
LAST DEPLOYED: Mon Apr 10 08:35:36 2023
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
+ kubectl wait --for=condition=available deploy carbon-e2e-carbon-intensity-exporter -n kube-system --timeout=300s
deployment.apps/carbon-e2e-carbon-intensity-exporter condition met
+ sleep 15
+ kubectl get configmap carbon-intensity -n kube-system
NAME               DATA   AGE
carbon-intensity   7      10s
+ kubectl describe configmap carbon-intensity -n kube-system
Name:         carbon-intensity
Namespace:    kube-system
Labels:       <none>
Annotations:  <none>

Data
====
forecastDateTime:
----
2023-04-10 15:40:00 +0000 UTC
lastHeartbeatTime:
----
2023-04-10 15:35:45.209475964 +0000 UTC m=+5.899156339
maxForecast:
----
579.523333
message:
----

minForecast:
----
463.519714
numOfRecords:
----
288

BinaryData
====
data: 29048 bytes

Events:  <none>
+ sleep 10
+ kubectl delete configmap carbon-intensity -n kube-system
configmap "carbon-intensity" deleted
+ sleep 15
+ kubectl get configmap carbon-intensity -n kube-system
NAME               DATA   AGE
carbon-intensity   7      5s
+ kubectl describe configmap carbon-intensity -n kube-system
Name:         carbon-intensity
Namespace:    kube-system
Labels:       <none>
Annotations:  <none>

Data
====
message:
----

minForecast:
----
463.519714
numOfRecords:
----
288
forecastDateTime:
----
2023-04-10 15:40:00 +0000 UTC
lastHeartbeatTime:
----
2023-04-10 15:36:15.448189018 +0000 UTC m=+36.137659444
maxForecast:
----
579.523333

BinaryData
====
data: 29048 bytes

Events:  <none>
+ sleep 5
+++ kubectl get pods -n kube-system -o=name
+++ grep carbon-e2e-carbon-intensity-exporter
+++ sed 's/^.\{4\}//'
++ echo carbon-e2e-carbon-intensity-exporter-778578866d-98tcx
+ kubectl logs carbon-e2e-carbon-intensity-exporter-778578866d-98tcx -c carbon-data-exporter -n kube-system
I0410 15:35:44.350814       1 options.go:108] Neither kubeconfig file nor control plane URL was specified. Falling back to in-cluster config.
I0410 15:35:45.215290       1 configmap.go:72] configMap carbon-intensity has been created
I0410 15:36:00.322859       1 configmap.go:94] configMap carbon-intensity has been deleted
I0410 15:36:00.467358       1 configmap.go:72] configMap carbon-intensity has been created
I0410 15:36:05.301274       1 configmap.go:72] configMap carbon-intensity has been created
I0410 15:36:15.328760       1 configmap.go:94] configMap carbon-intensity has been deleted
I0410 15:36:15.457186       1 configmap.go:72] configMap carbon-intensity has been created
+ cleanup
+ kind delete cluster -n carbon-e2e
Deleting cluster "carbon-e2e" ...
Deleted nodes: ["carbon-e2e-control-plane"]


darwin_amd64/link: combining dwarf failed: Unknown load command 0x80000033<PHONE_NUMBER>)

What version of Go are you using (go version)?

$ go version
go version go1.13.15 darwin/amd64

Does this issue reproduce with the latest release?

I just execute the command of go build.
main.go

package main

import "github.com/micro/go-micro"

func main() {
	service := micro.NewService()
	service.Init()
	service.Run()
}

What did you expect to see?
build success
What did you see instead?
# github.com/weirubo/go-micro-v1
ld: warning: -no_pie is deprecated when targeting new OS versions
ld: warning: non-standard -pagezero_size is deprecated when targeting macOS 13.0 or later
/Users/frank/go/go1.13.15/pkg/tool/darwin_amd64/link: /Users/frank/go/go1.13.15/pkg/tool/darwin_amd64/link: combining dwarf failed: Unknown load command 0x80000033<PHONE_NUMBER>)

Sorry, we don't support 1.13 anymore.

Thank you for your answer, and i change the go version to go v1.14.15, go v1.15.15, go v1.16.15, the result of go v1.14.15 and go v.15.15 the same with go v1.13.15
But, go v1.16.15 happend the new error:

# github.com/weirubo/go-micro-v1
ld: warning: -no_pie is deprecated when targeting new OS versions
ld: warning: non-standard -pagezero_size is deprecated when targeting macOS 13.0 or later
/private/var/folders/w7/18c05pys5zjb25d2t6qr7s7m0000gn/T/GoLand/___go_build_github_com_weirubo_go_micro_v1
panic: qtls.ConnectionState not compatible with tls.ConnectionState

goroutine 1 [running]:
github.com/lucas-clemente/quic-go/internal/handshake.init.1()
        /Users/frank/go/pkg/mod/github.com/lucas-clemente/quic-go@v0.13.1/internal/handshake/unsafe.go:17 +0x12e

The currently supported versions of Go are 1.18 and 1.19.

I also have this problem when update macos 13.0

Because i must use go-micro v1.18, so i read many article, last  i find this blog, if you need , could read it too.
https://imlht.com/archives/239/
Thanks  a lot to the author of this blog.

Does anyone know if there is a workaround to get past this error without upgrading Go versions?

I have solve this problem by installing the XCode v13.4.1 manual.
Then use command `xcode-select -p' to change the xcode command line tools version.
I works!!
@BeautifulMaker

I have solve this problem by installing the XCode v13.4.1 manual. Then use command `xcode-select -p' to change the xcode command line tools version. It works!! @BeautifulMaker

I also have this problem when update macos 13.0

I try to install Xcode v13.4.1 but got this message
The version of Xcode installed on this Mac is not compatible with macOS Ventura. Download the latest version for free from the App Store.
How you solved that?

You can manually download an older version here. This worked for me until I upgraded to MacOS Ventura 13.3, and now even using Xcode 13.4.1 or older versions doesn't solve the problem!
@fonoisrev I wonder how you identified you had to downgrade xcode version? How do you even debug this error?

May be this config can solve your problem.
add environment config CGO_ENABLED=0

when i update go version, it works, but i dont know why...


circuiteria:0.1.0

I am submitting

[x] a new package
[ ] an update for a package

Description: Circuiteria allows users to create nice block circuit diagrams. The package includes many features, such as different wire styles, relative positioning, logic gates, basic block elements (ALU, MUX, etc.) and many others. Since it uses CeTZ, it is easy to complement the circuit by manually adding CeTZ draw calls
I have read and followed the submission guidelines and, in particular, I

[x] selected a name that isn't the most obvious or canonical name for what the package does
[x] added a typst.toml file with all required keys
[x] added a README.md with documentation for my package
[x] have chosen a license and added a LICENSE file or linked one in my README.md
[x] tested my package locally on my system and it worked
[x] excluded PDFs or README images, if any, but not the LICENSE

Thank you :)


Link Css file not working in Nextjs

Guidelines for posting a new issue

Please replicate your issue with this CodeSandBox and provide a link to it along with the issue description

 <Head>
      <link
        rel="stylesheet"
        type="text/css"
        charSet="UTF-8"
        href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css"
      />
      <link
        rel="stylesheet"
        type="text/css"
        href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick-theme.min.css"
      />
    </Head>

But these file not loaded in rendering

I would import it like this in the layout file if you use app router or in the _app file if you use page router.
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

I have the same problem. I installed everything according to the instructions

ah ok, I see you guys use next.js with turbopack. I ran into the same issue, somehow it is not working with turbopack I have no clue why. Just turn it off and it will work.
I think for the long run I switch to a library called "embla-carousel" it looks like it is better maintained then this library. There are a couple of more bugs I ran into.

I have only tested it in my enterprise application so there are a lots of other dependency I thought that may be the cause. But if you can reproduce with a new next.js project would be nice if you either adjust the title of this issue or create a new issue and close this one.

I'm having issues importing the css. It doesn't seem to find the file. I'm using next JS.

ah ok, I see you guys use next.js with turbopack. I ran into the same issue, somehow it is not working with turbopack I have no clue why. Just turn it off and it will work. I think for the long run I switch to a library called "embla-carousel" it looks like it is better maintained then this library. There are a couple of more bugs I ran into.

I also given up this package

this issue was fixed for me after using the following code given below inside the _document.js file
/** @format */

import { Head, Html, Main, NextScript } from "next/document";

export default function Document() {
  return (
    <Html lang="en">
      <Head>

        <link
          rel="stylesheet"
          type="text/css"
          charSet="UTF-8"
          href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css"
        />
        <link
          rel="stylesheet"
          type="text/css"
          href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick-theme.min.css"
        />
      </Head>
      <body>
        <Main />
        <NextScript />
      </body>
    </Html>
  );
}

Yeah, same issue with Vite in Laravel.. what a shame


Add missing examples/init.py

Required for:
python3 -m examples.case_study

Interesting! Yeah, I can't say I fully understand how Python goes looking for stuff. Thanks for the PR!

More discussion on the topic:
https://github.com/python/mypy/issues/2773
without the init.py it's possible that mypy will ignore the directory
and not type check an entire module. But things got complicated with
certain limited module types that can be added without a init.py in
python3.
On Mon, Apr 5, 2021 at 9:22 AM Michael Whittaker @.***>
wrote:

Interesting! Yeah, I can't say I fully understand how Python goes looking
for stuff. Thanks for the PR!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mwhittaker/quoracle/pull/3#issuecomment-813483290,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFA2A7IROQ5EHC4FNLK3Y3THHPUFANCNFSM42FKBK4Q
.


3.3.4 UI Bug. Browser refresh (F5) fails with 404 not found page

Describe the bug
On the 3.3.4 UI version, if you go to workflow details screen (or some others as well) and try to refresh the page using F5 or Mouse Right click + Refresh option, the app gets a 404 page. You need to go back to home screen for it to work again.
IMPORTANT:  Issue only happens when I copy the build result (from yarn build command) to the server resources folder and access all the pages as static files.  When I run the UI in development mode the refresh works.
Details
Conductor version:
Persistence implementation: Oracle, Elastic 7
Queue implementation: Dynoqueues, RabbitMQ etc
Lock: Redis or Zookeeper?  NO lockin
Workflow definition: Any
Task definition: Any
Event handler definition: Any
To Reproduce
Steps to reproduce the behavior:

Go to UI homescreen
Click on Search button
Scroll down to any workflow that is COMPLETE or RUNNING or any other state
Once the workflow details screen opens, press F5 (or use mouse right click => Refresh)

Expected behavior
The screen should be refreshed.
Screenshots
If applicable, add screenshots to help explain your problem.

Never mind. Found a fix for this one. I the index.js I changed the BrowserRouter to HashRouter (according to https://www.bezkoder.com/integrate-reactjs-spring-boot/) and it Worked ! Thanks all.


Support for enum constructor parameters

Fix for https://github.com/Haacked/CodeHaacks/issues/12#issuecomment-280168038

Looks good to me!


[BUG] Node restart gets stuck with 'Needs syncing...' messages

Branch: https://github.com/ainblockchain/ain-blockchain/pull/684
Tested on local with two nodes, 'full' sync mode.
Node restart gets stuck with 'Needs syncing...' messages:
2021-11-15T13:51:36.228Z [node-1-8082] info: [BLOCK_POOL] [addToHashBlockInfoMap] Block added to the block pool: 19 / 21721652
2021-11-15T13:51:36.228Z [node-1-8082] info: [BLOCKCHAIN] [addBlockToChain] Successfully added block 17 to chain.
2021-11-15T13:51:36.229Z [node-1-8082] info: [NODE] [cloneAndFinalizeVersion] Finalizing version: FINAL:17
2021-11-15T13:51:36.229Z [node-1-8082] info: [NODE] [cloneAndFinalizeVersion] Deleting previous final version: FINAL:16
2021-11-15T13:51:36.230Z [node-1-8082] info: [NODE] [loadAndExecuteChainOnDb] Successfully loaded block: 20 / 21721653
2021-11-15T13:51:36.231Z [node-1-8082] info: [CONSENSUS] Proposer is 0x00ADEc28B6a845a085e03591bE7550dd68673C1C
2021-11-15T13:51:36.239Z [node-1-8082] info: [BLOCK_POOL] [tryUpdateNotarized] Notarized block: 0xc7afaafae44574a04ae251a158c20fba39c7c7809123ece87c46722e2f1bd69c (19 / 21721652)
2021-11-15T13:51:36.244Z [node-1-8082] info: [BLOCK_POOL] [addSeenBlock] Adding seen block to the block pool: 0x9d31fc157f8ccf4f93b4bc31798f3a3b9610565f245976c3ada0eaacd44df440 / 20 / 21721653 / true
2021-11-15T13:51:36.245Z [node-1-8082] info: [BLOCK_POOL] [addToHashBlockInfoMap] Block added to the block pool: 20 / 21721653
2021-11-15T13:51:36.245Z [node-1-8082] info: [BLOCKCHAIN] [addBlockToChain] Successfully added block 18 to chain.
2021-11-15T13:51:36.245Z [node-1-8082] info: [NODE] [cloneAndFinalizeVersion] Finalizing version: FINAL:18
2021-11-15T13:51:36.245Z [node-1-8082] info: [NODE] [cloneAndFinalizeVersion] Deleting previous final version: FINAL:17
2021-11-15T13:51:36.246Z [node-1-8082] info: [NODE] [loadAndExecuteChainOnDb] Successfully loaded block: 21 / 21721654
2021-11-15T13:51:36.246Z [node-1-8082] info: [CONSENSUS] Proposer is 0x00ADEc28B6a845a085e03591bE7550dd68673C1C
2021-11-15T13:51:36.257Z [node-1-8082] info: [BLOCK_POOL] [tryUpdateNotarized] Notarized block: 0x9d31fc157f8ccf4f93b4bc31798f3a3b9610565f245976c3ada0eaacd44df440 (20 / 21721653)
2021-11-15T13:51:36.258Z [node-1-8082] info: [BLOCK_POOL] [addSeenBlock] Adding seen block to the block pool: 0xc30422e0cf97c1127e4e1cb373d8725196211a5cd9bbe921fe2acebdcf79d252 / 21 / 21721654 / true
2021-11-15T13:51:36.258Z [node-1-8082] info: [BLOCK_POOL] [addToHashBlockInfoMap] Block added to the block pool: 21 / 21721654
2021-11-15T13:51:36.258Z [node-1-8082] info: [BLOCKCHAIN] [addBlockToChain] Successfully added block 19 to chain.
2021-11-15T13:51:36.259Z [node-1-8082] info: [NODE] [cloneAndFinalizeVersion] Finalizing version: FINAL:19
2021-11-15T13:51:36.259Z [node-1-8082] info: [NODE] [cloneAndFinalizeVersion] Deleting previous final version: FINAL:18
2021-11-15T13:51:36.259Z [node-1-8082] info: [NODE] [initNode] Executing the transaction from the tx pool..
2021-11-15T13:51:36.260Z [node-1-8082] info: [NODE] [initNode] Now node in SYNCING state!
2021-11-15T13:51:36.260Z [node-1-8082] info: [P2P_CLIENT] [startBlockchainNode] Blockchain node initialized!
2021-11-15T13:51:36.277Z [node-1-8082] info: [P2P_CLIENT] Connected to peer(ws://<IP_ADDRESS>:5001/),
2021-11-15T13:51:36.289Z [node-1-8082] info: [P2P_CLIENT] [setClientSidePeerEventHandlers] A new websocket(0x00ADEc28B6a845a085e03591bE7550dd68673C1C) is established.
2021-11-15T13:51:36.296Z [node-1-8082] info: [CONSENSUS] Proposer is 0x01A0980d2D4e418c7F27e1ef539d01A5b5E93204
2021-11-15T13:51:36.303Z [node-1-8082] info: [BLOCK_POOL] [tryUpdateNotarized] Notarized block: 0xc30422e0cf97c1127e4e1cb373d8725196211a5cd9bbe921fe2acebdcf79d252 (21 / 21721654)
2021-11-15T13:51:36.305Z [node-1-8082] info: [BLOCK_POOL] [addSeenBlock] Adding seen block to the block pool: 0x3c2bf0483b6cdd497b40c7c3ecdb9849974769f4893fe64af7290c92916f3579 / 22 / 21721655 / true
2021-11-15T13:51:36.305Z [node-1-8082] info: [BLOCK_POOL] [addToHashBlockInfoMap] Block added to the block pool: 22 / 21721655
2021-11-15T13:51:36.305Z [node-1-8082] info: [BLOCKCHAIN] [addBlockToChain] Successfully added block 20 to chain.
2021-11-15T13:51:36.306Z [node-1-8082] info: [NODE] [cloneAndFinalizeVersion] Finalizing version: FINAL:20
2021-11-15T13:51:36.306Z [node-1-8082] info: [NODE] [cloneAndFinalizeVersion] Deleting previous final version: FINAL:19
2021-11-15T13:51:36.318Z [node-1-8082] info: [P2P_SERVER] A new websocket(0x00ADEc28B6a845a085e03591bE7550dd68673C1C) is established.
2021-11-15T13:51:37.281Z [node-1-8082] info: [P2P_CLIENT] with (0x00ADEc28B6a845a085e03591bE7550dd68673C1C).
2021-11-15T13:51:40.608Z [node-1-8082] info: [P2P_SERVER]
 [setServerSidePeerEventHandlers] Needs syncing...

2021-11-15T13:51:40.609Z [node-1-8082] info: [P2P_SERVER]
 [setServerSidePeerEventHandlers] Needs syncing...

2021-11-15T13:51:49.629Z [node-1-8082] info: [P2P_SERVER]
 [setServerSidePeerEventHandlers] Needs syncing...

2021-11-15T13:51:49.630Z [node-1-8082] info: [P2P_SERVER]
 [setServerSidePeerEventHandlers] Needs syncing...

2021-11-15T13:51:55.629Z [node-1-8082] info: [P2P_SERVER]
 [setServerSidePeerEventHandlers] Needs syncing...

2021-11-15T13:51:55.629Z [node-1-8082] info: [P2P_SERVER]
 [setServerSidePeerEventHandlers] Needs syncing...

2021-11-15T13:51:58.629Z [node-1-8082] info: [P2P_SERVER]
 [setServerSidePeerEventHandlers] Needs syncing...

2021-11-15T13:51:58.630Z [node-1-8082] info: [P2P_SERVER]
 [setServerSidePeerEventHandlers] Needs syncing...

2021-11-15T13:52:04.629Z [node-1-8082] info: [P2P_SERVER]

Related issue: https://github.com/ainblockchain/ain-blockchain/issues/432

Related issue: https://github.com/ainblockchain/ain-blockchain/issues/653

Let me close it.


find doesn't support "." or ".."

I'm on Windows, so this might be Windows-specific. Observe:
> pwd
FilePath "C:\\Users\\Elliot Cameron\\Desktop"
> view $ find (some anyChar *> ".JPG") "."
*** Exception: getPermissions: does not exist (No such file or directory)
> view $ find (some anyChar *> ".JPG") "./ScrapBook"
....lots of results....

The same behavior occurs with "..".
As an aside, is that the easiest way to match against "*.JPG"?

This is a limitation of the system-filepath library since turtle reuses the FilePath type from that library and its corresponding IsString instance, which does not interpret ".".  I wouldn't be able to fix that without providing a wrapper of my own around that type, but I'm reluctant to do so because I would like to promote interoperability with other libraries that use the FilePath type.
However, you could file an issue against the system-filepath library and ask the author if they would be willing to change how FilePath interprets ".".  It seems pretty inconsistent that they correctly interpret "./ScrapBook" but not ".".
Also, the easiest way to match against *.JPG is to use the suffix combinator, which does exactly what you wrote:
suffix :: Pattern a -> Pattern a
suffix p = star dot *> p

... so then you could just write suffix ".JPG".  Actually the behavior differs slightly from what you wrote because you use some instead of star.

It's also worth pointing out that find is a very thin wrapper around lstree.  You can extract the file extension much more reliably by taking advantage of system-filepath's built-in extension utility:
allJpgs dir = do
    file       <- lstree dir
    Just "jpg" <- return (extension file)
    return file

Or even more direct, you could use hasExtension:
allJpgs dir = do
    file <- lstree dir
    guard (hasExtension file "jpg")
    return file

I'm not able to determine what is exactly wrong with system-filepath. Naive testing seems to show that it supports ".".
Prelude Turtle> directory "."
FilePath ".\\"
Prelude Turtle> relative "."
True
Prelude Turtle> root "."
FilePath ""

Oops, the error is on my end.  The issue is that I'm not canonicalizing the path that I feed to my ls algorithm.  This is probably what causes the issue.

Thanks for looking into it.

Okay, so I've been testing this on Windows, and I think I've identified the problem, which is a little subtle.
The first issue is that getPermissions (but not other commands) fails if the directory has a trailing slash:
>>> System.Directory.getPermissions "."
Permissions {readable = True,...}
>>> realpath "."
"C:\\Users\\Gabriel\\proj\\turtle\\"
>>> System.Directory.getDirectoryContents "C:\\Users\\Gabriel\\proj\\turtle\\"
["turtle.cabal","test","src",...]
>>> System.Directory.getPermissions "C:\\Users\\Gabriel\\proj\\turtle\\"
*** Exception: getPermissions: does not exist (No such file or directory)
>>> System.Directory.getPermissions "C:\\Users\\Gabriel\\proj\\turtle"
Permissions {readable = True,...}

The second issue is that encodeString (which ls uses internally) adds a trailing slash to "." and "..", but not other directories:
>>> Filesystem.Path.CurrentOS.encodeString "."
".\\"
>>> Filesystem.Path.CurrentOS.encodeString ".."
"..\\"
>>> Filesystem.Path.CurrentOS.encodeString "src"
"src"

This is the reason the command selectively fails on those two special directories.  It also means that this command would fail if you passed in a path with an explicit trailing slash, too, like "src/".
The solution is to remove the trailing slash and I'll submit a fix soon.

Yuck, sounds like something else also needs a bugfix.


IDVA5-668-Update-content-and-title-for-Company-is-not-active-screen

CI: No security warnings found

CI: No security warnings found

CI: No security warnings found

CI: No security warnings found

CI: No security warnings found


Add aliase Braga, Portugal

There was an issue that when someone try to use http://wttr.in/Braga it shows the time for Braganca Paulista, Brazil instead of Braga, Portugal

@Barca88 Merged. Please test

@chubin It works. Thank You!


Add module file for zebra-puzzle exercise

I have 113 more of these branches with the module file added for each. I am happy to PR those (they are pushed up). I am also happy to make a single (or more than 1 but less than 114) PRs for adding these files for each exercise.

Closing this one since #1291 contains all the exercises


Changes are saved even if they are discarded when closing an unsaved script

Godot version
v4.0.alpha12.official [2c11e6d9e]
System information
Linux Mint 20.3, Vulkan, NVIDIA GeForce GTX 1050 Ti
Issue description
Changes are saved even if they are discarded when closing an unsaved script.
Peek 2022-07-18 22-04.webm
Steps to reproduce

Open a script;
Add something;
Use Close/Close All/Close Other Tabs to close it.
Click the Discard button in the popup dialog;
Reopen it to see the changes.

Minimal reproduction project
No response

I have tried to reproduce this problem and found that discarding is working correctly (files are not changed in filesystem) but re-opened script looks like as if its changes are saved.

Duplicate of #50578?


PACT-598 Switched to a three-part control for start and end dates.

Whoever merges, could we squash with the following commit message?
PACT-598 Switched to a three-part control for start and end dates.

Included validation for historical dates which is aware of the switch from Julian to Gregorian calendar in the UK.

I think sbt scalafmtAll might need to be run on this branch; there are quite a few files that I don't think have been formatted.

You're right, @felixgb ; I'll push another commit.


9 bit minimum cluster size req is for Azure CNI only

What this PR does / why we need it: The 9 bit minimum subnet size requirement is only for Azure CNI implementations.
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #1836
Release note:

bugfix: remove 9 bit subnet size requirement for non-Azure CNI k8s deployments

@nakahparis FYI, this should unblock you assuming you don't rely on Azure CNI implementation.


Please invite me to the GitHub Community Organization

Name
Chinmay Mulay
Discord Username (if applicable)
cmulay#1774
Additional Context
I was invited by VasudevJaiswal. I'm here to help.

You have received an email to join, or press this link - https://github.com/JaidevStudio - , and you'll see a banner, for you to join the organisation! 🎉
You can also show that you are part of this org, by making yourself public. This will show our profile org on your profile:
Follow This:

After you join the organisation, search your name in the list of people. 🔍
Follow this below: ⬇

🎉🎊Welcome to Jaidev Studio🎉🎊!!

Why not contribute to...
Unique-Github-Profiles!

If you need anything- help or support - please reopen this issue. Thank you.

You can also show that you are part of this org, by making yourself public. This will show our profile org on your profile:
Follow This:

After you join the organisation, search your name in the list of people. 🔍
Follow this below: ⬇


Photon is erroring out if the CPL is missing audio tracks

I'm getting the following error, when I run Photon on a CPL with no audio tracks.
ERROR-The Composition represented by Id XXXX does not contain a single audio essence in its first segment, one or more is required [Photon version: 4.7.0-SNAPSHOT]
According to the SMPTE ST 2067-2:2020 standard, audio tracks are not mandatory and IMP can contain video only. So, I think Photon shouldn't be throwing a FATAL error in this case.

Is there a plan for fixing this anytime soon?

HI @MagedMYoussef - What is the value of ApplicationIdentification in your CPL? You should not see this error for App 2E 2020 CPLs (http://www.smpte-ra.org/ns/2067-21/2020), because the App 2E 2020 standard normatively references the version of Core Constraints you're quoting (ST 2067-2:2020). Older versions of App 2E, however, reference a version of Core Constraints that does require one or more Audio Virtual Tracks to be present.

Hi @fschleich - Here's the value of ApplicationIdentification in the CPL
http://www.smpte-ra.org/ns/2067-21/2020
I can see it's the same as you mentioned, but somehow it still shows the "Missing Audio Virtual Tracks" error.

Can you share the CPL for troubleshooting @MagedMYoussef ?

Here you go @fschleich :
CPL_V30425662_TB_DTO_IMFA_HD-SDR_23_zxx-178_TVMN3U5TB.txt
P.S. I changed the file extension from .xml to .txt for github to attach it.

Thanks, @MagedMYoussef. I'm unfortunately not able to reproduce the issue, the current master branch provides the following results:
fschleich@fschleich-macpro photon % photon_imp_validator.sh /Users/fschleich/Downloads/CPL_V30425662_TB_DTO_IMFA_HD-SDR_23_zxx-178_TVMN3U5TB.xml
+ java -cp '/Users/fschleich/Developer/github/Netflix/photon/build/libs/*:*' com.netflix.imflibrary.app.IMPAnalyzer /Users/fschleich/Downloads/CPL_V30425662_TB_DTO_IMFA_HD-SDR_23_zxx-178_TVMN3U5TB.xml
2022-05-10 21:42:57,806  INFO [main] (IMPAnalyzer.java:627) - ==========================================================================

2022-05-10 21:42:57,809  INFO [main] (IMPAnalyzer.java:628) - Analyzing file CPL_V30425662_TB_DTO_IMFA_HD-SDR_23_zxx-178_TVMN3U5TB.xml
2022-05-10 21:42:57,809  INFO [main] (IMPAnalyzer.java:629) - ==========================================================================

2022-05-10 21:42:58,648  INFO [main] (IMPAnalyzer.java:581) - CPL_V30425662_TB_DTO_IMFA_HD-SDR_23_zxx-178_TVMN3U5TB.xml has no errors or warnings

I'm now seeing that you seem to be running v4.7.0, you might have to update to v4.7.2 or later for the 2020 features.

Hi @fschleich , Thanks for checking.
I did indeed run photon_imp_validator.sh on the CPL and it passed without errors successfully. However, in our use-case we are actually using Photon as an SDK and it produces the following errors when trying to parse the same CPL.
ERROR-Unsupported sequence type or schema Tag: cc:MainImageSequence URI: http://www.smpte-ra.org/ns/2067-2/2020 [Photon version: 4.7.2],ERROR-Missing ApplicationIdentification in CPL [Photon version: 4.7.2],ERROR-The Composition represented by Id cd2ee0cf-1131-4726-89bb-399aa782ad1c does not contain a single image essence in its first segment, exactly one is required [Photon version: 4.7.2],ERROR-The Composition represented by Id cd2ee0cf-1131-4726-89bb-399aa782ad1c does not contain a single audio essence in its first segment, one or more is required [Photon version: 4.7.2]
We are using this function to parse the CPL from Photon SDK which seems to have issues with 2020 features:
com.netflix.imflibrary.st2067_2.ApplicationCompositionFactory.getApplicationComposition

Hi @fschleich , any update on this?

Hello @fschleich ,
I am facing the same issue with the spring SDK version 4.9.3
any updates with this?


Add Python demo of general purpose verifiable map.

Includes demo of general purpose database.

@AlCutter - here it is


Remove Timber dependency

Timber dependency required to be added to the application now. It's not included in library but is used inside it.
Either include it in the library or remove the usage.

Can you elaborate on places where this doesn't work ? Gradle should detect the transitive dependency and add it to your app automatically. Or do I miss something ?

Gradle should detect the transitive dependency and add it to your app automatically.

Looks like gradle doesn't add it automatically now.
I've forked the repository, removed SDK source code and replaced it with gradle dependency.
It compiles and run, but crashes immediately

It requires play-services-ads and gson libraries to be added to the app dependencies. Didn't notice it first time because they are already used in my app.
It requires Timber library to be added, even if it's not used in the client app.

2018-12-19 16:13:00.296 27301-27301/com.dailymotion.websdksample E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.dailymotion.websdksample, PID: 27301
    java.lang.NoClassDefFoundError: Failed resolution of: Ltimber/log/Timber;
        at com.dailymotion.android.player.sdk.PlayerWebView.handleEvent(PlayerWebView.java:296)
        at com.dailymotion.android.player.sdk.PlayerWebView.access$000(PlayerWebView.java:45)
        at com.dailymotion.android.player.sdk.PlayerWebView$JavascriptBridge$1.run(PlayerWebView.java:233)
        at android.os.Handler.handleCallback(Handler.java:873)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:193)
        at android.app.ActivityThread.main(ActivityThread.java:6680)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
     Caused by: java.lang.ClassNotFoundException: Didn't find class "timber.log.Timber" on path: DexPathList[[zip file "/data/app/com.dailymotion.websdksample-Cq9iY9GU2omsINulWTy60w==/base.apk"],nativeLibraryDirectories=[/data/app/com.dailymotion.websdksample-Cq9iY9GU2omsINulWTy60w==/lib/arm64, /system/lib64]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
        at com.dailymotion.android.player.sdk.PlayerWebView.handleEvent(PlayerWebView.java:296)
        at com.dailymotion.android.player.sdk.PlayerWebView.access$000(PlayerWebView.java:45)
        at com.dailymotion.android.player.sdk.PlayerWebView$JavascriptBridge$1.run(PlayerWebView.java:233)
        at android.os.Handler.handleCallback(Handler.java:873)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:193)
        at android.app.ActivityThread.main(ActivityThread.java:6680)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

Thanks for the fork. I can confirm the crash. I'll look into this.

Somehow the pom file in jcenter was missing dependencies. I just uploaded a new version that should have them. Can you try with v0.1.27 ?

Checked.
Yes, everything ok now.
Thank you!


ColoredImage

Support for 1.8 colored particles
Tested in 1.7
http://imgur.com/DmXFn31,0714Sqp,uKeTnt4,W7JHuvD

Hm- unfortunately this undoes a lot of the work I did already to implement colored particles :(
For one, I don't want to have a forked ParticleEffect class anymore, I went through great lengths to update our internal copy to the latest "official" version.
And secondly, I already put in support for colored particles in general- changing the way every effect spawns its particle to support a generic "color" attribute that will automatically be applied for particle types that support it.
I'd like to look closely at this PR to see if there are bits I can take, in particular the ColoredImageEffect - but I don't think I'd want to just accept this wholesale (unless @Slikey feels differently, of course)

It's ok, you can close it :P If you want, after you finish the implementation of the colored particles, tell me and i'll add it to the ColoredImageEffect

Well I just noticed my commit message for when I implemented colored particles is kind of borked :(
Here is the commit, and the new method I added in the Effect class that you can use to spawn a particle using a Color:
https://github.com/Slikey/EffectLib/commit/2496ac27cc7a9634a2ccb2d464a2d7f38fad9b3d#diff-a1509664970f3a311af7592d15a34738R305
protected void display(ParticleEffect particle, Location location, Color color, float speed, int amount)


Triangle spectrum and radon transform

Implementing the spectrum and Radon transform of triangles was more work than I had expected, but it is done now and maybe someone will find it useful eventually...

Maybe you want to add a reference to this package in TestImages?


@Builder implementations are not found in other projects

Environment:

OS X 10.11 "El Capitan"
Java: Oracle 1.7.0_45
Spring Tool Suite
Version: 3.7.0.RELEASE,
Build Id:<PHONE_NUMBER>52
based on Eclipse Mars 4.5.0

@Builder implementations are not recognized in maven projects other than the one in which the Builder is defined.
Steps to reproduce:

Create a new workspace
Create a maven project with a bean with the @Builder annotation and a @Data annotation
Create another maven project with the first one as dependency
Using the bean, getters, setters, hashCode etc are available in the second project, whereas the .builder() method and the BeanBuilder isn't available.
The BeanBuilder however is available in the first project.

False Ticket, I was importing the wrong artifact after a code restructure.


Do not return error on .Get "class" and vice versa in shortcodes

The current error handling makes parameter checking in shortcodes too verbose for no good reason.
Fixes #4745

/cc @kaushalmodi @onedrawingperday not sure how our time zones match, but I'm doing some shortcode work now, and stumbled into this area of "gray hair".
I assume this change is all for the good? Or is there something I've missed?

Well I have never tried this conditional myself {{ $myParam := .Get "myParam" | default .Get 0 }}
Always preferring the .IsNamedParams or else route to avoid the Cannot mix positional and named error.
But this Pull Request seems like a good change for the better.

Does this PR relate to this at all: https://github.com/gohugoio/hugo/pull/4639?

@kaushalmodi it is related, but that PR meant that you didn't have to do `if ge .en .Params 0´ etc.
We have many internal templates with way too verbose params checking. I'm merging this so we can test it out ... Shout if you come up with a reason why this is a really bad idea ...


Create 006-Cilium-Blocked-DNS-Resolution.md

Thanks for your interest in palantir/alerting-detection-strategy-framework, @Mivharl! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.


password authentication

Hello all,
I tried to set up password authentication for Visualizer by Apache, with the configuration :

<Directory "/var/web/visualizer/www">
AuthType Basic
AuthName "Restricted Content"
AuthUserFile /etc/apache2/.htpasswd
Require valid-user
< /Directory>

Sometimes it works, but sometimes no authentication is required. Can someone advise me what should I do?
Thanks!
Alex

I believe that the part you need to protect are:

/proxy
/paraview

But the password will have to be requested before those endpoint are requested.
But I've never configured an apache to achieve such configuration, so I'm not sure I'll be of much help.

Thank you Sebastien.
Can the option "--authKey", "${secret}"  restrict access ?

Yes it will prevent any one to connect to a running session without that key.
That key can be either computed on the server side or the client can provide it.
But the one the client want to use needs to match the one used to start the pvpython process.

That's great! But I do not know how to do it, are there examples?

I think you are getting confused on what it is meant for. And there are several option/path to support what you are trying to do, but usually that path require some custom deployment. With just apache+launcher and the default visualizer page, you will run into limitation.
But here is an example below on how things could work.
The object that is passed as argument here can be automatically extended with argument from url.
So for instance if you connect to visualizer with the following url args... ?secret=mySuperSecret&user=seb
On the launcher side, if your command line looks like:
cmd: [
   'PASSWD', '=', 'getUserPassword(${user})', '&&', ..., '--authKey', '$PASSWD'
],

Then that user will only be able to connect to the server process only if the value PASSWD generated on the server machine match "mySuperSecret" string.
In similar way, you can fix the argument next to --authKey and only users that know the value will be able to connect if they provide it either from the URL or if the generated html page that start Visualizer have the correct value.

Thank you!
The second way with the key in the URL is simple and works very well. Is there a html page to let users enter the key?
The first way seems better, it allows to define a key by user, for this I have to reconfigure launcher, ... , it would be helpful to have more docs and examples on this topic.

You need to provide another landing page and at submit you just use the visualizer html page as destination using the GET action so they will be put in the URL.
The tricky part for the documentation on that topic is the degree of freedom you have for such setup.
The launcher documentation do provide the basics of what I was explaining above.

Big thanks!


Programming Exercise: Add blackbox tests as another Java project type

WARNING: DELETE EXERCISES CREATED WITH THIS PR AFTER TESTING! OTHERWISE THE TEST SERVER IS BROKEN FOR OTHER PRs

Checklist
General

[x] I tested all changes and their related features with all corresponding user types on a test server.
[ ] This is a small issue that I tested locally and was confirmed by another developer on a test server.
[x] Language: I followed the guidelines for inclusive, diversity-sensitive, and appreciative language.
[x] I chose a title conforming to the naming conventions for pull requests.

Server

[x] Important: I implemented the changes with a very good performance and prevented too many (unnecessary) database calls.
[x] I followed the coding and design guidelines.
[ ] I added multiple integration tests (Spring) related to the features (with a high test coverage).
[x] I documented the Java code using JavaDoc style.

Client

[x] Important: I implemented the changes with a very good performance, prevented too many (unnecessary) REST calls and made sure the UI is responsive, even with large data.
[x] I followed the coding and design guidelines.
[x] Following the theming guidelines, I specified colors only in the theming variable files and checked that the changes look consistent in both the light and the dark theme.
[x] I added multiple integration tests (Jest) related to the features (with a high test coverage), while following the test guidelines.
[x] I documented the TypeScript code using JSDoc style.
[x] I added multiple screenshots/screencasts of my UI changes.
[x] I translated all newly inserted strings into English and German.

Changes affecting Programming Exercises

[x] I tested all changes and their related features with all corresponding user types on Test Server 2 (Jenkins and Gitlab).

Motivation and Context

In some cases, it is preferable to leave it up to the student how their program is structured. In such cases, methods and classes of the solution are not known beforehand. In order to test such solutions, blackbox tests are required. This PR adds that functionality for Java programming exercises.

Description

The testing framework that is used is called DejaGnu (https://www.gnu.org/software/dejagnu/). A DejaGnu button is added to the project types for Java exercises in the client. When selected, the exemplary dependency, testwise coverage and sequential test runs are disabled.
The template files for this exercise are stored in templates/java/maven_blackbox. As implied by the folder name, the DejaGnu image is based on Maven. The DejaGnu template exercise adopts the sorting exercise from the other two project types and turns it into a user input based exercise.
The pipeline.groovy file that defines the Jenkins pipeline steps is located in the templates/java/test/blackbox.projectTemplate directory. This folder also includes all the files required for testing. The actual docker image is defined in the pipeline.groovy file (ghcr.io/uni-passau-artemis/artemis-dejagnu:20).
Steps for Testing

Prerequisites:

1 Instructor
1 Course
TS2 (Jenkins Setup)

Log in to Artemis
Navigate to Course Management
Create a Java programming exercise with online editor enabled, and choose the new DejaGnu project type.
Make sure the BASE build fails, and the SOLUTION build works
Look inside the test-repository via the online editor, it should contain the files that are shown in the two screenshots at the bottom.

Review Progress

Performance Review

[x] I confirm that the client changes (in particular related to REST calls and UI responsiveness) are implemented with a very good performance
[x] I confirm that the server changes (in particular related to database calls) are implemented with a very good performance

Code Review

[x] Code Review 1
[ ] Code Review 2

Manual Tests

[x] Test 1
[ ] Test 2

Test Coverage

Screenshots

UI change:

Test Repo folder structure:

bb will be replaced by your package name.

Thanks for testing. Was the secret.exp file present in the test repository?

@b-fein Thanks for the review. I'm trying to fix the message right now.

@b-fein Thanks a lot for both testing and the review!

Thanks everyone!

Please try to get at least 4 approvals before setting the ready to merge label.

I don't see in the changes where the build plan for this new type gets created. Since this is also a maven project, I assume that the normal maven build plan just gets used here. However, isMavenProject() returns false for this type (which in itself is confusing for a type called maven_blackbox). Does this just rely on a if (isGradle()) {} else {}  code in the repository?
At a minimum, I would add a comment at the respective place explaining that this brach must cover 3 project types.
In general, I'd like to have isMavenProject() return true for this new type, since it really is a maven project. For places where not the same logic can be applied, an explicit check like if (type == MAVEN_BLACKBOX) { } else if (isMavenProject(type)) { } would be better.

Does this type need the special command-pattern-exercise template?

Do you mean the different Client.java and its dependencies in the input package? If so, yes they are needed. The idea of this template is to be able to test programs as blackboxes via their CLI rather than unit-tests. This requires a different Client implementation, unless the Client is changed in a future separate PR to accept a command line parameter that switches from non-interactive to interactive mode.