Create a database model and schema

As a ...Software Developer
I need ...to create a database model and schema
So that ... can keep a track of all the promotions
Details and assumptions

Should give me a list of all promotions
Should give me a list of the description of each promotion
Should have a promo code that is unique
Should have a start_date and an end_date
Might have the product list for each promotion

Acceptance criteria
Given [some initial state]
When [some event]
Then [some measurable outcome]

we can include the initial schema design as part of Sprint 1, with the assumption that it will likely evolve as we go

going to start working on this so i can put in an initial route to test things out -- schema subject to change based on what people think the various types of promotions we support should be

Added a commit on a feature branch which introduces a preliminary schema just to have something to work with -- we can change this as desired: https://github.com/devops-summer22-promotions/promotions/commit/d9d70be7245b0ff6a13b327d122aacb1dc7a36e0

handled by schema in https://github.com/devops-summer22-promotions/promotions/pull/17


Review your read me file

Hello Idrice,
Can you review yourself our read me file?
There are many errors threre, i dont want to o through each error and make an issue  for that.
You have to work seriously!!
Error Check list:

Take a time a  read from top to bottom of ReadMe file --> No a joke
Links  by clicking which  not work removed that
Legacy Name of people, compagny, and so on remove it--> Justice can poursuit you
Use your wiki  to explain your  used technologie
Misstake or typo error should be avoived--> this is not professional

1 , 2, 3 done!!

Assign a label for this issue

Done!!


Implement the 4 write modes and the 2 read modes for VGA

As promised.
(Work in progress) This package contains the following goodness

VGA write modes 0, 1, 2, 3 with set/reset, planar rotation.
VGA write using single dword to represent all 4 plane bytes.
VGA read mode 1.
Provides a workaround solution to issues #110 and #90 (sacrificing the performance and resolution of the vbe driver for normal vga)

Demo
(This is the same video as the one for sb16 PR)
https://drive.google.com/file/d/1FSt14j7ayKnaT7AS8lF_4S1i4ZX9GlEk/view
(the demo also contains code for 320x400 display mode that is not included with this PR)
Notes

I'm curious to see if you like how the modes are implemented here. The calculations (bitmasks, ALU, etc.) got moved out from inside vga_memory_write_graphical_planar into their own, separate functions. This way, the code looks more beautiful and satisfies my OCD the circuitry intentions for each mode is much clearer. I'm not sure about the performance aspects though (I haven't profiled them yet).

Todo

[ ] Find a way to test out each mode. So far, I've only tested by booting up Windows 98 with VBE drivers removed, which worked well even before read mode 1 was implemented.

It would be interesting to test some DOS games as mentioned in #26. We should also test DexOS, which is also currently broken due to missing vga features.

It would be interesting to test some DOS games as mentioned in #26. We should also test DexOS, which is also currently broken due to missing vga features.

Looks like it's still broken

Looks like it's still broken

Ah, right. 800x600 is not one of the old vga modes.

Ah, right. 800x600 is not one of the old vga modes.

I'm not sure what you're saying/what you mean.

I'm not sure what you're saying/what you mean.

DexOS uses a VGA mode that wasn't changed in this PR, so I couldn't expect this change to fix DexOS.

Ohhhh okay. That makes sense

Setting Windows 98 to 2-Color appears to leave some black regions undrawn, but that happens to VirtualBox as well so it's not too much of a concern.

The following code samples from Michael Abrash's Black Book (http://www.jagregory.com/abrash-black-book/) chapters 24 to 28 does not appear to work:
L26-1
Coloured text should be drawn on the blue background.

L26-2
White text should be drawn on the blue background.

L27-3
After pressing key twice, the screen should return back to graphics mode with the previous graphics:

L28-3
Should be a white diagonal line:

I'll go over the code and see where it went wrong. It shouldn't be too difficult to debug, as we've got the source code for the programs.

Fixed the bug with write mode 3 (L26-1, L26-2, L28-3).
In sample program L27-3, I believe that the bios is incorrectly clearing the display memory while changing modes. The program uses the fact that setting bit 7 of AL during video mode change will instruct the bios to not clear the memory, yet from the debugger I see vga_memory_write_graphical_planar being called to clear the memory when changing to mode 90h (10h with bit 7 set).
In sample program L28-2, occasionally, some pixels are missing and those pixels are different each time:

But otherwise, all the code samples from chapters 24 to 28 are now working to a more or less satisfactory degree. I'll go and investigate L28-2.

Turns out that screen_fill_buffer does not copy over the very last byte of display memory that was changed. Since diff_addr_max is inclusive, I'm modifying the for loop: from i < end into i <= end
https://github.com/copy/v86/blob/b22826525b7831b7f5b5ccffa286d283917e5af4/src/vga.js#L1426-L1435

Completed testing using Abrash's Book's sample programs. The next step is the fun part: play around with old DOS games.

Current situation for a small selection of old dos games:
Skyroads (playable)

Uses 13h video mode - working.
Changes the 256 color palette for transition - changes are not redrawn automatically, so parts of the screen remain black at times.
Uses sb16's 8-bit single cycle dma transfer mode - working.

Wolfenstein 3d (unplayable)

Custom "high res 13h mode" (320x400 256 color) in the beginning.
Miscellaneous Output Register: 0x63, Sequencer memory mode: 0x06
Stuck in black screen, constantly reading 3DA.

Mario (unplayable)

Custom "high res 13h mode" (320x400 256 color)
Miscellaneous Output Register: 0x63, Sequencer memory mode: 0x06
Right colors, but heavily distorted pixel locations similar but not exactly identical to Windows 98 startup screen.

Simcity (unplayable)

"Program too big to fit in memory" for even when 2Gb of memory has been configured in v86. Same with virtualbox, so it's probably a faulty installation/build of the SimCity demo that I'm using.

Doom (unplayable)

Custom "high res 13h mode" (320x400 256 color)
Miscellaneous Output Register: 0x63, Sequencer memory mode: 0x06
Similar to Mario, but slightly less distorted
Failed asserts: "Overlapped read16 0x0224 (undefined)" . That appears to be the sb16 mixer read address read port - potential bug with sb16.

Syndicate (unplayable)

Mode 13h splash screen, but stuck at that very same splash screen. Esc works to quit. There is a cursor drawn but it is not responsive.

Lemmings (unplayable)

Custom "high res 13h mode" (320x400 256 color)
Miscellaneous Output Register: 0x63, Sequencer memory mode: 0x06
Stuck in black screen, constantly reading 3DA.

Duel 2000 (a little star battle game) (playable)

Mode 12h (write modes 0,2) - working
Miscellaneous Output Register: 0xE3, Sequencer memory mode: 0x06 (the game didn't appear to modify this register)

Capture the flag (playable)

Mode 12h (write mode 0) - Yikes! Wrong colors! dac_map or palette?
Miscellaneous Output Register: 0xE3, Sequencer memory mode: 0x06
Sound working.

Brucelee (unplayable)

Custom "high res 13h mode" (320x400 256 color)
Miscellaneous Output Register: 0x63, Sequencer memory mode: 0x06
Sound working.

Golden Axe (unplayable)

Custom "high res 13h mode" (320x400 256 color)
Miscellaneous Output Register: 0x63, Sequencer memory mode: 0x06
Stuck in black screen, constantly reading 3DA.

Lotus (unplayable)

Mode 13h
Miscellaneous Output Register: 0x63, Sequencer memory mode: 0x0E
Stuck in black screen, constantly reading 3DA.

Ninja (unplayable)

Miscellaneous Output Register: 0x63, Sequencer memory mode: 0x02?
Blank screen, and quits?

The Incredible Machine (unplayable)

Mode 12h
Miscellaneous Output Register: 0xE3, Sequencer memory mode: 0x06?
Stuck in black screen, constantly reading 3DA.

Todo

[ ] Try the games out using the "high res 13h mode" crudely implemented in branch pr-vga-320x400.
[ ] Investigate the 3DA reads.
[ ] Investigate the incorrect colors in Capture the Flag.
[ ] I just realised that the sequencer memory mode register values for mode 12h seems to be different to what osdev wiki tables says (yet it works?). I will try to consolidate these inconsistencies. Maybe the sequencer memory mode register is not the determining factor.
(unrelated to this PR) Investigate I/O read16 port 224 (sb16 mixer address port)


When someone else is editing the same publication, I get a warning

Story
When someone else is editing the same publication, I get a warning
Success criteria

[ ] I can see someone else is editing as well, and I might lose my changes
[ ] I get the opportunity to quickly copy my outstanding changes, so I do not lose them

Additional information
Current idea:

Out of scope

Conflict resolution where you can see who has edited what, and pick "the winner"

Suggestion for content and layout, do adapt if needed @emilyvandewalle!
Content
The content you are editing has changed.
Please copy your edits and refresh the page.
Possible outcomes
Researchers
context

warning on top

when they click save

Librarians
context

warning on top

when they click save

Do you still have any remarks here @emilyvandewalle, @nics or @netsensei?

hi @mietcls can't the 'warning on top' variant be easily missed if it's scrolled out of the viewport?

@nics true. I would suggest:

Get a modal when it happens.
Be able to close the modal to copy your changes, but still have the message on top – we could move it in the header instead of in the form.
Show the modal again if you try to hit "publish" again.

Looks good to me!
I think showing a modal when it happens could be good as it disrupts the editing and makes sure the user acknowledges it. I also think it's a good idea to keep the message in the overview as well 👍
Maybe we can use a modal with a danger blankslate, what do you think?

That will definitely come in handy. Thanks!

Later: be proactive about showing that there is an other person editing

This has been implemented everywhere. We might need some additional testing just to ensure things work in a consistent and correct manner.


AWS Backup: Add EnableContinuousBackup boolean to BackupRuleResourceType

Adds the boolean attribute EnableContinuousBackup. This was applied and tested against CF in a new rule.

Thanks!


Lots of warnings in iOS 10 Xcode project when building

There are many warnings in RNCalendarReminders.m when compiling in Xcode in an iOS 10 project, mainly around deprecations:

Thanks @lyahdav, I've cleaned up these warning in the latest release.


[Documentation]

Is Hypr a compositing window manager? Does it make compositors such as picom obsolete? It would me nice if those things would be documented somewhere. Thanks a lot for the project - it looks great!

No, Hypr is only a window manager. It runs on Xorg, so technically a compositor is not necessary, however, Hypr does not replace nor implement functionality provided by a compositor.
Rounded corners and animations are done properly from within the window manager, and not through a compositor.


operator-sdk: init at 0.18.2

Motivation for this change
Operator-sdk is a cli tool for scaffolding and building Kubernetes operators. This tool is missing in nixpkgs.
Things done

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

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

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

@doronbehar I rebased the commits to change the message. I also updated this to the most recent version as this PR is rather old.

BTW @arnarg, this shouldn't block this PR, but you might wanna make sure your GitHub account has linked the email address you use for Git commits (see https://help.github.com/en/github/setting-up-and-managing-your-github-user-account/setting-your-commit-email-address) - this way, it'll be easy to see get to your profile if someone browses commits via the web interface. Right Github writes:
Arnar Gauti Ingason authored and arnarg

@doronbehar I most likely made these commits using my old work email which I recently removed from my GitHub profile. I can rebase the commits again.

Is anything blocking this PR? I'd very much use this in a nix shell...

/marvin opt-in

/marvin opt-in

/status needs_reviewer

Result of nixpkgs-review pr 78451 1

1 package built:
- operator-sdk

Manually:

[x] ./results/operator-sdk/bin/.operator-sdk-wrapped --help ok
[x] grep WARN logs/operator-sdk.log empty
[x] grep ERR logs/operator-sdk.log empty

/status needs_merger

Result of nixpkgs-review pr 78451 1

1 package built:
- operator-sdk

/status needs_merger

Bot mistake.
/status needs_merger

Thanks  for the reviews @doronbehar @blaggacao. Looks good to me.
Welcome to the team @arnarg!


Doesn't work on Windows 10

It simply doesn't work on Windows 10. Ctrl + Shift + T has no effect whatsoever. I appended this to the end of File >> Open your config:
"atom-terminal":
  app: "C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe"

It doesn't work either if I replace / by \. When I do this, after restarting Atom, the config file strangely look like this:
"atom-terminal":
      app: "C:WindowsSystem32WindowsPowerShell\u000b1.0powershell.exe"

Could someone help me, please?

Use double backslashes and see if that works. The default is 'C:\\Windows\\System32\\cmd.exe' so write it in that style.

Doesn't work on Windows 10 for me.

Same here

works fine for me on win10 though.

it seems to be fixed now, I'm not 100% since I dropped Windows for development (for these reasons).

I have the same problem...


Sharing a URL with a space in it, causes sharing to fail

When you try and share a url with a space in the name, the plugin fails to share the link.
Current work around is to urlencode the url.

Have you tried to use Xamarin.Essentials. That is the next evolution: https://docs.microsoft.com/en-us/xamarin/essentials/data-transfer?context=xamarin%2Fxamarin-forms&tabs=ios


replace AsHTTP with WithHTTPHandler/WithHTTPServer

In general, I think this change is for the better.

It leads to a smaller interface (removes HTTPTunnel, AsHTTP)
It's more type safe, you can only use the HTTP serving functionality on tunnel/endpoint types we know can support it
Even if you don't want to use WithHTTPHandler because it's async and doesn't block, it's cleaner to just call http.Serve() on the returned tunnel listener.
If we still dislike WithHTTPHandler's async goroutine spawning, I think we just remove it from this PR and still merge to remove HTTPTunnel/AsHTTP. That being said, I think this is still some nice optional sugar for those who want it.

i've adjusted context semantics. overall i think this is cleaner. ultimately the WithHTTPHandler sugar is optional. i'm okay removing it if we think there's no net benefit but it seems like reasonable sugar that doesn't complicate or detract from the API in any other meaningful ways

gentle ping @euank

I'm on the fence here too.
This feels cleaner in that it's more declarative feeling, which is good! People want to declare up front the tunnels they want IMO, and not deal with the imperative sess.StartTunnel API unless they're doing something off the beaten path.
In that regard, this API feels better.
However, the hidden goroutine feels weird.
Let's compare the old and new use:
Old:
	tun, err := ngrok.StartTunnel(ctx,
		config.HTTPEndpoint(),
		ngrok.WithAuthtokenFromEnv(),
	)
	err := tun.AsHTTP().Serve(ctx, http.HandlerFunc(handler))
        // http.Server.Serve error
        tun.CloseWithContext(ctx) // possibly a ctx error, so this is wrong :(
        return err

New:
	tun, err := ngrok.StartTunnel(ctx,
		config.HTTPEndpoint(
			config.WithHTTPHandler(http.HandlerFunc(handler)),
		),
		ngrok.WithAuthtokenFromEnv(),
	)
	// how do I know if `http.Server.Serve` encountered an error?
	<-ctx.Done()
        tun.CloseWithContext(context.TODO()) // ctx is done, so I can't use it here :(
        return ctx.Err()

In practice, http.Server.Serve won't error out in many cases. If muxado internally hits a queue overflow or something, I think that bubbles up from ln.Accept() and will cause Serve to silently stop, but I think that's pretty much the only case, and I can't make such an error happen in practice.
Still, I can't help but want something like:
   select {
   <-tun.Done():
   <-ctx.Done():
    }
    if tun.Err() != nil {
      // err is the underlying `session` error, which propagates to all tunnels on it when the tunnels tear down.
      // In this case, it might be the http.Server.Serve error we're swallowing right now, or some other error like 'session.Stop() called', or 'ctx.Err()', or "the ngrok authtoken was deleted" or something, depending on what happened
    }

Having something like that seems compatible with this API, and like it maybe makes it feel strictly better to me?
I do think, on net, the increase in declarativeness is good and I like this more than what we've got now.

Since the implicit use of the context.Context used to start the tunnel is no longer a thing, and users are expected to set the BaseContext field of their http.Server, we can't even use that to block on server exit.
What if the WithHTTP(Handler|Server) functions took a channel to return the error through?
func WithHTTPHandler(h http.Handler, errCh chan<- error)
func WithHTTPServer(s *http.Server, errCh chan<- error)

Then you have both a way to block on http server exit and a way to get back the error it encountered.

I think passing in a channel like that is fairly awkward.
It feels more awkward in my eyes than:
err := <-tun.ServeErr()
// or
<-tun.Done();
err := tun.Err()

I think not all sugar needs to be fully functional. Sugar has tradeoffs and not being able to block or pull the error out seems like a pretty reasonable one to me in order to enable a quick way to get an http handler listening. Especially because the alternative is as easy as calling http.Serve yourself.
If we really want to take this further I'd suggest a follow up that adds 1) a guarantee that the http server in this option continues to run for the lifetime of the session (by adding a loop into that goroutine) and 2) an API to Session that allows the caller to wait on its completion


How can I run the test in idea

Please answer these questions before submitting your issue.

Why do you submit this issue?
[x] Question or discussion
[ ] Bug
[ ] Requirement
[ ] Feature or performance improvement

Question

What do you want to know?
I want to run the test in my IDEA.So, I can follow the code。
Please， help me run the test.

Bug

Which version of SkyWalking, OS and JRE?

Which company or project?

What happen?
When I run the test in my IDEA.

If possible, provide a way for reproducing the error. e.g. demo application, component version.
Error:(92, 173) java: 不兼容的类型: <匿名io.grpc.stub.StreamObserver<org.apache.skywalking.apm.network.common.Commands>>无法转换为org.apache.skywalking.apm.dependencies.io.grpc.stub.StreamObserver<org.apache.skywalking.apm.network.common.Commands>
Error:(174, 65) java: 不兼容的类型: io.grpc.Channel无法转换为org.apache.skywalking.apm.dependencies.io.grpc.Channel

Requirement or improvement

Please describe about your requirements or improvement suggestions.

I had follow the markdown How to build project.

I don't know what you are doing. If you want to debug agent, read official blogs.


#3176: Scatter plot: some labels disappear unexpectedly on zoom in / out

v1.22.2
Steps to reproduce:

Open SPGI
Add a scatter plot
Set up labels (e.g. with Structure column): show labels for selected, mode = auto
Select a few items on scatter plot, so that all labels are displayed for the selected items
Zoom in, so that some labels are out of currently displayed plot part
Zoom out again

Additional scatter plot settings used when this issue was reproduced: 'pack and zoom by filter', select on mouse drag.
Expected results: all labels should be visible again after zooming out.
Actual results: some of the labels are not show, but appear only on hovering the dot. However there is enough space for all of them to be displayed.

This issue has been mirrored in Jira: https://reddata.atlassian.net/browse/GROK-17061

Olesia Pavlenko commented in Jira:

works on dev 1.23.0

DG 1.23.0 and 1.22.3


add find test cases

Coverage increased (+0.4%) to 85.538% when pulling 16fc15c3e850f4785fe22cacc3fd62491f666330 on find-test into 7f80b911353e400e1decfbf42e8a88e6f30c693f on master.

Coverage increased (+0.4%) to 85.538% when pulling 7a48170ca500a3befff81290d549c56246868a9b on find-test into 7f80b911353e400e1decfbf42e8a88e6f30c693f on master.

Coverage increased (+0.4%) to 85.538% when pulling af9013a70526e0a5afb58ffcda8cce23228c6bf3 on find-test into 7f80b911353e400e1decfbf42e8a88e6f30c693f on master.


Add method to create a SoCo object from a known Sonos device IP address

This method allows instantiation of a SoCo object using a known Sonos device IP address. This is a convenience for cases where the normal discovery method is failing, for example when there is a network problem with multicast traffic.

Coverage decreased (-0.1%) to 56.709% when pulling 1b96e6ac9d8da5fbc9ebb521474f65c972b648d9 on pwt:add_discovery_using_a_speaker_IP into 0ed276c7e1508b0961802470b0fe5a02f178640b on SoCo:master.

Ah, I see that one can already do this with the normal SoCo constructor.


About the net architecture

Hello Dr Thomas
I noticed that in your paper, the encoder of rigid KPFCNN has five layers. Each layer contains two convolutional blocks.And in your pytorch version, it seems like there are three convolution blocks in the first four layers.
https://github.com/HuguesTHOMAS/KPConv-PyTorch/blob/3a774ff8d54a4d080fe65093b2299ede35d9735d/train_S3DIS.py#L93-L114
The 1th-4th layers seems composed with  kpconv, kpconv, kpconv-stride
The fifth layers coposed with kpconv kpconv
The kpconv I reference this one

Does the pytorch version different with the paper version?  Does my understand correct?
Thank you for your help!

Hello Dr.Thomas
I've got some questions and I really need your help.
I try to explore the out shape of each block(only in the encoder).
I add this after the line332
 print("current_block:", block_i, "current_shape", x.shape)
https://github.com/HuguesTHOMAS/KPConv-PyTorch/blob/3a774ff8d54a4d080fe65093b2299ede35d9735d/models/architectures.py#L329-L332
Here is the result:
current_block: 0 current_shape torch.Size([15641, 64])
current_block: 1 current_shape torch.Size([15641, 128])
current_block: 2 current_shape torch.Size([8635, 128])
current_block: 3 current_shape torch.Size([8635, 256])
current_block: 4 current_shape torch.Size([8635, 256])
current_block: 5 current_shape torch.Size([3361, 256])
current_block: 6 current_shape torch.Size([3361, 512])
current_block: 7 current_shape torch.Size([3361, 512])
current_block: 8 current_shape torch.Size([940, 512])
current_block: 9 current_shape torch.Size([940, 1024])
current_block: 10 current_shape torch.Size([940, 1024])
current_block: 11 current_shape torch.Size([239, 1024])
current_block: 12 current_shape torch.Size([239, 2048])
current_block: 13 current_shape torch.Size([239, 2048])
I have some questions about the result. In my opinion, for example, the shape is [239,2048], 239 is the number of points in this batch, 2048 is the output dimension. Am I right?
And this output is the feature of a point, only feature, without the coordinate.
the coordinate is saved in the "batch", like the second parament in the line 332
https://github.com/HuguesTHOMAS/KPConv-PyTorch/blob/3a774ff8d54a4d080fe65093b2299ede35d9735d/models/architectures.py#L332
Does my understand right?
I try to add a self attention block between the block 12 and block 13, I try to let this block handle the output of the block12, and pass the result to the last block. It seems I don't need the parament "batch ".
Will this lead some mistake to the result? I hope I can get some advice from you!
It's my honor to get your help!

Does the pytorch version different with the paper version? Does my understand correct?

Yes indeed, I must have experimented with different architectures at the time and kept this one. It usually does not make many differences in the performances, but you can indeed play with the architecture and eventually optimize it quite more than I did.

I have some questions about the result. In my opinion, for example, the shape is [239,2048], 239 is the number of points in this batch, 2048 is the output dimension. Am I right?
And this output is the feature of a point, only feature, without the coordinate.

yes, you are right

the coordinate is saved in the "batch", like the second parament in the line 332

yes, the point coordinate for layer l is stored in batch.points[l] to be exact, and has shape [N, 3], where N will be the same as the first dimension in your printed messages (239 for the last layer for example)

I try to add a self attention block between the block 12 and block 13, I try to let this block handle the output of the block12, and pass the result to the last block. It seems I don't need the parament "batch ".
Will this lead some mistake to the result?

Ok if you are trying to add a new block I think the most simple thing to do is to keep the same conventions I used. So keep the parameter batch, even if you do not need it. Here is what you should do:

Modify the config.architecture parameter to add your block in there:
architecture = [
                 ...

                'resnetb',
                'resnetb_strided',
                'attention_block',
                'resnetb',

                 ...

                ]

or something like that

Go where I create the blocks

https://github.com/HuguesTHOMAS/KPConv-PyTorch/blob/3a774ff8d54a4d080fe65093b2299ede35d9735d/models/architectures.py#L234-L240
You can see that the block_op is returned by this function which takes some parameters:
block: the name of the block as a string, here: 'attention_block'
r: current radius, only useful for convolutions, you will not need it
in_dim:  input dimension of the features (for you it should be 2048)
out_dim: output dimension of the features (for you it should still be 2048)
layer: the current layer index
config: all the config parameters
So you need to go and modify this block_decider function to add the ability to return your own block:
https://github.com/HuguesTHOMAS/KPConv-PyTorch/blob/3a774ff8d54a4d080fe65093b2299ede35d9735d/models/blocks.py#L386-L426
There you can add an elif statement for your block, and pass any parameter you need as argument:
     elif block_name == 'attention_block':
         return AttentionBlock(in_dim, out_dim, any_other_parameter_you_need)

Then you can create the class for your block. Take inspiration from some of my own block classes in the blocks.py file

For example the
https://github.com/HuguesTHOMAS/KPConv-PyTorch/blob/3a774ff8d54a4d080fe65093b2299ede35d9735d/models/blocks.py#L469
define a simple MLP.
or even simpler the
https://github.com/HuguesTHOMAS/KPConv-PyTorch/blob/3a774ff8d54a4d080fe65093b2299ede35d9735d/models/blocks.py#L651-L661
only return the average feature between all points.
Any parameter you need here can be passed through in the block decider function.

Eventually you see that the forward function is always taking the feature tensor x and the batch, even if you do not need it.

Write you own forward function and you can just ignore the batch variable if you don't need it, like I do in the Unary block:

Hi Mr.Thomas
Wow! Thank you for your detailed and thoughtful answer. I've tried to implement the self-attention block and it leads to no bugs but there's no significant performance improvement. The improvement I've had is around 1%. I think it's probably because my data only has XYZ coordinate, and the way I implement the self-attention may mainly focus on the feature. If I add more features it may lead to an improvement. Do you have some advice for me?
Thank you for your considerate reply again! Wish you have a good day!


Bug in v1.0.9

In last version when you try to take a second picture using the camera, this error appears. In v1.0.8 is working correctly I guess its because of compileSdk 34
Writing exception to parcel (Ask Gemini)                                                                                java.lang.SecurityException: Permission Denial: writing androidx.core.content.FileProvider uri content://com.atwa.filepicker.provider/cache/17164781527943286665285211823.jpg from pid=23570, uid=10099 requires the provider be exported, or grantUriPermission()                                                                                at android.content.ContentProvider.enforceWritePermissionInner(ContentProvider.java:1167)                                                                                at android.content.ContentProvider.semEnforceWritePermission(ContentProvider.java:1093)                                                                                at android.content.ContentProvider$Transport.enforceWritePermission(ContentProvider.java:836)                                                                                at android.content.ContentProvider$Transport.enforceFilePermission(ContentProvider.java:803)                                                                                at android.content.ContentProvider$Transport.openAssetFile(ContentProvider.java:609)                                                                                at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:284)                                                                                at android.os.Binder.execTransactInternal(Binder.java:1375)                                                                                at android.os.Binder.execTransact(Binder.java:1311)

I guess from the stack trace the provider only should be marked as exported.
I'll try to fix this ASAP.
Thanks @punto338

I guess from the stack trace the provider only should be marked as exported. I'll try to fix this ASAP. Thanks @punto338

Also there is an error when trying to install 2 apps both using the file picker. 1st app is installed correctly but when trying to install the second one says:
The application could not be installed: INSTALL_FAILED_CONFLICTING_PROVIDER Installation failed due to: 'Error code: 'INSTALL_FAILED_CONFLICTING_PROVIDER', message='INSTALL_FAILED_CONFLICTING_PROVIDER: Scanning Failed.: Can't install because provider name com.atwa.filepicker.provider (in package com.punto338.sample) is already used by com.punto338.othersample'' List of apks: [0] 'app-release.apk'

@Atwa any updates about my last message?

Closed by https://github.com/Atwa/filepicker/pull/26


adding vedabrat to list

Adding myself to the contributers list.

Hi  @vedabrat, I'm quite elated about your pull request. I wanna evolve this project to addresses various problems faced by first-time contributors. I'd love to learn about your journey in open source community, the problems, pain points you had etc.
Could you explain how you felt when you went through the tutorial, made a pull request and learned that I merged it?
We’ve recently added social share  to our web app. Could you please go to https://roshanjossey.github.io/first-contributions/#social-share and share your first contribution to open source?
Also, check out projects with easy issues while you’re there.


ssh not working on win-5

Cannot ssh into win-5, the bot seems to be up and working.
Possibly some setting is missing to allow ssh into the host.

I have opened a go/guts ticket with network folks and they can investigate from the network side.
https://gutsv3.corp.google.com/#ticket/217327103

End-users could not ssh from outside to machine flutter-devicelab-windows-5 due to Mac Address resides on DNS server were wrong, Yusuf has been opened a service ticket to get update Mac Address on DNS server. We're waiting for a response from Tech Support when it's done.

mac address updated. ssh is now working.


TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/77037

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/77045

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/77033

Triggering TagBot for merged registry pull request
This extra notification is being sent because I expected a tag to exist by now, but it doesn't.
You may want to check your TagBot configuration to ensure that it's running, and if it is, check the logs to make sure that there are no errors.

Triggering TagBot for merged registry pull request
This extra notification is being sent because I expected a tag to exist by now, but it doesn't.
You may want to check your TagBot configuration to ensure that it's running, and if it is, check the logs to make sure that there are no errors.

Triggering TagBot for merged registry pull request
This extra notification is being sent because I expected a tag to exist by now, but it doesn't.
You may want to check your TagBot configuration to ensure that it's running, and if it is, check the logs to make sure that there are no errors.

Triggering TagBot for merged registry pull request
This extra notification is being sent because I expected a tag to exist by now, but it doesn't.
You may want to check your TagBot configuration to ensure that it's running, and if it is, check the logs to make sure that there are no errors.


Version 6.0.1

Hi, thanks for the plugin. I've tried to fork it and just change package.json so it can work with 6.0.1 but I'm getting the error:
Plugin installation was unsuccessful due to error "No kibana plugins found in archive"
What I'm doing wrong?
https://github.com/vladan-me/kibana-API/releases
Maybe you can release it in the meanwhile.
Thanks

Done


Create myosstea.yaml

adding file .yaml for OSS tea

Why is this being added?

I want to contribute sir


Document OAuth dependency to spring-boot-starter-oauth2-client

In docs there is no hint that:
<dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-oauth2-client</artifactId>
</dependency>

is required for spring.cloud.openfeign.oauth2.enabled=true to work.

Hello @tjuchniewicz, thanks for pointing this out. Will add it to docs.


struct declared inside @MainActor func can't be made Equatable

This doesn't compile:
struct NonEquatable { }

@MainActor
func f() {
    struct Thing: Equatable {
        // ^ 🛑 Type 'Thing' does not conform to protocol 'Equatable'
        let prop: NonEquatable

        static func == (lhs: Thing, rhs: Thing) -> Bool { true }
    }
}

The compiler emits the error shown in the comment. The fix-it offered adds another declaration of static func == with the same signature. The existing static func == should satisfy the Equatable requirement.
I believe the compiler should accept this program. If there is a reason why it cannot accept the program, the compiler should emit the reason. Either it should explain why the given static func == doesn't satisfy the Equatable requirement, or the fix-it should add a different declaration of static func == that does satisfy the requirement.
Environment (please fill out the following information)
macOS 12.4 (21F79)
Xcode Version 14.0 beta 3 (14A5270f)

Duplicate of #45682

Fixed by #59246 on main, but not the release branch.


[BUG]: drizzle-kit does not generate idempotent ADD COLUMN migrations

What version of drizzle-orm and drizzle-kit are you using?
0.29.1 and 0.20.7
Issue
Adding a column generates this SQL, which is not idempotent, and thus causes errors and breaks the prototyping workflow:
ALTER TABLE "users" ADD COLUMN "email" text;

It should generate this SQL instead:
ALTER TABLE "users" ADD COLUMN IF NOT EXISTS "email" text;

Context
Most migrations drizzle-kit generate generates can be run without error even if their effect has already been applied to the DB:
DO $$ BEGIN
  CREATE TYPE "enum_users_role" AS ENUM('user', 'admin', 'admin_read_only');
EXCEPTION
  WHEN duplicate_object THEN null;
END $$;

CREATE TABLE IF NOT EXISTS "Assessment" (
  "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
  "name" text NOT NULL,
);

CREATE INDEX IF NOT EXISTS "users_name_idx" ON "users" ("name");

This is very useful when prototyping with drizzle-kit push, as it lets developers generate then apply migrations locally after prototyping without having to somehow rollback their database to its state before they started prototyping.

this is causing problems, with every push this is happening:
Warning  You are about to execute current statements:

truncate table "users" cascade;
ALTER TABLE "users" ALTER COLUMN "email" SET NOT NULL;
ALTER TABLE "presets" ADD COLUMN "ab_testing" boolean DEFAULT false NOT NULL;

 Warning  Found data-loss statements:
· You're about to set not-null constraint to email column without default, which contains 2 items

THIS ACTION WILL CAUSE DATA LOSS AND CANNOT BE REVERTED

i have made changes in my User table by adding new columns and then created more tables but while migrating "column doesnt exists" error is coming. i am using postgres. idk whwat to do. i am stuck.export const UserTable = pgTable(
"user",
{
id: uuid("id").primaryKey().defaultRandom(),
name: varchar("name", { length: 20 }).notNull(),
age: integer("age").notNull(),
email: varchar("email", { length: 255 }).notNull(),
role: UserRole("userRole").default("BASIC").notNull(),
},
(table) => {
return {
emailIndex: uniqueIndex("emailIndex").on(table.email),
};
}
);
PostgresError: column "email" does not exist
PLEASE HELP

I've found the same behavior as described in this issue. I'm currently manually checking each of my migrations to make sure they're idempotent.

This behavior will be changed, and we won't add any IF NOT EXISTS. We will create discussions to explain how it will work. Ideally, nothing should be idempotent and should be tracked by a table in the database. I'll close this issue in favor of creating a new discussion with an explanation of how the migration flow will be structured

Any update here? @AndriiSherman was a new discussion posted?

This behavior will be changed, and we won't add any IF NOT EXISTS. We will create discussions to explain how it will work. Ideally, nothing should be idempotent and should be tracked by a table in the database. I'll close this issue in favor of creating a new discussion with an explanation of how the migration flow will be structured

Can you please explain how the migration flow will be structured?


Add another client access example on exercise 5 for Maps

@krishnaglodha currently we only have OWSLib as an example here. Add another example of client access using a different tool/library.
Some examples of client implementations can be found here:
https://github.com/opengeospatial/ogcapi-maps/blob/master/implementations.adoc#clients

I tried with https://gitlab.com/IvanSanchez/leaflet.imageoverlay.ogcapi
In theory it works
https://github.com/geopython/diving-into-pygeoapi/assets/47075664/ba601cbf-292c-4edd-a194-3e19f3a6bcef
but the issue is that the points are not places correctly, I'm not sure if it is error from leaflet.OGCAPI extension of pygeoapi. But the data only starts being at correct location when we are super zoomed.
Also as per the doc of leaflet extension https://gitlab.com/IvanSanchez/leaflet.imageoverlay.ogcapi#caveats , I have reprojected data to EPSG:3857 and then trying to use it

This looks like a projection issue. Did you try it with another dataset from mapserver, to see if it still holds?

https://github.com/geopython/diving-into-pygeoapi/pull/118


chore(main): release 2.4.0

:robot: I have created a release beep boop
2.4.0 (2024-02-13)
Features

handle resizing the game window and editor (489bba1)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/NStefan002/2048.nvim/releases/tag/v2.4.0 :sunflower:


InvalidClassException while replaying events

Occasionally I'm unable to re-create an actor due to an InvalidClassException:
[ERROR] [akka://Foo/user/bea13f14-78e5-4b5a-8ebc-3b153b52ed42] Persistence failure when replaying events for persistenceId [bea13f14-78e5-4b5a-8ebc-3b153b52ed42]. Last known sequence number [0]
java.io.InvalidClassException: com.foo.bar.Action$Admin$; no valid constructor

I'm using a JSON serializer, and other persistence IDs with the same structure (including that Action Admin class) can have their events replayed just fine.
The only thing that I think is different between this persistence ID's events and any other (that can have their events replayed just fine) is that there are more events (>150) in the one that doesn't work.
Any thoughts on potential causes of this exception would be very helpful!

If I google this error message then it really seems you are using java serialization.
Can you try to test while disabling java serialization as follows?
akka.actor.allow-java-serialization = off

You will probably get a different error (when writing the events) which will let you know that you probably have a misconfigured serializer

Thanks @WellingR
I'm using a customer JSON serializer, so adding
akka {
  actor {
    allow-java-serialization = off
  }
}

doesn't have any affect. My serializer code is pretty similar to the example in the Akka Persistence docs (instead using Circe to serialize to JSON):
class JsonSerializer extends SerializerWithStringManifest {

  val Utf8 = Charset.forName("UTF-8")
  val JsonManifest = "Json"
  def identifier = 1234567

  override def manifest(o: AnyRef): String = JsonManifest

  override def toBinary(obj: AnyRef): Array[Byte] = obj match {
    case e: Event =>
      e.asJson.noSpaces.getBytes(Utf8)
    case _ ⇒ throw new IllegalArgumentException(
      s"Unable to serialize to bytes, clazz was: ${obj.getClass}"
    )
  }

  override def fromBinary(bytes: Array[Byte], manifest: String): AnyRef = {
    manifest match {
      case JsonManifest =>
        val json = new String(bytes, Utf8)
        decode[OperationalEvent](json).right.get // Obviously .get isn't good practice here
      case _ => throw new NotSerializableException(
        s"Unable to deserialize from bytes, manifest was: $manifest! Bytes length: " + bytes.length
      )
    }
  }

}

Thanks

@josh-s-g
To be sure have been able to reproduce the issue on an event which as been written after you have disabled java serialization?
Does the exception you get have a stacktrace?
It would help if you can create a minimal example where you write and read an event, and reproduce this problem.

Right, thanks for the pointers. I think I figured out that the java serialization was being used, but only for snapshots (not regular events). That's why only the persistence IDs with lots of events were showing this issue. I have
akka {
  actor {
    allow-java-serialization = off
    serializers {
      Json = "com.foo.bar.JsonSerializer"
    }
    serialization-bindings {
      "com.foo.bar.events.Event" = Json
    }
  }
}

is there another configuration required to specify serialization for snapshots too?

Yes, you do need to configure how your snapshot must be serialized, but this is similar to the serialization of regular events
    serialization-bindings {
      "com.foo.bar.events.Event" = Json
      "com.foo.bar.shapshots.Snapshot" = Json
    }

Ok, great, thank you :+1:


[IDE] Assorted code completion fixes

This PR addresses a couple of FIXMEs I found.

Remove unnecessary call to getInterfaceType().
Use addExclamationMark() instead of adding ! text chunk.
Use referenced function instead of operator in addPostfixOperatorCompletion and addInfixOperatorCompletion.
Fix a typo.

I ran IDE tests locally and there were no failures.

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test Windows

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test

There were a couple of additional fixes, but for some reason they fail on CI but passed locally when running lit tests. I'll investigate and put up a PR for them in a follow-up, so for now I have removed them from this PR.


Full API documentation missing

Is there anywhere complete documentation for the project?
e.g. example shows usage of browser.fill but I don't see this function documented anywhere, it'll be good to have some place where we have full overview of the API.

that doesnt really help me since im trying to figure out what that function wants.  I guess its time to move to a different project

Not sure who wrote this, but it has a more thorough documentation on the API:
http://zqdevres.qiniucdn.com/data/20110811173813/index.html
I thought I was losing my mind with some mysteriously failing unit tests until I discovered people mentioning browser.wait()... but then I was confused why there wasn't full documentation on its main page!


Jupyter notebooks

Looks like the pyflux website is not functional anymore. I cannot find the jupyter notebooks anywhere. Does anyone have them archived or know where I can get my hands on the example notebooks?

@RJT1990 Yeah. And the images disappeared.

On that note, is this project still under development?  Seems abandoned, which is a shame...


Error Resolving Exposed Routes and Components in Native Federation Configuration

For which library do you need help?
native-federation
Question
I am encountering an issue when trying to expose routes and components in my Native Federation configuration. Here’s the relevant part of my federation.config.js:
'''
const {
withNativeFederation,
shareAll,
} = require("@angular-architects/native-federation/config");
module.exports = withNativeFederation({
name: "MFE1",
exposes: {
"./Component": "./src/app/app.component.ts",
"./routes": "./src/app/app.routes.ts",
},
shared: {
...shareAll({
singleton: true,
strictVersion: true,
requiredVersion: "auto",
}),
},
skip: [
"rxjs/ajax",
"rxjs/fetch",
"rxjs/testing",
"rxjs/webSocket",
// Add further packages you don't need at runtime
],
// Please read our FAQ about sharing libs:
// https://shorturl.at/jmzH0
});
'''

When building the federation artifacts, I receive the following errors:
INFO  Building federation artifacts
X [ERROR] Could not resolve "./src/app/app.routes.ts"
X [ERROR] Could not resolve "./src/app/app.component.ts"
Angular version: 18
Native Federation version: 18.2.2

Did you try to change the path to something like:
 exposes: {     './Component': **'./projects/todo/**src/app/app.component.ts',   }


Update Docs please

iam tottaly new today in your project, but i think i has, what i was lf.
For me today, i can not open your website docs!

just close if iam wrong for any reasons. ty and ch33rs


DO.mod in predict_DO for Bayesian model

Hi Alison and Bob,
First of all thank you so much for answering my questions in #390. Your insights are really helpful!
Here I'd like to raise another question about DO.mod in predict_DO. As I was trying to calculate the metric for goodness of fit using DO.mod and DO.obs, as described in #367, I'm not sure if this DO.mod from predict_DO has been corrected by process error already (I want to know what kinds of error the residuals contain).
Later I followed #222 and produced two plots, as below. The blue dashed line is DO.mod from mcmc results and the brown line is DO.mod calculated by calc_dDOdt. For the observation model ("b_Kb_oi_tr_plrckm.stan"), the two lines match, but for the state-space model ("b_Kb_oipi_tr_plrckm.stan"), they don't. So I was wondering if this difference is caused by the correction of process error in mcmc calculation. In other words, DO.mod in predict_DO (brown line) does not account for process error?

The observation error Bayesian model

The state-space Bayesian model
Thank you,
Tzu-Yao

Your interpretation of the software behavior is correct - predict_DO returns predictions for DO that are not corrected for process error, which is why the observation-error-only models show better matches between the observations and the output of that function.
I've had open issues for a couple of years to add in process error corrections within predict_DO (#294, #330). Given that I am no longer actively developing the package, they're not likely to be resolved soon. Fortunately, you can already get the process-error-corrected predictions by requesting that they be tracked in Stan (they're called DO_mod):
revise(specs, params_out=c(params_out, 'DO_mod'))

Then you just need to pull these DO_mod values out of the instantaneous data.frame within the model fit.

Thank you so much Alison!


Looking for Sony devices: operation timed out

Hi, here https://www.youtube.com/watch?v=Bj3txJ9zVnY you can see my problem:"Looking for Sony devices: operation timed out" :(
The 0.10 version GUI recognizes my camera Sony A7m2, then I load OpenMemories-Tweak.apk, the program reboot camera...but while the camera will restart the program gives me this error: "Exception: Timeout".
My camera is set to MPT and SINGLE LUN USB.
Can someone help me ? Thanks :)

Duplicate


Fix English mistakes everywhere

Some notable examples:

closes_volunteer instead of closest_volunteer
There are some places in the code that say volunter instead of volunteer
All option fields are... odd. From mistakes ("NIGHBORHOOD_COORDINATOR", "TO_VOLUNTER") to shortened words ("HOME_HEL" and "BUYIN" which stands for home help and buying, respectively), these should all be regular words. Are we trying to save up on bytes here?
tz_number should and could be changed to id_number, will also improve consistency across codebase
This isn't really on our system but levechad.org/donates should be donate or donation, donates doesn't make sense

On hold until the new system stabilizes


Strings

Description
I will be demonstrating strings in c++ language . It will include various functions on strings and some example problems to implement the functions .
Domain
C/CPP
Type of Contribution
Video
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

/assign


GitHub Tree NPM Package

GitHub Tree NPM Package

GitHub: https://github.com/sauravhathi/github-folder-tree
NPM-Package: https://www.npmjs.com/package/github-folder-tree


[Snyk] Security upgrade vuetify from 2.6.9 to 2.6.10

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

package.json
package-lock.json

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Breaking Change
Exploit Maturity

623/1000  Why? Proof of Concept exploit, Recently disclosed, Has a fix available, CVSS 4.6
Cross-site Scripting (XSS) SNYK-JS-VUETIFY-3019858
No
Proof of Concept

(*) Note that the real score may have changed since the PR was raised.

Commit messages

Package name: vuetify
    The new version differs by 18 commits.

fdfb6fc chore(release): publish v2.6.10
cd193e4 fix(VSelectList): correct mask class
f50a808 chore: update commit message template
89e3850 fix(VDialog): don't try to focus tabindex="-1" or hidden inputs
4468e3c refactor(VSelect): render highlight with vnodes instead of innerHTML
ade1434 fix(VCalendar): prevent XSS from eventName function
1be5260 docs(SystemBar): add new promotion
69eefd9 chore(ci): set percy base branch
ac45c98 fix(web-types): add support for VDataTable pattern slots (#15694)
464529a fix(VMenu): disabled activatorFixed when attach is enabled (#15709)
381fdb5 docs: use "id" in item-value of autocomplete example (#15740)
a455163 chore: update commit message template
c8dbfa5 chore(ci): run percy tests on next with nightly build
0c90436 docs(i18n): remove the additional Arabic word for "language" (#15662)
3680756 docs(support.md): implement kintell booking
25a3474 docs(text-fields): clarify that readonly does not affect clearable
7a51ad0 fix(VTextField): only show clear icon on hover or when focused
f8ee680 fix(VTextField): prevent tabbing to clear button

See the full diff

Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Cross-site Scripting (XSS)

Superseded by #93


Passing parameters to trigger when deleting it

As the trigger delete command will invoke the feed with 'DELETE' lifecycle parameter, I couldn't  pass additional parameters such as the credentials needed in order to delete the resources ( services ) used by the feed.
Is there any alternatives where can I pass additional parameters to the feed in the trigger delete command ?
Thanks

This is related to #471. As a work around, you can run the feed directly. Did you try that?

Only the package parameters of the feed are passed.

As a work around, you can run the feed directly. Did you try that?
Yes I did and it works well

closing as authkey is passed on all lifecycle feed invokes


Plugins that were not migrated for Android V2 breaks background services.

Hi All and @markusaksli-nc :)
Bringing here  what was discussed in
https://github.com/FirebaseExtended/flutterfire/issues/4424 and #62006
When we upgraded firebase_messaging for V8 we were expected to be able to use plugins without the workaround that was needed before to manually register the ones we would need.
The problem is that in the App itself after migrating to V8 the Shared Preference was not working giving us:
E/flutter (26007): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: MissingPluginException(No implementation found for method getAll on channel plugins.flutter.io/shared_preferences)
When trying to reproduce in a minimal app everything would work perfectly and Shared Preference would work without problems.
That's when i realized:
Everyone having this problem, please open your GeneratedPluginRegistrant and you will see flutter registering the plugins with 2 different types, the old plugins and the new ones.
The plugins are inserted there alphabetically independent of V1 or V2 embedding.
Now, here's the Catch, as long as you include a plugin that uses the V2 Embedding AND do not include any V1 embedding BEFORE(and by before i mean alphabetically, by the plugin name) it will work.
In my case, i was trying to use Shared Preferences, it starts with "S", So i CAN include the "Social Share" plugin because the order of the GeneratedPluginRegistrant will be ok
flutterEngine.getPlugins().add(new io.flutter.plugins.sharedpreferences.SharedPreferencesPlugin());

com.shekarmudaliyar.social_share.SocialSharePlugin.registerWith(shimPluginRegistry.registrarFor("com.shekarmudaliyar.social_share.SocialSharePlugin"));

flutterEngine.getPlugins().add(new name.avioli.unilinks.UniLinksPlugin());

So i could theoretically use SharedPreferences but NOT  unilinks.
I Can see 3 different approaches to fix this problem...
1 - Generate the GeneratedPluginRegistrant by Embedded version Order V2->V1, we would not be able to use V1 Plugins in our Background process, but it would not break Any V2 Plugin
2 - Remove or fix the plugin to use V2
3 - Check with Flutter Team why it's breaking when registering V1 (It's OK if it does not work, but it SHOULD not break the rest of the plugins)
While Flutter team cannot check the 3rd one I've come with a workaround to at least  use all V2 plugins without issues..
What we will accomplish is to change the order of the GeneratedPluginRegistrant to put all V1 in the bottom. (The first option)
To do this we need to alter the flutter tools responsible for generating that file it is pretty simple.
Open the file
<flutter-sdk-location>/packages/flutter_tools/lib/src/plugins.dart
find the _writeAndroidPluginRegistrant function and add the following snippet AFTER the call to _extractPlatformMaps:
    androidPlugins.sort((Map<String, dynamic> left, Map<String, dynamic> right) {
      if (left["supportsEmbeddingV2"] != right["supportsEmbeddingV2"]) {
        return left["supportsEmbeddingV2"] ? -1 : 1;
      }
      return left["name"].compareTo(right["name"]);
    });

Now we only need to rebuild flutter tools, to do that we need to remove  the flutter_tools.stamp:
rm -rf  <flutter-sdk-location>/bin/cache/flutter_tools.stamp
That's it, now you can flutter pub get and the GeneratedPluginRegistrant will be sorted as we want and we will be able to use V2 embedded plugins without problems.
I could theoretically make a PR to change this snippet on flutter tools, but I think we need first to confirm with someone from the team that it would be needed..
PS: As stated in the #62006 I Have not yet tested on iOS and this issue is related to Android only for now.

@atrope
Thanks for the detailed report. Is there a way to replicate the core issue and then try to implement the fix you've proposed above, in order to better analyze this issue ?

Yes, Just use the example app from firebase_messaging and add the plugins For example:
mdns_plugin: ^1.1.4
shared_preferences: ^0.5.12+4
And try to use Shared Preference in the background function of Messaging.

Hi @atrope
When adding these packages to  firebase_messaging, getting the following errors
  mdns_plugin: ^1.1.4
  shared_preferences: ^0.5.12+4

logs
[  +71 ms] --------- beginning of main
           02-04 20:30:46.245 W/InputChannel-JNI( 1420): Input channel object 'ClientState{c4d4a79 uid=10075 pid=2104 displayId=0}
           (server)' was finalized without being disposed!
[  +20 ms] executing: /Volumes/Extreme/SDK/platform-tools/adb version
[  +21 ms] Android Debug Bridge version 1.0.41
           Version 30.0.5-6877874
           Installed as /Volumes/Extreme/SDK/platform-tools/adb
[   +2 ms] executing: /Volumes/Extreme/SDK/platform-tools/adb start-server
[  +11 ms] Building APK
[  +11 ms] Running Gradle task 'assembleDebug'...
[   +2 ms] Using gradle from
/Users/tahatesser/AndroidStudioProjects/flutterfire/packages/firebase_messaging/firebase_messaging/example/android/gradlew.
[   +1 ms]
/Users/tahatesser/AndroidStudioProjects/flutterfire/packages/firebase_messaging/firebase_messaging/example/android/gradlew mode:
33261 rwxr-xr-x.
[   +6 ms] executing: /usr/bin/plutil -convert json -o - /Applications/Android Studio.app/Contents/Info.plist
[  +14 ms] Exit code 0 from: /usr/bin/plutil -convert json -o - /Applications/Android Studio.app/Contents/Info.plist
[        ] {"CFBundleName":"Android
Studio","JVMOptions":{"ClassPath":"$APP_PACKAGE\/Contents\/lib\/bootstrap.jar:$APP_PACKAGE\/Contents\/lib\/extensions.jar:$APP_PACKA
GE\/Contents\/lib\/util.jar:$APP_PACKAGE\/Contents\/lib\/jdom.jar:$APP_PACKAGE\/Contents\/lib\/log4j.jar:$APP_PACKAGE\/Contents\/lib
\/trove4j.jar:$APP_PACKAGE\/Contents\/lib\/jna.jar","JVMVersion":"1.8*,1.8+","MainClass":"com.intellij.idea.Main","Properties":{"ide
a.paths.selector":"AndroidStudio4.1","idea.executable":"studio","idea.platform.prefix":"AndroidStudio","idea.vendor.name":"Google","
idea.home.path":"$APP_PACKAGE\/Contents"}},"NSDesktopFolderUsageDescription":"An application in Android Studio requests access to
the user's Desktop
folder.","LSArchitecturePriority":["x86_64"],"CFBundleVersion":"AI-201.87<IP_ADDRESS>42882","CFBundleDevelopmentRegion":"English","NS
CameraUsageDescription":"An application in Android Studio requests access to the device's
camera.","CFBundleDocumentTypes":[{"CFBundleTypeName":"Android Studio Project
File","CFBundleTypeExtensions":["ipr"],"CFBundleTypeRole":"Editor","CFBundleTypeIconFile":"studio.icns"},{"CFBundleTypeName":"All
documents","CFBundleTypeExtensions":["*"],"CFBundleTypeOSTypes":["****"],"CFBundleTypeRole":"Editor","LSTypeIsPackage":false}],"NSSu
pportsAutomaticGraphicsSwitching":true,"CFBundlePackageType":"APPL","CFBundleIconFile":"studio.icns","NSHighResolutionCapable":true,
"CFBundleShortVersionString":"4.1","NSMicrophoneUsageDescription":"An application in Android Studio requests access to the device's
microphone.","CFBundleInfoDictionaryVersion":"6.0","CFBundleExecutable":"studio","NSLocationUsageDescription":"An application in
Android Studio requests access to the user's location
information.","LSRequiresNativeExecution":"YES","CFBundleURLTypes":[{"CFBundleTypeRole":"Editor","CFBundleURLName":"Stacktrace","CFB
undleURLSchemes":["idea"]}],"CFBundleIdentifier":"com.google.android.studio","LSApplicationCategoryType":"public.app-category.develo
per-tools","CFBundleSignature":"????","LSMinimumSystemVersion":"10.8","NSDocumentsFolderUsageDescription":"An application in Android
Studio requests access to the user's Documents folder.","NSDownloadsFolderUsageDescription":"An application in Android Studio
requests access to the user's Downloads folder.","NSNetworkVolumesUsageDescription":"An application in Android Studio requests
access to files on a network volume.","CFBundleGetInfoString":"Android Studio 4.1, build AI-201.87<IP_ADDRESS>42882. Copyright
JetBrains s.r.o., (c) 2000-2020","NSRemovableVolumesUsageDescription":"An application in Android Studio requests access to files on
a removable volume."}
[  +26 ms] executing: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java -version
[ +115 ms] Exit code 0 from: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java -version
[        ] openjdk version "1.8.0_242-release"
           OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
           OpenJDK 64-Bit Server VM (build 25.242-b3-6915495, mixed mode)
[   +1 ms] executing:
[/Users/tahatesser/AndroidStudioProjects/flutterfire/packages/firebase_messaging/firebase_messaging/example/android/]
/Users/tahatesser/AndroidStudioProjects/flutterfire/packages/firebase_messaging/firebase_messaging/example/android/gradlew
-Pverbose=true -Ptarget-platform=android-arm64
-Ptarget=/Users/tahatesser/AndroidStudioProjects/flutterfire/packages/firebase_messaging/firebase_messaging/example/lib/main.dart
-Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root assembleDebug
[+1186 ms] FAILURE: Build completed with 2 failures.
[        ] 1: Task failed with an exception.
[        ] -----------
[        ] * Where:
[        ] Build file '/Users/tahatesser/.pub-cache/hosted/pub.dartlang.org/mdns_plugin-1.1.4/android/build.gradle' line: 12
[        ] * What went wrong:
[        ] A problem occurred evaluating project ':mdns_plugin'.
[        ] > Could not get unknown property 'kotlin_version' for object of type
org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
[        ] * Try:
[        ] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with
--scan to get full insights.
[        ] ==============================================================================
[        ] 2: Task failed with an exception.
[        ] -----------
[        ] * Where:
[        ] Script '/Users/tahatesser/Code/flutter_beta/packages/flutter_tools/gradle/flutter.gradle' line: 318
[        ] * What went wrong:
[        ] A problem occurred configuring project ':mdns_plugin'.
[        ] > Could not get unknown property 'android' for project ':mdns_plugin' of type org.gradle.api.Project.
[        ] * Try:
[        ] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with
--scan to get full insights.
[        ] ==============================================================================
[        ] * Get more help at https://help.gradle.org
[        ] BUILD FAILED in 996ms
[ +401 ms] Running Gradle task 'assembleDebug'... (completed in 1,764ms)
[+5331 ms] Exception: Gradle task assembleDebug failed with exit code 1
[        ] "flutter run" took 75,827ms.
[   +3 ms]
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:623:7)
           <asynchronous suspension>
           #2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1134:12)
           <asynchronous suspension>
           #3      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:986:27)
           <asynchronous suspension>
           #4      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #5      AppContext.run (package:flutter_tools/src/base/context.dart:149:12)
           <asynchronous suspension>
           #6      CommandRunner.runCommand (package:args/command_runner.dart:197:13)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command_runner.dart:274:9)
           <asynchronous suspension>
           #8      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #9      AppContext.run (package:flutter_tools/src/base/context.dart:149:12)
           <asynchronous suspension>
           #10     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:230:5)
           <asynchronous suspension>
           #11     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:63:9)
           <asynchronous suspension>
           #12     run.<anonymous closure> (package:flutter_tools/runner.dart:61:12)
           <asynchronous suspension>
           #13     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #14     AppContext.run (package:flutter_tools/src/base/context.dart:149:12)
           <asynchronous suspension>
           #15     runInContext (package:flutter_tools/src/context_runner.dart:70:10)
           <asynchronous suspension>
           #16     main (package:flutter_tools/executable.dart:88:3)
           <asynchronous suspension>

[ +116 ms] ensureAnalyticsSent: 105ms
[   +1 ms] Running shutdown hooks
[        ] Shutdown hook priority 4
[   +4 ms] Shutdown hooks complete
[        ] exiting with code 1
tahatesser@Tahas-MacBook-Pro example %

@atrope mdns_plugin: 1.1.4 has a bug in https://github.com/djthorpe/flutter/blob/master/mdns_plugin/android/build.gradle#L12. (kotlin_version is not defined). Bonus point if you could send them a PR to fix that issue. 😃
About your suggestion specifically, were you able to identify why the order of registration matters?  More importantly, is this a situation that holds true only for these plugins?

Any plugin that uses V1 and starts alphabetically first than S would work for the example :)
@blasten I do not know why registering a V1 plugin makes flutter stop registering be plugins. I guess some error occurs and it stops "gracefully" it does not show anything for us.
And as I said ANY plugin that uses V1 breaks the registration for those underneath, I sent the mdns because it is one that I use.. and the solution is to 'break' after registering all V2 plugins

@TahaTesser
remove mdns and add   disk_space: ^0.0.3
:)

I was able to see the alphabetical registration of the plugins in the GeneratedPluginRegistration class, after adding disk_space, shared_preferences and social_shareplugins using firebase_messaging official repo.

While using above added plugins and trying to call onBackgroundMessage using shared_preferences, I received below in console:
E/flutter (15820): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: MissingPluginException(No implementation found for method getAll on channel plugins.flutter.io/shared_preferences)
E/flutter (15820):
E/flutter (15820): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: MissingPluginException(No implementation found for method getAll on channel plugins.flutter.io/shared_preferences)
E/flutter (15820):

flutter doctor -v
[✓] Flutter (Channel stable, 1.22.6, on Mac OS X 10.15.4 19E2269 darwin-x64,
    locale en-IN)
    • Flutter version 1.22.6 at /Users/dhs/documents/Fluttersdk/flutter
    • Framework revision 9b2d32b605 (13 days ago), 2021-01-22 14:36:39 -0800
    • Engine revision 2f0af37152
    • Dart version 2.10.5

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
    • Android SDK at /Users/dhs/Library/Android/sdk
    • Platform android-30, build-tools 30.0.0
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.3, Build version 12C33
    • CocoaPods version 1.9.3

[!] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.52.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.18.1

[✓] Connected device (1 available)
    • SM A260G (mobile) • 5200763ebcfa861f • android-arm • Android 8.1.0 (API
      27)

! Doctor found issues in 1 category.

Keeping this issue open for further analysis.

This issue may be quite annoyed for new flutter developers.
Currently, some plugins are not migrated to v2.
They are likely to use the latest stable version flutter, plugins from pub.dev, and some of them are v1.
Eventually, they will find this issue will be the blocker. A v1 plugin added to the project will break it. The v2 plugins are not working anymore.
I think it's better to provide a quick and temporary solution for them.

@darshankawar should I open a PR to the engine to apply the change(at least for now)  to order V2->V1?

Ok, PR Opened 😆, I Guess we will have no problems approving it as it only changes the order of plugins being registered and it can save a lot of problems for many users.

Had the same issue, luckily I found this thread after some hours of debugging. Thanks a lot @atrope!

Please merge this, I just lost a few hours until I found this solution...

The PR has been merged.
I Will close this PR as it is already available on master channel :)

The most aggravating thing about this issue is that it completely masks the underlying problem! We cannot build for Flutter 2.0.4 (stable) currently (the deleting of flutter_tools.stamp doesn't work for us). master works, but we have a production app that we'd rather didn't run on the master channel.
Can we please get this fix into stable ASAP?
Anyway, kudus @atrope for figuring this out! It was quite the head scratcher for us.

@larssn
If master is working, you can apply the fix we did in any branch you like.
Instead of sorting out the plugins, change the  _androidPluginRegistryTemplateNewEmbedding variable and rebuild the tool.

const String _androidPluginRegistryTemplateNewEmbedding = '''
package io.flutter.plugins;
import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import io.flutter.Log;
import io.flutter.embedding.engine.FlutterEngine;
{{#needsShim}}
import io.flutter.embedding.engine.plugins.shim.ShimPluginRegistry;
{{/needsShim}}
/**
 * Generated file. Do not edit.
 * This file is generated by the Flutter tool based on the
 * plugins that support the Android platform.
 */
@Keep
public final class GeneratedPluginRegistrant {
  private static final String TAG = "GeneratedPluginRegistrant";
  public static void registerWith(@NonNull FlutterEngine flutterEngine) {
{{#needsShim}}
    ShimPluginRegistry shimPluginRegistry = new ShimPluginRegistry(flutterEngine);
{{/needsShim}}
{{#plugins}}
  {{#supportsEmbeddingV2}}
    try {
      flutterEngine.getPlugins().add(new {{package}}.{{class}}());
    } catch(Exception e) {
      Log.e(TAG, "Error registering plugin {{name}}, {{package}}.{{class}}", e);
    }
  {{/supportsEmbeddingV2}}
  {{^supportsEmbeddingV2}}
    {{#supportsEmbeddingV1}}
    try {
      {{package}}.{{class}}.registerWith(shimPluginRegistry.registrarFor("{{package}}.{{class}}"));
    } catch(Exception e) {
      Log.e(TAG, "Error registering plugin {{name}}, {{package}}.{{class}}", e);
    }
    {{/supportsEmbeddingV1}}
  {{/supportsEmbeddingV2}}
{{/plugins}}
  }
}
''';

Let me know if that works for you :)

Remember to Rebuild you must delete the flutter_tools.stamp

@atrope I know, but monkey patching stable is something we'd prefer to avoid. Would rather this wasn't a P4. 🙂

I would suggest to make it available on stable branch too. It's broken on the stable branch right now. I think we should reconsider it as an emergency hotfix.

Currently a workaround is to add in "/android/app/build.gradle" the values
shrinkResources false
minifyEnabled false
under
buildTypes {
release {
To remove when the fix will arrive in stable.


README.md nats.agda test can fail if created in the root of PLFA

If you create the suggested nats.agda in the root of PLFA or in the root of standard-library, then Agda will complain that the module is in the wrong place. Since the guide operates from the root, this is a likely mistake.

Other students create the file outside of the project entirely, in which case they (naturally) run into missing libraries.
I'll submit a PR that specifies the location for the file.

This also happens when checking if Agda is installed properly, for obvious reasons.
The following is the error given, if it helps. The instructions should guide us to instead add the files to the src folder, because that works well, as the error suggests.
➜  plfa git:(dev) ✗ agda -v 2 hello.agda
/Users/getcontented/code/agda/plfa/hello.agda:1,8-13
The name of the top level module does not match the file name. The
module hello should be defined in one of the following files:
  /Users/getcontented/code/agda/plfa/standard-library/src/hello.agda
  /Users/getcontented/code/agda/plfa/standard-library/src/hello.lagda
  /Users/getcontented/code/agda/plfa/src/hello.agda
  /Users/getcontented/code/agda/plfa/src/hello.lagda
  /Users/getcontented/code/agda/agda/.stack-work/install/x86_64-osx/2ea356db11ab153a6ba147b7da51aa71a671fd44c574cb318e18fbe51bafd587/8.8.3/share/x86_64-osx-ghc-8.8.3/Agda-<IP_ADDRESS>/lib/prim/hello.agda
  /Users/getcontented/code/agda/agda/.stack-work/install/x86_64-osx/2ea356db11ab153a6ba147b7da51aa71a671fd44c574cb318e18fbe51bafd587/8.8.3/share/x86_64-osx-ghc-8.8.3/Agda-<IP_ADDRESS>/lib/prim/hello.lagda

@ajrouvoet The library file has been migrated into the src directory, which I believe should solve this problem, at least for the case where the students put these files in the project root.


fix: apps that use an rclone config may not be down-able

Describe the bug
If the rclone config file in question used for up is not available on the machine doing down, then the down will fail. This is because down depends on templating the application into the llir, in order to know which resources to delete. And the templating step looks for the rclone config file...
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

one fix would be to have down instead just kill all runname-labeled resources. we could leverage the GetAllResourcesFromSelector from odo. https://github.com/redhat-developer/odo/blob/main/pkg/kclient/all.go
alternatively, we could somehow render rclone config file loading into warnings when doing down...


Add signet genesis block to Block.kt

To cleanly add signet support to Eclair to address  topic# 2382 we need to add the signet genesis block to Block.kt in bitcoin-kmp.
The genesis block for Signet is described in the wiki entry for BIP 0325.
The hash should be<PHONE_NUMBER>9873e925422c1ff0f99f7cc9bbb232af63a077a480a3633bee1ef6 (see similar definition in c-lightning here).

closed by https://github.com/ACINQ/bitcoin-kmp/pull/61


Add node ranges config in InfrastructureConfig

Summary
Current Shoot .spec.networking.nodes is a string which means only one CIDR can be configured.
However, in on-prem networking there are case where worker nodes reside in different subnets which are not easy to summarise.
We as provider extension can allow configuring array of CIDRs in InfrastructureConfig and update InfrastructureStatusNetworking Nodes field which will be later updated to Shoot status and used as reference e.g. in Calico's IP_AUTODETECTION_METHOD.

Proposal is to follow aws extension approach and add the following to metal Infrastructure:
apiVersion: extensions.gardener.cloud/v1alpha1
kind: Infrastructure
metadata:
  name: infrastructure
  namespace: shoot--foobar--metal
spec:
  providerConfig:
    apiVersion: aws.provider.extensions.gardener.cloud/v1alpha1
    kind: InfrastructureConfig
    networks:
    - name: pod-a
      cidr: <IP_ADDRESS>/24
      vlan: 500
    - name: pod-b
      cidr: <IP_ADDRESS>/24
      vlan: 501

This will:

today: update ranges in Infrastructure.status.networking.nodes, so that is copied to Shoot.status.networking.nodes.
later: trigger some network API to provision required networks.

These networks could also be referenced in WorkerConfig to signal that worker pool needs IP assignment from respective IP address pool.


Copy/Paste

Would be nice to be able to select an image and copy it to the clipboard, e.g. for use in other applications like pure ref.

Added in 07f8e2dc093be04de9f86cb5ac14d0dc6d2b81a6


Calibration

How to calibrate and focus particular area using azure kinect.???

Could you please explain exactly what you want to achieve.

Sir I need to calibrate the camera for a particular area and need to give
colormap for different depths.
Like AR sandbox by UCdavis Project
On Thu, 12 Aug 2021, 11:05 pm qm13, @.***> wrote:

Could you please explain exactly what you want to achieve.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/Azure-Kinect-Sensor-SDK/issues/1661#issuecomment-897829903,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AINMCF67OSA6UT4OCDQWV6DT4QA6BANCNFSM5B3SQRCQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

https://youtu.be/V_-Qn7oEsn4
Like This I need to calibrate sir.
I'm a Rookie, and I need help to do it.
On Fri, 13 Aug 2021, 12:25 pm Kanish S, @.***> wrote:

Sir I need to calibrate the camera for a particular area and need to give
colormap for different depths.
Like AR sandbox by UCdavis Project
On Thu, 12 Aug 2021, 11:05 pm qm13, @.***> wrote:

Could you please explain exactly what you want to achieve.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/Azure-Kinect-Sensor-SDK/issues/1661#issuecomment-897829903,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AINMCF67OSA6UT4OCDQWV6DT4QA6BANCNFSM5B3SQRCQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

Have you looked at the calibration sample here.

Yes sir, I've looked at it and tried running it on visual studio 2019 but
when I open the cmakelist.txt it is opening but showing some 200 errors,
It's look like k4a library is not installed, then if I tried to install
Microsoft.Azure.kinect.sensor library from Nuget Package list, But I can't
able to manage packages in Nuget that option is disabled when I open this
calibration.
I can't able to run that calibration, that's the problem sir, So kindly
help me regarding this, I'm very eagerly waiting for your reply, I just
want to work with the camera and learn things, I know it takes time, but I
want to learn it sir.
So kindly help me out,
How can I run that calibration cpp file without errors(installing package)
successfully kindly help me out sir.
Thank you sir.
On Mon, 16 Aug 2021, 11:02 pm qm13, @.***> wrote:

Have you looked at the calibration sample here
https://github.com/microsoft/Azure-Kinect-Sensor-SDK/tree/develop/examples/calibration
.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/Azure-Kinect-Sensor-SDK/issues/1661#issuecomment-899689126,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AINMCF3N2SMEM2BAHDABYDDT5FDUFANCNFSM5B3SQRCQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.


TextureAtlas isn't using space efficiently

Suppose we have 2 textures to be added into the atlas: one is wide and another is tall (images 1 & 2). Now if we want to add another texture - it should be very small to fit with the current implementation (3), otherwise new atlas will be created (4).
The issue is that the huge empty atlas area is being unused.

1
2
3
4

Implementing some sort of packing algorithm would probably be an overkill, but there should be at least some simple approach to make things better.
Relevant code
Test scene to play around with

The algorithm that's chosen here should also consider being able to remove areas from the atlas. This is something that blocks us from using these atlases for larger more-ephemeral textures like avatars and beatmap/carousel backgrounds.


Improved: Cycle count bulk import to better handle the erroneous csv.

Done following -

Added validation service to validated uploaded cycle count csv.
Removed processing records in new transaction.
Added API to get System Message errors related to Cycle Count CSV.
Added API to get the uploaded csv file content.

We can use ec.webFacade.sendResrouceResponse method, need to check how we can utilise this with rest endpoints.


Render QPD API in sphinx api docs

Cleaned up the circuit cutting API page to be more logical and also include the QPD package. I've pushed cutQC into its own section at the bottom. This page is also now more in-line with the forging API page

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 89.35%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
2324

Relevant Lines:
2601

💛  - Coveralls

I wish our classes didnt render their parent class methods and attributes in the API (e.g. BaseQPDGate renders qiskit.circuit.Instruction methods and attributes)

I wish our classes didnt render their parent class methods and attributes in the API (e.g. BaseQPDGate renders qiskit.circuit.Instruction methods and attributes)

Accomplished with :template: autosummary/class_no_inherited_members.rst. I do like this much better


New version: twpayne.chezmoi version 2.34.3

Pull request has been created with WinGet Releaser v2 :rocket:
Microsoft Reviewers: codeflow:open?pullrequest=https://github.com/microsoft/winget-pkgs/pull/111215&drop=dogfoodAlpha

Manual Validation failed with:

5:32:57 PM: C:\Users\User\AppData\Local\Microsoft\WinGet\Links\chezmoi.exe start-process : This command cannot be run due to the error: The specified executable is not a valid application for this OS platform..

@twpayne Please mark the above conversations as "resolved" to let this PR get merged through the auto-merge process

Thanks for the review. I've fixed the URLs and checksums.
In the future I'll switch to goreleaser (refs twpayne/chezmoi#3059) as this is likely more reliable than vedantmgoyal2009/winget-releaser.

Sorry about the recent issues @twpayne. I'm a sole developer on Komac so edge cases or odd issues are hard to spot on my own.

Sorry about the recent issues @twpayne. I'm a sole developer on Komac so edge cases or odd issues are hard to spot on my own.

As I understand it, you fixed Komac quickly. I'm more unsure of vedantmgoyal2009/winget-releaser as winget-releaser seems to lack tests and a release process.


why tf has no attribute 'ThreadPoolOptionProto'

tf version:  common cpu tensorflow v1.9 (I'v tried 1.10 too)
i wanna config the num_threads in run_config, using:
tf.ThreadPoolOptionProto(num_threads=xx)
but an ERROR throw:
model 'tensorflow' has no attrbute 'ThreadPoolOptionProto'.
While, in the proto file: tensorflow/core/protobuf/config.proto,  The message of 'ThreadPoolOptionProto' has been defined.
so, why i cannot use it, and how to use?
thank you very much.

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks.
Have I written custom code
OS Platform and Distribution
TensorFlow installed from
TensorFlow version
Bazel version
CUDA/cuDNN version
GPU model and memory
Exact command to reproduce
Mobile device

Sorry for fogot.
System information:

Have I written custom code:
I'v written custom estimator based on api, and the code is running well.
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Centos 7.5
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
No
TensorFlow installed from:
binary cpu tf 1.10 (and tried binary 1.9 too)
TensorFlow version:
1.10 and 1.9
Python version:
3.6
Bazel version (if compiling from source):
N/A
GCC/Compiler version (if compiling from source):
N/A
CUDA/cuDNN version:
N/A
GPU model and memory:
N/A
Exact command to reproduce:
python train.py
Mobile device:
No

@Damon-wyg would you list the relevant lines from your source, and supply the stack trace, please?

import tensorflow as tf

...
run_config = tf.estimator.RunConfig(train_distribute=dist, **CONF.runconfig).replace(
        session_config=tf.ConfigProto(device_count={'GPU': 1, 'CPU': 1},
                                      session_inter_op_thread_pool=**tf.ThreadPoolOptionProto(num_threads=xx)**
                                      inter_op_parallelism_threads=8,
                                      intra_op_parallelism_threads=8,
                                      allow_soft_placement=True))
...

while, an ERROR throw:
model 'tensorflow' has no attrbute 'ThreadPoolOptionProto'.

Nagging Assignee @cy89: It has been 15 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @cy89: It has been 30 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @cy89: It has been 45 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @cy89: It has been 60 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @cy89: It has been 75 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

If you would like to get ThreadPoolOptionProto, here is the code:

import tensorflow as tf
from tensorflow.core.protobuf import config_pb2
config = tf.ConfigProto(
            allow_soft_placement=True,
            intra_op_parallelism_threads=1,
            inter_op_parallelism_threads=1,
            isolate_session_state=True,
            session_inter_op_thread_pool=[config_pb2.ThreadPoolOptionProto(num_threads=1)])


[EPIC] Middleware integrations

Tasks

[x] #15

[ ] Integrate the utxoRPC in Oura (and transitively Carp)

https://github.com/txpipe/oura/issues/763

[ ] Evaluate gaps for integrating cardano-db-sync with utxoRPC.

Acceptance Criteria

Middleware[^1] should be able to synchronize blocks from Dolos/Polaris using the utxoRPC and/or mini-protocols

[^1]: In scope are at least Kupo & Oura. Others to be considered.

Closed - Content added to the milestone : Partial transaction validation & Relay node


Allow derivation of lenses for generic types.

Types, lifetimes and where clauses covered plus interior type parameter name clashes.

Thanks @rjwittams & @jneem!


Variable length channel

Proposal Details
The channel length can variable.
c := make(chan int , <MaxLen> [,<MinLen>] [,<TimeDuration>])
first:
cap(c) =  <MinLen>
if full:
cap(c) = cap(c) * 2 // Max <MaxLen>
if len(c) < cap(c) /4 && timeout <TimeDuration>{
cap(c) = cap(c) / 2 // Min <MinLen>
}

What's the point of this exactly? Just saving memory when the channel is not being used much?

What's the point of this exactly? Just saving memory when the channel is not being used much?

Yes, this is I want.

I'm unclear in what conditions the channel would grow.
Wouldn't cap(c) always be MaxLen because it would always grow on demand ? The actual ring being smaller would be an implementation detail.
That hell a lot of knobs and the performance impact of getting this wrong could be very bad compared to the gains.
It also seems to me you could implement this in a third party librairy, you would need a background go-routine per channel if you want select compatibility, but the timeout isn't free either.

Please fill out https://github.com/golang/proposal/blob/master/go2-language-changes.md when proposing language changes

Channel buffers are rarely a significant fraction of total memory usage; most are of size zero, or one, or the number of worker goroutines. Making a language change for such a minor space optimization would be all cost and no significant benefit.
Therefore, this is a likely decline. Leaving open for four weeks for final comments.

I have also encountered such a need before

I have also encountered such a need before

probably like this, but this code may not be a good way
package main

import (
	"fmt"
	"time"
)

type User struct {
	Name string
	keys []string
}

func main() {
	users := []User{
		{Name: "foo", keys: []string{"a", "b", "c", "e"}},
		{Name: "bar", keys: []string{"f", "g", "h", "i"}},
	}

	// if there is a variable length channel
	// no need to calculate total
	total := 0
	for _, u := range users {
		for range u.keys {
			total += 1
		}
	}

	buffer := make(chan string, total)

	for _, u := range users {
		for _, k := range u.keys {
			go func(d string) {
				time.Sleep(time.Second)
				buffer <- d
				fmt.Println("Push", d)
			}(k)
		}
	}

	// close(buffer)
	// for range buffer {}

	for total > 0 {
		data, ok := <-buffer
		fmt.Println("Pop", data, ok)

		total--
	}

	close(buffer)
}

@yangjinheng The code you show seems to make chan use just the right amount of memory.
If a variable length chan is supported, the memory used by chan may not be just right.

No change in consensus, so declined.
— rfindley for the language proposal review group


remove copy log from tmp

This is a following up fix to copy test logs from right location, since now we saved all logs under build/, so there is no need to copy logs from tmp.

I would encourage you to write more in the commit messages -- in this case, an appropriate thing to say is that given the changes from PR#XXX happy no longer puts the logs in /tmp and thus the copying logs from /tmp is no longer required.

Thanks RS for the feedback, I made changes for the commit messages

Codecov Report

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

@@            Coverage Diff             @@
##           master     #286      +/-   ##
==========================================
+ Coverage   53.11%   54.12%   +1.01%
==========================================
  Files         276      289      +13
  Lines       53721    56296    +2575
==========================================
+ Hits        28534    30471    +1937
- Misses      25187    25825     +638

Impacted Files
Coverage Δ

src/system/SystemClock.cpp
28% <0%> (-10.1%)
:arrow_down:

src/inet/IPAddress-StringFuncts.cpp
90% <0%> (-1.31%)
:arrow_down:

src/lib/core/WeaveMessageLayer.cpp
16.26% <0%> (-0.7%)
:arrow_down:

src/test-apps/TestInetAddress.cpp
99.1% <0%> (-0.17%)
:arrow_down:

src/lib/core/WeaveConnection.cpp
0% <0%> (ø)
:arrow_up:

src/system/SystemMutex.cpp
60% <0%> (ø)

src/test-apps/TestInetLayerDNS.cpp
90.76% <0%> (ø)

...i/security-support/native/WeaveSecuritySupport.cpp
73.33% <0%> (ø)

...rity-support/native/WeaveKeyExportClientNative.cpp
42.56% <0%> (ø)

src/lib/profiles/security/WeaveKeyExportClient.cpp
72.83% <0%> (ø)

... and 31 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 5fe9f08...cd15b8b. Read the comment docs.


Update ASCAT obs reader to work with both new and old filename format

The bufr ASCAT soil moisture product we assimilate is no longer available with the filename format we have historically downloaded/used, although the file content is unchanged.
Example name change:
M02-ASCA-ASCSMO02-NA-5.0-20160101005700.000000000Z-20160101023821-1344690.bfr ->
W_XX-EUMETSAT-Darmstadt,SOUNDING+SATELLITE,METOPA+ASCAT_C_EUMC_20160101005700_47740_eps_o_250_ssm_l2.bin
From 1 June 2023 the names used will switch from the old (ASCA-ASCSMO02)  to the new (W_XX-EUMETSAT-Darmstadt) format.
Code modifications required:

Conditionally parse timestamp from the filename in different places depending if the old or new file name format
Check the parsed timestamp string only contains numeric characters
Check the timestamp has valid year, month and day integers
Increase the length of fname_list to accommodate new (very!) long filename
Increase length of tempstr to allow reading this new long filename
Add explicit format specifier in read to deal with comma in filename
Remove obs_param_nml%name entry from default as this isn't used (obs filename is read from %flist_name)

Honestly, the checks might be overkill as things will crash very quickly if anything other than 14 numeric characters are read into date_time_tmp (and the chances of those 14 numeric characters being anything other than a legitimate timestamp are minimal).

All LDAS nightly tests passed.


Update about-vsts-tfs.md

changing the page title to match the content described, if you searched TFS vs VSTS the results will highlight even the same title
https://www.google.co.uk/search?q=tfs+vs+vsts&oq=tfs+vs+vsts&aqs=chrome..69i57j69i60l3.3279j0j7&sourceid=chrome&ie=UTF-8

@hkamel Thanks for your contribution, I am assigning this to the article owner for review.


Create a birdhouse WPS for midas-subsetting: goldfinch

Create a birdhouse WPS for midas-subsetting:
Use cookie-cutter:
https://github.com/bird-house/cookiecutter-birdhouse
Call the new WPS: "goldfinch"
Put it under cedadev.

Hi @ellesmith88, I am going cross-project here. I thought it might be useful.
For the CEDA-WPS replacement, we are going to create 3 new WPSs based on Birdhouse. This issue represents the first: "goldfinch".
Please can you try using Carsten's cookie-cutter for birdhouse to create this WPS and then put the contents into: https://github.com/cedadev/goldfinch/ - which I have created and given you full access to.

Hi @ellesmith88, I think you said you were setting this one up. Is it ready? Thanks

@agstephens Yes it's at https://github.com/cedadev/goldfinch/.
I didn't get round to trying the fix the travis tests though, I haven't changed anything after using the cookie-cutter so not sure why there's a problem there.

Thanks @ellesmith88 , leave the travis tests to us.


[eslint] Add new product.

Create a new product entry for ESLint.

Backing out of this...someone just pointed out there is already ongoing work on this.