Javalin 7 API redesign

Javalin instance and JavalinConfig APIs
Test for "full" api: https://github.com/javalin/javalin/commit/eef4dcc39d448e5d912bafa947517bb5b34a56ea
We currently have this API:
val app = Javalin.create { config ->
    // Jetty
    config.jetty.multipartConfig = MultipartConfig()
    config.jetty.defaultHost = "localhost"
    config.jetty.defaultPort = 8080
    config.jetty.threadPool = QueuedThreadPool()
    config.jetty.addConnector { server, httpConfig -> ServerConnector(server) }
    config.jetty.modifyHttpConfiguration { httpConfig -> }
    config.jetty.modifyServer { server -> }
    config.jetty.modifyServletContextHandler { handler -> }
    config.jetty.modifyWebSocketServletFactory { factory -> }
    // Http and compression
    config.http.defaultContentType = "text/plain"
    config.http.asyncTimeout = 10_000L
    config.http.maxRequestSize = 10_000L
    config.http.generateEtags = true
    config.http.prefer405over404 = true
    config.http.customCompression(CompressionStrategy())
    config.http.brotliAndGzipCompression(3)
    config.http.brotliOnlyCompression(3)
    config.http.gzipOnlyCompression(3)
    config.http.disableCompression()
    // Static files
    config.staticFiles.add("/public")
    config.staticFiles.enableWebjars()
    // Router
    config.router.contextPath = "/api"
    config.router.caseInsensitiveRoutes = true
    config.router.ignoreTrailingSlashes = true
    config.router.treatMultipleSlashesAsSingleSlash = true
    config.router.mount { router ->
        router.before("/hello") { ctx -> }
        router.get("/hello") { ctx -> ctx.result("Hello, World!") }
        router.post("/hello") { ctx -> ctx.result("Hello, World!") }
        router.exception(Exception::class.java) { e, ctx -> }
        router.error(404) { ctx -> ctx.result("Not found") }
        router.after("/hello") { ctx -> }
        router.sse("/sse") { client -> }
        router.ws("/ws") { ws -> }
    }
    config.router.apiBuilder {
        get("/hello") { ctx -> ctx.result("Hello, World!") }
    }
    // Context resolver
    config.contextResolver.fullUrl = { "Test" }
    config.contextResolver.host = { "Test" }
    config.contextResolver.ip = { "Test" }
    config.contextResolver.url = { "Test" }
    config.contextResolver.scheme = { "Test" }
    // Bundled plugnis
    config.bundledPlugins.enableDevLogging()
    config.bundledPlugins.enableRouteOverview("/overview")
    config.bundledPlugins.enableSslRedirects()
    config.bundledPlugins // etc etc
    // Events
    config.events { event ->
        event.serverStarting { println("Server is starting") }
        event.serverStartFailed { println("Server start failed") }
        event.serverStarted { println("Server is started") }
        event.serverStopping { println("Server is stopping") }
        event.serverStopFailed { println("Server stop failed") }
        event.serverStopped { println("Server is stopped") }
        event.handlerAdded {}
        event.wsHandlerAdded {}
    }
    // Request logger
    config.requestLogger.http { ctx, ms -> }
    config.requestLogger.ws { ctx -> }
    // Validation
    config.validation.register(Any::class.java) { }
    // Vue
    config.vue.cacheControl = "Test"
    config.vue.enableCspAndNonces = true
    config.vue.isDev = true
    config.vue.vueInstanceNameInJs = "Test"
    config.vue.isDevFunction = { true }
    config.vue.optimizeDependencies = true
    config.vue.stateFunction = { "Test" }
    config.vue.rootDirectory("Test")
    // Spa root
    config.spaRoot.addFile("/", "index.html")
    config.spaRoot.addHandler("/") { ctx -> }
    // Other
    config.showJavalinBanner = false
    config.startupWatcherEnabled = false
    config.useVirtualThreads = true
    config.jsonMapper(JavalinJackson())
    config.appData(Key("Test"), "Test")
    config.fileRenderer { filePath, model, ctx -> "Test" }
    config.registerPlugin(object : Plugin<Any>() {})
}

app.events { event ->
    event.serverStarting { println("Server is starting") }
    event.serverStartFailed { println("Server start failed") }
    event.serverStarted { println("Server is started") }
    event.serverStopping { println("Server is stopping") }
    event.serverStopFailed { println("Server stop failed") }
    event.serverStopped { println("Server is stopped") }
    event.handlerAdded {}
    event.wsHandlerAdded {}
}
app.before("/hello") { ctx -> }
app.get("/hello") { ctx -> ctx.result("Hello, World!") }
app.post("/hello") { ctx -> ctx.result("Hello, World!") }
app.exception(Exception::class.java) { e, ctx -> }
app.error(404) { ctx -> ctx.result("Not found") }
app.after("/hello") { ctx -> }
app.sse("/sse") { client -> }
app.ws("/ws") { ws -> }
app.start()
app.javalinServlet()
app.jettyServer()
app.port()
app.unsafeConfig()
app.stop()

I've left out a few similar methods and overloads, but all categories should be included.
I think we want to move most of the methods on Javalin into JavalinConfig. We want to keep the simplicity of the Hello World Example though:
fun main() {
    val app = Javalin.create(/*config*/)
        .get("/") { ctx -> ctx.result("Hello World") }
        .start(7070)
}

With the current router, we have:
fun main() {
    val app = Javalin.create { config ->
        config.router.mount { router ->
            router.get("/hello") { ctx -> ctx.result("Hello, World!") }
        }
    }
}

Which is not good enough.
Something like:
fun main() {
    val app = Javalin.create { config ->
        config.router.get("/hello") { ctx -> ctx.result("Hello, World!") }
    }
}

Could be enough to get rid of the direct methods.
Changing the naming around makes it a bit less awkward:
fun main() {
    val javalin = Javalin.create { app ->
        app.router.get("/hello") { ctx -> ctx.result("Hello, World!") }
    }
}

Bigger example:
app.router.before("/hello") { ctx -> }
app.router.get("/hello") { ctx -> ctx.result("Hello, World!") }
app.router.post("/hello") { ctx -> ctx.result("Hello, World!") }
app.router.exception(Exception::class.java) { e, ctx -> }
app.router.error(404) { ctx -> ctx.result("Not found") }
app.router.after("/hello") { ctx -> }
app.router.sse("/sse") { client -> }
app.router.ws("/ws") { ws -> }
app.router.options { option ->
    option.contextPath = "/api"
    option.caseInsensitiveRoutes = true
    option.ignoreTrailingSlashes = true
    option.treatMultipleSlashesAsSingleSlash = true
}

With old syntax:
config.router.contextPath = "/api"
config.router.caseInsensitiveRoutes = true
config.router.ignoreTrailingSlashes = true
config.router.treatMultipleSlashesAsSingleSlash = true
config.router.mount { router ->
    router.before("/hello") { ctx -> }
    router.get("/hello") { ctx -> ctx.result("Hello, World!") }
    router.post("/hello") { ctx -> ctx.result("Hello, World!") }
    router.exception(Exception::class.java) { e, ctx -> }
    router.error(404) { ctx -> ctx.result("Not found") }
    router.after("/hello") { ctx -> }
    router.sse("/sse") { client -> }
    router.ws("/ws") { ws -> }
}

MyClass::class.java vs Myclass::class vs reified
We have several APIs that accept java classes, but no kotlin class overrides. We do have some reified alternatives. We should try to standardize this. Using `MyClass.class` and `MyClass::class` is probably the best approach. We have some issues with reified on interfaces.

Getters, setters additive methods

We should use methodName(value) for setters (including keyed setters).
We should use methodName() for getters (including keyed getters).
We should use addMethodName() for additive operations (can be called multiple times)

Different Contexts for before/endpoint/after
Not everything is available in each stage. We should have a BaseContext, and let each stage extend. BeforeContext, EndpointContext, AfterContext. Look at what WsContext does.

Fix MultiPartUtil.preUploadFunction
It should not be accessible through singleton.

Audit class and method visibility
Lots of unintentionally public stuff now

Create better exception classes which extend JavalinException
Currently we throw a few RuntimeException, which is a bit lazy. We should fix this.

Create wrappers for template engines
javalin-rendering goes away, javalin-rendering-velocity (etc) is introduced

Javalin vs StartedJavalin
We should separate this.

Javalin.create -> Javalin (.start -> StartedJavalin)
Javalin.createAndStart -> StartedJavalin

config.router.contextPath = "/api"
config.router.caseInsensitiveRoutes = true
config.router.ignoreTrailingSlashes = true
config.router.treatMultipleSlashesAsSingleSlash = true
config.router.mount { router ->
    router.before("/hello") { ctx -> }
    router.get("/hello") { ctx -> ctx.result("Hello, World!") }
    router.post("/hello") { ctx -> ctx.result("Hello, World!") }
    router.exception(Exception::class.java) { e, ctx -> }
    router.error(404) { ctx -> ctx.result("Not found") }
    router.after("/hello") { ctx -> }
    router.sse("/sse") { client -> }
    router.ws("/ws") { ws -> }
}

router.before("/hello") { ctx -> }
router.get("/hello") { ctx -> ctx.result("Hello, World!") }
router.post("/hello") { ctx -> ctx.result("Hello, World!") }
router.exception(Exception::class.java) { e, ctx -> }
router.error(404) { ctx -> ctx.result("Not found") }
router.after("/hello") { ctx -> }
router.sse("/sse") { client -> }
router.ws("/ws") { ws -> }
config.router.options { option ->
    option.contextPath = "/api"
    option.caseInsensitiveRoutes = true
    option.ignoreTrailingSlashes = true
    option.treatMultipleSlashesAsSingleSlash = true
}

Hello, I'm just getting started with Javalin 6. One comment about this:
Changing the naming around makes it a bit less awkward:

fun main() {
    val app = Javalin.create { app ->
        app.router.get("/hello") { ctx -> ctx.result("Hello, World!") }
    }
}

To me that seems more confusing, instead of less awkward. If "Javalin" is "app", and on the next line outside the anonymous function I try "app.router.get(...)" and it doesn't resolve, it's confusing. Especially when using "val" in Kotlin or "var" in Java where the class isn't explicitly stated, and you have to hover or go exploring to find out what something is.
It's less confusing and less awkward if the arbitrary variable names match more closely to their types, like in the earlier example:
fun main() {
    val app = Javalin.create { config ->
        config.router.get("/hello") { ctx -> ctx.result("Hello, World!") }
    }
}

This makes it clear to me (again, I'm new) that the Javalin "app" and the JavalinConfig "config" are not the same class.

Thanks for your feeddback @jbuhacoff, how do you feel about
fun main() {
    val javalin = Javalin.create { app ->
        app.router.get("/hello") { ctx -> ctx.result("Hello, World!") }
    }
}

I didn't notice this before, but for me, calling the config an "app" sounds quite incorrect and confusing as well. If you really don't want to call this config, it could be a setup or something, but it's still an entry point for app config.

but it's still an entry point for app config.

I agree, it's "app config", which is why I called it app. This is similar to
config.staticFiles.add(staticFiles -> {
ssl.withTrustConfig(trust->{
config.bundledPlugins.enableCors(cors -> {

and so on. Singling out this particular xyz-config with the generic name config doesn't improve things IMO.

but it's still an entry point for app config.

I agree, it's "app config", which is why I called it app. This is similar to
config.staticFiles.add(staticFiles -> {
ssl.withTrustConfig(trust->{
config.bundledPlugins.enableCors(cors -> {

and so on. Singling out this particular xyz-config with the generic name config doesn't improve things IMO.

Yes it does, because for all of these options you wouldn't hold a reference with the same name, as you would do for your app config, which effectively also "shadows" the first.

Yes it does, because for all of these options you wouldn't hold a reference with the same name, as you would do for your app config, which effectively also "shadows" the first.

But that's completely arbitrary? It's only called app because that's what the docs call it currently, if we called it javalin (which is a more natural name based on the type), then this problem goes away?

Yes it does, because for all of these options you wouldn't hold a reference with the same name, as you would do for your app config, which effectively also "shadows" the first.

But that's completely arbitrary? It's only called app because that's what the docs call it currently, if we called it javalin (which is a more natural name based on the type), then this problem goes away?

People might still call it that way, since it is an instance of the Javalin "application".
I completely support @dzikoysk names, because we are talking about a consumer of a configuration class, not an instance of the application.
Both of them are present in that very same line, and naming the JavalinConfig class something other than config (or similar) to me is unnecessarily confusing.
TL,DR: Javalin.java is an app while JavalinConfig.java isn't, is a config.

The old app instance will basically not have any methods anymore, just .start().
I think app reads a lot more natural than config here:

val javalin = Javalin.create { app ->
    app.jetty
    app.http
    app.staticFiles
    app.router
    app.contextResolver
    app.bundledPlugins
    app.events
    app.requestLogger
    app.validation
    app.spaRoot
    app.showJavalinBanner
    app.startupWatcherEnabled
    app.useVirtualThreads
    app.jsonMapper()
    app.appData()
    app.fileRenderer()
    app.registerPlugin()
}

val app = Javalin.create { config ->
    config.jetty.multipartConfig
    config.http.defaultContentType
    config.staticFiles
    config.router
    config.contextResolver
    config.bundledPlugins
    config.events
    config.requestLogger
    config.validation
    config.spaRoot
    config.showJavalinBanner
    config.startupWatcherEnabled
    config.useVirtualThreads
    config.jsonMapper()
    config.appData()
    config.fileRenderer()
    config.registerPlugin()
}

I think any of these 4 options would be fine, because they give different names to the Javalin instance vs the JavalinConfig instance.
This one would be the least changes to existing documentation:
val javalin = Javalin.create { app ->

Because most of the action is in inside the anonymous function.


Application fails on startup if no database connection is present

Currently the spring boot application won't start if there is no connection to the database.
To make the application more resilient this default behaviour has to be changed.
Spring provides several properties to make own adjustments.
Further information can be found under
https://docs.spring.io/spring-boot/docs/current/reference/html/howto-database-initialization.html

As our infrastructure should take care of this fact, we agreed that this issue should can be closed.
Things I noticed

The application will not fail if the database connection isn't present during runtime
Inside the application.yml the continue-on-error key does not work as expected


⚠ ClamAV has degraded performance

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

HTTP code: 200
Response time: 68 ms

Resolved: ClamAV performance has improved in 171b417.


fix jsonable_encoder exclude include encode model obj invalid

Hi, When i use the jsonable_encoder expect covert model to dict obj，use the exclude or include options  was invalid
data = jsonable_encoder(queryset, exclude={'id'})

or
data = jsonable_encoder(queryset, include={'name'})

The id always in the data
So i created this  pr to solve this problem, Maybe there are better ways to solve this problem

For someone reviewing this PR: this was raised in #2594, and the open PR for the fix is #2606. There is more than just including the "include" and "exclude".
As of this fix @shan-guo, did you considered nested objects? With your proposed solution, the include and exclude will be recursively passed to the children and they will also be included and excluded, and I am not sure if that is the expected behaviour. For this reason in #2606, I just included "include" and "exclude" to the last "jsonable_encoder". Pydantic solves this recursivity problem by allowing a nested dictionary for "include" and "exclude", but this is not solved either in this PR and in the #2606. It is a different problem to solve.
For the first "include" and "exclude" you passed (BaseModel) is not needed since it is passed to the BaseModel.dict function just above, so it is redundant.
For the second one (dict), it is not needed for what I mentioned before, it will include and exclude children, which I don't think it is exptected.
For the third one (default) is needed since it will be needed for the dict case. This is why this was included in #2606.
Furthermore, the #2606 fixes the problem with include and exclude for dict objects to work like they work in Pydantic BaseModel.
You can see the added tests in #2606 for the use cases.
Regards,
Xavi M.

Sorry i ignore the Pydantic work way ,Thank you answer


Support preview Team Discussions API.

GitHub Developer API announcement: https://developer.github.com/changes/2018-03-13-team-discussions-graphql-api-preview/.

Closing in favor of a high level tracking issue #34 for all schema previews.


2D face alignment in preprocessing

Hi,
Many thanks for your work!
I have a question that why you don't do rotation alignment in image preprocessing, and how can I do that at the same time the model can work properly. I didn't understand how the POS function work, if you can tell me that is better.
Best regards

Hi, the POS function solves a scale and translation between a standard 3D face shape and a face in the image. We do not handle rotations because we want the network to learn this factor as well. Thanks.


Pipeline.load() return PipelineModel in PyAlink

I can't call fit() on pipeline created by Pipeline.load("pipeline.ak") in python, because return object doesn't have fit() method . But this method works in Java.
Reason
In Java, Pipeline.load() return a Pipeline object. In Python, it returns a PipelineModel object. One misspelled calss name in pyalink/alink/pipeline/base.py Pipeline.load() appears to cause this.
class Pipeline(Estimator):
    ......
    @staticmethod
    def collectLoad(operator: BatchOperator):
        _j_pipeline_cls = get_java_class("com.alibaba.alink.pipeline.Pipeline")
        j_pipeline = _j_pipeline_cls.collectLoad(operator.get_j_obj())
        stages = Pipeline._check_lazy_params(j_pipeline)
        return Pipeline(*stages, j_pipeline=j_pipeline)

    @staticmethod
    def load(file_path: Union[str, FilePath]):
        _j_pipeline_cls = get_java_class("com.alibaba.alink.pipeline.PipelineModel")
        j_pipeline = _j_pipeline_cls()
        if isinstance(file_path, (str,)):
            path = file_path
            j_pipeline = _j_pipeline_cls.load(path)
        elif isinstance(file_path, FilePath):
            operator = file_path
            j_pipeline = _j_pipeline_cls.load(operator.get_j_obj())
        else:
            raise ValueError("file_path must be str or FilePath")

        stages = Pipeline._check_lazy_params(j_pipeline)
        return Pipeline(*stages, j_pipeline=j_pipeline)

Solution
use collectLoad() instead of load() in pyalink.

Hi, this bug is fixed. Please install latest version of PyAlink.


Mitigate QS Vulnerability

Mitigate QS vulnerability (6.4.0)  https://issues.jboss.org/browse/RAINCATCH-603
Verified manually that the vulnerability is mitigated using snyk test
3rd Party Module Fix Status

request  -  2.81.0

Coverage decreased (-2.0%) to 98.02% when pulling d6fac0dcb17f6b46d14e4a830df0445e652624c2 on TommyJ1994:raincatch-603 into 815576c22675f5053fcc497f072fbc4ba7b2d7af on aerogear:master.

Coverage decreased (-2.0%) to 98.02% when pulling d5d1ece26691e37a340763c74a0fecbf10d7d7c4 on TommyJ1994:raincatch-603 into 815576c22675f5053fcc497f072fbc4ba7b2d7af on aerogear:master.

@TommyJ1994 landed 🚀

@lholmquist :champagne:

@TommyJ1994 also published,  so you should be good now :)

@lholmquist Fantastic! Thanks for speedy review and publish!


executors don't have the time to load when running docker compose

The executors don't have time to load as the docker containers are intialized within a docker compose execution.
These errors were occuring
indexer@23[C]:can not load the executor from /root/.jina/hub-packages/pn1qofsj/config.yml
backend-image_1  |         indexer@23[E]:ExecutorFailToLoad() during <class 'jina.peapods.runtimes.zmq.zed.ZEDRuntime'> initialization
Flow@ 1[E]:Flow is aborted due to ['indexer'] can not be started.
Solution
By adding timeout_ready= -1 to the flow_index executors, it fixed the issue. Should be part of the base example code base to avoid having this occurring for future users.

Thanks for the suggestion - I'll sort that out. And sorry for the late reply!

@vincetrep just curious, where do you specify "timeout_ready= -1" specifically in code?


Timeout error for trivial query

I just started using the API again, I did that weeks ago already and I remember it working, local and with overpass-turbo.
However, now it doesn't seem to work. I pulled your <IP_ADDRESS> image and have the following docker-compose:
version: '3.8'
services:
  overpass:
    image: wiktorn/overpass-api:<IP_ADDRESS>
    container_name: overpass_original
    ports:
      - 31942:80
    volumes:
      - ./data:/db
    environment:
      - OVERPASS_META=no
      - OVERPASS_MODE=init
      - OVERPASS_PLANET_URL=https://download.geofabrik.de/europe/guernsey-jersey-latest.osm.bz2
      - OVERPASS_DIFF_URL=https://download.geofabrik.de/europe/guernsey-jersey-updates/
      - OVERPASS_UPDATE_SLEEP=160000
      - OVERPASS_SPACE=1000000000

it's a tiny channel island, so it takes only 2 mins to spin up. the following curl curl "http://localhost:31942/api/interpreter?data=node(5137693924)%3Bout%20geom%3B" to just request this node ̣ results in HTML with the message runtime error: open64: 0 Success /osm3s_v0.7.55_osm_base Dispatcher_Client::request_read_and_idx::timeout. The server is probably too busy to handle your request..  looking into the dispatcher logs I see lines like these:
2021-10-01 10:47:05 [20] waited idle for 8 cycles.
2021-10-01 10:47:05 [20] waited idle for 8 cycles.
2021-10-01 10:47:06 [68] Dispatcher_Client::request_read_and_idx::timeout /osm3s_v0.7.55_osm_base 0 Success <IP_ADDRESS>
2021-10-01 10:47:06 [20] waited idle for 8 cycles.
2021-10-01 10:47:06 [20] hangup of process 68.
2021-10-01 10:54:05 [78] request_read_and_idx() start
2021-10-01 10:54:05 [20] waited idle for 4186 cycles.
2021-10-01 10:54:06 [20] waited idle for 8 cycles.
2021-10-01 10:54:06 [20] waited idle for 8 cycles.

I'm not familiar enough with overpass to interpret the very frequent waited idle for 8 cycles. lines and I have no idea why it's having read timeouts for such a trivial query. I checked the OSM file from geofabrik, it's legit, I even spun up a valhalla container to see if another app can read the .bz2 file, the graphs built.
do you have any idea @wiktorn ? probably I'm overlooking smth really basic :sweat_smile:

When I started with the same arguments I had the same issue. Removing OVERPASS_SPACE=1000000000 resolved it.

Oh boy.. thanks a bunch! So it’s not safe to use that setting? I’ll try around a little and see what the limits are without explicitly setting it the max memory


  It has changed my view of LLM's and made me appreciate them so much more!
I'd like to use aider from a folder other than my git repo.  git itself has an option for this: -C.  Does aider have any support for this.
My use case is that I'm using direnv from a directory that is not the root of my git repo.  I want to use aider from this dir, too.  I can't just put direnv at the root of my repo because I have multiple different configurations I use for various tasks with this repo.
With other tools, there is an environmental variable I can use.  For example, PIPENV_PIPFILE for pipenv and PYTHONPATH.
Version and model info
Latest version of aider

I'm labeling this issue as stale because it has been open for 2 weeks with no activity. If there are no additional comments, it will be closed in 7 days.

Please keep this open.  I am hoping for an answer and/or to have this turned into a feature request.

Sorry, yes you can do this. Just launch aider with the path to any file in the repo:
aider /path/to/any/file.txt

Thank you. That works perfectly. I would have never figured that out.


Racecondition fails test (triggered by debugging)

As I've been working on the RecordBuilder I noticed that I can force a racecondition which will produce a wrong output.
After looking at my code I've noticed that I can reproduce it on any test.
To reproduce this issue I did the following:

Place breakpoint in CodeBuilder on line 107 and line 140
Execute a test (e.g. PropertyTests.GenerateAutoProperty) in debug
When hitting the breakpoint in line 107 wait a couple of seconds
Resume to hit the breakpoint on line 140
Resume the execution and the test will fail

Screenshot to see the breakpoints:

If you inspect the writer output in debug view on step 4 the generated code is:
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace AwesomeApp
{
}

The actual generated output after step 5 will be:
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace AwesomeApp
{
}
partial class SampleClass
{
    string Test { get; set; }
}

The actual class/record is placed outside of the namespace curly braces.
This behaviour happens on the master-branch.

I'm going to close this as I have not been able to reproduce the issue. Also the CodeGenHelpers are being used by a number of generators writing A LOT of code at this point without issue. If the problem persists or you are able to debug and provide a fix for please feel free to let me know and submit a PR.


IBC deposits fail for certain chains during gas simulation

IBC deposits have started to fail for older chains (such as emoney-3).

It would be great if deposits could revert to using fixed/estimated gas if the simulation fails.
The simulate-transaction request can be reproduced below:
curl 'https://app.osmosis.zone/api/simulate-transaction' \
  -H 'authority: app.osmosis.zone' \
  -H 'accept: */*' \
  -H 'content-type: application/json' \
  --data-raw '{"restEndpoint":"https://emoney.validator.network/api","tx_bytes":"Cr0BCroBCikvaWJjLmFwcGxpY2F0aW9ucy50cmFuc2Zlci52MS5Nc2dUcmFuc2ZlchKMAQoIdHJhbnNmZXISCWNoYW5uZWwtMBoQCgR1bmdtEggxMDAwMDAwMCItZW1vbmV5MWdhcmxkZjZjYTBnOXZtbXRjNWNxcHE0YTB6eDQycXhkdzIyZjYwKitvc21vMWdhcmxkZjZjYTBnOXZtbXRjNWNxcHE0YTB6eDQycXhkZmpyZG1xMgcIARCzla0GEgwKCBIECgIIfxh1EgAaQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="}' \
  --compressed

Let me know if I can assist in any way with setting up test account, etc.

Closing as we haven't seen this in a while


Is there an example to use with Azure B2C auth?

Is there an example to use with Azure B2C auth?

No, but you should just be able to do a standard .NET implementation with no issues. There's no novelty to the IDP setup in a project that craftsman scaffolds out.
As far as permissions, you can set up the user policy handler to do whatever makes sense for your use case

Ok. I'll try. Thanks.


Support protobuf encoding as well as JSON for kzip

When large kzips are ingested, prototypes indicate significant performance gains when using protobuf encoding vs JSON. We propose to support both encodings.
Nominal implementation: compilation unit files in the kzip named .pb instead of .

I'm not at all surprised that encoding and decoding are faster with protobuf than JSON. But is this actually causing any real performance issues in production? When reading .kzip files from the filesystem, I expect I/O to dominate the cost of unpacking the contents, not decoding—and for cases where the compilations are meant to be processed repeatedly, we typically use a different storage format anyway.
Unless the performance gain affects a real workload rather than a generic read-in benchmark, I wouldn't advocate adding the complexity.

It turns out the Go JSONPB library has kind of terrible performance.  I'm not sure if it's just the library or inherent in the use of JSON.  Using proto directly also works around the obstinance in https://github.com/protocolbuffers/protobuf/issues/5226, but is less friendly to indexer authors (as proto is less broadly supported than JSON).

Also, the more I think about it, the less I like mixing JSON and proto files in the same container, that's going to be recipe for confusion. If we go that route we should use a different subdirectory to delineate binary protos, rather than just suffix, e.g $root/units.pb/ or something.  At that point we can mandate that a kzip file has:

Both $root/units and $root/units.pb and that they have identical contents (quick verification is same file counts).
Only $root/units or $root/units.pb.  This will cause decoders that don't understand the binary protos to fail loudly and promptly (the current decoders validate that the kzip file have entries for $root/ $root/units and $root/files), rather than only processing a subset of the entries.

Based on the above and feedback on #3836, I propose a new format. The requirements would be

The file extension is distinguishable from ".kzip" based on the last segment of a "."-split name. Thus ".pb.kzip" is not an acceptable extension, while ".kpzip" is. I in fact propose the latter.
The structure of the archive is similar to that of the kzip, except that the directory containing units should be distinct from "units", and also neither should form a prefix of the other. Thus "punits" is an acceptable directory name, while "units.pb" is not.
The name of the file for each unit is {digest}.pb

I don't understand the motivation for the non-prefix requirement in the second bullet point, but the others seem reasonable and fine.

The second bullet point prefix constraint was to avoid a small fragility in processing kzips; a scan for any files prefixed with "units" (vs "units/") would turn up that the file is not of the expected format. It's very possibly over-cautious, thought.

Fair enough, seems fine to me either way (lack of specificity in path prefixes is a pretty common failure mode).


Add Pipeline support

Codecov Report
Base: 68.38% // Head: 68.43% // Increases project coverage by +0.05% :tada:

Coverage data is based on head (dd0e355) compared to base (bb89ea8).
Patch coverage: 63.33% of modified lines in pull request are covered.

:exclamation: Current head dd0e355 differs from pull request most recent head 25643ee. Consider uploading reports for the commit 25643ee to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #48      +/-   ##
==========================================
+ Coverage   68.38%   68.43%   +0.05%
==========================================
  Files          67       68       +1
  Lines        4659     4689      +30
  Branches      446      448       +2
==========================================
+ Hits         3186     3209      +23
- Misses       1278     1285       +7
  Partials      195      195

Impacted Files
Coverage Δ

src/NRedisStack/Pipeline.cs
63.33% <63.33%> (ø)

src/NRedisStack/Json/JsonCommandBuilder.cs
67.92% <0.00%> (+2.51%)
:arrow_up:

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

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


Project status

I am trying to know how can linux x apps run on android. It is working or alive in some maner

All of the code should still work but it's gotten zero development in the last three years.  I had everything working on one allwinner-based board.  I tried to get it working on a tegra4-based Transformer tablet but ran into issues where su was closing my file descriptors but never quite got past them.  Not that it's insurmountable, just that I didn't have time.

Hi. Can you please commit project to build it on top of current Android Studio version?


GetFeedSubmissionResult returns XML string

Re: https://github.com/ScaleLeap/amazon-mws-api-sdk/pull/100#discussion_r445363150

Maybe we can have a method parameter that defines which format to return?
Example:
getFeedSubmissionResult({
  format: 'xml',
})

// or

getFeedSubmissionResult({
  format: 'json',
})

I think this would help users to get the native JS object, and save them from installing a library to convert from XML to JS. As I doubt anyone would be processing XML in JS in any other way than to convert to JSON first.
JSON should probably be the default option too.
What do you think?

Do you think this can be closed now? I get now why you wanted to open this in the first place. I initially thought you wanted to open this issue to make a mental note that the return for this API is different than the rest

Ya seems like this is done! ✅


Permission issue while locating chromeDriver

I have successfully downloaded 100 images but gives error while downloading 700 images even after providing chromedriver path.

sudo python google_images_download.py -k "NCERT experimental setup" -l 700 -cd /home/neha

Error>>Item no.: 1 --> Item name = NCERT experimental setup
Evaluating...
Looks like we cannot locate the path the 'chromedriver' (use the '--chromedriver' argument to specify the path to the executable.) or google chrome browser is not installed on your machine (exception: Message: 'neha' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home
)

@nehamjadhav were you able to resolve your issue?
Do take a look at the troubleshooting section of the docs here for installing necessary chrome browser stable version, etc.

Closing this for now. Feel free to re-open the issue if the error still persist.


Better topology

A good topology seems the 2-level Transit-Stub topology.

Implemented as NewInternetwork.


Bump zenoh-c to 390ec14 using zenoh 763a05f

Bump zenoh-c dependency to commit eclipse-zenoh/zenoh-c@390ec14e1b3785cd771bd6931db65062222bb735
It relies on eclipse-zenoh/zenoh@763a05f0d61a894cf3cbeb07223e2ea726777325 which includes:

https://github.com/eclipse-zenoh/zenoh/pull/1021 that fixes https://github.com/ros2/rmw_zenoh/issues/173
https://github.com/eclipse-zenoh/zenoh/pull/1022 that fixes https://github.com/eclipse-zenoh/zenoh-c/issues/359
https://github.com/eclipse-zenoh/zenoh-c/pull/358 that fixes a debian packaging issue (see discussion in https://github.com/jspricke/ros-deb-builder-action/issues/49)

Is there somehow a possibility to also include this: https://github.com/eclipse-zenoh/zenoh-c/pull/358 ?

Thank you!


Service list operation, when the mouse moves up, should give information tips [REPLACEMENT ISSUE]

The original issue
Id: 559
Title: Service list operation, when the mouse moves up, should give information tips

could not be created.
This is a dummy issue, replacing the original one. It contains everything but the original issue description. In case the gitlab repository is still existing, visit the following link to show the original issue:
TODO

In GitLab by @cuiaq123 on Nov 8, 2019, 07:40
Nodes page is also

In GitLab by @sokril on Nov 8, 2019, 08:13
assigned to @liyanq528

In GitLab by @luotian-github on Mar 25, 2020, 02:21
assigned to @cuiaq123 and unassigned @liyanq528

In GitLab by @cuiaq123 on Mar 27, 2020, 08:39
assigned to @liyanq528 and unassigned @cuiaq123

In GitLab by @cuiaq123 on Mar 27, 2020, 08:39
服务页面并没有添加，节点页面只添加了调度的提示

In GitLab by @liyanq528 on Apr 1, 2020, 09:11

In GitLab by @liyanq528 on Apr 1, 2020, 09:11

In GitLab by @liyanq528 on Apr 1, 2020, 09:41
assigned to @cuiaq123 and unassigned @liyanq528

In GitLab by @cuiaq123 on Apr 2, 2020, 05:38
assigned to @liyanq528 and unassigned @cuiaq123

In GitLab by @liyanq528 on Apr 3, 2020, 08:41
assigned to @cuiaq123 and unassigned @liyanq528

In GitLab by @liyanq528 on Apr 3, 2020, 08:41
assigned to @liyanq528 and unassigned @cuiaq123

In GitLab by @luotian-github on Jun 24, 2020, 03:25
assigned to @cuiaq123 and unassigned @liyanq528

In GitLab by @luotian-github on Jun 24, 2020, 03:25
fixed, please verify and closed

In GitLab by @cuiaq123 on Jun 24, 2020, 06:28
closed


softmaker-office: 1020 -> 1030

Motivation for this change
Update softmaker-office to 1030. Also update freeoffice to 982.
Things done

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

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

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

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.
Result of nixpkgs-review pr 113705 run on x86_64-linux 1

2 packages built:

freeoffice
softmaker-office

The following issues got detected with the above build packages.
Please fix at least the ones listed with your changed packages:

freeoffice:

Unused argument: fetchurl.
Near pkgs/applications/office/softmaker/generic.nix:1:16:
  |
1 | { lib, stdenv, fetchurl, autoPatchelfHook, makeDesktopItem, makeWrapper, copyDesktopItems
  |                ^

softmaker-office:

Unused argument: fetchurl.
Near pkgs/applications/office/softmaker/generic.nix:1:16:
  |
1 | { lib, stdenv, fetchurl, autoPatchelfHook, makeDesktopItem, makeWrapper, copyDesktopItems
  |                ^


RELATED: FET-564 Add sonar config

Build succeeded (check pipeline).

Build succeeded (check pipeline).

Build succeeded (gate pipeline).

https://checklist.intgdc.com/job/compliance/job/require-css-merge-compliance-check/1/ : SUCCESS in 16s
https://checklist.intgdc.com/job/compliance/job/require-css-fossa-scanning-oss-zuul-el7/1/ : SUCCESS in 1m 24s (non-voting)

Build succeeded (gate pipeline).

https://checklist.intgdc.com/job/compliance/job/require-css-merge-compliance-check/1/ : SUCCESS in 16s
https://checklist.intgdc.com/job/compliance/job/require-css-fossa-scanning-oss-zuul-el7/1/ : SUCCESS in 1m 24s (non-voting)


The interface of Section.add_cells is non-intuintive

The method add_cells gets a list, which it is expected to modify.
It would be more intuitive if the method instead returned the cells it needs to add instead of modifying a parameter.

See https://github.com/datamole-ai/edvart/pull/159#discussion_r1350653500


Feature #1282 - Support serving statically compressed .gz and .br files

This change adds support for serving pre-compressed files (.gz for gzip encoding and .br for brotli).
How it works:
If file.x is requested and request's Accept-Encoding contains br, try to serve file.x.br instead if it exists. Vary: Content-Encoding header and Content-Encoding: br headers are then added to response.
If file.x is requested and request's Accept-Encoding contains gzip, try to serve file.x.gz instead if it exists. Vary: Content-Encoding header and Content-Encoding: gzip headers are then added to response.
This works for index files as well 😁
It also modifies gzip plugin so it no longer removes Accept-Encoding header from requests when gzip is enabled. This allows various other plugins in the chain (like fastcgi or proxy) to return compressed responses that will be omitted entirely by gzip plugin (backend can emit already compressed files).
Tip 1.: when manually testing gzip files with gzip -k filename
Tip 2.: when using git plugin on linux all files can be gzipped using then_long find ROOT -type f -exec gzip -kf {} ;

Btw. test cases in fileserver_test.go were broken.

Please don't merge this. The algorithm for matching Content-Encoding is inadequate and the response headers are not all set correctly (Vary is missing for example).

@rick777: Vary is added. Please clarify what do you mean by "algoritm for matching..." so I can fix that :)

P.S. Appveyor is broken due to: remote: Daily bandwidth rate limit exceeded for IP <IP_ADDRESS>

Waiting for review & thoughts @mholt

I will look at it -- school is ending, gimme a few days, sorry. :)

@rickb777 Have your concerns been addressed, by having the Vary header added?

Any more thoughts @mholt ?

@mholt what do you think of gzipping files that can be gzipped (json/css/html/javascript) and storing them in memory and serving from there? This won't pollute the file system.

@nhooyr: I'm personally against - it will require synchronization between original and compressed image (in memory) - so invalidation of cache, memory hard limits and other things. There is also no big difference between serving file from memory and from disk - kernel will cache recently accessed files anyway.

@wendigo I didn't mean that we should do it because of the minimal performance gains, it's just that it's a lot easier as you don't have to manually gzip the files manually and pollute your file system. You can just have caddy do it and update them whenever necessary.

@nhooyr you don't have to manually gzip files - a lot of javascript builders (like webpack) can output gzipped files for you. This change is about serving pre-compressed file if it exists, not compression per se.

Thank you very much for your work, Mateusz! :)

Thx! :)


WIP: Swap to using svdtools for making build dependency files

Pending svdtools release with https://github.com/stm32-rs/svdtools/pull/18 (and possibly other forthcoming additions).

bors try


Add defaults and update k8s dev version

Which issue this PR addresses:
Fixes:

https://issues.redhat.com/browse/ARO-4576
https://issues.redhat.com/browse/ARO-4514

What this PR does / why we need it:

Update the aro-rp az aro extension (_params.py) with defaults
Update K8s version in development.

Test plan for issue:

Existing E2E tests

Is there any documentation that needs to be updated for this PR?
No

added a few comments.

I'm removing next-release label as this isn't coupled to the RP release.


Need a maintainer for type-definitions

@pwilkniss @Aditi3 @kunl-code created type-definitions for this repo: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/57546. This will be live in a couple of hours and can be installed via npm.
npm install --save-dev @types/clevertap-web-sdk

or yarn
yarn add --dev @types/clevertap-web-sdk

Can you suggest someone who can maintain this repo for future. Will add them to the repo: https://github.com/droyson/DefinitelyTyped/tree/clevertap-web-sdk

hey @droyson !  can you add @darshanclevertap and @akashvercetti thanks!


Upper/Lower case issues with include file names

When building the dev branch on a system with a case-sensitive (not just case-preserving) file system, there are header file #include directives in some .c files that have case errors (the previously mentioned Rmt.h vs rmt.h was the first encountered).  Francois-Denis may have already fixed all these in his branch, but I needed it on the main dev branch :-).
Additional files:

/home/srb/rinasense/components/ShimIPCP/ShimIPCP.c:5:10: fatal error: Freertos/FreeRTOS.h: No such file or directory
#include "Freertos/FreeRTOS.h"
/home/srb/rinasense/components/IPCP/rstr.c:5:10: fatal error: freertos/freertos.h: No such file or directory
#include "freertos/freertos.h"
/home/srb/rinasense/components/IPCP/cepIdm.c:7:10: fatal error: cepIdm.h: No such file or directory
#include "cepIdm.h"
/home/srb/rinasense/components/IPCP/IpcManager.c:16:10: fatal error: Freertos/FreeRTOS.h: No such file or directory
#include "Freertos/FreeRTOS.h"
/home/srb/rinasense/components/IPCP/factoryIPCP.c:5:10: fatal error: Freertos/FreeRTOS.h: No such file or directory
#include "Freertos/FreeRTOS.h"
^~~~~~~~~~~~~~~~~~~~~
/home/srb/rinasense/components/IPCP/normalIPCP.c:5:10: fatal error: Freertos/FreeRTOS.h: No such file or directory
#include "Freertos/FreeRTOS.h"
/home/srb/rinasense/components/IPCP/IPCP.c:23:10: fatal error: ESP_log.h: No such file or directory
#include "ESP_log.h"
/home/srb/rinasense/components/IPCP/common.c:3:10: fatal error: Freertos/FreeRTOS.h: No such file or directory
#include "Freertos/FreeRTOS.h"
/home/srb/rinasense/components/Ribd/Rib.c:5:10: fatal error: Freertos/FreeRTOS.h: No such file or directory
#include "Freertos/FreeRTOS.h"
/home/srb/rinasense/components/Ribd/Ribd.c:5:10: fatal error: Freertos/FreeRTOS.h: No such file or directory
#include "Freertos/FreeRTOS.h"
/home/srb/rinasense/components/Rmt/pci.c:20:10: fatal error: ConfigSensor.h: No such file or directory
#include "ConfigSensor.h"
/home/srb/rinasense/components/EFCP/include/connection.h:13:10: fatal error: FreeRTOS/FreeRTOS.h: No such file or directory
#include "FreeRTOS/FreeRTOS.h"
<
After correcting the case in those files, these build.

Fixed by pulled changes.  This issue can be closed.


This is the devices I have, and they have permission.

And if I give the path directly to new SerialPort("/dev/ttyUSER0"),
it throw permission denied , error 13.
But if I use the plugin serial_port_flutter, I can get the list.
Could you help me?
Thanks.

We put permission handling in todo.
Activity is tracked in #76
Closed


Setup automatic publishing from ci on Android

Blocked until the app will be approved in the plat market.

Blocked until the app will be approved in the plat market.


:sparkles: [channel] Improve Allocation handling

One step towards making it more convenient to work with Allocation.
Closes #63

Closed due to inactivity


Tag not visible in the GTM Community Template Gallery ?

What you made is precise what I'm looking for 👍
But it does not appear when I search for it in the Community Template Gallery

I submitted both versions over 2 weeks ago, but I guess Google is not monitoring submissions. Please let me know if it has all the features you need.

I'm all new to PostHoq and is just testing it out for a client in a race with Amplitude and Mixpanel.
So can't comment on the features yet, but know that the client would preferer to do simple  custom event with a tag like this.

Cannot find it in the community gallery too...


How can i change Prometheus‘s args,for example  "--storage.tsdb.retention"

What did you do?
Good afternoon,guy,I want to extend prometheus's data retention time,but I can't find the configuration about it, I have tryed to online edit  the pod prometheus-k8s-0 .but it faild.can you help me ? thanks.

I have found prometheus Spec.But the document don't describe how to change it

[root@ecs-5274-0318501 manifests]# kubectl -n monitoring describe deployment prometheus-operator
Name:                   prometheus-operator
Namespace:              monitoring
CreationTimestamp:      Wed, 03 Jul 2019 09:38:41 +0800
Labels:                 k8s-app=prometheus-operator
Annotations:            deployment.kubernetes.io/revision: 1
                        kubectl.kubernetes.io/last-applied-configuration:
                          {"apiVersion":"apps/v1beta2","kind":"Deployment","metadata":{"annotations":{},"labels":{"k8s-app":"prometheus-operator"},"name":"prometheu...
Selector:               k8s-app=prometheus-operator
Replicas:               1 desired | 1 updated | 1 total | 1 available | 0 unavailable
StrategyType:           RollingUpdate
MinReadySeconds:        0
RollingUpdateStrategy:  25% max unavailable, 25% max surge
Pod Template:
  Labels:           k8s-app=prometheus-operator
  Service Account:  prometheus-operator
  Containers:
   prometheus-operator:
    Image:      quay.io/coreos/prometheus-operator:v0.28.0
    Port:       8080/TCP
    Host Port:  0/TCP
    Args:
      --kubelet-service=kube-system/kubelet
      --logtostderr=true
      --config-reloader-image=quay.io/coreos/configmap-reload:v0.0.1
      --prometheus-config-reloader=quay.io/coreos/prometheus-config-reloader:v0.28.0
    Limits:
      cpu:     200m
      memory:  200Mi
    Requests:
      cpu:        100m
      memory:     100Mi
    Environment:
    Mounts:
  Volumes:
Conditions:
  Type           Status  Reason
  ----           ------  ------
  Available      True    MinimumReplicasAvailable
  Progressing    True    NewReplicaSetAvailable
OldReplicaSets:
NewReplicaSet:   prometheus-operator-6c88446b98 (1/1 replicas created)
Events:

the yaml file about operator:
[root@ecs-5274-0318501 manifests]# vim 0prometheus-operator-deployment.yaml

metadata:
  labels:
    k8s-app: prometheus-operator
  name: prometheus-operator
  namespace: monitoring
spec:
  replicas: 1
  selector:
    matchLabels:
      k8s-app: prometheus-operator
  template:
    metadata:
      labels:
        k8s-app: prometheus-operator
    spec:
      containers:
      - args:
        - --kubelet-service=kube-system/kubelet
        - --logtostderr=true
        - --config-reloader-image=quay.io/coreos/configmap-reload:v0.0.1
        - --prometheus-config-reloader=quay.io/coreos/prometheus-config-reloader:v0.28.0
        image: quay.io/coreos/prometheus-operator:v0.28.0
        name: prometheus-operator
        ports:
        - containerPort: 8080
          name: http
        resources:
          limits:
            cpu: 200m
            memory: 200Mi
          requests:
            cpu: 100m
            memory: 100Mi
        securityContext:
          allowPrivilegeEscalation: false
          readOnlyRootFilesystem: true
      nodeSelector:
        beta.kubernetes.io/os: linux
      securityContext:
        runAsNonRoot: true
        runAsUser: 65534
      serviceAccountName: prometheus-operator

Did you expect to see some different?
Environment

Prometheus Operator version:
Insert image tag or Git SHA here

Kubernetes version information:
kubectl version

Kubernetes cluster kind:
insert how you created your cluster: kops, bootkube, tectonic-installer, etc.

Manifests:

insert manifests relevant to the issue

Prometheus Operator Logs:

insert Prometheus Operator logs relevant to the issue here

Anything else we need to know?:

I recommend going through the getting started guide, there you'll learn about the Prometheus type object, that the Prometheus Operator introduces. That's where you set the retention.

I recommend going through the getting started guide, there you'll learn about the Prometheus type object, that the Prometheus Operator introduces. That's where you set the retention.

I' m sorry.I still haven't found the relevant content.i'm bad at it ,could you give some advise please ？thanks

Looking at the example in the getting started guide here: https://github.com/coreos/prometheus-operator/blob/master/Documentation/user-guides/getting-started.md#include-servicemonitors
It has this object:
apiVersion: monitoring.coreos.com/v1
kind: Prometheus
metadata:
  name: prometheus
spec:
  serviceAccountName: prometheus
  serviceMonitorSelector:
    matchLabels:
      team: frontend
  resources:
    requests:
      memory: 400Mi
  enableAdminAPI: false

To configure retention to be 10 hours, that object would look like this:
apiVersion: monitoring.coreos.com/v1
kind: Prometheus
metadata:
  name: prometheus
spec:
  retention: 10h
  serviceAccountName: prometheus
  serviceMonitorSelector:
    matchLabels:
      team: frontend
  resources:
    requests:
      memory: 400Mi
  enableAdminAPI: false

retention: 10h

ok，I got it，I configured it according to your suggestion,the probelem have resolved recently，thanks very much,excellent.

Looking at the example in the getting started guide here: https://github.com/coreos/prometheus-operator/blob/master/Documentation/user-guides/getting-started.md#include-servicemonitors
It has this object:
apiVersion: monitoring.coreos.com/v1
kind: Prometheus
metadata:
  name: prometheus
spec:
  serviceAccountName: prometheus
  serviceMonitorSelector:
    matchLabels:
      team: frontend
  resources:
    requests:
      memory: 400Mi
  enableAdminAPI: false

To configure retention to be 10 hours, that object would look like this:
apiVersion: monitoring.coreos.com/v1
kind: Prometheus
metadata:
  name: prometheus
spec:
  retention: 10h
  serviceAccountName: prometheus
  serviceMonitorSelector:
    matchLabels:
      team: frontend
  resources:
    requests:
      memory: 400Mi
  enableAdminAPI: false

I got it,LOL，I configured it according to your suggestion,the probelem have resolved recently，thanks very much,excellent.


Update release.yml

Problem
Minor bug which prevented the workflow from correctly bumping the version
Solution
Chose the right output
Type of Change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
[X] Infrastructure change (CI configs, etc)
[ ] Non-code change (docs, etc)
[ ] None of the above: (explain here)

Test Plan
Describe specific steps for validating this change.

Bypassing approvals to make a quick new release


Add validation for empty values on the Locators form

Add validation in case of empty form before performing Highlight / Test operation on empty element
Kudos for this finding to Sunny
https://groups.google.com/d/msg/selenium-users/epneoHaOymk/4rS-YHGpt5EJ
Video:
https://www.youtube.com/watch?v=Ajz05OFB7Ps

Hello Dmytro,
Do you plan to expand your recorder for the Mac OS?
Regards,Vladimir
Date: Mon, 5 Jan 2015 23:19:25 -0800
From<EMAIL_ADDRESS>To<EMAIL_ADDRESS>Subject: Re: [swd-recorder] Add validation for empty values on the Locators form (#28)
Closed #28.
—
Reply to this email directly or view it on GitHub.
	 	   		  =

Hi Vladimir (@vladimir100),
No, I am not planning porting Page Recorder to MacOS in the nearest future.
It is written in C#. And... unfortunately, the Webdriver implementation
and its dependencies is not officially supported on Mono for MacOs and Linux.
That would require me to rewrite everything on Java.
I am not planning to do that now ;)

Dima


fix staging workflow

Coverage remained the same at 86.815% when pulling 3b1bdb13884078453f4c9fff1653682cccc0c464 on fix-staging-workflow into 7140129de504a1c1d4296804649a409defd66c7e on main.

closed with direct commit to main


MX Player plugin request.

Would it be possible to make a plug-in for MX Player streams (?),
now they may open but freezes immediately.
[http://ltlive01.cloudapp.net/LT_CH_5miu4ca67.isml/QualityLevels(1264000)/manifest(format=m3u8-aapl).m3u8]

Works fine here.

So how did your link/ path look ?

So how did your link/ path look ?

Nothing special, just added hls:// infront of the URL you posted. You may want to try another player, it worked fine with mpv for me at least.

VLC is such a default player for me so I’m not even thinking in terms of other players.
Tried: MPV (both) ->(Failed to start player [Process exited prematurely] ), once in PotPlayer
but did not work not again, RealPlayer Cloud, Simple Player, QuickTime, WinAmp fhe latest free, WMP.
I will put up an Issue on the VLC Forum.

[stream.hls][error] Failed to open segment 61856: Unable to open URL: http://ltl
ive01.cloudapp.net/LT_CH_5miu4ca67.isml/QualityLevels(1264000)/Fragments(Video=1
00471800000000,format=m3u8-aapl).ts (404 Client Error: Not Found)
[stream.hls][error] Failed to open segment 61856: Unable to open URL: http://ltl
ive01.cloudapp.net/LT_CH_5miu4ca67.isml/QualityLevels(1264000)/Fragments(Video=1
00471800000000,format=m3u8-aapl).ts (404 Client Error: Not Found)
[stream.hls][error] Failed to open segment 61856: Unable to open URL: http://ltl
ive01.cloudapp.net/LT_CH_5miu4ca67.isml/QualityLevels(1264000)/Fragments(Video=1
00471800000000,format=m3u8-aapl).ts (404 Client Error: Not Found)

Seems to be an issue with VLC. I have tested it with two different media players: MPC-HC and VLC. First I tried to play the stream directly with both media players. No problems so far with MPC-HC, but with VLC the video freezes immediately. VLC output log shows:
core warning: early picture skipped
core debug: discarded audio buffer

Same happens when I try to watch the stream with Livestreamer and VLC. Video freezes immediately and Livestreamer shows some error messages:
[stream.hls][error] Failed to open segment 54660: Unable to open URL: http://ltlive01.cloudapp.net/LT_CH_5miu4ca67.isml/QualityLevels(1264000)/Fragments(Video=63374000000000,format=m3u8-aapl).ts (404 Client Error: Not Found)
[stream.hls][error] Failed to open segment 54660: Unable to open URL: http://ltlive01.cloudapp.net/LT_CH_5miu4ca67.isml/QualityLevels(1264000)/Fragments(Video=63374000000000,format=m3u8-aapl).ts (404 Client Error: Not Found)
[stream.hls][error] Failed to open segment 54660: Unable to open URL: http://ltlive01.cloudapp.net/LT_CH_5miu4ca67.isml/QualityLevels(1264000)/Fragments(Video=63374000000000,format=m3u8-aapl).ts (404 Client Error: Not Found)

While working fine with file output option...
livestreamer "hls://ltlive01.cloudapp.net/LT_CH_5miu4ca67.isml/QualityLevels(1264000)/manifest(format=m3u8-aapl).m3u8" best -o 01.ts
[cli][info] Found matching plugin stream for URL hls://ltlive01.cloudapp.net/LT_CH_5miu4ca67.isml/QualityLevels(1264000)/manifest(format=m3u8-aapl).m3u8
[cli][info] Available streams: live (worst, best)
[cli][info] Opening stream: live (hls)
[download][01.ts] Written 48.7 MB (4m20s @ 185.6 KB/s)

...or MPC-HC.
livestreamer "hls://ltlive01.cloudapp.net/LT_CH_5miu4ca67.isml/QualityLevels(1264000)/manifest(format=m3u8-aapl).m3u8" best -p "C:\Program Files\Video\MPC-HC\mpc-hc.exe"
[cli][info] Found matching plugin stream for URL hls://ltlive01.cloudapp.net/LT_CH_5miu4ca67.isml/QualityLevels(1264000)/manifest(format=m3u8-aapl).m3u8
[cli][info] Available streams: live (worst, best)
[cli][info] Opening stream: live (hls)
[cli][info] Starting player: C:\Program Files\Video\MPC-HC\mpc-hc.exe

I’ll get back to this one.
Should I want to keep VLC as the default, is it just to specify [C:\Program Files\Video\MPC-HC\mpc-hc.exe] after “best” ?

You can use VLC as default player and specify another player (e.g. MPC-HC) by using the [-p] (http://docs.livestreamer.io/cli.html#cmdoption-p) option.

Yes it really does play with MPC,
but do you have any tip on how to use it with a VGA monitor ?
I’ve seen that there are some image controls under Options -> Miscellaneous but it’s not enough.
Perhaps downloading a mpeg2 but which one/-s ?
I’ve searched earlier on how to adjust VGA -monitors but come to no conclusion.


null magazine tag on cards in magazine index page

Seems like its norwegian translation for Energy transition and next zero. :P


Add owners with all the maintainers

cc @buildpacks/core-team @buildpacks/buildpack-authors-tooling-maintainers @buildpacks/implementation-maintainers @buildpacks/distribution-maintainers @buildpacks/platform-maintainers @buildpacks/learning-maintainers to verify their email addresses.

Do we want to use vmware email addresses now?
@elbandito do you want to change to your personal email address?

It would be great if we could have some docs, maybe in GOVERNANCE, which describes the steps to add someone as a maintainer (one of which would include adding the appropriate line to this, and perhaps requesting access to cncf list), so that this list doesn't get out of date

Yup, we need to consolidate the steps to add the maintainers somewhere. Currently we need this owners file so that CNCF can sync this file with service desk access and access to the buildpacks maintainers list.

Do we want to use vmware email addresses now?

Don't know which ones to use. I copied the emails from slack.

@ekcasey @nebhale @natalieparellano can you suggest alternative emails in this PR?

@sclevine moved to the OWNERS format similar to the one in spec.

@dfreilich @natalieparellano @jabrown85 do your emails look good?


Add Crosnest relayer addresses

trusting period validation boundaries need to be adjusted in the validation workflow. PR lgtm


Terminate active sync initial scan on stopSync

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/8055/
Test FAILed.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/8063/
Test FAILed.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/8064/
Test FAILed.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/8065/
Test FAILed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/8082/
Test PASSed.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/8090/
Test FAILed.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/8101/
Test FAILed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/8128/
Test PASSed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/8140/
Test PASSed.

@yuzhu @gpang please take another look, thx

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/8164/
Test PASSed.

alluxio-bot, merge this please.


[8.0.0-beta.3 - Nuxt 3 RC13] $te is not auto-imported in template - _ctx.$te is not a function

Version
@nuxtjs/i18n: 8.0.0-beta.3
nuxt:3.0.0-rc.13
Nuxt configuration
Please change to [x] if relevant for this issue:

[x] Applies to a site deployed to a static server (site generated with nuxt generate)
[x] Applies to a site deployed to a server with a Node backend

@nuxtjs/i18n configuration
i18n: {
    vueI18n: {
      legacy: false,
      locale: 'en',
      messages: {
        en: {
          welcome: 'Welcome',
        },
        fr: {
          welcome: 'Bienvenue',
        },
      },
    },
  },

Reproduction Link
https://stackblitz.com/edit/i18n-module-1643?file=app.vue,nuxt.config.ts,package.json
Steps to reproduce

Use any config
Write $te in template

What is Expected?

Having $te working out of the box

What is actually happening?
See _ctx.$te is not a function as error.

Thank you for your reproting!
$te injected into component is no longer provided by the Composition API (setup hook or script setup) from vue-i18n v9.
https://vue-i18n.intlify.dev/api/injection.html#componentcustomproperties
The reason for the deprecation is that having that API would complicate the i18n implementation by programmatically checking for the presence of keys.
As an alternative to checking for the presence of a key, vue-i18n by default outputs a warning if the key is not present.
And also, vue-i18n provides an eslint plugin that can be used to statically check for the presence of a key.
https://eslint-plugin-vue-i18n.intlify.dev/

@kazupon Thanks for the info! So there is no way to programmatically check the existence of a key and e.g. render a component based on it (except with the legacy API)?

@manniL
Ah, sorry. vue-i18n have been still providing  Composition API equivalent to it. 😅
You can use tc:
const { tc } = useI18n();

Good to know!
But still, $te should be automatically injected without using composition API, similar to $t, right? That's not the case (see example above).

Hi!
I supported $te globaly.
Please try to install edge version<EMAIL_ADDRESS>


Basic setup with stub methods and placeholder tests for the stub meth…

…ods. Implements rubocop config and travis config.

Closing as I didn't turn on travis before opening this PR.


enhancement add bvar for pipeline fragment instance and task

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Provide default output directory since the corresponding parameter is optional

Signed-off-by: Jan Schatteman<EMAIL_ADDRESS>

Codecov Report

Merging #154 into master will increase coverage by 0.03%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #154      +/-   ##
============================================
+ Coverage     49.39%   49.42%   +0.03%
  Complexity      281      281
============================================
  Files            19       19
  Lines          1480     1481       +1
  Branches        190      190
============================================
+ Hits            731      732       +1
  Misses          659      659
  Partials         90       90

Impacted Files
Coverage Δ
Complexity Δ

...va/com/redhat/red/build/finder/ConfigDefaults.java
100% <ø> (ø)
1 <0> (ø)
:arrow_down:

...rc/main/java/com/redhat/red/build/finder/Main.java
33.56% <ø> (+0.22%)
15 <0> (ø)
:arrow_down:

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 abd174f...7f8d4cf. Read the comment docs.

Thanks. I had noticed this.

Modified the PR according to yr comments


chore: perform scheduled builds of drun in a sparse artefact environment

Recently imports of drun tend to fail building, because the storage is very constrained on Linux builders, and nix preloads all necessary binary artefacts for the whole build process. This meant that when the drun build started there were already OCaml and ghc as well as many instances of llvm, clang and rustc present.
This PR detects when drun is about to be built, does it in a frugal way, and also cleans up after itself.
If this method turns out to be effective in the middle term, we can adopt it for rustc and other bigger chunks too.

Btw, I did a test (2bd1c254c7ceeb50ec4933a11c436353ee8ae4c3) and it worked well...


Assignment 2

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
add some text of questionary
What did you learn from the changes you have made?
how to create questionary for research
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
na
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
na
How were these changes tested?
na
A reference to a related issue in your repository (if applicable)
na
Checklist

[x] I can confirm that my changes are working as intended

sorry for the late commitment had  broken laptop
kind regards
alex


Add GameRegion::removeAssociations

Add a protected function to GameRegion to be a helper function for removeNeighborRegion and removeChildRegion.
Pass the function to do the removal as an std::Function

doneish


Fixed page change listener not calling

The deprecated setOnPageChangeListener wasn't callling on page changes. Updating to the new addOnPageChangeListener method fixed the issue.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


#1713 Support for .properties syntax

Can anyone review this simple PR, thanks :)

Hi @bostko, thanks for your effort! It is a bit more complicated than it seems, but finally I sort of managed to do it right. I've oped new PR #1858 for it.


Not sure about which part to download in nuScenes dataset

Hi, Tianwei! Nice work! I'm a novice in point cloud object tracking, and I'm going to run your code. However, I'm not quite sure about which part of the dataset should I download. Should I download all the part or just 'Keyframe blobs'? I've just download the 'Keyframe blobs', but find only the 'samples' folder in it, where can i get the 'sweeps', 'maps' and 'v1.0-trainval' folders? I really appreciate your help！

you need all lidar blobs

Thanks!


No Connected Debug Probes when running executable built with PyInstaller

I am using pyocd version 0.36 with Python 3.11 and have used PyInstaller to build an executable of a script that uses pyocd. My script includes the use of ConnectHelper to open a session with an STM32 board. When I run the script (.py file), the node is found and everything works correctly. However, when I run the built executable, I encounter the following error:

←[31mNo connected debug probes←[0m

Steps to Reproduce:

Write a Python script that uses pyocd to connect to an STM32 board.

Use PyInstaller to build an executable from this script.

Run the executable.

Expected Behavior:
The executable should successfully connect to the STM32 board, just as the script does when run directly with Python.
Actual Behavior:
The executable fails to find any connected debug probes and outputs the following error message:

←[31mNo connected debug probes←[0m

Additional Information:

Python Version: 3.11
pyocd Version: 0.36
PyInstaller Command Used: pyinstaller --onefile my_script.py
Operating System: [Windows 10]

Questions:

Is there a known issue with pyocd and PyInstaller?
Are there specific steps or configurations needed to ensure pyocd works in a PyInstaller-built executable?
Could there be a missing dependency or path issue in the executable that isn't present when running the script directly?

Any help or guidance on resolving this issue would be greatly appreciated.
Thank you!

Hi!
Are you running the .exe in the same computer where the .py file works or is in another device?
I think i had this error when I generated the exe and tried to use it in another device without installing the st-link driver.
Also in this issue whe discussed about the exe generation, maybe it helps.

same issue like you. do you find a way to fix it?

same issue like you. do you find a way to fix it?

Try to change the .spec file which is generated while you try to generate the .exe with pyinstaller.
it works for my .exe with following .spec file:
`# -- mode: python ; coding: utf-8 --
import os
import pathlib
from PyInstaller.utils.hooks import get_package_paths, collect_entry_point
datas_probe, hiddenimports_probe = collect_entry_point('pyocd.probe')
datas_rtos, hiddenimports_rtos = collect_entry_point('pyocd.rtos')
datas = [
(get_package_paths('pyocd')[1], 'pyocd'),
(get_package_paths('pylink')[1], 'pylink')
]
Right now we exclude cmsis_pack_manager, but could be needed in the future
datas.append((get_package_paths('cmsis_pack_manager')[1], 'cmsis_pack_manager'))
excludes = ['cmsis_pack_manager']
For the CLI version we don't want to include the gui command
excludes.append('tkinter')
a = Analysis(
['main.py'],
pathex=['../'],
binaries=[],
datas= datas + datas_probe + datas_rtos,
hiddenimports=hiddenimports_probe + hiddenimports_rtos,
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=excludes,
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=None,
noarchive=False
)
pyz = PYZ(a.pure,
a.zipped_data,
cipher=None)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='NeoMonitor_KM',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=False,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon=['logo.ico'],
)
`
then you have to create the .exe with:
pyinstaller options name.spec
you can check it out at

same issue like you. do you find a way to fix it?

Try to change the .spec file which is generated while you try to generate the .exe with pyinstaller.
it works for my .exe with following .spec file:
# -*- mode: python ; coding: utf-8 -*-

# Import necessary modules
import os
import pathlib

# Import specific utilities from PyInstaller
from PyInstaller.utils.hooks import get_package_paths, collect_entry_point

# Collect data and hidden imports for pyocd.probe and pyocd.rtos
datas_probe, hiddenimports_probe = collect_entry_point('pyocd.probe')
datas_rtos, hiddenimports_rtos = collect_entry_point('pyocd.rtos')

# Define the data paths for pyocd and pylink
datas = [
    (get_package_paths('pyocd')[1], 'pyocd'),
    (get_package_paths('pylink')[1], 'pylink')
]

# Right now we exclude cmsis_pack_manager, but could be needed in the future
# datas.append((get_package_paths('cmsis_pack_manager')[1], 'cmsis_pack_manager'))
excludes = ['cmsis_pack_manager']

# For the CLI version we don't want to include the gui command
excludes.append('tkinter')

# Define the analysis parameters
a = Analysis(
    ['main.py'],
    pathex=['../'],
    binaries=[],
    datas= datas + datas_probe + datas_rtos,
    hiddenimports=hiddenimports_probe + hiddenimports_rtos,
    hookspath=[],
    hooksconfig={},
    runtime_hooks=[],
    excludes=excludes,
    win_no_prefer_redirects=False,
    win_private_assemblies=False,
    cipher=None,
    noarchive=False
)

# Define the PYZ parameters
pyz = PYZ(a.pure,
          a.zipped_data,
          cipher=None)

# Define the EXE parameters
exe = EXE(
    pyz,
    a.scripts,
    a.binaries,
    a.datas,
    [],
    name='program_name',
    debug=False,
    bootloader_ignore_signals=False,
    strip=False,
    upx=False,
    upx_exclude=[],
    runtime_tmpdir=None,
    console=True,
    disable_windowed_traceback=False,
    argv_emulation=False,
    target_arch=None,
    codesign_identity=None,
    entitlements_file=None,
    icon=['logo.ico'],
)

then you have to create the .exe with: pyinstaller options name.spec
you can check it out at pyinstaller_doc

thanks, it works for me.


Make all popups send a chat message.

Description
The idea is simply that popups should be logged in chat.
However, since the chat has multiple filters, it should have a filter for popup messages, and have it be disabled by default.
This way, if you need to re-read old popup messages for whatever reason, you can do so by simply enabling the popup filter.

The fact that popups aren't logged anywhere right now has always bothered me, specially for popups such as the dice roll popup, which would be really nice to log for certain situations (tabletop games, roleplay reasons, etc)
While I do agree that cluttering the chat is bad and that popups are a good way to prevent this, I feel like implementing this feature would have the best of both worlds, with none of the disadvantages: If you want your chat cluttered by popups, you can. But by default, it won't. If you want to see past popups to remember what your dice rolled before, you can enable the filter to see and then disable it again. I feel like doing this has no disadvantages at all, only advantages.

I think I'll give this one a try next. Also seems related to #190.

In Content.Shared > Chat > ChatChannel.cs there seems to be a chat channel for "Visual" (comment reads: "Visual events the player can see. Basically like visual_message in SS13")
From what I can tell, this Visual channel seems unused currently. Would this overlap with what I'm doing? I'm currently going to ignore it and try to create a new channel "Popup." I imagine that visual_message would be used for important stuff that we wouldn't want the player to filter out.

After taking it to the Discord it seems like the chat portion of #5438 is needed first. If I understand it correctly, Speech and other In-Character chat needs an ECS refactor ("SpeechSystem" or the like) whereas Out-of-Character chat would go through IChatManager interface.
Either way I've stopped work on this one for now.

dupe of  #190


Update security.md

Proposed changes

Unreleased project version (optional)

Related issues (optional)

Yep, thanks @scjane :)


Improve fetch all method

Description
When you doing fetch all, it should fetches all items with minimum requests.
Current Behavior
Right now fetch all has a limit of 50 items per request and if there are more than 50 items, it needs to fetch multiple times.
Context
Because of the multiple fetches, there are more queries and the whole fetch all method is slower.
Possible Solution
Increase the limit number of items to 500, which is the maximum in commercetools platform.

Instead of using fetchAll you can use the normal fetch and specify the limit

Also, in place like impex where this module is being used, fetching 500 items by default to the browser might not be too performant..

@hisabimbola The fix that I try to address here affects only when you do all().fetch(). The previous code was fetching 50 items per request, which has the effect of making more requests when you have more than 50 items. I just want to raise it to the maximum 500, which results in less requests in case of all().fetch(). This does not affect fetching without all().

Okay, that's fine

Since this can be a breaking change, I will now make the limit parameter configurable and configure it in the modules that need it.


Update Backstage Techdocs to add artifacthub links

Update Backstage Techdocs to add artifacthub links, to know the right one you can look in the repo to see what one we are using eg for cert-manager look at ortelius-kubernetes/kube-infra/kustomize/dns-infra/cert-manager/base/kustomization.yaml
please update the website link of project (can look at google or cncf landscape) and artifacthub.io ortelius-kubernetes/docs/index.md

This has been completed.


No error in JavaScript on optional binding pattern parameter

Bug Report
🔎 Search Terms
TS2463 javascript
🕗 Version & Regression Information

This is the behavior in every version I tried, and I reviewed the FAQ for entries about default

⏯ Playground Link

TypeScript link
JavaScript link

💻 Code

/**
 * @typedef Options
 * @property {string} maybeUndefined
 */

/**
 * @param {Options} [options]
 */
function test({
	maybeUndefined = "str",
}) {
	takesString(maybeUndefined);
}

/**
 * @param {string} str
 */
function takesString(str) {
	console.log(str);
}

test();

🙁 Actual behavior
No error is thrown.
🙂 Expected behavior
An error is thrown similar to what happens in the TypeScript equivalent of this code. Note that in the playground link I have checked all options that are supposed to make types more strict. Also note that when this code is run, you'll end up with a runtime error. The same is true for the TypeScript equivalent, but in that case you get an error in advance warning you that the code you wrote will cause issues.

@param {Options} [options] declares the parameter as optional. The equivalent in typescript is { maybeUndefined = 'str' }?: options, which also gets rid of the error. (Although it adds an error at the declaration site since this combination isn't legal -- and should probably be illegal in javascript too.)
Instead, use @param {Options} options

Thanks for looking into this @sandersn!
I'm not really sure why this got closed as working as intended, since you mentioned

and should probably be illegal in javascript too.

Should I create a feature request / new issue for this?

Oh, I misread the whole thing. I'll re-open.

I supposed that it's working as intended.
function test({ x = '' }) { x } means that the first argument is required.
You'll get the error of missing arguments when you attempt to call this test().

That's true, but with
/**
 * @param [options]
 */

added to the JavaScript function you can suppress type errors that would otherwise warn you about the potential runtime error.
Have a look at the two playground links in the first comment. The emitted code from both JavaScript and TypeScript are the same, and both trigger a runtime error, but the JavaScript equivalent doesn't warn you in advance.


Add 404 page to website

Ref #137
It adds a 404 page to website if not match any section:

Notes:

I added 404.svg to a new folder called images because I did not know where to put it :sweat_smile:
Feel free to change 404.svg, I'm not a designer, but I tried to give my best.
I did not put any text or call to action, if you think it's cool to have, suggest here.

Wow! That's so amazing! 😱
Thank you, @renatorib.

:heart:


Add one-hot/cold encoding

One-hot/cold encoding.
Given an input tensor of indices, this function returns a tensor of the same shape as the input
tensor with an additional dimension of the given depth size. The values in the returned tensor are
all set to the off_value except for the positions represented by the indices, which are set to the on_value.
This method returns a tensor with a rank that is one rank larger than the input tensor.
As an example, the following tensor will be encoded to a one-hot matrix:
[[0i64, 2], [1, -1]]
with a depth of 4 will be encoded to:
[[[1, 0, 0, 0], [0, 0, 1, 0]], [[0, 1, 0, 0], [0, 0, 0, 0]]]
When the input tensor index has a value of -1, the corresponding one-hot vector will be ignored,
resulting in a vector of values set to the off_value.
This method supports one-cold encoding by setting on_value to 0 and off_value to 1.
By default on_value is 1 and off_value is 0.
Other encoding values can be used by setting on_value and off_value to the desired values.
Examples
One-hot encoding
use candle::{Shape, Tensor, Device};
use candle_nn::encoding::one_hot;

let device = candle::Device::Cpu;

let indices = Tensor::new(vec![vec![0i64, 2], vec![1, -1]], &device).unwrap();
let depth = 4;

let on_value = 1.0;
let off_value = 0.0;

let one_hot = one_hot::<f32>(indices, depth, on_value, off_value).unwrap();

let expected_matrix = [
    [[1.0, 0.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.0]],
    [[0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0]],
];

assert_eq!(one_hot.shape(), &Shape::from((2, 2, depth)));

let matrix = one_hot.to_vec3::<f32>().unwrap();

assert_eq!(matrix, expected_matrix);

One-cold Encoding
use candle::{Shape, Tensor, Device};
use candle_nn::encoding::one_hot;

let device = candle::Device::Cpu;
let depth = 4;
let indices = Tensor::new(vec![vec![0u8, 2], vec![1, 3]], &device).unwrap();

let on_value: u8 = 0;
let off_value = 1;

// Note: the method does not require the turbofish operator, as the type is inferred from the `on_value` and `off_value`.
let one_cold = one_hot(indices, depth, on_value, off_value).unwrap();

let expected_matrix = [[[0, 1, 1, 1], [1, 1, 0, 1]], [[1, 0, 1, 1], [1, 1, 1, 0]]];

assert_eq!(one_cold.shape(), &Shape::from((2, 2, depth)));

let matrix = one_cold.to_vec3::<u8>().unwrap();

assert_eq!(matrix, expected_matrix);

Bails
This method will bail on tensors with a rank greater than 3.
This method will bail if the index value is less than -1.
This method will bail if the index value is greater than or equal to the depth value.
This method will bail if the input data type is not one of U8, U32 or I64.
API Design
The api design for this method is loosely based on the TensorFlow One-Hot method.

Merged, thanks.


Reenable hw error recovery

Re-enable the disabled hw error recovery
Subtask of #401

Fixed by #434


Search Engine Optimization

Reason (Why?)
More users should be able to find the website.
Solution (What?)
Imrpove the SEO with a checklist.

SEO has to keep improving. We need to keep track in smaller issues.
#485 #480 #475 #476 #477 #468 #468 #465


new version without Google Play Services

Does this new version(2.x.x) work on devices without google play services?

No it does not unfortunately

yeah, most devices in China do not shipped with google play services.

Right, that's unfortuntate. Our app is initially only targeting Europe though so for me it made more sense to use the Play Services version. The 1.2.x version was still working though. And I could patch it and release bug fixes if PR's come in targeting that branch.

thanks~ @vikeri


[Issue] Dark theme fails on tall aspect ratio displays with wide content

Issue
As pictured below, dark theme fails to render on pages containing wide content,
such as a table in this case:

Such an issue isn't persistent on local serves, but on public deployments as well, as pictured below:

Source
The theme defaults to dark as is already present in the source.
  theme_config:
  appearance: "dark"
  appearance_toggle: true

Comments
Is this something that can be fixed within _config.yml? If yes, could the solution be pushed to the source?

Thanks for pointing this out - I haven't seen it happening, will check this.
Meanwhile, can you also tell me which hosting service are you using to deploy it?

Using Github Pages. And thanks for looking into this. @abhinavs

Can you check all your HTML tags are properly closed - my own website uses the same theme, and I haven't seen this issue.
Also, for github-pages - you may want to change the dependency (in moonwalk.gemspec & _config.yml) from jekyll-soopr-seo-tag to jekyll-seo-tag

Worked, had an error with a different dependency in the post _layouts. Thanks for the help. 👍


When requested user doesn't exist, Unauthorized message blinks on the screen

Log in.
Follow a link to user profile that doesn't exist (https://nanopeppa.freefeed.net/glock).

Expected: 404 message
Actual: Unauthorized message blinks on a blank screen, page is endlessly reloaded.

Same as https://github.com/pepyatka/pepyatka-html/issues/497

Now error is displayed correctly:


Add Slippage to Uniswap interaction

Quick fix for #382
This PR adds a fixed 0.1% slippage to our Uniswap interaction.
Test Plan
Unit tests + doing a trade on xDAI and observing that the min amount was smaller than the received amount by a 0.999 factor:

Does this affect the user's configured slippage from the interface?

It does not. I briefly looked into what it would take to handle the slippage in each solver directly (this way we could e.g. use the user's actual limit price) but it's a bit more involved as we would have to compute the slippage for each hop.
@nlordell is also working on a uniswap fast-path wrapper that allows computing the prices on chain and giving the slippage to the user in those cases.


Install if the plugin is not at the filepath we expect. For stash bac…

…kups in particular

In progress

Looks good! 👍


更新token数量的估算口径，和千帆官网保持一致

参考千帆官网计算器的口径，应该以汉字数 / 1.6 + 单词数为口径来估算token数量，更新对应文档和代码

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Yan Lin seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

@skyan 感谢贡献。麻烦 @Bobholamovic review

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (96d0c71) 64.69% compared to head (8bb5d61) 66.21%.
Report is 2 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #223      +/-   ##
===========================================
+ Coverage    64.69%   66.21%   +1.51%
===========================================
  Files           60       60
  Lines         2983     3019      +36
===========================================
+ Hits          1930     1999      +69
+ Misses        1053     1020      -33

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

提交错误，重新提交PR


Arrow keys (on focused controls) not working

Issue description:  [Since last commit], arrow keys are not working when my controls are focused. This issue only appends when using custom controls container. Come to last stable version fix the issue.
Demo link/slider setting:
var slider = tns({
	container: '.js-carousel-home',
	autoplayButtonOutput: false,
	mode: 'gallery',
	nav: false,
	speed: 1000,
	autoplay: true,
	mouseDrag: true,
	touch: true,
	controlsContainer: '.js-carousel-nav'
});

Tiny-slider version:   Last commit
Browser name && version:  Chrome up to date
OS name && version:

I couldn't reproduce this issue, could you make a demo?


How to work with toggleterm plugin in neovim?

Thanks a lot.

See https://github.com/vim-test/vim-test/issues/619


[Bug] LikeMatch Error

Search before asking

[X] I had searched in the issues and found no similar issues.

Apache SkyWalking Component
OAP server (apache/skywalking)
What happened
I want to count more detailed metrics, such as

But it did report an error

Seeing the error is a lack of methods, so I went to read the code, there is indeed no corresponding method

What you expected to happen
oap server start normally, and the grammatical analysis is correct
How to reproduce
add   this expression  "service_resp_code_txx = from(ServiceInstance.*).filter(responseCode like "2%" ).count(); " into core.oal
Anything else
My version is 8.2
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Does number have a concept similar to between? For example, 10<20<30


Help with classifying code

If I have a list of files to classify how do I avoid miss-classifying BLOBs, markdown, etc. as source code?
Currently when classifying files I am feeding the repository's list of languages (as stated by the GitHub API), but I'm finding that SVGs, markdown, and whatnot are being classified as Shell.
Is there a "null" language that I should pass in to the call method of the Classifier class? Is there a heuristic I need to check first on whether a file is even code at all?

@teaearlgraycold could you provide a bit or information on how you're attempting to use Linguist as it should already be doing what you're asking.

@teaearlgraycold As I understand, you're trying to use the Classifier strategy of Linguist directly. Linguist was not meant to be used that way. The Classifier strategy alone won't provide good results and you should go through the full list of strategies, including the selection of candidate languages based on the file extension.

Apologies for leaving this open. I ended up doing this:
https://github.com/teaearlgraycold/Commit-Language-Visualizer/blob/master/read_commits.rb#L20
# Determine the language of a given file
def get_lang(client, repo, file)
  blob = VisBlob.new(file.filename, '')
  strategies = [
    Linguist::Strategy::Filename,
    Linguist::Strategy::Extension
  ]

  strategies.
    map { |strat| strat.call(blob, nil) }.
    flatten.
    select { |language| not language.color.nil? }.
    first
end


Add Google Data Studio support

Add connector for Data Studio and ingest dashboard metadata from it

Hi, this is Sisir and Yong (@show981111). Can we have this issue assigned to us? Thanks!

Hello, this is Yong. It would be great if Sisir and I can work on this together.

Assigned you guys.
Do let us know if you get blocked.
Happy Coding!!

Thank you!

hi @show981111 @sisir-umich , any updates on this? Let us know if you have any questions. Thanks

Hi @pmbrull , we actually selected a different open source project for our assignment - apologies for not unassigning myself sooner

@pmbrull lets address this for 1.3

Ill be working on the issue

Hello, Is there any news about this topic?


Allow changing username, password and update interval via UI

Is your feature request related to a problem? Please describe.
As the update interval limit changes from time to time, I either have to edit the source code or remove all entities and use the setup again. Both options are not very user friendly, nor quickly done.
Describe the solution you'd like
Usually other integrations have a "config" button next to the entities, but VW We Connect ID has not. It would be ideal if that just displays the dialogue used for the initial setup, where you can change the three values again.
Describe alternatives you've considered
None
Additional context
Example with button

vs

Thanks for all the work so far! Really cool integration, usually works better and faster than the official app ;-)

[...] or remove all entities and use the setup again.

I agree that it would be a worthwhile user-friendliness improvement. 👍 But commenting on this point specifically, deleting and re-adding the integration (as in these screenshots) does not involve removing entities individually, so it’s not as bad as it may sound. As far as I recall, no changes are needed to automations or scripts or other integrations that use the removed and re-added entities (e.g. schedulers), though restarting Home Assistant might be required in case those automations or scripts or other integrations do not recover by themselves.

@pdcastro that is true, however only if you name the new/recreated entities exactly as before (notation could also change between versions), so there is quite some potential to go wrong. By "remove all entities" I meant what is done in the screenshots you linked.


Update protocol coverage in documentation

NASDAQ MoldUDP64 is currently implented under Parity protocols. I believe it should be moved to under NASDAQ protocols. @penberg, what do you think?

@jvirtanen True, the MoldUDP64 implementation can move under NASDAQ.


Fix issue #20 / support for errorf assertions

This PR is a continuation of the work started in the feature/hugo-errorf-assertion branch by @manixate.
List of all the changes:
Major

Introduced an expect shortcode for supporting errorf assertions
Removed support for Hugo before v0.62.0 (because of the usage of warnf)
Updated README.md

Minor

Updated package.json: next version should be 1.1.0
Removed not used dependency: lodash.unescape
Always delete the .output directory before running the tests
Introduced a JEST_HUGO_DEBUG env variable
Added Prettier, a yarn format command, and a "prettier.yaml" workflow
Added a workflow for automatically checking broken links in README.md
Enabled GitHub actions/workflows for all branches
Added Hugo latest to the test matrix

This one should be ready. We can release jest-hugo 1.1.0 after that.


Add rclone and s5cmd to coder docker image

s5cmd is useful for fast s3 file transfer and fast disk usage reports.
rclone is good for copying files between different s3 providers.
Add these to the docker image so users don't have to download these themselves.

https://harrison-ai.atlassian.net/wiki/spaces/HAI/pages/1895694341/Getting+started#Copy-files-between-Flashblade-and-AWS-S3

Nice one for picking this up @guillaume-troadec!
One approach would be to pull specific release into the image and extract it. E.g.:
https://github.com/peak/s5cmd/releases/download/v2.0.0/s5cmd_${S5CMD_VERSION}_Linux-64bit.tar.gz
tar xfz ...

You could probably get clever depending on the architecture version too if you're feeling keen. At the moment we're only supporting 64-bit (x86_64).

This issue has been migrated to Jira: https://harrison-ai.atlassian.net/browse/HPF-171


ngModel not work when load dynamically options

After update from angular2-select to ng-select

in html

                            <ng-select                 name="cbxGroup"                 placeholder="Select one of the characters"                 [options]="groupsList"                 [(ngModel)]="selectedGroupValue"                 (selected)="onGroupChanged($event.value)"                 class="fnt_imp"               ></ng-select>

and in ts
this.groupsList = groupsList; this.selectedGroupValue = this.selectedGroup.id;
I fix it by replace line
this.selectedGroupValue = this.selectedGroup.id;
by
setTimeout( ()=>{         this.selectedGroupValue = this.selectedGroup.id;       }, 100);

Duplicate #130 #169
Is fixed, the setTimeout won't be needed anymore in the upcoming beta.6 release.
The 100ms delay is not needed by the way, the following should be sufficient:
setTimeout(()=>{ this.selectedGroupValue = this.selectedGroup.id; });


Question: What is your release build setup?

Apologies for using the bug tracker for this, but our team wants to put iohook into production and we want to build iohook ourselves instead of using the precompiled binaries.
Could you clue us in to how you go about building for release?

You should be able to produce different builds for different platforms, especially since iohook has prebuilt binaries available. Are you using Electron ? If yes, check https://www.electron.build/multi-platform-build

Closing as stale and irrelevant.


Add more compatible versions ?

thanks for the code PR @likanzhan. This is a fantastic next step and starts towards achieving #92
I expect some tests will fail, and you may need to make changes within the codebase itself to ensure everything works with newest versions. I am happy to drop support for old version. It's best to support new versions.
Thanks again!

Increasing the version number broke compatibility with Julia 1.3. So I removed it from the tests and bumped the Julia requirement. Thanks @likanzhan

Thanks @likanzhan