Strange build error

I'm getting a strange build failure in my package Saga, but only for the "Swift 5.5 for macOS (Xcode) using Xcode 13.2.1" build:

The weird thing is that 1.1.3 and main are the same code, and main succeeds just fine.
This is the build that's failing: https://swiftpackageindex.com/builds/6B1A7920-B91E-41DE-84BA-675914C4BBB6

Thanks Kevin!
I've not had a chance to look at this in detail yet but there are a few commits between the tagged version and main. They look to be inconsequential but let's check it. Could you run the exact build command from the top of the failed build with the same commit checked out please?
That said, the "unable to restore state" message does look suspicious, but step one would be to make sure it doesn't also fail for you.
We'll take a closer look after the weekend.
Thanks!

Those commits are completely unrelated to the code itself, and since it fails for "Xcode" yet succeeds for "Xcode, ARM", I am not sure I could even reproduce the build, as I am on an M1 Mac. Still, happy to try it out, but I don't know what build command to use? I can't find anything to copy from the failed build.
But yeah no rush! Have a great weekend.

The build command is in a separate box, just above the build log. I'm on my phone right now or I'd take a screenshot, but it's just above the logs and has the label "Build Command".
The build will run fine in a M1 machine. In fact, all our builders are now M1-based, so that's all good.
I saw the commits, but you know computers! 😬 You can't expect consistent output without consistent input!

That box just says "error: failed to read build command file"

For archiving purposes, just in case we need to look at this log once this is fixed, here is the full content of the failed log:
Clone URL: https://github.com/loopwerk/Saga.git
Reference: 1.1.3
Initialized empty Git repository in /Users/builder/builds/1hFCVExo/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.git/
From https://github.com/loopwerk/Saga
 * tag               1.1.3      -> FETCH_HEAD
HEAD is now at 0994e9e chore: Remove the swift-docc-plugin dependency (which wasn't directly used by Saga) to make builds pass on Swift Package Index again
Cloned https://github.com/loopwerk/Saga.git into spi-builder-workspace
0994e9e6e1662331248a9fb789d01f8fc2ff9127
Error: Could not find any schemes
Selected platform:         macosXcodebuild
Swift version:             v5_5
Building package at path:  spi-builder-workspace
objc[40709]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1e585e098) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103eb02c8). One of the two will be used. Which one is undefined.
objc[40709]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1e585e0e8) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103eb0318). One of the two will be used. Which one is undefined.
objc[40709]: Class AppleTypeCRetimerRestoreInfoHelper is implemented in both /usr/lib/libauthinstall.dylib (0x1e585deb0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103eb04f8). One of the two will be used. Which one is undefined.
objc[40709]: Class AppleTypeCRetimerFirmwareAggregateRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1e585df00) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103eb0548). One of the two will be used. Which one is undefined.
objc[40709]: Class AppleTypeCRetimerFirmwareRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1e585df50) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103eb0598). One of the two will be used. Which one is undefined.
objc[40709]: Class ATCRTRestoreInfoFTABFile is implemented in both /usr/lib/libauthinstall.dylib (0x1e585dfa0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103eb05e8). One of the two will be used. Which one is undefined.
objc[40709]: Class AppleTypeCRetimerFirmwareCopier is implemented in both /usr/lib/libauthinstall.dylib (0x1e585dff0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103eb0638). One of the two will be used. Which one is undefined.
objc[40709]: Class ATCRTRestoreInfoFTABSubfile is implemented in both /usr/lib/libauthinstall.dylib (0x1e585e040) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103eb0688). One of the two will be used. Which one is undefined.
Command line invocation:
    /Applications/Xcode-13.2.1.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/builder/builds/1hFCVExo/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.dependencies -resolvePackageDependencies

User defaults from command line:
    IDEClonedSourcePackagesDirPathOverride = /Users/builder/builds/1hFCVExo/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.dependencies
    IDEPackageSupportUseBuiltinSCM = YES

unable to restore state from /Users/builder/builds/1hFCVExo/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.dependencies/workspace-state.json; unsupported schema version 5
Resolve Package Graph

Fetching from https://github.com/JohnSundell/Codextended.git (cached)

Fetching from https://github.com/kylef/PathKit (cached)

Fetching from https://github.com/kylef/Spectre.git (cached)

Cloning local copy of package ‘Spectre’

Checking out 0.10.1 of package ‘Spectre’

Cloning local copy of package ‘Codextended’

Checking out 0.3.0 of package ‘Codextended’

Cloning local copy of package ‘PathKit’

Checking out 1.0.1 of package ‘PathKit’

Resolved source packages:
  Spectre: https://github.com/kylef/Spectre.git @ 0.10.1
  PathKit: https://github.com/kylef/PathKit @ 1.0.1
  Saga: /Users/builder/builds/1hFCVExo/0/finestructure/swiftpackageindex-builder/spi-builder-workspace
  Codextended: https://github.com/JohnSundell/Codextended.git @ 0.3.0

resolved source packages: Spectre, PathKit, Saga, Codextended
warning: unable to restore checkouts state: unable to restore state from /Users/builder/builds/1hFCVExo/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.dependencies/repositories/checkouts-state.json; missingKey("status")
objc[41275]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1e585e098) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1065c02c8). One of the two will be used. Which one is undefined.
objc[41275]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1e585e0e8) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1065c0318). One of the two will be used. Which one is undefined.
objc[41275]: Class AppleTypeCRetimerRestoreInfoHelper is implemented in both /usr/lib/libauthinstall.dylib (0x1e585deb0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1065c04f8). One of the two will be used. Which one is undefined.
objc[41275]: Class AppleTypeCRetimerFirmwareAggregateRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1e585df00) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1065c0548). One of the two will be used. Which one is undefined.
objc[41275]: Class AppleTypeCRetimerFirmwareRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1e585df50) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1065c0598). One of the two will be used. Which one is undefined.
objc[41275]: Class ATCRTRestoreInfoFTABFile is implemented in both /usr/lib/libauthinstall.dylib (0x1e585dfa0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1065c05e8). One of the two will be used. Which one is undefined.
objc[41275]: Class AppleTypeCRetimerFirmwareCopier is implemented in both /usr/lib/libauthinstall.dylib (0x1e585dff0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1065c0638). One of the two will be used. Which one is undefined.
objc[41275]: Class ATCRTRestoreInfoFTABSubfile is implemented in both /usr/lib/libauthinstall.dylib (0x1e585e040) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1065c0688). One of the two will be used. Which one is undefined.
{
  "workspace" : {
    "name" : "spi-builder-workspace",
    "schemes" : [
      "Saga",
      "Saga-Package",
      "watch"
    ]
  }
}
warning: unable to restore checkouts state: unable to restore state from /Users/builder/builds/1hFCVExo/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.dependencies/repositories/checkouts-state.json; missingKey("status")
objc[41312]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1e585e098) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1045102c8). One of the two will be used. Which one is undefined.
objc[41312]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1e585e0e8) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x104510318). One of the two will be used. Which one is undefined.
objc[41312]: Class AppleTypeCRetimerRestoreInfoHelper is implemented in both /usr/lib/libauthinstall.dylib (0x1e585deb0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1045104f8). One of the two will be used. Which one is undefined.
objc[41312]: Class AppleTypeCRetimerFirmwareAggregateRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1e585df00) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x104510548). One of the two will be used. Which one is undefined.
objc[41312]: Class AppleTypeCRetimerFirmwareRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1e585df50) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x104510598). One of the two will be used. Which one is undefined.
objc[41312]: Class ATCRTRestoreInfoFTABFile is implemented in both /usr/lib/libauthinstall.dylib (0x1e585dfa0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1045105e8). One of the two will be used. Which one is undefined.
objc[41312]: Class AppleTypeCRetimerFirmwareCopier is implemented in both /usr/lib/libauthinstall.dylib (0x1e585dff0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x104510638). One of the two will be used. Which one is undefined.
objc[41312]: Class ATCRTRestoreInfoFTABSubfile is implemented in both /usr/lib/libauthinstall.dylib (0x1e585e040) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x104510688). One of the two will be used. Which one is undefined.
{
  "workspace" : {
    "name" : "spi-builder-workspace",
    "schemes" : [
      "Saga",
      "Saga-Package",
      "watch"
    ]
  }
}
warning: unable to restore checkouts state: unable to restore state from /Users/builder/builds/1hFCVExo/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.dependencies/repositories/checkouts-state.json; missingKey("status")
FAILURE 5.5 macos-xcodebuild

I've re-queued that build. It should start a new build for that configuration shortly.

It failed again. We'll need to look into this next week.

I found the build command by looking at the main build, and just ran that on the specific 1.1.3 commit. Succeeds just fine locally, for what it's worth.
env DEVELOPER_DIR="/Applications/Xcode.app" xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride="$PWD/.dependencies" -derivedDataPath "$PWD/.derivedData" build -scheme "Saga-Package" -destination 'platform=macos,arch=x86_64'

It failed again. We'll need to look into this next week.

Like I said, no rush! Thanks for the effort so far already.

Hi Kevin
I spent some time trying to reproduce this failure today and can't reproduce it. It definitely happened on the build machine, but unfortunately, that build is now gone as the main branch now moved forward and it was re-built with the latest commit. That build succeeded, and everything looks normal now.
I think we should close this, please do feel free to re-open it if you notice the same issue come back for future commits.


Bug: Date Modified column does not display when searching in unindexed folders

Description
When searching in unindexed folders, the columns for Date Modified and Date Created in the search results are empty. The content for these two columns appears only after clicking on "Search unindexed items"

Steps To Reproduce

Create a folder in C:\
Create some files in the folder
Enter the folder and search for one file
The two columns are empty
Click "Search unindexed items"
The date information appears

Requirements
Date Modified and Date Created should display
Files Version
<IP_ADDRESS>
Windows Version
10.0.22621.2861
Log File
.

Thanks for the report

Is this still an issue in the preview version? https://files.community/download/preview

No, the time is displaying now.


use setMerge() to merge one column ,then delete the column,ERROR

I use setMerge() to merge one column ,then delete the column,error:    in v4
jexcel.js:4440 Uncaught TypeError: Cannot read property 'removeChild' of null
at Object.obj.deleteColumn (jexcel.js:4440)
at HTMLDivElement.onclick [as method] (jexcel.js:6753)
at HTMLDivElement. (jsuites.js:2093)

Duplicate of #833


Implement the following charts that do not support Sub Grouping but would be good to have

Lets start thinking about if we want to support:
Guage Chart: https://echarts.apache.org/examples/en/editor.html?c=gauge-multi-title
Heatmap: https://echarts.apache.org/examples/en/editor.html?c=heatmap-cartesian
Scatter Plot: https://echarts.apache.org/examples/en/editor.html?c=scatter-nutrients
Bubble Plot: https://echarts.apache.org/examples/en/editor.html?c=bubble-gradient
Stacked Area Chart: https://echarts.apache.org/examples/en/editor.html?c=area-stack

This should be supported by #209 We can start implementing them in 2.0.0

Lets start thinking about any possible breaking changes we would need to have to allow for these.


Create a .as class file in the VsCode file, "class duplicate definition: className" error

Can you provide more detailed instructions to reproduce the issue?

https://github.com/kingBook/anquanjiaoyu/blob/master/duplicateError.gif"

@kingBook Can you share the contents of your asconfig.json file with me?

https://github.com/kingBook/anquanjiaoyu
This is not a issues every time.

Thanks! It looks like my commit will fix your issue, so stay tuned for the upcoming v0.12 update.


cloudfoundry-community org is not accessible

The cloudfoundry-community org is not reachable.
There were several repositories like the go-cfclient and the cf terraform-provider and several others that were extensively used.
Any idea as to why it was removed or what is the plan here? or who to contact for the same?
Thanks

+1 tf provider is not accessible

I'm trying to clarify.
FYI: the cloudfoundry-community org isn't managed by the TOC

The topic is discussed in https://cloudfoundry.slack.com/archives/C02FL4A2K/p1707462526630869. From the Slack thread:

nabramovitz
24 minutes ago
The org was hit by a hacker that deleted all the repos.  A request to GitHub to restore  everything has been made.

they're back!!! Hooray!
Thank you

This is great. But we have to think on how we can prevent this and keep an eye on some of the most important repos in that ORG...(Or move them here if that's a possibility)

Considering that the repo is restored for now I'm closing this issue.


Record parsing and generate

Recent record.rb changes no longer use the "decorator" method, instead parse and generate have
decorator = debug ? Fixy::Decorator::Debug : Fixy::Decorator::Default

Please revert to calling the decorator method to allow other decorators to be used by overriding it.

Thanks for reporting this issue, didn't realize that was a breaking change. I'll fix it and push a new version of the gem.


Add files via upload

sapat school

@iKayrat Pull request merged. Thank you!

@iKayrat Pull request merged. Thank you!


GraphViz attributes containing colon cause issues

See pydot/pydot#258
It is strange that this issue occurs on some builds, but not others. Colab installs are fine, as is my local install.
Yet this issue does occur for others.

I hit this issue on my personal laptop, which is running Ubuntu 20.04.   I am using venv, and this is what I have installed:
$ pip3 list
Package       Version
------------- -------
graphviz      0.20
networkx      2.8.4
Pillow        9.2.0
pip           20.0.2
pkg-resources 0.0.0
pptrees       1.0.10
pydot         1.4.2
pyparsing     3.0.9
setuptools    44.0.0

P.S. the CI tests for #95 just need your click to kick off...

My sincere apologies for letting this sit for so long.
Part of it is new job stress, which I have now overcome.
Most of it is that I wanted to fix #99 in the same version number as this, but #99 proved difficult to debug.
I am now active once again!


can parse float type metric gen by gmetric command

Hi:
I gen custom metrics with gmetric command ,like
gmetric -n 'test1' -v '10.1' -t float
and I have modify ganglia.rb add
event["val"] = data["val"]
before line  %w{dmax tmax slope type units}.each do |info|
I can receive the custom metrics 'test1' from elasticsearch but the value is incorrect
it should be 10.1 but I got 5.605193857299268e-45
help me pls
sorry for my bad english

Hi @kkpbbb.
You could check my PR #5 if you are still on the problem.

ok，thanks
I will try it

Fixed in https://github.com/logstash-plugins/logstash-input-ganglia/pull/5


IterableMap has no KV iterator

https://github.com/peq/wurstStdlib/blob/master/wurst/data structures/LinkedHashMap.wurst#L86

seems pointless, just iterate over keys and get the value.

status?

Still wanted

forEach returnes key-value pairs, I consider this done.


Pinata upload tokenIds don't match up to contract

See https://discord.com/channels/755548171941445642/880895648877117471/947855128642351137

Works for me. :shrug:
Double checking with the user.

Ok, double checked everything with the frontend to. All is good. Will follow up with the user, I think their repo is out of date.


hub_status event should inject a hub_sn field

In the case that a user has multiple tempest devices on their network, it would be convenient to be able to very easily detect which device any given message is coming from, perhaps with something like:
def handle_payload(%{hub_sn: hub_sn} = payload) do
  # Save data if it is from the correct hub
end

Unfortunately this doesn't work because the weatherflow API has a hub_sn field on every message type except the hub_status event.
We could solve this simply by duplicating the serial_number field on that message type into a "hub_sn" field, allowing us to match hub_sn on any message emitted.

added in 1.0.0


fix: Add empty email id check

Can you please add PR description

What?

Add empty email-id check and throw an exception if email-id is empty.
Add email-id while updating user details for self.

Why?

From UI there is no check whether an email id is empty or blank. API can create a user with an empty email id and in case of a missing IAP header, it loads that user with an empty email id.

User is not able to update its own details like name, metadata map against an email id since email id is missing.

@rsbh I modified code to refer to email from IAP header.


optimization

Hi,
Which optimization algorithm do you use?
I wonder how you conduct optimization algorithm in this project.
Could you explain it?
Best!

Hi AmosJoseph,
Depends on the project you have in mind. For example, we used Pygmo:
https://esa.github.io/pygmo2/index.html
for this paper: https://www.sciencedirect.com/science/article/pii/S0020768318300441
We find pygmo to be really neat when using genetic optimization and a few other algorithms. However, there are many other resources you could use for other kinds of optimizers. There's a lot out there!
Hope this helps!
Miguel


Needs better cleansing of the user environment

It seems a user set PYTHONHOME in their .bashrc causing the websockify code to fail. We need a better solution to cleansing the environment than a module purge.

Note some related ideas and workarounds here: https://github.com/OSC/ood_core/issues/109


Archive Warnings

The current warning/alert display can only retrieve warnings from the last several days, as archive data is not posted to the AllisonHouse
or CoD warnings server.  Archive warnings should be able to be loaded via api.weather.gov or another source.

Duplicate of #111


Add the 'Status' to the API. States are 'Working' 'Waiting' 'Error'

Please add the 'Status' to the API. States are 'Working' 'Waiting' 'Error'
Especcially state 'Error' would be interesting! (e.g. when the mains are disconnected).
Thanks in advance.

Hi,
I've added the error state. However, the state is returned as an integer from the Web API so I've now guessed 2 as error. To finalize this, it would be great if you can provoke an error on the inverter (I don't know how....) and post the logging here. Look especially for the loglines around this:
2021-01-15 15:16:02.495 (Zonnepanelen) Status of GoodWe inverter (SN: xxxx): '1 generating'
Btw, the current mapping is:
-1: 'offline',
0: 'waiting',
1: 'generating',

Hi,
I've added the error state. However, the state is returned as an integer from the Web API so I've now guessed 2 as error. To finalize this, it would be great if you can provoke an error on the inverter (I don't know how....) and post the logging here. Look especially for the loglines around this:
2021-01-15 15:16:02.495 (Zonnepanelen) Status of GoodWe inverter (SN: xxxx): '1 generating'
Btw, the current mapping is:
-1: 'offline',
0: 'waiting',
1: 'generating',


Graph Traversal (BFS/DFS)

Feature ✅
Description

You are given an undirected unweighted graph in the form of an adjacency list (Resource on adjacency list). Given a starting and ending node number you have to output the number of nodes in the shortest path between the starting and ending node(excluding starting and ending nodes). Refer to examples for better understanding.
Input format -
N M
u1 v1
u2 v2
...
uM vM
A B
Here, N is the number of nodes and M is the number of edges. M lines follow where the ui vi represents and edge between node ui and vi. A and B are the starting and ending node respectively. Nodes are numbered from 1 to N.
Example

Input -
4 4
1 2
2 3
2 4
3 4
1 4
Output -
1
Explanation -
The shortest path between 1 and 4 is 1 --> 2 --> 4. Thus there is just 1 node between A and B.
Mention language while requesting for assignment
Checklist:

[x] I have read the project guidelines.
[x] I have checked all the existing projects, before submitting a new project issue.
[x] This issue will be meaningful for the project.
[x] I will contribute more in future

I'd like to work on this issue using C++ @pratik-choudhari

Hey, I would like to work on this issue. Please assign it to me.

@pawki07 Mention the language as it is written in the issue.

@pratik-choudhari I will use C++ language.

Can you assign this issue to me? I would like to code it in CPP

@jyotiGambhir It has been already assigned for in CPP language, you can take up a different language.

@jyotiGambhir It has been already assigned for in CPP language, you can take up a different language.

ok I can code it in Python then


⚠ Samsung has degraded performance

In 2d80dd2, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 1959 ms

Resolved: Samsung performance has improved in e25aa99.


Add Casa

add casa

Hey Jeremy. Sent you a DM on Twitter (Aqua). Having a touch of trouble w the next steps for the pool (Casa #1028).
Thanks for the help!
Sent from my iPhone

On Jun 26, 2023, at 3:07 PM, JeremyParish69 @.***> wrote:

@JeremyParish69 commented on this pull request.
In osmosis-1/osmosis.zone_assets.json:

@@ -1517,6 +1517,16 @@
"path": "transfer/channel-874/untrn",
"osmosis_main": false,
"osmosis_frontier": true

},
{

 "chain_name": "juno",

 "base_denom": "cw20:juno1ju8k8sqwsqu5k6umrypmtyqu2wqcpnrkf4w4mntvl0javt4nma7s8lzgss",

 "path": "transfer/channel-169/cw20:juno1ju8k8sqwsqu5k6umrypmtyqu2wqcpnrkf4w4mntvl0javt4nma7s8lzgss",

 "osmosis_main": false,

 "osmosis_frontier": true,

 "override_properties": {

Right, we still are going to add the asset, but the override_properties property should be removed since it's not changing anything.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.


Add Additional Error Messages for KMS Key lookup on imported dataset

Feature or Bugfix

Feature Enhancement

Detail

Adding additional error messages for KMS Key lookup when importing a new dataset

1 Error message to determine if the KMS Key Alias Exists
1 Error message to determine if the PivotRole has permissions to describe the KMS Key

Relates

#712

Security
Please answer the questions below briefly where applicable, or write N/A. Based on
OWASP 10.

Does this PR introduce or modify any input fields or queries - this includes
fetching data from storage outside the application (e.g. a database, an S3 bucket)?

Is the input sanitized?
What precautions are you taking before deserializing the data you consume?
Is injection prevented by parametrizing queries?
Have you ensured no eval or similar functions are used?

Does this PR introduce any functionality or component that requires authorization?

How have you ensured it respects the existing AuthN/AuthZ mechanisms?
Are you logging failed auth attempts?

Are you using or adding any cryptographic features?

Do you use a standard proven implementations?
Are the used keys controlled by the customer? Where are they stored?

Are you introducing any new policies/roles/users?

Have you used the least-privilege principle? How?

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Tested in AWS for the following:

[x] Import Dataset with non-existing KMS Alias --> Display Proper Error Message
[x] Import Dataset with no PivotRole permissions on Imported KMS Key Policy --> Display Proper Error Message
[x] Import Dataset with correct KMS Alias and PivotRole permissions in Key Policy --> Successfully import dataset

Looks good. Just to verify we are listing all keys(pivot role has permissions), checking in the list, if KMS key, then check pivot role permissions. Good!

Yup~ - and returning 2 separate error messages for either alias does not exist or no pivot role permissions


ClinVar variant included without any pathogenic/likely pathogenic in list of conflicts

There is a variant on this list that is being brought in from ClinVar  (4-127921956-C-G), which is conflicting but one of the conflicts isn't pathogenic.
https://genie.broadinstitute.org/variant-lists/79c87528-3269-4b0c-88c8-dbf74f3fc799/

https://www.ncbi.nlm.nih.gov/clinvar/variation/162378/
https://gnomad.broadinstitute.org/variant/4-127921956-C-G?dataset=gnomad_r4
https://genie.broadinstitute.org/variant-lists/79c87528-3269-4b0c-88c8-dbf74f3fc799/

Hmm ok, so I believe the reason the variant in the original issue (4-127921956-C-G) is included is because when this list was created, it either had a different classification in ClinVar, or the logic of GeniE was not correct.
When I create a new list for this gene (MFSD8) on v4.1 with ClinVar variants including P/LP and Conflicting, this variant does not show up at all in the generated list.
So I believe, this is an issue of needing to have the feature to remove variants from a list permanently (#124), and not an issue of GeniE's current logic.
I'm going to close this issue while I investigate the second variant listed in the comments, if that's a seperate problem I'll open a standalone issue for that.

I found the same for the second example (genie.broadinstitute.org/variant-lists/b5a78bca-9ca0-4495-b15e-55461a9e05d3 (6-109785020-A-G))
When creating a new list, this variant is not included. So both these anomalies appear to be due to either incorrect older logic, or a change in the classifications on ClinVar. The best way to resolve these would likely be to allow tracking a secondary list of variants to never include in calculations.


Expose the lists of cards'/printings' cycles and sets

I had some git issues setting this up so double check this all works

I'm not sure how you mean present in searching? It's already possible to search for the card sets/cycles of cards and printings

Ohhhhh, yes. Correct! This is just adding the sets to the output and doesn’t need new search filters.


problem encountered at the beginning of the training：ValueError

Hello. It's an amazing job!
cuda11.7
wsl+ubuntu20.04
gtx1080
The problem is described as follows：
~/code/ngp_pl$ python train.py --root_dir /home/gzx/datasets/Lego/ --exp_name Lego
Warning: FullyFusedMLP is not supported for the selected architecture 61. Falling back to CutlassMLP. For maximum performance, raise the target GPU architecture to 75+.
Warning: FullyFusedMLP is not supported for the selected architecture 61. Falling back to CutlassMLP. For maximum performance, raise the target GPU architecture to 75+.
Warning: FullyFusedMLP is not supported for the selected architecture 61. Falling back to CutlassMLP. For maximum performance, raise the target GPU architecture to 75+.
Warning: FullyFusedMLP is not supported for the selected architecture 61. Falling back to CutlassMLP. For maximum performance, raise the target GPU architecture to 75+.
Using 16bit native Automatic Mixed Precision (AMP)
GPU available: True, used: True
TPU available: False, using: 0 TPU cores
IPU available: False, using: 0 IPUs
HPU available: False, using: 0 HPUs
Missing logger folder: logs/Lego
Traceback (most recent call last):
File "train.py", line 184, in
trainer.fit(system, ckpt_path=hparams.ckpt_path)
File "/home/gzx/anaconda3/envs/ngp_pl/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 770, in fit
self._call_and_handle_interrupt(
File "/home/gzx/anaconda3/envs/ngp_pl/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 723, in _call_and_handle_interrupt
return trainer_fn(*args, **kwargs)
File "/home/gzx/anaconda3/envs/ngp_pl/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 811, in _fit_impl
results = self._run(model, ckpt_path=self.ckpt_path)
File "/home/gzx/anaconda3/envs/ngp_pl/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 1174, in _run
self._call_setup_hook()  # allow user to setup lightning_module in accelerator environment
File "/home/gzx/anaconda3/envs/ngp_pl/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 1494, in _call_setup_hook
self._call_lightning_module_hook("setup", stage=fn)
File "/home/gzx/anaconda3/envs/ngp_pl/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 1595, in _call_lightning_module_hook
output = fn(*args, **kwargs)
File "train.py", line 67, in setup
self.train_dataset = dataset(split=hparams.split, **kwargs)
File "/home/gzx/code/ngp_pl/datasets/nsvf.py", line 43, in init
K = np.loadtxt(os.path.join(root_dir, 'intrinsics.txt'),
File "/home/gzx/anaconda3/envs/ngp_pl/lib/python3.8/site-packages/numpy/lib/npyio.py", line 1301, in loadtxt
arr = _read(fname, dtype=dtype, comment=comment, delimiter=delimiter,
File "/home/gzx/anaconda3/envs/ngp_pl/lib/python3.8/site-packages/numpy/lib/npyio.py", line 979, in _read
arr = _load_from_filelike(
ValueError: the number of columns changed from 4 to 3 at row 2; use usecols to select a subset and avoid this error
I don't know why this is happening and would like to get your help.

Hi, can you keep the original folder structure? i.e. keep the Synthetic_NeRF folder etc. Because I check the folder name here
https://github.com/kwea123/ngp_pl/blob/a7329b465a5a0c75b886913d371907811c9ac7d8/datasets/nsvf.py#L26
in order to check which format to read.
Please tell me if it works on your system, thanks!

I tried your method and the code works fine! I'll see the results in a moment. This is so exciting.
Thank you very much.

Can you add --no_save_test and try again? By default it loads all images to RAM, so if your memory is insufficient it causes OOM and killed.

I suspect it's because of the warning
Warning: FullyFusedMLP is not supported for the selected architecture 61. Falling back to CutlassMLP. For maximum performance, raise the target GPU architecture to 75+.

Can you change rgbs to rgbs.contiguous() at that line? If other variables have the same error, do the same thing (add .contiguous()) and try

Thanks for confirming that it works for GPU with compute compatibility < 75.
An easy fix of high memory consumption will be to load one image at a time instead of all images once. It can be done by yourselves according to your use. Good luck extending this work!


Avoid Cassandra IN clause

Separate point queries are usually faster.

No longer necessary given recent changes in master.


Fix Will's submodule link

The link wasn't there in the root of the repo. I should have fixed it now though. (I think?)

The link doesn't work for me in the branch but idk if that's just submodules not playing nicely with PRs - haven't used them before


Rake seed:blockchain fail

hi Rubykube
I can't create seed for blockchain
i have added step to blockchains.yml
but still cannot create seed @@!
ActiveModel::UnknownAttributeError: unknown attribute 'step' for Blockchain.

Hello @huuhait make sure that you make rake db:migrate cause we have migration with adding this column.


The response value of the function is out of order

Bug Report
[HttpPost]
public async Task MyPost([FromBody] Dictionary<int, string> myMap)
{
    var messages = new List<Message>();
    foreach (var keyValue in myMap) {
        if (keyValue.Key == 3)
        {
            messages.Add(new Message(Role.User, keyValue.Value));
        }
        else {
            messages.Add(new Message(Role.Assistant, keyValue.Value));
        }
    }
    Response.ContentType = "text/plain";
    Response.Headers.Add("Cache-Control", "no-cache");
    Response.Headers.Add("Connection", "keep-alive");
    var chatRequest = new ChatRequest(messages);
    await foreach (var partialResponse in api.ChatEndpoint.StreamCompletionEnumerableAsync(chatRequest))
    {
        if (partialResponse.FirstChoice.Delta.Content != null && partialResponse.FirstChoice.Delta.Content != "")
        {
            var data = Encoding.UTF8.GetBytes(partialResponse.FirstChoice.Delta.Content);
            Console.Write(partialResponse.FirstChoice.Delta.Content);
            //await Response.Body.WriteAsync(data, 0, data.Length);
            //await Response.Body.FlushAsync();
        }
    }
    //await Response.BodyWriter.CompleteAsync();
    return new EmptyResult();
}

it is my asp.net code. Console.Write print the text from te steam,and it is out of order.

What version was this?

the least, i update 5 minuts ago. ASP.NET SDK is 7

Perhaps it actually comes from OpenAI out of order?

Is there not a stack trace?
I only see your example

Perhaps it actually comes from OpenAI out of order?

I think the fact that the order matters, is more or less a problem with your implementation. Since it's Jason most of the objects are unordered by their nature.

ok,is the masssage list contains chat historical?
i mean should i push the historical chat into the massage list?

This line could prevent an item from being returned and then later it passes this check but now things seem 'out of order'
if (partialResponse.FirstChoice.Delta.Content != null && partialResponse.FirstChoice.Delta.Content != "")

however, i test it only with one message.
the message is “write a android compose example code”.
and it response：
Here is an example code snippetHere is using Android an example Compose:
import androidx.compose of a.foundation.layout basic Android Compose code snippet:

```kotlin
import androidx.compose.Column
.foundation.layout.Column
import androidximport androidx.compose.material.Text
.compose.materialimport androidx.Text
import androidx.compose.runtime.compose.runtime.Composable
.Comimportposable
import androidx.compose androidx.compose.ui.tooling.ui.tool.preview.Preview

ing.preview.Preview@Com
importposable
fun My androidx.composeComposable.ui.toolComponent() {
    Column {
ing.preview        Text(text =.P "Helloreview, AndroidParameter

@Com Compose!")
       posable
 Text(textfun G = "reetUser(name:This is a sample String) {
    Composable Text(text = " component.")
    }
}

@Hello,Preview
 $name@Com!")
}

@Previewposable
fun
 Preview@MyComposableComponentComposable
fun() {
    My PreviewGComposableComponent()
reetUser() {
}

In    G this codereetUser snippet, we define(name = a Com "Johnposable function")
}
`My```
ComposableComponentIn this that displays two  example,Text we haveelements within a com aposable functionColumn G layout.reetUserthat We also use the@ takes aPreviewannotation toname create aparameter preview function and displays a greetingPreviewMyCom message.posableComponent We havethat also created a preview allows us function to see how thePreviewGreetUser Composable component will look like` to show how in the Android Studio the com preview paneposable looks.

you can see that the order of output is chaotic.


Support appchart customization

Fix: https://github.com/epinio/epinio/issues/1252

[x] Extend manifest structures with key/value map for customization
[x] Extend app structures with the same
[x] Extend appchart API structures with the  user-visible app chart customization settings
[x] Extend display of appchart details with table of the user-visible app chart customization settings
[x] Test new display (list, details)
[x] Add option --chart-value (create, update, push). See handling of --env for analogous code.
[x] Implement server-side storage of chart values provided by --chart-value. See --route for basic analogous code.
[x] Retrieve chart values when retrieving app data
[x] Extend display of app details, show chart values (cli side validation for awareness ?)
[x] Test extended display
[x] Implement endpoint to validate app customization against app chart declarations
[x] Test validation
[x] Add validation of chart values to the app update endpoint as well, to be run when the app is active
[x] Extend low-level app deployment code to merge chart customization (user-visible, app chart) into the deployed helm chart.
[ ] Test customized app deployment
[x] Update swagger

Codecov Report
Base: 51.92% // Head: 39.32% // Decreases project coverage by -12.60% :warning:

Coverage data is based on head (db293bc) compared to base (5dff0cb).
Patch has no changes to coverable lines.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1689       +/-   ##
===========================================
- Coverage   51.92%   39.32%   -12.61%
===========================================
  Files         168      168
  Lines       12492    12489        -3
===========================================
- Hits         6487     4911     -1576
- Misses       5152     6852     +1700
+ Partials      853      726      -127

Flag
Coverage Δ

acceptance-api
?

acceptance-apps
37.92% <ø> (-0.33%)
:arrow_down:

unittests
8.63% <ø> (-0.03%)
:arrow_down:

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

 Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

Tech dept reported by linter placed into new ticket #1695

cli/api failures are mostly legit ... cli because the validation is now active, and the test in question used the standard chart, which has now chart values declared for it

:tada: upgrade test fixed ... time to clean the history a bit

Down to the test known to getting stuck.


45 Sek. of data on all collectors is lost on CPU spikes

If one of the machines running WMI_Exporter gets a little higher CPU demand then usual, the monitoring data for all collectors for about 45 seconds is lost.

This sounds like a duplicate of #190? This is not related to wmi_exporter itself, but rather process scheduling in the operating system. If the machine is overloaded, then the exporter will not necessarily be given an opportunity to respond to the scrape request. Or, even if it is able to start doing so, a number of cross-process calls to the WMI subsystem must also be scheduled.

Even if the server gets a 60% load on 1 of 4 cores only, it stops collecting data. If a server gets slowly to a 60% load over a longer time priod, everythins is fine.

Does the up metric created by the Prometheus server become 0 at these times?

No, I will get an alert, if UP changes to 0  on one of my prom jobs.

Does your alert trigger instantaneously (ie does not have a for clause)? Hm, so Prometheus does not see the scrape as failed? This is very strange. What about the wmi_exporter_collector_success metric, what does it say during these times?

Ok, this is not related to the cpu, but abobe 2.5K of threads on a system, I run into this problem.
I will look into the "wmi_exporter_collector_success" metric soon.

It is always "1"

For all collectors? But they still don't report any data from the collectors?
Could you try a query like count({job="wmi_exporter", instance="<name/ip of host with problem>"}) and see if it goes down when you have the problems?

Yes, and I believe there is no data to report, because collecting on the server just stops above the "threads" threshhold. Ok, I will try to get more infos.

Is 45 sec your scrape interval? Or is it lower, but the lack of data is still exactly 45 seconds? This also seems very odd.
And wmi_exporter_collector_success is 1 for all labels at this time? What about wmi_exporter_collector_duration_seconds, how long time do these scrapes take? Anything written to the Windows event log?

yes, 30 sek + 10 sec. timeout
There is no data, also no wmi_exporter_collector_success
2-5 sec.
Nothing of interest in the WinEventlog

Almost all target are Terminal Server/RDS

Ok, so the fact that you get no data at all would indicate that Prometheus cancels the scrape due to timeout. Could you verify this by checking if up is actually 1 at these times?
It's hard to guess at exactly what is happening, but if you have sudden bursts of high thread counts, it could be a contention issue which causes the exporter (or the underlying wmi system) to not get the cycles needed to complete in time.
We currently don't keep track of if the client (Prometheus in this case) cancels the request. This might be something to add to be able to log when it happens, at least.
But please check the graph view of your Prometheus server to validate that up over one of these periods.

I checked it again and it is UP, and if UP = 0 it is not releated to the missing monitoring data, because there is a time difference from xx minutes to hours.

I slimed down the collector to "cs,os" only and it works without problems.

"cs,os,services" (selecting 5 services), is also fine. Adding only one of the other collectors, will lead to lost data.

Very strange. I'm wondering if you may be seeing something like #89?

Yes, could be related, I also see the 16-17 minute pit of missing data. I believe it is related to some limits or internals of wmi, winmgmt and not to any stress / CPU spikes on the server, because you can clearly get around the problem by just selecting fewer collectors.
I also tried to separate the "move the  WMI service to a stand alone host", but it does not change anything. I can also remember, when M$ started to offer monitoring with systemcenter back in the Day, there were similar issues, but I don't know if they managed to get around it.


Updated readme to reflect default settings

This is a keyboard fix for the second demo:

Join (J) adds spaces between the letters by default. To accomplish this without spaces, you need to use gJ. Perhaps you have changed some settings or key combinations?
J                       Join [count] lines, with a minimum of two lines.
                        Remove the indent and insert up to two spaces (see
                        below).  Fails when on the last line of the buffer.
                        If [count] is too big it is reduce to the number of
                        lines available.

                                                        v_J
{Visual}J               Join the highlighted lines, with a minimum of two
                        lines.  Remove the indent and insert up to two spaces
                        (see below).  {not in Vi}

                                                        gJ
gJ                      Join [count] lines, with a minimum of two lines.
                        Don't insert or remove any spaces.  {not in Vi}

                                                        v_gJ
{Visual}gJ              Join the highlighted lines, with a minimum of two
                        lines.  Don't insert or remove any spaces.  {not in
                        Vi}

Source: :help J

I know it's been almost 2 years and that that is minor, but what it preventing this PR to be merged ?

I don't even remember, I think it may just be from before I got access to this repo; it was quasi-unmaintained for a while prior to that.
I did a pass of a bunch of fixes that made it work "good enough" for me and haven't payed much attention to it since :/

@eapache thanks for the merge!
No problem, I might look in the issues and PR of this repo in the next few days.
Please don't hesitate if I am being too nosy or insistent.
Thanks for this amazing plugin, cheers ;)


Added sort linked list of zeros, ones and twos in cpp

Have you read the Contributing Guidelines on Pull Requests?
Yes
Description
Added a problem sort linked list of zeros, ones and twos in cpp.
Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.
[x] I've edited the README.md and link to my code.

Related Issues or Pull Requests
#5381

Why the code matches with this code

I had tried this question earlier by myself. I was not at all aware that this code is available on the internet.

Read the instructions mentioned on Gssoc discord yesterday. Do the changes as per that.

@ankitaggarwal23 Is it okay?


per-package-target seems to compile the wrong target

Problem
'cargo build --verbose' seems to indicate that rustc is compiling for the wrong target.
Steps

git clone https://github.com/MarkSwanson/build-failed1.git
cargo build --verbose
3.Note the rustc error compiling the void (1.0.2) crate
...
std is required by void because it does not declare #![no_std]

Partial Workaround

cd into each workspace package individually and 'cargo build'. For some reason cargo works perfectly this way.
However, this doesn't work with vscode.
remove "rpi4" from Cargo.toml workspace members.
Sadly then I can't build the raspberry pi 4 target.

Notes
It seems positive that all build targets (x86, thumbv7em-none-eabihf, thumbv7m-none-eabi, armv7-unknown-linux-musleabihf) work perfectly if I run 'cargo build' from their respective workspace package dirs. (slight graph miscalculation when compiled from the root of the workspace?)
I note that the void crate is designed to work with std and no-std. However, the rustc error might indicate that rustc needs to have a slightly more robust check to detect how the void crate uses cfg or cfg_attr to support both environments?
Output of cargo version:
cargo 1.54.0-nightly (e931e4796 2021-05-24)

Hmmm… Haven't investigated the linked code much yet, but based on the description I'd guess this is a side-effect of the second checkbox at https://github.com/rust-lang/cargo/issues/9406: void probably has a std feature, one of the crates of the workspace depends on it with the std feature, and the other one depends on it as no_std; thus leading to a problem.
Based on an overall look at the code, I'd think:

defmt-gdb transitively depends on void while requiring it to be no_std
rpi4 depends on nrf24l01 -> spidev -> nix 0.6.0 (that's an old version, probably bumping it somewhere along the dependency tree would be beneficial) -> void with the std feature

So I'll triage it on the tracking issue as one instance of the second checkbox, thank you for having filed this and linked there :)

I think this is somewhat a duplicate of #4463, which is unfortunately not easy to resolve.

I think I ran into a similar issue before when I was trying this feature. What ended up working for me was making sure I specify a target for each crate, even if it should be the default. So forced-target = "x86_64-pc-windows-msvc" in Cargo.toml with cargo-features = ["per-package-target"] at the top.

I also hit this. I have a host application that depends on num-traits's std feature-set, and a firmware crate that depends on its no-std feature-set. See https://github.com/tmplt/cargo-rtic-trace/tree/demo/per-package-target. cargo-rtic-trace/ is the host application. examples/ contains the firmware.

Fwiw I worked around this by using cargo-make. Example:
[config]
skip_core_tasks = true

[tasks.default]
command = ""
args = []
alias = "custom-default"

[tasks.custom-default]
dependencies = [ "build-rpi4", "build-stm32f103", "build-xtask", "build-defmt-gdb", "build-common" ]

# rustup target add thumbv7m-none-eabi
[tasks.build-stm32f103]
command = "cargo"
args = ["build", "--manifest-path", "stmf103/Cargo.toml"]
dependencies = [
    "readme"
]

...
However, I lose Cargo's workspace ability to ensure dependencies are the same between directories/packages.
I could also make each of these their own separate git repo/crate. But I'd still lose the workspace ability to ensure dependencies are the same.
I found that Cargo has resolver = "2" (a new resolver that includes more things in the dependency/build graph for each package) but it didn't work.
It seems that Cargo is trying hard to be considerate to the developer and ensure that only the minimal set of packages are compiled per workspace member. I appreciate that, but I wonder if we also need an option that says - just create a separate full build graph for each member. I realize this would increase initial compile times, but it would always work. Crazy?


Errors should wrap and not show up outside of host box

v0.15.1

Results:
Notice the error is  bleeding outside of the box
Expected:
Error should wrap properly

Version - master 3/9
Verified fixed


Lamba problems (socket hang up)

Tried it a few different times around with no luck.
When trying to run the blueprint I get the following:
{   "version": "1.0",   "response": {     "outputSpeech": {       "type": "PlainText",       "text": "The Lambda service encountered an error: socket hang up"     },     "shouldEndSession": true   },   "sessionAttributes": {} }
Similar issue as in #42 but he never shared his fix for it. The api works on external networks and that is not the problem.
Any thoughts what could be wrong?

Fixed it myself after very foolish troubleshooting. If anyone else have the problem then it was a slight mismatch between Lamba service and the presets.json file running. Maybe can help someone along in future.


Is it possible to create threads with extra functions?

Is it possible to create threads with extra functions?
From the tests I did, the base application is closed and the webui is opened outside the main application, however the thread is forcibly killed...
Is that exactly what I understood, or am I wrong?

The UI can still open after backend closes only if it fails to connect to the backend application. Don't forget that the UI (web browser) is completely a separated process. However, Can you please add more details and test code about the thread issue?

Well, I would like to create a webview for my web game... however I want to publish it on Steam, so I want to leave the Steam API running in the backend to ensure there is no fraud or piracy...
Would it be possible to add these features?
Well, I'm a bit stupid, but where can I find an example of connecting to the backend?

I would like to create a webview

I would like to clarify that WebUI it's not a WebView. Let me explain.
The WebView project uses and embed the operating system webview controller into your application, and it needs the webview runtimes to be installed on the end-user to make your program runs. The whole UI is embedded in your program.
The WebUI project (this repo) uses any installed web browser as UI. so your program (backend) needs just a web browser to run. No runtimes is needed. The UI is completely a separated process.

where can I find an example of connecting to the backend?

To connect UI to the backend, simply add webui.js to your UI HTML.
Documentation:
https://webui.me/docs/2.4.0/#/
Examples:
https://github.com/webui-dev/webui/tree/main/examples

You can still mix WebView and WebUI in one project if you like too. But to help you better, we may need first what programming language you are using and if you can share some simple codes that will help us understand your main issue better.

I would like to create a webview

I would like to clarify that WebUI it's not a WebView. Let me explain.
The WebView project uses and embed the operating system webview controller into your application, and it needs the webview runtimes to be installed on the end-user to make your program runs. The whole UI is embedded in your program.
The WebUI project (this repo) uses any installed web browser as UI. so your program (backend) needs just a web browser to run. No runtimes is needed. The UI is completely a separated process.

where can I find an example of connecting to the backend?

To connect UI to the backend, simply add webui.js to your UI HTML.
Documentation: https://webui.me/docs/2.4.0/#/
Examples: https://github.com/webui-dev/webui/tree/main/examples

awesome !! But it's still possible to make a "client" for my game, right?

You can still mix WebView and WebUI in one project if you like too. But to help you better, we may need first what programming language you are using and if you can share some simple codes that will help us understand your main issue better.

im using c++

Sure you can, just check out the C++ example and the C++ documentation.
Please let me know If you have any issue/question.

thanks by u support 💯


How to use beam search？

Hi，
If I want to use beam search, should I modify some parts of the code?

Dear All,
Please see our newly released graph4nlp library: https://github.com/graph4ai/graph4nlp, which have implemented many GNN methods like Graph2Seq and Graph2Tree models.


Added impl for constant offset_of

doctests do not pass yet

@RalfJung Do you know what to do about the doctests failing?

Add this to the macro:
#[allow_internal_unstable(const_ptr_offset_from, const_transmute, ptr_offset_from)]

This allows unstable features to be used in a macro without the crate which uses the macro needing to declare them.

This doesn't seem to work, for some reason.
diff --git a/src/lib.rs b/src/lib.rs
index 536cdef..b449f61 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -61,6 +61,7 @@
 #![cfg_attr(feature = "memoffset_constant", feature(const_ptr_offset_from))]
 #![cfg_attr(feature = "memoffset_constant", feature(const_transmute))]
 #![cfg_attr(feature = "memoffset_constant", feature(ptr_offset_from))]
+#![cfg_attr(feature = "memoffset_constant", feature(allow_internal_unstable))]

 #[macro_use]
 #[cfg(memoffset_nightly)]
diff --git a/src/offset_of.rs b/src/offset_of.rs
index 99eed50..c77c43f 100644
--- a/src/offset_of.rs
+++ b/src/offset_of.rs
@@ -96,6 +96,7 @@ macro_rules! offset_of {
 }

 #[cfg(feature = "memoffset_constant")]
+#[allow_internal_unstable(const_ptr_offset_from, const_transmute, ptr_offset_from)]
 #[macro_export(local_inner_macros)]
 macro_rules! offset_of {
     ($parent:path, $field:tt) => {{

I am not sure if allow_internal_unstable works outside libstd...
@Gilnaa you said it "doesn't work"; what's the error?

It doesn't affect the output at all, is if it wasn't there.
Really does sound like it doesn't work outside of libstd.

In that case maybe we have to ask users to add the feature gates to their crate as well?

I don't think we have a choice. I'll add it to the readme

@RalfJung Any comments?

LGTM!
However, I just wondered about one thing... is enclosing this in a const-scope a problem for generics? Like, what about
struct Pair<T, U>(T, U);

fn foo<T, U>(x: Pair<T, U)> {
  let o = offset_of!(Pair::<T, U>, 1); // does this work?
}

My guess is, by putting the computation into an intermediate const OFFSET we break that use-case. Do we consider that a problem?

I think that does work. I'll add a test for that.

It works but I encountered a miri failure when trying to take a reference to a packed struct.
I think that that is a bug, but and not sure.
I fixed it in the tests, but it can be reproduced using:
    #[test]
    fn miri() {
        #[repr(C, packed)]
        struct Foo<T, U>(T, U);
        let u = Foo(0, 0);
        let v = &u.1;
    }

Should I open an issue about it?

That's not a bug in Miri, the code is UB. :)  You are creating unaligned references.
That's why the other packed test is cfg(not(miri)). Why even use pack for the new test?

r=me with the last nit fixed and some commits squashed.

@RalfJung

Thanks!


Creating virtualenv is failed on mac

Hi there,
I think there is owner problem in my mac using pipenv.
After installing pipenv through brew, I tried to use it, but there is an error;
$ pipenv --python 3.6.5
Creating a virtualenv for this project…
Using /usr/local/bin/python3.6m (3.6.5) to create virtualenv…
Traceback (most recent call last):
  File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 109, in expect_loop
    return self.timeout()
  File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 82, in timeout
    raise TIMEOUT(msg)
pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x10d2fe7b8>
searcher: searcher_re:
    0: EOF

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/Cellar/pipenv/2018.5.18/libexec/bin/pipenv", line 11, in <module>
    load_entry_point('pipenv==2018.5.18', 'console_scripts', 'pipenv')()
  File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 1043, in invoke
    return Command.invoke(self, ctx)
  File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/cli.py", line 270, in cli
    three=three, python=python, warn=True, site_packages=site_packages
  File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/core.py", line 620, in ensure_project
    three=three, python=python, site_packages=site_packages
  File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/core.py", line 569, in ensure_virtualenv
    do_create_virtualenv(python=python, site_packages=site_packages)
  File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/core.py", line 936, in do_create_virtualenv
    click.echo(crayons.blue(c.out), err=True)
  File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/delegator.py", line 99, in out
    self.__out = self._pexpect_out
  File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/delegator.py", line 87, in _pexpect_out
    result += self.subprocess.read()
  File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 441, in read
    self.expect(self.delimiter)
  File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 341, in expect
    timeout, searchwindowsize, async_)
  File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 369, in expect_list
    return exp.expect_loop(timeout)
  File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 119, in expect_loop
    return self.timeout(e)
  File "/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 82, in timeout
    raise TIMEOUT(msg)
pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x10d2fe7b8>
searcher: searcher_re:
    0: EOF
<pexpect.popen_spawn.PopenSpawn object at 0x10d2fe7b8>
searcher: searcher_re:
    0: EOF

But, using sudo, I can create virtualenv;
$ sudo pipenv --python 3.6.5
Password:
Creating a virtualenv for this project…
Using /usr/local/bin/python3.6m (3.6.5) to create virtualenv…
⠋Running virtualenv with interpreter /usr/local/bin/python3.6m
Using base prefix '/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6'
New python executable in /Users/me/.local/share/virtualenvs/prj-itnUncie/bin/python3.6
Not overwriting existing python script /Users/me/.local/share/virtualenvs/prj-itnUncie/bin/python (you must use /Users/me/.local/share/virtualenvs/prj-itnUncie/bin/python3.6)
Installing setuptools, pip, wheel...done.

Virtualenv location: /Users/me/.local/share/virtualenvs/prj-itnUncie

I think that making pip-selfcheck.json is not good because it's owner is root.
$ ls -l /Users/me/.local/share/virtualenvs/prj-itnUncie/
total 8
drwxr-xr-x  16 me  staff  512  6  3 14:57 bin
drwxr-xr-x   3 me  staff   96  6  3 14:54 include
drwxr-xr-x   3 me  staff   96  6  3 14:54 lib
-rw-r--r--   1 root  staff   61  6  3 14:57 pip-selfcheck.json

Or, making activate shell scripts.
# after pipenv --python 3.6.5
$ tree /Users/me/.local/share/virtualenvs/prj-itnUncie
/Users/me/.local/share/virtualenvs/prj-itnUncie
├── bin
│   ├── easy_install
│   ├── easy_install-3.6

# after sudo pipenv --python 3.6.5
$ tree /Users/me/.local/share/virtualenvs/prj-itnUncie
/Users/me/.local/share/virtualenvs/prj-itnUncie
├── bin
│   ├── activate
│   ├── activate.csh
│   ├── activate.fish
│   ├── activate_this.py
│   ├── easy_install
│   ├── easy_install-3.6

$ ls -l /Users/me/.local/share/virtualenvs/prj-itnUncie/bin/activate*
-rw-r--r--  1 root  staff  2116  6  3 15:07 /Users/me/.local/share/virtualenvs/prj-itnUncie/bin/activate
-rw-r--r--  1 root  staff  1058  6  3 15:07 /Users/me/.local/share/virtualenvs/prj-itnUncie/bin/activate.csh
-rw-r--r--  1 root  staff  2212  6  3 15:07 /Users/me/.local/share/virtualenvs/prj-itnUncie/bin/activate.fish
-rw-r--r--  1 root  staff  1137  6  3 15:07 /Users/me/.local/share/virtualenvs/prj-itnUncie/bin/activate_this.py

Additionally, I changed venv directory to use PIPENV_VENV_IN_PROJECT or WORKON_HOME, this problem is not resolved.
Environments are below;

Pyenv: 1.2.4
Pipenv: 2018.5.18
Homebrew: 1.6.4
mac os: high sierra 10.13.4

Thank you.

Hi, sorry you ran into this issue
For context, you are having this problem because you ran pipenv with sudo privileges. You should never do this, this is not supported or recommended and it should never be necessary.  Doing something as sudo will always use root permission and therefore mess with whatever files are created. If you want to fix this problem you will have to remove these thigns using sudo again
Pipenv does not create pip-selfcheck or any other pip related files, but it does make pipenv related files and other files in your virtualenv -- this is how virtualenvs work.  When you run them with root permissions they get created as root.  Therefore you need to be root to remove them.
For more support please see stackoverflow


Allow lager.Loggers to also be used as context.Contexts

#130944305
Signed-off-by: Luke Woydziak<EMAIL_ADDRESS>

Hey, @paulcwarren,
After further discussion with @tedsuo and @lwoydziak, we've decided not to take this approach to bundling a context.Context and a lager.Logger together into a single object. Consequently, I'm closing this PR.
Thanks,
Eric


update crd apiVersion to apiextensions.k8s.io/v1

Reflecting the change in https://github.com/open-cluster-management/hub-crds/pull/20
For https://github.com/open-cluster-management/backlog/issues/10696

/hold

The Travis build is failing in the search-e2e job.

/approve
/hold


BROKERS: Add DateTime broker

@hassanhabib  I thought this is another broker that is needed for the foundations service I am working on. So, created issue for better tracking


ingress link not working

supervisor log:
[supervisor.api.ingress] Ingress error: Cannot connect to host <IP_ADDRESS>:8099 ssl:default [Connect call failed ('<IP_ADDRESS>', 8099)]
response when open Userinterface: 502: Bad Gateway
config:
owhttpd: true
device: ' /dev/ttyAMA0'
Addon Log:
Add-on: owserver (1-Wire)
onewire server to read 1-Wire devices
Add-on version: 0.2.0
You are running the latest version of this add-on.
System: Home Assistant OS 6.2  (aarch64 / raspberrypi4-64)
Home Assistant Core: 2021.8.8
Home Assistant Supervisor: 2021.06.8
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing...
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] owserver.sh: executing...
[14:05:06] INFO: Configuring  /dev/ttyAMA0 device
[cont-init.d] owserver.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[14:05:06] INFO: Starting owserver...
[14:05:06] INFO: Starting owhttpd...

It looks that you have typo in your configuration. Space between ' and /
device: ' /dev/ttyAMA0'
Check your configuration and try again.
You van start addon with random devices just for testing purpose. To do that leave device parameter empty - device: ''

It looks that you have typo in your configuration. Space between ' and /
device: ' /dev/ttyAMA0'
Check your configuration and try again.
You van start addon with random devices just for testing purpose. To do that leave device parameter empty - device: ''

Good eye for the typo ;-)
But even with the random device (log names it fake device) I'll get the 502.
After restart of the add on or the whole raspberry.

Can you verify with the latest version 0.2.1 whether the issue still exists?

Hi Irybak, thanks for reaching out.
I can confirm that it is working with the fake device now, so the issue is solved from my perspective.
I still can not connect my 1wire USB Dongle to the OWServer, but that is related to HA as it doesn't detect the device.
Thanks! :-)

Try to buy the one mentioned on project site. Very reliable and cheap device (around 20EUR). I'm personally using it since 6 or 7 years.


GPT 4

is it possible to switch the model to GPT 4 if we have API access?

Yes, in every chat there is a Settings button in the AppBar on top where you can switch the model to gpt-4 or even gpt-4-32k. These settings are currently persisted per chat.


it is not possible to start any application after build

Actually it is not clear how to make work your ruby application after you build it via buildpacks
jemalloc.sh - not found
puma - not found
bundle - not found

project.toml
[_]
schema-version = "0.2"

# buildpack configuration goes here
[com.heroku.buildpacks.deb-packages]
install = [
    # string version of a dependency to install
    "libtag1-dev",
    "libjemalloc2",
    "memcached",
    "nginx"
]

How these buildpacks actually works ?

(Duplicate of https://github.com/heroku/buildpacks/discussions/6#discussioncomment-11098473)


Forced send() to accept an Endpoint instead of a String

This commit will force the send() to accept an Endpoint instead of a String. This insures that invalid URL's will not be passed in.
Also, a minor error that I noticed was that in the getInformation() and getEndpointThroughAPI() they converted the endpoints to URL's by using toString() instead of getURL().

What about query parameters?

What about query parameters?

As I said in another issue, query parameters is another issue. We shouldn't be modifying our own URL in the code. We may want to have a factory class to handle that.

I wouldn't merge until we got that done then though. Can you clarify how you want it to look like please? Then i can make a PR for that.

I wouldn't merge until we got that done then though. Can you clarify how you want it to look like please? Then i can make a PR for that.

https://github.com/hypixelapiwrapper/hypixel-api-java/issues/47


Include error bits/c++config.h

Hi,
Thanks for this repo, amazing dev setup!
I only have one issue, as soon as I include uintx include <cstdint> the following error appears:
cannot open source file "bits/c++config.h" (dependency of "C:\git\stm-cmake\src\main.cpp")
It's only an intellisense warning, during compilation there is no warning at all.
Using CubeIDE 1.10.0 with Gnu tools for STM32 10.3-2021.10
Did I forgot some part of the configuration setup?

Thanks for the quick response, a known issue then, unrelated to the setup described in this repo.


Enable HTTP Strict Transport Security and Content Security Policy (CSP)

Per Sept 24, checkpoint with @sbeara:
Should have HSTS and CSP prior to launch or soon after
HSTS, Content Security Policy, X-Frame-Options, X-Content-Type-Options
See resources and details documented in previous (similar) cellxgene issue:
At a minimum, we’d want HTTPS enforced with HTTP Strict Transport Security enabled. Tablestakes:

Strict-Transport-Security: max-age=31536000
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-Frame-Options: deny

Thanks @brianraymor ! Will add details to this ticket this week!

@brianraymor I think we might need to turn this into a design ticket first
I encountered some issue researching this today, since Data Portal is using Gatsby to build a static website (different from how Meta and cellxgene's web app setup), it doesn't naturally play well with setting security related response header stuff as required, because the server is an S3 bucket
So my preliminary research points to using AWS Lambda@Edge to set the response header, but I want to dedicate more time to have a proper discussion with our team + infosec and infra to make sure we have the right solution before fleshing out the details
I'm thinking maybe a 3 would be enough!
Gatsby CSP issue: https://github.com/gatsbyjs/gatsby/issues/10890
If that sounds good to you I'll replace "refine me" with "design me"! Thank you!

@brianraymor gentle ping 🙏 It feels like we might need to pull this into next sprint to work on design? Thanks!

Sync'd with Brian offline, we'll pull this design ticket in for me to work on next sprint! Thank you!

@tihuan - are you aware of https://www.gatsbyjs.com/plugins/gatsby-plugin-csp/ which was noted in the security checklist.

@brianraymor Thanks for the link!
Yeah the thread https://github.com/gatsbyjs/gatsby/issues/10890 mentions the plugin, but since it serves CSP via HTML, it doesn't work for report-uri, which is needed for monitoring and also not the preferred way to serve CSP 😞 (https://developers.google.com/web/fundamentals/security/csp#the_meta_tag)

Discussion started on slack in #ask-infra

Call scheduled with infra tomorrow RE: Gatsby + CSP + migration

Thanks so much for leading this, @seve !! Look forward to our meeting tomorrow 🤩 🎉 !

@damien captured the following notes for us 🙏 Thanks so much again for your advices and insights!
Updating this thread and a ticket I'm using to track this request with action items/plans that came out of this meeting:

Single Cell Eng has a feature that takes user input that they plan to release by end of Q1. Prior to this feature, the static site in question was read-only. The release of this feature opens the site up to XSS attacks, which any CSP implementation would protect it from. I've advised the Single Cell Eng team to let their product people know that CSP is a hard requirement to securely launching that feature.

Single Cell Eng believes implementing CSP via meta tags to be trivial. They'll be giving this a shot as an easy way to implement CSP and unblock a new feature rollout.

Time allowing, Single Cell Eng hopes to migrate away from a Gatsby.js static site deployment to a more dynamic Express.js deployment. Express.js has built in facilities to allow for CSP implementation via response headers--important to note as response based CSP allows for reporting of CSP violations to our monitoring/alerting infra.

If either the meta-tag based CSP protections or the migration to Express.js cannot be done before the desired go-live date for the new user input feature, I've advised the Single Cell team to reach out to Infra for additional assistance. We can probably scrape something together using Cloudfront+Lambda to buy Single Cell Eng more time if they end up needing it.

I'll be noting all this in this week's on-call doc and in a ticket I'm using to track this conversation. :ok_hand:
https://chanzuckerbergteam.slack.com/archives/C94RQ5SBV/p1607466505036100?thread_ts=1607372238.494600&cid=C94RQ5SBV

Thanks for looping me in! I think you guys have a good game plan, but again: feel free to reach out if you get stuck and are worried about not having some kind of CSP mitigation in place before launch. 💪 🚀 :shipit:

Aside: We in Infra(Sec|Eng) recently saw another team publich a cztack TF module that uses Cloudfront Lambda@Edge functions to add HSTS headers. I figured we could do something similar for CSP headers as an approach of last resort if the meta-tag approach doesn't work and the Express.js migration runs longer than anticipated. 👌

Ooh nice! OK that sounds great 😄👌  Thanks so much for sharing this too!


Feature request: create DNS records for non-default projects (i.e. in multi user setup)

Following the discussion in https://discuss.linuxcontainers.org/t/dns-not-created-for-containers-created-in-user-projects/15668
Hope this is acceptable format to request additional functionality. I have been hacking the most out of LXD for my use case and possibly it is not intended use, so low priority and not important if this is going to be dismissed.
Summary
LXD server is configured in multi-user setup. The network is shared across all projects. Zone is configured for the network.
When container is created in default project, DNS record is also created for this project.
Issue description
If container is created in a user project, which is not a default project, DNS record is not created (see links below).
Maybe enable this via project config, features or restrictions? https://linuxcontainers.org/lxd/docs/master/projects/
Steps to reproduce
Configure zones for your network, ensure network is shared across all projects. Create containers in default and non default projects. Monitor zone transfer and check whether all DNS records are created/exported.
Relevant info
multi user setup: https://discourse.ubuntu.com/t/easy-multi-user-lxd-setup/26215
create dns zone: https://linuxcontainers.org/lxd/docs/master/howto/network_zones/

I'm already working on this.

I don't see how option 2 can work.
The DNS server can only have one version of the zone. We can't allow the same zone to exist in two projects at the same time or we won't know what to serve.

Ah, I see, you'd still keep the zones unique but allow linking to multiple zones and then filter by the protect the zone is tied to.
I think that would work and shouldn't be too big a change if we go with comma separated zone names.

Yep exactly, thanks.


various changes

make chart more reliable, added different variable values

@krakazyabra Thanks for your help to improve this charts.


Update docs for retrieving VpnPacketBuffers.

The RequestVpnPacketBuffer is supported so let's remove the note indicating otherwise. Also add note regarding returning buffers back to the platform eventually.
cc @PeterSmithRedmond @stevewhims

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


Minor renaming in prom-to-sd

You merged #2601 too fast

This change is

Sorry - /lgtm

Thanks!


Access Denied issue

Hi sixem, the extension stopped working this week, when I try to download any video it redirects to url like
https://v16-webapp-prime.tiktok.com/video/tos/alisg/tos-alisg-pve-0037c001/o4ygUGQYEujUAn1CIICEtAAkQIfx7otgUwczGh/...
which page shows

Access Denied
You don't have permission to access "http://v16-webapp-prime.tiktok.com/video/tos/alisg/tos-alisg-pve-0037c001/o4ygUGQYEujUAn1CIICEtAAkQIfx7otgUwczGh/?" on this server.
Reference #18.14cd387d.1710573293.271cf45

tried both chrome and firefox, please have a look when available, thanks!

This is the fallback functionality for when the API fails, and it doesn't always work. Basically it'll just try to open the actual raw video URL instead, as fetched through the HTML.
I've updated the API URL and submitted the updates now, so hopefully that should fix it. I'll leave this open for a bit in case of any new issues.

Yes it's working like a charm, much appreciated 🤩

Hi @sixem I've found that usually when certain video fails to download with access denied error, other downloadable videos will also fail to download for a period of time (then become downloadable again), just wonder that how long is this period and is it possible to avoid this? Thanks!

Actually I sorta figured out a way to circumnavigate this situation, previously when I clicked the download button of certain video, if the download button hangs a few seconds spinning I know it's undownloadable (because usually it starts downloading instantly), then I could simply close that browser tab and reopen, and it'll not affect other videos to download.
However since the latest version when a video download fails it fails immediately (without button spinning), which makes it impossible for me to preemptively close the tab before it causes other videos to be undownloadable..

Actually I sorta figured out a way to circumnavigate this situation, previously when I clicked the download button of certain video, if the download button hangs a few seconds spinning I know it's undownloadable (because usually it starts downloading instantly), then I could simply close that browser tab and reopen, and it'll not affect other videos to download.
However since the latest version when a video download fails it fails immediately (without button spinning), which makes it impossible for me to preemptively close the tab before it causes other videos to be undownloadable..

Yeah, once an API fails (it attempts a few times during the same download with a few different version parameters set), there will be a flag that tells it not to use the API until a set amount of time has passed. I think it's somewhere around 15 minutes. This is probably why it hangs on downloading, as it is attempting like 4-5 requests before giving up, I think, and when the flag/cooldown is active, this entire process is skipped. Why the behavior has changed since the last update, I don't know, and I'll have to have a look at that. All that has been changed is the URL of the API, so that's strange.
This cooldown can be reset by simply opening the addon's menu and clicking save, by the way. This should tell it to attempt the API again.
The idea behind this was that the fallback actually worked when I initially created this addon, but TikTok has changed a lot since then, and directly opening or saving videos rarely seems to work now. So, if the API failed or needed updating, there was a fallback in place, and this stopped it from just infinitely attempting to use an API that may have not worked at all. But yeah, this doesn't seem to save any purpose anymore.
I think a good solution to this is to simply remove the fallback and the cooldown, and instead just have a better way of displaying an error or some sort whenever the API fails, as that seems to be the only reliable way of downloading videos now anyway. If I have some time soon, I may look into doing that.

Sure thanks @sixem take your time!

Actually I sorta figured out a way to circumnavigate this situation, previously when I clicked the download button of certain video, if the download button hangs a few seconds spinning I know it's undownloadable (because usually it starts downloading instantly), then I could simply close that browser tab and reopen, and it'll not affect other videos to download.
However since the latest version when a video download fails it fails immediately (without button spinning), which makes it impossible for me to preemptively close the tab before it causes other videos to be undownloadable..

Yeah, once an API fails (it attempts a few times during the same download with a few different version parameters set), there will be a flag that tells it not to use the API until a set amount of time has passed. I think it's somewhere around 15 minutes. This is probably why it hangs on downloading, as it is attempting like 4-5 requests before giving up, I think, and when the flag/cooldown is active, this entire process is skipped. Why the behavior has changed since the last update, I don't know, and I'll have to have a look at that. All that has been changed is the URL of the API, so that's strange.
This cooldown can be reset by simply opening the addon's menu and clicking save, by the way. This should tell it to attempt the API again.
The idea behind this was that the fallback actually worked when I initially created this addon, but TikTok has changed a lot since then, and directly opening or saving videos rarely seems to work now. So, if the API failed or needed updating, there was a fallback in place, and this stopped it from just infinitely attempting to use an API that may have not worked at all. But yeah, this doesn't seem to save any purpose anymore.
I think a good solution to this is to simply remove the fallback and the cooldown, and instead just have a better way of displaying an error or some sort whenever the API fails, as that seems to be the only reliable way of downloading videos now anyway. If I have some time soon, I may look into doing that.

This appears to still be an issue for me now, but my version does say last updated 18 March

Actually I sorta figured out a way to circumnavigate this situation, previously when I clicked the download button of certain video, if the download button hangs a few seconds spinning I know it's undownloadable (because usually it starts downloading instantly), then I could simply close that browser tab and reopen, and it'll not affect other videos to download.
However since the latest version when a video download fails it fails immediately (without button spinning), which makes it impossible for me to preemptively close the tab before it causes other videos to be undownloadable..

Yeah, once an API fails (it attempts a few times during the same download with a few different version parameters set), there will be a flag that tells it not to use the API until a set amount of time has passed. I think it's somewhere around 15 minutes. This is probably why it hangs on downloading, as it is attempting like 4-5 requests before giving up, I think, and when the flag/cooldown is active, this entire process is skipped. Why the behavior has changed since the last update, I don't know, and I'll have to have a look at that. All that has been changed is the URL of the API, so that's strange.
This cooldown can be reset by simply opening the addon's menu and clicking save, by the way. This should tell it to attempt the API again.
The idea behind this was that the fallback actually worked when I initially created this addon, but TikTok has changed a lot since then, and directly opening or saving videos rarely seems to work now. So, if the API failed or needed updating, there was a fallback in place, and this stopped it from just infinitely attempting to use an API that may have not worked at all. But yeah, this doesn't seem to save any purpose anymore.
I think a good solution to this is to simply remove the fallback and the cooldown, and instead just have a better way of displaying an error or some sort whenever the API fails, as that seems to be the only reliable way of downloading videos now anyway. If I have some time soon, I may look into doing that.

This appears to still be an issue for me now, but my version does say last updated 18 March

Yeah, the API was broken again. There is a discussion about it here if you're curious:
https://github.com/yt-dlp/yt-dlp/issues/9506
I've updated it again now with the new information, and the API has worked for me during testing at least, but they're changing it more frequently now, so it may now live for much longer, we'll see. The issue you're seeing in the other issue you posted is just the fallback that's unreliable, and many of the requests made directly to the URL gets blocked, but when the API works correctly, it should work regardless through that.

Thanks @sixem just tried the latest version and it's brilliant 😁 actually I've found that the API failure rate also drops significantly, now barely see video fails to download, it used to be ~1/10


Use Asciidoctor's kbd macro to style keypresses in documentation

Resolves https://github.com/newsboat/newsboat/issues/2028
I had to add the experimental attribute to use the kbd macro.
From the Asciidoctor documentation:

Coverage remained the same at 59.331% when pulling b08726f292dcc851ae6996975d51be8f1d45dc63 on dennisschagt:enhance/issue-2028 into 661ee10dbd3702475db3c2de32e94bd687fea642 on newsboat:master.

This PR causes a slight change in style in the manpages (previously keys had underline. Now, with kbd, the keypresses look like regular text).
At first I wanted to restore the old style, but looking at it now, I actually prefer the reduced underlining in our manpages.
@der-lyse  @Minoru: Does either of you have strong feelings about this change in style?

Beautiful! In the list that looks alright to. In the running text, however, I haven't decided yet if I prefer the old style with quotes or the new one without.
Old:

New:

I tried to find out how other people are doing that in their manpages, but I haven't come across anything yet. Need to do more digging. In case somebody has a bunch of reference manpages, I'm glad to hear about them. :-)

@der-lyse My go-tos are mutt, vim, and tmux, The first two don't mention keys at all. The latter uses single quotes and Emacs style ('C-a x'). Tmux approach makes sense for "chords", because they need a space to separate individual keypresses. We don't have anything like that, so I think we don't need quotes either.
@dennisschagt, @der-lyse The new style has all keys in uppercase, which looks fine without underlines/quotes to me. However, I find it a bit confusing that we use "Ctrl+X" style in docs and "^X" style in the config. I'm used to the latter, so when I see something like "Press R to reload the current feed", I press Shift and r, not just r.
I checked, and Asciidoc is happy with constructs like kbd:[^C]. They don't look as nice in HTML though, because nobody has a key with "^C" printed on it. Also, the difference between r and R might be lost on a newcomer, because they won't know that the case matters. So simply changing quotes/underlines to kbd won't work either.
I'm inclined to just merge this and see if users get confused too much. @der-lyse, have you made up your mind about the style?

Let's merge it then ^_^ Thanks for the work @dennisschagt!


Sa 2021 refactor

Description
Even sa_2021_refactor with sa_2021
Fixes # (issue)
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
[ ] Code quality improvements

How to Test
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist
Please delete options that are not relevant.

[ ] I have tested this code
[ ] I have updated the documentation

Pull Request Test Coverage Report for Build 5099

5 of 8 (62.5%)  changed or added relevant lines in 4 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.03%) to 35.778%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/commons/assessmentWorkspace/AssessmentWorkspace.tsx
1
2
50.0%

src/components/assessment/AssessmentWorkspace.tsx
0
2
0.0%

Totals

Change from base Build 5095:
0.03%

Covered Lines:
5190

Relevant Lines:
13015

💛  - Coveralls


Added school

School URL: https://www.ashbournecollege.co.uk/
Computer Science course: https://www.ashbournecollege.co.uk/a-level-college-london/a-level-courses/computer-science-a-level-course/
Contact us page showing that the school is using the domain:

@flaxeneel2 First stage of verification passed, official domain is ashbournecollege.co.uk as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@flaxeneel2 Thank you for your patience while waiting for a review and processing your request. Pull request merged. Thank you!


Cannot write data after backup restore

Describe the bug
I am using DB backup to g drive , after restoration backup I cannot use the same db it says
Unhandled Exception: SqliteException(1032): attempt to write a readonly database, attempt to write a readonly database

How are you backing up and restoring the database? Depending on when you do that, there could be a .lock file next to the database, maybe that is causing some consistency issues causing the database to be considered read-only. It's hard to say what exactly is happening here without more information on what your backup process looks like.

I zip the application directory and uploaded it to drive.
    final tmpDir = await getTemporaryDirectory();
    final tmpZip = IO.File(
        "${tmpDir.path}/medicare-${DateTime.now().millisecondsSinceEpoch}.zip");
    print("+++++ tmpZip: ${tmpZip.path}");
    try {
      await ZipFile.createFromDirectory(
        sourceDir: docsDir,
        zipFile: tmpZip,
        recurseSubDirs: true,
      );
      final driveFile = File();
      driveFile.modifiedTime = DateTime.now();
      final read = tmpZip.openRead();
      final length = await tmpZip.length();
      final media = Media(read, length);
      driveFile.parents = ["appDataFolder"];
      driveFile.name = "data.zip";

      ///  show local notification progress panel
      final File res =
          await driveApi.files.create(driveFile, uploadMedia: media);

and when restore delete the existing ApplicationDocumentsDirectory and extract the zip folder to ApplicationDocumentsDirectory

    final docsDir = await getApplicationDocumentsDirectory();
    await docsDir.list().forEach((element) async {
      await element.delete(recursive: true);
    });
    final tmpDir = await getTemporaryDirectory();
    try {
      /// create Stream of  Stream<int>

      final contents = (await driveApi.files
          .get(id, downloadOptions: DownloadOptions.fullMedia)) as Media;

      onMediaLoad(contents);
      final diskFile =
          await IO.File("${tmpDir.path}/medicare-data.zip").create();
      final fileSink = diskFile.openWrite();
      double sum = 0;
      contents.stream.listen((chunk) {
        /// add sum of chunk as a stream to the sink
        /// this will be used to update the progress bar
        /// sum of chunks
        sum += chunk.length;

        /// convert sum to double and divide by 1024x1024 to get the size in MB
        onWrite(sum.toMB());
        fileSink.add(chunk);
      }, onDone: () async {
        await fileSink.close();
        await ZipFile.extractToDirectory(
            zipFile: diskFile, destinationDir: docsDir);
        onDone();
      });

Can you please tell me what might be the issue here

Can I  just replace the existing DB and expect it to work?

Please note  that this
    await docsDir.list().forEach((element) async {
      await element.delete(recursive: true);
    });

Does not actually await all delete operations. Calling forEach() on a stream with an async function will not await that function! This could be causing the problem, but I'd be surprised by that. Either way, since the intention is to await everything you can rewrite it as
  await for (final entry in docsDir.list()) {
    await element.delete(recursive: true);
  }

Your extraction logic should be fine, but adding elements in listen like that breaks backpressure, I'd probably use rxdart and do await contents.stream.doOnData((chunk) { /* report progress */ }).pipe(fileSink) instead. But that really shouldn't impact correctness.
Another thing to make sure is that the database was closed both during the backup and the restore operation, can you guarantee that this was the case here?

it's working after closing the database close() however I'm receiving
Unhandled Exception: Bad state: Can't re-open a database after closing it. Please create a new database connection and open that instead.

You'll pretty much have to do what the error message tells you to, closing a database is a terminal operation in drift. You need to create a new instance of your database class and use that instead of the old one.
Closing this issue as the original problem was solved, but if you need any help with the second database instance let me know.


Player is running stop it first

Running the latest version of 32bit OS, clean install, whether a stream is present on the network when the play button is pressed, the message is flashed "Player is running, stop it first."  stays on the screen for a few seconds then it goes back to the player settings menu.  Same when streaming only it states stream is already started stop it first.

Please try with the latest version from repository, thanks.


Add NodeSelector support

This commit would parse the net-attach-def for any node selector label
present (example: k8s.v1.cni.cncf.io/nodeSelector: environment=ovs)
and inject into pod spec under nodeSelector map.
Signed-off-by: Periyasamy Palanisamy<EMAIL_ADDRESS>

This PR is an attempt to simplify the scheduling of pods referring to a NAD which is not available on all nodes of a K8s cluster, for example a MacVlan NAD whose parent interface exists only on some nodes.
The canonical way to solve the scheduling issue today is for the pod spec to contain an appropriate node selector label along with the network annotation. The right label to use must somehow be documented for the NAD.
The idea in this PR is to hide the need for the extra node selector label from the application and instead specify the label in the NAD and let the Network Resources Injector webhook automatically augment the pod's node selector section, in the same spirit as it does this today for network resources like PCI devices.
The creator of the NAD still has to pick a label and apply it to the the appropriate nodes. Further automation of that process would be left to future network configuration operators.

@zshi-redhat et al: Please take a look and provide your feedback.

@martinkennelly PTAL


[bug] incompatibilities with aedes 0.48.0

according to https://github.com/moscajs/aedes/releases/tag/v0.48.0 there is a breaking change in TS
in fact, with latest version of aedes I cannot use tsc without errors with aedes-server-factory

PR?

@getlarge Do you have some time for this? :)

@robertsLando maybe friday, can't promise anything though!

No worries, let me know 👍🏼


👽 stats: 1.15.0 new distribution infrastructure

towards #250
closes #260

@mdhaber in case you're interested, this is what how I typed your new distribution infrastructure


Added possibility to reorder files in working sets

Thank you for the extension. This is what I was missing from the VSC.
I suggest two improvementsThank you for the extension. This is what I was missing from the VSCode.
I suggest two improvements:

to change the activity bar icon to match the VSCode theme and

to add possibility to reorder files in each working set manually (not only sort them alphabetically).

This PR adds these improvements. Please consider it for merging with your extension.

@macdems thank you for taking the time to contribute! This looks very good.
I'd like to keep the icon in the activity bar to be the same as the one in the README of the project. And as far as I understand, user-added svgs are not allowed when you publish the extension.

So I created an outlined version of the png icon, do you mind using this instead of the one you added?

Thank you for your answer. I have done suggested changes. However, I am not convinced that the restriction of the SVG icons apply here. I understand that the main package icons may not be SVGs (which makes sense as they are displayed BEFORE installing extension, similarly to any image in the README.md and CHANGELOG.md). You are already using SVG icons anyway.
In any case I have adapted the icon to more closely match your original design, however I kept it consistent with the general VSCode theme (for example, all the lines have the same thickness, which matches well standard activity bar icons). Converted to PNG it looks like this:

That new icon looks great! Thanks @macdems! And you may be right, I may be misinterpreting that svg rule. I guess we'll find out when I publish the update 😅.

Merged, I'll publish a new version to the marketplace later today. Thanks @macdems!

:+1:


Vis også skjulte lag ved hover

A picture tells a thousand words
Before this PR
After this PR

Coverage increased (+0.1%) to 44.171% when pulling 8748cfc8e5fdd4f14bbc2545f4521f2e10275d73 on bjornreppen:lean-n-clean into 01f2107df1aa87da278bb489d2a1d85c2826475b on Artsdatabanken:master.