How to add url parameters and httpbody?

Hello, I am new to Moya, I would like to have a parameterised url and also httpbody as json. I followed the issue #431 using xcode 8 with swift 3. I am geting ambiguous error while compiling. Apart from that Issue #431 discusses about having custom parameterisation, but do not discuss on how do I pass url paramters and httpbody to the end point. Early help appreciated. Below is the code snippet
import Foundation
import Moya
import Alamofire

public enum CCV2Api {

    case addContact(urlParam:[String:Any]?)
}

typealias MyAPICallCustomEncoding = (URLRequestConvertible, [String:AnyObject]?)throws -> URLRequest

let JsonArrayEncodingClosure: (URLRequestConvertible, [String:AnyObject]?) -> (URLRequest, NSError?) = { request, data in
    var req = request.urlRequest

    return (req!, nil)
}

let MyAPICallCustomEncodingClosure: MyAPICallCustomEncoding = { request, data in
    let sort = URLQueryItem(name: "sort", value: "distance")
    var req = request.urlRequest

    guard var components = URLComponents(string: (req?.url!.absoluteString)!)
        else {
            // even though this is an error, Alamofire ignores the returned error.
            return (req!)
    }
    //Create our query string params
    components.queryItems = [sort as URLQueryItem]
    req?.url = components.url
    req?.setValue("application/json; charset=utf-8", forHTTPHeaderField: "Content-Type")

        let json = try JSONSerialization.data(withJSONObject: data!, options: .prettyPrinted)

        req?.setValue("application/json; charset=utf-8", forHTTPHeaderField: "Content-Type")
        req?.httpBody = json
    return req!
}

extension  CCV2Api: TargetType {

    public var baseURL: URL { return URL(string: "https://XYZ.com/v2")! }
    public var path: String {
        switch self {
        case .addContact(_):
            return "contacts"
        }
    }
    public var method: Moya.Method {
        switch self {
        case .addContact(_):
            return .POST
        }
    }
    public var parameters: [String: Any]? {
        switch self {

        case .addContact(let bodyParam):
            return bodyParam
        }
    }

    public var parameterEncoding: Moya.ParameterEncoding {
        switch self {
        case .addContact(let bodyParam):

            return ParameterEncoding.Custom(MyAPICallCustomEncodingClosure)
        }
    }
    public var sampleData: Data {
        return Data()
    }
    public var task: Task {
        return .request
    }

}

I get the below error message on ParameterEncoding.Custom
Ambiguous reference to member 'ParameterEncoding'. Am i doing something wrong?

Not sure, but shouldn't the .Custom be .custom?

@BasThomas Even after changing to .custom still I am facing the same issue

@shivayogic if you are using Swift 3 version of Moya, there is no enum for ParameterEncoding, if you want custom one, you need to subclass ParameterEncoding protocol. More on the topic in our documentation here. Hope it helps! 👊

@sunshinejr Thank you for the information. Looking into documentation I have few questions
Can I add httpBody in endPointCloser? If so, is it the right way of doing it rather creating custom parameterEncoding? How can I add httpBody in the EndpointCloser

@shivayogic usually you don't need to specify custom httpBody, parameters do it for you. If you want to add parameters that you want in every request, then endpointClosure might be the best way. However if your case is a specific one, you might try to replace the httpBody of a request in requestClosure.

@sunshinejr Thank you. The reason for asking is I have to set url parameter as well as httpbody. The way I am looking is endpoint will have 2 arguments, one for url parameter and another is the httpbody. From #431 I can understand that Moya is supporting either httpbody or url parameter. Both cannot be accomplished.  The way I am looking is, url parameter can be set as it is by the Moya and the other parameter to the endpoint can be be added to httpBody in endpointCloser. Hope this is fine. Also I would like to know how to set the httpBody in the endpoint closer?
Thanks a lot

I am stuck,. Any help appreciated.

Resolved my self by using custom endpointCloser. For the POSt method Moya treats it as BODY. In order to send both url parameter and Body parameter to the end point, for parameter return the body to be used and for the url parameters you can add the to url in endpoint closer.

@shivayogic Hey, would you be able to share the code to add url parameters and httpbody please?


"publicness"

Even though there is already an option to restrict proxying to single target, the default error message is quite unique which led me to check shodan for it.
So maybe it would make sense to update that text to Bad request or something like the default 400 response bodies?
Also, tried to see how to add a "HTTP header check" but my haskell is quite Nothing.
Would that be a simple "security" feature, passing --key RandomKeyString on both server and client, client sends it over in an HTTP header during WS handshake and server makes sure it matches or just 400 on it

Hello,
I never thought too much about wstunnel being stealth, your request follow this one https://github.com/erebe/wstunnel/issues/16 (which I forgot about). I am a bit reluctant to add those features as I will need to re-do all the releases for each architectures, which takes me a lot of time that I don't have in quantity those days...
But I note the request, If I have enough of them in the backlog I will do a proper new release.
(I would like also to add the possibility to generate fake tls certificates at every startup)
Regarding the --key RandomKeyString you can already do it with with

Right upgradePathPrefix would be good enough if it was the only path working, but yes, I guess in my case, as I already have nginx in front of it, I could block everything else there (including the default page for root path, prevent being flagged in shodan and alikes). Need to see the best way to do that as I'm using jwilders nginx-proxy docker in my setup :)
I'll try to send you a PR using qemu in travis for all your builds but it's a bit time-consuming to test when it takes so long to get stack ready to compile hehe

done in release v3.1
https://github.com/erebe/wstunnel/releases/tag/v3.1


Update appveyor.yml.

Coverage remained the same at 94.75% when pulling 1d09b3b5c5f16eef4f43fce54f65161a0f1ee05e on XhmikosR:master into 2dc713a2eac387feb62debf5ff4f0c1fa467244a on jshint:master.


Signups API modifications TAKE 2!

What's this PR do?

Allows you to request multiple signups by ID
Adds a plural 'users' param because Diego likes plural things.

How should this be manually tested?
Ive been using this locally
http://dev.dosomething.org:8888/api/v1/signups?competition=true&users=1705752,1700226&campaigns=1485
Any background context you want to provide?
:cake:
What are the relevant tickets?
Fixes #6316

LOL. Fix sample URL in description! ?competitions=true...  :stuck_out_tongue_winking_eye:

@weerd okie dokes all updated

Is there any transforming/fixing that needs to be done to account for when retrieving a single user vs a collection of them and their signups? What's the sample output look like. Can you post in Slack since it might have sensitive user info?

Just fix up the StyleCI error!

:+1:


Cache arrayBaseOffset.

I've been doing some investigations into DataSketches HLL performance in Druid (see also: https://github.com/apache/incubator-druid/pull/8194). One thing I found is that when the Druid query broker — a process responsible for merging partial results originating from each Druid data server — is merging results, it spends nearly 50% (!) of its CPU time calling Unsafe.arrayBaseOffset as part of Memory.wrap of serialized byte[] sketches.
This patch caches those offsets, which speeds up the Broker code path by nearly 2x.

The ordering of the chained if...then...else. The top of the chain is byte[] which is by far the most likely and in the right spot. However, I would place boolean, short, char, object at the bottom and push up int, long, float, double, which are far more likely.

I reordered the list as suggested, and added a comment about why the ordering was done in this way.

I didn't see any unit tests with this PR and I suspect that most of the if...then...else chain is never touched with the current tests, but I haven't confirmed that.

I just added some that test each branch.

If-else chain is a subject for much higher variability, especially if there are mispredicted branches. This effect is hard to measure in benchmarks. The IdentityHashMap, if preallocated with the capacity of 32, might well have no collisions in the whole table and therefore have very predictable perf.

Would you suggest a particular method to determine which approach is best?

Would you suggest a particular method to determine which approach is best?

The method is to develop a set of benchmarks very carefully, but this is inadequately effort-consuming task for the benefit. If you believe that if-else chain is clearer you can leave it. I still think IdentityHashMap would be better, but consider this an optional comment now.

I think it is believable that the overhead of computing hash codes, etc, even if consistent, could outweigh the risks inherent in the if/else chain. Furthermore I would guess that in the majority of cases, callers will be using the same kind of backing array types over and over again, meaning branch prediction should be easy. For these reasons I'd prefer to keep the patch the way it is. But I can change it if required.
I agree with you that developing benchmarks to determine what's really best is probably not worth the time. (It is at least something I do not have time budgeted for)


How to make fluentd-sidecar-gcp recognize/parse logging severity

Hi  @a-robinson ,
I'm using a fluentd-sidecar-gcp based container to send my application logs to GCP.
Everything is working fine.
I wanted to know what should I change in order to have the log's severities/levels properly categorized in the web GUI.
My logs look like this:
[INFO] log 1...
[DEBUG] log2...

Is it a fluentd configuration ?
Any help is appreciated.
regards
Fábio

Hey Fábio, I'm really sorry for letting this slip past me. Severity isn't something that we currently have support for in the default fluentd images. We'd like to do so in the future, but it's something that has to be parsed out of the log message, and supporting parsing of the incredibly diverse array of different log formats is something that's tough to do generally.
You could add it yourself for your own log types if you'd like, though. You'd have to add a format regex to the input configuration of fluentd. For example, if we want to collect minecraft logs (which look like [02:31:46] [Server thread/INFO]: mootcycle left the game), you'd add this to the input stanza:
format /^(?<message>\[(?<time>.*)\]\s\[.*\/(?<severity>\w+)\]:\s.*)$/

You can then rebuild the Docker image that includes the configuration and use it in your cluster as described in this recent thread.


I did everything still it's not able to run the application even though my MongoDB is working completely fine. The website is running but the database isn't reacting(after signing up nothing happens it remains in the same state as a static website) Please help me with this if you want I could send you my whole code my end-sem project submission is really close🙏🙏

this is the error that I'm getting

in server.js change MONGOURI to MONGODB_URI it will be resolved

https://github.com/ashraf-kabir/mern-ecommerce/commit/845d4c07bbf3b931d0e56e4a46ede663e50f678d
fixed


Check for method name earlier in NoUnnecessaryCollectionCallRule to avoid expensive calls to type system.

[x] Added or updated tests
[x] Documented user facing changes

Reorder checks in NoUnnecessaryCollectionCallRule so that cheap checks are first
this reduced the cost of this rule on a decent sized class that doesn't use Collection at all from 6% to 0% of total time

Thank you!


update DURPO to DUOS

👍  Please hold off on merging - I need to coordinate this with the other PRs


Relative path of lazy modules calculated from the AppModule instead of the file where the imports are

In the case of the RouterModule.forRoot
Scully tries to resolve the path of lazy modules from the AppModule, where the RouterModule is imported (forRoot) instead of the file where these statements are declared.
If I keep my root route declarations in a separate file, my relative paths to those modules will be different unless that routes.ts files is right next to the app.modules.ts file.
Suppose I keep these lazy modules in a modules folder right next to the app.modules.ts file, then I'd have lazy import like this:
loadChildren: () =>
			import('./modules/foo/foo.module').then((module) => module.FooModule),

If I were to move this config somewhere else, like a config folder next to the app.modules.ts file, so it would be config/routes.ts. In this case these imports would look like this:
loadChildren: () =>
			import('../modules/foo/foo.module').then((module) => module.FooModule),

In this case I have to import from a folder above. This is still a valid project but scully wrongly tries to resolve this from the app.module.ts files perspective instead of the config/routes.ts files perspective.
⠹ Loading guess-parser Error: The relative path "../modules/foo/foo.module" to "<project>/apps/app/src/app/app.module.ts" cannot be resolved to a module
    at Object.exports.getModulePathFromRoute (<project>/node_modules/guess-parser/dist/guess-parser/index.js:334:15)
    at Object.exports.getRoute (<project>/node_modules/guess-parser/dist/guess-parser/index.js:570:34)
    at <project>/node_modules/guess-parser/dist/guess-parser/index.js:938:34
    at visitTopLevelRoutes (<project>/node_modules/guess-parser/dist/guess-parser/index.js:909:13)
    at visitNodes (<project>/node_modules/typescript/lib/typescript.js:27858:30)
    at Object.forEachChild (<project>/node_modules/typescript/lib/typescript.js:28032:24)
    at NodeObject.forEachChild (<project>/node_modules/typescript/lib/typescript.js:146142:23)
    at visitTopLevelRoutes (<project>/node_modules/guess-parser/dist/guess-parser/index.js:912:15)
    at visitNode (<project>/node_modules/typescript/lib/typescript.js:27849:24)
    at Object.forEachChild (<project>/node_modules/typescript/lib/typescript.js:27943:21)

It looks like it always tries to resolve it from the app.module.ts regardless of the importing module. Say I have a routing.module.ts where I do my routing configuration. If I were to place this file in a folder, fix the imports, I would get the same error.
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

const routes: Routes = [];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule {}

This also means, that I can have the routing.module.ts in a deeper folder, as long as the routes.ts file is at the same level as app.module.ts.
In the case of the RouterModule.forChild
It looks like the case of forChild is very similar, but the "root" of resolution is the lazy module itself and not the bootstrapped module in the case of forRoot.
So, if I have the import statements of these "second level" lazy modules behind a lazy module, those have to be declared in the same level as the Lazy Module itself, just like in the previous case.
Example error:
⠹ Loading guess-parser Error: The relative path "../modules/bar/bar.module" to "<project>apps/app/src/app/modules/foo/foo.module.ts" cannot be resolved to a module
(rest is the same as in the previous)

And here is the folder structure with the more important files of the previous scenario
├── src
│   ├── app
│   │   ├── modules
│   │   │   └── foo
│   │   │       ├── modules
│   │   │       │   └── bar
│   │   │       │       └── bar.module.ts  <- "second level" lazy module, loaded by foo.module
│   │   │       ├── routing
│   │   │       │   ├── foo-route.module.ts <- Doesn't matter that the routes are imported here or not
│   │   │       │   └── foo.routes.ts <- this is can't be here because of this bug
│   │   │       └── foo.module.ts <- "first level" lazy module
│   │   ├── routes.ts
│   │   ├── app.component.ts
│   │   ├── app.module.ts <- root module
│   ├── assets
│   │   └── scully-routes.json
│   ├── index.html
│   ├── main.ts
│   └── polyfills.ts
└── tsconfig.json

Versions:
	"@angular/core": "11.2.12",
	"@scullyio/ng-lib": "^1.1.1",
	"@scullyio/scully": "^1.1.1",

@mgechev I took a quick peek, and I think this is the default behavior of GuessParser.
Is this perhaps something I wired up incorrectly?

@AlexAegis would you open this as a bug in guess-js/guess?

@mgechev It looks like there is already one describing the same problem: https://github.com/guess-js/guess/issues/345
I'll close this, and mention it there for the more detailed explanation


Filesystem usage not displayed in default K8s Dashboards for Bottlerocket OS (EKS)

Agent Environment
7.45.0
Describe what happened:
The disk filesystem usage is not displayed in default K8s dashboards for some reason.

Describe what you expected:
Disk filesystem usage for worker nodes with Bottlerocket OS to be visible too.
Steps to reproduce the issue:

Deploy DataDog Agent in EKS cluster as a Helm chart (DaemonSet).
Login into DataDog UI and observe filesystem usage.

 Is there an update on what to do here? Is the metric collected at all or do we have to enable collection somehow?

has anyone solved this?


Uncaught TypeError: Promise is not a function

After updating plugin to version 4.1.0, the plugin stopped working. Any javascript function call caused the error as following:
"Uncaught TypeError: Promise is not a function", source: file:///android_asset/www/plugins/cordova-plugin-geofence/www/geofence.js (119)

Changing the line 119 in geofence.js from new Promise to new window.Promise fixed the problem.
Tested with Nexus 5.

I had the same issue, at least with Android. I ended up forking the plugin and removing the Promise dependency. It really makes no sense to have this other than syntactic sugar, but we could have a way more stable plugin without having this dependency, and working very well. The premise is to replace the calls to execPromise with just pure exec and then just use the calls as function parameters, and not  with the promise's .then().
So instead of
window.geofence.getWatched().then(function (geofencesJson) {
  var geofences = JSON.parse(geofencesJson);
});

we would use
window.geofence.getWatched(function(geofencesJson){
    var geofences = JSON.parse(geofencesJson);
});


Set DisplayName for OAuth + Twitter

@Tratcher

@HaoK,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by .NET Foundation. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

Can you add this back to the Social sample?

Interesting, I was about to open a new ticket to reintroduce DisplayName.
The problem with this PR is that there are now 2 disconnected properties: one in the scheme handler configuration, and one in the scheme options. FWIW, I'm not a huge fan of using the scheme as the display name by default. Why not hardcoding the provider name, just like in 1.0.0?

Yeah we can iterate on how this lands for preview 2, but I need to get working templates this week, so I'm doing the bare minimum to put out the fires :)
We probably want overloads for AddXyz that let you specify the display name I guess longer term.

Oh yeah and the display name in the handler configuration is going to get nuked...

4f206558505b32c5ec0a686764ec30a8f912860e


EasyAnimation breaks popover presentation animation

Adding EasyAnimation to a project breaks the presentation animation for a UIPopoverController, whether being used explicitly with UIViewController and a UIPopoverController, or implicitly by setting the modalPresentationStyle for a UIViewController to UIModalPresentationStylePopover and setting a sourceView and sourceRect. The popover still animates into place but various elements of the popover are out of place until they finish animating, and the dimmed out background view jumps up into place.
I have been able to consistently replicate this with EasyAnimation 0.7 + 1.0 with the following steps:

Create a new project and add EasyAnimation via CocoaPods. Open the new workspace.
Add a button to the storyboard for the default ViewController class.
Add a IBOutlet for a UIButton:

    @IBOutlet private weak var button: UIButton!

Add the following IBAction:

    @IBAction func buttonPressed(sender: UIButton) {
        let alertController = UIAlertController(title: "Test", message: "test", preferredStyle: UIAlertControllerStyle.ActionSheet)
        alertController.modalPresentationStyle = UIModalPresentationStyle.Popover
        alertController.popoverPresentationController?.sourceView = self.view
        alertController.popoverPresentationController?.sourceRect = self.button.frame
        self.presentViewController(alertController, animated: true, completion: nil)
    }

Connect the UIButton in the storyboard to the outlet and the action.
Run and tap on the button to observe the broken animation.

hey that's an interesting find - I'll try to reproduce it here and fix it, thanks! Is there any kind of error message or a warning in the output console?

No console output that could assist unfortunately. I tested it on the 8.3 Simulator with EasyAnimation 0.7 and on the 9.0 Simulator and a 9.0 Device with EasyAnimation 1.0 and I'm able to reproduce it on every platform.

Any update on this issue? Were you able to replicate it?

I did exactly what you described but didn't get a crash. Could you please provide a test project?

Interesting that after my issue being dismissed- the only issue that remains open is exactly a case of what I was talking about:
https://github.com/icanzilb/EasyAnimation/issues/23

We've had the same problem with popovers after adding Easy Animation, and have removed it for the time being.
I'm attaching a .mov of what we saw with popovers. It seems like popovers initially appear as a slightly-too-large rounded rect, while its mask appears offset to the side a little bit. As the popover rect resizes to its correct size, the mask animates into position.
popover-weirdness-edit.mov.zip

I created a sample: https://github.com/JanGorman/EasyAnimationSample You'll see the popover acting all weird when you run the sample on an iPad (simulator).
For the time being we've also removed the library because of this. I traced it down to the EasyAnimation before seeing this issue by adding a symbolic breakpoint to layoutSubviews where I noticed calls to EA_animateWithDuration. As @danielgindi mentioned, this is the swizzled out method that replaces animateWithDuration.

Thanks @JanGorman - looks like I'll have to look into this ...

Still not fixed?

You're welcome to send a PR

Any solution to this?

I am getting an error in animation when I migrate my project to Swift 4.2 and iOS 12. However my old code is running fine in iOS 12. I am using SwiftAnimation framework of version 2.0.2 My table view cells container view not adjusting its frame with respect to the parent view. Can anybody please help me with this.
Thanks in advance.

Still happening, iOS 13


Support client context params for s3control

Context: #2740 introduced support for context params into Botocore. #2785 introduced a new way of resolving endpoints that utilizes context parameters.
There are three types of context params: Static, dynamic, and client context params. Botocore currently intends to support client context params only for the S3 services. The code in #2785 limits the use of client context params to s3 only. This PR expands this to additionally include s3control.
This PR also introduces functional test coverage that uses minimal fake models and rulesets to assert that all three types of context param are passed into the endpoint provider when expected, and not otherwise.

Codecov Report
Base: 93.57% // Head: 93.54% // Decreases project coverage by -0.02% :warning:

Coverage data is based on head (d594326) compared to base (72df8fa).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2797      +/-   ##
===========================================
- Coverage    93.57%   93.54%   -0.03%
===========================================
  Files           63       63
  Lines        13300    13302       +2
===========================================
- Hits         12445    12444       -1
- Misses         855      858       +3

Impacted Files
Coverage Δ

botocore/args.py
100.00% <100.00%> (ø)

botocore/compat.py
91.33% <0.00%> (-1.34%)
:arrow_down:

botocore/utils.py
78.99% <0.00%> (-0.07%)
:arrow_down:

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.


[node][ruby] Broken link for toISOString in timestamp.proto

See this broken generated markdown link. The Mozilla link ends with a ](breaks link) where in the source proto it ended with )(correct)

Another link problem in timestamp.proto is the joda.org link:
https://github.com/googleapis/nodejs-automl/blob/17d4c65ea4908f643e883424b935a9626332105a/src/v1beta1/doc/google/protobuf/doc_timestamp.js#L94-L96

Some problem with Markdown parsing / printing / whatever. It's not only for Node, Ruby is also affected: https://github.com/googleapis/gapic-generator/search?q=toISOString&unscoped_q=toISOString

I suggest we don't investigate and fix it here since we'll be moving to microgenerators for both affected languages. Feel free to reopen if you think this is wrong.


FreePromptEditing Experiments

Hi,
Thanks for your brilliant work on "Towards Understanding Cross and Self-Attention in Stable Diffusion for Text-Guided Image Editing".
I encountered some problems while trying to reproduce the image editing results.
Specifically, when utilizing the vanilla implementation of FPE in edit_real.ipynb for real image editing, I noticed that the edited images did not meet expectations. For instance, I used the target prompt "a photo of a silver robot" to edit the image. However, the edited image are not consistent with the images provided in the paper. As shown below, the person's head did not transform into a robot as expected.
My base model is Stable Diffusion 1.5, with torch == 1.11.0 and diffusers == 0.16.1.
Do you recommend adjusting any hyperparameters (such as self_replace_steps) to reproduce the expected results? Furthermore, are there any plans to provide evaluation code for computing CS and CDS?
I would greatly appreciate any assistance or guidance you can offer in addressing these issues.
Thank you for your support in advance.
Here's my edited image:

Think for your notification of our work, in this case compare to p2p, both p2p and FPE are using null text inversion to reconstruct the source image, please try to using the notebook of null_text_w_FPE.ipynb for editing.

Thank you for your interest in our work. In this comparison example, both P2P and our method utilize null text inversion for image editing, serving as a comparative distinction between the cross-attention map and self-attention map replacement. Please consider trying another editing notebook: null_text_w_FPE.ipynb. For the computation of CS and CDS, we have used the validation code from the huggingface-diffusers release, with the link being: https://huggingface.co/docs/diffusers/conceptual/evaluation

Thank you for your continued support!
I utilized null_text_w_FPE.ipynb for image editing, where I set the prompt_src = "". After experimenting with various self_replace_steps, I noticed that the edited images still exhibit discrepancies compared to the  the paper.
Furthermore, I'm curious about the experimental setup for real image editing. Did you employ null text inversion for all experiments of real image editing? If so, could you please share how you set the "prompt_src" in such cases?
Thank you for your assistance!
self_replace_steps = .8

self_replace_steps = .6

self_replace_steps = .4

In the demonstration images within the paper, the comparison pictures with P2P were all conducted under null text inversion. For "prompt_src," we utilized the source prompts directly from the TI2I-benchmark, which is associated with the PNP paper. . You can download this part of the dataset from the TI2I-benchmark homepage to obtain the corresponding source prompts for the images.  We hope this information will be helpful to you.

I employed the prompt_src and null text inversion methods for image editing. I utilized the validation code in diffusers to compute the CDS metric.
However, in my experiment, I observed that the CDS for FPE on Wild-ti2i-real was 0.1008, while on ImageNet-R-real, it was 0.1718. I'm unsure about where the discrepancy may occur.
Would you mind sharing the image editing results of FPE on these benchmarks?

You could try different ”self_replace_steps“, which would lead to difference results. We conducted experiments on cloud devices, and it will take me some time to locate the images used previously for calculating evaluation metrics. I will attend to this when I have spare time.

Hi @Bingyan-Liu I am a beginner and would love to follow your code examples from the paper "Towards Understanding Cross and Self-Attention in Stable Diffusion for Text-Guided Image Editing". Is it possible to get is somehow? Or maybe it is already available?


style fixes for fsa/internal

Coverage decreased (-0.04%) to 88.545% when pulling ce3063747ca4371ae6d3e800abcc378033387722 on hendrikmuhs:style-cleanups-internal into 07680c7138e55ee2e7211bd0fdc2b122ef1a3397 on KeyviDev:master.

Coverage decreased (-0.04%) to 88.539% when pulling f9a4b8d63a24910bc4ca54fd95bbd5429a515fa1 on hendrikmuhs:style-cleanups-internal into 07680c7138e55ee2e7211bd0fdc2b122ef1a3397 on KeyviDev:master.

Coverage increased (+0.02%) to 88.604% when pulling b1dfc5fcd1139dd99c2cf150a9ef66c8f8e00d80 on hendrikmuhs:style-cleanups-internal into 07680c7138e55ee2e7211bd0fdc2b122ef1a3397 on KeyviDev:master.

Coverage increased (+0.02%) to 88.604% when pulling 7f97b7724bf45d1c65e47ebe78763aaefb6046ed on hendrikmuhs:style-cleanups-internal into 07680c7138e55ee2e7211bd0fdc2b122ef1a3397 on KeyviDev:master.

Coverage increased (+0.02%) to 88.604% when pulling 7f97b7724bf45d1c65e47ebe78763aaefb6046ed on hendrikmuhs:style-cleanups-internal into 07680c7138e55ee2e7211bd0fdc2b122ef1a3397 on KeyviDev:master.


Adding the ability for the plugin dsl to resolve against Ivy repo

This change will allow me to have a service that provides the version of
a plugin that should be used vs just looking into a repository like is
avaliable through the settings.gradle now.
I have a requirement that I should be able to kill versions of plugins
at a service layer that interacts with metadata that's avaliable. I will
also now be able to have a registery of plugins to some other metadata
store. This change lets me generate JSON for Gradle that will add
repositories that aren't just Maven (I need Ivy).

Any update on this?


Fix a link

Hi @jpsnover, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no contribution license agreement is required at this point. Real humans will now evaluate your PR.

TTYL, AZPRBOT;

@jpsnover : Thanks for your contribution to the Azure documentation! The author, @ErikjeMS, has been notified to review your proposed change.

@jpsnover Thanks for fixing this link!
#sign-off


Bug in File System API if there is only one sub-folder

Does this issue occur when all extensions are disabled?: No, It is related to the File System API used in my extension which seems to have a bug
Version: 1.70.2 (system setup)
Commit: e4503b30fc78200f846c62cf8091b76ff5547662
Date: 2022-08-16T05:35:13.448Z
Electron: 18.3.5
Chromium: 100.0.4896.160
Node.js: 16.13.2
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.19044
Steps to Reproduce:

I have an instance of the File System API that reads files and folders from the source
when there is a folder that has only one sub-folder and nothing else underneath it, the API automatically starts querying also the sub-folder
when querying for the sub-folder, the used URI is passed wrongly to readDirectory

so if the folder structure is a -> b
it first runs readDirectory(/a) which then returns directory /a/b as a child of a (which is fine)
however, then it decides to automatically also query for the content of directory /a/b but instead of using URI /a/b/ it is using URI /a/a/b
it seems like it is concatenating the parent and the subfolder but instead of using the name of the subfolder, it actually uses the full path of the subfolder
having a similar setup but with /a/b/c where c is the only subfolder under /a/b, the URI that is queried to get the contents of /a/b/c is /a/b/a/b/c

Since this does not happen with the file and vscode-remote file system providers we own, I either suspect a faulty extension implementation or something in our extension code.
@gbrueckl is this with an extension? what URLs are being read?

yes, it happens with our extension (https://github.com/paiqo/Databricks-VSCode) but I debugged it step by step to the very end and could not find any flaw with our implementation. We never set/create the faulty paths on our side but it seems like they are generated internally by the file system API for that particular case when there is only a single sub-folder and nothing else in the directory
all other scenarios work fine which also makes me doubt the issue is actually with our implementation
the source FS we are reading is the Databricks File System (DBFS) which is accessible via a REST API (https://docs.databricks.com/dev-tools/api/latest/dbfs.html)
so yes, as I wrote initially, I assume the issue with the implementation of the File System API of VSCode, which I thought is also tracked here?!

Yeah I think the problem arises from here:
https://github.com/microsoft/vscode/blob/6ec6d9d94dc37e138009d59a33a57d13d142b853/src/vs/platform/files/common/fileService.ts#L262
I think you need to check our API docs again, which state this:
https://github.com/microsoft/vscode/blob/6ec6d9d94dc37e138009d59a33a57d13d142b853/src/vscode-dts/vscode.d.ts#L7979-L7980

We have a great developer community over on slack where extension authors help each other. This is a great place for you to ask questions and find support.
Happy Coding!

@bpasero as I tried to say in my previous post, I am not setting that faulty path within my extension or as part of my implementation of the File System API. As I said everything works just fine unless there is exactly 1 sub-folder and nothing else in the parent-folder
there must be some internal "optimization"/short-path going on that, in this very specific case, also automatically queries for the content of that single sub-folder and within there, the path is set wrongly (parent-path + sub-folder-path instead of parent-path +sub-folder-name)
all my URIs follow the specifications in the API docs

As I said, we construct a path by joining the parent folder with the name of the entry:
https://github.com/microsoft/vscode/blob/6ec6d9d94dc37e138009d59a33a57d13d142b853/src/vs/platform/files/common/fileService.ts#L262
Your extension is responsible for returning the name when implementing the file system provider.
As for why we do this: the file explorer will automatically expand folders that have only a single folder inside as a way to get to the actual contents. In Java for example, each package segment is a folder and that makes it harder to get to the actual source files if you had to expand the folders one by one.

I am providing the path as I do for all other folders where it works just fine and I can drill down multiple levels successfully:

But for the first folder in this example (/a) which has only a sub-folder b it does not work and I get the error I mentioned above.
If I would for example further expand the folder 20_ml_pipeline, the request sent is GET 2.0/workspace/list Params:{"params":{"path":"/DataPlatform/10_jobs/20_ml_pipeline"}} so it builds the path correctly
So if it would be an issue with my code where - as you say - I concatenate the paths/names wrongly, also the other directories would not work, no?!
I do have the very same implementation also as a Tree View where it works as expected and shows the actual content:

as you can see there would even be another file under /a/b

Can you add a breakpoint here and see how we end up with the faulty resource:

https://github.com/microsoft/vscode/blob/b5a1bb34e9c6b77c2a8ccf54bcdbb4bac4d420cb/src/vs/platform/files/common/fileService.ts#L257

so, when that part is executed as part of expanding /a this happens:
entries is an array holding that one sub-folder /a/b

when this is then mapped using the function in line 263 entries.map()
the name of the entry (/a/b) is joined with the resource which is /a and this produces the wrong path
it should only be using the name and not join it with the resource
The reason this does not happen for "regular" folders is that the recures() call is returning false hence that part is not executed.
However, it seems that he faulty part of the code is also called e.g. for the root of the File System but there it does not make a difference as for resource = '/' and name = '/a' the duplicate // in the beginning is removed by joinPath

I just also had another look at the example for the File System API (https://github.com/microsoft/vscode-extension-samples/blob/main/fsprovider-sample/README.md) and it seems to work there correctly.
the difference is that they only provide the name of the child resources and not the full path.
So I guess it is really a "wrong" implementation on my side - however, it is quite confusing that it is still working as expected (except for that one specific use-case)


[Bug] Ultra theme: server header

Addon
You're Ultra theme
What happened?
If you're server is set to public the public tag will display over the server name

Using the theme on goosemod with the CSS as provided for BD users
What Discord version do you have this issue on?
Stable
Logs
No response
Code of Conduct

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

also pressing the 50+ messages icon in this picture causes the

client to visibly bug out until you press esc

blocked out the server list / my username


Added information about dead pixels fix

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

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

Thank you for opening this pull request.
This is a standard message notifying you that we’ve reviewed your pull request and have decided not to merge it. We would welcome future pull requests from you.
Reason: We do not allow plagiarism of others' content.  If you want to quote a portion of someone else's work, you should use proper citation methods as discussed in our styling guide.
Thank you and happy coding.


[BUG] Not supported WhatsApp internal message

WhatsApp version: <IP_ADDRESS> - iOS
Platform: MacOS
Branch and version: main

Describe the bug
I did an Iphone Backup (unencrypted) and was able to extract the Chats.
The Photos/Videos show up inline, but some messages does not show with error message: Not supported WhatsApp internal message
See screenshot 1 and see corresponding html code screenshot 2

To Reproduce
Steps to reproduce the behavior:
Export the chats as in the README
Thanks for providing such a valuable tool.

Hi. Can you show me the corresponding message in WhatsApp?

Should be this. But the time is off (10:20 in html vs 11:43 in chat) it is a Video I can not start...

Also, btw, is there a way to implement lazy loading? I have chats back to 2014, they are 100-200MB large HTMLs which are nearly unable to load...

Also, btw, is there a way to implement lazy loading? I have chats back to 2014, they are 100-200MB large HTMLs which are nearly unable to load...

There is no lazy loading but you can use --size 0 to split the chat into multiple files.

Thank you, is there documentation of --size? --size 0 is kind of counterintuitive. What does it mean?

Thank you, is there documentation of --size? --size 0 is kind of counterintuitive. What does it mean?

> wtsexporter --help
...
  --size [SIZE], --output-size [SIZE], --split [SIZE]
                        Maximum (rough) size of a single output file in bytes, 0 for auto

Btw, docs are either located in the Wiki or in the help menu.

I'm not a web developer but I did some quick research and maybe all we need to get the lazy loading is add a tag to the images as documented here: https://www.w3schools.com/tags/att_img_loading.asp
Only Safari doesn't handle this tag.

Also while commenting on things that I don't really know, maybe you could consider using the base tag in your HTML? Maybe you have a reason not to use it or maybe it's just me but my links are pretty long like this:

with the base tag like this:
<base href="AppDomainGroup-group.net.whatsapp.WhatsApp.shared/">
you should be able to shorten the URLs to this:

Should be this. But the time is off (10:20 in html vs 11:43 in chat) it is a Video I can not start...

Since you confirmed the video cannot be played, the file in your iPhone probably got corrupted. In this case, I believe it is an isolated case and not the fault of the exporter. Could you find more instances on real media but unspported?

If further evidence indicates that the issue is caused by the exporter, please feel free to reopen this issue.


Google Sheets Styled demo not working

Solving this issue will help us figure out whether our integration with Google Sheets will still work.
The styled demo mentioned in the README is not working due to: Uncaught ReferenceError: tsml_react_config is not defined
Try creating an instance of tsml_react_config before meetings src with

I had additional trouble with Google Drive after this debug on my test site, and i will continue to look at that. I will share further info as I learn more if this doesn't do the trick.
Thank you!

Should be working again now! Thanks for letting us know that was out of date. https://react.meetingguide.org/demo.html


[BugFix] Fix support alter materialized view properties

What type of PR is this：

[x] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #12969
Problem Summary(Required) ：

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

[FE PR Coverage Check]
:disappointed: fail : 0 / 50 (00.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/alter/Alter.java
0
35
00.00%
[281, 282, 283, 285, 286, 287, 289, 290, 291, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 316, 317, 318, 319, 320, 322, 323, 324, 325]

:large_blue_circle:
com/starrocks/server/LocalMetastore.java
0
1
00.00%
[3325]

:large_blue_circle:
com/starrocks/catalog/TableProperty.java
0
4
00.00%
[160, 161, 162, 163]

:large_blue_circle:
com/starrocks/common/util/PropertyAnalyzer.java
0
10
00.00%
[225, 226, 228, 231, 235, 236, 240, 252, 261, 262]

run starrocks_admit_test


[SPARK-14449][SQL] SparkContext should use SparkListenerInterface

Currently all SparkFirehoseListener implementations are broken since we expect listeners to extend SparkListener, while the fire hose only extends SparkListenerInterface.  This changes the addListener function and the config based injection to use the interface instead.
The existing tests in SparkListenerSuite are improved such that they would have caught this.
Follow-up to #12142

Test build #55175 has started for PR 12227 at commit 5ea3712.

Test build #55175 has finished for PR 12227 at commit 5ea3712.

This patch fails MiMa tests.
This patch merges cleanly.
This patch adds no public classes.

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/SparkPullRequestBuilder/55175/
Test FAILed.

Test build #55235 has started for PR 12227 at commit b2be55b.

Test build #55235 has finished for PR 12227 at commit b2be55b.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

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/SparkPullRequestBuilder/55235/
Test PASSed.

/cc @rxin

Merging in master.


Mat Accordian Lazy Render Expansion Panel

The newly added lazy render functionality of the expansion panel doesn't seem to render its content template.  In the provided example, I took the code from the docs and put it into a demo and the test div doesn't seem to show up.
https://stackblitz.com/edit/angular-jsmfjr-z1uw86?file=app/expansion-overview-example.html

I think even in 5.1 its not working. When can we expect this to be fixed ?


hostmasks on topic set messages not built correctly

On master, the 'Topic set by' message shows the hostname of the client which set it

While this is expected, with slate-irc the link on the hostmask would open a PM with the client. Now, on irc-framework, Lounge tries to PM a client that's name is the hostname.

Looks like the @ sign is stripped out, so that might be part of the problem.

The issue lies at irc-framework, and xPaw has made an issue kiwiirc/irc-framework#37
(just commenting so that no-one else starts digging around and wasting time trying to figure it out like I did)

The according issue on irc-framework was closed. @MaxLeiter @PolarizedIons, can you confirm this is now fixed in The Lounge?

It's now fixed.


drivers: flash: w25q: Make spi_flash_wb_write/read support multiple pages

Until now spi_flash_wb_write/read functions were only supporting buffers that fit into a W25Q page (even if they were not checking the offset was page aligned).
This change allows these functions to read/write across multiple W25Q page.
This change is required as the caller of these functions are not aware of flash page size.
Signed-off-by: Olivier Martin<EMAIL_ADDRESS>Signed-off-by: Johannes Hutter<EMAIL_ADDRESS>Signed-off-by: Michael Wendland<EMAIL_ADDRESS>

Codecov Report

Merging #11113 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #11113   +/-   ##
=======================================
  Coverage    53.1%    53.1%
=======================================
  Files         218      218
  Lines       26853    26853
  Branches     5950     5950
=======================================
  Hits        14259    14259
  Misses      10162    10162
  Partials     2432     2432

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 fdfa975...3eaef71. Read the comment docs.

@nashif Without this PR W25Q cannot be used with NVS and FCB as data are not correctly written. So it is quite high priority fix.

PR rebased to solve merging conflict.


NO_DEVICE_DETECTED

using  mcdr ca

I don't think the mcdr working with the library yet.

it works    using this code
socket.send('{Document:'getSerialize()?>',TokenCertificate:'MCDR CA',Password:'123456'}');

it works    using this code
socket.send('{Document:'getSerialize()?>',TokenCertificate:'MCDR CA',Password:'123456'}');

Oh my bad, i have mistake the publisher with the incomplete drivees in the code


Add Oregon Tax Court scraper ortc

It would use the same scraper as the recently merged or scraper
We have data for ortc up to December 14th, 2011, so we would ingest 1969 opinions from then to today; and we will get the current opinions on a regular basis
Once the PR is merged, we need to tick the has_opinion_scraper flag
https://www.courtlistener.com/admin/search/court/ortc/change/
Command to backscrape
manage.py cl_back_scrape_opinions --courts juriscraper.opinions.united_states.state.ortc --backscrape-start 2011/12/14  --verbosity 3

The backscraper got run, we now have 1533 opinions, and these 4 documents which failed to download
https://ojd.contentdm.oclc.org/digital/api/collection/p17027coll6/id/3584/download
https://ojd.contentdm.oclc.org/digital/api/collection/p17027coll6/id/7256/download
https://ojd.contentdm.oclc.org/digital/api/collection/p17027coll6/id/7442/download
https://ojd.contentdm.oclc.org/digital/api/collection/p17027coll6/id/4183/download
Sentry Issue: COURTLISTENER-8BP
'https://ojd.contentdm.oclc.org/digital/api/collection/p17027coll6/id/3584/download' 'text/html' not in ['application/pdf']

Just ran the commands on the previous comments; no gaps left!


Arch linux Installation Issue

Hi!  I am trying to install the chia-plotter in Arch Linux. I followed the instructions given for arch but during the compilation, I get the following:
/usr/bin/ar: /usr/lib/libgmp.so: file format not recognized
make[2]: *** [lib/bls-signatures/src/CMakeFiles/combined_custom.dir/build.make:73: lib/bls-signatures/src/CMakeFiles/combined_custom] Error 1
make[1]: *** [CMakeFiles/Makefile2:477: lib/bls-signatures/src/CMakeFiles/combined_custom.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
I would appreciate any help, thank you!

archlinux guid installation don't work

Try installing these aur packages and then running the build script (it works for me):
https://aur.archlinux.org/packages/libsodium-static
https://aur.archlinux.org/packages/libgmp-static
Arch provides only dynamic libraries, we need to install static ones explicitly ourselves. Info in the README would probably be helpful.

i installed libsodium-static, libgmp-static and don't work
/usr/bin/ar: /usr/lib/libgmp.so: file format not recognized
make[2]: *** [lib/bls-signatures/src/CMakeFiles/combined_custom.dir/build.make:73: lib/bls-signatures/src/CMakeFiles/combined_custom] Error 1
make[1]: *** [CMakeFiles/Makefile2:477: lib/bls-signatures/src/CMakeFiles/combined_custom.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 99%] Linking CXX executable test_phase_3
[ 99%] Built target test_phase_3
[ 99%] Linking CXX executable test_phase_1
[ 99%] Built target test_phase_1
make: *** [Makefile:136: all] Error 2

Maybe you already have old configuration in the build directory?
Make sure to try a completely clean build, so remove the chia-plotter directory and repeat installation from the git clone step.
If this does not help, what is the output of pacman -Q libsodium-static libgmp-static?

when installing libgmp-static, it writes to me such an error
configure: error: could not find a working compiler, see config.log for details

Did you install whole base-devel group before using AUR?
sudo pacman -S --needed base-devel
https://wiki.archlinux.org/title/Arch_User_Repository#Prerequisites

yes

Seems you have an issue with makepkg system, assuming the mentioned config.log would be somewhere in the build directory you should be able to find it with find | fgrep config.log

should be fixed now

related #493

i fixed


Remove reasoner output from terminal

The Pellet reasoner called with owlready2 produces and output that is annoying when debugging (see below)
I could not figure out how to remove it from the output. Owlready2 documents do not explain how to handle that
I tried this to temporarily remove it form the stdout, but it did not work.
Any ideas are welcome @gavanderhoorn @ipa-hsd @ipa-nhg @marioney
https://github.com/rosin-project/mros1_reasoner/blob/8de2e484650154245ed1eae0efebaa9ee711fe1b/mros1_reasoner/scripts/mros1_reasoner.py#L230
OUTPUT
* Owlready2 * Running Pellet...
    java -Xmx2000M -cp /home/chcorbato/rospy3_melodic/venv3.6_ros/lib/python3.6/site-packages/owlready2/pellet/jena-arq-2.10.0.jar:/home/chcorbato/rospy3_melodic/venv3.6_ros/lib/python3.6/site-packages/owlready2/pellet/antlr-3.2.jar:/home/chcorbato/rospy3_melodic/venv3.6_ros/lib/python3.6/site-packages/owlready2/pellet/jena-iri-0.9.5.jar:/home/chcorbato/rospy3_melodic/venv3.6_ros/lib/python3.6/site-packages/owlready2/pellet/pellet-2.3.1.jar:/home/chcorbato/rospy3_melodic/venv3.6_ros/lib/python3.6/site-packages/owlready2/pellet/httpclient-4.2.3.jar:/home/chcorbato/rospy3_melodic/venv3.6_ros/lib/python3.6/site-packages/owlready2/pellet/antlr-runtime-3.2.jar:/home/chcorbato/rospy3_melodic/venv3.6_ros/lib/python3.6/site-packages/owlready2/pellet/owlapi-distribution-3.4.3-bin.jar:/home/chcorbato/rospy3_melodic/venv3.6_ros/lib/python3.6/site-packages/owlready2/pellet/jgrapht-jdk1.5.jar:/home/chcorbato/rospy3_melodic/venv3.6_ros/lib/python3.6/site-packages/owlready2/pellet/xercesImpl-2.10.0.jar:/home/chcorbato/rospy3_melodic/venv3.6_ros/lib/python3.6/site-packages/owlready2/pellet/slf4j-log4j12-1.6.4.jar:/home/chcorbato/rospy3_melodic/venv3.6_ros/lib/python3.6/site-packages/owlready2/pellet/xml-apis-1.4.01.jar:/home/chcorbato/rospy3_melodic/venv3.6_ros/lib/python3.6/site-packages/owlready2/pellet/jcl-over-slf4j-1.6.4.jar:/home/chcorbato/rospy3_melodic/venv3.6_ros/lib/python3.6/site-packages/owlready2/pellet/slf4j-api-1.6.4.jar:/home/chcorbato/rospy3_melodic/venv3.6_ros/lib/python3.6/site-packages/owlready2/pellet/jena-tdb-0.10.0.jar:/home/chcorbato/rospy3_melodic/venv3.6_ros/lib/python3.6/site-packages/owlready2/pellet/jena-core-2.10.0.jar:/home/chcorbato/rospy3_melodic/venv3.6_ros/lib/python3.6/site-packages/owlready2/pellet/commons-codec-1.6.jar:/home/chcorbato/rospy3_melodic/venv3.6_ros/lib/python3.6/site-packages/owlready2/pellet/aterm-java-1.6.jar:/home/chcorbato/rospy3_melodic/venv3.6_ros/lib/python3.6/site-packages/owlready2/pellet/httpcore-4.2.2.jar:/home/chcorbato/rospy3_melodic/venv3.6_ros/lib/python3.6/site-packages/owlready2/pellet/log4j-1.2.16.jar pellet.Pellet realize --loader Jena --input-format N-Triples --infer-prop-values --infer-data-prop-values --ignore-imports /tmp/tmp6__87twd
* Owlready2 * Pellet took 1.3000226020812988 seconds
* Owlready * (NB: only changes on entities loaded in Python are shown, other changes are done but not listed)

How can I control logging messages printed by Pellet?

Pellet uses JDK logging. The verbosity of this logging can be controlled with a configuration file. The distribution includes a sample configuration,examples/logging.properties. The location of the configuration file can be specified by setting the system propertyjava.util.logging.config.file. The location should be specified as a (relative or absolute) path. For example, the following command would use a local file located in the current directory:
java -Djava.util.logging.config.file=my-logging.properties -jar lib\pellet-cli.jar

Note that, in the configuration file, in addition to changing the log level for specific loggers, you must change the handler’s level (you can think of it as two levels of severity checks — one at log record generation, one at consumption). You can find more information about JDK logging here.

It was very promising, but I am not familiar at all with java logging and I could not follow the pointers:

sample configuration,examples/logging.properties -> I could not find it

You can find more information about JDK logging [here(http://java.sun.com/j2se/1.4.2/docs/guide/util/logging/overview.html)

-> link not working anymore


Footer: Legal text link color issue

Footer: Legal text link color issue
The 'Cookie preferences' link in the legal section of the footer has the wrong link color

Currently the 'Cookie preferences' link in a dark blue but the color should be $text-02 w/ hover state of: color: $text-01
text decoration: underline

Is this a feature request (new component, new icon), a bug, or a general
issue?
Bug

Is this issue related to a specific component?
Footer

What browser are you working in?
Google Chrome

Steps to reproduce the issue

View footer in storybook https://ibmdotcom-react.mybluemix.net/?path=/story/components-footer--default
View 'Cookie preferences' link in the legal section

closing as this is a duplicate of issue (#2305)


modifying the configuration file and validation scripts accordingly

Deleting the invalid variables and modifying the required variables along with validations.

Deleted the variables which are not required for cqube 4.0
Modified the variables and validations to support cqube 4.0 ( national and state )

Review with Devaraja, Unit testing yet to be done


The SavePairButton is not updated everytime it's clicked on.

Watch the video.
https://github.com/granpepito/fontry/assets/43655487/eecec97b-27ac-46b5-8be0-6eeb70bbd49f

Fixed 7247e1eba8ae6ea416963588735b8fc0819de637.
Closed.


TypeError: Cannot read property 'length' of undefined

Switched over to pnpm, imported the repo via pnpm add panoply/shopify-sync#master but ran into this problem. Double checked my .shopifysync.json settings and everything is good there.
theme-shopify git:(master) ✗ pnpm run sync download

> @ sync /Users/.../Website/theme-shopify
> sync "download"

[17:32:42] TypeError: Cannot read property 'length' of undefined
    at /Users/.../Website/theme-shopify/node_modules/.pnpm/github.com/panoply/shopify-sync/8cbe69b34f64bc272e6eece3689274320343f11f/node_modules/shopify-sync/index.js:13:3952
    at async z (/Users/.../Website/theme-shopify/node_modules/.pnpm/github.com/panoply/shopify-sync/8cbe69b34f64bc272e6eece3689274320343f11f/node_modules/shopify-sync/index.js:13:3647)

Sorry dude.

I haven’t merged final updates to master or bumped version to NPM registry. Still a fair bit go. Your issue was auto-closed cause of hash ref in commit. Sit tight, I will most likely make this an official 1.0.0 release, ton of stuff shipping.

You may have luck via API as node script for time being with what is on master. Try that, let me know how you go.

@panoply Ledge. I didn't end up using a node script, but after a quick update, the CLI is working. It's looking really good too. Thanks for the quick updates.


Danorz/css grid

fixes #4 .  I'd be happy to write a test but I saw that not all units were tested, and I wasn't sure how you decided which units to test and which units you did not.

Hi @orzechowskid thanks for your support! I terms of partially missing unit-tests: They are most likely missing out of one of the two reasons:
a) my laziness
b) my lack of competence
So, in both cases I would be pleased to merge other contributions of yours.
Cheers Julian!


Ensure that numberic values are between 0 and 1

Hello,
To use Brain.js, I need to convert numeric values to 0 and 1. But I haven't found a good solution to convert numeric values from large files. For example, I struggle with this dataset:
"Channel": 2,
"Region": 3
"Fresh": 12669,
"Milk": 9656,
"Grocery": 7561,
"Frozen": 214,
"DetergentsPaper": 2674,
 "Delicassen": 1338

Sometimes, I read that people divide values by 10, 100 or 1000, but I doubt it's a relevant solution. Do you have ideas ?
Thank you,

Iterate on the values, find the largest value, then divide by that?  What are you trying to accomplish?

Hi,
I already try something like this (with my previous example):
for (let i = 1; i < customers.length; i++) {
	customersData.push({
    input: {
      ch: customers[i].Channel / 10,
      re: customers[i].Region / 10,
      fr: customers[i].Fresh / 10000,
      ml: customers[i].Milk / 10000,
      gr: customers[i].Grocery / 10000,
      frz: customers[i].Frozen / 10000,
      dtp: customers[i].DetergentsPaper / 10000,
    },
    output: {
	  del: customers[i].Delicassen / 1000,
    }
  })
}

But it doesn't work very well. I got a lot of iterations, and an error rate close to 0.5. My goal is to lower the error rate and iterations needed.

I think what Robert was suggesting was to find the largest value for each thing beforehand. Snippet:
let maxChannel = 0;
// ... and all the other properties
customers.forEach(customer => {
    if (customer.Channel > maxChannel) {
        maxChannel = customer.Channel;
    }
    // ... and all the other properties
});

const customersData = customers.map(customer => {
    return {
        input: {
            ch: customers[i].Channel / maxChannel,
            ...
        }
    }
})

Ok ! It's clearer now. Thank you for the code. I will test it !

Great! Closing this issue, please feel free to open if you need any further help.


Implement Reducable Views

[x] Create storage mechanism
[ ] Create query API to return reduced values
[ ] Write unit tests

Closes #17

 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.

 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.

 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.


twitter cards: changes

close #4259
CR @jatorre @CartoDB/frontend

Frontend tests were OK :+1: (details)

:+1: code looks fine, I just added one suggestion.

suggestions taken into account, thanks @javierarce!

Frontend tests were OK :+1: (details)

Frontend tests were OK :+1: (details)


Update developer-driven evolution doc with guidance on distributed tracing

Fix https://github.com/Azure/autorest.csharp/issues/2115

Don't close

don't close


BitmapText clone error

Hello,
I recently ran into problem with cloning BitmapText object. Error specifically appears in _cloneProps when it tries to call super method DisplayObject__cloneProps where it says DisplayObject__cloneProps is undefined.
I think the problem is that BitmapText extends Container and not DisplayObject so DisplayObject super methods are not visible in BitmapText object.
I fixed the error by changing DisplayObject__cloneProps to Container__cloneProps so _cloneProps for BitmapText now looks like this:
/**
 * @method _cloneProps
 * @param {BitmapText} o
 * @return {BitmapText} o
 * @protected
 **/
p._cloneProps = function(o) {
	this.Container__cloneProps(o);
	o.lineHeight = this.lineHeight;
	o.letterSpacing = this.letterSpacing;
	o.spaceWidth = this.spaceWidth;
	return o;
};

Thanks for reply,
Honza

Feel free to post pull requests if you can for future fixes - they make integration of fixes like these much easier. Thanks for finding the issue!


The checkbox column for selecting rows throws off column widths

I just noticed this while looking at the live demo for this addon.
Below, you can see that the checkbox column seems to have the width that the ID column should have, whereas the ID column has the width that the name column should have. It's an off-by-one error.
To be more specific -- In the column definitions, the ID column is defined to be 50px, while the name column is set to 200px. This works correctly in the examples without a checkbox column. But when the checkbox column is present, the checkbox column is 50px and the ID column is 200px.

On further examination, it also looks like the filter columns are misaligned when row selection is turned on. This, too, needs to be fixed.


Azure Credentials don't get saved

Hey, after entering the endpoint, deployment, key and template folder and clicking "Apply" or "Apply and close" code completion doesn't do anything. So after checking the preferences again I noticed that the fields (endpoint, deployment, key, template) are empty again. What could be the issue here?

Wanted to check few things to understand the issue.
1-confirm if you have used aidttools.zip file provided here-> https://github.com/MonaDevAI/AI-Developer-Plugin-for-Eclipse

2-Go to Windows -> Preference-> General->Security-> Secure Storage . Check if you can see following

3-Go to Help->Install New Software->What is already installed-> confirm if you exactly see the same in the installation: MSFTPlatform AIDT Tools for Eclipse 1.0.0

I think I used the stuff that was published here
https://github.com/MonaDevAI/AI-Developer-Plugin-for-Eclipse/releases
With your provided ZIP file it works.

Thanks for confirming.


Failed type cast with provided schema causes all fields to be null

When providing a schema, if the schema specifies a type for a field, and that field has a value that cannot be cast to that type, all fields in the resulting DataFrame are null.  The example below is minimal, but I observed the same error with an XML of thousands of lines; a single incorrect type caused the entire DataFrame to be populated with nulls.  This is spark-xml version 0.3.5, on Spark 1.6.
Example:
XML:
<TopLevel>
  <StringField>abc123</StringField>
  <IntField>xyz456</IntField>
</TopLevel>

Schema:
val simpleSchema =
StructType(
  Array(
    StructField("StringField",StringType,true),
    StructField("IntField",IntegerType,true)
  )
)

Result:
val simpleTest = sqlContext.read.format("com.databricks.spark.xml").option("rowTag", "TopLevel").schema(simpleSchema).load("test.xml")
simpleTest.show

+-----------+--------+
|StringField|IntField|
+-----------+--------+
|       null|    null|
+-----------+--------+

If you can think of any workarounds in the meantime, that would also be helpful.  The only thing I can think of is to change all types in the static schema to strings, but then it is impossible to do arithmetic in the resulting DataFrame.

Thanks for detailed explanation. Will take a look soon in more details.

Was it fixed? I have the same issue for Spark 2.4.4


[GlobalOpt] Add a pass to simplify tensor pack ops.

I just rebased it to ToT, which includes a fix for the total dispatch sizes regression.

This looks good, but when #15984 lands, I think this will not have any effect. The simplification patterns check for no outer_dims_perm, but with my PR all pack and unpacks will have explicit outer_dims_perm even if it is identity.
https://github.com/llvm/llvm-project/blob/16b8a0dc6885dea0882887a6e642a504fd1e193c/mlir/lib/Dialect/Tensor/Transforms/PackAndUnpackPatterns.cpp#L41-L42
Just wanted to point this out here, but we should allow identity permutations in the upstream patterns.

Thanks for the heads-up. This is fine because we can add it to folders or relax the check. I will send a follow-up upstream.

THis looks fine! I have some ideas around using pack propagation to help fusion with mmt4d better. Lets make sure to chat about it some time.

SGTM, I also have few ideas about propagation. Let's chat after I address mmt4d fusion codegen issue.


Fixing issue with after_fork(); add TSTP signal

This PR fixes the error thrown by 1.7.1 durung the boot issue #26.
We introduce a failing test that demonstrates the issue and is fixed by this PR.
Also, we add the TSTP signal to the ones forwarded to Sidekiq, as the version 5 of Sidekiq uses that instead of USR1.
We also add and refactor a couple of small methods and tests to be more clear, more robust. We added SimpleCov so that we can understand the code coverage with tests (currently just under 40%).

Hi @kigster, thanks a lot for your PR! It looks good, but we will take bit more time to review it.
It would have been great to have bug fix, refactoring and documentation updates as a separate commits, but I think there is no need to change now.

Thanks! I do realize that I packed a few too many things into this PR, but its because i like this gem, and we are now using it in production. So thanks for sharing it with the world 🙂
I’ll update this once we push my fork into prod ot verify that everyting works. Right now we have 1.7.0 live.

@kigster I'm very happy to hear that you use sidekiq-pool and like it! :) Also I really appreciate the effort you have made to contribute.
I have checked after_fork issue and found out that the problem was very simple - hooks array was initialized on hook definition therefore it was failing if no hooks were defined. Fixed it and released 1.7.2 version. I suggest you to try it and see if the fix helps.
Regarding this PR - I think it will be difficult to merge it because there are too many changes. I could hand-pick your README.md and sidekiq-pool.gemspec improvements, but the downside of it would be loosing a reference to you as a contributor. Another option - you could create another pull request only with README.md and sidekiq-pool.gemspec changes. If you would do that, I suggest not to add systemd examples to the README. We could create a Wiki page for systemd configuration and reference it from the README.
Also I suggest to create a separate pull request for TSTP signal.
Some tips when creating a pull request:

please don't bump a version - we'll do it after merging
please do not reformat unrelated code in the same pull request
test code style with pronto before commit: bundle exec pronto run --unstaged --staged

If this sounds like too much work, no worries - just let me know and I'll hand-pick the changes myself.
Cheers!
Laurynas

Laurynas, sounds very reasonable, thanks!

@laurynas I have submitted two small PRs that are a portion of this one.
I did not include refactoring of the error handling, environment variables for sidekiq, systemd, etc.
I also want to point out the my solution to the bug used Queue, which is thread-safe. Unfortunately, the solution you provided uses ||= with an Array, which is not thread-safe.
I am not particularly interested in this functionality at all (after_fork), but I always try to use Queue whenever a multu-threaded environment is expected, since all other standard library classes are not thread-safe.

@kigster thanks! We'll review your new PRs.
My comment regarding Queue: https://github.com/vinted/sidekiq-pool/pull/28#issuecomment-398041167

@kigster I have enabled public editing for Wiki:
https://github.com/vinted/sidekiq-pool/wiki
You are welcome to add systemd configuration examples and tips there. Then the page could be referenced from README.

Great, thanks! I’ll add it shortly.


chore(website): API Page improvements

Should close https://github.com/angular/protractor/pull/2169

Link to the closing issue just links to itself.

All comments addressed

(accidentally closes and re-opened)

Style: I find the indentation somewhat confusing. I think it would be better if the inherited from blocks were at the same indentation level as the methods... e.g. (with dots for spaces)
element(locator)
..then
..clone
..Inherited from webdriver.WebElement
..equals
..getDriver
..getId
That makes it clearer to me that getId is a method on element.

We should do something with the whole webdriver section at the bottom (maybe protractor and then inherits from webdrivder), but I think that should be a separate PR.

Fixed the indentation.  I agree that it's better now.  I donno what you have in mind with the webdriver section at the bottom.  At least it's smaller now :P

LGTM.

Merged in at 9267f45


[only test] test pipelineX load

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

run p0 10


[Bug] InceptionV3 does not work properly

How to reproduce
import oneflow as flow
import flowvision.models as models

if __name__ == "__main__":
    model = models.inception_v3().to("cuda")
    data = flow.ones(1, 3, 224, 224).to("cuda")
    result = model(data)
    print(result)

Result
Traceback (most recent call last):
  File "test_inception.py", line 7, in <module>
    result = model(data)
  File "/home/dev/miniconda3/envs/ofnew/lib/python3.8/site-packages/oneflow/nn/module.py", line 158, in __call__
    res = self.forward(*args, **kwargs)
  File "/home/dev/.local/lib/python3.8/site-packages/flowvision/models/inception_v3.py", line 192, in forward
    aux = self.AuxLogits(x)
  File "/home/dev/miniconda3/envs/ofnew/lib/python3.8/site-packages/oneflow/nn/module.py", line 158, in __call__
    res = self.forward(*args, **kwargs)
  File "/home/dev/.local/lib/python3.8/site-packages/flowvision/models/inception_v3.py", line 444, in forward
    x = self.conv1(x)
  File "/home/dev/miniconda3/envs/ofnew/lib/python3.8/site-packages/oneflow/nn/module.py", line 158, in __call__
    res = self.forward(*args, **kwargs)
  File "/home/dev/.local/lib/python3.8/site-packages/flowvision/models/inception_v3.py", line 464, in forward
    x = self.conv(x)
  File "/home/dev/miniconda3/envs/ofnew/lib/python3.8/site-packages/oneflow/nn/module.py", line 158, in __call__
    res = self.forward(*args, **kwargs)
  File "/home/dev/miniconda3/envs/ofnew/lib/python3.8/site-packages/oneflow/nn/modules/conv.py", line 456, in forward
    return self._conv_forward(x, self.weight, self.bias)
  File "/home/dev/miniconda3/envs/ofnew/lib/python3.8/site-packages/oneflow/nn/modules/conv.py", line 444, in _conv_forward
    return flow._C.conv2d(
RuntimeError: (-1 vs 0)
  File "/home/ci-user/runners/release/_work/oneflow/oneflow/oneflow/core/functional/impl/nn_functor.cpp", line 94, in operator()
    OpInterpUtil::Dispatch<Tensor>(*conv_op_, {x, weight}, conv_attrs)
  File "/home/ci-user/runners/release/_work/oneflow/oneflow/oneflow/core/framework/op_interpreter/op_interpreter_util.cpp", line 140, in Dispatch<oneflow::one::Tensor>
    Dispatch<TensorTuple>(op_expr, inputs, ctx)
  File "/home/ci-user/runners/release/_work/oneflow/oneflow/oneflow/core/framework/op_interpreter/op_interpreter_util.cpp", line 131, in Dispatch<oneflow::one::TensorTuple>
    Dispatch(op_expr, inputs, outputs.get(), ctx)
  File "/home/ci-user/runners/release/_work/oneflow/oneflow/oneflow/core/framework/op_interpreter/op_interpreter.cpp", line 96, in Apply
    internal_->Apply(op_expr, inputs, outputs, ctx)
  File "/home/ci-user/runners/release/_work/oneflow/oneflow/oneflow/core/framework/op_interpreter/eager_local_op_interpreter.cpp", line 84, in NaiveInterpret
    [&]() -> Maybe<const LocalTensorInferResult> { LocalTensorMetaInferArgs ... mut_local_tensor_infer_cache()->GetOrInfer(infer_args)); }()
  File "/home/ci-user/runners/release/_work/oneflow/oneflow/oneflow/core/framework/op_interpreter/eager_local_op_interpreter.cpp", line 84, in operator()
    user_op_expr.mut_local_tensor_infer_cache()->GetOrInfer(infer_args)
  File "/home/ci-user/runners/release/_work/oneflow/oneflow/oneflow/core/framework/local_tensor_infer_cache.cpp", line 207, in GetOrInfer
    Infer(*user_op_expr, infer_args)
  File "/home/ci-user/runners/release/_work/oneflow/oneflow/oneflow/core/framework/local_tensor_infer_cache.cpp", line 178, in Infer
    user_op_expr.InferPhysicalTensorDesc( infer_args.attrs ... ) -> TensorMeta* { return &output_mut_metas.at(i); })
  File "/home/ci-user/runners/release/_work/oneflow/oneflow/oneflow/core/framework/op_expr.cpp", line 547, in InferPhysicalTensorDesc
    tensor_desc_infer_fn_(&infer_ctx)
  File "/home/ci-user/runners/release/_work/oneflow/oneflow/oneflow/user/ops/conv_op.cpp", line 49, in InferTensorDesc4Conv
    CalcConvOut(in.shape().At(idx_offset + i), kernel_size.at(i), dilation_rate.at(i), strides.at(i), padding_before.at(i), &out_shape.at(idx_offset + i))
  File "/home/ci-user/runners/release/_work/oneflow/oneflow/oneflow/user/ops/nn_util.cpp", line 70, in CalcConvOut

Error Type: oneflow.ErrorProto.check_failed_error
F20221006 11:51:23.570276 264343 cuda_util.cpp:143] Check failed: cudaSetDevice(saved_dev_id_) : driver shutting down (4)
*** Check failure stack trace: ***
F20221006 11:51:23.570652 264350 cuda_stream.cpp:114] Check failed: cudnnCreate(&cudnn_handle_) : CUDNN_STATUS_INTERNAL_ERROR (4)
*** Check failure stack trace: ***
    @     0x7fb06a5d40fa  google::LogMessage::Fail()
    @     0x7fb06a5d40fa  google::LogMessage::Fail()
    @     0x7fb06a5d43e2  google::LogMessage::SendToLog()
    @     0x7fb06a5d43e2  google::LogMessage::SendToLog()
    @     0x7fb06a5d3c67  google::LogMessage::Flush()
    @     0x7fb06a5d3c67  google::LogMessage::Flush()
    @     0x7fb06a5d67d9  google::LogMessageFatal::~LogMessageFatal()
    @     0x7fb06a5d67d9  google::LogMessageFatal::~LogMessageFatal()

已解决 输入应该为N x 3 x 299 x 299而不是N x 3 x 224 x 224


Search mobile

Thank you for your contribution to the KodaDot - One Stop Shop for Polkadot NFTs.
👇 __ Let's make a quick check before the contribution.
PR Type

[ ] Bugfix
[ ] Feature
[X] Refactoring

Context

[X] Closes #7780
[ ] Requires deployment <snek/rubick/worker>

Before submitting pull request, please make sure:

[X] My contribution builds clean without any errors or warnings
[X] I've merged recent default branch -- main and I've no conflicts
[X] I've tried to respect high code quality standards
[X] I've didn't break any original functionality

Optional

[ ] I've tested it at </ksm/collection>
[ ] I've tested PR on mobile
[ ] I've written unit tests 🧪
[ ] I've found edge cases

Did your issue had any of the "$" label on it?

[X] Fill up your DOT address: Payout

Community participation

[ ] Are you at KodaDot Discord?

Screenshot 📸

[X] My fix has change

d something on UI; a screenshot is best to understand changes for others.

Copilot Summary

🤖 Generated by Copilot at 7a30d9b
Enhanced the mobile navbar with a custom button and better layout. Modified components/Navbar.vue to implement the changes.

🤖 Generated by Copilot at 7a30d9b

Sing, O Muse, of the skillful coder who refined
The shining navbar of the website, and aligned
Its elements with grace, using a custom button bright
As the eye of Cyclops, or the stars that crown the night.

way better than before, but maybe lacking some both x and y axis alignment, right @exezbcz ?

the icon is too big imo

plus the mentioned alignment

any updates 👀

@exezbcz Can you explain the problem regarding the x, y alignment? Is it the SearchBar or the search icon that has the alignment issue?
What size should the search icon be, I increased the size to match the SearchBar height. Should I keep it as it was?
Also I think we can remove the K and Enter shortcuts on mobile.

Can you explain the problem regarding the x, y alignment? Is it the SearchBar or the search icon that has the alignment issue?

yeah sorry for the delay.
the whole search bar is not centered vertically in the navbar. The space under and above the search bar is not the same.

Also I think we can remove the K and Enter shortcuts on mobile.

could you please set it only on touchdevices

What size should the search icon be

36px x 36px button for now

the whole button is a svg? :D

That does not sound right no, what about having square button with icon inside?

thanks!
pay 20 usd

😍 Perfect, I’ve sent the payout
💵 $20 @ 5.13 USD/DOT ~ 3.899 $DOT
🧗 16hqk8Tjugo9AwSzKkxXc1dsRK7iJetpx1YBaoXYwdHzuNAt
🔗 0x2c43465ad1051856c4dac009426acbf3f8e7a23d569430f20cbe02b08b4bf121
🪅 Let’s grab another issue and get rewarded!
🪄 github.com/kodadot/nft-gallery/issues


[BUG] During vm migration, vm status show Running on vm detail page

Describe the bug

To Reproduce
Steps to reproduce the behavior:

go to vm detail page
migrate a vm

Expected behavior

vm status show Migrating
Log

Environment:

Harvester ISO version:
Installation Mode: ISO/app-mode
Underlying Infrastructure (e.g. Baremetal with Dell PowerEdge R630):

Additional context
Add any other context about the problem here.

@futuretea  @guangbochen  vm status and migration status are separate, I think it’s better not to change .

I think they should be consistent, even though we know the VM is running as it is live migration, but the migrating status should be prioritised.

Validation in version master-0008ce84-head
migrate a vm,  vm status show Migrating on vm detail page


Weird black boxes around planet names

Likely caused by weird layering conflicts between the scanner overlay and the planet name text.
These should be flush with the scannner overlay if at all possible.

huh, I can't reproduce this on mobile safari

It is very iffy and happens quite infrequently (going away on moving the screen).

I think it might be linked to the fleet merge dialogue.


Use GYB tool to implement MapKeyPath

Tests are coming soon

LGTM

  Generated by :no_entry_sign: Danger Swift against 0f0cd25f74fa95f788c1b3009ffd89da940eb4ea


[Feature] Add ETL function node

I extended the ETL node on DS, Implement the function of executing SQL for data synchronization.
Synchronize data through Datax middleware, DS need not be coupled to Datax.
I can contribute code if needed by the community.
Implementation ideas:
1.Add ETL nodes in DS
2.Generate Datax json file based on configuration parameters
3.Datax python script called by shell script task to start process
Problems with the current implementation:
1.Datax does not support multi-table synchronization, a task can only synchronize one table
2.Low resource utilization, each ETL task needs to start a JVM process

+1

哪个版本里面包含这个功能？

The next release version, after 1.2.1.


how do we transfer money

This is not the Bitcoin blockchain, so it's not intended to be transferring money in this implementation. But it is possible to be done if you implement it as a cryptocurrency blockchain, what certainly wouldn't be as secure as it should be for this implementation because this project is implementation was only intended for educative use.


incredibly slow on NVIDIA GPU on a Linux cluster

Hello,
I installed privateGPT using:
salloc --job-name "InteractiveJob" --cpus-per-task 4 --mem-per-cpu 50gb --time 01:00:10 -p batch_gpu --gres=gpu:1

module load Mamba git CUDA && conda create -n gpt && source activate gpt && mamba install python=3.11 && pip install llama-index-readers-file poetry injector && git clone https://github.com/imartinez/privateGPT.git && cd privateGPT/ && export PYTHONPATH=$PYTHONPATH:$PWD && poetry install --extras "ui llms-llama-cpp embeddings-huggingface vector-stores-qdrant"

pip install gradio llama-index llama-index-llms-llama-cpp llama-index-vector-stores-postgres llama-index-vector-stores-qdrant llama-index-embeddings-huggingface && poetry run python scripts/setup && CMAKE_ARGS='-DLLAMA_CUBLAS=on' poetry run pip install --force-reinstall --no-cache-dir llama-cpp-python && PGPT_PROFILES=local make run

My NVIDIA GPU shown in attach.
One query takes one hour to be answered please advise.
Thanks

I'm using slurm and srun to acreate an enroot jail of vllm, and then using privgpt to connect to vllm as "openailike" and this seems to work well enough.
Privategpt could be a little snapper, but I am still getting like 10 tokens/sec as put.  Initial queries take around 2 seconds.


"section" should be passed in context of PreferenceFormView

I am modifying the default version of the preference form templates in order to integrate the design with my overall site.  However, the PreferenceFormView currently provides very little context information, and it would be very useful in particular to have the current section (for section-specific page titles).
Something like this in views.PreferenceFormView.get_context_data would be a start:
context['section'] = self.kwargs.get('section', None)
However, since it would also be particularly helpful to have the verbose name, I won't put this through as a pull request.

Thank you for reporting this. It seems like a reasonable demand, I think the best thing would be to pass the section object itself (and not only the identifier from the url) in the context, meaning you can get the verbose_name from it in your template, or any other custom attribute (if you sublassed the base Section class).
Do you you think such a patch would solve your issue ?

I think it is also linked to #49

Yes, this would be perfect.  I also agree that it is related to #49, as it would be particularly helpful to have access to all of the verbose_names in creating a custom navigation menu.

The 1.1 release containing this change was pushed to PyPi :)


Unable to edit multipart/form-data via mitmproxy UI

Problem Description
Changes made when editing multipart/form-data on an intercepted request are lost when returning to view the flow.
Steps to reproduce the behavior:

Set intercept for requests and multipart/form-data - ~q & ~t "multipart/form-data"

Generate simple request with multipart form (during testing used httpie tool)
Select flow within mitmproxy UI

Press 'e' to edit and select multipart

Update some portion of the data

Press 'esc' to retain changes
Press 'q' to return to flow view. Expect to see edited data, instead no data is present and Content-Length is set to 0.

I expect that I am following an incorrect process here in some manner that is resulting in the behaviour, so any guidance would be appreciated.
I have also tried rolling back and testing with v5.3.0 again with the same behaviour.
System Information
Mitmproxy: 6.0.2 binary
Python:    3.9.1
OpenSSL:   OpenSSL 1.1.1i  8 Dec 2020
Platform:  Linux-4.19.128-microsoft-standard-x86_64-with-glibc2.27

I'm running into this issue as well.  Seems a few places in the code are dropping the "boundary" field in the Content-Type when it comes to multipart packets.
I found three locations in the code where this assumption is made, and after adding those fixes it seems to (mostly) work.  There's still an issue where the multipart editor appends b'' to all the fields, and editing them runs into a bytes vs. string type error, but it's closer now.
https://github.com/roytu/mitmproxy/commit/8641254cd55bb61f6da5df76237b7977d8f92122

Pull request is in progress for this issue. For the bytecode issue, I've found that this seems to work (though it's a hack currently so I'm not including it in the PR for now).


Reduce the size of the wasp1 component adapter by 4.6k

This reduces the size of wasi_snapshot_preview1.command.wasm from 79625 bytes to 75029 bytes for a total win of 4596 bytes. Of this reduction enabling LTO is responsible for 3103 bytes, while enabling bulk-memory is responsible for 1493 bytes.

Thanks!

For future reference: https://bytecodealliance.zulipchat.com/#narrow/stream/219900-wasi/topic/wasi-preview1-component-adapter.20size


Check if template is list or string type in config context

As pointed out by @Albert-LGTM in #30, its quite confusing if you use a string instead of a list format structure in the config context. This was originally a string format (since most users only apply one template on a host) but was extended to support multiple.
Its a good idea to implement backwards compatibility so that users can choose between:

A single template in a string format
A single template in a list format
Multiple templates in a list format

Should be live, simple fix.


Retrieve Source from org for profiles deleting the old values and just retrieving user permissions

Clone Azure repo.
Then Authorize a default org.
Then select a profie and right click on that.
Click on "SFDX: Retrieve Source from Org".
Previosuly there are around 10000 lines in the profile now its just 29 lines. Its deleting old values.

/causedByExtension

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines.
Happy Coding!

Please raise your issue with the SFDX authors.


Use Avatars for Users?

We want an association between an author of a data hunch and the hunch. Color is problematic, though we should probably use it anyways. We could also use a set of icons, something like this - https://dribbble.com/shots/2626600-5000-FREE-Iphone-Animals-Icon-Set - to identify users?

with icons in chart? that probably will clutter the chart really fast

You can pick. And we don't have to use them all the time, only when it's useful.


feat: spirv-builder takes optional path to target spec JSON file

This adds an optional field to SpirvBuilder that will set the "target specification" file. This will enable cargo-gpu to point to these files, which can be stored in its cache directory.
Relations

https://github.com/Rust-GPU/cargo-gpu/issues/10
https://github.com/Rust-GPU/rust-gpu/issues/22
https://github.com/EmbarkStudios/rust-gpu/issues/1137

Ah, yes - I forgot that since we can only build on macOS with --release, my editor's LSP doesn't work on this project...


Provide a general summary of the issue

Prerequisites

[X] I have searched for duplicate or closed issues
[X] I have validated any HTML to avoid common problems
[X] I have read the contributing guidelines

Describe the issue
Hi,
I'm using Symfony with WebpackEncore, and when i'm using MODALS with bootstrap, with the last update 5.1.3 of Bootstrap (installed with npm install bootstrap) i have a issue with modal :
bootstrap.esm.js:3131 Uncaught TypeError: Cannot read properties of null (reading 'hide')
    at HTMLButtonElement.<anonymous> (bootstrap.esm.js:3131:1)
    at HTMLDocument.handler (bootstrap.esm.js:387:1)

I tried to revert the version to 5.1.0 and this worked back. What happen with the 5.1.3 ? Something changed ?
My js file is compiled with webpack.
const $ = require('jquery');
require('bootstrap');

// any CSS you import will output into a single css file (app.css in this case)
import './styles/app.scss';

// start the Stimulus application
import './bootstrap';

Thanks for your help
Reduced test cases
See describe the issue
What operating system(s) are you seeing the problem on?
Linux
What browser(s) are you seeing the problem on?
Chrome, Safari, Microsoft Edge
What version of Bootstrap are you using?
5.1.3

Bug reports must include a live demo of the issue. Per our contributing guidelines, please create a reduced test case via CodePen or JS Bin and report back with your link, Bootstrap version, and specific browser and Operating System details.
This is an automated reply


Compatibility with Padrino (sans template helpers) and any other framework

Made it possible to use gem just as easily with Padrino by factoring all the hooks out into a separate class and calling where appropriate.

It's correct enough though. It may not hurt to take this approach and then split the gem up at a later time when it's more appropriate. This solution at least provides functionality until such a time.

Hmm... I can't get this to work. I don't think the pagination methods are being included early enough.

@mlightner Thank you very much for the patch! I basically liked your idea but couldn't immediately merge the code because I couldn't confirm that it's really working.
Then @udzura gave me more thorough pr #179 based on @mlightner's idea, and he showed me it's actually working with a Padrino app, so I decided to take his version. But we believe half of the credit goes to @mlightner. Thanks a ton!


iPad shouldn't be supported

This is related with the problems described in #32.
There is still at least one tablet with android that has crosstab.supported set to true.

Awesome -- thansk @alias-mac!


Fixed wrong client initialization

Flags are parsed not during the creation of the command but just before the Run.
It means that the client initialized at the beginning was not looking for the settings in the specified location but always in the default one. This PR moves the initialization in the PersistentPreRunE (run before every command) for all the commands.

lgtm, it should be good thinking to start to cover with tests these flags

I absolutely agree. After the release and with the upcoming summer it could be something feasible.

Checked in Epinio v1.9.0-rc4
Deleted the settings.yaml file and pointed to new custom_settings.yaml
Without fix (v1.8.1):
➜  epinio git:(main) ✗ epinio info --settings-file /home/manuel/.config/epinio/custom_settings.yaml
2023/07/17 18:00:48 EpinioApiClient: "msg"="request failed" "error"="Get \"/api/v1/info\": unsupported protocol scheme \"\""

❌  error retrieving Epinio environment information: making the request: Get "/api/v1/info": unsupported protocol scheme ""

With fix (epinio v1.9.0-rc4)
➜  epinio git:(main) epinio info --settings-file /home/mmartin/.config/epinio/custom_settings.yaml

✔  Epinio Environment
Platform: k3s
Kubernetes Version: v1.25.4+k3s1
Epinio Server Version: v1.9.0-rc4
Epinio Client Version: v1.9.0-rc4


Question: Prop to change color of day number text?

Subject of the issue
Is there a prop that allows me to change the color of the text within the selected range?
I have a lighter themed selection color. I would like to use darker text.
[BUG] Bug Reproduce Steps
Tell us how to reproduce this issue.
[BUG] Expected behaviour
Environment
Package Version: 1.0.3
React version:
Node version:
Browser:

Nevermind. I found you can replace the default theme.


EKS 1.16 missing pod-identity-webhook

What happened:
After upgrading from EKS 1.15 to EKS 1.16,  podsare missing the following env vars:
AWS_ROLE_ARN=arn:aws:iam::xxx:role/oidc-my-service-api-qa
AWS_WEB_IDENTITY_TOKEN_FILE=/var/run/secrets/eks.amazonaws.com/serviceaccount/token

Found that pod-identity-webhook (which is responsible of injecting those) is missing in 1.16. It's still present on our 1.15 clusters.
EKS 1.15
kubectl get mutatingwebhookconfigurations pod-identity-webhook
NAME                   CREATED AT
pod-identity-webhook   2020-01-11T17:01:52Z

EKS 1.16
kubectl get mutatingwebhookconfigurations pod-identity-webhook
Error from server (NotFound): mutatingwebhookconfigurations.admissionregistration.k8s.io "pod-identity-webhook" not found

What you expected to happen:
pod-identity-webhook  to be present after upgrade.
How to reproduce it (as minimally and precisely as possible):
Upgrade EKS 1.15 to 1.16 and execute kubectl get mutatingwebhookconfigurations pod-identity-webhook
Environment:

AWS Region: ap-southeast-1
EKS Platform version: "eks.2"
Kubernetes version: "1.16"
Webhook Version: -

To fix this, I built and pushed the image to my ECR repo, then re-install it with make cluster-up.

Hi @edbighead,
How to recreate mutatingwebhookconfigurations pod-identity-webhook?
Where I can find its manifest file?

Hi @edbighead,
How to recreate mutatingwebhookconfigurations pod-identity-webhook?
Where I can find its manifest file?

clone the repo and run the make command i mentioned above, manifests can be found here https://github.com/aws/amazon-eks-pod-identity-webhook/tree/master/deploy

Hey @edbighead and @amitkarpe, do you mind ping us on Slack with the cluster ARN and timeframe so that we can look into on our side?

Hi @jqmichael,
I was not able to connect to this slack channel. Which slack channel it is?
I am already a member of kubernetes/EKS channel. You can ping me there: https://kubernetes.slack.com/archives/C8SH2GSL9


Request: Add version info to usage output

Version: 1.2.4
Right now there does not seem to be a way to easily get the version you're currently running, at least not from within ready. I would expect it to be present in the usage output, for example, which currently does not have it, or perhaps a --version flag?
ready

Usage: ready.py [--headers] [--content] [--json] [--quiet] [--score] [--fuzz] <domain>

  --headers      Output the headers from the HTTPS request made to the domain
  --content      Output the content from the HTTPS request made to the domain
  --fuzz         Include checks that fuzz urls (only run this on your own domain)
  --json         Provide JSON output
  --quiet        No text output
  --score        Print a score out of 100 for this domain
  --doc          Print the list of check names

Development / experimental options for filtering checks and HTTP requests during testing:

  --check-filter=<x>     Only run checks that match the provided filter
  --request-filter=<x>   Only make HTTP requests that match the provided filter

Ooooh, I was slightly ahead of you on this one (finally!).
I added --version to the options over the weekend. I'll release a new version today that includes it. The version will also be added to the JSON output.

Should be available in v1.2.5 once the action publishes it.

$ ready --version
ready 1.2.5

Nice! 🙂