vp9 encoder: enable second reference frame mode

vp9 encoder provides two modes for reference frames
Mode 0: This is using previous frame as last reference and
previous key frame as gold and alternate references.  On this
scheme, the reference_frames array will be cleared by a key frame,
then the key frame will populate all 8 slots and last frame will be
updated on slot 0.
Mode 1: This is using previous frame as last reference, one frame
before that is the gold reference and one more frame before that is the
alternate reference. On this scheme, the reference_frames array will be
cleared by a key frame, then the key frame will populate all 8 slots. Then
the first 3 slots will be used as a circular reference list where last/gold/alt
frames will be kept and will be updated according to the rules given by the
intel driver.
This can be tested with libyami-utils yamiencode patch
Fixes #554
Signed-off-by: Daniel Charles<EMAIL_ADDRESS>

@chivakker , do you we need to keep only one reference mode, for example, we can remove mode 0 and keep mode 1. Seems user don't care about the reference mechanism,they only care about the encoder quality.

@lizhong1008, both modes give a different option to do vp9 encoding streams, it is up to the user to pick one or the other.  For our purposes both modes help to quantify quality.

@chivakker , seems mode 1 always has no worse encoder quality than mode 0, am I right?  If so, we don't need mode 0.

On Mon, Sep 12, 2016 at 7:07 PM, lizhong1008<EMAIL_ADDRESS>wrote:

@chivakker https://github.com/chivakker , seems mode 1 always has no
worse encoder quality than mode 0, am I right? If so, we don't need mode 0.

You might be right but it is not know for how much on this implementation.
By having the two modes we can quantify it for different resolutions,
bitrate and video content.  Once we know it for sure we can make a
decision.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/01org/libyami/pull/560#issuecomment-246552169, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAEOXw98dnhrleDR0oJK1wPET8YwEH8dks5qpgVPgaJpZM4J2UFC
.

@chivakker “You might be right but it is not know for how much on this implementation.
By having the two modes we can quantify it for different resolutions,
bitrate and video content.  Once we know it for sure we can make a
decision.”    Maybe we can do some test for mode 0 and mode 1 right now,  then we can get the data about which mode has better quality, and make the decision right now to avoid reverting yami code and api. Do you think it is ok?

On Tue, Sep 13, 2016 at 1:31 AM, lizhong1008<EMAIL_ADDRESS>wrote:

@chivakker https://github.com/chivakker “You might be right but it is
not know for how much on this implementation.
By having the two modes we can quantify it for different resolutions,
bitrate and video content. Once we know it for sure we can make a
decision.” Maybe we can do some test for mode 0 and mode 1 right now, then
we can get the data about which mode has better quality, and make the
decision right now to avoid reverting yami code and api. Do you think it is
ok?

The idea is that QA does the testing and they come back with the results on
both modes.  The API is not going to be reverted, actually the API has to
add more VP9 specific parameters.  I am working on a patch for that and
will discuss it with you throughout the review.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/01org/libyami/pull/560#issuecomment-246612347, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAEOX44DzJTdGJuW-4fp3Lsh4-85GfN0ks5qpl9TgaJpZM4J2UFC
.

+1, @lizhong1008 , Please help to review

+1

merged as f4b465eb94d07165cfe4b0ce536461d17980f74c

I'm glad this is finally merged, but in the future @xuguangxin I would ask that we do not nit pick over changes such as this.  It is unproductive.
Thanks,
Sean

@seanvk , no problem. I can adjust this in future.
I do not want introduce difficult to code review. I just want code more maintainable and well designed. There is huge gap between workable and well designed.
Thanks.


Concurrency with Cloud Functions for Firebase V2 (Alpha)

Is your feature request related to a problem? Please describe.
Concurrency sometimes is important, problem described at https://github.com/ecomplus/application-starter/issues/137
Also, we like to be fast and cold starts are not cool 😛
Describe the solution you'd like

Our upcoming version of Cloud Functions uses Cloud Run as its underlying infrastructure. You'll see fewer cold starts because each function instance will now be able to handle 80 concurrent requests by default, as opposed to the current Cloud Functions for Firebase limit of 1.

Describe alternatives you've considered
https://github.com/ecomplus/application-starter/issues/137
Additional context
Cloud Run seems to be the best of both Worlds, but we can deal with Firebase Alpha (private) features? It is still very important that partners can use this starter template with easy.

Public beta now!

References
https://firebase.google.com/docs/functions/beta/get-started
https://firebase.google.com/docs/functions/beta/config-env

Limitations
https://firebase.google.com/docs/functions/beta#other_limitations


[REQ] pls add vulkan and openGL renderer

Acknowledgement of preliminary instructions

[X] I have read and acknowledged the preliminary instructions.

What idea do you have?


fix lscolors config if environment variable not set

Per the lscolors crate docs, this switches from an unwrap to
unwrap_or_default so that this does not panic when this environment
variable is not set for the user, fixing a crash on startup in hunter.

Thank you! Merged.


Kindergarten garden: go mod module makes no sence

Hi, while doing the kindergarten-garden exercise I notice a very minor problem in the go.mod file.
The module is set to "are" while the package is named "kindergarten", so I think there is some type of typo here.
I know that it's an insignificant issue, but I don't think that it was set to "are" on purpose, besides all others exercises have a coherent naming which respect the Go Package Notation, thus if one of the main contributors agrees with me, I'd be pleased to make the change and send a PR.
PS: kindergarten-garden exercise can be found here: /exercises/practice/kindergarten-garden

Well spotted!
So the task here is to change the module in go.mod. I suggest changing it to have the same name as the package: kindergarten.
Checking if the name in the go.mod file matches the package is something that we can maybe add as a check in gomod-syns, but that will be a separate issue.


Cannot use evaluate or fit methods on HybridRouter

With the recent changes that add inheritance to the different routers, using the evaluate method throws
File "C:\Users\User\AppData\Local\miniforge3\envs\semanticRouter\lib\site-packages\semantic_router\routers\base.py", line 1214, in fit
    best_acc = self._vec_evaluate(Xq=np.array(Xq), y=y)
  File "C:\Users\User\AppData\Local\miniforge3\envs\semanticRouter\lib\site-packages\semantic_router\routers\base.py", line 1258, in _vec_evaluate
    route_choice = self(vector=xq, simulate_static=True)
  File "C:\Users\User\AppData\Local\miniforge3\envs\semanticRouter\lib\site-packages\semantic_router\routers\hybrid.py", line 215, in __call__
    raise ValueError("Either text or sparse_vector must be provided")
ValueError: Either text or sparse_vector must be provided

This is because the __call__ method requires either text or sparse vector, but _vec_evaluate calls it with self(vector=xq, simulate_static=True)
Is there a fix in the works for this?

we didn't add support for eval and fit for HybridRouter yet — but I will prioritize

Wonderful Thank you


test: add a test case for transitive dependency

ref https://github.com/hi-rustin/cargo-information/issues/29
Currently, we always select the highest version.
This PR just adds a test case to cover the current behavior. We will discuss it in the issue.

@epage ping~

FYI I'm most of the way there on an implementation for #29 that I'll rebase onto this test once its ready


Enable CSV read

Can we able to load csv file using ExcelDataReader?

Sure! Here it is the WIP:
http://exceldatareader.codeplex.com/discussions/442962#post1258830
ExcelCsvReader - CSV reader implementation

I'm closing this since we already have the symbolic issue #1 for CSV support. (Feel free to comment or +1 there to show interest!)
Issue #1 is kept open because adding CSV support is not out of the question, alas it's a lot more work beyond implementing the code snippets in the issue.

Thanks :)


[BUGFIX] Adding iam_policy to python packaging

Overview
The previous PR (#692) did not include the newly-created directory iam_policy in packaging. This lead to false-positives when testing.

/do-e2e-tests


Add termd

termd is a cli for previewing and rendering markdown files in the terminal.

Thanks for the suggestion, but we already have https://github.com/linuxenko/lessmd in the list.


Improve invalid fd error messages for epoll

Previously, the error returned by unix.EpollCtl was discarded. This PR improves the error messages and includes the file descriptors as they are likely related to any error that can occur. Additionally a -1 file descriptor is caught early with a descriptive error message.

I am pursuing a problem that I am having with go.d.plugin and it is right here. I would suggest that the code not substitute another message has you have done, but use the actual cancelreader error codes.
BTW, my problem is that go.d.plugin is not collecting when it is spawned by my server but will work when run from the console or a shell script. The only difference in the logs this error message. The problem started a couple of days ago.

Ah, I was about to send a very similar PR as I was confused by the lack of information in these error messages as well (https://github.com/mvdan/sh/issues/1099). @muesli would you be able to review this PR? At least it looks good to me :)

Will do!


Canary reports bouts of "The provided member is not known in the current generation" when consuming messages leading to incorrect latency numbers

We are using strimzi-canary 0.2.0, occasionally we are seeing extended periods where the canary reports The provided member is not known in the current generation.   During this time it appears the end to end message latency observed by the canary become extended.    We also see a spikes in the strimzi_canary_consumer_error_total metric which correlates with the appearance of the messages.
E0120 15:32:57.682808       1 consumer.go:92] Error received whilst consuming from topic: kafka: error while consuming __redhat_strimzi_canary/1: kafka server: The provided member is not known in the current generation.

Log from a canary instance that experienced several lengthy bouts of the problem.
canary.log

Can you enable the Sarama logging and provide an updated canary log again. Taking a look at Sarama I see this error when joining a consumer group that seems to happen frequently (rebalance?). Sarama logging could provide us more hints about the underlying problem.
https://github.com/Shopify/sarama/blob/main/consumer_group.go#L253

@ppatierno I don't have a reproducer for this issue at the moment, any idea how we might induce a state like this?

I don't know if this helps (still looking), but found this comment https://github.com/Shopify/sarama/issues/1866 which suggests tuning timeouts might help

I don't claim to have a strong understanding of the problem yet, but from the logs we can see that the consume continues after encountering this condition.  I am speculating about in NewConsumerService() making the function routine that reads the consumer error actually cancel the consumer.   My reasoning is, if we get into this state, it would be better to cause the consumer to be recreated:
	for err := range consumerGroup.Errors() {
		glog.Errorf("Error received whilst consuming from topic: %v", err)
		recordsConsumerFailed.With(labels).Inc()
		if cs.cancel != nil {
			cs.cancel()
		}
	}

To move forward on this I wonder about adding the ability to control logging (including sarama logging) dynamically, so that logging can be enabled easily when the issue is seen

@ppatierno  @tombentley asked elsewhere why the canary uses a consumergroup at all?  the canary's role is just to measure message latency.  It should use the simplest way to achieve that goal.   Are there good reasons to use a consumergroup for the canary?

I can't think of any off the top of my head.

I used a consumer group as I was used to do with Java clients but I don't see any specific reason why we couldn't switch to not using it. Unless we don't see the possibility to scale the Canary application for having more consumers but it's really not our case for the purpose of the Canary itself.


Create a methods documentation page

[ ] Create documentation for how paleocoordinates are handled
[ ] Create documentation for how diversity metrics are handled
[ ] Create documentation for how geographic location is handled
[ ] Create documentation for how turnover metrics are handled
[ ] Create documentation for how taxonomy is handled.

Should this be an Ex.Com. project like the other documentation? Talked about this with Joc today and she said maybe.

If M. Hopkins is willing, I personally think this should be subsumed into her efforts in addressing paleobiodb/PBDB_changelog#12

Yes. Not a programmer issue.


Get OS window handle ID

There doesn't seem to be a way to get the id provided by the OS for the window. For example, on Windows there is a window hwnd and it can be used on some win api to manipulate the window.
Is there any known way of doing that?

There is no data type in JavaScript can represent a native handle, we can probably add an API to return a v8::External or node::Buffer which contains an external pointer to the handle of native window, and then users can receive the handle by writing a native module.

It looks fair to say GetAcceleratedWidget() in native_window_views.cc returns the window handle on the windows part.
Is there a known equivalent in osx/linux?

GetAcceleratedWidget() also works on Linux. On OS X it should be the window_ member of NativeWindowMac.

Will start working on a pull request :+1:
v8 is not my strongest part, from your experience, is there a preference between v8::External and node:buffer?

node-ffi uses node::Buffer to store external pointers, it also used v8::External and v8::Object in the past, so I guess node::Buffer works the best.

Any updates on this? I am actually in the need of this feature. Thanks!

Unsigend integer would not suffice as explained here https://github.com/atom/electron/pull/3256#issuecomment-152005215.
Stroring the pointer in a buffer is a pattern already being used in the pull request mentioned above.
I actually started working on the pull request which should have been simple, but encountered unexpected problems.
I had some difficulties finding time to keep working on it, but I will soon.
@skreborn You are more then welcome to help with it if you'd like :smile:

@omrilitov Okay, fair point about the inability to guarantee V8's inner workings, so a Buffer might just be the better choice. I would love to help out, although right now I have no idea how to do that.
Also, doesn't GetAcceleratedWidget work on all platforms? If not, why not? Haven't had the time to check out the code regarding this. The type of value it returns (AcceleratedWidget) is defined for most (if not all) supported platforms.

It does work on all platforms, I actually don't know how to explain the weird behavior.
If you want you can start by looking at the last commit in my fork https://github.com/omrilitov/electron, the basics are there.
Hopefully in the next days I'll find some time to work on it.

Added in https://github.com/atom/electron/pull/4023


TypeError: Cannot read property 'extend' of undefined

I got this error,
NPM discord.js, discord.js-commando, which i think are both master branches, from reading other threads on this issue. If they are not could someone point me in the right direction.
Any help is greatly appreciated!
-Encoded.

If you get that error from either here https://github.com/discordjs/Commando/blob/da095a709d7af1e209e6ded7e5083cdba46f99b7/src/extensions/guild.js#L5 or here https://github.com/discordjs/Commando/blob/da095a709d7af1e209e6ded7e5083cdba46f99b7/src/extensions/message.js#L8
this means that you do have the master branch of commando installed, but not of discord.js.
You might want to delete your node_modules folder and npm/yarn caches as well as making sure that your package.json actually references something along "github:discordjs/discord.js".
If the error is coming from somewhere else you might want to check what exactly is undefined.
If it boils down to require('discord.js').Structures same as above applies.

If you get that error from either here
https://github.com/discordjs/Commando/blob/da095a709d7af1e209e6ded7e5083cdba46f99b7/src/extensions/guild.js#L5
or here
https://github.com/discordjs/Commando/blob/da095a709d7af1e209e6ded7e5083cdba46f99b7/src/extensions/message.js#L8
this means that you do have the master branch of commando installed, but not of discord.js.
You might want to delete your node_modules folder and npm/yarn caches as well as making sure that your package.json actually references something along "github:discordjs/discord.js".
If the error is coming from somewhere else you might want to check what exactly is undefined.
If it boils down to require('discord.js').Structures same as above applies.

Hi, I did all of this and it still doesn't work...
Would you mind providing your package.json?
Also, my error exactly points to module.exports = Structures.extend('Message', Message => {

I got the same error
"discord.js": "^13.1.0",
"discord.js-commando": "^0.12.3",


Fix pacing feature

GitHub Issue (if applicable): #3262
Explanation of Bugfix/Feature/Modification:
Hook doesn't seem to work anymore, so I ported this feature to use observe
Also changed version in .nvmrc to match one required in package.json

Pacing is back - thank you...but you used to be able to switch it off for selected categories and it would stay off. Now when you move to another screen or reload YNAB, ALL the pacing values are switched back on
To Reproduce
Turn off Pacing on Budget for a single category by double-clicking the Pacing value. Then switch to another screen e.g. Reports and back to the Budget and the Pacing value has switched itself back on

Pacing is still not shown for me


MAUI: Update Sample Viewer Screenshots

Description
Update screenshots using .NET MAUI for the Map, MapView, Scene, SceneView, Search, Symbology, and Security categories.
Type of change

[ ] Bug fix
[ ] New sample implementation
[x] Sample viewer enhancement
[ ] Other enhancement

Platforms tested on:

[x] WPF .NET 6
[ ] WPF Framework
[ ] WinUI
[x] Xamarin.Forms Android
[x] Xamarin.Forms iOS
[ ] Xamarin.Forms UWP

Checklist

[x] Runs and compiles on all active platforms
[x] Legacy platforms still compile and run (if applicable)
[x] Branch is up to date with the latest main/v.next
[x] All merge conflicts have been resolved
[x] Self-review of changes
[x] There are no warnings related to changes
[x] No unrelated changes have been made to any other code or project files
[ ] sample_sync.py runs without making changes
[x] Codemaid and XAML styler extensions have been run on every changed file
[x] Code is commented with correct formatting
[x] All variable and method names are good and make sense
[x] There is no leftover commented code
[x] Screenshots are correct size and display in description tab

AuthorMap - does not show any UI
SetInitialMapArea is incorrect
Identify layers - show popup result
ShowMagnifier - screenshot needs to show the ShowMagnifier
TakeScreenshot - zooming in on map would help a lot here
ChangeAtmosphereEffect - elevation not working correctly
GetElevationAtPoint - UI cropped for no reason
TokenSecuredChallenge - show the loaded map instead of that login screen
PerformValveIsolationTrace - show the result of tracing "Isolating" with include isolated features checked


Invalid syntax

Greetings, Corey! Colud you please help a newbie find an answer? Something has changed in BS, so that:
yt_link = f'https://youtube.com/watch?v={vid_id}'
^
SyntaxError: invalid syntax

Video is unavailable.

I tried your code above, it worked for me. I think it might be the issue with the code related to vid_id.

Can I send me the screen shot so that I could still be clear!
On Sat, 15 Dec, 2018, 10:10 AM huixinguan<EMAIL_ADDRESS>wrote:

I tried your code above, it worked for me. I think it might be the issue
with the code related to vid_id.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/CoreyMSchafer/code_snippets/issues/26#issuecomment-447536904,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AiCOy2f2y0JLaXsoE4LVbRJ4DnS3F-X-ks5u5H0_gaJpZM4ZL78a
.

U*

@helenkapatsa try it in a single line,it works completely for me ,if you still get errors try # command use href = True method to get those links

I'm getting an error

you need to end : at the end of the line
On Mon, Feb 18, 2019 at 2:38 AM chinnutej<EMAIL_ADDRESS>wrote:

I'm getting an error
[image: screenshot 2019-02-17 at 4 07 15 pm]
https://user-images.githubusercontent.com/46699014/52919249-47c11a00-32ce-11e9-9758-2b45f599c65f.png
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/CoreyMSchafer/code_snippets/issues/26#issuecomment-464509464,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMcS_vrlUyxqMJEyV-bLSg8GTIxLMxqxks5vOcTcgaJpZM4ZL78a
.

@helenkapatsa Did you solve your problem? I'm going to close this issue. I don't check the code snippet issues as frequently as my email, so if you have questions in the future it's probably your best bet to ask there<EMAIL_ADDRESS>Or you can comment on the video in question. Thanks!


run testcase for Native-sql-engine 1.2,  Got many  errors

Describe the bug
I run the build and test command for gazelle_plugin 1.2, and got some errors.
code version as below:

arrow-4.0.0-oap-1.2.0-release.zip
gazelle_plugin-1.2.0-release.zip

errors as below:
*** RUN ABORTED ***
java.lang.NoSuchMethodError: org.apache.spark.sql.execution.datasources.parquet.ParquetFileFormat$.mergeSchemasInParallel(Lscala/collection/immutable/Map;Lscala/collection/Seq;Lorg/apache/spark/sql/SparkSession;)Lscala/Option;
at org.apache.spark.sql.execution.datasources.parquet.ParquetUtils$.inferSchema(ParquetUtils.scala:107)
at org.apache.spark.sql.execution.datasources.parquet.ParquetFileFormat.inferSchema(ParquetFileFormat.scala:170)
at org.apache.spark.sql.execution.datasources.DataSource.$anonfun$getOrInferFileFormatSchema$11(DataSource.scala:208)
at scala.Option.orElse(Option.scala:447)
at org.apache.spark.sql.execution.datasources.DataSource.getOrInferFileFormatSchema(DataSource.scala:205)
at org.apache.spark.sql.execution.datasources.DataSource.resolveRelation(DataSource.scala:418)
at org.apache.spark.sql.DataFrameReader.loadV1Source(DataFrameReader.scala:326)
at org.apache.spark.sql.DataFrameReader.$anonfun$load$3(DataFrameReader.scala:308)
at scala.Option.getOrElse(Option.scala:189)
at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:308)
As you can see, the error is in file /arrow-data-source/parquet/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetFileFormat.scala.
And, I found that the mergeSchemasInParallel method has 3 arguments. But, that is 4 arguments in vanilla spark 3.1.
I modified ParquetFileFormat.scala as below, then it can run without this error.
diff ParquetFileFormat.scala ParquetFileFormat.scala.old
439d438
<                               parameters: Map[String, String],
455c454
<     SchemaMergeUtils.mergeSchemasInParallel(sparkSession, parameters, filesToTouch, reader)

SchemaMergeUtils.mergeSchemasInParallel(sparkSession, null, filesToTouch, reader)

But, I got some other errors as below, Please check whether these errors are normal.  I can send you a detailed log later.
Fall back to use row-based operators, error is last(value#22596)() is not supported in ColumnarAggregation, original sparkplan is class org.apache.spark.sql.execution.aggregate.HashAggregateExec(List(class org.apache.spark.sql.execution.streaming.StateStoreSaveExec))
Fall back to use row-based operators, error is variance(cast(a#51859 as double)) is not supported in ColumnarAggregation, original sparkplan is class org.apache.spark.sql.execution.aggregate.HashAggregateExec(List(class org.apache.spark.sql.execution.exchange.ShuffleExchangeExec))
20:59:34.377 WARN org.apache.spark.sql.execution.datasources.v2.arrow.SparkMemoryUtils: Detected leaked memory pool, size: 127976...
20:59:34.442 WARN org.apache.spark.sql.execution.datasources.v2.arrow.SparkMemoryUtils: Detected leaked memory pool, size: 127976...
20:57:03.655 ERROR org.apache.spark.sql.execution.streaming.MicroBatchExecution: Query [id = a188d962-aa09-487f-a6e6-1b2beacf0583, runId = 31cd986e-0306-451b-95db-115ca3800057] terminated with error
org.apache.spark.SparkException: Writing job aborted.
at org.apache.spark.sql.execution.datasources.v2.V2TableWriteExec.writeWithV2(WriteToDataSourceV2Exec.scala:388)
at org.apache.spark.sql.execution.datasources.v2.V2TableWriteExec.writeWithV2$(WriteToDataSourceV2Exec.scala:336)
To Reproduce
build and run the test for gazelle_plugin 1.2
build cmd: mvn clean package -DskipTests -Dcpp_tests=OFF -Dbuild_arrow=OFF -Darrow_root=/opt/build/arrow_install -Dcheckstyle.skip
cmd: mvn test -Dbuild_arrow=OFF -Darrow_root=/opt/build/arrow_install -Dcheckstyle.skip
Expected behavior
run test successfully, no errors.
Additional context
Add any other context about the problem here.

Another question: are the test cases correctly executed for PRs?


Feature request: Ability to share current prediction

It'd be really useful if I could save/share a link with the fields filled in so I can compare the turnip prices of multiple people easily.

This is already possible - there's a "Copy Permalink" button on the page that will allow you to share the link, and also lets you see how to create your own link, from a spreadsheet etc

Give this functionality already exists, I'm going to go ahead and close this issue. Feel free to open a new one if you believe I am mistaken! 😃


origin not set correct on PCB files

Getting the huge inverted offsets on JLCPC on 10.1 - need to set origin on PCB layout

I'm not getting that issue, on JLCPCB it looks pristine to me... here is a screenshot from their website for Hactar 10.1

Just add an origin mark in the PCB tool to the bottom left corner of the board.

https://github.com/Quicr/hactar/commit/a4b23601647d7e29d31fb3f6082b4056d6f6e17b


would be nice to be able to use "@Published" directive in earlier Swift versions that do not know it

while trying to implement OpenCombine to mimic missing Combine Framework in example in Xcode 11.3.1 projects where Swift does also not support @Published directive (nor @Bind , @StateObject or @ObservedObject) one could do something like..
@propertyWrapper
struct Published<T> {
    var wrappedValue: T {
        willSet { /*...*/ }
        didSet { /*...*/ }
    }
    init(wrappedValue: T) {

        // * -- maybe magic here! -- */

        /* or do more specific stuff.. ^^
        switch (wrappedValue) {
        //case is Optional<Any>.Type :
            //break
        case is Bool :
            break
        case is Error :
            break
        case is Optional<Error>.Type :
            break
        default: break
        }
        */
        self.wrappedValue = wrappedValue
    }
}

to implement such feature in Swift version prior .. where @propertyWrapper directive is available.
So the question is what should such wrapper look like in its inner logic?
opened a question in StackOverflow
it could be wrapped also in preprocessor directives like #if !canImport(Combine) or similar to limit where it would be applied in projects
also see: swiftbysundell.com/accessing-a-swift-property-wrappers

fixed. see: https://github.com/OpenCombine/OpenCombine/issues/217#issuecomment-1159253820

methodical thinking pointed the right direction and with help the learning curve was sharp. Thnx


Added Brazilian Blogs

Added 3 portuguese (Brazilian) blogs

Hey @felipebossolani. We only add English resources. Greetings Matthias


Update-Help

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
it might be because the computer language is French looking at Get-Error...
PS C:\Users\steve> man java
Get-Help:
Line |
64 |      $help = Get-Help @PSBoundParameters
|              ~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Get-Help could not find java in a help file in this session. To download updated help topics type: "Update-Help". To get help online, search for the help topic in the TechNet library at https://go.microsoft.com/fwlink/?LinkID=107116.PS
C:\Users\steve> Update-Help
Update-Help: Failed to update Help for the module(s) '7zip-Archive' with UI culture(s) {fr-FR} : The value of the HelpInfoUri key in the module manifest must resolve to a container or root URL on a website where the help files are stored. The HelpInfoUri 'https://github.com/stadub/PowershellScripts/blob/master/7Zip/README.md' does not resolve to a container..
English-US help content is available and can be installed using: Update-Help -UICulture en-US.
Update-Help: Failed to update Help for the module(s) 'WindowsUpdateProvider' with UI culture(s) {fr-FR} : One or more errors occurred. (Response status code does not indicate success: 404 (Not Found).).
English-US help content is available and can be installed using: Update-Help -UICulture en-US.
Expected behavior
Example 1: Update help files for all modules
The Update-Help cmdlet updates help files for installed modules that support Updatable Help. The user-interface (UI) culture language is set in the operating system.

PowerShell

Copy
Update-Help

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/update-help?view=powershell-7.2

Actual behavior
**C:\Users\steve> Update-Help**

Update-Help: Failed to update Help for the module(s) '7zip-Archive' with UI culture(s) {fr-FR} : The value of the HelpInfoUri key in the module manifest must resolve to a container or root URL on a website where the help files are stored. The HelpInfoUri 'https://github.com/stadub/PowershellScripts/blob/master/7Zip/README.md' does not resolve to a container..
English-US help content is available and can be installed using: Update-Help -UICulture en-US.
Update-Help: Failed to update Help for the module(s) 'WindowsUpdateProvider' with UI culture(s) {fr-FR} : One or more errors occurred. (Response status code does not indicate success: 404 (Not Found).).
English-US help content is available and can be installed using: Update-Help -UICulture en-US.

Error details
Get-Error

Exception             :
    Type    : System.Exception
    Message : Failed to update Help for the module(s) 'WindowsUpdateProvider'
with UI culture(s) {fr-FR} : One or more errors occurred. (Response status code
does not indicate success: 404 (Not Found).).
              English-US help content is available and can be installed using:
Update-Help -UICulture en-US.
    HResult : -2146233088
CategoryInfo          : InvalidOperation: (:) [Update-Help], Exception
FullyQualifiedErrorId :
UnknownErrorId,Microsoft.PowerShell.Commands.UpdateHelpCommand
InvocationInfo        :
    MyCommand        : Update-Help
    ScriptLineNumber : 1
    OffsetInLine     : 1
    HistoryId        : 2
    Line             : Update-Help
    PositionMessage  : At line:1 char:1
                       + Update-Help
                       + ~~~~~~~~~~~
    InvocationName   : Update-Help
    CommandOrigin    : Internal
ScriptStackTrace      : at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo :

Environment data
Name                           Value
----                           -----
PSVersion                      7.2.4
PSEdition                      Core
GitCommitId                    7.2.4
OS                             Microsoft Windows 10.0.19044
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Visuals

also note : after running the usa update-help and this one the command man java yielded the following response:
man java
Name                              Category  Module                    Synopsis

ConvertFrom-Json                  Cmdlet    Microsoft.PowerShell.Uti… Converts a JSON-formatted string to a custom object or a hash table.
ConvertTo-Json                    Cmdlet    Microsoft.PowerShell.Uti… Converts an object to a JSON-formatted string.
Invoke-RestMethod                 Cmdlet    Microsoft.PowerShell.Uti… Sends an HTTP or HTTPS request to a RESTful web service.
Test-Json                         Cmdlet    Microsoft.PowerShell.Uti… Tests whether a string is a valid JSON document
about_Object_Creation             HelpFile
about_Trap                        HelpFile

One of these is a problem with the 7zip-Archive module
The value of the HelpInfoUri key in the module manifest must resolve to a container or root URL on a website where the help files are stored.
The HelpInfoUri 'https://github.com/stadub/PowershellScripts/blob/master/7Zip/README.md' does not resolve to a container..

Someone needs to tell the module authors.
One is a problem with a module which is bundled with windows and not PowerShell 7
Update-Help: Failed to update Help for the module(s) 'WindowsUpdateProvider' with UI culture(s) {fr-FR} :
One or more errors occurred. (Response status code does not indicate success: 404 (Not Found).).

There are some known windows modules which have a problem  (see https://github.com/PowerShell/PowerShell/issues/17067#issuecomment-1079663584 ) but this one is new
And man java fails because man is aliased to get-help and java is an external help topic not a PowerShell one. The choice is either delete the alias or use man.exe for man pages.  When Java isn't a topic name PowerShell help searches through all the help for the word "java" - which gives something but probably not what you want.

I messaged the module owner on the gallery for the 7zip-Archive module. Marking as "as designed".


Mock download tests mikko #198

Coverage increased (+0.6%) to 48.563% when pulling 55aaa54322c2947f4163470177704aafcbe3b4c4 on mock-download-tests-mikko into 180ea0d397eb52a0051705bc43e11b2010c516e6 on master.

Coverage increased (+0.6%) to 48.563% when pulling 55aaa54322c2947f4163470177704aafcbe3b4c4 on mock-download-tests-mikko into 180ea0d397eb52a0051705bc43e11b2010c516e6 on master.

Coverage increased (+0.3%) to 48.563% when pulling 530cebd3c7af231c379f5cd46e1f05e9d448f0f8 on mock-download-tests-mikko into 685736e278af56256f6015740237052680a2ca91 on master.

LGTM


Sometimes the color is missing when running yarn build

🐛 Bug Report
Sometimes the color is missing when running yarn build
Have you read the Contributing Guidelines on issues?
YES
To Reproduce
If possible, use https://new.docusaurus.io to create a CodeSandbox reproducible demo of the bug.
(Write your steps here:)

Add below code in custom.css

.menu .menu__link.menu__link--active:not(.menu__link--sublist) {
  border: 1px solid rgba(167, 167, 167, 0.2);
}

yarn build
Search .menu .menu__link.menu__link--active:not(.menu__link--sublist) in build directory

Expected behavior
.menu .menu__link.menu__link--active:not(.menu__link--sublist) {
  border: 1px solid rgba(167, 167, 167, 0.2);
}

Actual Behavior

Your Environment

Public source code:
Public site url:
Docusaurus version used: 2.0.0-alpha.70
Environment name and version : node v14.15.5 (npm v6.14.11)
Operating system and version (desktop or mobile): macOS big sur 11.1

Reproducible Demo
If possible, use https://new.docusaurus.io to create a CodeSandbox reproducible demo of the bug.
https://codesandbox.io/s/interesting-night-ze576?file=/src/css/custom.css

I have spotted the similar issue on the React Native website. After upgrade from alpha.66 to alpha.70 this problem started to appear on main website. On alpha.68 the missing color was only present in the PWA app.
The current problematic style and the fix:

The same part of code CSS, before the fix, but after the deploy:

Can you try with USE_SIMPLE_CSS_MINIFIER=true docusaurus build ?

@slorber thanks, USE_SIMPLE_CSS_MINIFIER=true docusaurus build works fine, there maybe an issue with advanced minification of CSS bundle.

Thanks @Kimi-Gao
Can you try to use the @canary build without that env variable?
This bug may have been fixed already

This is bug in clean-css, which I reported in the issue, so we will wait for release with bug fix for that.

merged
Try again with the latest @canary and we'll re-open if this is not fixed


Chore: tickgen changes to test reduce pipelines

Changes to tickgen to generate specified number of keys and corresponding records.

closes #570


Fix a bug where size+offset overflows

Should fix #583.

LGMT
Ideally we also have a test for the 'real world' use case hitting S3. But since we haven't been able to reproduce so far, and we want to validate if this fix works, lets make a separate issue for the S3 testing. (We may already have one)


Adds CACHE to Jib templates to make builds run faster.

Fixes #61
The cache caches .m2 for the Maven artifacts and .cache for the Jib base image layers cache. This PR also updates the README with some preliminary instructions for using the CACHE argument.

/cc @saturnism


Update test metadata

This change is

(Please don't merge if

(I'll send another PR with more changes)


[Support request] AdonisUI styling not applying to codebehind-generated control?

I have code like this:
private FrameworkElement CreateView(ViewModelBase vm, Type? v)
    {
        if (v != null)
        {
            return (FrameworkElement)Activator.CreateInstance(v)!;
        }
        else
        {
            var name = DeriveViewNameFromViewModel(vm);
            var type = Type.GetType(name);

            if (type != null)
            {
                return (FrameworkElement)Activator.CreateInstance(type)!;
            }

            return new TextBlock { Text = name };
        }
    }

based on the Avalonia ViewLocator class.
Unfortunately it seems that any elements created in this way do not have the AdonisUI styling properly applied. They appear incorrect at first render.

As you can see, the text in the middle is black instead of white, as it should be in the dark mode theme.
Now, if I press my button which triggers a Dark Mode toggle, on/off...
    [RelayCommand]
    private void DarkMode()
    {
        ResourceLocator.SetColorScheme(Application.Current.Resources, IsDarkMode ? ResourceLocator.LightColorScheme : ResourceLocator.DarkColorScheme);
        IsDarkMode = !IsDarkMode;
    }

The text appears correctly again!

But until then it is incorrect.
How could I avoid this and have it render correctly right away?

For anyone else looking for this:
It seems to have happened because I was not using UserControl as the parent of my new controls. I tried to create shortcuts and change the parent element to something like ContentControl, and that is what was causing the breakage.
Putting a ContentControl child into a UserControl and manipulating that instead seems to restore all the resource inheritance, since apparently InitializeComponent() in UserControl is what applies the resources.


Integrating with ES ingest node pipeline

Exposing the interface for Elasticsearch's ingest node pipelines within ES-Hadoop can easily bring Logstash-like functionality (i.e. pattern matching with grok, parse date fields with date processors) to the data ingest flow from the Hadoop world. This should expose the option of specifying an ingest pipeline for pre-processing before writing to an index (suffixing the query param "...?pipeline=test_pipeline"). It's potentially useful among the entire component suite, but initially Spark and MapReduce seem like good entry points for this feature. As always, open to additional input here.
https://www.elastic.co/guide/en/elasticsearch/reference/master/ingest.html

This is really two points:

Add an option to specify a pipeline to write to and
Add an option to target ingest nodes only (similar to client.only or data.only, etc..)

Leaving this open until I get the documentation updated with the new settings.

Awesome, happy to help review the doc changes if you'd like.

Looks good thanks


unable to update Firesbase due to GeoFirestore/GeoFire dependecies

I want to update Firebase, so I updated the GeoFirestore podspec dependency to 'Firebase', '~> 6.1.0'. However, Geofirestore has a Geofire dependancy which has a Firebase/Database (~>5.0) dependency. What can I do to update Firesbase with these dependencies?

This is the same issue, and it is solved: https://github.com/imperiumlabs/GeoFirestore-iOS/issues/18


Advanced usage of set for ignoring state changes

It would be nice if we could ignore state on a granular level, for any state change.
Perhaps you have a piece of state that changes very often and you only want to store those changes occasionally. One example would be the a rotation property on a 3D object. Perhaps there is an app where the user can rotate 3D objects. These update every frame but you only want to store the beginning and end state of the user's rotation. It might be convenient to have this information in the store, but without ignoring most of the changes, you'll have to click "undo" 100 times just to get back to the beginning of the rotation!
This could be solved by adding an extra argument to the step function:
const useStoreWithUndo = create<StoreState>(set => ({
  rotationX: 0,
  ...
  setRotation: (rotationX) => set(state => ({ rotationX })),
  setRotationWithIgnore: (rotationX) => set(state => ({ rotationX }), true), // Set second arg to true to ignore this change
}));

In a more complex scenario, you may want to use current state to determine whether to set this argument:
const useStoreWithUndo = create<StoreState>((set, get) => ({
  ...
  setRotation: (rotationX) => {
    const shouldIgnore = get().isDragging
    return set(state => ({ rotationX }), shouldIgnore)
  }
}));

I'm not entirely sure if this is the best API but thought I'd share my thoughts on the problem and a possible solution.

Thanks for this issue request. I think the problem you describe and the solution are fantastic. I agree that coming up with a good API for this would be difficult but your initial suggestions are a great starting point.
So in the first code snippet, setRotationWithIgnore would be called while the object is rotating, and at the end of the movement, setRotation would be called? Perhaps instead the API could be setRotation: (rotationX, shouldIgnore) => set(state => ({ rotationX }), shouldIgnore), that way you don't have to repeat similar logic in your store. What do you think about that?
As for the second code snippet, programmatically setting shouldIgnore I think it a good pattern to use, similar to the suggestion I had above so logic isn't repeated.
So thinking through this, I like the API you suggest and we can go ahead and implement it. Would you like to make a PR for this feature?

Yes I was just putting a super simple example in first to get the point across. Definitely think you could either add an extra argument to your setter function (as you have shown) or use get to do the logic inside of the function without the need for that extra argument.
I'd love to have a go at doing a PR for this :) The only other possible thing I was thinking for the API was to pass in a settings object rather than a single argument. Something like this:
set(state => ({ rotationX }), { shouldIgnore: true })
It depends if we think there will be need for many more options in the future or not. I'm not entirely sure on my preference.

I do like the idea of a settings object. Let's go with that!

Just so you know, I do have a need for this and would still like to do the PR, but it's something I'll pick up in a few weeks time when it's relevant for the project I'm on.

Sounds good, thanks for letting me know!
I'll review the PR once it is ready.

Oh yes, overriding the set foundation could cause issues. I assumed that zundo would be used at the base but I'm thinking that was a wrong assumption.
Maybe I can release v2 that doesn't override the set function or just provide better typings.

I can review your code later this weekend. Thanks!


Feature: structuring custom filters

Entries could be sorted by their TLD / definition before saving them into the database.
So that I will always find entries for www.amazon.com before www.zalando.com.
A table of contents where I could click on "Z" and directly jump to domains starting with Z would be great as well but I guess this could be complicated.

Really loving this idea, not sure how we could go about implementing this though.
Maybe working on https://github.com/xvello/letsblockit/issues/68 could pave the way towards a "smarter" editor.


[Bug]: Can't open second LN channel

Describe the bug
Custom LN setup is broken. I have 300 USD confirmed onchain balance, but I get "Unable to increase the fee any further. Otherwise, it will exceed half the current sending/output amount." notification
Reproduce

Go to '...'
Click on '....'
Scroll down to '....'
See error

Screenshots / Recording
No response
Operating system
iOS
Bitkit version
Current master
Log output
No response

This is something that will happen when the on-chain transaction fee required by Blocktank is 50% or greater than the cost for the channel open sent to Blocktank.
This is tricky. If we wanted to handle this in Bitkit we would need to spam the api to find the lowest channel cost that is greater than 50%. We could also move the fee safety check up to 80% or 100%, but that makes me feel uncomfortable. If we wanted to handle this on Blocktank's side, Blocktank will only create channel orders where the on-chain transaction fee will never exceed the channel cost by 50%.

Actually, we might not have to spam the api anymore. We can call this and pass Blocktank's expected fee rate to getFeeInfo from Beignet and set the result plus a few sats as the minimum client side balance.

Actually, we don't have to spam the api anymore. We can call getInfo and set the result of min0ConfTxFee plus a few sats as the minimum client side balance.

I think we should disable this warning for amounts smaller than 10 USD or even at all.
What we can do is show additional warning on confirmation screen.

And I had this error on regtest, with 1 sat/vbyte fees.

Unfortunately, the issue isn't limited to Bitkit/Beignet so disabling the warning or bypassing the check will not fully resolve it. Many Electrum servers with defaults set will also refuse to create and/or broadcast transactions with similarly high fee to output ratios. We could implement a minimum client balance amount when creating a channel that helps ensure the user will always send more than 50% of the transaction to Blocktank than fees.

I also having this issue when doing basic, not BT ochain transaction.
I'm trying to send 547 sats on regtest.
I errors in logs
 LOG  [Error: New total amount exceeds the available balance. Unable to update the transaction fee.]
 LOG  New total amount exceeds the available balance. Unable to update the transaction fee.
 LOG  [Error: New total amount exceeds the available balance. Unable to update the transaction fee.]
 LOG  [Error: Unable to increase the fee any further. Otherwise, it will exceed half the current sending/output amount.]
 LOG  Unable to increase the fee any further. Otherwise, it will exceed half the current sending/output amount.
 LOG  [Error: Unable to increase the fee any further. Otherwise, it will exceed half the current sending/output amount.]

Also it doesn't show me fee estimate

At the end I see success screen that I've sent 0 sats

Enable to reproduce this issue on my side wit Beignet.


Prototype of a template project generator

Includes two simple templates described in the Aproj user's guide to show that the idea works.

Holding off on this PR until this release is completed.


Update dependencies

switches to php-parallel-lint/php-parallel-lint and updates phpunit/phpunit to ^9.0

This looks like a stale PR. I would recommend closing it and revisit the topic at a later time (perhaps convert to an issue).


intellisense cannot resolve third party modules

Issue Type: Bug
My python 3.10 environment in VS Code shows a warning squiggle for any imported 3rd party module when they are installed for that environment and are available to use in the runtime.
Some modules have intellisense after importing, others do not.
Does not repro for my other Python environment (3.8.8)

Works fine at runtime:

& C:/Python310/python.exe c:/repros/test.py
C:\Python310\python.exe

Extension version: 2021.11.2-pre.1
VS Code version: Code - Insiders 1.63.0-insider (d450b04c783dfa6f83dc439017767acccd4e9fac, 2021-11-17T05:21:29.351Z)
OS version: Windows_NT x64 10.0.22000
Restricted Mode: No

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz (8 x 3408)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledskia_renderer: enabled_onvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
31.92GB (20.48GB free)

Process Argv
--crash-reporter-id ee1e8284-1ce1-46ae-b666-4982391b0a39

Screen Reader
no

VM
0%

A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythontb:30258533
pythonvspyt551cf:30291413
pythonptprofiler:30281269
vsdfh931cf:30280410
vshan820:30294714
pythondataviewer:30285072
vscod805cf:30301675
pythonvspyt200:30323110
bridge0708:30335490
bridge0723:30353136
pythonrunftest32:30365365
pythonf5test824:30361779
javagetstartedt:30350119
pythonvspyt187:30365360
vsaa593cf:30376535
vsc1dst:30396469
vscexrecpromptc:30397557

Do you have the correct python interpreter selected in VSCode?
R you using Open folder? or Open File ?

Running the file in VSCode worked fine, so I assume the interpreter was selected correctly.
I was using Open File, or New File.
After using open folder with the same file, intellisense works fine and I can no longer get this to repro.


Apply for volunteer of AIR CASH test

Dear technical team members, Hello, I am an Followers and believers of air coins also hold a certain number of air coins in their hands. I am willing to sign up for the test, I have a certain base for the use of blockchain and wallet.thank you.

Anyone who applied for the AirCash testing please join the discord channel for test volunteers.
https://discord.gg/eRSY7NtxZA


Help with devuan runit implementation

I've been following the devuan mailing list and quite a few people are in agreement that the way debian handles runit isn't exactly up to par. I also reported a few problems with the way it was implemented to the debian runit maintainer, such as sulogin being started in stage 1. The getty-run package also had problems with no job control in the shell, but that was rectified. I'm still not 100% happy with the getty scripts though. I much prefer void's method. I mainly use Artix, and fell in love with runit for its simplicity and not doing as you said in the description, "Do everything, do it in PID1". Artix's implementation is a bit odd in its usage of "core-services" or "sv.d" scripts, however. According to one of the maintainers, this is so each phase in the boot process can be "monitored" if it completed successfully or not. Void takes a much simpler approach, and it seems your implementation essentially copies it with a few changes and additions. For running a desktop, Artix's implementation works perfectly fine, except for bootlogd. In fact, bootlogd is quite iffy on Artix, Debian, and even here. In layman terms:
Debian: Uses sysvinit scripts to start system and bootlogd, and then kills bootlogd in rc2.d.
Devuan: Same problems.
Artix: Uses its own "rc" commands but does not generate the bootlog for some god forsaken reason.
I also wonder why bootlogd, udev, and other important start processes are not treated as services in a runsvdir in stage 1 before moving to another runsvdir in stage 2. According to the runit documentation, switching runsvdirs is supported. Then again, if I remember correctly, switching runsvdirs would kill any services in the previous runsvdir. I wonder if multiple runsvdirs at once is even possible then. In any case, this is a great project that shows that runit can work in a debian based distribution without the need for sysvinit scripts for booting. If we keep in contact with the Devuan maintainers, we could possibly get your changes in offficially (don't quote me on that).
Now, why not try to get these changes into Debian as well? Well, debian strives to be backwards compatible according to the runit maintainer, but it barely functions on its own with its current implementation anyway. An overhaul shouldn't be out of the question.
One more thing is the service directory location. /etc/service is not the wisest place to store running services, since /etc can become readonly. In conclusion, I hope to gain more insight from you on this matter.

Hi, you made some very good points.

the way debian handles runit isn't exactly up to par

Debian uses systemd, and doesn't handle any other init equally. It's very hard to change the init there because of the fair amount of dependencies. That's the reason Devuan, Artix and many others came to being, to provide repos with packages that are not dependent on any specific init.
Sadly, Devuan doesn't handle runit up to par either: see the init metapackage, it pre-depends on (sysvinit-core | upstart). If you want to install runit-init, you have to remove conflicting sysvinit-core, which removes init, which you have to acknowledge by typing exactly "Yes, I am aware this is a very bad idea". Ugly.
On the other hand, runit-init is not handled as being up-to-par because it is not. It's missing runscripts. My runscripts are based on VoidLinux, but now almost completely rewritten and extended. No other distro except VoidLinux provides meaningful runscripts by default.

I much prefer void's method

Same here. VoidLinux makes a simple, elegant and stable impression. And while I appreciate it's packaging system xbps, I mostly prefer the DEB base. That's why I tried to integrate the Void-runit approach into Devuan. It's solid.

I mainly use Artix

That seems like a good distro. If systemd-free Arch base is required, definitely worth a try. However, I never used it so can't comment on it's implementation.

Artix's implementation is a bit odd in its usage of "core-services" or "sv.d" scripts, however. According to one of the maintainers, this is so each phase in the boot process can be "monitored" if it completed successfully or not.

First, "core-services" is a confusing misnomer. The word "core" does not contain much information: almost anything in a computer can be regardes as a "core" component. The word "services" usually describes programs that daemonize and run in the background. But there are NO DAEMONS in the /etc/runit/core-services path, just simple scripts executed sequentially in the first runit stage by /etc/runit/1, or as you correctly called it, the boot process. I renamed the path to /etc/runit/bootup in my repo, to make more evident what's going on.
Second, this stage can be completely and fully "monitored" by bootlogd service, as you suggested above. It took me a while to figure this one out, so let me explain how it works (my repo feature only):

runit-init starts /etc/runit/1 script
the first thing this 1 script does: it starts bootlogd (if the service is enabled)
then starts boot-scripts from /etc/runit/bootup sequentially
the last boot script 20-autorun.sh executes scripts from /etc/runit/autorun in parallel in the background
the second stage /etc/runit/2 starts the runsvdir supervisor, which starts the bootlogd service. The bootlogd runscript nicely closes the unsupervised bootlogd started in stage 1, and then continues running bootlogd supervised.
the third stage /etc/runit/3 then rotates the boot.log file on shutdown.

The logfile of the bootup stage is /var/log/boot.log, and the logfile from the previous boot is /var/log/boot.log.1. The logfiles of the scripts from /etc/runit/autorun/ are saved as /var/log/autorun-SCRIPTNAME.log.

Void takes a much simpler approach, and it seems your implementation essentially copies it with a few changes and additions.

Yes!

For running a desktop, Artix's implementation works perfectly fine, except for bootlogd.

I was primarily targeting cloud deployments, but now I run the same thing on my laptop. It works perfectly fine, including bootlogd. I also included some desktop-only runscripts, like X11dm to start any display manager, or wicd for network management.

Artix... does not generate the bootlog for some god forsaken reason.

Usually there are 2 reasons: either bootlog starts too late, or is missing /dev/pts pseudofs when it starts. Both need to be taken care of very early on, see my stage 1 script. Don't know how to handle this in Artix, or when combined with OpenRC.

I also wonder why bootlogd, udev, and other important start processes are not treated as services in a runsvdir in stage 1 before moving to another runsvdir in stage 2

That would be a bad idea and complicate things. Stage 1 is strictly sequential, runsvdir is for supervising things running in parallel. You want bootlogd started before anything else. You want run udev after the /dev is mounted but before you initialize filesystems or network. The bootup stuff usually has strictly sequential dependencies/precedence, it can't run in a parallel supervisor.

if I remember correctly, switching runsvdirs would kill any services in the previous runsvdir

No. Services present only in the old runsvdir will be closed, services present only in the new runsvdir will start. Services present in both runsvdirs will continue running as if nothing happened.

I wonder if multiple runsvdirs at once is even possible

Unnecessary, single supervisor for all services is sufficient. Again, stage 1 doesn't need supervision. If required, you can start daemons in stage 1 unsupervised, like bootlogd or udevd. Works just fine. You can see udevd here at the bottom, running daemonized outside of the runsvdir process supervisor:

This is because it got started and daemonized early in the 1st stage by /etc/runit/bootup/02-udev.sh. If you enable supervised udevd in stage 2, the udevd runscript automatically takes care of closing the unsupervised instance. Simple, single line of code.

If we keep in contact with the Devuan maintainers, we could possibly get your changes in officially

That would be nice, maybe more people would find runit helpful. My work is here public domain unlicense-type. Do whatever you want, literally, you don't need my blessing.

Now, why not try to get these changes into Debian as well? Well, debian strives to be backwards compatible according to the runit maintainer, but it barely functions on its own with its current implementation anyway.

There is a lot of discussion about this, for years now. I don't want to get into it.

/etc/service is not the wisest place to store running services, since /etc can become readonly

I totally agree. In Devuan, /etc/service/ is a symlink to /etc/runit/runsvdir/default which contains symlinks to supervised services. These symlinks point to service definitions in /etc/sv/. So far so good, it's all configuration, that fits to /etc. BUT: runit then puts its runtime information into /etc/sv/SERVICE_NAME/supervise subdirectory!!! That is runtime-dependent variable information, should be e.g. in /var/run and not in /etc.  This was done probably to keep the codebase simple, but I see this as a bug or at least as bad practice.

Thanks for all the explanations! What's weird about bootlogd on Debian is that by default the daemon is stopped at runlevel 2 (rc2.d). Is there a reason to keep supervising bootlogd even after the initial bootup of the system has completed? Other than that, I may just try installing what you have here onto my own server, since I can't exactly get artix's implementation working on it 100%. Only problem is your implementation doesn't allow for custom runsvdirs, such as a runsvdir for single/sulogin, or other custom runsvdirs. Void uses runsvchdir to change a symlink from /etc/runit/runsvdir/current to default or whatever runsvdir I choose on the kernel paramters. I'm assuming you didn't implement it this way for backwards compatibility? There also doesn't appear to be a way to enter single user mode via sulogin.

The bootlogd on Debian is stopped at runlevel 2 (rc2.d). Is there a reason to keep supervising bootlogd even after the initial bootup of the system has completed?

Good question. That depends on what is your use case. 'man bootlogd' says: "bootlogd copies all strings sent to the /dev/console to a logfile". That's it, that's all it does. The early init scripts can't do much logging, because the system is not ready yet. But /dev/console is available early, so it's the only place to print some messages. Later as other logging facilities become available (syslog, socklog, svlog...), there is no need to use /dev/console for output, and bootlogd can be closed. After all, it's called "bootlogd" and not "consolelogd", it's meant to log boot process only anyway.
Consider this scenario: You start bootlogd and keep it running (as I do). Then you activate incron service, but forget its dependency on socklog. So incron starts before socklog. On start it tries to connect to the syslog facility by openlog() function, which fails, and incron then falls back to logging everything to /dev/console. This fallback algorithm is hardcoded.
 That's why a conscious distro has bootlogd disabled shortly after boot. As on Debian: bootlogd is active only in rc.S (early initialization) and stopped everywhere else.
Me, I want to see everything that goes to the console, so I can fix it. Not just boot (stage 1) messages, I want to see services polluting the console during normal operation (stage 2), and also all messages during shutdown. Polluted /dev/console is more than just a cosmetic issue, the /dev/console is also what the user sees on /dev/tty1, on the real terminal. Have you ever tried to log into the real terminal (Ctrl+Alt+F1), or do maintenance on a server directly, not over SSH? You know the feeling when you try to type the username into the login prompt and the server is spitting up some log messages right into it? Even on Amazon EC2 it's a problem, when due to the polluted console you won't see the boot messages anymore because you can't scroll back enough...
Keeping bootlogd enabled all the time helps me to easily spot any console pollution and prevent this nasty behavior. On the other hand, in normal usage (production) you could disable it completely. As long as the system is booting properly, you don't really need any boot logs.

Only problem is your implementation doesn't allow for custom runsvdirs

Well, I've always used only one runsvdir for simplicity, so I checked and...  Dammit! You found a serious error. I use the runit binaries and symlinks as provided by Devuan packages, and they're broken! They provide a symlink /etc/service to /runit/runsvdir/default instead of /runit/runsvdir/current (package runit_2.1.2-19_amd64.deb). The VoidLinux implementation is correct, but I only used the VoidLinux runscripts, not the filesystem structure. Somebody should report this to the Debian/Devuan package maintainers.
Anyway, I am going to fix that in my repo right now... will post here when it's fixed...

I may just try installing what you have here onto my own server

Wait for the symlink fix. Then, if you experience any problems, feel free to open another issue.

Ok, the symlinks from the Devuan repository package are fixed. The installation should go as follows:

Install any Linux, preferably systemd-free
Install runit. For Devuan, that's packages: runit, runit-init, runit-helper, dh-runit.
Install socklog from here: http://smarden.org/socklog/install.html
Clone this repo: git clone https://github.com/cloux/aws-devuan
Put anything from etc into your OS /etc and OVERWRITE
Run /etc/runit/runit-core-install
Check if the services in /etc/service fit what you need to do
Reboot

That's it, in short. Let me know if there is any issue.

Sorry for the really late reply, I had to take some time off.
I also much prefer to use the official repositories, if possible. Unfortunately, not everything I need is there (socklog, hiawatha, gitahead, oomd, arduino-core libs ...).  I also need software that will never make it to a main repo (slack, oracle-jre, teamviewer, rew...), or I require custom compilation parameters so I have to compile things from source (kernel, php-fpm). I will deal with this mess in the upcoming release, and provide a simple modular installer/updater interface for all these cases.
Yes, runit comes with its own logging implementation, and that's socklog, see http://smarden.org/socklog/ - "socklog, in cooperation with the runit package, is a small and secure replacement for syslogd". That being said, I am not a big fan of socklog (daemontools logging in general) either. The Idea is right, but the implementation is a bit painful. Maybe I'll look into that someday.
To the "runlevel=" kernel parameter: you're right, it looks cleaner if I don't iterate over all parameters in a for loop. But the main reason to use a prefix is different: runit (daemontools in general) has a flexible runlevel concept: you can have as many as you want and name them as you want. So if you read 'quiet' on the command line, is it a kernel parameter or the name of your runlevel? In order to be deterministic it's a good idea to mark the runlevel with a prefix. Also, using a prefix it is more obvious to a third person what is going on here. The downside: this prefix is not portable, you have to use runit-init with my runit scripts to parse this, no other distro is doing it this way. That said, it should be a rare requirement to specify a runlevel explicitly. On all my servers, PC and laptop I use only one default runlevel, no need to complicate things.
The bug as submitted by alecfeldman on the link you posted is spot on, and there are some more problems with the runit distribution packages (e.g. reboot/shutdown doesn't work properly in cloud, missing runscripts, system initialization not implemented, only 'single' runlevel provided, rather useless getty implementation...). Trying to push all these changes upstream seems a lost case anyway, since Debian concentrates primarily on systemd for system initialization and service management. Runit is treated as an optional additional supervisor, nothing more. That is the reason for this repository, to be able to use runit as main init system and service supervisor (aka. VoidLinux for DEB base and then some).
Yes, it's very much possible and easier than it seems to avoid sysv-init and run everything from runit. System initialization, service supervision, shutown. The early boot initialization is good enough to leave out initramfs completely, and just go straight Grub (or rEFInd) -> kernel -> runit! I am runnig it like this on my Laptop right now and it works perfectly, the boot is blazing fast. I am working on a script that would automate the transition to a pure runit system. Preferably for any DEB-based OS, on PC or Laptop, not just in the cloud.
The usage of GRUB vs. rEFInd should make no difference. Kernel needs to know where the init is (''init=") and that's it. The major added value of my repository is, that there are changes inspired by VoidLinux that allow runit to perform early initialization, so you don't even require initramfs. If system still has initramfs, runit just skips the already initialized parts. Simple.

FYI: on my Laptop I completely uninstalled init, initscripts, sysv-rc, insserv, sysvinit* and systemd-*. Also I don't parse or run anything from /etc/rcS.d. That "mess" is re-implemented in a cleaner way in my runit boot stage.

The problem is if I attempt to remove initscripts, sysv-rc, or innsserv, runit-init would be removed along with it. God, what a mess. I hope Devuan decides to say "screw backwards compatibility" in this case and fixes runit along with other init systems.

Yes. I forgot to mention that: due to that mess, I also removed the package runit-init and use just the binaries in my system, outside of the package :(
This is currently the only way to get rid of initramfs and the useless getty-run package dependencies. What a mess indeed.
As far as I know, Devuan just pulls runit packages from Debian, there seems to be no difference in dependencies. Currently my runit-init says Origin: Devuan:3.0/testing, Maintainer: Dmitry Bogatov<EMAIL_ADDRESS>From what I've seen, there seems to be no separate development for runit in Devuan (or anywhere else, except Void). And yes, these packages are not maintained in a way that would make it easy or possible to switch to runit at any level. Fixing and manual labor is expected.
I will provide an easy "installer" - scriptable system that will make it easy to make these system changes outside of the repository, in a maintainable and repeatable manner. Hopefully.


run test.py error

when I run the file test.py, it fails:
TypeError: 'RT2' object is not callable.
can you help me solve this bug?

Upvote & Fund

We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.

@briller-zzj I have fixed it please try again

@briller-zzj I have fixed it please try again
Thanks for reply! Now I can run example.py successfully
But for test.py， it also failed 13/15， only passed 2/15.
Most of the errors are as follows：
AttributeError: 'tuple' object has no attribute 'shape'.

Can you help me solve it?

@briller-zzj yes I'm solving this error now, we need to unfurl the embeddings in the tulle


Windows postinstall issue

** PLEASE READ THIS BEFORE FILING AN ISSUE **
I'm submitting a:

[x] bug report
[ ] feature request

What OS are you using?
Windows 10 (Build 18362.295)
What browser(s) is this bug affecting:
Current behavior:
PS C:\Users\Andy\Web Development\material-components-web-components> npm i
> material-components-web-components@ postinstall C:\Users\Andy\Web Development\material-components-web-components      > ./scripts/bootstrap.sh

'.' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! material-components-web-components@ postinstall: `./scripts/bootstrap.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the material-components-web-components@ postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR!      C:\Users\Andy\AppData\Roaming\npm-cache\_logs\2019-09-05T23_53_37_874Z-debug.log

Expected behavior:
npm install runs without error
Steps to reproduce:
git clone
npm i
Related code:
NA
Other information:

Seems to be a Windows only issue. I don't mind closing this in order to not overwhelm (hopefully with support for Windows in the future)

maybe this could be solved using dev containers? I'd like to work on some components, but can't start because Windows isn't supported :/
@asyncLiz any chance to priorities this? 🙂

Hello, we will get to this at some point, but in the meanwhile we recommend using WSL on windows.


Unable to build: missing sw-toolbox.js.map

I am unable to build my ember app with ember build --environment production since integrating broccoli-serviceworker. I get this error:
Build failed.
The Broccoli Plugin: [UglifyWriter] failed with:
Error: ENOENT: no such file or directory, open '/myapp/tmp/uglify_writer-input_base_path-CQGZ0XTh.tmp/0/sw-toolbox.js.map'

Environment:

ember-cli: 2.9.1
ember: 2.6.1
broccoli-serviceworker: 0.1.3
node: 4.6.0

I am unable to reproduce this in a brand new Ember app created with ember new. I'll compare build settings, environment and package versions... Tis gonna be a great morning.

I am now able to reproduce with the aforementioned brand new Ember app, by enabling sourcemaps in ember-cli-build.js:
  var app = new EmberApp(defaults, {
    sourcemaps: {
      enabled: true,
      extensions: ['js']
    }
  });

Repro app:
sw-test.zip
Simply run ember build --environment production on this app.

@bourquep out of curiousity, why do you need sourcemaps in prod?

We're sending uncaught errors to Airbrake, and I had enabled sourcemaps to enable meaningful backtraces in the Airbrake error reports.
Maybe there's another way, I'll investigate.

For now I've disabled sourcemaps in prod builds so I can deploy my new app version with service worker.

I see... Not sure why the problem happens, it will require some digging into.  I'm thinking the bit of code that includes the already generated sourcemap for sw-toolbox needs to take into account that build setting.

@bourquep I found the problem.  I'll push a build tomorrow with the fix.

@bourquep new version now available: https://www.npmjs.com/package/broccoli-serviceworker

Awesome, thanks for the quick fix & deploy! I'll revert my package.json to the npm registry instead of my fork.

@jkleinsc can we add a different config option, other than debug, to define if the map should exist?
I need to have sourcemaps in staging and production but don't want to run the addon in debug mode. Maybe add a sourcemapsboolean? Thank you very much in advance, awesome addon :)


Create fullpath when I use fragment pose $GOPATH/src

When i created project in wrong path ~/dev/ (outside my $GOPATH) it don't put any error and create project incorrectly.
When I try run it i take an error:
import "/Users/...": cannot import absolute path

Yes, definitely need a better error message in this case, as people new to go are not familiar with the gopath restriction, and we just assume you are in the go path.

Closed and merged pull request. Thanks.


Ygritte is called Yrgitte

As the title says it, Ygritte, http://thronesdb.com/card/06017, AMAF#17, is named as Yrgitte.

Thanks, fixed.


Update file renaming options page to show new examples section

Summary
This is a…

[x] Correction
[x] Addition
[ ] Restructuring
[ ] Minor / simple change (like a typo)
[ ] Other

Reason for the Change
The options screen for file renaming changed in https://github.com/metabrainz/picard/pull/1776
Description of the Change
Update the image and description to match the revised option screen..
Additional Action Required
None.

Just a heads up that the details how this looks like might still change for a final 2.7 release.

Just a heads up that the details how this looks like might still change for a final 2.7 release.

Yup, but I thought I would get something started (in a new branch) so that I didn't forget about it.  We can pick away at it, updating as required if / when things change.

@rdswift I cleaned up the next_version_2.7 branch and rebased it against master as it contained some code that was already in master and conflicted. But that means conflicts with this PR against next_version_2.7 need to be resolved also.

It probably makes the most sense for me to cancel this PR and start a new one once the changes to the script editor are settled.


Not a valid win32 application.

Im having a issue with canal it returns a not valid win32 application when dumping mysqldump. thank you

seem you should use mysqldump.exe in your configuration.

so im just going to change the .sql extension of my dump file to .exe? thank you for the response.


docs: Clarify setupFiles run order

Summary
Just a small text change. Previously it was a bit misleading to say that setupFiles is executed "immediately" before executing the test code itself and then go on to say that setupFilesAfterEnv is executed in between those two events.
Sorry about the two commits – just doing this quickly in the web UI. Let me know if I should squash them.
Test plan
n/a

@tamlyn ping 🙂

Updated docs for other versions and squashed commits.

Sorry, should have taken a full screenshot 😅

27.1 and 27.2 still needs an update 🙂

Codecov Report

Merging #11641 (a8b4600) into main (7a64ede) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main   #11641   +/-   ##
=======================================
  Coverage   69.01%   69.01%
=======================================
  Files         312      312
  Lines       16335    16335
  Branches     4734     4734
=======================================
  Hits        11273    11273
  Misses       5034     5034
  Partials       28       28

Continue to review full report at Codecov.

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

Oh sorry, I hadn't updated my remote! Rebased and amended.

Bump. Anything I need to do for this?

Thanks!


⚠ ClamAV has degraded performance

In 1e3ab4f, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 83 ms

Resolved: ClamAV performance has improved in 7d308cf.


auto-import in the REPL: run import o1._ and optional module-specific import commands upon REPL launch

ask @jsorva what are those commands

The commands should be configurable on a module-by-module basis, presumably by writing them into the course config file.

https://version.aalto.fi/gitlab/jsorva/o1matsku/-/merge_requests/11

https://regex101.com/r/6qGJNV/1 a regex validator


Spec Compliance Test App

Summary

We need a conformance test suite that implementers and service providers can run against their service to confirm it works as expected.
ideally this would be CLI tool  that takes <access-token> and the URL with API <endpoint> and runs a set of tests

tests should be designed to run idempotently and reduce friction (e.g. remove all pins as the first step and confirm there are no pins as the second, and remove everything as the last step)

I'm available to review / feed edge cases is anyone wants to pick this up.
Implementation details
Create JS client library

I believe the prerequisite here is to generate an official JS client library from the Open API YAML spec at https://ipfs.github.io/pinning-services-api-spec/
Then publish it on NPM as @ipfs-shipyard/pinning-service-client or similar

Prior art (generated by someone from community):  https://www.npmjs.com/package/js-pinning-service-http-client

CLI Compliance Test suite
The compliance test would be a separate package (@ipfs-shipyard/pinning-service-complicance-checks) that uses the client library to run tests and exits with code 0 if there were no hard errors:
$ npx ipfs-pinning-service-complicance-checks https://service.example.com secret-token
Checking compliance of Pinning Service API at  https://service.example.com:
  (output)
Done!

Web interface (nice to have)
Would be nice to have a static website with two inputs for <access-token> and <endpoint> and "Test" button, but this is lower priority than CLI tool (we want something that can run automatically on CI to constantly validate services we list in ipfs-webui – https://github.com/ipfs/ipfs-webui/pull/1854#issuecomment-929088269)
Test scenarios
Below are things we want to test, in order:
MVP list

[x] confirm Authentication is present

try listing pins without `Authorization: Bearer
expect HTTP 403

[ ] List pin objects (GET /pins) in all states

explicitly pass status=queued,pinning,pinned,failed to see everything
expect HTTP 200 response with JSON object that has count and results list  example here
if results is not empty, remove all pins (we want deterministic initial state)

DELETE /pins/{requestid} each pin
make sure this works when there are more than 10 pins, and pagination is involved
finally, List pin objects (GET /pins)  again and confirm count is 0 and results is empty

[ ] Add a single pin

request

Generate a time-based  CID to ensure service does not have it
unique name
origins and meta empty

response

requestid present
created timestamp in expected format (RFC 3339, section 5.6, includes timezone or Z)
delegates not empty

Confirm pin is queued or pinning
[ ] test pagination (details TBD)

add 15 pins
confirm the default pagination (10 per result)  works as expected (see pagination link for explainer how pagination works)

[ ] (details TBD) test delete via DELETE /pins/{requestid}

add a pin and remove it, confirm it is not present anymore

[ ] (details TBD) test replacement

create a pin and then replace it via POST /pins/{requestid}

expect different requestid in response
confirm old requestid and CID are no longer to be found

[ ] (details TBD) test name match

have a pin named in a way that allows confirming exact, iexact, partial and ipartial strategies work as expected

[ ] (details TBD) test metadata

add a pin with meta  field being present

test with key and value being 255 character strings
test with values being other JSON types (number, object, an array, boolean, null, undefined, unknown string without quotes) and confirm an error is returned

[ ] (details TBD) test delegates

add a pin and confirm reponse has working delegates

spawn ipfs-core node in-memory  and try to connect to addresses from delegates array, pass the test if at least one of them worked and connection was successful

[ ] Test ipfs cluster - https://github.com/ipfs/ipfs-cluster/issues/1213

Extended / unsorted   list (TBD)

historical issues with listing queued pins:

https://github.com/ipfs/distributed-wikipedia-mirror/pull/120

https://github.com/web3-storage/web3.storage/issues/1102
https://github.com/application-research/estuary/issues/124

confirm root CID of a file is announced on DHT
error responses

malformed JSON schema
missing fields like CID or name

having the same CID pinned multiple times  under different name
List/filter pins based on meta keys

confirm we can add pins with multiple meta keys and then filter them based on any of them

confirm before and after query params work as expected
confirm that GET /pins with empty status returns HTTP 400 BAD_REQUEST (status is maked as non-empty in spec, but who knows how that is handled by code in different langs – sometimes empty array means non-empty –  we need to double-check this behavior)

@Gozala, as we discussed yesterday:

This could be good opportunity to create JS client for Pinning Services API

Could be a thin wrapper on top of code generated with https://openapi-generator.tech/, similar to  https://github.com/ipfs/go-pinning-service-http-client/pull/3

CLI tool is more useful for now, as it can be run in CI pipelines

I've moved all of the checklist items from this issue to https://github.com/ipfs-shipyard/pinning-service-compliance/issues. We should update any of those task items in the appropriate issues going forward.


Website Monitoring Badge with custom HTTP Header Support

:clipboard: Description
I am looking for a version of the website Monitoring Badge which allows me to include specific HTTP headers.
:link: Data
I'm not sure how the existing website badge is implemented but I imagine it could be used as a starting point for this badge or even just adding HTTP option to existing badge.
One website for example is https://api.commbank.com.au/public/cds-au/v1/banking/products
Without passing through the necessary headers the page returns 403. If I pass through the two required headers the page returns 200.

:microphone: Motivation
I want to monitor some APIs without having to run any scripts locally or subscribe to a service. The API returns 403 if I don't provide the necessary API version header which shows as offline with the badge.

hi @Uskompuf, thanks for reaching out.

I want to monitor some APIs without having to run any scripts locally or subscribe to a service.

While I can appreciate this desire, please note that's not really what Shields is intended for :wink:
Your immediate use case may seem simple and straightforward in your specific context, but I have concerns that accepting custom headers on our native badges could snowball quickly. That could really complicate our jobs maintaining and supporting Shields for it's core mission of providing badges that are most often embedded in project readme files.
This ask seems best suited to our Endpoint badge offering. With this approach you can deploy a small snippet of code, often for free with something simple like RunKit, that can call your API(s) with whatever set of additional headers you may need, and then send a response that conforms to the Endpoint-expected schema

Ok thanks, I will have a look into that.

I've never done anything with Javascript or RunKit so this is purely just me copy-pasting snippets. I've gotten my headers implemented but not sure how to return JSON from the endpoint. If you have a moment I would appreciate it if you could give me any pointers: https://stackoverflow.com/questions/64618944/runkit-endpoint-which-returns-status-code-of-website

The basic issue with that code is if you're using a callback-based API like request, you can't return a value from a callback. You need to think of it the other way round and pass request a callback function that can do that.
I've not tried setting up your example and running this, but I think a working version of that code would look like
function testAPI(cb) {
    request(options, cb);
}

exports.endpoint = function(request, response) {
    var callback = function(e,r,b) {
        console.log(r.statusCode);
        response.end(r.statusCode)
    }
    testAPI(callback);
}

Hi @chris48s thanks for that, I've added the code here: https://runkit.com/uskompuf/testing but I still seem to be running into an issue with endpoint returning:
{
  "error": "socket hang up",
  "message": "ECONNRESET"
}

Any ideas?
Cheers

Oh. Try response.end(r.statusCode.toString())

Perfect cheers.

@chris48s It seems to work if the website is up but doesn't work if the website is down. I think it might need to be in a try statement?
You can see the code here: https://runkit.com/uskompuf/testing/3.0.0
This works when hitting the endpoint here: https://runkit.io/uskompuf/testing/3.0.0
However, if I change the URL to a page which does not exist it times out and gives the same socket hang up error.
I know this isn't completely relevant here so feel free to delete if I'm wasting your time.
Cheers

This has kind of turned into "how do I write javascript/use request" more than "how do I use shields.io", so I think this is the last post I'm going to make on this thread, but if the website is down (as opposed to up, but returning a status other than 200), the response variable (r in your callback function) will be undefined because you didn't receive any response. The info will be in the error variable (e in your callback function) in that case.


Small Typo on the Webseite

Markers
=> var MAP-PIN (With normal -)
In the Example
icon: {
path: MAP_PIN, (with underscore)
fillColor: '#0E77E9',
fillOpacity: 1,
strokeColor: '',
strokeWeight: 0,
scale: 1/2
}

Fixed in v3.0.0


New version: PROPACK_jll v0.2.2+0

Autogenerated JLL package registration

Registering JLL package PROPACK_jll.jl
Repository: https://github.com/JuliaBinaryWrappers/PROPACK_jll.jl
Version: v0.2.2+0
Commit: a69254cd06b3dfa3b30ee6f39625163295374856
Revision on Yggdrasil: https://github.com/JuliaPackaging/Yggdrasil/commit/52ad46d84c282085aaeed182eaab1cbda686f7fb
Created by: @amontoison

I want this pull request to be manually merged.
#80455 and #79468 are also concerned.

We can close this PR.
#84584 fixed this issue.


Version 0.3.53

Highlights:

Propagation of various common components via the context e.g. clients, drivers, etc.
Make remote provisioners implicitly create themselves, and have them provision subordinate provisioners within that context.
Use declarative ArgoCD remote cluster provisioning to remove the API access entirely, along with all the pain to do with networking and authentication.
Make image validation optional.
Improve Ingress HA.
Remove driver initialisation from controller start up.
Clients now change as the scope changes e.g. remote cluster, so provisioners don't need to know about topoology or technology.
Architectural documentation.
Allow NV operator not to be installed.

:shipit:


How to localize dayjs?

Hi,
I want to localize dayjs as it's lib I use in project. I tried:
<MuiPickersUtilsProvider utils={DayJsUtils} locale={'de'}>
but no lack.
I tried also (similar to moment example):
import { MuiPickersUtilsProvider } from 'material-ui-pickers'
import dayjs from 'dayjs'
import 'dayjs/locale/de'
import DayJsUtils from '@date-io/dayjs'

dayjs.locale('de')

in this case date picker is still not localized (week days, month names).
Any hint how should I do it?
Thanks in advice!

Please note I've also tried:
import de from 'dayjs/locale/de'
import DayJsUtils from '@date-io/dayjs'

and then passing de as returned from dayjs:
<MuiPickersUtilsProvider utils={DayJsUtils} locale={de}>
But still no luck

Please check this may be help ful https://material-ui-pickers.firebaseapp.com/guides/formats

@vanyakosmos it's about formatting and I have issue setting locale (de) so week days and month names should be in German but they're still in English


Error "tabletojson.convert is not a function" in v2.0.0

Running legacy code that previously worked with v1.2.0, e.g.
const tabletojson = require('tabletojson');
const result = tabletojson.convert(html);

results in TypeError: tabletojson.convert is not a function.  It appears in v2.0.0 there is no default export, only the Tabletojson property, so this code must be changed as follows:
const tabletojson = require('tabletojson').Tabletojson;
const result = tabletojson.convert(html);

or

const { Tabletojson } = require('tabletojson');
const result = Tabletojson.convert(html);

This does not appear to be intentional as none of the examples were updated.

I'm facing the same problem, this is because code now is exporting a class with static methods, probably due to usage of Typescript. It should be exporting just only the methods. Typescript building is failling to me too.

I'm currently working on a fix for this issue.

I'm currently working on a fix for this issue.

Cool! :-D I have been reviewing and fixing some linting issues, I'm going to create a pull-request right now :-)

I've just created a mock since the spawned express server doesn't work in travis :-(

You have the pull-request at https://github.com/maugenst/tabletojson/pull/51 :-)

I changed the README.md to reflect the new api import.

I changed the README.md to reflect the new api import.

Good thing, thanks :-)


put back the old skill picker for now

Soon to be depricated, but needed for now for backwards compatibility

Ss far as i can see it works about as well as it used to (old bugs still there ofc). good incentive to not use it 👍


clamav: 0.102.0 -> 0.102.1

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/clamav/versions.
meta.description for clamav is: '"Antivirus engine designed for detecting Trojans, viruses, malware and other malicious threats"'.
meta.homepage for clamav is: '"https://www.clamav.net"

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 0.102.1 with grep in /nix/store/68mg6j3wzldsxdp84ki5r8gj4w57cps2-clamav-0.102.1

directory tree listing: https://gist.github.com/7292e46bcd238e442ad20e881648a274

du listing: https://gist.github.com/974cc020b737babef19a5a5739d0140d

Rebuild report (if merged into master) (click to expand)

3 total rebuild path(s)
1 package rebuild(s)
1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
0 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)
First fifty rebuilds by attrpath
clamav

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/68mg6j3wzldsxdp84ki5r8gj4w57cps2-clamav-0.102.1 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(r-ryantm's Cachix cache is only trusted for this store-path realization.)
Or, build yourself:
nix-build -A clamav https://github.com/r-ryantm/nixpkgs/archive/0b79dfa6fde35d632c4e151551a49ba8bad22ab7.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/68mg6j3wzldsxdp84ki5r8gj4w57cps2-clamav-0.102.1
ls -la /nix/store/68mg6j3wzldsxdp84ki5r8gj4w57cps2-clamav-0.102.1/bin

cc @phreedom @robberer @qknight @fpletz @globin for testing.

Bumped clamav to 0.101.5 on 19.03: b4ede959ddd6733c35a80a40c580c900d1997ea2


Automated build

Would be nice to have automated build on Docker Hub?

https://hub.docker.com/r/cpuguy83/docker-grand-ambassador/

Thank you :+1:


Highlighting missing from select feature tool - MS4W specific

Hello,
After using select features, I noticed that the buffer and feature results highlights are missing from the map.  This may be MS4W specific as the demo works fine.
p.s.  ms4w is selecting the correct parcels on the results tab.

Hi Mark, I think this is the ticket for the issue that Jeff just commented on on the mailing list:
https://lists.osgeo.org/pipermail/geomoose-users/2015-December/005813.html
Can you try his solution and report back and close this issue if his solution works for you?

With a couple changes to the query I can now see highlights as expected in the selection results!
Changes in c:\ms4w\apps\geomoose2\php\highlight.php
Line 47
Replace: DATA 'features'
With: DATA 'select wkt_geometry from features'
Line 66
Replace: DATA 'selection'
With: DATA 'select area, wkt_geometry from selection'
Thanks Jeff and Tanya!

So for the record, Jeff's fix is supposed to be applied to this file:
https://github.com/geomoose/geomoose-services/blob/master/php/select/highlight.map

The ticket should probably remain open until the next review of closeable tickets (in case the fix impacts any other items).

Especially since no one actually updated the code, it's relatively important that we left it open.
Code changes here: https://github.com/geomoose/geomoose-services/commit/f63c0e972c2495ac8f12d2a897ee140f098ad7c9