Experiment with uv

uv is fast rising in popularity. It's written by Astral, the same folks behind ruff.
It does everything that Poetry does when combined with pyenv for Python installation, although its Python or even pyenv's may not be suitable for production use.
This experimentation should try swapping out poetry + pyenv in the Makefile to see what changes would be necessary.
I would not consider a wholesale switch until uv is 1.0.0, at which time I'd consider it with the values of

first-time setup performance

package installation performance (cold cache)

package update performance (hot cache)

availability of tooling replacements, e.g. diff-poetry-lockfile in our GitHub workflows
https://github.com/target/make-python-devex/blob/669a039307bfee661797e33b1fcb283959599440/.github/workflows/make-based-ci.yml#L22-L24

minimization of helper tasks e.g. poetry-venv-implode.
https://github.com/target/make-python-devex/blob/669a039307bfee661797e33b1fcb283959599440/Makefile#L314-L316

lockfile improvements (e.g. standardization track vs bespoke, diff-able, etc.)

others TBD

Initial setup would reduce to uv installation as the only real dependency for the makefile (could be the init target).
After that, the pyproject.toml would be the only driver, given uv capability to install tools and python versions.
For the comment about uv python and production use - given the recent move of python build standalone (https://astral.sh/blog/python-build-standalone) ,  I tried to analyse this comment better. Also some comments from Python bytes clarified the situation, and this is not really the case - python build standalone removes some dependencies from the underlying OS and, in my humble opinion, could be better isolated (yes, in docker also) for production use.

Additionally, check uv-migrator for migration of pyproject.toml

Thank you for the input! This will be useful when undertaking this exploration.

@colindean I am tempted to fork and submit a pull request, but my use case is different - I am Linux based, and checking the makefile your specific needs (macos, arm, data science) emerge, while I am more oriented to generic Python development. Not sure to be able to grant the specific needs - eg compilation flags - of your use case.


ci: use bigger linux ci image

Upgrade to ubuntu 22.04 for CI runners and always use a 256GB disk.

Was there an issue with 24.04? Or is that coming soon?

Was there an issue with 24.04? Or is that coming soon?

I didn't see it as an option on the Azure portal.

Interesting. Something to just keep an eye out for i guess.

Tested on both Linux and Windows TDs with the IGVM built off openvmm tip and reviewed all the CPUID values. Compared the values against the base non-isolated VM and L-HCL TDX-isolated VMs. All values seem correct. There are some discrepancies in the XSAVE buffer sizes reported by CPUID due to the fact that OSXSAVE is always enabled in Legacy-HCL where as it is not in O-HCL.


Spacing between items

Hey @alexrainman. I have a enhancement request.
I want a gap/spacing between my items in carouselview, just like in iOS gallery app or facebook gallery etc.
I can probably solve it by adding left/right padding in my itemtemplate, but then my image wouldnt fill the whole screen.
What do you think?
Thanks again for remarkable plugin.
Because right now my items seems like they are attached/appended to each other. The following screenshots is of the iOS Photos app:

This will be quite complicated. You may solve it adding Left/Right spaces using Margin property.

As each page may be exactly the size of the parent native pager control :)

As it seems, UIPageViewController and PageViewer has built-in functionality, haven't checked UWP's FlipView yet.
iOS UIPageViewController:

Android ViewPager:

Interesting. Let me try that.

Sounds great. And plz do tell if I can be of assistance of some kind.

Try yo find out how to do the same in UWP FlipView.

FlipView doesnt have native support for spacing between items.

Bad news :(

@alexrainman not nessicarly. Just like you have platform specific features like Bounce and Arrows feature, this should also fall under that category.

Thats what i was thinking :)

Umm i will test margin property in FlipView. As i am reading, it may work.

https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.frameworkelement.margin
or
https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.control.padding

Later today my friend :)

Added to Android an iOS but not supported in UWP.

Superb! when will it be released? :)

Released in version 2.

If my work is helping you, please help me back: https://xamarinhq.wufoo.com/forms/nominate-a-xamarin-mvp/

This is what i have done that is community visible:

Alex has been pretty active sharing his knowledge and answering questions in StackOverflow, GitHub and Xamarin Forums.
Alex has been open sourcing Xamarin components and plugin with the community, with more of 10 repositories being maintained on GitHub.
One of Alex's Xamarin.Forms plugin, the CarouselView, is currently being pulled into the Xamarin.Forms core (xamarin/Xamarin.Forms#853). As an stable widget, this control has become the standard for Xamarin.Forms carousel screens with more that 16K downloads in NuGet and more than 100 solved and not open issues.
Another Alex's plugin, the SegmentedControl (https://github.com/alexrainman/SegmentedControl), is a big candidate to be also pulled into Xamarin.Forms core.
Plus Xamarin.Forms UI related plugins, Alex shares plugins to set app icon Badge, Google Analytics and KeyChain access.
Alex shares his knowledge about cutting edge technologies like Couchbase NoSQL and MobileIron integration with Xamarin Apps.


Not clicking on controls

My code below. Issue is only first element get clicked and then new application opens and other two locators not get clicked !!!!!
it('Login Finally', function () {

    return this.app.client.element('//p[2]').click();  //Clicking here

   //Not moving forward from above, not clicking below locators, new window get opened

    var myButton = this.app.client.element('//div[2]/mat-form-field[1]/div/div[1]/div');
    myButton.click();

    var myButton1 = app.client.element('//*[@id="mat-select-5"]');
    myButton1.click();

});

I got the answer, we need to use locator mostly css


Create Depth First Traversal.py

Approach: Depth-first search is an algorithm for traversing or searching tree or graph data structures. The algorithm starts at the root node (selecting some arbitrary node as the root node in the case of a graph) and explores as far as possible along each branch before backtracking. So the basic idea is to start from the root or any arbitrary node and mark the node and move to the adjacent unmarked node and continue this loop until there is no unmarked adjacent node. Then backtrack and check for other unmarked nodes and traverse them. Finally print the nodes in the path.
Algorithm:

Create a recursive function that takes the index of node and a visited array.
Mark the current node as visited and print the node.
Traverse all the adjacent and unmarked nodes and call the recursive function with index of adjacent node.

Approach: Depth-first search is an algorithm for traversing or searching tree or graph data structures. The algorithm starts at the root node (selecting some arbitrary node as the root node in the case of a graph) and explores as far as possible along each branch before backtracking. So the basic idea is to start from the root or any arbitrary node and mark the node and move to the adjacent unmarked node and continue this loop until there is no unmarked adjacent node. Then backtrack and check for other unmarked nodes and traverse them. Finally print the nodes in the path.
Algorithm:

Create a recursive function that takes the index of node and a visited array.
Mark the current node as visited and print the node.
Traverse all the adjacent and unmarked nodes and call the recursive function with index of adjacent node.

Please add your name and Github link in contributing.md


log_backup: add metrics for pending tasks

What is changed and how it works?

Issue Number: Close https://github.com/tikv/tikv/issues/16656

What's Changed:
log_backup: add metrics for pending tasks

Related changes

[ ] PR to update pingcap/docs/pingcap/docs-cn:
[ ] Need to cherry-pick to the release branch

Check List
Tests

[ ] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[x] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Release note

None

/run-clippy-darwin-amd64

/retest

/merge

/merge

/merge

/test pull-unit-test


Model: Ensure generated IDs are globally unique

Are you sure they need to be globally unique?

No, they need to be unique across model graphs. This ticket is for myself, so I didn't care too much about wording the problem in excruciating detail.

Some more context:
The IDs are currently generated by incrementing the variable declared on this line: https://github.com/sebbert/fuselibs-public/blob/feature-Models/Source/Fuse.Reactive.JavaScript/FuseJS/Model.js#L22
If changing this to a string of some sort (a GUID for instance), TreeObservable also currently expects an ID of type long, so this needs to be changed as well: https://github.com/sebbert/fuselibs-public/blob/feature-Models/Source/Fuse.Reactive.JavaScript/TreeObservable/TreeObservable.uno#L80

After some discussion with sebbert, this doesn't seem like a pressing issue afterall:
Si at du har en app-modell med feltet someObject.
Model.js vil gi alle objektene en ID:
    constructor() { // AppModel-instansen vil få ID == 0
        this.someObject = { // someObject vil få ID == 1
            foo: 1337
        }
    }
}

Problemet er at denne IDen bare er unik innenfor den ene Model=-attributten.
Det jeg fryktet var at disse IDene vil kollidere:
Si at du så har en komponentmodell som tar inn someObject fra app-modellen som en ux:Property
    constructor() { // MyComponent-instansen vil få ID == 0
        this.someOtherObject = {}; // someOtherObject vil få ID == 1
        this.SomeObject = null;
    }
}

this.SomeObject i kodesnutten over kommer fra et UX-property SomeObject:
    <object ux:Property="SomeObject" />
</Panel>

Dette UX-propertyet blir matet med someObject fra app-modellen
    <MyComponent SomeObject="{someObject}">
</App>

Som du ser i de to modell-klassene over, vil både someObject fra app-modellen og someOtherObject fra komponent-modellen begge få samme ID (1). Problemet er at TreeObservable (og dermed Models) per i dag anser to objekter med samme ID som samme objekt (selv om de er to forskjellige JS-objekter). Ergo var jeg redd for at MyComponent vil anta at someOtherObject === SomeObject
MEN!
Dette viser seg å ikke være et problem allikevel.
Når Model.js gir en ID til et objekt, vil den ikke faktisk endre på objektet ditt. Den lager istedetfor en kopi av objektet med IDen og noe annen metadata, samt en referanse til det opprinnelige objektet.
Når objektet marshalles til Uno og tilbake, sitter vi igjen med det opprinnelige objektet, før det fikk en ID og annen metadata fra appmodellen. Dette vil si at komponentmodellen regner det som et nytt objekt, og lager sin egen ID for det.
Dette har i seg selv en del andre problemer though, f.eks. at vi kan endre på objektet i komponentmodellen uten at app-modellen plukker det opp og vise versa.

@kristianhasselknippe: Not everyone in the company speaks norwegian, would you care to translate?

Translation (an attempt at least):
Say you have an app-model with the field someObject.
Model.js would give all object an ID:
	constructor() { // AppModel-instansen vil få ID == 0
		this.someObject = { // someObject vil få ID == 1
			foo: 1337
        }
    }
}

The problem is that this ID is only unique within this one Model= attribute.
We feared that these IDs would collide between models.
Say you have a component model that take an object someObject from the app model as a ux:Property
    constructor() { // MyComponent-instansen vil få ID == 0
        this.someOtherObject = {}; // someOtherObject vil få ID == 1
        this.SomeObject = null;
    }
}

this.SomeObject in the above piece of code comes from the outside as a UX-property SomeObject.
    <object ux:Property="SomeObject" />
</Panel>

This UX-property will be fed with someObject from the app model.
    <MyComponent SomeObject="{someObject}">
</App>

As you can see in the two modell-classes above, someObject from the app model and someOtherObject from the component model will both have the same ID (1). The problem is that TreeObservable (and therefore Models) today views two objects with the same ID as the same object (even though they might be different JS objects). We were therefore afraig that MyComponent would assume that someOtherObject === SomeObject.
BUT!
This proved to not be a problem afterall.
When Model.js gives an ID to an object, it will not actually change your object. It will instead create a copy of the object with the ID and some other metadata, as well as a referance to the original object.
When the object is marshalled to Uno and back, what we are left with is the original object, before it got another ID and other metadata from the app model. This means that the componentmodel views it as a new object, and creates its own ID for it.
This does come with some other potential problems though, one example being that we can change the object in the component model without the app model picking up the change.


Some super handy tricks and cheatsheet

Thank you @abhinav-adtechs for the contribution! Yes shortcuts should be used by every developers, it really boosts up productivity!

@PareshMayani Sure!
I'll add more content as an when I get it. :)

@abhinav-adtechs looking forward for your contributions! really appreciate it


How to set column family using RocksDB

Hi,
RocksDB supports column family as a way of partitioning. I can see rocksdb_engine.cpp also handles family name from from context variable. But I am am unable to find a way to send this information through redis command. I am using redis SET and GET commands.
Thanks

I think when you use the select command it will create a column family for you.


Too long with no output (exceeded 10m0s)

New Issue Checklist

[ ] Updated fastlane to the latest version
[ ] I read the Contribution Guidelines
[ ] I read docs.fastlane.tools
[ ] I searched for existing GitHub issues

Issue Description

I run fastlane gym command in Circle CI, but it stops and time out. How can i fix this issue?
Complete output when running fastlane, including the stack trace and command used

[INSERT OUTPUT HERE]

Environment

[17:36:08]: ▸ Compiling AddAppointments.storyboard
[17:36:08]: ▸ Processing Info.plist
[17:36:08]: ▸ Generating 'Carepilot.app.dSYM'
[17:36:09]: ▸ Running script 'Run Script'
[17:36:09]: ▸ Running script 'Run Script'
[17:36:09]: ▸ Running script 'Run Script'
[17:36:09]: ▸ Running script '[CP] Embed Pods Frameworks'
[17:36:20]: ▸ Running script 'Run Script'
[17:36:23]: ▸ Copying /Users/distiller/Library/Developer/Xcode/DerivedData/Carepilot-hjvmqguwsmyjpedkajgeufrewtku/Build/Intermediates.noindex/ArchiveIntermediates/Carepilot\ -\ ADHOC/BuildProductsPath/Adhoc-watchos/CarePilotWatch.app
[17:36:38]: ▸ Touching Carepilot.app (in target: Carepilot)
[17:36:40]: ▸ Archive Succeeded
[17:36:41]: Generated plist file with the following values:
[17:36:41]: ▸ -----------------------------------------
[17:36:41]: ▸ {
[17:36:41]: ▸   "provisioningProfiles": {
[17:36:41]: ▸     "com.clarify.Carepilot-beta": "match AdHoc com.clarify.Carepilot-beta",
[17:36:41]: ▸     "com.clarify.Carepilot-beta.watchkitapp": "match AdHoc com.clarify.Carepilot-beta.watchkitapp",
[17:36:41]: ▸     "com.clarify.Carepilot-beta.watchkitapp.watchextension": "match AdHoc com.clarify.Carepilot-beta.watchkitapp.watchextension"
[17:36:41]: ▸   },
[17:36:41]: ▸   "method": "ad-hoc",
[17:36:41]: ▸   "signingStyle": "manual"
[17:36:41]: ▸ }
[17:36:41]: ▸ -----------------------------------------
[17:36:41]: $ /usr/bin/xcrun /Users/distiller/project/.bundle/ruby/2.4.0/gems/fastlane-2.112.0/gym/lib/assets/wrap_xcodebuild/xcbuild-safe.sh -exportArchive -exportOptionsPlist '/var/folders/yy/d215g62s727f4w2137t9jl2m0000gn/T/gym_config20181227-24536-nd71np.plist' -archivePath /Users/distiller/Library/Developer/Xcode/Archives/2018-12-27/Carepilot\ 2018-12-27\ 17.30.19.xcarchive -exportPath '/var/folders/yy/d215g62s727f4w2137t9jl2m0000gn/T/gym_output20181227-24536-l1jpgb'
Too long with no output (exceeded 10m0s)

Duplicate at #13996


Handle Safari private browsing error

Satisfies requirements of MUMUP-2770
In this PR:

If localStorage.setItem trips an error, the user is redirected to /sorry-safari, where they will see an error message explaining the error and directing them to turn off private browsing or try a different browser.
Minor design update to all error pages
Replaced FontAwesome icons with material icons in all error pages

Screenshot

Coverage increased (+0.1%) to 39.149% when pulling d30ea4f485251ace5582e2f9b8d4c8a703e8fa3d on thevoiceofzeke:safari into 4b16c742acf0c827e8a47200a68b9c2a55aa70aa on UW-Madison-DoIT:master.

Changes Unknown when pulling 4506ecc6ae0e444cf9e106916f2b4917b3ef1af8 on thevoiceofzeke:safari into ** on UW-Madison-DoIT:master**.

:+1:


Enable public archiving of #general and other popular channels

Intro
I propose we make use of a service like slackarchive to archive #general and several other popular channels publicly. This promotes healthy discourse and retention of valuable conversations.
Why?

With the 10,000 message limit we're constantly losing a lot of valuable information, and
This deliberate transparency promotes better discourse
Nearly 70% of the conversations in Slack are already direct or in private channels, so the community is well aware of keeping things private.

Currently anybody could in fact be archiving the messages privately for whatever purpose they want. Some members over time have publicly (and privately) expressed interest in archiving messages.
Our Code of Conduct doesn't prevent this (other than for the purpose of harassment).
How?
By using an archiving bot or service. Using a service like slackarchive means we don't need to run additional infrastructure as a community and don't become dependent on the goodwill of community members.
Members can invite the logging bot into a channel, or ask an administrator to kick the bot to stop logging further.
Initial channels

#general
#clojure
#ruby
to be updated with suggestions

Unknowns

Retracting sensitive information - it is not clear how to remove a message from slackarchive other than contacting them
Prevent a bot from being invited - is not clear if Slack itself offers this feature

Timelines
In lieu of any strong disagreement, we would want to setup the bot as quickly as possible to prevent the loss of any further valuable information. The final proposed date would be the end of August 2016, possibly earlier.
Tasks

[ ] Update the code of conduct to reference archiving
[ ] Setup slackarchive

Feedback
Please use this issue to provide feedback, or the #code-of-conduct channel in Slack, or chat privately to myself, @kmckelvin or @gee-forr. We'd prefer public discussion about this, and we understand this might not suit everybody.

Does slackarchive make archives available to the public, or do you need to be a member of a group to view its archives?

It is completely public, see http://kubernetes.slackarchive.io/ as an
example
On Sat, 13 Aug 2016 at 5:11 PM Tom Bamford<EMAIL_ADDRESS>wrote:

Does slackarchive make archives available to the public, or do you need to
be a member of a group to view its archives?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/zadev/code-of-conduct/issues/7#issuecomment-239625555,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAiNAuXcxLnVEnAcCLbHFI5-IzT-_ewks5qfd67gaJpZM4JjsAj
.

--
Kenneth Kalmer
@kennethkalmer
http://www.opensourcery.co.za

I don't personally mind if a conversation I'm party to is publicly archived on the web, but I think some members may reasonably assume that conversations in Slack stay in Slack. That's not a showstopper or anything, just noting that it's probably worth indicating this prominently.

@manicminer that's why we want to get the communities thoughts on this... we'll be updating the CoC with the fact that things are publicly archived (should we do go ahead)

Locking this down, thanks for all the initial feedback! Lets carry on with getting #8 reviewed and merged.


Use constellation drawing for determining sets of skills to unlock

Clicking on each skill node is tedious especially with over 20 skill points. There should be the ability to simply draw a long line from point to point indicating which skills are to be unlocked.

Resolved via commit f561f7cb583760eb7da0d0f36da1eabc08bed6ab.


Automate Pull Request Mechanism

Background:

Whenever SDMM participants want to advance to D3 the click a button and expect a PR
Currently this PR is created manually

Definition of done:

PR is created automatically when button is clicked

Proposal:

We continue to maintain PRs the way we do now in the repoPatchTool repo
Create (Ruby-capable) web service with endpoint createPullRequest(github_url, pullrequest_id)
pullrequest_id must match the folder name of the PR in repoPatchTool repo (in the patches dir)
Web service will pull the repoPatchTool repo, execute the ruby commands createPatch {patch_id} apply and createPatch {patch_id} pullrequest

@nickbradley @rtholmes - I wrote a small proposal down on how to automate the PRs.

Looks good. The PR service will need to be Dockerized for deployment--we can discuss how that would be done.

You should only need a container with Ruby >= 2.4 and a Web server. I propose Sinatra. It's a very simple Ruby Web server that I've used in the past and I loved it. It'll be nice for you to take a break from JS and dive into the world of Ruby too. You'll like it!

# myapp.rb
require 'sinatra'

get '/' do
  'Hello world!'
end

:-)

We'll also need to store the PR diffs somewhere too. Actually, if they are being committed to the repo then they can just be baked into the container although I wouldn't want to include old ones since that'll inflate the container size and we are already having problems with space. We'd either need a build param to specify which PR diffs to include or only have the required diffs in the PR directory.

You could use this Dockerfile but I'd change the base image to ruby:2.5-alpine.

You're right, size is a problem if we just do it the way I suggested. But I would still like to keep the patches and diffs in the repo as it is right now. How about we create a tag for each patch and just include the single patch directory?

Hmm. I guess the container would still need to pull the whole repo first, so that's not a good option.

For each patch/diff we create a tag. Then when the web service receives a createPullRequest(github_url, pullrequest_id) it just clones the repo with the tag pullrequest_id as above and executes the Ruby commands.

@ataraxie built this in the end and @braxtonhall is working on getting it into the 310 fork (so it doesn't need to be here in master).

AWESOME


Upload to tusd behind HTTPS reverse proxy disconnects with EOF

I have a web application with many docker containers which I orchestrate with Docker Compose. All of my inbound requests come through a gateway service which terminates https then reverse-proxies them to another service within my docker network via http. This is the function I am using to proxy my requests:
func Proxy(host, port string, w http.ResponseWriter, r *http.Request) {
	// Update the request:
	r.URL.Scheme = "http"
	r.URL.Host = host + ":" + port

	// Make the proxy request:
	resp, err := http.DefaultTransport.RoundTrip(r)
	if err != nil {
		http.Error(w, err.Error(), http.StatusServiceUnavailable)
		return
	}
	defer resp.Body.Close()

	// Copy the response headers:
	dest := w.Header()
	for key, values := range resp.Header {
		for _, value := range values {
			dest.Add(key, value)
		}
	}

	// Copy the response status code:
	w.WriteHeader(resp.StatusCode)

	// Copy the i/o:
	_, err = io.Copy(w, resp.Body)
	if err != nil {
		http.Error(w, err.Error(), 500)
		return
	}
}

I am trying to set up a tusd instance inside another container with a volume for persistent storage. This is the main.go file for that service:
package main

import (
	"fmt"
	"log"
	"net/http"
	"os"

	"github.com/tus/tusd"
	"github.com/tus/tusd/filestore"
)

const (
	folderPath = "/var/lib/files"
	port       = ":8080"
)

func main() {

	// Create a new FileStore instance which is responsible for
	// storing the uploaded file on disk in the specified directory.
	// This path _must_ exist before tusd will store uploads in it.
	// If you want to save them on a different medium, for example
	// a remote FTP server, you can implement your own storage backend
	// by implementing the tusd.DataStore interface.
	store := filestore.FileStore{
		Path: folderPath,
	}

	// A storage backend for tusd may consist of multiple different parts which
	// handle upload creation, locking, termination and so on. The composer is a
	// place where all those separated pieces are joined together. In this example
	// we only use the file store but you may plug in multiple.
	composer := tusd.NewStoreComposer()
	store.UseIn(composer)

	// Create a new HTTP handler for the tusd server by providing a configuration.
	// The StoreComposer property must be set to allow the handler to function.
	handler, err := tusd.NewHandler(tusd.Config{
		BasePath:      "/files/",
		StoreComposer: composer,
	})
	if err != nil {
		panic(fmt.Errorf("Unable to create handler: %s", err))
	}

	// Right now, nothing has happened since we need to start the HTTP server on
	// our own. In the end, tusd will start listening on and accept request at
	// http://localhost:8080/files
	http.Handle("/files/", http.StripPrefix("/files/", handler))
	fmt.Println("Files server is running on port 8080")
	err = http.ListenAndServe(port, nil)
	if err != nil {
		panic(fmt.Errorf("Unable to listen: %s", err))
	}
}

When trying to upload from a TUSKit client (which I tested against the demo implementation and works fine), I'm getting the following error:
2019-08-07 00:31:28.444691+0200 TUSKit[13589:300537] <TUSResumableUpload.m:(403)> Created resumable upload at http://files.snag.news/files/65dd242a5d865ce64a4a1eeb8dfcd5f3 for id 0CF1BA84-CA53-4D90-BF64-4CE7062C613B
2019-08-07 00:31:28.449311+0200 TUSKit[13589:300537] <TUSResumableUpload.m:(549)> Resuming upload to http://files.snag.news/files/65dd242a5d865ce64a4a1eeb8dfcd5f3 with id 0CF1BA84-CA53-4D90-BF64-4CE7062C613B from offset 0
2019-08-07 00:31:28.450111+0200 TUSKit[13589:300537] <TUSData.m:(122)> TUSData stream opened
2019-08-07 00:31:28.450261+0200 TUSKit[13589:300537] <TUSData.m:(139)> Reading 32768 bytes from 0 to 32768 until 1865894
2019-08-07 00:31:28.485515+0200 TUSKit[13589:300537] <TUSData.m:(139)> Reading 32768 bytes from 32768 to 65536 until 1865894
2019-08-07 00:31:28.485788+0200 TUSKit[13589:300537] progress: 32768 / 1865894
2019-08-07 00:31:28.485954+0200 TUSKit[13589:300537] <TUSData.m:(139)> Reading 32768 bytes from 65536 to 98304 until 1865894
2019-08-07 00:31:28.486139+0200 TUSKit[13589:300537] progress: 65536 / 1865894
2019-08-07 00:31:28.486313+0200 TUSKit[13589:300537] <TUSData.m:(139)> Reading 32768 bytes from 98304 to 131072 until 1865894
2019-08-07 00:31:28.486499+0200 TUSKit[13589:300537] progress: 98304 / 1865894
2019-08-07 00:31:28.486633+0200 TUSKit[13589:300537] <TUSData.m:(139)> Reading 32768 bytes from 131072 to 163840 until 1865894
2019-08-07 00:31:28.486886+0200 TUSKit[13589:300537] <TUSData.m:(139)> Reading 32768 bytes from 163840 to 196608 until 1865894
2019-08-07 00:31:28.487047+0200 TUSKit[13589:300537] progress: 131072 / 1865894
2019-08-07 00:31:28.487202+0200 TUSKit[13589:300537] <TUSData.m:(139)> Reading 32768 bytes from 196608 to 229376 until 1865894
2019-08-07 00:31:28.487400+0200 TUSKit[13589:300537] progress: 163840 / 1865894
2019-08-07 00:31:28.487561+0200 TUSKit[13589:300537] progress: 196608 / 1865894
2019-08-07 00:31:28.745622+0200 TUSKit[13589:300686] [] nw_socket_handle_socket_event [C2.1:2] Socket SO_ERROR [54: Connection reset by peer]
2019-08-07 00:31:28.746875+0200 TUSKit[13589:300686] TIC Read Status [2:0x600002d9aac0]: 1:32
2019-08-07 00:31:28.751470+0200 TUSKit[13589:300686] Task <F931F697-AA2A-4262-B4BA-D90EEC7EA3D1>.<2> HTTP load failed (error code: -1005 [4:-4])
2019-08-07 00:31:28.751687+0200 TUSKit[13589:300587] Task <F931F697-AA2A-4262-B4BA-D90EEC7EA3D1>.<2> finished with error - code: -1005
2019-08-07 00:31:28.753059+0200 TUSKit[13589:300537] <TUSResumableUpload.m:(585)> Error or no response during attempt to upload file, checking state
2019-08-07 00:31:28.755931+0200 TUSKit[13589:300537] <TUSData.m:(166)> TUSData stream error (null)

However, the logs from my tusd server indicate that the upload and the retries were successful:
[tusd] 2019/08/06 22:11:40 event="RequestIncoming" method="POST" path=""
[tusd] 2019/08/06 22:11:40 event="UploadCreated" id="003f5518c2dd8130f699ba55263a8c39" size="1865894" url="http://files.snag.news/files/003f5518c2dd8130f699ba55263a8c39"
[tusd] 2019/08/06 22:11:40 event="ResponseOutgoing" status="201" method="POST" path=""
[tusd] 2019/08/06 22:19:35 event="RequestIncoming" method="POST" path=""
[tusd] 2019/08/06 22:19:35 event="UploadCreated" id="b35f9a69cf4309f6578d7c0d25394050" size="2570508" url="http://files.snag.news/files/b35f9a69cf4309f6578d7c0d25394050"
[tusd] 2019/08/06 22:19:35 event="ResponseOutgoing" status="201" method="POST" path=""
[tusd] 2019/08/06 22:31:28 event="RequestIncoming" method="POST" path=""
[tusd] 2019/08/06 22:31:28 event="UploadCreated" id="65dd242a5d865ce64a4a1eeb8dfcd5f3" size="1865894" url="http://files.snag.news/files/65dd242a5d865ce64a4a1eeb8dfcd5f3"
[tusd] 2019/08/06 22:31:28 event="ResponseOutgoing" status="201" method="POST" path=""

I suspect maybe the 201 returns an empty HTTP response which is causing the connection to terminate abruptly somewhere. Do you know where this might be breaking down?

I have some updates to share so I'm going to close this and reopen as a bug with new information.


Delete knative warning when Knative is not installed

The operator prints periodically this info:
{"level":"info","ts":1623416979.434832,"logger":"camel-k","msg":"could not find any knative type in namespace camel, last error was: services.serving.knative.dev is forbidden: User \"system:serviceaccount:camel:camel-k-operator\" cannot list resource \"services\" in API group \"serving.knative.dev\" in the namespace \"camel\""}

It looks like an error, while it's not. That log should be suppressed.

I'm happy to take a look at this if no one else already is!

@dimitraz great, feel free to go ahead. I think we use that opportunity to revisit the IsEnabledInNamespace method entirely, as I doubt the current implementation is relevant.

Getting this error when trying to deploy a KameletBinding onto a minikube cluster with the Camel K Operator running in the same namespace. The creation of the integrations fails and periodically prints out this message.

{"level":"info","ts":1633961666.2383604,"logger":"camel-k.controller.kameletbinding","msg":"Reconciling KameletBinding","request-namespace":"default","request-name":"chuck-norris-telegram-binding"}
{"level":"info","ts":1633961666.2408755,"logger":"camel-k.controller.kameletbinding","msg":"Invoking action monitor","request-namespace":"default","request-name":"chuck-norris-telegram-binding","api-version":"camel.apache.org/v1alpha1","kind":"KameletBinding","ns":"default","name":"chuck-norris-telegram-binding"}
{"level":"info","ts":1633961666.2700589,"logger":"camel-k","msg":"could not find any knative type in namespace default, last error was: services.serving.knative.dev is forbidden: User "system:serviceaccount:default:camel-k-operator" cannot list resource "services" in API group "serving.knative.dev" in the namespace "default""}

Any possible fixes for this one?

@astefanutti about your suggestion to revisit the knative.IsEnabledInNamespace function, it is my understanding this function is used in pkg/controller/integration/platform_setup.go to set the knative profile if knative is enabled in the ns, so in this context it looks to be doing correctly.
WDYT to remove the log from knative.IsEnabledInNamespace function and print it if the user explicitly enables the knative trait but there is no knative in the namespace ?

I'd like to work on this

How do I reproduce this bug

@KuthumiPepple When you run the camel-k-operator in a namespace with no knative resources,it will print the mentioned output in the camel-k-operator pod log.

@claudio4j So I built the operator with make and then followed this guide for running the operator locally. However, when I run kamel operator, I do not see the error message in the logs. It seems I may be missing something or doing something wrongly.

You should just install camel-k-operator in the kubernetes cluster and watch the camel-k-operator log. The kamel operator is for development purposes to run the camel-k-operator locally.

@KuthumiPepple Since it's been inactive for long time, let me unassign it from you.

That's OK.
On Fri, 2 Dec 2022, 06:34 Tadayoshi Sato, @.***> wrote:

@KuthumiPepple https://github.com/KuthumiPepple Since it's been
inactive for long time, let me unassign it from you.
—
Reply to this email directly, view it on GitHub
https://github.com/apache/camel-k/issues/2397#issuecomment-1334783953,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHKFLHJ7MENIQM74F7UWRYTWLGC6RANCNFSM46QWWGAA
.
You are receiving this because you were mentioned.Message ID:
@.***>

i am trying to create kamlet for kafka source as below
kamel bind kafka-source -p "source.bootstrapServers=my-cluster-kafka-brokers.kafka.svc.cluster.local:9092" -p "source.topic=kafka-push-logs" kafka.strimzi.io/v1beta1:KafkaTopic:kafka-push-logs -p "source.user=" -p "source.password="
Getting below error logs in camel-k-operator. Is there any step am I missing here? Do I need to provide some other configuration besides?
{"level":"info","ts":1670544567.7943175,"logger":"camel-k.controller.kameletbinding","msg":"Reconciling KameletBinding","request-namespace":"default","request-name":"kafka-source-to-kafka-push-logs"} {"level":"info","ts":1670544567.7944477,"logger":"camel-k.controller.kameletbinding","msg":"Invoking action initialize","request-namespace":"default","request-name":"kafka-source-to-kafka-push-logs","api-version":"camel.apache.org/v1alpha1","kind":"KameletBinding","ns":"default","name":"kafka-source-to-kafka-push-logs"} {"level":"info","ts":1670544567.7976258,"logger":"camel-k","msg":"could not find any knative type in namespace default, last error was: the server could not find the requested resource"} {"level":"error","ts":1670544567.8029149,"logger":"controller.kamelet-binding-controller","msg":"Reconciler error","name":"kafka-source-to-kafka-push-logs","namespace":"default","error":"could not determine sink URI: kafkatopics.kafka.strimzi.io \"kafka-push-logs\" not found","errorVerbose":"kafkatopics.kafka.strimzi.io \"kafka-push-logs\" not found\ncould not determine sink URI\ngithub.com/apache/camel-k/pkg/controller/kameletbinding.CreateIntegrationFor\n\tgithub.com/apache/camel-k/pkg/controller/kameletbinding/integration.go:109\ngithub.com/apache/camel-k/pkg/controller/kameletbinding.(*initializeAction).Handle\n\tgithub.com/apache/camel-k/pkg/controller/kameletbinding/initialize.go:53\ngithub.com/apache/camel-k/pkg/controller/kameletbinding.(*ReconcileKameletBinding).Reconcile\n\tgithub.com/apache/camel-k/pkg/controller/kameletbinding/kamelet_binding_controller.go:203\ngithub.com/apache/camel-k/pkg/util/monitoring.(*instrumentedReconciler).Reconcile\n\tgithub.com/apache/camel-k/pkg/util/monitoring/controller.go:70\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\tsigs.k8s.io/controller-runtime@v0.11.2/pkg/internal/controller/controller.go:114\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.11.2/pkg/internal/controller/controller.go:311\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.11.2/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.11.2/pkg/internal/controller/controller.go:227\nruntime.goexit\n\truntime/asm_amd64.s:1581","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.11.2/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.11.2/pkg/internal/controller/controller.go:227"} {"level":"info","ts":1670544608.7631521,"logger":"camel-k.controller.kameletbinding","msg":"Reconciling KameletBinding","request-namespace":"default","request-name":"kafka-source-to-kafka-push-logs"} {"level":"info","ts":1670544608.7632976,"logger":"camel-k.controller.kameletbinding","msg":"Invoking action initialize","request-namespace":"default","request-name":"kafka-source-to-kafka-push-logs","api-version":"camel.apache.org/v1alpha1","kind":"KameletBinding","ns":"default","name":"kafka-source-to-kafka-push-logs"} {"level":"info","ts":1670544608.7716732,"logger":"camel-k","msg":"could not find any knative type in namespace default, last error was: the server could not find the requested resource"} {"level":"error","ts":1670544608.777633,"logger":"controller.kamelet-binding-controller","msg":"Reconciler error","name":"kafka-source-to-kafka-push-logs","namespace":"default","error":"could not determine sink URI: kafkatopics.kafka.strimzi.io \"kafka-push-logs\" not found","errorVerbose":"kafkatopics.kafka.strimzi.io \"kafka-push-logs\" not found\ncould not determine sink URI\ngithub.com/apache/camel-k/pkg/controller/kameletbinding.CreateIntegrationFor\n\tgithub.com/apache/camel-k/pkg/controller/kameletbinding/integration.go:109\ngithub.com/apache/camel-k/pkg/controller/kameletbinding.(*initializeAction).Handle\n\tgithub.com/apache/camel-k/pkg/controller/kameletbinding/initialize.go:53\ngithub.com/apache/camel-k/pkg/controller/kameletbinding.(*ReconcileKameletBinding).Reconcile\n\tgithub.com/apache/camel-k/pkg/controller/kameletbinding/kamelet_binding_controller.go:203\ngithub.com/apache/camel-k/pkg/util/monitoring.(*instrumentedReconciler).Reconcile\n\tgithub.com/apache/camel-k/pkg/util/monitoring/controller.go:70\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\tsigs.k8s.io/controller-runtime@v0.11.2/pkg/internal/controller/controller.go:114\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.11.2/pkg/internal/controller/controller.go:311\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.11.2/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.11.2/pkg/internal/controller/controller.go:227\nruntime.goexit\n\truntime/asm_amd64.s:1581","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.11.2/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.11.2/pkg/internal/controller/controller.go:227"}

This issue should be already fixed with https://github.com/apache/camel-k/commit/3652ee74813567f255e7f353a5045301e3d08ed4


DEV-9254 Add support for Laravel 6

@dbhynds - is this PR complete as is?

Yep. I just needed to add support for laravel 6 so we could upgrade the App API

Sorry, was about to fill out the description, but you beat me to it.


⚠ Bofrost.be has degraded performance

In ecd0a43, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1285 ms

Resolved: Bofrost.be performance has improved in e9df7c0.


are you going to update this?

i want to use this for a little site and this is exactly what i want, however the upload pictures/videos thing hasn't been fixed yet.

Given that there is interest in it, I will update it.

thank you so much!

Can you update this?


Rule: sprintf-argument-mismatch

If too many or too few arguments are in the array provided to sprintf, OPA will return the "error" back in the string created.
> opa eval -f raw 'sprintf("%v", [1,2,3])'
1%!(EXTRA int=2, int=3)

opa eval -f raw 'sprintf("%v", [])'
%!v(MISSING)

It would be helpful if Regal did a count of the args in the string and compared it to the number of args in the array provided (if known), and flagged this as an issue.

% opa eval -f raw 'sprintf("%[1]v %[1]s", ["foo"])'
foo foo

It's annoying to fix this because we haven't specified what's OK and what is not, and the surface is just so large. But covering the 80% would certainly be useful.

Yeah, good point! I'd say covering the "normal" cases is probably going to amount to somewhere closer to 99%... but perhaps people are more creative with sprintf than what I've seen.
Both "explicit argument indexes" (of which I learnt about just now), and %% which means "literally %" should be possible to account for... but perhaps there are more ways to have % not necessarily map 1:1 to a value.


[BUG] special characters (ie. <) do not display when defined in xml

Describe the bug
Currently xml files cannot contain special characters like < or { in attribute values, such as in the following:
<label text="<" />

This is not terribly surprising as I think typically in xml you would need to use an xml entity for special characters like that, but unfortunately if you switch to something like this:
<label text="<" />

then it appears as the literal text < rather than translating properly. The same thing happens if you try defining a variable with < and then inserting it like:
<label text="{{lt}}" />

...

<var name="lt"><</var>

or if you try including it as a raw value:
<box>
  <
</box>

However, it should be possible to fix this by decoding the xml entity as if you update the variable from the command line like eww update lt="<" then it will start displaying the character as desired.
Reproducing the issue
As described above, try inserting either a < or < into any context (raw value, attribute value, variable value) within xml.
Expected behaviour
Either the < case or the < case should translate into displaying <. Although the former might work when quoted within a attribute value it'd probably be better and more consistent to go with the latter case.
Additional context
If applicable, provide additional context or screenshots here

This is the same issue as #147, I really need to start fixing this :(

Kotlin DSL config when
So we wont have to deal with stinky XML

This is the same issue as #147, I really need to start fixing this :(

Ah, sorry about the duplicate issue! I did some light peeking at the xml parsing and seems like it's simply a matter of running the strings through a conversion, although if you want to add a param to enable entity conversion then that'd of course be a bit more work.

I fear that it's not as simple, as it did work before - something i did to the attribute expressions broke this. I'll look into this right now....
I really want to start doing the config language, honestly. This is pain. Existence is pain.


Better linking between cockroach start and cockroach cert docs

From CSAT feedback on the cockroach cert doc: "existing docs are not clear. yes please make that bit specific were to use the commands."

@Amruta-Ranade, can you clarify what the action here is?


Nuitka makes list.append much slower

I've tried to compile a prime number sieve using nuitka <IP_ADDRESS> in order to investigate in what extent can nuitka speed up a python program, but the result was a bit disappointed. It showed Nuitka made the program 15%~30% slower than before. When I removed the list.append, the performance backed to normal, but still no performance gain.
Platform: Windows
CPU: Ryzen7 1700
RAM: DDR4-3200*2
Python: 3.8.7 (x64)
Nuitka: <IP_ADDRESS>
Compiler command:
nuitka --mingw64 --standalone --show-progress --output-dir=C:\Users\home\Desktop\1 "C:\Users\home\Desktop\Prime number.py"
Before using Nuitka (with list.append):

After using Nuitka (with list.append):

Before using Nuitka (without list.append):

After using Nuitka (without list.append):

Code (with list.append):
import math
import time
import os

def prime(n):
    if n <= 1:
        return 0
    for i in range(2, n):
        if n % i == 0:
            return 0
    return 1

if __name__ == "__main__":
    s = time.time()
    n = 50000
    result = []
    for i in range(2, n + 1):
        if prime(i):
            result.append(i)
    e = time.time()
    print(round(50000/(e-s),2),'/s')
    os.system('pause')

Code (without list.append):
import math
import time
import os

def prime(n):
    if n <= 1:
        return 0
    for i in range(2, n):
        if n % i == 0:
            return 0
    return 1

if __name__ == "__main__":
    s = time.time()
    n = 50000
    result = []
    for i in range(2, n + 1):
        if prime(i):
            a = i
    e = time.time()
    print(round(50000/(e-s),2),'/s')
    os.system('pause')

I agree with that, and it's a shame. In previous releases, even more so, because e.g. dictionary operations and list operations have been optimized on the C level, for where they are used, but they are not optimized into. So what's going on, is that the current loop optimization, doesn't detect that the .append  call is causing a potential escape of whatever it is, but being escaped is different from being unknown.
Therefore, these things are not yet optimized. I will need to be at the drawing board for this release cycle and see to it that "unknown", "escaped" and loop variable tracing interact more gracefully.
This is also the reason why integer C types (could be used for the loop variables) are not yet operational. Passing a variable marks is as escaped, if it's a loop variable, and nothing ever recognizes this to be the only escape, so it's not real.
Loop optimization is tricky, and admittedly, I haven't yet figured it fully out. Since I first introduced it 3 releases ago, I had to make corrections to it and I am glad it recognizes things now only correctly. But the differentiation from escaped and unknown must be pushed further. An escaped list e.g. is of course still a list, just not one where we can have value knowledge.

I got 14104.74 /s (CPython) vs 17688.68 /s (Nuitka) these days, which is a nice speedup. More will be hand in the future, when looping over those ranges happens in C int.  But since append to list is hard to optimize, that's a very welcome sight. Testing with 3.10 btw.

Your second form changed from 15679.39 /s (CPython) to 19119.11 /s (Nuitka) so that is reversed too. But I feel there ought to be a lot more possible. Anyway, seems we addressed this at some point.


feat: add highlight groups for folke/trouble.nvim

Adds highlight groups for folke/trouble.nvim. Trying to mimic the colors laid out in the first link to tokyonight theme, but it's a bit arbitrary. Let me know if you'd prefer some other colors.

Grazie 💜


How to pass a controller method to react via props?

I have a controller method which is a helper mehod and is available in my erb file. How to send it via props to react component?

I don't think this is a React on Rails issue. Maybe a question for StackOverflow?


runtests output verbosity

Hey there, first of all thanks for the work on this. Theres definitely a need for this library and I'm looking forward to working with it :)
I'd like to contribute toward the library, but I'm finding the output from the tests quite confusing and hard to follow. Even when removing the --verbose flag the output is incredibly verbose, seemingly dumping the contents of the elasticsearch index. Is there a way to stop this behaviour?

Resolves this by just editing the settings.py file, not sure if the --verbose flag does anything?

Hi,
Thanks for the kind words =)
Yeah, I agree the output is quite noisy when tests fail, but I haven't really looked into it. Did you find a fix?

I raised the log level for the elasticsearch and elasticsearch.trace loggers in tests.settings, might be worth keeping them above debug by default.

Yeah, thanks for the tip =)


Leak detection removal - 2nd attempt

What does this PR do?
Ctest sets an environment variable at runtime to ensure we trigger leak detection.
Use this variable to remove usage of sanitizer's leak detection. This is related to counter performance of leak detection on arm.
Motivation

Use the runtime mechanism to remove leak detection.
As ASAN was also using LSAN, the previous leak detection removal was a failure.

Apologies for the multiple PRs. Matching run that has good performances
https://gitlab.ddbuild.io/DataDog/ddprof/-/pipelines/7215729


Twitter Embed - Missing blockquote.twitter-tweet

per instructions at the bottom of the page:
https://developer.twitter.com/en/docs/twitter-for-websites/embedded-tweets/overview
the rendered blockquote does not have the twitter-tweet class, and so then twttr.widgets.load() is called as it is in the gatsby-browser.js file of the plugin, it doesn't end up being styled.

Discovered the HTML from the JSON response was being put through a sanitizer

Discovered the HTML from the JSON response was being put through a sanitizer =)

Happy you figured it out 🎉


How does run-all apply works ?

Hi, I'm currently trying to use the run-all (not the plan-all I know this is mostly broken and hard to get to work) command on several module. Repository is available here
For the sake of the example I'm first trying to execute from scratch the vpc and vpc-endpoints modules. I have dependencies loaded inside vpc-endpoint module with a read_terragrunt_config:
dependency "vpc" {
  config_path = "${get_original_terragrunt_dir()}/../vpc"

  mock_outputs = {
    vpc_id = "vpc-00000000"
    private_subnets = [
      "subnet-00000000",
      "subnet-00000001",
      "subnet-00000002",
    ]
    public_subnets = [
      "subnet-00000003",
      "subnet-00000004",
      "subnet-00000005",
    ]
    private_subnets_cidr_blocks = [
      "<IP_ADDRESS>/16",
      "<IP_ADDRESS>/8",
      "<IP_ADDRESS>/12"
    ]
    intra_route_table_ids = []
    private_route_table_ids = []
    public_route_table_ids = []
  }
}

I try to terragrunt run-all destroy --terragrunt-parallelism 1 --terragrunt-include-dir vpc --terragrunt-include-dir vpc-endpoints the first two modules:

vpc which as no dependencies
vpc-endpoints which depends on vpc

I get the following error at the end of vpc module execution and the start of vpc-endpoints:
aws_vpc_endpoint.this["s3"]: Creating...
╷
│ Error: Error creating VPC Endpoint: InvalidVpcId.NotFound: The Vpc Id vpc-00000000 does not exist
│       status code: 400, request id: 6048e344-57fe-4e7d-8ba9-4a8ee1995eda
│
│   with aws_vpc_endpoint.this["s3"],
│   on main.tf line 21, in resource "aws_vpc_endpoint" "this":
│   21: resource "aws_vpc_endpoint" "this" {
│
╵

From my understanding , it should re-read the output of the previously apply module and not use the mock output right ? Or maybe this is by design and I'm missing something. Should the run-all apply command be use only if "real` output dependencies are already here ? And therefore cannot be used from scratch ?

I would have to investigate further to know for sure, but my hunch is that this is a bug in the output cache of terragrunt. I will be taking a look at this next week.

@yorinasub17 did you manage to get some informations on this ? Can I help i any way ?

Hi @ArchiFleKs , sorry for the delay here! I had thought I commented here, but looks like I completely forgot!
This is hitting this bug, where terragrunt has no way of introspecting read_terragrunt_config to get dependency blocks when constructing the graph. Up until recently, there was no way to work around this, but you can now workaround this with the recently merged multiple includes feature.
Specifically, you want to switch your usage of read_terragrunt_config to pull in dependencies with an include block that has merge_strategy = "deep" so you can access the dependency outputs in the child config.
You can read more about multiple includes in the docs here. You will also want to take a look at the deep merge docs, here (under the heading "What is deep merge?").

Closing this as a duplicate.


Fix issue with filenames in plot_messages.py

Description
Include a summary of the change and relevant motivation/context. List any dependencies that are required for this change.
Fixes #35
Type of Change:
Fix bug in plot_messages.py and related documentation.

Code
Documentation

Code/Quality Assurance Only

Bug fix (non-breaking change which fixes an issue)
This change requires a documentation update (software upgrade on readme file)

How Has This Been Tested?
I ran the plot_messages.py command against a recent JSON download of my personal Facebook archive.
Checklist:
Delete irrelevant options.

[ ] I have ensured my PR satisfies the checklist mentioned in CONTRIBUTING.md. I've created an issue but did not get myself assigned to it. I don't know how to do that. I also didn't create a separate branch. I committed my change directly to master in my fork and submitted my pull request based on that. If you'd like me to redo this to comply with those requirements, let me know, but please advise on how I can get myself assigned to the issue.
[x] I have performed a self-review of my own code or materials
[x] I have made corresponding changes to the documentation

Code/Quality Assurance Only

[x] My changes generate no new warnings

Thanks for sending in this PR @sheldonrampton  :smile:
I'll check if the code works in some time, and merge it / give a review in the next 24 hours.


File Organization

The files feel a little bit clustered. Maybe create a folder for the calculators and leave out the main, end and restart files?

This has just been fixed, thanks for adding this in.


chore(master): release 1.5.3

:robot: I have created a release beep boop
1.5.3 (2022-07-01)
Bug Fixes

fix useCrudSchemas not work (0a855b9)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/kailong321200875/vue-element-plus-admin/releases/tag/v1.5.3 :sunflower:


Update pure_glow example to glutin 0.30

A lot has changed in glutin 0.30, it would be nice if the pure_glow example could be updated to glutin 0.30 :)
I had some code that was based on the pure_glow example before, now I'm updating it to glutin 0.30, but I'm not sure if I'm doing everything correctly with the new ways of doing things.
You can find my code here: https://github.com/rust-windowing/glutin/issues/1445#issuecomment-1337903593
I would appreciate if you can let me know if it's correct. The pure_glow example could be updated similarly.

@coderedart Thanks. And should I use .with_profile(GlProfile::Core) or not? :)

@coderedart Thanks. And should I use .with_profile(GlProfile::Core) or not? :)

always use Core, unless you are targeting really ancient hardware.


Bit allocation map

Hi !
Great work !
I have just one question : how did you compute the bits allocation map in Fig 3 in your article ?

Thanks !

Hi !
The code to compute the bits allocation map of the maximal entropy channel(selected by scale) is:
“ likelihood = self._likelihood(y, scale, means)
allocated_bits = torch.log(likelihood) / - math.log(2) ”
with "self._likelihood" defined here.

Hi !,
Thanks for answering so quickly.
I notice there is no such function self._likelihood for the stf (transformer) architecture.
How can I compute bit allocation map with the stf (transformer) ?
Thanks

Not exactly, if you want to acquire the bit_map_alloc in the 'forward', actually it should be like this:
def bit_map_alloc(self, x, scales, means=None) :
        # same as def forward in SymmetricalTransFormer
        x = self.patch_embed(x)

        Wh, Ww = x.size(2), x.size(3)
        x = x.flatten(2).transpose(1, 2)
        x = self.pos_drop(x)
        for i in range(self.num_layers):
            layer = self.layers[i]
            x, Wh, Ww = layer(x, Wh, Ww)

        y = x
        C = self.embed_dim * 8
        y = y.view(-1, Wh, Ww, C).permute(0, 3, 1, 2).contiguous()
        y_shape = y.shape[2:]

        z = self.h_a(y)
        _, z_likelihoods = self.entropy_bottleneck(z)
        z_offset = self.entropy_bottleneck._get_medians()
        z_tmp = z - z_offset
        z_hat = ste_round(z_tmp) + z_offset

        latent_scales = self.h_scale_s(z_hat)
        latent_means = self.h_mean_s(z_hat)

        y_slices = y.chunk(self.num_slices, 1)
        y_hat_slices = []
        y_likelihood = []

        for slice_index, y_slice in enumerate(y_slices):
            support_slices = (y_hat_slices if self.max_support_slices < 0 else y_hat_slices[:self.max_support_slices])
            mean_support = torch.cat([latent_means] + support_slices, dim=1)
            mu = self.cc_mean_transforms[slice_index](mean_support)
            mu = mu[:, :, :y_shape[0], :y_shape[1]]

            scale_support = torch.cat([latent_scales] + support_slices, dim=1)
            scale = self.cc_scale_transforms[slice_index](scale_support)
            scale = scale[:, :, :y_shape[0], :y_shape[1]]

            _, y_slice_likelihood = self.gaussian_conditional(y_slice, scale, mu)

            y_likelihood.append(y_slice_likelihood)
            y_hat_slice = ste_round(y_slice - mu) + mu

            lrp_support = torch.cat([mean_support, y_hat_slice], dim=1)
            lrp = self.lrp_transforms[slice_index](lrp_support)
            lrp = 0.5 * torch.tanh(lrp)
            y_hat_slice += lrp

            y_hat_slices.append(y_hat_slice)

        y_hat = torch.cat(y_hat_slices, dim=1)

        # here the 'likelihoods' have been computed
        y_likelihoods = torch.cat(y_likelihood, dim=1)
        allocated_bits = torch.log(likelihood) / - math.log(2)
        return allocated_bits

Here we get the allocated bits (or entropy) of the entire ‘y_hat' .
To visualize it, we choose the maximal entropy channel, so there remains extra post-processing to do.

Ho ok !
Indeed, I get allocated_bits= torch.Size([1, 384, 48, 80])
So, if I understand correctly, we selecte the max entropy channel out of the 384 channels and then, do I resize that channel to the original image size ?

Yes, and directly visualizing the channel (torch.Size([48, 80])) without resizing.

Ok got it !
Thank you so much !!

Ho ok ! Indeed, I get allocated_bits= torch.Size([1, 384, 48, 80])
So, if I understand correctly, we selecte the max entropy channel out of the 384 channels and then, do I resize that channel to the original image size ?

这步完了，还需要从384个通道找出最大熵通道，再对最大熵的这些通道进行可视化？


Fix panic when an invalid oauth2 name is passed

When trying to access an invalid oauth2 link, we get an internal server error and can see a panic stack-trace in logs
Example:
Try to go to this url for a gitea installation
https://<gitea_url>/user/oauth2/DoesNotExist?redirect_to=
It causes an internal server error
Stack trace in log
2022/08/17 01:26:50 routers/web/base.go:134:1() [E] [62fc43da] PANIC: runtime error: invalid memory address or nil pointer dereference
        /usr/local/go/src/runtime/panic.go:220 (0x453095)
        /usr/local/go/src/runtime/signal_unix.go:818 (0x453065)
        /source/routers/web/auth/oauth.go:1100 (0x20f6ef7)
        /source/routers/web/auth/oauth.go:785 (0x20f4684)
        /source/modules/web/wrap_convert.go:47 (0x1f45196)
        /source/modules/web/wrap.go:41 (0x1f433c9)
        /usr/local/go/src/net/http/server.go:2084 (0x93cace)
       <clipped>

Root cause:
In this line here, err is nil. The caller assumes no error and tries to access a nil *Source

Codecov Report

Merging #20820 (9c4da36) into main (efaa995) will decrease coverage by 0.01%.
The diff coverage is 17.64%.

@@            Coverage Diff             @@
##             main   #20820      +/-   ##
==========================================
- Coverage   47.06%   47.05%   -0.02%
==========================================
  Files         987      988       +1
  Lines      136398   136368      -30
==========================================
- Hits        64201    64171      -30
- Misses      64316    64317       +1
+ Partials     7881     7880       -1

Impacted Files
Coverage Δ

models/auth/oauth2.go
59.56% <0.00%> (-0.56%)
:arrow_down:

models/db/iterate.go
0.00% <0.00%> (ø)

models/git/lfs.go
25.90% <ø> (+2.53%)
:arrow_up:

models/repo/attachment.go
53.38% <ø> (+6.72%)
:arrow_up:

models/repo/repo_list.go
78.80% <ø> (+3.13%)
:arrow_up:

models/user/search.go
87.83% <ø> (+16.40%)
:arrow_up:

modules/hostmatcher/hostmatcher.go
85.22% <0.00%> (-1.99%)
:arrow_down:

routers/private/mail.go
0.00% <0.00%> (ø)

routers/web/admin/admin.go
10.00% <0.00%> (-0.03%)
:arrow_down:

services/auth/reverseproxy.go
0.00% <0.00%> (ø)

... and 14 more

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

Please send backport


Add e2e test for server-url validation

Summary
Fixes #5666 & #8893

Occurred changes and/or fixed issues

Technical notes summary

Areas or cases that should be tested

Areas which could experience regressions

Screenshot/Video

Checklist

[ ] The PR is linked to an issue and the linked issue has a Milestone, or no issue is needed
[ ] The PR has a Milestone
[ ] The PR template has been filled out
[ ] The PR has been self reviewed
[ ] The PR has a reviewer assigned
[ ] The PR has automated tests or clear instructions for manual tests and the linked issue has appropriate QA labels, or tests are not needed
[ ] The PR has reviewed with UX and tested in light and dark mode, or there are no UX changes

@izaac @yonasberhe23 I've updated the tests based on the feedback, I've also added the same validation tests to the rancher-setup page.


sabre algorithm improvements in transpilation at level 3 not in effect

Environment

Qiskit Terra version: 0.22.2 (vs. 0.21.1)
Python version: 3.8.2
Operating system: Windows

What is happening?
transpilation at optimization_level=3 does not (significantly) perform better in terra 0.22.2 than 0.21.1 despite improvements in sabre algorithm.
How can we reproduce the issue?
both in terra 0.22.2 and 0.21.1 run:
qc.x(5)
qc.h(range(6))
qc.cx(range(5),5)
qc.h(range(5))
qc.measure(range(5), range(5))
qc.draw('mpl')

# Transpile the circuit 'qc' 1000 times
trans_circ_list = transpile([qc]*1000, backend, optimization_level=3)

# get the number of cnot gates
cx_counts = np.asarray([circ.count_ops().get('cx', 0) for circ in trans_circ_list])

# create violin plot
import seaborn as sns
ax = sns.violinplot(data=[cx_counts])

What should happen?
Acc to level 3 preset , there should be 20 swap_trials performed for each iteration of transpile. So, the performance should be improved by these 20 iterations. Instead, there is no visible difference, but doing 20 iterations of transpile manually in qiskit 0.21.1 performs much better (will take about 60mins on a 4core-CPU):
global_circ_list=[]

for i in range(1000):
    # Transpile the circuit 'qc' 20 times
    trans_circ_list_loop = transpile([qc]*20, backend, optimization_level=3)

    # get the number of cnot gates
    cx_counts_loop = np.asarray([circ.count_ops().get('cx', 0) for circ in trans_circ_list_loop])
    #print('Number of cnots:', cx_counts_loop)

    # select the circuit with the lowest number
    best_idx_loop = np.argmin(cx_counts_loop)
    best_trans_qc_loop = trans_circ_list_loop[best_idx_loop]
    global_circ_list.append(best_trans_qc_loop)

cx_counts_global = np.asarray([circ.count_ops().get('cx', 0) for circ in global_circ_list])

combining all in the plot shows that manually pre-transpiling in the older qiskit version performs much better

Any suggestions?
there might be a minimization step missing, or a mixup of max_iterations  and swap_trials in
https://github.com/Qiskit/qiskit-terra/blob/90b158c7e02432db957762e58c4c2ed75d89a1ca/qiskit/transpiler/preset_passmanagers/level3.py#L140

This isn't a fair comparison, which is likely where the difference is coming in.  swap_trials modifies how many different attempts SabreSwap makes each time it's called, but when you rerun transpile, you get different randomisation for the initial layout chosen in SabreLayout (which isn't subject to repeats), before SabreSwap even runs for the first time.  The final output of the transpilation is more susceptible to changes in that layout, but right now we're not doing multiple attempts of that component (only the internal routing done within SabreLayout).

I would expect to see a similar improvement for your circuit if you tried the same repeated transpile on 0.22 as you did on 0.21, for the same reason.

I think the point is that the parallel swap trials should be picking the lowest swap count circuit, when it is clear that it is currently not.

We're not finding a lower swap count and then throwing it away. The trick is that a full transpile runs the entire layout pass with new seeds, whereas we're just reseeding the internal routing passes used within the layout pass. It was much easier to get that to run in parallel than repeating the entire layout pass lots of times, because it happens in Rust space, not Python space.
We are looking to revise the defaults, and re-running the whole layout is something we're interested in, for sure. I'm just saying that this is a bug report suggesting there's an actual mistake in SabreLayout, and I don't think that's the case - what's happened here was by design.

Ok, then it is a bit of a misunderstanding then.  We will just go back to telling people to transpile multiple times again for best results.  I think this can probably be closed since this is currently expected behavior.

We can leave it open to track - this is something we want to improve on.

Thanks for clarifying. More of a feature request that you already have in mind then

I pushed up https://github.com/Qiskit/qiskit-terra/pull/9116 to do multiple seed trials for the combination of layout and routing here: https://github.com/Qiskit/qiskit-terra/pull/9116 I still need to tune the PR and characterize the performance (both in quality and runtime). But if you'd like to give that a try and see how it works for your use case that would be useful feedback while it's still under review/being developed.

Playing a bit locally with the bv example you were using, for the bernstein vazirani circuit the output quality is definitely primarily a function of the layout. I did a nested sweep to 250 trials of both layout and routing trials with #9116 applied. The script is below (which will only work if you do pip install git+https://github.com/mtreinish/qiskit-core@sabre-layout-rust and have a rust compiler available).
import csv
import statistics
import time

import numpy as np
import retworkx as rx

from qiskit import QuantumCircuit
from qiskit.converters import circuit_to_dag, dag_to_circuit
from qiskit.transpiler import CouplingMap
from qiskit.circuit.library import QuantumVolume, QFT
from qiskit.transpiler.passes import SabreLayout, Unroll3qOrMore
from qiskit.providers.fake_provider import FakeMumbaiV2
from qiskit.compiler import transpile

def bench_bv():
    rng = np.random.default_rng(42_11_11_2022)
    with open("bv.csv", "w", newline="") as csvfile:
        times_writer = csv.writer(csvfile)
        times_writer.writerow(["swap_trials", "layout_trials", "run_time", "swap_count", "depth"])
        basis_gates = ["cx", "x", "sx", "rz", "reset", "delay"]
        backend = FakeMumbaiV2()
        cmap = backend.coupling_map

        qc = QuantumCircuit(6, 5)
        qc.x(5)
        qc.h(range(6))
        qc.cx(range(5),5)
        qc.h(range(5))
        qc.measure(range(5), range(5))
        for seed in rng.integers(0,<PHONE_NUMBER>, size=1, dtype=int):
            for layout_trials in sorted(set(np.linspace(1, 250, dtype=int))):
                for swap_trials in sorted(set(np.linspace(1, 250, dtype=int))):
                    print(f"Layout trials: {layout_trials}, Swap Trials: {swap_trials}")
                    super_pass = SabreLayout(coupling_map=cmap, seed=seed, swap_trials=swap_trials, layout_trials=layout_trials)
                    dag = circuit_to_dag(qc)
                    start = time.perf_counter()
                    res = super_pass.run(dag)
                    stop = time.perf_counter()
                    run_time = stop - start
                    swap_count = res.count_ops().get('swap', 0)
                    out_depth = res.depth()
                    times_writer.writerow([swap_trials, layout_trials, run_time, swap_count, out_depth])
                    print(f"Run time: {run_time}, non_local gates: {swap_count}, depth: {out_depth}")

if __name__ == "__main__":
    bench_bv()

which yielded this result:
bv.csv
The swap count and depth decrease only as we increase the number of layout trials.

This is interesting.  Let me play with the notebooks that I have looking at some of the other circuits.

One thing of interest is 5Q tests on Quito (Fake version).  It seems that I consistently get a larger cx gate count then a year ago where the max was ~85 or so: https://quantum-enablement.org/posts/2021/2021-10-31-best_swap_mapper_qiskit.html#efficient-su2-full
Now I consistently get >100 (on the branch above) using:

import numpy as np
from qiskit import QuantumCircuit
from qiskit.providers.fake_provider import FakeMumbaiV2, FakeQuitoV2
from qiskit.compiler import transpile

from qiskit.circuit.library import QuantumVolume, EfficientSU2, TwoLocal, QFT

backend = FakeQuitoV2()
qc = EfficientSU2(5, entanglement='full')
trans_circs = transpile([qc]*20, backend, optimization_level=3)
[circ.count_ops().get('cx',0) for circ in trans_circs]

E.g.
[125,
 112,
 112,
 112,
 112,
 117,
 117,
 117,
 118,
 125,
 129,
 112,
 117,
 117,
 108,
 129,
 121,
 112,
 112,
 125]

I need to decouple the notebook from Tket before running everything, but what is given here is the first thing I tried

Hmm, yeah I was seeing bad performance with that branch in other benchmarks too: https://github.com/Qiskit/qiskit-terra/pull/9116#issuecomment-1311955595 I'm still not super confident with it which is why it's [WIP] still, I probably broke something or am doing something else wrong in the PR.
At least running the EfficientSU2 example on mainand0.22.2returns68` for all the circuits.

I think that I fixed the issues in #9116 that was causing poor results before. The output of running the EfficientSU2 compilation with the PR applied is now [72, 68, 68, 68, 68, 72, 68, 68, 68, 68, 72, 68, 68, 72, 68, 68, 72, 72, 68, 68] (the behavior with the BV circuits remains unchanged).


sandbox/htmlize: remove preferences tab

Describe the issue
There are two problems with the preference tab in the right frame:

Preferences shouldn't be in a tab.  Nearly the entire world has settled on an icon in the upper right hand corner for preferences.
They're showing preferences that probably shouldn't be preferences.  Which tab is the default indicates perhaps that we haven't concluded what the right tab is.  We should do that.  Also, htmlize text versus plaintextify html raises the same question.  I suspect that ties to whether we have a good HTML diff mechanism.

Code of Conduct

[x] I agree to follow the IETF's Code of Conduct

On (1), would you then show the prefs with a modal?
On (2), I'd love to pick one choice for everything, but past feedback was such that everyone wanted something different.

On (1) you have to render these things slightly differently on different media.  There are plenty of real life examples, not least of which is the one I'm typing into now and you are reading this on.
On (2) stop asking.  If you have a parkable frame with tabs, which one is the default matters a lot less.

As an aside, I find it entertaining that I can check the "agree to the code of conduct" box, submit, and then unclick the box.

Do you have any positive feedback about this aspect?

I have no other feedback. Going to close.


opendir method can not open folder named by chinese

Hello, tronkko.
Thank you for your unselfish work.  I tested your programs and find one problem. That opendir method can not open folders named by chinese. It seems chinese word is wide charactor itself. Can you help to solve this problem? To make it work well both in English and Chinese.
Best Regards.
Xikang

Thank you for your reply. But what should I do, when a string contains both Chinese and English charactors?
As a chinese charactor uses two bytes, and a english charator uses one bytes?

Hello , tronkko.
I fixed this issue, by setlocale. I think other country people may solve this problem, use this method.
Thank you very much.
#include <locale.h>
#if defined(_MSC_VER)  &&  _MSC_VER >= 1400
	/* Microsoft Visual Studio 2005 or later */
	setlocale(LC_ALL,"chs");
	error = mbstowcs_s(pReturnValue, wcstr, sizeInWords, mbstr, count);


Help!!!

oops! All right @izu-co
I haven't used the tool for a while and I don't know why it's giving this error. I believe everything is ok?
C:\Users\OryWareKyrie\Downloads\multi-downloader-nx-18.01.22\lib>node index.js --service funi -s 36591 -e 01 -q 7 --dubLang jpn por
=== Multi Downloader NX 2.0.18 ===
[#36591] Spice and Wolf (2008)
[0001] Spice and Wolf - #01 Wolf and Best Clothes (00:24:17) [SD486, Japanese, Spanish, Portuguese] (selected)
[0002] Spice and Wolf - #02 Wolf and Distant Past (00:24:17) [SD486, Japanese, Portuguese, Spanish]
[0003] Spice and Wolf - #03 Wolf and Business Talent (00:24:17) [SD486, Japanese, Spanish, Portuguese]
[0004] Spice and Wolf - #04 Wolf and Her Helpless Partner (00:24:17) [SD486, Japanese, Portuguese, Spanish]
[0005] Spice and Wolf - #05 Wolf and Lovers' Quarrel (00:24:17) [SD486, Japanese, Portuguese, Spanish]
[0006] Spice and Wolf - #06 Wolf and Silent Farewell (00:24:17) [SD486, Japanese, Spanish, Portuguese]
[0007] Spice and Wolf - #07 Wolf and a Tail of Happiness (00:24:17) [SD486, Japanese, Portuguese, Spanish]
[0008] Spice and Wolf - #08 Wolf and Virtuous Scales (00:24:17) [SD486, Japanese, Spanish, Portuguese]
[0009] Spice and Wolf - #09 Wolf and the Shepherd's Lamb (00:24:17) [SD486, Japanese, Spanish, Portuguese]
[0010] Spice and Wolf - #10 Wolf and the Swirling Plot (00:24:17) [SD486, Japanese, Portuguese, Spanish]
[0011] Spice and Wolf - #11 Wolf and the Biggest Secret Scheme (00:24:17) [SD486, Japanese, Portuguese, Spanish]
[0012] Spice and Wolf - #12 Wolf and a Group of Youngsters (00:24:17) [SD486, Japanese, Spanish, Portuguese]
[0013] Spice and Wolf - #13 Wolf and a New Beginning (00:24:07) [SD486, Japanese, Portuguese, Spanish]
[0000] Spice and Wolf S2 - #00 Wolf and Amber Melancholy (00:24:12) [SD486, Japanese, Spanish, Portuguese]
[0014] Spice and Wolf S2 - #14 Wolf and the Inadvertent Rift (00:24:17) [HD1080, Japanese, Spanish, Portuguese]
[0015] Spice and Wolf S2 - #15 Wolf and the Calm Before the Storm (00:24:17) [HD1080, Japanese, Spanish, Portuguese]
[0016] Spice and Wolf S2 - #16 Wolf and the Gap That Cannot Be Filled (00:24:17) [HD1080, Japanese, Portuguese, Spanish]
[0017] Spice and Wolf S2 - #17 Wolf and the End of Shallow Thinking (00:24:17) [HD1080, Japanese, Portuguese, Spanish]
[0018] Spice and Wolf S2 - #18 Wolf, Hope and Despair (00:24:17) [HD1080, Japanese, Spanish, Portuguese]
[0019] Spice and Wolf S2 - #19 Wolf and Trustworthy God (00:24:17) [HD1080, Japanese, Spanish, Portuguese]
[0020] Spice and Wolf S2 - #20 Wolf and Playful Days (00:24:17) [HD1080, Japanese, Portuguese, Spanish]
[0021] Spice and Wolf S2 - #21 Wolf and a Fascinating Traveler (00:24:17) [HD1080, Japanese, Spanish, Portuguese]
[0022] Spice and Wolf S2 - #22 Wolf and Reckless Negotiation (00:24:17) [HD1080, Japanese, Portuguese, Spanish]
[0023] Spice and Wolf S2 - #23 Wolf and Lonely Smile (00:24:17) [HD1080, Japanese, Portuguese, Spanish]
[0024] Spice and Wolf S2 - #24 Wolf and the Decision to Part (00:24:17) [HD1080, Japanese, Portuguese, Spanish]
[0025] Spice and Wolf S2 - #25 Wolf and Endless Tears (00:24:07) [HD1080, Japanese, Portuguese, Spanish]
[INFO] Selected Episodes: 0001
[INFO] Spice and Wolf - S1E1 - Wolf and Best Clothes
[INFO] Available streams (Non-Encrypted):
[#71895] Japanese [Uncut]
[#4013814] Portuguese (Brazil) [Uncut]
[#4013703] Spanish (Latin Am) [Uncut]
[ERROR] Track not selected
I tried with another one here and it wasn't either

Make sure you can access the content on funimation tho.

Make sure you can access the content on funimation tho.

I just saw it and I have access

I have no idea why it wouldn't work, then. I just copied and pasted your command into my local installation (it is the same as if you were to build from source).
Can you try to make a clean installation?

I have no idea why it wouldn't work, then. I just copied and pasted your command into my local installation (it is the same as if you were to build from source).


Undefined value of getReturnType().getName()

Hi
I use the following script to extract the return type of a function with Ghidra 9.1.2
FunctionSignature Func_sign = function.getSignature();
String ret = Func_sign.getReturnType().getName();

However, I noticed that many of the ret value is "undefined". What does undefined mean here?
For example, function 0x5c9c in the test.zip.

From what I understand, "undefined" is a generic type with unknown size.
Unless the function signature is defined (extracted from the debug sections, or defined and commited by you), all functions will return undefined by default.
This is a way to tell the decompiler "I don't know what this function returns, make the best guess you can".
So when the decompiler sees a call to this function, it will try to guess the correct return value. If the calling function then uses EAX, it will guess that you returned an int. If the calling function uses AL, it will guess that it returned a char.
Note that there are also undefined types of known size, for example undefined2. This means that the decompiler understands that it's a 2-byte value, but it doesn't know whether it is signed or unsigned for example.

From what I understand, "undefined" is a generic type with unknown size.
Unless the function signature is defined (extracted from the debug sections, or defined and commited by you), all functions will return undefined by default.
This is a way to tell the decompiler "I don't know what this function returns, make the best guess you can".
So when the decompiler sees a call to this function, it will try to guess the correct return value. If the calling function then uses EAX, it will guess that you returned an int. If the calling function uses AL, it will guess that it returned a char.
Note that there are also undefined types of known size, for example undefined2. This means that the decompiler understands that it's a 2-byte value, but it doesn't know whether it is signed or unsigned for example.


Fix privacy issue with password reset request

Returning resource_data in render_create_success allows anyone to get all user data that is being serialized in application from resource model by using just an email, as
POST /api/v1/auth/password with {email<EMAIL_ADDRESS>return_url: '...'}
returns body like that:
{
  "success": true,
  "data": {
    "id": 130,
    "uid"<EMAIL_ADDRESS>    "unconfirmed_email": null,
    "email"<EMAIL_ADDRESS>    "first_name": "Kiana",
    "last_name": "Kiehn",
    "organization": "Vel",
    "phone": "551-432-2662",
    ...
  },
  "message": "..."
}

I think that this is a regression that was introduced in this commit
This pr removes that data from response.

great catch. thanks @biomancer !


Join Table Between Outputs and Claims

A claim has at least one output, the original one that created the claim. However, it can also have multiple updates. Creating a join table between these will allow for better access to important information from previous updates or the original claim.

OutputClaim table has been added and migration created 0b8ae9337508b53e91ef3ce2bc293ee45cdd6a96
Still needs processing logic to make sure these are created.

A join table is not needed and is unnecessary overhead so I removed that. Instead I have added claimid to the output table so that any output can reference a claim. This will allow left join queries to obtain all the outputs for a claimid. This will be needed for solving https://github.com/lbryio/lighthouse/issues/63. To solve that issue we need to be able to take an outpoint and get the correct claimid. Currently it is calculating the claimid based off of the outpoint. However, the outpoint could be an update to a claim causing the wrong claimid to be calculated as the claimid is from the original outpoint. With this change we can query the outpoint and grab the claimid.


chk system.nim:1:0 works fine, but def not

Did one more test to see if nimsuggest can compile system.nim at all -- and it can, chk command works fine:
nimsuggest --stdin system.nim
debug
chk system.nim:1:0
only some warnings
But when I try to query the len proc:
def system.nim:2136:5
lib/system.nim(163, 17) Warning: expr is deprecated [Deprecated]
lib/system.nim(2136, 19) Error: type mismatch: got (openarray[T])
but expected one of:
proc len[T](x: seq[T]): int
proc len[I, T](x: array[I, T]): int
proc len(x: cstring): int
proc len(x: string): int
proc len[TOpenArray: openArray | varargs](x: TOpenArray): int
lib/system.nim(2136, 9) Error: type mismatch: got (void, )
but expected one of:
proc newSeq[T](s: var seq[T]; len: Natural)
proc newSeq[T](len = 0.Natural): seq[T]
lib/system.nim(2137, 16) Error: type mismatch: got (openarray[T])
but expected one of:
proc len[T](x: seq[T]): int
proc len[I, T](x: array[I, T]): int
proc len(x: cstring): int
proc len(x: string): int
proc len[TOpenArray: openArray | varargs](x: TOpenArray): int
lib/system.nim(2137, 24) Error: expression 'result' has no type (or is ambiguous)
lib/system.nim(2137, 30) Error: type mismatch: got ()
but expected one of:
proc []=[I: Ordinal, T, S](a: T; i: I; x: S)
lib/system.nim(2218, 74) Warning: expr is deprecated [Deprecated]

Can you give the context for def system.nim:2136:5. This bug report is tied to a specific system version.

system.nim:2136:5 is line with "newseq" from
proc @*[T](a: openArray[T]): seq[T] =
turns an openarray into a sequence. This is not as efficient as turning
a fixed length array into a sequence as it always copies every element
of a.
newSeq(result, a.len)
for i in 0..a.len-1: result[i] = a[i]


Fix tab content view recreation

This PR intent to prevent tab content view recreation.
Mainly used StateObject to maintain the state and set opacity=0 to keep the view.  (And aslo support tab content view lazy loading)
Sorry for the many format changes due to SwiftFormat.  Also, I made some modifications to the test the view keeping in the demo. If you don't like it, I can submit a new PR with minimal changes.

Updated the base branch to release/2.0.0 as it introduces breaking changes.


Support extra k8s manifests

Adds support for extra manifests to deploy objects like ExternalSecrets or SealedSecrets.

Until this gets merged you can use this workaround ( requires you to have kube-state-metrics installed )
  kube-state-metrics:
    extraManifests:


PPU Workspace but unable to perform any other dataset action other than "Update Parameters"

My workspace resides in a PPU capacity but when I right click a dataset, hoping to see things like TMDL and memory statistics, I only get the option to update parameters.

according to the screenshot it looks like you are using an old version of the extension - can you check?
please make sure to use the latest version v2.4.0

Very sorry if I'm being dim but I don't know how to do that. The latest version available in VS Code is 0.98! Does the version of VS Code I'm running matter, I'm on 1.78.2?

looks like an issue with your mirror where VSCode checks for the extensions
you might want to try to download the .vsix directly from the gallery (https://marketplace.visualstudio.com/items?itemName=GerhardBrueckl.powerbi-vscode) and install it manually


Archive odimh5 repository

[x] @stijnvanhoey Verify odimh5 functionality is integrated in vptstools
[ ] @stijnvanhoey Can odimh5 be removed from PyPI? See also https://github.com/enram/odimh5/issues/2. Or be marked as deprecated?
[x] @peterdesmet archive repository: https://github.com/enram/odimh5

I propose to mark odim5 as a deprecated package in pypi with a
from setuptools import setup
setup(name = "odim5",
     version="1.0.0",
     install_requires=["vptstools"],
)

The repo https://github.com/enram/odimh5 is now archived.
@niconoe can you update the odim5 pypi page as suggested by @stijnvanhoey above? We don't have write access.

Hello,
I updated the package as suggested by @stijnvanhoey and pushed it to PyPI, I didn't knew this approach but it indeed looks like the right thing to do.
I wanted to try that the redirect works from a user perspective (asking to install odimh5 in a fresh virtualenv), but I couldn't make it work since it appears vptstools is currently unavailaible on PyPI, see https://pypi.org/search/?q=vptstools
The behavior we currently observe is:

Fail if we request the "new version":

pip install odimh5==1.0.0                                           ✔  odimh5-test-redirect-2 3.10.5   10:43:03 
Collecting odimh5==1.0.0
  Using cached odimh5-1.0.0-py3-none-any.whl (3.2 kB)
ERROR: Could not find a version that satisfies the requirement vptstools (from odimh5) (from versions: none)
ERROR: No matching distribution found for vptstools

fallback to the old version if no specific version required:

pip install odimh5                                                    ✔  odimh5-test-redirect 3.10.5   10:41:24 
Collecting odimh5
  Downloading odimh5-1.0.0-py3-none-any.whl (3.2 kB)
  Using cached odimh5-0.1.0-py3-none-any.whl (3.9 kB)
Collecting h5py>=3.1.0
  Using cached h5py-3.8.0-cp310-cp310-macosx_11_0_arm64.whl (2.6 MB)
Collecting pytz
  Using cached pytz-2023.3-py2.py3-none-any.whl (502 kB)
Collecting numpy>=1.14.5
  Using cached numpy-1.24.3-cp310-cp310-macosx_11_0_arm64.whl (13.9 MB)
Installing collected packages: pytz, numpy, h5py, odimh5
Successfully installed h5py-3.8.0 numpy-1.24.3 odimh5-0.1.0 pytz-2023.3

I suggest that we retry those 2 cases after vptstools is available and make sure the redirect works as expected.
Please note that I didn't pushed the "redirect change" to GitHub, since the repository is now read-only.

@niconoe if you want I can temporarily unarchive the repo for you.

We can do that!

@niconoe now unarchived, let me know when I can archive it again.

You can now!

Done


tuntox: init at 0.0.10

Motivation for this change
Completes including package for #32823. Does not include adding a nixos service.
@fgaz
While the upstream author builds binaries for linux, macOS is not included, nor does it appear on homebrew.
One specific use case for this package is to enable easier use of https://elpa.gnu.org/packages/crdt.html across the public internet.
Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[X] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[X] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[X] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[X] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 160548 run on x86_64-linux 1

1 package built:

tuntox

Result of nixpkgs-review pr 160548 run on x86_64-darwin 1

1 package built:

tuntox

@fgaz sounds good re #32823. I think I got all the issues worked out here. There were some fixed derivation has issues (I think stemming from including keepDotGit, which I thought I needed to deal with the Makefile, but turned out to be unnecessary). Let me know if there's anything else that needs to go here! Thanks!

@adisbladis @jwiegley although not directly depended on by emacs, adding this would simplify use of crdt.el, particularly the darwin users who can't just download the pre-built binaries.

Many thanks @ehmry!

tuntox provides output only to stderr, so I can't even do a quick grep on the help message correctly

@willcohen please open an issue or PR then. I'd be happy to make tuntox a good unix citizen.

Issue at https://github.com/gjedeer/tuntox/issues/68!


Error regarding weight dimensions

Hi! I am getting the following error when running the code:
ValueError: Layer weight shape (3, 64, 3, 3) not compatible with provided weight shape (3, 3, 3, 64)
I wonder if this has to do with compatibility between different versions of Keras? I am using 1.2.2, although I tried switching to 1.1.0 as well, and it didn't appear to resolve it.

It shows the shape of pre-trained weight provided is not the same as the shape of weight the layer needs, I'm not sure where the problem occurs, but I guess it could be the backend you use(tensorflow or theano) and the configuration of image_dim_ordering(th or tf).
Try this:

Check whether file ~/.keras/keras.json exists, if ~/.keras/keras.json does not exist, just create it.
Insert following content into ~/.keras/keras.json
{
"epsilon": 1e-07,
"floatx": "float32",
"backend": "theano",
"image_dim_ordering" : "th"
}
Run the code again

If this does not work, please show us the complete error message, including in which line the error occurs. It will help us find out where the problem occurs.

Ah, it works now - I was using tensorflow as my backend. If theano is a requirement, it would be great if that can be added to the dependencies in the readme file, in case anyone else has the same issue. Thanks for your help!

Great, hope this repo can give you some help. I will update the dependencies, thanks for your advice.

Hi,
I am having the exact same error. And the keras.json file already exists, and has the exact same line as you described above. My keras version is 2.0.3.
Do you know what would be the problem? Thanks!

Traceback (most recent call last):   File "Deconvnet-keras.py", line 526, in <module>     main()   File "Deconvnet-keras.py", line 514, in main     layer_name, feature_to_visualize, visualize_mode)   File "Deconvnet-keras.py", line 418, in visualize     deconv_layers.append(DConvolution2D(model.layers[i]))   File "Deconvnet-keras.py", line 59, in __init__     )(input)   File "/Users/AriaW/anaconda2/lib/python2.7/site-packages/keras/engine/topology.py", line 558, in __call__     self.set_weights(self._initial_weights)   File "/Users/AriaW/anaconda2/lib/python2.7/site-packages/keras/engine/topology.py", line 1158, in set_weights     'provided weight shape ' + str(w.shape)) ValueError: Layer weight shape (3, 64, 3, 3) not compatible with provided weight shape (3, 3, 3, 64)

Traceback (most recent call last):
File "Deconvnet-keras.py", line 526, in
main()
File "Deconvnet-keras.py", line 514, in main
layer_name, feature_to_visualize, visualize_mode)
File "Deconvnet-keras.py", line 418, in visualize
deconv_layers.append(DConvolution2D(model.layers[i]))
File "Deconvnet-keras.py", line 59, in init
)(input)
File "/Users/AriaW/anaconda2/lib/python2.7/site-packages/keras/engine/topology.py", line 558, in call
self.set_weights(self._initial_weights)
File "/Users/AriaW/anaconda2/lib/python2.7/site-packages/keras/engine/topology.py", line 1158, in set_weights
'provided weight shape ' + str(w.shape))
ValueError: Layer weight shape (3, 64, 3, 3) not compatible with provided weight shape (3, 3, 3, 64)

Hi,
This is a backend problem, because the weight shapes of tensorflow and theano are different. Make sure you are using theano backend. I will test the code with keras 2.0.3 and then give you a reply

I downgraded it to 1.1 but the error remains the same. I am sure I am using the theano backend.

Downgrading keras to 1.1 did solve this. Thanks!


udp_access_logs: add support for byte transport statistics

Additional Description: Adding support for the following access log substitution strings in UDP flows: %BYTES_RECEIVED%, %BYTES_SENT%, %UPSTREAM_HEADER_BYTES_SENT%, %UPSTREAM_HEADER_BYTES_RECEIVED%, %UPSTREAM_WIRE_BYTES_SENT%, %UPSTREAM_WIRE_BYTES_RECEIVED%
Risk Level: low
Testing: integration tests
Docs Changes: Access log usage, changelog
Release Notes: none
Platform Specific Features: none

/retest


Server crash while accessing variable fields

Problem
Sometimes cadence server just crashing when I starting type something
Steps to Reproduce
I guess it could be reproduced when you writing variable.{Try random letters, it will happen}
Context
[Error - 2:37:14 PM] Connection to server got closed. Server will not be restarted.
[Error - 2:37:14 PM] Request textDocument/codeAction failed.
Error: Connection got disposed.
at Object.dispose (/home/mostyxs/.vscode/extensions/dapperlabs.cadence-0.6.1/out/main.js:29:4057)
at Object.dispose (/home/mostyxs/.vscode/extensions/dapperlabs.cadence-0.6.1/out/main.js:34:9518)
at Af.handleConnectionClosed (/home/mostyxs/.vscode/extensions/dapperlabs.cadence-0.6.1/out/main.js:36:9073)
at Af.handleConnectionClosed (/home/mostyxs/.vscode/extensions/dapperlabs.cadence-0.6.1/out/main.js:39:12267)
at n (/home/mostyxs/.vscode/extensions/dapperlabs.cadence-0.6.1/out/main.js:36:8755)
at hu.invoke (/home/mostyxs/.vscode/extensions/dapperlabs.cadence-0.6.1/out/main.js:2:9583)
at Rr.fire (/home/mostyxs/.vscode/extensions/dapperlabs.cadence-0.6.1/out/main.js:2:10348)
at ot (/home/mostyxs/.vscode/extensions/dapperlabs.cadence-0.6.1/out/main.js:3:10845)
at hu.invoke (/home/mostyxs/.vscode/extensions/dapperlabs.cadence-0.6.1/out/main.js:2:9583)
at Rr.fire (/home/mostyxs/.vscode/extensions/dapperlabs.cadence-0.6.1/out/main.js:2:10348)
at Po.fireClose (/home/mostyxs/.vscode/extensions/dapperlabs.cadence-0.6.1/out/main.js:2:12622)
at Socket. (/home/mostyxs/.vscode/extensions/dapperlabs.cadence-0.6.1/out/main.js:2:14174)
at Socket.emit (events.js:327:22)
at Pipe. (net.js:673:12)

same issue : Connection got disposed

@MostyXS @peter064226 Would you be able to share the code and actions you tried to perform when you observe the crash?

@turbolent Hey, I've been running into the same issues for a little while.
Here are some more (verbose) logs: https://gist.github.com/siddthesquid/dac81e701f0855e96fb9102a386ebdc2
$ flow version
Version: v0.33.0
Commit: d4ae23176dbb8890547bcb98ceaf19f15fc04bf2

I only ever see this break on transactions and scripts. Here is one example of how I can reproduce the break - I have the following transaction
transaction() {
  prepare(greeter: AuthAccount) {
  }
}

Now, if I type in "greeter.s", the server breaks on that last 's'.
transaction() {
  prepare(greeter: AuthAccount) {
    greeter.s
  }
}

I don't think this is an issue anymore by the way. The server has not crashed for me ever after a lot of Cadence


Md Masum Hossain

Please help me my problem

Why:
Closes [issue link]

What's being changed:

Check off the following:

[x] I have reviewed my changes in staging (look for "Automatically generated comment" and click Modified to view your latest changes).
[x] For content changes, I have completed the self-review checklist.

Writer impact (This section is for GitHub staff members only):

[x] This pull request impacts the contribution experience

[x] I have added the 'writer impact' label
[x] I have added a description and/or a video demo of the changes below (e.g. a "before and after video")

Please help

Reopen

Please help

Reopen

Reopen

Reopen

Reopen

Reopen

Reopen

Reopen

Reopen

Reopen

Reopen

Reopen

Reopen

Reopen

Reopen

Reopen


CodeMirror components are not preloaded

I have reviewed the component and it seems that the configuration that is injected is not loaded

For example in the case of themes, you have to copy the css from the package and add it to the project so that you can actually find it

Another problem that I find is that in case of editing a text component, when reopening the code, it does not preload the changes, but rather it stays with the initially injected code.

In that order of ideas, how could I activate the extensions as autocomplete?

Up

You're asking too much stuff outside of scope of this plugin. In your case it would be probably easier to create your own custom code component with all the logic you're asking


Correct for jittering

I am not sure if Ultrack has a function to correct for jittering? In may dataset, when there is a little jitter (usually occurs in the first to the second frame and when a treatment is added), the tracks are messed up.

Hi, Alexandre
We have a more sophisticated and (brittle) approach to register different frames using a flow field; it's used on this example.
If your jitter is mostly a translation shift, using skimage to register when pre-processing your image will be more robust.
This function is a good starting point:
import numpy as np
import scipy.ndimage as ndi
from skimage.registration import phase_cross_correlation
from tqdm import tqdm

def _register(video: np.ndarray) -> np.ndarray:
    # registration using channel 1
    reg_channel = 1
    for t in tqdm(range(video.shape[0] - 1), "register"):
        shift, error, _ = phase_cross_correlation(
            video[t, reg_channel],
            video[t + 1, reg_channel],
            normalization=None,
            overlap_ratio=0.25,
        )
        video[t+1] = ndi.shift(video[t+1], (0, *shift), order=1)
    return video

Thank, Jordao! I will try it

We included register_timelapse to do this, @brunicardoso . I'm closing this issue. Thanks for the request.


Missing x86_64 architecture for visionOS simulator

When building the app for testing on any visionOS simulator device, it fails with following message

I am trying to make the updates myself, but am not able to run the ./build-libraries.sh and the scripts inside ffmpeg-kit are failing

Afaik visionOS doesn't support x86_64 and required Apple Silicon.

Yeah, but simulator itself is a macos app, like other simulators

Found it's a missing architecture from the function-xros.sh script from the ffmpeg-kit repo

Fixed in 1.2.0.