add tags?

Can you add tags please? so this can be better versioned?

I've been on vacation with limited email access, but I do plan to do this once I  get a chance to sit down at my desk.
Sent from my iPhone
On Aug 17, 2016, at 7:41 PM, jay8t6 <notifications<EMAIL_ADDRESS>wrote:
Can you add tags please? so this can be better versioned?

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/VACLab/d3-tip/issues/1, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGufgH9D4-6KEcootRUYTj36R-xCm-yTks5qg5wngaJpZM4Jm_xU.

Thank you!
Sent from my iPhone

On Aug 20, 2016, at 1:51 PM, davegotz<EMAIL_ADDRESS>wrote:
I've been on vacation with limited email access, but I do plan to do this once I get a chance to sit down at my desk.
Sent from my iPhone
On Aug 17, 2016, at 7:41 PM, jay8t6 <notifications<EMAIL_ADDRESS>wrote:
Can you add tags please? so this can be better versioned?

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/VACLab/d3-tip/issues/1, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGufgH9D4-6KEcootRUYTj36R-xCm-yTks5qg5wngaJpZM4Jm_xU.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Done.  The current version has been tagged "1.0".


disk-analyse: Support WWarp image files

WWarp is an Amiga "MFM warper", similar in function to MFMWarp, NomadWarp and probably various other tools. A .wwp image contains MFM data but no bit/byte timing info.
It would be nice if disk-analyse could support WWarp (.wwp) images. WWarp includes source code, and include/wwarp.i more or less describes the file format.  [WWarp has special handling for various non-standard formats used by some games. As a first step it wouldn't be necessary to support those; you could just work with .wwp images that were created with the NoStd argument, where the image contains plain MFM data.]
http://www.whdload.de/whdload/WWarp128.lha
I could supply example .wwp files if needed, though it's easy to create them from within emulation.
If you ever feel like supporting other Amiga warper images, TrackWarp includes source which may be useful (but probably only if you're happy reading 680x0 assembly language...).
http://www.whdload.de/whdload/TrackWarp17.lha

Thanks. It looks like TrackWarp supports a range of image formats including MFMWarp? That is handy if so, could get WWarp and MFMWarp support from above links.


REST API - Attachment restricted flag not returned properly from GET

Only standard attachments were setting the flag properly, all the custom attachments didn't set it properly (qti, youtube etc..)

Autotests test this


Merge Dev ke UAT 25 Aug 2017

Coverage increased (+0.01%) to 70.211% when pulling 52c1516001816dc670ba304257f184e01db7146e on dev into 26be9f2a06d15527028d39b2b905b6ee5937ada1 on uat.


Automatic Mail feature

Expected Behavior
After some one registers in the website, an automatic mail is send to the new user that he or she has registered in book.ly.
Current Behavior
User is just being added to the database.
I would like to work on this feature @vikasdo please assign it to me.

Please label this issue as GSSOC21 @vikasdo sir, also which command did you use to create requirements.txt, I usually use pip3 freeze > requirements.txt but my requirements file looked very different then the one in fit repo(I just need to add Flask-Mail==0.9.1).

So add flask mail in it

added this feature but another error popped up so I have to resolve that first.

Hello, please assign this issue to me


cmd/compile: unhelpful error message with recursive constraint

What version of Go are you using (go version)?

$ go version
go version devel go1.21-af8f94e3c5 Tue Jul 11 21:30:51 2023 +0000 linux/amd64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
N/A
What did you do?
https://go.dev/play/p/WWBorJLIgwe?v=gotip
package main

func main() {}

func New[T any](x any) {
	f(x.(I[T]))
}

func f[T I[T]](t T) {}

type I[T any] interface {
	M(t T)
}

What did you expect to see?
A more helpful error message.
What did you see instead?
./prog.go:6:3: T (type I[T]) does not satisfy I[T] (wrong type for method M)
		have M(T)
		want M(T)

AIUI, the actual error stems from the fact that the receiver type does not match the type in the method argument, but the error message only includes the method signature, which makes it hard to see what the actual problem is, particular in the context of a much larger program.

@griesemer

Manually instantiating (rather than relying on type inference) the call of f exposes the problem:
func New[T any](x any) {
	f[I[T]](x.(I[T])) // <<< manual instantiation
}

func f[T I[T]](t T) {}

type I[T any] interface {
	M(t T)
}

The error is:
testdata/manual.go:11:4: I[T] does not satisfy I[I[T]] (wrong type for method M)
                        have M(T)
                        want M(I[T])

Agreed that we need to find a better way to report this.

Stop-gap solution in place for now. Moving to 1.23.

Too late for 1.23. Moving to 1.24.

Too late for 1.24. Moving to 1.25.


Dependancy version update of jackson, jinjava, jsoup, guava and log4j.

Related issues: https://github.com/wso2/product-is/issues/12454
Purpose

Dependency version update of

jackson-core - 2.9.8 -> 2.10.5
jackson-databind - <IP_ADDRESS> -> <IP_ADDRESS>
jackson-annotations - 2.9.8 -> 2.10.5
jackson-core - 2.9.8 -> 2.10.5
jinjava - 2.4.14 -> 2.5.9
log4j - 2.12.0 -> 2.13.2
guava - 27.0.1-jre -> 30.0-jre

Add new dependency

jackson-dataformat-yaml - 2.10.5
jsoup - 1.14.2

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/1208037515

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/1208037515
Status: success

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/1208658215

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/1208658215
Status: success

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/1212013892

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/1212013892
Status: success


refactor(split): Split into multiple classes

Split Pack and Unpack into separate classes

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


fetchPackageMetaData error error for<EMAIL_ADDRESS>Unexpected token } in JSON

Getting below error on running the command
When running below command
npm i<EMAIL_ADDRESS>or
npm install @angular/cli

getting following error
http fetch GET 304 http://registry.npmjs.org/bluebird 81ms (from cache)
8 silly fetchPackageMetaData error for<EMAIL_ADDRESS>Unexpected token } in JSON at position 5285 while parsing near '...uebird-0.7.12-1.tgz"}},"0.7.12-2":{"name...'
9 timing stage:rollbackFailedOptional Completed in 1ms
10 timing stage:runTopLevelLifecycles Completed in 208ms

Please answer the questions the best you can:

What version of bluebird is the issue happening on?
3.7.0

What platform and version? (For example Node.js 0.12 or Google Chrome 32)
Node v12.18.2
npm v6.14.5
Mac

Did this issue happen with earlier version of bluebird?

(Write description of your issue here, stack traces from errors and code that reproduces the issue are helpful)

Hey, not related to bluebird.


Is it possible to pipe ffmpeg in?

The readme instructions involve dumping all frames on to the hard drive before running the tool over them. With other tools I have seen its possible to have ffmpeg piped in so the frames do not have to be stored which is pretty useful since they can easily take up hundreds of GB. Is there a way to do that here?

@Qwertie- I have an idea, but it may or may not work - instead of extracting all frames at once, maybe you can try extracting certain frames within a range, let's say 1 second. Run that through dain-ncnn-vulkan, save the output into a video somehow, and then concatenate multiple video clips into your real output. With the same parameters for each of your clips, it should be doable to just concatenate the video without re-encoding. If your video has audio, I guess it will be major pain to re-sync it, but I never worked with that before so I might be wrong.


syntax: world + interface

WIP
This is the initial implementation of #83 and #116 currently covering a subset of the proposed syntax, i.e. top-level world and interface items however use is currently disabled pending further design.
An example of the syntax that is currently supported by this PR:
// one.wit

interface "consumer" {
    consume: func(arg: string)
}

interface "producer" {
    produce: func() -> string
}

world "component" {
    default produce-consume: interface {
        record info {
            v: string
        }

        produce: func() -> info
        consume: func(i: info)
    }
    import consumer: "consumer"
    import producer: "producer"
}

Signed-off-by: Brian H<EMAIL_ADDRESS>

cc @alexcrichton
Also this code is pretty ugly at the moment but ill keep this PR up-to-date with changes as I churn.

Ok I've pushed up some more commits here for:

The test suite should now be passing for all existing crates.
All wit-parser tests are updated to use worlds
Some basic world-using tests were added for ui and ui/parse-fail
Added support for default export ... in world, at most once
Removed all existing support for use
Plumbed through Docs in a location or two

I think that this is now in a ready-to-go state. The plan after merging this is to, in parallel, remove Interface::parse_file and to continue to improve the text format. Notably the text format here is not intended to be final, it's a small step towards "let's have all the syntax in one text file". Further PRs will continue to make breaking changes to the text format and extend it, for example the removal of use is intended to be temporary while "more official" semantics are worked out.

@alexcrichton use is used in a few places, but only to import u32 type aliases which previously were handle types, so we could just duplicate those type aliases in each wit that needs them for now.

Ok makes sense, in that case if it's ok I think it's best to land this and then fork off the work for use.


describe subjectaccessreview

Adds a description and example of using the new subjectaccessreviews.v1beta1.authorization.k8s.io endpoint.
@kubernetes/sig-auth

This change is

Added a couple of comments.

comments addressed.

@deads2k , I accidentally merged this when it was targeted at Master, but it's not supposed to go live until release-1.4. I've reverted that merge. Can you retarget these changes to the release-1.4 branch?


CASMCMS-8380: Add missing whitespace to CFS usage statement; other minor linting of CFS usage

Summary and Scope
The CFS usage statement in the Cray CLI had a missing whitespace character. In addition to fixing that, I also did a couple other small linting fixes (added missing hyphens to some words, capitalized acronyms that were in lowercase).
When I updated the copyright header, I updated it to include both 2022 and 2023, because this file was changed in 2022 but that PR accidentally forgot to update the header to include that year.
Issues and Related PRs

source repo PR -- This makes the same changes to the API spec in the CFS repo itself
Resolves CASMCMS-8380.

Testing
nox > Session cover was successful.
nox > Ran multiple sessions:
nox > * tests: success
nox > * cover: success

I installed the new RPM on surtur (csm 1.4.0-alpha.14) and verified that the CFS usage message is now as desired.
Risks and Mitigations
Very very low risk -- only change is to usage message text and some description fields in the openapi spec.
Pull Request Checklist

[X] Version number(s) incremented, if applicable
[X] Copyrights updated
[X] License file intact
[X] Target branch correct
[X] Testing is appropriate and complete, if applicable
[X] HPC Product Announcement prepared, if applicable

Thanks for explaining the use of patch version instead of minor version.  That, however isn't have I use patch versions in craycli, I use them on release branches to indicate patches to a release, this allows me to diverge from the same minor version once a release branch has been cut without impinging on the next release.  Please bump the minor version instead. Thanks!

@erl-hpe Are there additional steps I need to take in order to get this merged?


Package installation artifacts with Helm

The kamel binary is useful for development purposes, but we need also to be compatible with CI/CD platforms to support automated deployments.
First target is to support Helm (https://github.com/helm/helm) as deployment model for the operator, integration platform, contexts and integrations.
Supporting Helm will enable integration with various CI/CD platforms, including Jenkins X (https://github.com/jenkins-x).

Hello,
Do you have a high level plan of what is needed to get this done, my team and I are willing to do the work if you can provide some guidance.
Cheers!

Help support is really a must IMO, because it's a default app manager for k8s, at least that's what I see around me.
Do you still have any plans for the future about it?

Definitely. Assigned to next milestone.


Source Connector connected but not  fetching data from mongodb

Hi
Source Connector connected but not  fetching data from mongodb.
Please advice.
[2017-12-05 16:59:58,009] INFO Cluster created with settings {hosts=[<IP_ADDRESS>:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500} (org.mongodb.driver.cluster:71)
[2017-12-05 16:59:58,016] INFO Cluster description not yet available. Waiting for 30000 ms before timing out (org.mongodb.driver.cluster:71)
[2017-12-05 16:59:58,019] INFO Opened connection [connectionId{localValue:3, serverValue:282}] to <IP_ADDRESS>:27017 (org.mongodb.driver.connection:71)
[2017-12-05 16:59:58,019] INFO Monitor thread successfully connected to server with description ServerDescription{address=<IP_ADDRESS>:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 4, 10]}, minWireVersion=0, maxWireVersion=5, maxDocumentSize=16777216, roundTripTimeNanos=280047} (org.mongodb.driver.cluster:71)
[2017-12-05 16:59:58,020] INFO WorkerSourceTask{id=mongodb-source-connector-0} Source task finished initialization and start (org.apache.kafka.connect.runtime.WorkerSourceTask:158)
[2017-12-05 16:59:58,024] INFO Opened connection [connectionId{localValue:4, serverValue:283}] to <IP_ADDRESS>:27017 (org.mongodb.driver.connection:71)
[2017-12-05 16:59:58,024] INFO Opened connection [connectionId{localValue:5, serverValue:284}] to <IP_ADDRESS>:27017 (org.mongodb.driver.connection:71)
[2017-12-05 16:59:58,024] INFO Opened connection [connectionId{localValue:6, serverValue:285}] to <IP_ADDRESS>:27017 (org.mongodb.driver.connection:71)
[2017-12-05 17:00:57,903] INFO WorkerSourceTask{id=mongodb-source-connector-0} Committing offsets (org.apache.kafka.connect.runtime.WorkerSourceTask:306)
[2017-12-05 17:00:57,904] INFO WorkerSourceTask{id=mongodb-source-connector-0} flushing 0 outstanding messages for offset commit (org.apache.kafka.connect.runtime.WorkerSourceTask:323)
Best regards,

$ curl localhost:8083/connectors/mongodb-source-connector/tasks
[
{
"id":
{
"connector":"mongodb-source-connector",
"task":0
},
"config":{
"databases":"db.movies,mydb.ratings,db.usersAndMovies",
"topic.prefix":"abhishek",
"task.class":"org.apache.kafka.connect.mongodb.MongodbSourceTask",
"schema.name":"test",
"batch.size":"100",
"converter.class":"org.apache.kafka.connect.mongodb.converter.JsonStructConverter"
,"uri":"mongodb://<IP_ADDRESS>:27017"
}
}
]

$curl localhost:8083/connectors/mongodb-source-connector/status
{
"name":"mongodb-source-connector",
"connector":{
"state":"RUNNING",
"worker_id":"<IP_ADDRESS>:8083"
},
"tasks":
[
{
"state":"RUNNING",
"id":0,
"worker_id":"<IP_ADDRESS>:8083"
}
],
"type":"source"
}

I do not get any messages in my kafka topic. Any idea?

As @ruileal said, MongoDB has to be configured as a replica set. In short, to make it work:

stop MongoDB;
edit the configuration file (usually in /etc/mongod.conf), uncomment the replication line and add a replSetName: rs line;
start MongoDB again;
execute rs.initiate() from its command line.

Then, you should start seeing the oplog messages.

@system103:~$ rs.initiate()

I am not getting oplog messages

Does mongo have replication set? Check this - https://docs.mongodb.com/manual/core/replica-set-oplog/. Also, it might be easy to just clone the source and run test case- testInsertWithNullOffsets by setting your connection string. You have to comment a bunch of things, but it's easier to debug issues that way.


Missing methods to easily access reset_state and states within keras.Model

System information.
TensorFlow version (you are using): 2.11.0
Are you willing to contribute it (Yes/No) : yes
Describe the feature and the current behavior/state.
Stateful RNN layers have the method layer.reset_state() and the states themselves can be fetched through layer.states. However, when I have a model consisting of many RNN layers, mixed with other layers, it becomes tedious to loop through all layers and reset them manually. So state-of-the-art is something like:
for l in model.layers:
	if hasattr(l, 'reset_state'):
		l.reset_state()

This becomes really combersome, when you use bidirectional RNNs, because then you need to also check if the layer has l.forward_layer and l.backward_layer and also reset the states in them.
Therefore my proposal is to add reset_state, get_states and set_states to keras.Model. The last two work similar to get_weights() and set_weights(). Possible implementation could be:
def reset_state(self):
	def reset_state(l):
		if hasattr(l, 'reset_state'):
			l.reset_state()
		if hasattr(l, 'forward_layer'):
			reset_state(l.forward_layer)
		if hasattr(l, 'backward_layer'):
			reset_state(l.backward_layer)

	for l in self.layers:
		reset_state(l)

def get_states(self):
	states = []
	def get_states(l):
		if hasattr(l, 'states'):
			lst += l.states
		if hasattr(l, 'forward_layer'):
			get_states(l.forward_layer)
		if hasattr(l, 'backward_layer'):
			get_states(l.backward_layer)

	for l in self.layers:
		get_states(l)

	return states

def set_states(self, states):
	it = iter(states)
	def set_states(l):
		if hasattr(l, 'states'):
			for s in l.states:
				s.assign(next(it))
		if hasattr(l, 'forward_layer'):
			set_states(l.forward_layer)
		if hasattr(l, 'backward_layer'):
			set_states(l.backward_layer)

	for l in self.layers:
		set_states(l)

Will this change the current api? How?
Yes, it adds the methods reset_state, get_states and set_states to class keras.Model, so people don't need to loop through the Keras data structures.
Who will benefit from this feature?
All people that use stateful RNN layers ;)
Contributing

Do you want to contribute a PR? (yes/no): yes, if my employer is willing to sign the CLA
If yes, please read this page for instructions
Briefly describe your candidate solution(if contributing): see above

@mergian ,
Thanks for your suggestion. Please feel free to raise PR for your idea.Thanks !

👍🏻 will start working on it now.

Just saw, that keras.layers.RNN.reset_states has a states argument (https://github.com/keras-team/keras/blob/master/keras/layers/rnn/base_rnn.py#L846), which can be used to set the states, so I think set_states will not be needed. What's your opinion on it?

Hi @mergian ,
I gone through this method reset_states() from Bidirectional RNN API document and the implementation for reset_states() mentioned there as below.
    def reset_states(self):
        self.forward_layer.reset_states()
        self.backward_layer.reset_states()

Wouldn't this solves your purpose? Please let us know.

I think I wasn't clear with the question. In my first post I proposed to add def set_states(self, states): to the keras.Model class. But then I saw that the RNN layers already has a def reset_states(self, states): method (see here), so I think it would be more consistent to add the following functions to keras.Model:

def reset_states(self, states=None): identical to keras.layers.RNN.reset_state(self, states=None)
def get_states(self): similar to keras.Model.get_weights(self) but for the RNN states
@property def states(self): similar to keras.Model.weights but for the RNN states

If that is OK, then I will prepare the pull request and we can discuss details later if necessary.

@mergian ,
I just want to give some context in case you are using the Bidirectional wrapper in the model.
You can proceed to PR and we can discuss details later also.


Write docs for Access Controls

This has been reviewed, but waiting to merge the new docs until the UI is in.


Use DIDs

I think that switching to DIDs instead of, right now, IPNS addresses is a good thing. The DID spec allow for multiple kind of DIDs.
IPNS
https://docs.ipfs.io/concepts/ipns/

Included in go-ipfs, no other dependency.
Can use PubSub for real time update.

--- PRO --- CON ---

Slow
Managing IPNS records is a mess.
No easy way to hold your keys securely. Ideally you'd want a browser extension that ask a hardware wallet to sign message so that it's easy to update.

ION
https://identity.foundation/ion/

Faster resolution? Would have to test that it's actually faster than IPNS via Pubsub.

--- PRO --- CON ---

No easy way to hold your keys securely. Ideally you'd want a browser extension that ask a hardware wallet to sign message so that it's easy to update.
Not integrated with IPFS. It add another dependency.

Others
https://w3c.github.io/did-spec-registries/#did-methods
Counter-Argument
https://dwhuseby.medium.com/dids-are-dead-32a5295016c4

One could implement an IPNS system useable in browser with an hardware wallet.

what are your thoughts on Ceramic and their DID tools?

Thanks man - i'm reading that article now - I am really still trying to get my head around the whole ecosystem.  i've also been looking at brightid.org and find it really attractive in more ways for its simplicity and more algorithmic & anonymized so somewhat intrinsically more secure approach
what i see as potential value is the organizing layer of ipfs - since that is something of a mess.
i'm also playing around here https://gitcoin.co/issue/ceramicnetwork/ceramic/80/100026723 and would totally enjoy your perspective if you're interested... perhaps DIT could build out a schema "standard" to simplify integrations and discovery

Thanks man - i'm reading that article now - I am really still trying to get my head around the whole ecosystem. i've also been looking at brightid.org and find it really attractive in more ways for its simplicity and more algorithmic & anonymized so somewhat intrinsically more secure approach
what i see as potential value is the organizing layer of ipfs - since that is something of a mess.
i'm also playing around here https://gitcoin.co/issue/ceramicnetwork/ceramic/80/100026723 and would totally enjoy your perspective if you're interested... perhaps DIT could build out a schema "standard" to simplify integrations and discovery

BirghtID cannot be used in a decentralized ways It require a central registry for verification. You could look at the Upala Protocol it's more open and would warp around any kind of identity system.
As a general rule if your asked to; sign up, pay something or something is gated, not open source, it's not decentralized even if they say so. Decentralized is just a buzz word at this point you got to read and understand how the system really work.
About organising data, that's what IPLD is for, no reason to use the Ceramic network as far as I know.


Completion of Multishot Accept returns invalid fd without error.

Hi,
While writing an io_uring server, I came across weird behavior for completions of multishot_accept. The CQE of the second multishot accept returns a positive number for cqe->res; however, this file descriptor is invalid. (The fd is always 195 on a few machines that I tested).
This only occurs if defer-task run is enabled and the first accepted client continuously pushes data to its socket. Then, the second client connects after some delay and the  the server gets a wrong fd in the CQE of the multishot-accept.
When I alter the setup, e.g. using singleshot-accept, coop-taskrun/sqpoll or multishot-accept all new fds of connecting clients are valid. Also, if the second client connects immediately without a delay, thus having no load on the server yet, the fd is also valid,
So, the high-level experiment consists of the following steps:

Server: prep_multishot_accept, prep_recv for each connecting client
Client 1 connect, while(1) => send()
Client 2 sleep 3s, connect, socket is open, but server got an invalid positive fd number.

Here is a small test code that narrows down the problem I observed. It spawns a server thread and two client threads, which connect via localhost.
The code can be compiled with or without optimizations.
Affected Kernels: 6.8.0-rc3, 6.7.4, 6.6.9, 6.6.1
Working Kernel: 6.2.0
Link to code: https://gist.github.com/mjasny/c387bd3536d5b572c676dba6cb1c8062
Link against liburing master and run with ./fd_bug -d 1 -s 0 -m 1.
Server: mshot_accept=1, sqpoll=0, defer_tw=1
Server ready
Client 1 connected
New client: 0/6<PHONE_NUMBER>36576
Clients started
Client 2 connected
*** fd: 195 error: Bad file descriptor ***
New client: 1/195<PHONE_NUMBER>36624
multishot accept cancelled res=195
cqe ud:<PHONE_NUMBER>36624 res: -9 Bad file descriptor

The -9 Bad file descriptor error (last line) in the test comes from the recv that was issued for the bad file descriptor 195 (same userdata<PHONE_NUMBER>36624).
Note: When I startup valgrind with the example it segfaults internally and crashes.

Thanks for the report with a reproducer - I'll take a look.

Looks like you're hitting CQE overflow when posting the multishot accept CQE, and this is triggering a bug in how multishot accept deals with an overflow condition. I didn't look too much at your application example, but that's a lot of CQEs that are being posted and not handled in a timely fashion. I suspect the task_work fairness changes that I did for 6.9 will help with that. I'll check, and link the fix for the overflow condition with accept, in a bit.

After the fix:
axboe@m2max-kvm ~> ./iouring_fd_bug -d1 -s0 -m1
Server: mshot_accept=1, sqpoll=0, defer_tw=1
Server ready
Client 1 connected
accept: new fd 6
New client: 0/6<PHONE_NUMBER>30976
Clients started
Client 2 connected
accept: new fd 8
New client: 1/8<PHONE_NUMBER>31024
multishot accept cancelled res=8

still hitting overflow (which the example doesn't handle, you'd need to re-arm at that point). Here's the overflow fix:
diff --git a/io_uring/net.c b/io_uring/net.c
index 43bc9a5f96f9..161622029147 100644
--- a/io_uring/net.c
+++ b/io_uring/net.c
@@ -1372,7 +1372,7 @@ int io_accept(struct io_kiocb *req, unsigned int issue_flags)
 			 * has already been done
 			 */
 			if (issue_flags & IO_URING_F_MULTISHOT)
-				ret = IOU_ISSUE_SKIP_COMPLETE;
+				return IOU_ISSUE_SKIP_COMPLETE;
 			return ret;
 		}
 		if (ret == -ERESTARTSYS)
@@ -1397,7 +1397,8 @@ int io_accept(struct io_kiocb *req, unsigned int issue_flags)
 				ret, IORING_CQE_F_MORE))
 		goto retry;

-	return -ECANCELED;
+	io_req_set_res(req, ret, 0);
+	return IOU_STOP_MULTISHOT;
 }

 int io_socket_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)

I suspect your completion loop is getting tons of CQEs in one go, which is nice, but may be too much to deal with the flooding senders. Maybe if you get rid of the io_uring_submit() in server_handle_cqe(), and switch to using io_uring_submit_and_wait() rather than io_uring_wait_cqes() for the !sqpoll case it'd behave better. You really never want to hit overflow condition. It'll work (barring this bug, obviously...), but it'll be slower than never hitting overflow.

Posted the fix:
<EMAIL_ADDRESS>

Thanks for the quick fix, it works as expected! I also see that the multishot_accept is unarmed for its second CQE.
Out of curiosity I tried to connect additional clients after the multishot-accept was unarmed. It looks their connect() call returned and thus the socket was opened. The then 3rd client could also push data into the socket. From my understanding this should not have happened because the server only sends an SYN-ACK back if accept() was called. Maybe the multishot-accept is somehow active in the background? I'll take a more detailed look later, but just wanted to leave this thought here.

Let me take a look at that one as well. Once the multishot is canceled, the fd it did return with that is of course valid. It should not accept any further connections, it should be canceled at that point.

Isn't this expected? If you don't even queue an accept and you just have the listen done, you'd be able to connect and send data. So I don't think there's anything there, it'd be the same if you just had a non io_uring setup where you do socket/bind/listen, and then did connects.

In other words, if you have N clients connecting post listen(2) but before the accept is running, you'll get N immediate accepts completing when it is armed. Ditto for the multishot case that gets terminated, you arm and submit a new one and then it'll get the pending connections.
That's for the overflow case, which you really should try and avoid!

Yes, you are right it is working as it should. The listen(N) puts these N clients into the backlog. Sorry for the confusion.

Other fix is queued here:
https://git.kernel.dk/cgit/linux/commit/?h=io_uring-6.8&id=4f17abb6b395227fc1d5c4dbeccc53347d2c0d97
and it'll go into 6.8-rc5 and bubble back to stable. I'll close this one, thanks for the report. Nothing better than a bug report with a reproducer, makes almost any bug trivially fixable in no time.


Need to understand the creation fields better

I create a project, but I don't know how to configure it using the dialog. Can you display an image of a configured project, like the editorial calendar example?

If you're doing something like an editorial calendar, and you have you content drafts in a folder for example, you can actually right-click that folder in the File explorer and choose "Create project from project".
By default, the plugin uses the front matter in each Markdown file (you can also use Dataview if you have it enabled). The plugin doesn't yet support creating new fields, only view and edit existing properties. For example, try creating a note that looks something like this inside your project folder.
---
publish: false
due: 2022-10-30
status: Backlog
tags: [pkm, obsidian]
---

# My blog draft

That helps


Make Clone/Download shown at all times

GitHub made the Clone/Download button require two clicks to download or copy the URL to the repo. It'd be better if there were just two buttons (or a split button) that you could click to directly download or copy the URL to the repo. That's how it used to be and I don't know why they changed it.

Why not just two buttons "clone" and "download"?
Clone should just copy to the clipboard and default to ssh (tiny downward carrot for HTTPS). Download just downloads.
--
Or maybe better yet. Just put a copy icon to the right of clone/download. Clone/download is unchanged, but there's a shortcut for copying SSH to clipboard.
--
Also, it would be great to make the button always default to SSH.
On the rare occasion I switch it to HTTPS, I always forget to switch it back.

Yeah @jamestalmage we have pretty much the same ideas.

Why not just two buttons "clone" and "download"?
Clone should just copy to the clipboard and default to ssh (tiny downward carrot for HTTPS). Download just downloads.

This is exactly what I mean, I think I just worded it poorly. From a style perspective a split button with the copy icon as one of the "splits" could be perfect.

Just put a copy icon to the right of clone/download

That could totally work, except for the SSH/HTTPS switch part. That has to be handled somehow.

Also, it would be great to make the button always default to SSH.
On the rare occasion I switch it to HTTPS, I always forget to switch it back.

I'm in the same boat, but there are probably a fair number of HTTPS-folk. (If your work computer blocks SSH connections or whatever, IDK.)

If SSH connections are blocked, you can't push, so it wouldn't be a dev machine.
I only ever use it when copying to a CI server/ Windows VM that I will never push from.

I personally just copy the URL from the URL bar and use it for cloning. For example:
$ git clone https://github.com/sindresorhus/refined-github

You can't push then, but I never push to repos I clone randomly anyways.

If SSH connections are blocked, you can't push, so it wouldn't be a dev machine.

Not true: https://help.github.com/articles/which-remote-url-should-i-use/#cloning-with-https-urls-recommended

@sindresorhus I think this works only because you're using hub. Without hub shouldn't the URL end in .git?

@hkdobrev No, GitHub redirect it to .git when it's a clone. Works with plain git.

@sindresorhus Nice! I thought the redirect was only the other way around - .git URL to normal when pasting it in the browser.

What is the consensus on this?
Swap the "Clone or download" dropdown for both a Download and Copy SSH button?

I vote to just close this. As already commented, you can just copy-paste the browser URL.


Is build.fox a python file?

If not then forget about this :)
But if so, why not having a .py extension? (something like buildfox.py or even .buildfox.py a bit like they do). It would be a good indication regarding how to format the file and it would allow syntax colouring (which would make this look nicer) and syntax checking in IDEs.

It's not :)
But we should create some syntax files for popular editors, for sure!

#124

Alright ;)
--
Vincent Cogne

On 17 Nov 2015, at 23:13, Denys Mentiei<EMAIL_ADDRESS>wrote:
#124
—
Reply to this email directly or view it on GitHub.


Content by group.

Any suggestions on making content available to an organization, and only to that organization? Like content for a private group

Sure! Instead of a lengthy response, see the updated section in the docs on isolating content.

Thanks a lot!

@bennylope  Thanks for describing this functionality in the documentation.
Could you maybe implement this isolating of content in the example app?
I am having a hard time using the user object in a custom manager. A code example would be of great help I think.

Could you maybe implement this isolating of content in the example app?

I could, but this would be at the very bottom of my priority list.
This won't work:
class MeetingMinutesQuerySet(models.query.QuerySet):

    def accountminutes(self):
        return self.filter(account__users=request.user)

You may have noticed in the interim that request.user is inaccessible to the method. You need to make the user a method argument and then pass it explicitly to the queryset method when you call it.


how to get the page index

Steps to Reproduce
i use the TabarView , i wan't get the index in the tabbarController on changed
but it always give me a wrong number when i scroll  the page
void main() {
  runApp(new MaterialApp(
      // Home
      home: new MyHome()));
}

class MyHome extends StatefulWidget {
  @override
  MyHomeState createState() => new MyHomeState();
}

// SingleTickerProviderStateMixin is used for animation
class MyHomeState extends State<MyHome> with SingleTickerProviderStateMixin {
  // Create a tab controller
  int _currentIndex = 0;
  TabController _controller;
  VoidCallback onChanged;

  TabBarView tabBarView ;
  @override
  void initState() {
    super.initState();

    _controller = new TabController(initialIndex: 0, length: 5, vsync: this);
    onChanged = () {

      setState(() {
        _currentIndex = this._controller.index;
        print(_controller.index);

      });
    };
    _controller.addListener(onChanged);
  }

  @override
  void dispose() {
    // Dispose of the Tab Controller
    _controller.removeListener(onChanged);
    _controller.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return new Scaffold(
        // Appbar
        // Set the TabBar view as the body of the Scaffold
        body: new TabBarView(

          // Add tabs as widgets
          children: <Widget>[
            new FirstTab(),
            new SecondTab(),
            new ThirdTab(),
            new FourthTab(),
            new FifthTab()
          ],
          // set the controller
          controller: _controller,
        ),
        // Set the bottom navigation bar
        bottomNavigationBar: BottomNavigationBar(
          currentIndex: _currentIndex,
          onTap: (int index){
            _controller.index = index;
        },
          fixedColor: MyColor.primaryColor,
          type:BottomNavigationBarType.fixed ,
          items: [
            BottomNavigationBarItem(
              icon: _currentIndex == 0
                  ? Image.asset("icons/home_1.png")
                  : Image.asset("icons/home_6.png"),
              title: Text("first"),
            ),
            BottomNavigationBarItem(
              icon: _currentIndex == 1
                  ? Image.asset("icons/home_2.png")
                  : Image.asset("icons/home_7.png"),
              title: Text("second"),
            ),
            BottomNavigationBarItem(
              icon: _currentIndex == 2
                  ? Image.asset("icons/home_3.png")
                  : Image.asset("icons/home_8.png"),
              title: Text("third"),
            ),
            BottomNavigationBarItem(
              icon: _currentIndex == 3
                  ? Image.asset("icons/home_4.png")
                  : Image.asset("icons/home_9.png"),
              title: Text("fourth"),
            ),
            BottomNavigationBarItem(
              icon: _currentIndex == 4
                  ? Image.asset("icons/home_5.png")
                  : Image.asset("icons/home_10.png"),
              title: Text("fifth"),
            )
          ],
        ));
  }
}

Logs
Run your application with flutter run and attach all the log output.
Run flutter analyze and attach any output of that command also.
Flutter Doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.1.5, on Mac OS X 10.13.3 17D102, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
[✓] Android Studio (version 3.0)
[✓] Android Studio (version 2.3)
[✓] IntelliJ IDEA Ultimate Edition (version 2017.3.4)
[✓] Connected devices (1 available)

• No issues found!

How-to questions are better asked on StackOverflow.
Please wrap code in ``` to make it readable.

@Ze8898 what number does it give you?

@zoechi @Hixie I have the same problem... when you pull from right to left and very fast, something causes the selected item to move one more index and then returns to the correct index, alone, as if it were a rubber band.
I could not reproduce the same problem by pulling from left to right

@zoechi does not happen with TabBarView, only with the BottomNavigationBar

Wrong behavior when changing Tab Body With BottomNavigationBar
Bug Opened

i use your code and it works perfectly

Very strange to work for you @nvkuy , look at this issue

Very strange to work for you @nvkuy, look at this issue


Neuvector Multiple Cluster Join Cluster

Environment
EKS v1.27.5, neuvector app version: 5.3.2
Describe the bug
Install two Kubernetes clusters, A and B, using Helm. Setting cluster A as the primary cluster is fine, but when trying to join cluster B to the primary cluster using the provided token, it fails with the error "Failed to join primary cluster: EOF."
To Reproduce

Multiple Cluster
Join Cluster
Input primary cluster token, controller server/port and The Currect Cluster Name

Expected behavior
Failed to join primary cluster: EOF.

Please enable controller control path debug (Settings -> Configuration) , reproduce the issue & collect debug logs from all controller pods on both clusters.

When I turn on the controller, the following error appears。
2024-06-20T13:36:33.44 |ERRO|CTL|rest.sendRestReqInternal: Failed to make request - err=Post "https://neuvector.testlab.com:443/v1/fed/join_internal": EOF proxyOption=0 timeout=10s url=https://neuvector.testlab.com:443/v1/fed/join_internal
2024-06-20T13:36:33.44 |DEBU|CTL|rest.writer.WriteHeader: 500 - Method=POST URL=https://neuvector-svc-controller.neuvector:10443/v1/fed/join

What about the debug logs on the primary cluster when the downstream cluster fails to join it?

I’ve found the cause of the issue: the firewall settings for the managed service connecting to the master were not configured correctly. Thanks


Do not close the scanning activity after every scan.

Is your feature request related to a problem? Please describe.
My customers need a way to scan products quickly, thus meaning that they need the activity to stay open after a scan has happened so that they can scan the next item.
Describe the solution you'd like
Give an optional parameter for closing the scan activity after every scan.
Describe alternatives you've considered
None that I can think of.
Additional context
None.

Thanks for using the plugin.
That's a good idea to have continuous scanning. First will have to go through that if it is possible to make continuous streaming from native to dart. I'll update you on this soon.

@AmolGangadhare Why not just handle the scanning in through a dart camera widget, that way all the camera view can be added directly in the dart code?

hi, the plugin has been updated with continuous scan support. Please try it out and provide your feedback. Thanks

I've tried continuous scan on Android. It opens the viewer but never finds any barcode

@afornes thanks for using the plugin. It scans continuously whenever a barcode is scanned. Is there any error logs?

@AmolGangadhare There are no errors. I've set breakpoints and also prints inside the "listen" callback and they are never triggered

sounds weird, give me some time to figure it out. One more thing, is that specific to a QR code or barcode? can you provide a sample you are referring(if possible)?

I'm trying to scan an EAN13 barcode. This is the code I'm trying to scan:<PHONE_NUMBER>280
Generated with this tool.
I've tried using other libraries and it works fine

@afornes thanks for details, I'm looking into it and will update you shortly on this.

@afornes it was a threading issue in the plugin bridge. I've made a fix to this. Will test it thoroughly, and upload the latest version to the pub shortly. Thanks for helping to improve this plugin.

plugin 0.1.3 is uploaded with issue fix.

Hi.
Is there a chance to show dialog on every barcode found with TextField for quantity? I'm trying to fire showDialog() inside getBarcodeStreamReceiver("#ff6666", "Cancel", true).listen((barcode) {} but it's openning only after I click Cancel, not during scanning.

can someone point me in the right direction? I need to know how to use the continuous scan.

Hi.
Is there a chance to show dialog on every barcode found with TextField for quantity? I'm trying to fire showDialog() inside getBarcodeStreamReceiver("#ff6666", "Cancel", true).listen((barcode) {} but it's openning only after I click Cancel, not during scanning.

Sorry for the late reply.
Showing an alert dialog in getBarcodeStreamReceiver won't work well.
This has to be done in plugin code.

@irperera
I did a quick workaround
var barcode = await _searchByBarcode();
while (barcode.isNotEmpty) {
    barcode = await _searchByBarcode();
});

Future<String> _searchByBarcode() async {
String barcodeScanRes;
try {
      barcodeScanRes = await FlutterBarcodeScanner.scanBarcode("#ff6666", "Anuluj", true);
} on PlatformException {
        barcodeScanRes = 'Failed to get platform version.';
      }
    return barcodeScanRes;
  }

For continuous scan, there is a method getBarcodeStreamReceiver. It will return continuous barcode stream until user press cancel button.
FlutterBarcodeScanner.getBarcodeStreamReceiver("#ff6666", "Cancel", false)
         .listen((barcode) {
         /// barcode to be used
         });

@AmolGangadhare
I can't use getBarcodeStreamReceiver in my case, because I am asking a user for an amount of read products.

Ok.
After the platform views become stable we can embed the barcode scanning screen in the app itself.

@troncomputers
I got the scan to work,
Future<void> startBarcodeScanStream() async {     FlutterBarcodeScanner.getBarcodeStreamReceiver("#ed0001", "Done", false)         .listen((barcode) {       _scanBarcode = barcode;       setState(() {         codes.add(_scanBarcode);       });     });   }
how can I prompt the user that they are actually scanning.

@irperera
That is why I used FlutterBarcodeScanner.scanBarcode() in a while loop. There is no "found barcode" event In getBarcodeStreamReceiver.

@troncomputers
thanks, I need continuous scanning, can you show me how to do that.
thanks again.

I did show you and you gave me "thumbs up" 🤔
Continuous  scanning in this thread

thanks I'll try it

@troncomputers
where in the code you put the dialog?

@irperera
I have a button to initialize scanning

This feature has been included in the plugin so closing this.

Hello I’m using your plugin and it works very well but there is one thing missing that’s is the auto closing it mean what if I want to wait for the result maybe for 10 sec and if it’s not found then I want to close the scanner but I’m unable to close it without pressing cancel button so can you fix that


Ember req host test

Added this test while mulling over what to do with a request that has a relative URI.  It's not that exciting, but I didn't want to throw it away.

Does this have the same test twice?

Does this have the same test twice?

Not anymore! :flushed:

Not anymore! :flushed:


Error

❗ Error (please report this in github issue: https://github.com/Hetari/pyutube/issues):
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 9.2.1 (GCC) 20200122

I wanna find sol for it?
+
and another problem about the video, yes download it but with two files one audio and one video separately

Hi there!
Thanks for bringing this to our attention! I've already looked into it, and I believe I’ve found the solution to fix this problem. 👍
To make sure you're using the latest version with the fix, please run the following command to update pyutube:
pip install --upgrade pyutube

If the issue is fixed, feel free to close this issue. Otherwise, let me know what error you're still encountering, and I'll be happy to assist further! 😊
Cheers


Type instability from keyword argument

[Suggestion (3) in series started in #14]
I noticed here: https://github.com/sisl/GaussianFilters.jl/blob/72fec3caccdf24a0089170c60a189d4c0e10f698/src/kf.jl#L22 that you return different types based on the value of an argument.
This results in type instability which can have significant performance effects. In the example below, the performance is reduced by a factor of 100 because of this.
(when there is no keyword present in the call, the compiler can deduce the return type, but if ether b=true or b=false is present, it can't find the exact type; it knows only that it is a Union{Int64, Tuple{Int64,Int64}})
julia> function f(a; b = false)
           if b
               return a^2, a^3
           else
               return a^2
           end
       end
f (generic function with 1 method)

julia> using BenchmarkTools

julia> @benchmark f(2, b=false)
BenchmarkTools.Trial:
  memory estimate:  0 bytes
  allocs estimate:  0
  --------------
  minimum time:     2.095 ns (0.00% GC)
  median time:      2.264 ns (0.00% GC)
  mean time:        2.313 ns (0.00% GC)
  maximum time:     16.213 ns (0.00% GC)
  --------------
  samples:          10000
  evals/sample:     1000

julia> @benchmark f(2, b=$false)
BenchmarkTools.Trial:
  memory estimate:  0 bytes
  allocs estimate:  0
  --------------
  minimum time:     2.170 ns (0.00% GC)
  median time:      2.536 ns (0.00% GC)
  mean time:        2.501 ns (0.00% GC)
  maximum time:     474.652 ns (0.00% GC)
  --------------
  samples:          10000
  evals/sample:     1000

julia> @benchmark f(2)
BenchmarkTools.Trial:
  memory estimate:  0 bytes
  allocs estimate:  0
  --------------
  minimum time:     0.029 ns (0.00% GC)
  median time:      0.032 ns (0.00% GC)
  mean time:        0.034 ns (0.00% GC)
  maximum time:     13.271 ns (0.00% GC)
  --------------
  samples:          10000
  evals/sample:     1000

julia> @code_warntype f(2)
Variables
  #self#::Core.Compiler.Const(f, false)
  a::Int64

Body::Int64
1 ─ %1 = Main.:(#f#3)(false, #self#, a)::Int64
└──      return %1

julia> @code_warntype f(2, b=false)
Variables
  #unused#::Core.Compiler.Const(getfield(Main, Symbol("#kw##f"))(), false)
  @_2::NamedTuple{(:b,),Tuple{Bool}}
  @_3::Core.Compiler.Const(f, false)
  a::Int64
  b::Bool
  @_6::Bool

Body::Union{Int64, Tuple{Int64,Int64}}
1 ─ %1  = Base.haskey(@_2, :b)::Core.Compiler.Const(true, false)
│         %1
│         (@_6 = Base.getindex(@_2, :b))
└──       goto #3
2 ─       Core.Compiler.Const(:(@_6 = false), false)
3 ┄       (b = @_6)
│   %7  = (:b,)::Core.Compiler.Const((:b,), false)
│   %8  = Core.apply_type(Core.NamedTuple, %7)::Core.Compiler.Const(NamedTuple{(:b,),T} where T<:Tuple, false)
│   %9  = Base.structdiff(@_2, %8)::Core.Compiler.Const(NamedTuple(), false)
│   %10 = Base.pairs(%9)::Core.Compiler.Const(Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}(), false)
│   %11 = Base.isempty(%10)::Core.Compiler.Const(true, false)
│         %11
└──       goto #5
4 ─       Core.Compiler.Const(:(Base.kwerr(@_2, @_3, a)), false)
5 ┄ %15 = Main.:(#f#3)(b, @_3, a)::Union{Int64, Tuple{Int64,Int64}}
└──       return %15

This instance of type instability is fixed in https://github.com/sisl/GaussianFilters.jl/commit/d6a511272c2ebea1368d6ae7784a51acfd6f41b2. I think it makes sense for update to only return the updated belief. If a user wants a predicted belief, they can run predict separately.

If a user wants a predicted belief, they can run predict separately.

agreed - I think this is the better way to organize it


Release version 0.18.0 to pypi

Release is tagged, just needs to be built and uploaded to pypi.

I can take care of that later today.
@andrewsmedina @jsfehler any objections to automating this? Like, whenever we tag the repo, we'd run the command to upload it to pypi?

Done: https://pypi.org/project/splinter/0.18.0/
We can track automation elsewhere.


Fix #153: Get application ID from PowerAuthApiAuthentication instead of configuration

I swtiched to the getActivationStatus() method both in online and offline mode.


Update short/extended address logic when adding src match table

Codecov Report

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

@@             Coverage Diff             @@
##           master    #1499       +/-   ##
===========================================
+ Coverage    69.4%   96.29%   +26.88%
===========================================
  Files         146        5      -141
  Lines       19856       54    -19802
  Branches     2422        0     -2422
===========================================
- Hits        13782       52    -13730
+ Misses       5176        2     -5174
+ Partials      898        0      -898

Impacted Files
Coverage Δ

src/core/thread/thread_netif.hpp
80% <0%> (-16%)
:arrow_down:

src/core/thread/topology.hpp
100% <0%> (ø)
:arrow_up:

src/core/crypto/pbkdf2_cmac.cpp

src/core/coap/coap_header.hpp

src/core/common/tasklet.hpp

src/core/thread/thread_netif.cpp

src/core/meshcop/timestamp.cpp

examples/platforms/posix/alarm.c

src/core/net/dhcp6_server.cpp

src/core/thread/address_resolver.cpp

... and 131 more

Continue to review full report at Codecov.

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

Thanks for this update!  To be robust, I think we should also switch back to using the extended address match when a Child ID Response message is pending.  Then switch back to using the short address match after sending the Child ID Response message (as you have done already).

Agree. Will update. Thanks.


ESM error in Node.js 16

import { map, tryCatch, pipe, reduce, curry, filter } from "rubico"
                                      ^^^^^
SyntaxError: Named export 'curry' not found. The requested module 'rubico' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

import pkg from 'rubico';
const { map, tryCatch, pipe, reduce, curry, filter } = pkg;

could you try import * as rubico from "rubico"?

This works:
import rubico from 'rubico'

const { map, tryCatch, pipe, reduce, curry, filter } = rubico;

Also, the es.js file when imported gives the same error

all right, i'll look into it

Okay, should be fixed in 1.8.2 (035c279). You should be able to import rubico in ESM Node 16 as
import { pipe, tap, map } from "rubico/dist/rubico.mjs"

rest of the functions .mjs in 1.8.3


#0: Fix ttnn Resnet demo test

Use common infra to avoid stale code in the future Add Resnet and updated Bert tests to single card demo CI
Problem description
Resnet demo went out of date with latest Resnet changes.
What's changed
Switch to common infra and add tests to CI
Checklist

[ ] Post commit CI passes
[ ] Blackhole Post commit (if applicable)
[ ] Model regression CI testing passes (if applicable)
[ ] New/Existing tests provide coverage for changes

CI run from a duplicate branch with the failing tests from main removed: https://github.com/tenstorrent/tt-metal/actions/runs/10714627648


Bug with custom alias in Webpack (Mono-Repo with Multiple Apps)

Following https://github.com/Microsoft/vscode-eslint/issues/405 I am facing exactly the same problem where my project is composed of a several applications and each them might define a "custom" webpack configuration which extends a common configuration which is defined in the root of the project.
/
apps/
- app1/
  webpackConfig.js  <-- specific to app1
  .eslintrc
- app2/
  webpackConfig.js  <-- specific to app2
  .eslintrc
- app3/
  webpackConfig.js <-- specific to app3
  .eslintrc
webpack.config.js <-- common configuration

A custom webpack configuration looks like so:
apps/app1/webpackConfig.js
export function (baseConfig) => {
 newConfig = baseConfig
 // Some custom manipulation
 ....
 return newConfig
}

Note that the common webpack configuration is responsible for determining which webpack configuration to load based on the application name.
So for instance, to run the app1, we execute the following command :
webpack-dev-server  --config webpack.config.js --env app1

the eslint configuration might look like this:
apps/app1/.eslintrc.js
const path = require('path');
module.exports = {
  settings: {
    'import/resolver': {
      webpack: {
        config: path.resolve(__dirname, '../../webpack.config.js'),
        env: 'app1'
      }
    }
  },
};

When running the linter in CMD it works without throwing any error, but in the IDE it shows that all my imports are wrong.
Note that I am using alias resolver in the root webpack config and also in the other app's configuration

@kamalbennani can you please provide a GitHub repository I can clone that demos the behaviour. Please note that if you have a mono repository you need to configure roots using the eslint.workingDirectories as described here: https://github.com/Microsoft/vscode-eslint


Init russian localization

Would be awesome to have russian translation especially for students from Central Asia, where russian is the second language. would like to work on that, but help is also welcome.

/assign @steveperry-53

Добро пожаловать!
Although Prow's listed me as a reviewer, I'm not sure what's involved in adding and approving a new localization.

@dianaabv16 Welcome feel free to reach out on both GitHub and Slack :) http://slack.kubernetes.io/

https://github.com/msheldyakov/website/tree/language_ru/content/ru

@msheldyakov Could you contribute your changes as well?

There is a parallel work that started here #16378 I think merging work would be the way forward

For those interested, a telegram group was started https://t.me/kubernetes_docs_ru

/uncc
as I don't speak Russian well enough to comment

Maybe it is reasonable to close this PR because we agreed to make an initial translation all togethere in this PR https://github.com/kubernetes/website/pull/16404 ?

/close


sliding_window_view: add new automatic_rechunk kwarg

Closes #9550
xref #4325

[x] Tests added
[x] User visible changes (including notable bug fixes) are documented in whats-new.rst

cc @phofl
Blocked till the next dask release, so we can verify tests

I don't have much context here, but should we always do this if possible, rather than add an option? Or we want to allow an escape hatch for instances where copies are made?

It is on by default in the public APIs (construct and reduce). Advanced users can opt-out. For internal uses, where copies are not made, I set it to False by default (in _reduce_method) and opt-in to rechunking when necessary for each individual method.
I think we should expose it in construct since that is a thin wrapper around sliding_window_view. Are you concerned about exposing it in reduce?

No! Generally keen on keeping the API small but totally reasonable here!

@max-sixty one option would be to add sliding_window_view_kwargs to forward arbitrary kwargs down to the implementing library. For example, numpy has writeable which someone might want to set (we do not allow this currently)

I went with sliding_window_kwargs to save some typing...

@max-sixty any more thoughts here?


update @actions/core to 1.10.0

GitHub is working towards deprecating set-output in favour of a file based approach.  Update the @actions/core dependency to make avail of the new implementation which should hopefully eliminate the deprecation warning.

@seanmiddleditch I'm not sure if the npm build output needs to be bundled or that will be taken care of implicitly by the release (I suspect the latter).  Do let me know and I can update the PR accordingly if necessary.

Original announcement: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

@seanmiddleditch ping?

@seanmiddleditch ping?

@seanmiddleditch ping?


ArrowSkin for bf and dad note separately and two events addition

What is your question?

Ok so I'm back on asking question so I was wondering if you guys could add
The ArrowSkin separately on bf and dad note like example
ArrowSkinBF: "any skin whether pixel or not pixel like PNG"
ArrowSkinDad: "Still the same as BF arrow skin"
If you want both of them you can switch both like ArrowSkin as default
ArrowSkin: "any arrow skin"
So how is it on my question thinking you could add that feature on the next update
And add two events on the game it will be

Play Video - this video event will play the video and wouldn't see your notes
Bg Video - this one would see your notes while playing the video on the background

I already make two events but the issue is that after playing the video if you try to pause the game it would never stop but after finish the game you will stuck on the Freeplay and I try to fix it but it can't since I'm still clicking the button of my virtual button on the game but still can't play or scroll down and that's all I want to say on request and question to ask for you beihu

OK, I'll add the features you described when I'm free

Ok bro thanks and after you updated the song.hx you need to update the charting editor.hx on state/editors file


Period in the route URL is considered part of the dynamic segment

I'm modeling a URL which looks like this: /posts/123.json
Following the documentation I created this route:
this.get('/posts/:id.json', function(db, request) {
  var id = request.params.id;
  return db.posts.find(id);
});

(I can't use shorthands because they wrap the responses)
I expected this to parse as /posts/:{id}.json but it instead parses to /posts/:{id.json}
this.get('/posts/:id.json', function (db, request) {
  /*
  	request.params looks like this:

  	  { "id.json": "123.json"}
  */
});

I think this is how route-recognizer works. You could do something like /posts/:id and let id = request.params.id.replace('.json', ''), or maybe open an issue over there asking if there's a better way.

Yeah, that's it. route-recognizer is hard-coded to split on slashes and doesn't support regex matching. Oh well.


Reset pagination offset to 0 on sort

@drewda PR https://github.com/transitland/feed-registry/pull/276


simplified-installer/fedora: extend rootlv size

This PR fixes #3529 , and extends the iotSimplifiedInstallerPartitionTables rootlv to 8GiB.

This shouldn't be necessary.  The coreos-installer should be growing the root filesystem after installation to fill the disk and the raw image file in the simplified installer is already set to 10 GiB [1].
I did a quick test locally and saw that the growfs stage of the installation is failing with /dev/sda3 is in use by /dev/dm-0: found busy partitions

We should figure out what's going on there instead.
[1] https://github.com/osbuild/images/blob/03a22660a9f889036332dee640b9d55b738bf9c7/pkg/distro/fedora/distro.go#L181

This shouldn't be necessary. The coreos-installer should be growing the root filesystem after installation to fill the disk and the raw image file in the simplified installer is already set to 10 GiB:

This is to closer match the sizing in edgeBasePartitionTables. Currently coreos-installer-growfs grows the partition, but not the root filesystem. I believe this is to leave storage for other services, similar to Fedora Server.

This shouldn't be necessary. The coreos-installer should be growing the root filesystem after installation to fill the disk and the raw image file in the simplified installer is already set to 10 GiB:

This is to closer match the sizing in edgeBasePartitionTables. Currently coreos-installer-growfs grows the partition, but not the root filesystem. I believe this is to leave storage for other services, similar to Fedora Server.

We also keep it small because it's straightforward to grow after deployment if needed, whereas shrinking isn't.
All that said, if this is how we (well, you) want to define the image, then let's do it.  I'd still like to look into the growfs failure I saw above, but that can be done separately.


Add initialize listener method

Originally submitted to Google Code by bryan.oakley on 2 Dec 2010

I would like to see a new method added to the listener interface. This method would be called exactly once prior to any tests being run. I propose the name "initialize".
It is useful for being able to do some initialization prior to the test running (think: telling a remote listening GUI to initialize the display, or a debugger to let let the user set breakpoints before a test runs).
I would like this method to pass as one of the parameters a list of all test suites and their test cases. It doesn't need to include the actual test case data per se, but a tree of names and longnames would be nice. The data needs to be in a format that can be easily parsed to create a hierarchical tree (nested tuples are the obvious choice here)
Again, imagine a test runner or debugger GUI that wants to be able to create a hierarchical tree of all tests, with an indicator beside them for not run yet, running, pass, fail, etc.

Are you @boakley still interested in this? Want to provide a pull request?

No interest related to this lately. The latest comment about actual implementation is actually from 2010. Closing.


Don't override the invitees list from an existing Outlook Event

When updating a meeting, we get the invitees list from the Power App. Then on the Calendar Event - Update cloud flow we use that list to send the invite update. However, this is overriding the existing invitee list from Outlook, and thus removing from the meeting other attendees that got the event forwarded or interacted with th Outlook invite.
We must change the flow to append the list of atteendees from the Power Apps to the existing list that it's on the outlook event.
IT doesn't matter if there are duplicates, outlook takes care of them.

I have modified the cloud flow to never remove people that have been added to the meeting from Outlook.
However there are some limitations at this moment:

Users will not see all of the FW attendees or reviewers that have confimed in the Scheduling Tool itself.
User won't be able to remove Outlook attendees from the meeting trought the Scheduling tool.
We don't keep track of those attendees in our records, so, FW attendees won't see the meeting in the app.

I have opened the following follow up issues:

https://github.com/Azure/azure-sdk-tools/issues/5999
https://github.com/Azure/azure-sdk-tools/issues/6000
https://github.com/Azure/azure-sdk-tools/issues/6001


Use custom data for film

Add option to use custom data to feed into film.
There was an error in training.py, the metadata of the first batch of the image was used  for all images in batch.

Pull Request Test Coverage Report for Build 277603912

3 of 15 (20.0%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.2%) to 90.576%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

ivadomed/loader/film.py
1
5
20.0%

ivadomed/loader/loader.py
1
9
11.11%

Totals

Change from base Build 277345410:
-0.2%

Covered Lines:
5507

Relevant Lines:
6080

💛  - Coveralls

Great addition! Looks to me it's ready to be merged


Frontend Travis

Additions

eslint with prettier and airbnb-config installed
hasky pre-commit hook for prettier.js
Travis setup for linter and prettier

Changes

eslint errors resolved in code

Problems
I disabled eslint in both serviceWorker.js and Init.test.js as eslint found errors in them.
As for the serviceWorker.js, this file is generated by create-react-app so issues should be ignored IMO, but Init.test.js seems to have errors that could be resolved - @karolszymonczyk, @Antiavanti could you please look at this?
eslint output:
../serviceWorker.js
   39:9   error    'checkValidServiceWorker' was used before it was defined     no-use-before-define
   44:11  warning  Unexpected console statement                                 no-console
   51:9   error    'registerValidSW' was used before it was defined             no-use-before-define
   61:7   error    Assignment to property of function parameter 'registration'  no-param-reassign
   72:15  warning  Unexpected console statement                                 no-console
   85:15  warning  Unexpected console statement                                 no-console
   97:7   warning  Unexpected console statement                                 no-console
  123:7   warning  Unexpected console statement                                 no-console

../__tests__/Init.test.js
   5:1  error  'it' is not defined                                                        no-undef
   7:3  error  'expect' is not defined                                                    no-undef
  10:1  error  'it' is not defined                                                        no-undef
  12:3  error  Using `expect(getBy*)` is not recommended, use `expect(queryBy*)` instead  testing-library/prefer-expect-query-by
  12:3  error  'expect' is not defined                                                    no-undef

Closes #3

Maybe a little too much commits. Try resetting softly to master after your work is finished and group the changes in new more descriptive commits :)

@wadamek65  since there aren't many changes I planned to squash and merge.


Clean Rust panic error

during testnet kickstart:
src/utils.rs:46:32:
range end index 22 out of range for slice of length 17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Ok so this is coming from:
let address = Address {
    payload: Payload::WitnessProgram {
        version,
        program: script[2..22].to_vec(),
    },
    network: network_enum,
}

specifically script[2..22]. It relies on script.is_witness_program() to ensure the length so it can assume it is at least of len 22. However, looking at the implementation of this method, it only guarantees that the data portion of the script is between 2 and 40 bytes long.
/// Checks whether a script pubkey is a Segregated Witness (segwit) program.
#[inline]
pub fn is_witness_program(&self) -> bool {
    // A scriptPubKey (or redeemScript as defined in BIP16/P2SH) that consists of a 1-byte
    // push opcode (for 0 to 16) followed by a data push between 2 and 40 bytes gets a new
    // special meaning. The value of the first push is called the "version byte". The following
    // byte vector pushed is called the "witness program".
    let script_len = self.0.len();
    if !(4..=42).contains(&script_len) {
        return false
    }
    let ver_opcode = opcodes::All::from(self.0[0]); // Version 0 or PUSHNUM_1-PUSHNUM_16
    let push_opbyte = self.0[1]; // Second byte push opcode 2-40 bytes
    WitnessVersion::try_from(ver_opcode).is_ok()
        && push_opbyte >= opcodes::all::OP_PUSHBYTES_2.to_u8()
        && push_opbyte <= opcodes::all::OP_PUSHBYTES_40.to_u8()
        // Check that the rest of the script has the correct size
        && script_len - 2 == push_opbyte as usize
}

@ouziel-slama I'm not sure what to do here as I don't understand the history around:
// This block below is necessary to reproduce a prior truncation bug in the python codebase.

@warrenpuffett is really just a logging problem! I think we just need to catch the error and raise a Python ValueError instead a Panic Error.

@ouziel-slama Thanks for the info. I will make that change. I just wanted to be sure that there isn't a bigger issue here.


tests: twister: twister/twisterlib/package.py : filter error

Describe the bug
File "/home/shared/disk/zephyr_project/zephyr_test/zephyr/scripts/pylib/twister/twisterlib/package.py", line 31, in package
if t['status'] != TwisterStatus.FILTER:
KeyError: 'status'
Please also mention any information which could help others to understand
the problem you're facing:

What target platform are you using?
all platfroms
What have you tried to diagnose or workaround this issue?
git bisect
Is this a regression? If yes, have you been able to "git bisect" it to a
specific commit?

82548410bdc8120f886f864938bdf07e09bbb558 is the first bad commit
commit 82548410bdc8120f886f864938bdf07e09bbb558
Author: Lukasz Mrugala<EMAIL_ADDRESS>Date:   Wed Sep 11 15:52:56 2024 +0000

    scripts: twister: NOTRUN status

    Adds a new NOTRUN status, which indicates
    that a test was successfully built, but
    not run on account of being not
    runnable in given test instance.

    Signed-off-by: Lukasz Mrugala<EMAIL_ADDRESS>
 scripts/pylib/twister/twisterlib/reports.py      | 11 ++++---
 scripts/pylib/twister/twisterlib/runner.py       | 40 +++++++++++++++++++++---
 scripts/pylib/twister/twisterlib/statuses.py     |  2 ++
 scripts/tests/twister/test_runner.py             | 27 +++++++++-------
 scripts/tests/twister_blackbox/test_coverage.py  |  1 +
 scripts/tests/twister_blackbox/test_platform.py  | 14 ++++++---
 scripts/tests/twister_blackbox/test_printouts.py |  5 ++-
 scripts/tests/twister_blackbox/test_runner.py    | 19 ++++++++---
 8 files changed, 88 insertions(+), 31 deletions(-)

To Reproduce
scripts/twister -j 10 --prep-artifacts-for-testing --package-artifacts frdm_mcxn236_twister_test_only.tar.gz --inline-logs -T samples/hello_world/ -p frdm_mcxn236

Expected behavior
build package can be generated
Impact
board testing
Logs and console output
{'name': 'samples/hello_world/sample.basic.helloworld', 'arch': 'arm', 'platform': 'frdm_mcxn236', 'path': 'samples/hello_world', 'run_id': 'dcfbef375a81852057a29bb6d328b371', 'runnable': False, 'retries': 0, 'execution_time': '0.00', 'build_time': '6.54', 'testcases': [{'identifier': 'sample.basic.helloworld', 'execution_time': '0.00', 'status': 'not run', 'reason': 'Test was built only'}]}
Traceback (most recent call last):
  File "/home/shared/disk/zephyr_project/zephyr_test/zephyr/scripts/twister", line 215, in <module>
    ret = main(options, default_options)
  File "/home/shared/disk/zephyr_project/zephyr_test/zephyr/scripts/pylib/twister/twisterlib/twister_main.py", line 231, in main
    artifacts.package()
  File "/home/shared/disk/zephyr_project/zephyr_test/zephyr/scripts/pylib/twister/twisterlib/package.py", line 31, in package
    if t['status'] != TwisterStatus.FILTER:
KeyError: 'status'

Environment (please complete the following information):

OS: (e.g. Linux,):
Toolchain (e.g Zephyr SDK, ...): 0.17.0-rc1
Commit SHA or Version used: v3.7.0-4797-g98e0e65069c

To fix this, one would need to add TwisterStatus.NOTRUN case to this if-elif chain: https://github.com/zephyrproject-rtos/zephyr/blob/98e0e65069cf62297c4d03e0ad5b543374f5b735/scripts/pylib/twister/twisterlib/reports.py/#L337-L356

@nashif @LukaszMrugala , I raise the priority to high, as this will blocking al board testing with pack method, which is a must have for our board testing.

@hakehuang Can you link the PR to this issue if it fixes it.

@hakehuang Can you link the PR to this issue if it fixes it.

https://github.com/zephyrproject-rtos/zephyr/pull/80221


Change timer concept into a more abstract concept

Currently, this crate use Timer as the scheduler for Delay and Interval.
Shall we make the Timer more abstract to make it possible to implement more scheduler.
eg.

Tokio based timer scheduler
Fake timer scheduler for testing.

Certainly, I'd be down for this! I'm not entirely sure what it would look like but something along these lines seems plausible!

Thanks for opening this issue! -- we're making this possible in https://github.com/rustasync/runtime/pull/36! :sparkles:


Adding example scripts repos

You should add some links to already existing repos that contains usable scripts for the digispark

ok, ill link some usefull git repo for this project. Thx a lot


How can I use this with Babel?

Hey there.  I'm a non javascript developer that recently inherited a js project.  Bugger was recommended by the previous developer.  I can run my project's es6 test suite by doing bugger ./node_modules/.bin/_mocha.  And it seems like the transpilation happens on the fly just fine.  But I can't figure out how to run an individual file.  I can do babel-node test/load_test.js, but bugger test/load_test.js obviously doesn't work.  Is there a way to do something like bugger --babel-node test/load_test.js?  I don't see anything along these lines in the readme.
Sorry if opening a ticket is inappropriate for this question :)

Gah.  Figured it out literally 10 seconds after posting this...
babel-node $(which bugger) test/load_test.j

@JesseAldridge Thanks for posting your findings. Hopefully the next dev will find an answer in 5 seconds instead of 10.


Add implementation of maximize.

This PR adds logic to support maximization. With this PR, users can write maximization simply as follows:
import sklearn.datasets
import sklearn.model_selection
import sklearn.svm

def objective(trial):
    iris = sklearn.datasets.load_iris()
    x, y = iris.data, iris.target

    svc_c = trial.suggest_loguniform('svc_c', 1e-10, 1e10)
    classifier_obj = sklearn.svm.SVC(C=svc_c)
    score = sklearn.model_selection.cross_val_score(classifier_obj, x, y, n_jobs=-1, cv=3)
    accuracy = score.mean()
    return accuracy  # Directly use accuracy as an objective value.

if __name__ == '__main__':
    import optuna
    study = optuna.create_study(direction='maximize')  # Set study direction to maximize.
    study.optimize(objective, n_trials=100)
    print(study.best_trial)

I have two concerns.

This implementation assumes that users use the same direction both for samplers and pruners. This assumption makes implementation simple, but it will suppress flexibility. For instance, this example in current master uses validation accuracy for the pruner and validation error for the sampler. On the other hand, validation accuracy is used for both the pruner and the sampler in this PR.

Also, this PR contains an API change.  is_higher_better argument of TensorFlowPruningHook.init() was disabled here to ensure that both samplers and pruners use the same study direction.

https://github.com/pfnet/optuna/pull/331/files#diff-4e020643693eb296936f5dd7194bd6d6L481

I remove the sentence. Thank you for your careful review.

I found a TODO comment that seems related to the maximization support: test_storage.py#L131

I found a TODO comment that seems related to the maximization support: test_storage.py#L131

Thank you for letting me know.
I added an additional trial to the study and removed the TODO comment.


Consider deriving PKCS #11 public key from certificate

Currently PKCS#11 requires a public key to be token. Alternatively, the public key can be derived from the certificate, similar to the windows and macos implementations.
This would:

Reduce work. There is no reason to have the public key stored in the HSM, our use case only cares about the certificate.
Reduce mistakes. Most users of ECP will likely think a certificate and private key is enough. Extracting and loading the Public key is an awkward and extra step.

it'd help to document the specific objects you need on the device to use this proxy.
eg, you need to have the private key ofcourse but also the cert  and the public key.
the cert can certainly exist outside of the device and the public key itself can get derived from private anyway.
$ pkcs11-tool --module /usr/lib/x86_64-linux-gnu/softhsm/libsofthsm2.so  --list-objects --pin mynewpin
Using slot 0 with a present token (0x51aac4a2)
Public Key Object; RSA 2048 bits
  label:      keylabel3
  ID:         10
  Usage:      encrypt, verify, wrap
  Access:     none
Private Key Object; RSA
  label:      keylabel3
  ID:         10
  Usage:      decrypt, sign, unwrap
  Access:     sensitive
Certificate Object; type = X.509 cert
  label:      keylabel3
  subject:    DN: L=US, O=Google, OU=Enterprise, CN=user10.esodemoapp2.com
  serial:     1C
  ID:         10


Show the full image name at the top of the usage doc

We currently don't show the full image name anywhere. We should do that.

@mengqiy Why should this be programmatic and not included in the markdown directly?

This seems completed now.


When adding a saying, if the user rotates the device any characters that were previously entered are lost.

When adding a new category, if the user rotates device any characters that were previously entered are lost.
Steps to Reproduce:

In the My Sayings screen, tap on the + sign to add a new saying
enter one or more characters for the saying name
rotate the device from landscape to portrait or vice versa.
all the entered characters are no longer available

Expected Behavior:
Device rotation should still retain the entered characters or phrase(s).

Confirm fixed as of 1.4


Skeletal Animation

The current plan for dealing with this is to have:

Per-vert bone weights
Consume bone matrices then apply them internally on the cpu.
Transform the vertices on the gpu in a compute shader.

The glTF sample viewer simply puts the bone matrices in uniforms and multiplies the weights by the matrices in the shader (see https://github.com/KhronosGroup/glTF-Sample-Viewer/blob/master/src/shaders/animation.glsl). Why use a compute shader instead of transforming vertices in the vertex shader?

The main motivation for using a compute shader is that in a full rendering pipeline you might render a mesh, 4-8 times, maybe more:

Up to 4 times per directional light (due to cascaded shadow mapping)
Once per shadow casting non-directional light
Possibly once for a z-prepass
Once for the main opaque pass.

Numerous games (DOOM Eternal notably) have adopted the practice of pre-multiplying their skinning matrices to simplify the vert shaders of the following passes.

Thank you for the response! That's a very sensible explanation, I found this article which notes some more advantages to skinning in the compute shader. Definitely seems like a worthwhile optimization. I don't know enough about rendering to be able to contribute but I'll be watching this project with great interest.

Awesome! If you're interested in chatting a bit more casually, I have a discord server for my main project that'd I'd love to chat on: https://discord.gg/RxJHE2D


format logging messages by default like martian

Martian's built-in format is {TIMESTAMP} [{TARGET}] {MESSAGE}, not sure we care about reporting loglevel here.
Otherwise you get differences like:
2021-05-30 10:25:59 [time] __start__
2021-05-30 10:25:59 [monitor] cgroup memory limit of<PHONE_NUMBER>854771712 bytes detected
[2021-05-30 10:26:05][INFO] computing k-nearest neighbors with k = 477

Yes, this is what it looks like:
2021-06-01 15:02:07 [time] __start__
2021-06-01 15:02:07 [monitor] cgroup memory limit of<PHONE_NUMBER>854771712 bytes detected
2021-06-01 15:02:13 [cr_ana::stages::graph_clustering] computing k-nearest neighbors with k = 254
2021-06-01 15:02:13 [scan_rs::nn] constructing ball tree of 10715 points
2021-06-01 15:02:14 [scan_rs::nn] querying points for 254 neighbors
2021-06-01 15:02:14 [cr_ana::stages::graph_clustering] running louvain
2021-06-01 15:02:15 [cr_ana::stages::graph_clustering] louvain starting cpm score: -0.000096
2021-06-01 15:02:16 [cr_ana::stages::graph_clustering] louvain optimized in 27 iterations
2021-06-01 15:02:16 [cr_ana::stages::graph_clustering] merging clusters
2021-06-01 15:02:16 [scan_rs::merge_clusters] computing DE params on 46358 x 2004 matrix
2021-06-01 15:02:19 [scan_rs::merge_clusters] computing DE on 1222 vs 782 cells
2021-06-01 15:02:22 [scan_rs::merge_clusters] computing DE params on 46358 x 1190 matrix
2021-06-01 15:02:25 [scan_rs::merge_clusters] computing DE on 734 vs 456 cells
2021-06-01 15:02:28 [scan_rs::merge_clusters] computing DE params on 46358 x 1727 matrix
2021-06-01 15:02:31 [scan_rs::merge_clusters] computing DE on 990 vs 737 cells
2021-06-01 15:02:34 [scan_rs::merge_clusters] computing DE params on 46358 x 726 matrix
2021-06-01 15:02:37 [scan_rs::merge_clusters] computing DE on 369 vs 357 cells
2021-06-01 15:02:39 [time] __end__


feat: :sparkles: adds depin.utils.devices

#105  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @anthonyra and the rest of your teammates on  Graphite


How to set the revision to be current using command?

Hi,
Im using Az command to import and create a new revision to an existing api.
But it will not set to current.
May I know if there is any command which can set the revision to be current.
Thanks.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 803fb9a7-5896-f4b0-9144-af5f87f3b1d4
Version Independent ID: aeb99370-0ff3-bf47-1b69-e8710fe454e0
Content: Use revisions to make non-breaking changes safely in API Management - Azure API Management
Content Source: articles/api-management/api-management-get-started-revise-api.md
Service: api-management
GitHub Login: @vladvino
Microsoft Alias: apimpm

@spku1991 Thank you for the feedback. We are actively investigating and will get back to you soon.

Hello @spku1991,
Within Azure CLI itself, there doesn't appear to be a dedicated command available yet for setting a current revision.  However, there is a specific Powershell cmdlet available: Set-AzApiManagementApiRevision
You can run Powershell commands alongside your Azure CLI commands just by prefixing them with powershell so the entire command for setting a current revision alongside an Azure CLI script would be as follows:
powershell Set-AzApiManagementApiRevision
   -ApiRevision <String>
   -Context <PsApiManagementContext>
   -ApiId <String>
   [-Name <String>]
   [-Description <String>]
   [-ServiceUrl <String>]
   [-Path <String>]
   [-Protocols <PsApiManagementSchema[]>]
   [-AuthorizationServerId <String>]
   [-AuthorizationScope <String>]
   [-OpenIdProviderId <String>]
   [-BearerTokenSendingMethod <String[]>]
   [-SubscriptionKeyHeaderName <String>]
   [-SubscriptionKeyQueryParamName <String>]
   [-SubscriptionRequired]
   [-PassThru]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Hope this helps. We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.

Hello @mike-urnun-msft
There is no answer to the question in your reply.
according to https://docs.microsoft.com/en-us/powershell/module/az.apimanagement/set-azapimanagementapirevision?view=azps-6.2.1 there should be an InputObject which is required.
This object is type of https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.commands.apimanagement.servicemanagement.models.psapimanagementapi?view=az-ps-6 which has properties "IsCurrent" and "IsOnline"
however I can't make it work.
[string]$userName = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
[string]$userPassword = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
[string]$tenant = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
[string]$subscription = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
[string]$resourceGroupName = 'my-resource-group'
[string]$apiManagementResourceName = 'api-management-resource-name'
[string]$apiId = 'my-api-id'
[string]$openApiSpecificationUrl = 'https://...................swagger.json'

$date = Get-Date -Format "yyyy-MM-dd-HH-mm"
$SecurePassword = ConvertTo-SecureString $userPassword -AsPlainText -Force
$cred = new-object -typename System.Management.Automation.PSCredential -argumentlist $userName, $SecurePassword

Write-Host 'Sign-in' -ForegroundColor Yellow -BackgroundColor DarkGreen
Connect-AzAccount `
	-Credential $cred `
	-Tenant $tenant `
	-ServicePrincipal
az account set --subscription $subscription

Write-Host 'Create new ApiManagement revision' -ForegroundColor Yellow -BackgroundColor DarkGreen
$context = New-AzApiManagementContext `
	-ResourceGroupName $resourceGroupName `
	-ServiceName $apiManagementResourceName

$revision = New-AzApiManagementApiRevision `
	-Context $context `
	-ApiId $apiId `
	-ApiRevision $date `
	-ApiRevisionDescription "New API is deployed"

Write-Host 'Import new OpenAPI specification' -ForegroundColor Yellow -BackgroundColor DarkGreen
Import-AzApiManagementApi `
	-Context $context `
	-ApiId $apiId `
	-ApiRevision $date `
	-SpecificationFormat 'OpenApiJson' `
	-SpecificationUrl $openApiSpecificationUrl `
	-Path ''

Write-Host 'Set revision as current' -ForegroundColor Yellow -BackgroundColor DarkGreen
$revision.IsCurrent = $true
$revision.IsOnline = $true
Write-Host 'Updating revision to be Current' -ForegroundColor Yellow -BackgroundColor DarkGreen
Set-AzApiManagementApiRevision `
	-Context $context `
	-ApiId $apiId `
	-ApiRevision $date `
	-InputObject $revision `
	-Name $revision.Name `
	-Protocols $revision.Protocols `
	-ServiceUrl $revision.ServiceUrl

I'm getting
Set-AzApiManagementApiRevision : Parameter set cannot be resolved using the specified named parameters.
At line:1 char:1
+ Set-AzApiManagementApiRevision -Context $context -ApiId $apiId -ApiRe ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Set-AzApiManagementApiRevision], ParameterBindingException
    + FullyQualifiedErrorId : AmbiguousParameterSet,Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.SetAzureApiManagementApiRevision

Can anyone help?


Add timestamp to SNS wrapping

We'd like to have the timestamp for PayoutEventMessage set at send time. This further make the wrapping more SNS-like: https://docs.aws.amazon.com/sns/latest/dg/json-formats.html

@xiaodong-izettle Any idea why the  Findbugs audit is failing?

Hehe, missing a exclude.xml file.

@AndersKOlsson you foresee any backwardscompatability issues?

I don't know how every receiver looks, but this field is standard in SNS. So I would imagine it's expected (but accepted to be empty) or ignored.

So, now with the FIndbugs problem gone, this builds just fine. Do you think this change is acceptable?

@fredrikbackstrom @izrobin: Have you considered? It's not that scary a change is it?

Can we call upon the elder gods, or something, to get clarity on this? The one risk I see with this is someone on the receiving end upgrading this package, and missing the java-jsr310 module, so they can't deserialize the Instant. Should this then be a step up in minor version, to signal that some action might be needed?

@adamvoncorswant: Could you maybe offer some guidance here?


Preparing for 0.6.0 development

What is this PR for?
Preparing for 0.6.0 development
What type of PR is it?
[Release]
Todos

[ ] - Task

What is the Jira issue?

Open an issue on Jira https://issues.apache.org/jira/browse/SUBMARINE/
Put link here, and add [SUBMARINE-Jira number] in PR title, eg. SUBMARINE-23. PR title

How should this be tested?

First time? Setup Travis CI as described on https://submarine.apache.org/contribution/contributions.html#continuous-integration
Strongly recommended: add automated unit tests for any new or changed behavior
Outline any manual steps to test the PR here.

Screenshots (if appropriate)
Questions:

Does the licenses files need update? No
Is there breaking changes for older versions? No
Does this needs documentation? No

@pingsutw Thanks for the contribution! One question, is it hard for us to update version information besides maven pom.xml?

When updating pom.xml, we could usemvn versions:set -DgenerateBackupPoms=false -DnewVersion=X.(Y+1).Z-SNAPSHOT, but we need to manual update other files, I can improve it in 0.6.0


npm install -g loopback doesn't work

use npm install -g loopback-cli instead.

hi! 👋 I just tried the command again and it worked just fine, with output of:
 ~  npm install -g loopback
npm WARN deprecated<EMAIL_ADDRESS>All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
+<EMAIL_ADDRESS>added 239 packages in 11.679s

What version of node and npm are you running?

node 8.4.0 npm 5.3.0
When I do npm install -g loopback, I got the same warning message as you. BUT npm did not install anything.
lb -v
-bash: lb: command not found
Only with loopback-cli, npm did install something and lb is working.

I'll use it, because I know it works, but I'd like to investigate whether npm install -g loopback also works. Thanks!

Interesting. I'll look into it further, because I was told by multiple people that it should work. Thank you anyway :-)


Why is Elephant-Bird offering its own LZO Input/Output Formats?

Kevin's project "hadoop-lzo" (Which EB depends on anyway) already offers LZO I/O formats for Text, etc. - just not protobuf.
Why does EB choose to maintain a forked copy?
Would it be acceptable if I contributed a patch that makes EB classes extend the hadoop-lzo one (with tests to ensure we not break users of it)?
Some users of EB classes reported that it does not properly gel with Hive's CombineHiveInputFormat usage (which is now the default I/F).
For the same, simple "README.lzo" text file input that spans four blocks (worth 512 bytes each):
hive> describe extended lzoblocks;
OK
r	string
Detailed Table Information	Table(tableName:lzoblocks, dbName:default, owner:root, createTime:1329727318, lastAccessTime:0, retention:0, sd:StorageDescriptor(cols:[FieldSchema(name:r, type:string, comment:null)], location:hdfs://localhost/user/hive/warehouse/lzoblocks, inputFormat:com.hadoop.mapred.DeprecatedLzoTextInputFormat, outputFormat:org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat, compressed:false, numBuckets:-1, serdeInfo:SerDeInfo(name:null, serializationLib:org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe, parameters:{serialization.format=1}), bucketCols:[], sortCols:[], parameters:{}), partitionKeys:[], parameters:{transient_lastDdlTime=1329727393}, viewOriginalText:null, viewExpandedText:null, tableType:MANAGED_TABLE)
Time taken: 0.078 seconds
hive> describe extended ebblocks;
OK
r	string
Detailed Table Information	Table(tableName:ebblocks, dbName:default, owner:root, createTime:1329730707, lastAccessTime:0, retention:0, sd:StorageDescriptor(cols:[FieldSchema(name:r, type:string, comment:null)], location:hdfs://localhost/user/hive/warehouse/ebblocks, inputFormat:com.twitter.elephantbird.mapred.input.DeprecatedLzoTextInputFormat, outputFormat:org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat, compressed:false, numBuckets:-1, serdeInfo:SerDeInfo(name:null, serializationLib:org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe, parameters:{serialization.format=1}), bucketCols:[], sortCols:[], parameters:{}), partitionKeys:[], parameters:{transient_lastDdlTime=1329732671}, viewOriginalText:null, viewExpandedText:null, tableType:MANAGED_TABLE)
Time taken: 0.07 seconds
Doing a simple select of the hadoop-lzo class based table works fine, while the latter fails - when used with CDH3u3. The error the ebblocks table gets on a select * is [0].
This may be MAPREDUCE-1597 but I still think EB should be reusing classes rather than duplicating code and diverging in behavior.
[0] - 2012-02-17 11:04:07,598 WARN com.hadoop.compression.lzo.LzopInputStream: IOException in getCompressedData; likely LZO corruption.
java.io.IOException: Compressed length 439750499 exceeds max block size 67108864 (probably corrupt file)
at com.hadoop.compression.lzo.LzopInputStream.getCompressedData(LzopInputStream.java:285)
at com.hadoop.compression.lzo.LzopInputStream.decompress(LzopInputStream.java:255)
at org.apache.hadoop.io.compress.DecompressorStream.read(DecompressorStream.java:75)
at org.apache.hadoop.io.compress.DecompressorStream.read(DecompressorStream.java:63)
at com.twitter.elephantbird.util.StreamSearcher.search(StreamSearcher.java:47)
at com.twitter.elephantbird.mapreduce.io.BinaryBlockReader.skipToNextSyncPoint(BinaryBlockReader.java:102)
at com.twitter.elephantbird.mapreduce.io.BinaryBlockReader.parseNextBlock(BinaryBlockReader.java:107)
at com.twitter.elephantbird.mapreduce.io.BinaryBlockReader.setupNewBlockIfNeeded(BinaryBlockReader.java:139)
at com.twitter.elephantbird.mapreduce.io.BinaryBlockReader.readNextProtoBytes(BinaryBlockReader.java:75)
at com.twitter.elephantbird.mapreduce.io.BinaryBlockReader.readNext(BinaryBlockReader.java:63)
at com.twitter.elephantbird.mapreduce.io.ProtobufBlockReader.readProtobuf(ProtobufBlockReader.java:42)
at com.twitter.elephantbird.mapred.input.DeprecatedLzoProtobufBlockRecordReader.next(DeprecatedLzoProtobufBlockRecordReader.java:84)
at com.twitter.elephantbird.mapred.input.DeprecatedLzoProtobufBlockRecordReader.next(DeprecatedLzoProtobufBlockRecordReader.java:27)
at org.apache.hadoop.hive.ql.io.CombineHiveRecordReader.doNext(CombineHiveRecordReader.java:98)
at org.apache.hadoop.hive.ql.io.CombineHiveRecordReader.doNext(CombineHiveRecordReader.java:42)
at org.apache.hadoop.hive.ql.io.HiveContextAwareRecordReader.next(HiveContextAwareRecordReader.java:67)
at org.apache.hadoop.hive.shims.Hadoop20SShims$CombineFileRecordReader.next(Hadoop20SShims.java:208)
at org.apache.hadoop.mapred.MapTask$TrackedRecordReader.moveToNext(MapTask.java:208)

yes, EB's LzoInputFormat (not LzoInputStream) has diverged from hadoop-lzo and is in heavy production use.
EB's LzoInputFormat should be ported over to hadoop-lzo and not the otherway round. EB has evolved to lot more than LzoInputFormat.. We are going to make hadoop-lzo a soft dependency (ie. EB works with other file formats gzip, bz2, seqfiles, rcfiles etc) so that EB could be free from GPL restrictions from hadoop-lzo.
That said, the error you are seeing does not look like it is related to EB. I would be very surprised if you don't see this error with hadoop-lzo alone. lzo files are not splittable unless you have README.lzo.index file, even then, the splits have to be adjusted.

The issue comes up due to Hive's use of CombineFileInputFormat (it splits the inputs even if splitting has been disabled, which is the case when there aren't indexes).
I can't reproduce it if I use the hadoop-lzo version, but I haven't yet determined which bit of the diff makes the difference. Its probably the parts around getSplits() and isSplitable(), as thats where differences seem to lie. But yes, the real bug is MAPREDUCE-1597, am only curious why hadoop-lzo did not trigger that and that made me file this issue.
So we should be porting and maintaining, or deprecating the MR bits on hadoop-lzo and asking folks to use EB?

I would say yes.  In future EB starts using LzoInputFormat from hadoop-lzo, it will be transparent to you..


Update Apache configuration to use /bcrhp context root

Need to ask Mid tier to update the configurations after the changes have been made. Need to be done in

[x] DLVR
[x] TEST
[ ] PROD

JIRA request to update the NRIDS copy is here:
https://apps.nrs.gov.bc.ca/int/jira/projects/BCRHP/issues/BCRHP-117?filter=allopenissues

NRIDS has updated their configuration to only allow BCGov IP addresses access to non-PROD environments. VPN now necessary to access these instances, so the public facing URLs now protected from the general public.

Updates to PROD will be done as part of the PROD release.

The above JIRA ticket has been submitted to NRIDS.

Completed.


Add a flag for the CLI init command that lets users pick a name for their project

Or run it without any options and you will be prompted for the name and type.