EinopsError

Hi, I'm running a basic model defined as below.
(I added a simple pass-thru parameter for the loss function)
Every time I run trainer.train() I receive the EinopsError below the model definition.
Super confused here, I would really appreciate any help. Thank you!
model = Unet(
dim = 64,
dim_mults = (1,2,4,8),
flash_attn = True)
diffusion = GaussianDiffusion(
model,
image_size=100,
timesteps=1000,
sampling_timesteps=250,
loss_function=F.mse_loss)
trainer = Trainer(
diffusion,
path_to_original_mel_spectrograms,
train_batch_size = train_batch_size,
train_lr = train_lr,
train_num_steps = train_num_steps,
gradient_accumulate_every = 2,
ema_decay = 0.995,
amp=True,
calculate_fid = False)
EinopsError                               Traceback (most recent call last)
Cell In[9], line 2
1 #Train DDPM
----> 2 trainer.train()
File ~\AppData\Local\Programs\Python\Python311\Lib\site-packages\denoising_diffusion_pytorch\denoising_diffusion_pytorch.py:989, in Trainer.train(self)
986 data = next(self.dl).to(device)
988 with self.accelerator.autocast():
--> 989     loss = self.model(data)
990     loss = loss / self.gradient_accumulate_every
991     total_loss += loss.item()
File ~\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch\nn\modules\module.py:1501, in Module._call_impl(self, *args, **kwargs)
1496 # If we don't have any hooks, we want to skip the rest of the logic in
1497 # this function, and just call forward.
1498 if not (self._backward_hooks or self._backward_pre_hooks or self._forward_hooks or self._forward_pre_hooks
1499         or _global_backward_pre_hooks or _global_backward_hooks
1500         or _global_forward_hooks or _global_forward_pre_hooks):
-> 1501     return forward_call(*args, **kwargs)
1502 # Do not call functions when jit is used
1503 full_backward_hooks, non_full_backward_hooks = [], []
File ~\AppData\Local\Programs\Python\Python311\Lib\site-packages\accelerate\utils\operations.py:553, in convert_outputs_to_fp32..forward(*args, **kwargs)
552 def forward(*args, **kwargs):
--> 553     return model_forward(*args, **kwargs)
File ~\AppData\Local\Programs\Python\Python311\Lib\site-packages\accelerate\utils\operations.py:541, in ConvertOutputsToFp32.call(self, *args, **kwargs)
540 def call(self, *args, **kwargs):
--> 541     return convert_to_fp32(self.model_forward(*args, **kwargs))
File ~\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch\amp\autocast_mode.py:14, in autocast_decorator..decorate_autocast(*args, **kwargs)
11 @functools.wraps(func)
12 def decorate_autocast(*args, **kwargs):
13     with autocast_instance:
---> 14         return func(*args, **kwargs)
File ~\AppData\Local\Programs\Python\Python311\Lib\site-packages\denoising_diffusion_pytorch\denoising_diffusion_pytorch.py:788, in GaussianDiffusion.forward(self, img, *args, **kwargs)
785 t = torch.randint(0, self.num_timesteps, (b,), device=device).long()
787 img = self.normalize(img)
--> 788 return self.p_losses(img, t, *args, **kwargs)
File ~\AppData\Local\Programs\Python\Python311\Lib\site-packages\denoising_diffusion_pytorch\denoising_diffusion_pytorch.py:764, in GaussianDiffusion.p_losses(self, x_start, t, noise, offset_noise_strength)
760         x_self_cond.detach_()
762 # predict and take gradient step
--> 764 model_out = self.model(x, t, x_self_cond)
766 if self.objective == 'pred_noise':
767     target = noise
File ~\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch\nn\modules\module.py:1501, in Module._call_impl(self, *args, **kwargs)
1496 # If we don't have any hooks, we want to skip the rest of the logic in
1497 # this function, and just call forward.
1498 if not (self._backward_hooks or self._backward_pre_hooks or self._forward_hooks or self._forward_pre_hooks
1499         or _global_backward_pre_hooks or _global_backward_hooks
1500         or _global_forward_hooks or _global_forward_pre_hooks):
-> 1501     return forward_call(*args, **kwargs)
1502 # Do not call functions when jit is used
1503 full_backward_hooks, non_full_backward_hooks = [], []
File ~\AppData\Local\Programs\Python\Python311\Lib\site-packages\denoising_diffusion_pytorch\denoising_diffusion_pytorch.py:378, in Unet.forward(self, x, time, x_self_cond)
375     x = attn(x) + x
376     h.append(x)
--> 378     x = downsample(x)
380 x = self.mid_block1(x, t)
381 x = self.mid_attn(x) + x
File ~\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch\nn\modules\module.py:1501, in Module._call_impl(self, *args, **kwargs)
1496 # If we don't have any hooks, we want to skip the rest of the logic in
1497 # this function, and just call forward.
1498 if not (self._backward_hooks or self._backward_pre_hooks or self._forward_hooks or self._forward_pre_hooks
1499         or _global_backward_pre_hooks or _global_backward_hooks
1500         or _global_forward_hooks or _global_forward_pre_hooks):
-> 1501     return forward_call(*args, **kwargs)
1502 # Do not call functions when jit is used
1503 full_backward_hooks, non_full_backward_hooks = [], []
File ~\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch\nn\modules\container.py:217, in Sequential.forward(self, input)
215 def forward(self, input):
216     for module in self:
--> 217         input = module(input)
218     return input
File ~\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch\nn\modules\module.py:1501, in Module._call_impl(self, *args, **kwargs)
1496 # If we don't have any hooks, we want to skip the rest of the logic in
1497 # this function, and just call forward.
1498 if not (self._backward_hooks or self._backward_pre_hooks or self._forward_hooks or self._forward_pre_hooks
1499         or _global_backward_pre_hooks or _global_backward_hooks
1500         or _global_forward_hooks or _global_forward_pre_hooks):
-> 1501     return forward_call(*args, **kwargs)
1502 # Do not call functions when jit is used
1503 full_backward_hooks, non_full_backward_hooks = [], []
File ~\AppData\Local\Programs\Python\Python311\Lib\site-packages\einops\layers\torch.py:14, in Rearrange.forward(self, input)
13 def forward(self, input):
---> 14     return apply_for_scriptable_torch(self._recipe, input, reduction_type='rearrange')
File ~\AppData\Local\Programs\Python\Python311\Lib\site-packages\einops_torch_specific.py:77, in apply_for_scriptable_torch(recipe, tensor, reduction_type)
74 def apply_for_scriptable_torch(recipe: TransformRecipe, tensor: torch.Tensor, reduction_type: str) -> torch.Tensor:
75     backend = TorchJitBackend
76     init_shapes, reduced_axes, axes_reordering, added_axes, final_shapes =
---> 77         _reconstruct_from_shape_uncached(recipe, backend.shape(tensor))
78     tensor = backend.reshape(tensor, init_shapes)
79     if len(reduced_axes) > 0:
File ~\AppData\Local\Programs\Python\Python311\Lib\site-packages\einops\einops.py:200, in _reconstruct_from_shape_uncached(self, shape)
192 # this is enforced when recipe is created
193 # elif len(unknown_axes) > 1:
194 #     raise EinopsError(
(...)
197 #     )
198 else:
199     if isinstance(length, int) and isinstance(known_product, int) and length % known_product != 0:
--> 200         raise EinopsError("Shape mismatch, can't divide axis of length {} in chunks of {}".format(
201             length, known_product))
203     unknown_axis = unknown_axes[0]
204     inferred_length: int = length // known_product
EinopsError: Shape mismatch, can't divide axis of length 25 in chunks of 2

it probably has to do with the shape of your input
I should add some validation depending on the number of stages in the unet

The path passed to the trainer is a folder with a bunch of 100x100 mel spectrograms generated with librosa saved as jpg files. Does any of that raise any issues?

@brodymaddox try resizing the mel spectrograms to 96x96

@lucidrains Thank you very much! That got me past the error. I'll close the issue but I just am wondering why those resolutions are necessary as opposed to anything else? Additionally, is there an upper limit to the resolutions that this library can handle?

you need to know a bit about the architecture of the neural network doing the denoising. the one in use as default is a unet, and it has N stages of 2x downsampling followed by 2x upsampling. This means the dimensions of your image need to be divisible by 2 ^ N. No restrictions on resolutions as long as you satisfy the above criteria; you may even want more stages

I see, thanks for taking the time to explain!

I'll add some asserts tomorrow with some more explanatory error messages! happy 4th!


Null Pointer Exception

I've got one picker on the activity that when selected, populates another picker with values that depend on the selected item from the first picker.
second picker is defined as follows:
<com.wefika.horizontalpicker.HorizontalPicker
    xmlns:picker="http://schemas.android.com/apk/res/com.wefika.horizontalpicker"
    android:id="@+id/prod_category_picker"
    android:textColor="@color/light_gray"
    android:layout_below="@+id/prod_type_picker"
    android:layout_height="40dp"
    android:layout_width="match_parent"
    android:background="@color/slider_background"
    android:textSize="14sp"
    android:ellipsize="none"
    android:marqueeRepeatLimit="-1"
    android:visibility="gone"
    />

When I select an item in the first picker, intermittantly, I get this:
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.RectF.set(android.graphics.RectF)' on a null object reference
        at com.wefika.horizontalpicker.HorizontalPicker.onDraw(HorizontalPicker.java:293)

I have not been able to figure out what sequence of events triggers this crash. Any thoughts?

Just curious - do you have an idea of when you might look into this?
Thanks

Hey,
sorry for not looking into this already, I have been quite busy. I'll try to look into it at the end of next week.

This should work in 1.1.0


Nested typed collections are not supported.

Tested versions
reproducible in 4.4dev-3, 4.4dev-4
System information
Linux 6.10.11-2-MANJARO #1 SMP PREEMPT_DYNAMIC Thu Sep 26 03:28:26 UTC 2024 x86_64 GNU/Linux
Issue description
Nested typed collections are not supported.
it should have ability to have nested typed arrays or dictionaries
Steps to reproduce
just write a sample code:
enum some_enum
{
    test,
    test1
}

var dict: Dictionary[int, Array[int]]
var array: Array[Array[int]]

var dict: Dictionary[int, Array[some_enum]]

an error should be given:
Nested typed collections are not supported.
Minimal reproduction project (MRP)
N/A

This is not a bug, but a known and documented limitation of the current implementation. To support nested types, we will need significant refactoring.
See also:

https://github.com/godotengine/godot-proposals/discussions/10022
https://github.com/godotengine/godot-proposals/issues/10807#issuecomment-2366926108
Other proposals/discussions with keywords unified type system and first-class types.

Thanks for the contribution nonetheless!


Why do not release 2.0 ?

Hi,
Why do not release 2.0 ?
I want to use it.
Thanks :)

@tsuwatch Sorry for the very late. https://rubygems.org/gems/capistrano-withrsync/versions/0.2.0

Thanks :D


Modernize plugin (v2.0)

(videojs-)wavesurfer >= 2.0 (only) support
video.js >= 6.0 (only) support
new build system (using babel/browserify, with tests for webpack, fixes #149)
modules/es6 (fixes #167)
advanced video.js plugin
support for the video.js fluid option (fixes #166)
React example (fixes #171)
replace usage of  URL.createObjectURL(stream) (fixes #169)

Love where this is headed!

Thanks @pmccarren, will ping you when it's ready for testing

@pmccarren PR was merged to master branch, any help testing before I release 2.0.0 would be appreciated!


question abou pre-process of ATAC data

Thanks for developing such a great tools！
I have some questions about the preprocessing of scATAC data: Due to memory limitations, I used ArchR to output 50,000 variable peaks as the input matrix.
However, I noticed a significant difference between the UMAP representation after processed by scglue.data.lsi and the initial clustering based on ArchR. My UMAP is in a very mixed state and I am having difficulty distinguishing the original clustering.
Could you please let me know if there might be something wrong?

Hi @chenc327! Thanks for your interest in GLUE.
I'm not particularly familiar with ArchR. Does it use all peaks or just the 50,000 variable peaks to do clustering and UMAP? My experience with ATAC-seq data is that using the complete peak set generally produce better results than just a selected subset. If that is the case, could you export all peaks as input?
One alternative solution is to keep using the 50,000 variable peaks, while at the same time export the ArchR cell embeddings and store it in the obsm slot of your AnnData object. You can then specify the input embedding in the configure_dataset function to use the ArchR embeddings, e.g.:
atac.obsm["X_archr"] = archr_embedding

scglue.models.configure_dataset(
    atac, "NB", use_highly_variable=True,
    use_rep="X_archr"
)

But the caveat is that not all peaks in the 50,000 variable peaks will be linked to highly variable genes in other modalities, so you still risk losing information useful for data integration. To get the best results, I would still recommend exporting all peaks as input, if that's possible.
Let me know if there were further problems.

You're so kind, and please forgive me for my delayed responses during this period.
Yes, I've examined your code related to the TF-IDF implementation, and I agree that using only a subset of peaks might not be appropriate. Therefore, I believe it's best to avoid recomputation.
Due to computational resource limitations, I'm currently only able to try the alternative methods you mentioned.


Panel Bar and activated cache

Seems like that the Panel bar will be also shown when the standard kirby cache is activated. It's still there when I'm logged out.
It seems like that this is a main problem of the cache driver.

Is this really a panelbar bug? I think it's a Kirby issue, that is caches pages even when logged in.
We might want many elements viewed when logged in, not just the panelbar. In that case we need to somehow only cache pages when user is not logged in.

That's what I mean with "main problem of the cache driver", because I had similar problems in other projects.
Thanks for the solution :+1: . Could you give more informations? Where I have to insert your snippet? In the config file?

Ooops. I forgot a ! there. Yes of course you are right, the cache should only be active when the user is NOT logged in.
Thanks for correcting me!


Test fix

Description
Update the install demo bat for windows to try to fix recent failures.
Check List

[ ] ~New functionality includes testing~
[ ] ~New functionality has been documented~
[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #2669 (8cadae3) into main (9fca0da) will decrease coverage by 0.02%.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@             Coverage Diff              @@
##               main    #2669      +/-   ##
============================================
- Coverage     61.39%   61.38%   -0.02%
+ Complexity     3383     3381       -2
============================================
  Files           269      269
  Lines         18668    18668
  Branches       3279     3279
============================================
- Hits          11462    11460       -2
  Misses         5611     5611
- Partials       1595     1597       +2

see 2 files with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Supporting CtOption::map for non-Default types?

For now, CtOption::map requires a Default type.
This is especially problematic for types which require some constant-time validation of the input in their public constructors, say with the following API.
impl T {
    pub fn from_bytes(bytes: &[u8; N]) -> CtOption<T> { ... }
}

In that case, exposing a Default for T would allow the caller to bypass from_bytes validation by creating a Default.
Could there be a variant of map with an explicitly provided dummy value? Same question for CtOption::and_then.

Hmm, regardless of the Default bound, that code really looks like it should be using Option<T> or Result<T,E>, because if the input is invalid, the computation can't sensibly continue.

One thing that might work to relax the Default bound would be to unconditionally apply the closure to the CtOption's T value, but I haven't thought it through yet...

If #94 were addressed which would unlock using combinators like CtOption::map with heap-allocated types (which we need for the rsa and dsa crates), the use of Default in map would become a problem, because our T values can vary in precision (i.e. number of limbs), and the Default impl can't match precision to an existing value of T except by chance.
Unconditionally applying the closure to T would address this problem and prevent a spurious heap allocation (i.e. getting the Default) every time map is called.
It's also problematic to use Default because it's typically a "zero value" which may not make sense given the mathematical operation being applied in the closure, e.g. it could be a divisor and division-by-zero could potentially cause a panic, precluding the use of map in cases where it would work if the closure were unilaterally applied to the contained value instead of Default.

I have proposed removing this bound in #118, although I worry it's a breaking change: https://github.com/dalek-cryptography/subtle/pull/118
An non-breaking alternative would be to add new methods which do the same thing but don't have the bound.

I'm going to add my voice here that Default is a bad trait to begin with; if we force types to have a Default impl in order to make them interoperable with subtle, this also means that the Default impl is available in other places, which could cause the default value to inadvertently be constructed and incorrectly interpreted as valid data. This is a general type safety problem; Default just shouldn't exist, and forcing users to implement is detrimental to the overall safety of systems.


Added integration tests.

Nice work, just added a bunch of minor comments. We should also take care of codacy's errors

I fixed the tests as per comments. I will address codacy separately in #678. (I had some troubles re-analysing the code in subsequent commits yesterday, so I will tackle it all at once).

All fixed and ready to proceed.

One more need but looks good to me!

Perfect. I adjusted the value to 500ms and will merge after checks.


chore(website): april update

Thanks for the proofread, my vim spellchecker must be disabled 🙈

Thanks for the proofread, my vim spellchecker must be disabled 🙈

No problem at all


setting up certificate preference

HI,
I tried adding the following code to wdio.config.js to overcome the certificate error.
services: ['firefox-profile'],
firefoxProfile: {
assumeUntrustedCertIssuer: true,
canAssumeUntrustedCertIssuer: true
}
But the firefox is not honoring these values. Are we stripping down these values in this module?

Are we stripping down these values in this module?

No, we pass all values to the firefox profile. Can you check the flag page if these get set?

closing due to inactivity


Cropping data augmentation (Table 1)

In the caption for Table 1 for Gao et. al. 2022, it states that cropping keeps 100-k% of the length. When cropping, did you keep the chopped words or round it to the nearest space?

Hi,
We always keep/delete the whole word (separated by spaces).


Build option for enabling/disabling SSH2 and Crypto(sha1)?

Hi,
I like the project so far, but I want to propose having some preprocessor options for enabling/disabling external library usage. For me, I'm only interested in local file operations and I end up commenting out the SHA1 calls in fs.cpp and FileHandle.cpp. It also references the SSH library too. It works fine if I exclude the ssh files from the build and comment out those references, but maybe a -DUSE_SSL2 and -DUSE_CRYPTO might help future users?
Forgive me if this is not the right format for an issue, I'm new to this.

Thank you for your suggestions.
An option for disabling the SSH backend would be fine, I think we would rather name it OPTION_USE_SSH as analog to the other options (see the main CMakeLists.txt).
The libcrypto is needed for the sha1 function, which I find helpful also for local file operations, but having an option here wouldn't hurt either, if you do not need that functionality.
Would you care preparing a pull request for this? Otherwise I don't know when I will find the time to make these changes.

I started working on this as well but stumbled across this branch... looks great so far, but I think the current implementation has limitations:

each library is linked/used independently. I don't know too much about the code but I suspect that if libSSH is not available and the ssh module is not compiled, then openssl is not necessary.. is that true?
I think there are scenarios in which libssh2 backend is available in the environment but not wanted during build. Thats why an explicit option would make sense...


Show TVL graph on protocol details page

[ ] Show small 7 day TVL chart next to each project
[ ] Green/Red (positive/negative) TVL from first data entry

Depends on https://github.com/defiboxswap/eosio.yield-api/issues/4

Example CoinGecko
https://www.coingecko.com/

Dependant on: https://github.com/defiboxswap/eosio.yield-api/issues/4

implemented


Command Injection vulnerability found in shelljs dependency

High severity vulnerability found in shelljs
Description: Command Injection
From<EMAIL_ADDRESS>><EMAIL_ADDRESS>><EMAIL_ADDRESS>><EMAIL_ADDRESS>Please see: https://github.com/shelljs/shelljs/issues/810 and https://github.com/shelljs/shelljs/pull/524#issuecomment-507152989
TLDR is:
There is no security fix on shelljs; they recommendation is If you do use shell.exec(), don't pass untrusted user input (or other external values) to the function--string literals are of course the safest option.
From: https://github.com/shelljs/shelljs/issues/810#issuecomment-356835680

I see the issue fixed in version 9.15.8. Closing this issue now.


v3.0.0

@ljharb

@ljharb I don't have permissions to do that

@gilbox since you have permission to merge the PR, and the PR is approved, if you push the commit directly to master (with the same SHA), it will go through, and github will detect it and auto-mark the PR as merged.

ah, ty!

(Then you can tag the commit, push up the tag, and once tests pass on master and/or the tag, npm publish)


The error should be fixed by #28551 in the 17.2.0 release.

          The error should be fixed by #28551 in the 17.2.0 release.

Originally posted by @crisbeto in https://github.com/angular/components/issues/28626#issuecomment-1959427524
i still get tha same error for this after upgrading

Angular CLI: 17.3.8
Node: 20.16.0
Package Manager: npm 10.8.1
OS: win32 x64
Angular: 17.3.12
... animations, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic, router
Package                         Version
@angular-devkit/architect       0.1703.8
@angular-devkit/build-angular   17.3.8
@angular-devkit/core            17.3.8
@angular-devkit/schematics      17.3.8
@angular/cdk                    17.3.10
@angular/cli                    17.3.8
@angular/google-maps            17.0.1
@schematics/angular             17.3.8
rxjs                            7.8.1
typescript                      5.4.5
zone.js                         0.14.10

ERROR NullInjectorError: R3InjectorError(_AppModule)[InjectionToken CDK_TABLE -> InjectionToken CDK_TABLE]:
NullInjectorError: No provider for InjectionToken CDK_TABLE!
at NullInjector.get (core.mjs:1654:27)
at R3Injector.get (core.mjs:3093:33)
at R3Injector.get (core.mjs:3093:33)
at ChainedInjector.get (core.mjs:15723:36)
at lookupTokenUsingModuleInjector (core.mjs:5730:39)
at getOrCreateInjectable (core.mjs:5778:12)
at ɵɵdirectiveInject (core.mjs:11050:19)
at ɵɵinject (core.mjs:1106:42)
at inject (core.mjs:1192:12)
at new _HeaderRowOutlet (table.mjs:1528:19)

and i upgrade anguale-cdk to     "@angular/cdk": "^17.3.0",
and get the same error

This is likely an issue with your setup. This issue hasn't been reported on Github since #28551 or in any of our thousands internal applications. Refer to the docs to see how to set up your table: https://material.angular.io/components/table/overview


Update communitytools.js

new tool -> hnt.sh

hi there @alteoxCOM, just wanted to check some things before adding this to Explorer.
I just signed up and am testing out hnt.sh
I'm curious if you're using the public Helium API for this, or if you have your own ETL/API set up? just wondering because the text says it'll update every 5 minutes, which could be a really big strain on the public API (api.helium.io) if lots of hotspots get added to this service. just wanted to make you aware of that possible/likely limitation in case this uses the public API
also, the list shown under Top Owners, is that something that you have to opt into as a user? I signed up with my Google account, and don't see myself on the list yet, but didn't expect that my name and profile picture might be included in any public lists when I signed in. so you might want to make sure that being included in that list is an opt-in thing if it isn't already, or at least make users aware of that before making them eligible for inclusion on that list. honestly I'm not sure many people would want to be included on the list at all, for privacy reasons, but I could be wrong about that
and finally, I noticed in the browser console, the public list seems to be exposing people's email addresses by printing an array to the console. this seems unintentional, but you will definitely want to make sure that's not happening without people's explicit consent, and/or have a privacy policy in place, and make sure that people's private information is being very carefully stored and never exposed publicly


Move macros from zutil.h to zbuild.h

This removes the dependency of zutil.h in several files. Why does it matter? Because zutil.h includes zlib.h. We should only include zlib.h or zlib-ng.h where it is absolutely necessary.

@dzenanz why am I receiving an error with the symbol prefix CI instance?

We need zlib.h or zlib-ng.h for name mangling to work correctly. The name mangling header is included from either zconf.h or zconf-ng.h and doesn't get included from any other headers.

That is partially why I did this PR. Because not every file needs the name mangling and all these macros don't require it.

@nmoinvaz It seems some files like inftrees.c require name mangling, but the header doesn't get included....

 But I don't see inftrees mentioned anywhere in the diff?

The issue was that changing inftrees.c caused the name mangling header to not always get included and that resulted in different symbol names when declaring and using the functions the file contains.

Oh, the first force-push did that. The second one was just a rebase.


user docs: Create Administration macro.

Summary:

Created a Go to the macro that can be used by both Settings and Adminsitration macros.
Rewrote all docs in Administering a Zulip organization section to conform to new documentation styling guide
Deleted a bunch of images to mitigate issue #3070

Automated message from Dropbox CLA bot
@synicalsyntax, it looks like you've already signed the Dropbox CLA. Thanks!

Can you update docs/README.md to mention the new macro?  Might need to do the same for the other macros you've added too :)

Thanks for the review @lonerz , is there anything else that you'd like improved @timabbott ?

This is awesome work @synicalsyntax!!  Merged.


Parser error - method call

CALL METHOD lcl_class=>m_foo->mr_bar->get_thing
  EXPORTING
    iv_id     = l_id
  IMPORTING
    er_thing = lr_thing
  EXCEPTIONS
    not_found = 1.

@FreHu try again, 2.48.1 published


Relative import path "comlink" not prefixed with / or ./ or ../

window10
deno 1.37.0
Copying official demo, unable to run

A lot has changed since my last publish, I may need to redo it with dnt and publish to npm instead of denoland.
Will take some time to experiment this weekend.

Hello! Any success with that? I am trying to use your worker pool and face the same issue.

Looks like deno.json in modules are no longer respected, I replaced it with deps.ts in 0.2.5.
Workerpool is meant to be an abstract primitive, it needs an implementation of enqueue and dequeue.
If you want to quickly test it out, copy the In-Memory queue example instead of basic usage.
Feel free to reopen if you hit anything.


Set preferred MLS version

The config should have an option to set the preferred MLS version.
cc #85

There's only one version supported really right now.


Expanded Fastlane setup + Jenkins integration

Description:

Added test-only lane for CI use
Minor changes to existing lanes ( ad-hoc releases for internal QA use)
Jenkinsfiles for CI and Release pipelines
Expanded README with complete project setup requirements (particularly regarding code signing)

Amazing work @sebalopez!
One thing we were discussing with the iOS team is that it may not make sense to incorporate the Jenkins integration to the master branch since this is open source and the implementation seems to be tightly related to Rootstrap workflow.
We were thinking in keeping this in a feature branch were we can base our projects from. What do you think?
That being said I really liked the additions to the fast lane documentation and I think that does belong here.
We can discuss more in slack. Thanks!!

after internal discussion, removed the Jenkins setup from this branch, to be kept separately under  feature/jenkins


about language server protocol support

I can't run the follwing microsoft example in the code-server.
https://github.com/microsoft/vscode-extension-samples/tree/master/lsp-sample
can code-server supported the LSP(language server protocol) ?

@chanrai We explicitly use VSCode upstream so yes, we have LSP support baked in from day one. I suggest trying out v2 so you'll have a more optimized experience with developing with LSP.

Thank you for your comment.
I tried to run the microsoft lsp-sample  by the latest version '2.preview.11-vsc1.37.0' , but it could not communicate with the Debug port 6009 by the browser(chrome).
Can you give me some advice for running the lsp-sample code?
Best regards

Closing in favor of https://github.com/cdr/code-server/issues/667. code-server doesn't support developing/debugging extensions yet.


Memory leak when creating multiple instances of the same metric

🐛 Bug
Depending on the situation, one can instantiate multiple instances of the same metric, in order to evaluate different dataset or pipelines, ...
In this "one shot usage" of a metric, one would "naturally" use it like:
metric =Metric()
result = metric(target=target, preds=preds)

Or alternatively:
metric = Metric()
metric.update(target=target, preds=preds) (xmultiple times)
metric.compute()

The reset call (which we know is the good practice) can look like not mandatory in that case because the metric will only be ran once.
In that situation, we have noticed a memory leak with some states of the metric not freed within the GPU memory. This memory leak is at least present for 4 metrics we have tested: BinaryAUROC, BinaryAveragePrecision, BinaryROC, BinaryPrecisionRecallCurve.
Depending on the size of your datasets and your computing machine, this can end up with GPU crash:
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 194.00 MiB (GPU 0; 10.92 GiB total capacity; 9.63 GiB already allocated; 87.38 MiB free; 10.39 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
This issue looks like similar like:

https://github.com/Lightning-AI/torchmetrics/issues/482
https://github.com/Lightning-AI/torchmetrics/issues/1190
https://github.com/Lightning-AI/torchmetrics/issues/1160

To Reproduce
import numpy as np
import torch
from torchmetrics.classification.precision_recall_curve import BinaryPrecisionRecallCurve

DEVICE = torch.device("cuda")

preds = np.random.uniform(0, 1, (10, 1, 30, 30))
target = np.zeros_like(preds, dtype=int)
target[:, :, 5:15, 5:15] = 1

preds = torch.from_numpy(preds).to(DEVICE, non_blocking=True)
target = torch.from_numpy(target).to(DEVICE, non_blocking=True)

start = torch.cuda.memory_allocated(DEVICE)

for idx_loop in range(200):
    curve = BinaryPrecisionRecallCurve()
    curve = curve.to(DEVICE, non_blocking=True)
    curve(preds=preds, target=target)
    print(f"memory at {idx_loop}: {torch.cuda.memory_allocated(DEVICE) - start}")

Expected behavior
We know that the good recommended practice is to then call metric.reset() but we think:

A bit of documentation regarding this leak could help users (especially beginners) to not make the mistake to forget the reset() call --> maybe make the documentation even more recommend users to use the reset call would be enough

no more memory leak when one is not using the update+compute pipeline but directly using metric(target=target, preds=preds)

a specific argument allowing to automatically resetting after the compute call . It is probably not as easy as it seems. Indeed, we tested to add a reset call after the compute or with an overriding of del but it did not removed the memory leak...

Environment
CONFIGURE_OPTS=--enable-shared pyenv install 3.11.4
pyenv virtualenv 3.11.4 torchmetrics
pyenv local torchmetrics
pip install torchmetrics

Additional context
Based on this MWE, we ran some experiments by calling, after the metric computation, at each loop index either:

del metric
gc.collect()
curve.reset()

For each of these settings, we plotted the memory allocated for each index and for each type of cleaning:

Hi @Yann-CV, thanks for raising this issue.
I am more than open to improve our documentation, but this "one-shot" usecase have always seem strange to me.
If you are only interested in one-shot then why are you not using the functional version of each metric e.g.
# use
res = binary_precision_recall_curve(preds, target)
# instead of
metric = BinaryPrecisionRecallCurve()
res = metric(preds, target)

functionals does not have any internal states and should therefore not be leaking any memory regardless of how many times they are called.

@Yann-CV Alright, I think I better understand your usecase and why you run into these problems.
We have in the past investigated this issue and for metrics where the state is a list (which it is for some of the metrics you have mentioned) it is very hard for us to control the memory freeing because the internal state is a python object and therefore controlled by the garbage collector in python.
I would be completely fine with adding a Metric and memory section to this page:
https://torchmetrics.readthedocs.io/en/stable/pages/overview.html
If you could give a proposal what you want to be mentioned in such a section that would be great :)

@SkafteNicki , I guess I would go for something like:
Torchmetrics allows to compute performance metrics during either training and evaluation of models.
Those metrics are as much as possible designed to be both memory (batch update, binned computation) and timely (GPU leverage) efficient for any input type (image, sound, ...) and dataset (even really big ones).
Depending on the situation, all Torchmetrics' metric can be accessed in 2 different ways:

Create a metric instance and call either:

metric = PrecisionRecallCurve()
metric.update(target, preds)
result = metric.compute()
metric.reset()

or
metric = Metric()
result = metric(target, preds)
metric.reset()

The metric classes are really useful during training of model or when you need to deal with big datasets (see documentation for more details).
Warnings:

If you do not call the reset method, the python garbage collector can struggle to totally clean the gpu states.
This can result in a memory leak when you create multiple instances of the same metric for different purposes in the same software.

When the number of points to evaluate is high, it is advised to make update calls sequentially on data batch.

Call functional functions directly:

result = binary_precision_recall_curve(preds, target)
The functional function are not managing any internal state. Thus, they can be used when the iterative metric computation is not required, for instance when the metric internal state evolution is not used elsewhere or when evaluating small datasets.

Hi @Yann-CV thanks for the proposal, I will try to incorporate it into section about memory management in TM :]


Update and rename content/getting-started/setting-up-your-npm-user-ac…

…count/configuring-two-factor-authentication.mdx to 콘텐츠/시작하기/npm-사용자 계정 설정/configuring-two-factor-authentication.mdx

References

😊 감사드립니다


python310Packages.goodwe: 0.2.18 -> 0.2.19

Description of changes
https://github.com/marcelblijleven/goodwe/releases/tag/v0.2.19

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

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

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

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

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

[x] Fits CONTRIBUTING.md.

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

3 packages built:

home-assistant-component-tests.goodwe
python310Packages.goodwe
python39Packages.goodwe


feature: Cupertino support

currently the LlmChatView relies on Material -- update it to support Cupertino as well. A survey of the use of Material shows:

Icons.* (should still work?)
snackbars (perhaps this would work?)
Colors.* (that's easy enough to fix)
showDialog (perhaps CupertinoAlertDialog?)
TextField (CupertinoTextField? EditableText as per Hans?)

Some abstraction and this could be a pretty easy set of fixes.

closed as dup #2


How to stop dnscrypt-proxy on android?

Hi,
I'm using precompiled dnscrypt-proxy package for Android.
While it's working great, i sometimes need to disable it.
Currently i need to remove init.d script and reboot.
I wonder if there is some scripts that can toggle dnscrypt-proxy without having to reboot my phone?
Thanks

Got it..
#!/system/bin/sh
if [[ "${1}" == "enable" ]] || [[ "${1}" == "ENABLE" ]]; then
echo "Enabling dnscrypt..."
iptables -t nat -D OUTPUT -p udp --dport 53 -j DNAT --to-destination <IP_ADDRESS>:53 &&
iptables -t nat -D OUTPUT -p tcp --dport 53 -j DNAT --to-destination <IP_ADDRESS>:53
killall dnscrypt-proxy
/system/etc/init.d/99dnscrypt
echo "Done"
exit
else if [[ "${1}" == "disable" ]] || [[ "${1}" == "DISABLE" ]]; then
echo "Disabling dnscrypt..."
iptables -t nat -D OUTPUT -p udp --dport 53 -j DNAT --to-destination <IP_ADDRESS>:53 &&
iptables -t nat -D OUTPUT -p tcp --dport 53 -j DNAT --to-destination <IP_ADDRESS>:53
killall dnscrypt-proxy
echo "Done"
exit
else
echo "Directions: "
echo "This script allows you to enable or"
echo "disable dnscrypt."
echo " "
echo " How to use: "
echo " enable    -    Enable dnscrypt"
echo " disable   -    Disable dnscrypt"
echo " "
fi; fi


Access to a API rest with https autosigned certificated

Hi, i have a problem, i need to make fetch request to an api rest located in a server with a invalid https certificate, we use https, but with a autosigned certificate, when i try to make the request i have a TypeError: Network request failed, i can make it via curl from my pc, but i CAN'T make anything with fetch in Android, i've not tested it in iOS, but i need it works in both platforms, please, it's really important, i CAN'T change the ssl server certificate, i only can modify mi mobile app made in react-native. Please, help me, i can't find any valid solution...

@diegoceldranmorell Have you found a solution?

@diegoceldranmorell do you solve the problem, i meet the same problem, i can't find someway to sovle

same here! help please

Looking also for a solution to this problem.


cleanup

Removed unnecessary tests
Removed package.json

Thanks. Could you please do that for coduno/dashboard too?


nnbd: Dart does not throw a compile error for the Never constant canonical type in no-sound null safety mode.

Dart SDK version: 2.13.0-48.0.dev (dev) (Wed Feb 17 19:36:03 2021 -0800) on "windows_x64"
Here is a code source sample:
class C<T> {
  final T x;
  const C(Object? o) : x = o as T;
}

const c = C<Never>(null);

main() {}

Both dart and analyzer throw error for the line 6 here because according to the Spec CONST_CANONICAL_TYPE(Never) is Never.
As this is a static case, seems like in no-sound null safety dart should throw error too.
However this is not so, test example above passes without errors or warnings.
Sample output is:
$> dartanalyzer test.dart
Analyzing test.dart...
  error - Evaluation of this constant expression throws an exception. - test.dart:6:11 - const_eval_throws_exception
1 error found.

$> dart test.dart
test.dart:6:11: Error: Constant evaluation error:
const c = C<Never>(null);
          ^
test.dart:3:30: Context: Expected constant 'null' to be of type 'Never', but was of type 'Null'.
  const C(Object? o) : x = o as T;
                             ^
test.dart:6:7: Context: While analyzing:
const c = C<Never>(null);
      ^

$dart --no-sound-null-safety test.dart

$>

I non-sound null safety mode, the as check allows null. You can see that from:
main() {
 foo<Never>(null);
}
void foo<T>(Object? o) {
  print(o as T);
}

when in unsound mode.
That's what's happening here too. The o as T is checking whether o is null or Never, which it is.
Non sound null-safety makes a distinction between o is T and o as T, where the latter implicitly allows null and the former doesn't, just like pre-null-safety is checks and as casts did.

Note that this looks like a bug in the analyzer (the semantics of constant expression evaluation is specified in terms of the semantics of normal run-time expression evaluation; so when null is Never completes normally during an execution with unsound null safety, it should not be a compile-time error as part of constant expression evaluation). However, we will not change the analyzer.
That is precisely the topic of https://github.com/dart-lang/language/issues/1346, and the currently adopted approach is (cf. https://github.com/dart-lang/language/issues/1346#issuecomment-739680187) that the analyzer will treat constant evaluation as if the execution would use sound null checking.


⚠ Bofrost.at has degraded performance

In bce9bdc, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1715 ms

Resolved: Bofrost.at performance has improved in 0a8e4e3 after 313 days, 8 hours, 47 minutes.


Fix #2333: Add Failure event for JUnit plugin failures.

Review by @sjrd

As far as I am concerned, the same comment as to #2340 applies here: As long as we don't test (and therefore define) the expected behavior, changes/fixes to this logic seem pretty meaningless...

@gzm0 In an ideal world, true. However in practice, this is hard. @nicolasstucki has been working on testing these things, and the work so far demonstrates that this will take significant effort. Meanwhile, we have a completely broken framework which is worth fixing, even if only manual testing can verify the fix at this point.
Maybe the fixes in #2340 are not critical enough to apply this reasoning, but this one IMO it is.

Maybe the fixes in #2340 are not critical enough to apply this reasoning, but for this one IMO it is.

Point taken. This one is indeed too important.

That's all.

That's all.

Refer to this link for build results (access rights to CI server needed):
https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/3031/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/3935/
Test PASSed.

Refer to this link for build results (access rights to CI server needed):
https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/3030/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/3934/
Test PASSed.

LGTM

Refer to this link for build results (access rights to CI server needed):
https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/3034/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/3938/
Test PASSed.


Annotation for raw events (e.g. Audio playback events)

When you start audio playback, Alexa sends you raw events that look like this (from CloudWatch logs)
2016-10-08T16:40:31.031Z	ed1b063e-8d75-11e6-ab2e-0d7578d20b44	[Skill]
{
    "request": {
        "type": "AudioPlayer.PlaybackStarted",
        "requestId": "amzn1.echo-api.request.2b99dc61-56f1-4870-9665-6da172c34a6d",
        "timestamp": "2016-10-08T16:40:30Z",
        "locale": "en-US",
        "token": "{\"ChapterNumber\":\"39\",\"VerseNumber\":\"3\"}",
        "offsetInMilliseconds": 0
    },
    "response": {
        "code": 404,
        "message": "Route not found"
    }
}

How can these be accessed via these annotations? I was thinking it would be nice to use something like this:
  @AudioPlayerEvent('AudioPlayer.PlaybackStarted')
  playbackStarted(request) {
    // do something with the request, e.g. use the token or the request context
    // to queue the next song
  }

I think the change to alexa-annotations to support this is fairly isolated... something like the following added to annotations.js (plus ofcourse an example app, test, and README updates)
export const AudioPlayerEvent = (...names) => annotation(({ type = {} }) => names.indexOf(type) >= 0 );

@cameronhunter, What do you think? I can send a PR if you agree.

Instead of adding more and more specific annotations I've exposed annotation on the primary interface in v8.1.0. This will allow developers to build their own custom annotations for their particular needs.
If there turns out to be a common custom annotation we can consider pulling it into the package.
Example:
import { annotation } from 'alexa-annotations';

const PlaybackStarted = annotation(
    // Predicate to match the event
    ({ request = {} }) => request.type === 'AudioPlayer.PlaybackStarted',

    // Optionally transform the event to pass additional params to the handler
    ({ request = {} }) => request.token ? [JSON.parse(request.token)] : []
);

const AudioPlayerEvent = annotation(
    ({ request = {} }) => request.type && request.type.startsWith('AudioPlayer.'),
    ({ request = {} }) => request.type
);

@Skill
class AudioSkill {

    @PlaybackStarted
    onPlaybackStarted(token, event) {
        // Do something with token and event
    }

    @AudioPlayerEvent
    onAudioPlayerEvent(type, event) {
      switch (type) {
        case 'AudioPlayer.PlaybackStopped':
          // Handle stopped event
        case 'AudioPlayer.PlaybackPaused':
          // Handle pause event
        default:
          // Handle other audio player event types
      }
    }

}


Is crate oci-distribution 0.6.0 ready to publish?

the repo for oci-distribution has tokio 1.0 support (yay!) but Cargo.toml in github still says 0.5.0, which is the pre-tokio-1.0 update. Is it ready to release the crate as 0.6.0 yet? This is blocking another project that has a tokio 1.0 dependency. Thanks! I can submit a PR if that would help.

Thank you!!

@stevelr 0.6 is now live as of yesterday evening


11and12

Updated ReadMe's for 11 and 12. Also added artifacts for both 11 and 12.

Great! Thank you


Can't seem to get kafka output to emit metrics

Hi -- it's quite possible that I'm missing something obvious, but if I define a Kafka output like this:
  kafka:
    type: kafka
    topic: gnmic-dev-test
    tls:
      skip-verify: true
    address: (my bootstrap servers)
    insert-key: true
    num-workers: 5
    debug: true
    enable-metrics: true
    event-processors: (stuff)

I definitely get messages in my Kafka topic... but I don't seem to be able to get any kafka-related gnmic metrics at all (e.g., number_of_kafka_msgs_sent_success_total) out of the /metrics API endpoint, even though I also have:
api-server:
  enable-metrics: true
  debug: true

If I go to http://localhost:7890/metrics, I get metrics, but there's nothing Kafka-related in there (I can grep -i kafka and there are no matches).
Looking through the code, I don't immediately see why it shouldn't be working, but there is much I do not know about the go prometheus module.
The docs say this:
Kafka Output Metrics[#](https://gnmic.openconfig.net/user_guide/outputs/kafka_output/#kafka-output-metrics)
When a Prometheus server is enabled, gnmic kafka output exposes 4 prometheus metrics, 3 Counters and 1 Gauge:

number_of_kafka_msgs_sent_success_total: Number of msgs successfully sent by gnmic kafka output. This Counter is labeled with the kafka producerID
number_of_written_kafka_bytes_total: Number of bytes written by gnmic kafka output. This Counter is labeled with the kafka producerID
number_of_kafka_msgs_sent_fail_total: Number of failed msgs sent by gnmic kafka output. This Counter is labeled with the kafka producerID as well as the failure reason
msg_send_duration_ns: gnmic kafka output send duration in nanoseconds. This Gauge is labeled with the kafka producerID

but the code for the prometheus-address config option looks like:
	//PrometheusAddress string        `mapstructure:"prometheus-address,omitempty" json:"prometheus-address,omitempty" yaml:"prometheus-address,omitempty"`

so if there is another way to turn on a Prometheus server, I don't see it.  And I don't see any tests in the outputs/kafka_output directory, so I suppose it'd be easy for that to get broken somehow.
Am I missing something?

It works fine on my side:
karim@kss:~$ curl clab-lab12-gnmic:7890/metrics -sSL | grep -v ^# | grep kafka
gnmic_kafka_output_msg_send_duration_ns{producer_id=""} 0
gnmic_kafka_output_msg_send_duration_ns{producer_id="kafka-output-kafka-prod-0"} 2.775963e+06
gnmic_kafka_output_msg_send_duration_ns{producer_id="kafka-output-kafka-prod-1"} 1.391972e+06
gnmic_kafka_output_msg_send_duration_ns{producer_id="kafka-output-kafka-prod-2"} 1.227423e+06
gnmic_kafka_output_msg_send_duration_ns{producer_id="kafka-output-kafka-prod-3"} 2.603107e+06
gnmic_kafka_output_msg_send_duration_ns{producer_id="kafka-output-kafka-prod-4"} 1.347982e+06
gnmic_kafka_output_number_of_kafka_msgs_sent_fail_total{producer_id="",reason=""} 0
gnmic_kafka_output_number_of_kafka_msgs_sent_success_total{producer_id=""} 0
gnmic_kafka_output_number_of_kafka_msgs_sent_success_total{producer_id="kafka-output-kafka-prod-0"} 62
gnmic_kafka_output_number_of_kafka_msgs_sent_success_total{producer_id="kafka-output-kafka-prod-1"} 60
gnmic_kafka_output_number_of_kafka_msgs_sent_success_total{producer_id="kafka-output-kafka-prod-2"} 59
gnmic_kafka_output_number_of_kafka_msgs_sent_success_total{producer_id="kafka-output-kafka-prod-3"} 60
gnmic_kafka_output_number_of_kafka_msgs_sent_success_total{producer_id="kafka-output-kafka-prod-4"} 59
gnmic_kafka_output_number_of_written_kafka_bytes_total{producer_id=""} 0
gnmic_kafka_output_number_of_written_kafka_bytes_total{producer_id="kafka-output-kafka-prod-0"} 105720
gnmic_kafka_output_number_of_written_kafka_bytes_total{producer_id="kafka-output-kafka-prod-1"} 132826
gnmic_kafka_output_number_of_written_kafka_bytes_total{producer_id="kafka-output-kafka-prod-2"} 98892
gnmic_kafka_output_number_of_written_kafka_bytes_total{producer_id="kafka-output-kafka-prod-3"} 117513
gnmic_kafka_output_number_of_written_kafka_bytes_total{producer_id="kafka-output-kafka-prod-4"} 95773

I'm using gNMIc v0.31.1 and the same config as you minus the kafka output tls bit and the event-processors
BTW, the processors apply only when the format is set to format: event

Thanks!  I am sorry (and a bit embarrassed) to say that it looks like I'd gotten a port number wrong in a docker-compose.yaml, so unbeknownst to me, I was getting output from a different gnmic instance... When I execed a shell in the container I start, and do the relevant wget, of course all the data is there. Grr.


Cannot Login with new Cookie format

Starting yesterday, the cookie format changed a bit and I can no longer login. Can you maybe provide instructions on how to do so?
Thanks very much in advance

Issue went away after updating the plugin to latest version.
Closing


DRAFT: Allows passing in the ocm config for short-lived ocm token support

Adds initial support for short-lived OCM tokens. You'll need to auth before you get into the container using ocm login --use-auth-code and then after you are logged in outside of the container your auth will be passed into the container.
This should remain in draft until the next OCM CLI is released so that we can use the OCM_URL environment variable to override which endpoint to use (int, stage, prod, regional, etc), otherwise this will only work for whatever environment you're logged into OUTSIDE of the conatiner.

/approve cancel

I have tested this with the latest build of our container that has ocm 0.1.74.
Everything worked as expected.

/lgtm
/approve


Add Indonesian Manage Compute Resources page

This PR addresses #15341
Requesting reviews
/assign @irvifa

/assign @irvifa

/assign @danninov

Hi @phanama Any update on this?

Thanks for the review! @danninov
I've replaced all the "rinci" to "tentukan" and fixed the typos in the https://github.com/kubernetes/website/pull/18468/commits/5e9dfb8ae2960263bbf4ae9571c3c38866409b76 commit.
Regarding "request", I've left a comment here: https://github.com/kubernetes/website/pull/18468#discussion_r365350517
Regarding "scheduler", I've left a comment for discussion here:
https://github.com/kubernetes/website/pull/18468#discussion_r365351689
And here's some worth some discussion:
https://github.com/kubernetes/website/pull/18468#discussion_r365354586
https://github.com/kubernetes/website/pull/18468#discussion_r365355424

Thanks for the review! @danninov
I've replaced all the "rinci" to "tentukan" and fixed the typos in the https://github.com/kubernetes/website/commit/e16ce57e7ef329fff26dc986f2f5b3178178dc72 commit.
Regarding "request", I've left a comment here: https://github.com/kubernetes/website/pull/18468#discussion_r365350517
Regarding "scheduler", I've left a comment for discussion here:
https://github.com/kubernetes/website/pull/18468#discussion_r365351689
And here's some worth some discussion:
https://github.com/kubernetes/website/pull/18468#discussion_r365354586
https://github.com/kubernetes/website/pull/18468#discussion_r365355424


Fix: Raise error if implicit + explicit label found

Found via #136
Given
Hello
<input id="greeting" />

Hello <input id="second_greeting" />

session
|> fill_in("Hello", with: "world")

Expected
ArgumentError: Found many elements with label "Hello" and matching the provided selectors

Actual
No error. Label with explicit for wins, other one ignored.

I like this idea! Do you know what HTML spec would do for this? Is this how it behaves, or does it target the implicit one (or neither one or both)?

Do you know what HTML spec would do for this? Is this how it behaves, or does it target the implicit one (or neither one or both)?

I think the HTML spec has no opinion on this.
Using labels to find input fields is a semantic layer that phoenix_test adds to reflect user behaviour.
The HTML spec (and browser) doesn't really care about the labels in the context of form submission.
Did I understand your question correctly?

Did I understand your question correctly?

I'm not sure.
My question was aimed at figuring out how the HTML spec would resolve the issue you're presenting in this PR: that of a label having a for that points to an element's id and also having an implicit input.
I wasn't sure, but I was curious if HTML spec might have some info as to which element it would label.
Reading the spec:

If the for attribute is not specified, but the label element has a labelable element descendant, then the first such descendant in tree order is the label element's labeled control.

It seems like the element with the id that matches the for would be the "labelable" element in that case. So, I think the solution you're presenting would be the correct behavior. 👍

I still think it makes to raise an error here. We don't want people to have an explicit and an implicit label and us just choose the explicit one. So, I think it makes sense do include this PR.

I added a check and test for this. As you said, we're now stricter than the HTML spec.
But I agree that's a good thing to assist users in finding errors.


Cleanup JSON parsing

Because of the mixed data types in Prometheus vectors, the json parsing is hard to read. It also panics when unexpected results are returned from prometheus. See todos on line 655 https://github.com/kubecost/cost-model/blob/master/costmodel/costmodel.go#L655 and line 662
https://github.com/kubecost/cost-model/blob/master/costmodel/costmodel.go#L662
Also investigate other JSON parsers like https://github.com/tidwall/gjson to clean this up. Note that any JSON parser used cannot read the whole billing data result into memory, because it gets quite large.

I've been using gjson and it's pretty fast and easy to use. I'm pretty sure it can handle large sets of data without loading everything into memory. Take a look here https://github.com/tidwall/gjson/blob/master/README.md#performance

Took a closer look at gjson and I didn't see an obvious way to capture data from a buffered reader. Have you used gjson to stream data before?

We've done a decent chunk of refactoring of our query libraries and should now have better error handling here.


What API changes cause this two problem?

Warning: Failed prop type: The prop `history` is marked as required in `Router`, but its value is `undefined`.

Uncaught TypeError: Cannot read property 'listen' of undefined
    at syncHistoryWithStore

There are no error for 3.0.2 but for lastest.

The documentation is lacking.. there have been big changes, it seems, and v5.0.0-beta2 (iirc) removed syncHistoryWithStore, and needs a specific version of history..

I am having similar/same issues:
bundle.js:2945Warning: Failed prop type: The prop historyis marked as required inRouter, but its value is undefined.     in Router
Uncaught TypeError: Cannot read property 'location' of undefined     at new Router

I am having the same problem, i switched back to react-router version 3.0.2 and the issue was gone.

Hi @EasonWang01. React Router v4 is a complete re-write of React Router and therefor you shouldn't have the expectation of upgrading and still having everything work (which is why it's v4 and not v3.X). With that said, feel free to stick with the previous version (v3) if it's working for you. If you'd like to take the time to upgrade, you can read all about the new api here.

@ashishrijal I had the same issue, and I was also blind to the fact that the new 4.0.0 imports from react-router-dom and not react-router.
import {BrowserRouter as Router, Route, Link} from "react-router-dom";
and not something like
import {Router, Route, Link} from "react-router";
which will cause weird error messages that seem unrelated. Hope this helps.

@tylermcginnis Thanks for pointing out that. Still if anyone wants solution and who are new into this area (like me) below is the solution
Use
import createBrowserHistory from 'history/createBrowserHistory'

// IGNORE
const store = createStore(
  rootReducer,
  {},
  enhancers
)

// This is useful
export const history = syncHistoryWithStore(createBrowserHistory(), store)

This will create history object which is custom.
On other hand when you need to pass history to Router, this is what you need to do
import React from 'react'
import ReactDom from 'react-dom'
import { Router } from 'react-router-dom' // Instead of BrowserRouter as Router, only Router
import App from './containers/App'

import { Provider } from 'react-redux'
import { store, history } from './redux/store.js' // this is where above export const history was used

// IGNORE this line
let basePath = window.location.pathname.replace('index.html', '')

function initRender() {
  ReactDom.render((
    <Provider store={ store }>
      <Router basename={ basePath } history={ history }>
        <App />
      </Router>
    </Provider>
  ), document.getElementById('root'))
}

initRender()


chore: move DD metrics endpoint code into common

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#382  👈 (View in Graphite)
#381
#380
#379
main

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


Update spring-core to 5.3.34

Hello colleagues,
There is a Spring Framework security vulnerability (BDSA-2024-1160)  on version 5.3.33.
I updated spring-core to 5.3.34
Is is possible to have a timeline for the release of 2.17.5 so we can plan our next release of the SAP Cloud SDK?

Is is possible to have a timeline for the release of 2.17.5 so we can plan our next release of the SAP Cloud SDK?

We can release it this week.


Added copyright

Pull Request Template

Please provide all of the details below. Pull requests missing any of the information below will be closed!

Sumarise what this PR fixes: Added copyright at footer section
Fixes #: #171
Checklist:
(Add an x between the brackets to check the items)

[x] I have sumarised what this PR fixes above
[x] I have provided the issue ID/URL above
[x] This PR fixes only the issue mentioned above (create seperate PRs for seperate issues)
[x] I was the first one to claim the issue or I created the issue

Looks good!


Files freezes and then crashes when right-clicking a media file

Description
When right-clicking any media file, Files will open the context menu, freeze with the last entry in the context menu showing "Loading... >", after a couple of seconds the app closes. No error message is shown, no error is written to debug.log.
File types confirmed affected: mp3, wav, mp4, wmv, avi, png, jpg, bmp
File types confirmed not affected: txt, exe, pdf, zip, docx, xlsx, psd
Measures attempted to fix/mitigate bug, without succes:

Rebooted system.
Updated Windows.
Disabled all windows shell extensions.
Disabled all 'Context menu options' in Settings -> Preferences, in Files.
Reinstalled Files.

Steps To Reproduce

Open Files.
Navigate to media file location.
Right-click media file.
Freeze -> Crash

Requirements
-Fix crash that occurs when right-clicking a media file.
-Right-clicking a media file should open the context menu without crashing.
Files Version
<IP_ADDRESS>
Windows Version
Windows 10 Pro 21H2 19044.2728
Log file
debug.log

Can you see if this is an issue in <IP_ADDRESS>

Issue persists in <IP_ADDRESS> (Preview)

Merging with #11882


Add Vulkan 1.2 core commands

More work for 1.2 compatibility. This adds all the required aliases for all commands added with 1.2. I've had to slightly edit the macro as there was some EXT extensions promoted.
Note how I left out vkCmdDrawIndexedIndirectCount and vkCmdDrawIndirectCount as their promotion text is as follows:

However, if Vulkan 1.2 is supported and this extension is not, the entry points vkCmdDrawIndirectCount and vkCmdDrawIndexedIndirectCount are optional.

Thanks for the submission. Good work. And very helpful!

Note how I left out vkCmdDrawIndexedIndirectCount and vkCmdDrawIndirectCount

Hmmm. I think it might be productive to include them (and their KHR & AMD aliases), while we're thinking about 1.2 aliasing, and just leave them as no-op placeholders, like some of the other optional functions in vulkan.mm. By including them now as no-ops, if and when we can support them, it will be straightforward, rather than dealing with the 1.2/KHR/AMD aliasing at that point.


[Breadcrumbs] CrumbSimpleMenu

⚠ To merge after #646
What
CrumbSimpleMenu component supporting SimpleMenu usage in Breadcrumbs

Implemented here #653


a(href=url index) ?

The reason why I love PyJade so much is that I can for example do - load crispy_forms instead of {% load crispy_forms %}. But how would I do this for
a(href="{% url 'index' %") ? Can I do that?

Yup, just like that should work!
I'm using pyjade with django and have lots of elements using django tags:
link(rel="stylesheet", href="{% static 'x.css' %}")
form(action="{% url 'buy:pay' %}")

etc.

I believe the OP wanted to not have to use the {% delimiters that django template engine and use the jade syntax instead. Your examples don't answer that, I think.

Good point. But I don't believe there's a direct translation.
- load crispy_forms works because it's a line statement in pyjade, but without some kind of delimiter pyjade can't parse it (at present) when it's mixed into a tag's attributes or so on.
What would be the expected/desired/intuitive jade syntax for this?
a(href=url("index"))
a(href="- url 'index'")

?

Ideally
a(href=url("index"))
just because it looks right and fits with jade

I tried a lot times, finally figure it out:
html code:
{{ question.question_text }}
then Jade code should be:
a(href!='{% url 'polls:detail' question.id %}')= question.question_text
and if the 'detail' link don't need paramater, it should be like this:
a(href!='{% url 'polls:detail' %}')


Shimmer Settings

when trying to set different colors for dark and light I got a compiler error:
'lightColor' is inaccessible due to 'internal' protection level
I'm trying to do it like this:  AMShimmer.settings.lightColor = UIColor.myColor.cgColor

Thank you for reporting the issue, not it's fixed!


display style schema as accordion not tabs

related to  #3414

I added a boolean option named "stylesSchemaTabsView" which can be passed to the Blocks. If it is true, we can have the Styling with tabs, and if it is false, then we have the accordions.
I also talked with Madalina for a view on the UI situation, and she recommended to have the 'Styling' header just like the Block's name header, so it is cleaner and consistent. Also, in the accordions' case, we always have the 'Default' open when we first open the edit view sidebar, and there is just one accordion open at all times, so when we click on "Other" the "Default" closes.

This would be a nice addition to the ObjectWidget, but it needs to be framed as an ObjectWidget configuration option, rather then something related to the schema.

I see its targeted for 19.x. It's a nice feature to have. As Daniela is not working with us, I will assign it myself for the moment.


MFA训练过程中意外中断

For support and discussions, please use our Discourse forums.
If you've found a bug then please create an issue with the following information:
Describe the bug
MFA训练到sat_3步骤后到生成TextGrid阶段时报错中断
To Reproduce
Steps to reproduce the behavior:
1.打开conda虚拟环境
2.键入指令：mfa train data/wav/EILEEN/split/ MFA/pinyin_eng.dict MFA/EILEEN.zip data/TextGrid/EILEEN/ --clean
Screenshots

** Environment (please complete the following information):**

OS: Windows 10
Python Version: 3.9.10
PaddlePaddle Version: 2.3
Model Version [e.g. 2.0.0]
GPU: NVIDIA RTX 2060 6GB
CUDA/CUDNN Version: CUDA 11.2
基于VtuberTalk(https://github.com/jerryuhoo/VTuberTalk)

MFA 相关问题建议直接去 MFA repo 询问


Vagrant reload NIC does not re-acquire IP

vagrant reload will also make the eth1 internal network nic not come back properly. Does not send DHCP broadcast and acquire its IP.

#df2e95f8c1f42545631627abb4c345a5011d4713
Provides the fix by creating the second nic via modifyvm. Not Vagrant's private networking interface


How does Android get the color and depth data of a frame?

Required Info

Camera Model
{ R200 / F200 / SR300 / ZR300 / D400 }

Firmware Version
(Open RealSense Viewer --> Click info)

Operating System & Version
{Android 8}

Kernel Version (Linux Only)
(e.g. 4.14.13)

Platform
PC/Raspberry Pi/ NVIDIA Jetson / etc..

SDK Version
{ legacy / 2.41.0 }

Language
{Java }

Segment
{Robot/Smartphone/VR/AR/others }

Issue Description
How does Android get the color and depth data of a frame?
I want to get color images and depth data of a frame.

Hi @whosmyqueen   I hope that the link below will be helpful to you.
https://github.com/IntelRealSense/librealsense/issues/4716

Hi @whosmyqueen   I hope that the link below will be helpful to you.
https://github.com/IntelRealSense/librealsense/issues/4716

Hi @whosmyqueen  Do you require further assistance with this case, please?   Thanks!

Case closed due to no further comments received.


⚠ Bofrost.es has degraded performance

In 18e3573, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1486 ms

Resolved: Bofrost.es performance has improved in f48759a after 17 minutes.


RemoveDuplicates: does not take cordoned nodes into account

Hi I've just came up against this exact issue and I can confirm 0.20 fixes the issue when I have a higher replica count than nodes BUT it does not take into account nodes that are cordoned. If I have a replica set of 3, 2 active nodes and 1 cordoned node I still get the issue with a continuous loop destroying my pod.
Originally posted by @Evilweebl in https://github.com/kubernetes-sigs/descheduler/issues/463#issuecomment-749550117

/kind bug

See #42 for some historical context. Looks like a similar issues was fixed for the LowNodeUtilization strategy.

/assign

Cordoned nodes get tainted as shown below:
  taints:
  - effect: NoSchedule
    key: node.kubernetes.io/unschedulable
    timeAdded: "2021-01-17T15:25:45Z"

Meaning that this PR #563 should address this.
PR #567 fixed this for strategy RemovePodsViolatingTopologySpreadConstraint

/remove-lifecycle stale

/remove-lifecycle rotten

/remove-lifecycle rotten


Docs: Document the HrTime format

This PR is to address and document the HrTime format, HrTime = [number, number], to specify the representation of the first and second number.

closing PR, merged upstream.


Error property

Referring to the inheritance of parent properties from the card to the contained controls (next to last table): although I can see card properties for 'Required', 'DisplayName' and 'Default', I cannot see one for 'Error'. Has something changed here?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 0f886011-a79a-8fa9-bb7c-f0adbb61b8d3
Version Independent ID: 997f29d5-e836-fc31-647e-eb6a916afae4
Content: Understand data cards - PowerApps
Content Source: powerapps-docs/maker/canvas-apps/working-with-cards.md
Service: powerapps
GitHub Login: @gregli-msft
Microsoft Alias: gregli

@biterbit, you are probably looking at the list of properties available in the drop down at the left end of the formula bar.  These are only properties that can have a formula attached to them - they are input
and input/output properties.  Parent.Error for a data card is an output only property and cannot be set to a formula so it does not appear in this list.  While editing a formula for a property within the data card, Parent.Error is available.

Thanks for the clarification on the property drop-down list for formula input. What I found confusing was not only that I could not see an Error property in that drop-down list, but also that I could not see it in the right-hand Properties or Advanced tabs either. For the other examples in the list (eg, TextFieldDisplayName.Textbeing inherited from Parent.DisplayName) I could find the parent card property (eg, DisplayName) and thereby the value that would be inherited.

@biterbit, we have added a note to the article that Parent.Error is an output only property and therefore won't appear in the formula bar drop down and other locations.
@AFTOwen, please close this issue.


Deal with small ambiguous matches gracefully.

This addresses the need for Git commit SHA: 75e445a4684b0fab5d4ee79a3280f49087c57e24.
The minimum match size had to be jemmied up to 5 to avoid ambiguous matches of the snippet:
            @Override
            public void

that is a prefix of several methods in the test source inputs.
The presence of ambiguous matches isn't a problem in itself, but one of the methods is deleted, along with the ambiguous prefix. This should propagate the deletion, except that because of the ambiguity, execution reaches this dead end.
The job is to rectify this - either:

Find a way of propagating the deletion to just the 'right' destination.
Ignore ambiguous matches when propagating (and issue a useful diagnostic suggesting that the match size should be increased).
Automatically retry the merge with a larger minimal match size.

Ticket #6 addresses this too, but something expedient should be done first.

There is an underlying theme here - when there are ambiguous matches that involve two or more moved sections, how do we know what the move destinations are? We can state that any section that is part of the longest common subsequence is not a source or destination of a move, but multiple moves can cross over.
There is a similar problem when an ambiguous match involves a section that is deleted and another that is moved. Which one is which?
Common sense helps in that we can try to correlate the sections via their containing file name - this can work for simple cases, at least.

The existing implementation as of Git commit SHA: 09e28d0263f9c23466461f3689ee9d2ad3661e8f does not exclude matched sections that are part of the longest common subsequence from being considered as move destinations, although it does exclude them from being treated as move sources.
Fixing that might provide a lightweight solution that could cover some of the more common problems, although it won't work with potentially crossed-over moves, or moves versus deletions.

Another hokey solution is to propagate all of the conflicting changes (including a deletion) for an ambiguous match to all of the destinations. The user has the context to remove all but the pertinent change at each destination, or even to revert the change altogether.
We don't want to have to do this all the time where moves aren't crossed-over, but once the change in the previous comment is in, this might be a workable solution for the time being.


Add polygon network

Related to https://github.com/oceanprotocol/multi-repo-issue/issues/77
Seems to be working on the polygon network. Not sure why the test fails

Seems that the provider is failing from time to time, cause tests failure all around the stack.  We already have a issue for that, we just need to restart the build if it fails

failing tests on main are not an option, so we need to figure this out first with #628. There seems to be more required to make the tests not fail randomly for unknown reasons


Fixing all deprecated use of sets.String

What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This PR is for removing deprecated use of sets.String and moving to new generic set type.

/ok-to-test

Heads up, this will lead to updates required in net-kourier & serving (which is expected and fine).

/assign @skonto

@navinag1989 could you also prepare the PRs for the Serving and net-kourier stuff?
Btw the full list of pending deprecations is:
configmap/informer/synced_callback.go:110:10: SA1019: wait.ErrWaitTimeout is deprecated: This type will be made private in favor of Interrupted() for checking errors or ErrorInterrupted(err) for returning a wrapped error. (staticcheck)
controller/controller.go:767:9: SA1019: wait.PollImmediateUntil is deprecated: This method does not return errors from context, use PollWithContextCancel. Note that the new method will no longer return ErrWaitTimeout and instead return errors defined by the context package. Will be removed in a future release. (staticcheck)
controller/controller_test.go:796:5: SA1019: wait.PollImmediateUntil is deprecated: This method does not return errors from context, use PollWithContextCancel. Note that the new method will no longer return ErrWaitTimeout and instead return errors defined by the context package. Will be removed in a future release. (staticcheck)
controller/controller_test.go:848:5: SA1019: wait.PollImmediateUntil is deprecated: This method does not return errors from context, use PollWithContextCancel. Note that the new method will no longer return ErrWaitTimeout and instead return errors defined by the context package. Will be removed in a future release. (staticcheck)
controller/two_lane_queue_test.go:76:5: SA1019: wait.PollImmediate is deprecated: This method does not return errors from context, use PollWithContextTimeout. Note that the new method will no longer return ErrWaitTimeout and instead return errors defined by the context package. Will be removed in a future release. (staticcheck)
controller/two_lane_queue_test.go:92:5: SA1019: wait.PollImmediate is deprecated: This method does not return errors from context, use PollWithContextTimeout. Note that the new method will no longer return ErrWaitTimeout and instead return errors defined by the context package. Will be removed in a future release. (staticcheck)
injection/sharedmain/main.go:77:12: SA1019: wait.PollImmediate is deprecated: This method does not return errors from context, use PollWithContextTimeout. Note that the new method will no longer return ErrWaitTimeout and instead return errors defined by the context package. Will be removed in a future release. (staticcheck)
leaderelection/context_test.go:48:19: SA1019: sets.String is deprecated: use generic Set instead. new ways: s1 := Set[string]{} s2 := New[string]() (staticcheck)
leaderelection/context_test.go:181:19: SA1019: sets.String is deprecated: use generic Set instead. new ways: s1 := Set[string]{} s2 := New[string]() (staticcheck)
test/spoof/response_checks.go:66:15: SA1019: sets.String is deprecated: use generic Set instead. new ways: s1 := Set[string]{} s2 := New[string]() (staticcheck)

Looks good to me now, @skonto mind taking another look?
@navinag1989 can you create downstream PRs for the failing builds using this pkg branch to have PRs ready when we merge this PR?

/lgtm
/approve
thanks for the help @navinag1989


New preferences do not receive default value

Preferences added after the user has already used the app do not get their default values set.

Fix released


Decimal numbers appear on the number transitions even if they are integers

Moved https://github.com/CartoDB/deep-insights.js/issues/39


Merge pull request #1 from ndajay/ndajay-patch-1

Ndajay

Can u send me a code to log in Facebook


[DO NOT MERGE] Demonstrate the added unit test can capture a bug

Issue #, if available:
This PR is a supplement of this PR to demonstrate the added unit tests can capture the bug introduced in https://github.com/aws/amazon-braket-default-simulator-python/pull/180. The expected behavior is that the solvers will produce wrong results, because of the mistakenly clamped indices, and hence there will be two wrong assertions.
Once this PR is merged, I will close this PR.
Description of changes:
Testing done:
Merge Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.
General

[ ] I have read the CONTRIBUTING doc
[ ] I used the commit message format described in CONTRIBUTING
[ ] I have updated any necessary documentation, including READMEs and API docs (if appropriate)

Tests

[ ] I have added tests that prove my fix is effective or that my feature works (if appropriate)
[ ] I have checked that my tests are not configured for a specific region or account (if appropriate)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Stephen kindly test the PR 190 locally, and confirm it. So I close this PR.


Longer times

Is your feature request related to a problem?
It bothers me that the screen savers last for such a short time. They are so good
Describe the solution you'd like
The screen saver you choose repeats until you wake up your Mac

Agreed! I would love to see the animations slowed down slightly to make them less rushed and fit a bit more with a traditional screensaver speed. Love this though!

There's no way to achieve this given that we don't own the animations - they were done by Apple.
By doing so, and since the animations are at 30 fps, they would lag and showcase the poor frame rate.

What about taking the file and looping it? The animations are fantastic it's just a bit fast to switch around.

You can do that already in the preferences menu for Brooklyn. Are you using the latest version @coltoneshaw?

I did not know that! I am not using the latest, I turned it off due to this a while back. Let me try it again!

Download the latest one and give it a shot, it has a bunch of animations and a few options that might help you find your sweet spot


Rename the Packages

I tried to rename but failed, something wrong?
task relocate TARGET=github.com/author/gorsk
task relocate TARGET=github.com/author/gorsk                                                                                ─╯
 *** Relocating packages to github.com\/author\/gorsk ***
sed: can't read s/gorsk/gorsk/g: No such file or directory
sed: can't read s/gorsk/gorsk/g: No such file or directory
sed: can't read s/gorsk/gorsk/g: No such file or directory
sed: can't read s/gorsk/gorsk/g: No such file or directory
sed: can't read s/gorsk/gorsk/g: No such file or directory
sed: can't read s/gorsk/gorsk/g: No such file or directory
sed: can't read s/gorsk/gorsk/g: No such file or directory
....

package rename doesn't work. It renames the project name but username stays the same

It does not work, better to do it with sed


Unit tests & Integration tests support selecting a single test case to run

pick!

In order to select the test function to run the test case, we need to analyze the Move source code and identify all the test functions.
Alternatives:

Use regular expressions to match function definitions and extract function names.
Use the move compiler to obtain the Move syntax tree, and obtain the function declaration from the syntax tree.
Reuse VsCode's syntax-highlighted TextMate grammars to obtain function declarations from the syntax tree.

I prefer option 2, according to the planned architecture diagram：


Update comments to match reality

The comments in this file was identical to the frontend-file, so they didn't describe the contents of this file.

Thanks for catching these comments @kimroen!


Introduce DataBufferFromDataFile Class

In order to handle various input generation cases, make DataBuffer
Class is base class and inherit this, several children classes is
introduced.
. DataBufferFromDataFile
. DataBufferFromCallback : NYI
. DataBufferFromFramework : NYI
. others. : NYI
Self evaluation:

Build test:	 [X]Passed [ ]Failed [ ]Skipped
Run test:	 [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: jijoong.moon<EMAIL_ADDRESS>

:memo: TAOS-CI Version: 1.4.20191203. Thank you for submitting PR #50. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://ec2-54-180-96-14.ap-northeast-2.compute.amazonaws.com/.

:octocat: cibot: @jijoongmoon, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ec2-54-180-96-14.ap-northeast-2.compute.amazonaws.com/nntrainer/ci/repo-workers/pr-checker/50-202004212032240.22357988357544-ab2feb58284b6be95487ce3eee9596fa51f3b417/.

How about making a class-bound function(classmethods in java, python, static member function in c++??) to initiate DataBuffer buffer instead of inheriting data buffer by source of databuffer?
If it is going to be lengthy, I think a factory can be used instead for this purpose.
eg.
  DataBuffer dataBufferFromFile = DataBuffer::fromFile('some file path.dat')
  DataBuffer dataBufferFromFramework = DataBuffer::fromFramework('some framework??')

I think the DataBuffer class would be too long if it is member function. Also there is possibility to add more DataBuffer ( may be nnstreamer pipe line buffer )

How about making a class-bound function(classmethods in java, python, static member function in c++??) to initiate DataBuffer buffer instead of inheriting data buffer by source of databuffer?


Bulk insert of vectors

I am using psycopg2 and wanted to understand if this library supports bulk insertion of vectors in a table using COPY command.
Thanks.

Yes, it's supported.
import psycopg2
from io import StringIO

conn = psycopg2.connect('dbname=pgvector_example')
conn.autocommit = True

cur = conn.cursor()
cur.execute('DROP TABLE IF EXISTS items')
cur.execute('CREATE TABLE items (id bigserial PRIMARY KEY, embedding vector(3))')

f = StringIO("[1,2,3]\n[4,5,6]\n")
cur.copy_from(f, 'items', columns=('embedding',))

cur.execute('SELECT * FROM items')
print(cur.fetchall())

https://www.psycopg.org/docs/usage.html#copy


Overwriting description of referenced objects not possible (openAPI 3.1)

According to openAPI 3.1 specification it is possible now to overwrite descriptions and summary where objects are referenced:
When using the Reference Object, summary and description fields can now be overridden.
https://github.com/OAI/OpenAPI-Specification/releases
e.g.
paths:
  /items:
    post:
      parameters:
        - $ref: '#/components/parameters/item'
          description: The specific item in question

RapiDoc seems to render the description from the referenced object only.
We use this quite heavily to re-use models and change some description details in the specific context.
Would love to see the that part of openAPI 3.1 spec implemented in the future. :-)

Hello! As the maintainer of openapi.tools, and as somebody works with Linux Foundation helping out in OpenAPI-land, I'm reaching out to tooling vendors to track the progress towards supporting OpenAPI v3.1, to see what roadblocks there are beyond folks just generally being busy at this ridiculous time.
 It also fixes some other inconsistencies and duplicate ways of doing things. It's the best version and everyone should be using it, but we need tooling to catch up. Just in case folks didn't notice, or don't have resources to simplify the process, I'm here to give a friendly prod and send over some handy links.
Here are a few articles showing off the differences between OpenAPI v3.0 and v3.1.

https://www.openapis.org/blog/2021/02/16/migrating-from-openapi-3-0-to-3-1-0
https://www.apimatic.io/blog/2021/09/migrating-to-and-from-openapi-3-1/
https://nordicapis.com/whats-new-in-openapi-3-1-0/

Here are some example files which can make for handy pass/fail test cases:
https://github.com/Mermade/openapi3-examples/tree/master/3.1
If you're looking for the JSON Schema that defines a valid OpenAPI document, that'll be right over here:
https://github.com/OAI/OpenAPI-Specification/tree/main/schemas/v3.1
No rush, but when you're starting work on it, please update this issue so I can update openapi.tools to reflect that, and folks will have a way to subscribe for updates.
LMK if you have any questions!

I have a same problem.
Current Behavior
When I use this sample specification:
openapi: 3.1.0
info:
  version: 1.0.0
  title: Example.com
  termsOfService: 'https://example.com/terms/'
  contact:
    email<EMAIL_ADDRESS>    url: 'http://example.com/contact'
  license:
    name: Apache 2.0
    url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
  description: |
    This is an **example** API to demonstrate features of the OpenAPI
    specification.
servers:
  - url: 'https://example.com/api/v1'
paths:
  '/users':
    post:
      summary: user
      description: User.
      operationId: createUser
      responses:
        '200':
          description: OK
      requestBody:
        description: Updated user object
        content:
          application/json:
            schema:
              description: Names and Numbers (specific)
              $ref: '#/components/schemas/NamesAndNumbers'
        required: true
components:
  schemas:
    Name:
      type: string
      description: Generic Name.
    Number:
      type: integer
    Names:
      type: object
      description: names description
      properties:
        oneName:
          $ref: "#/components/schemas/Name"
          description: One name (specific).
        otherName:
          $ref: "#/components/schemas/Name"
          description: Other name (specific).
    Numbers:
      type: object
      description: numbers description
      properties:
        oneNumber:
          $ref: "#/components/schemas/Number"
          description: One number (specific)
        otherNumber:
          $ref: "#/components/schemas/Number"
          description: Other number (specific)
    NamesAndNumbers:
      type: object
      description: names and numbers description
      properties:
        names:
          $ref: "#/components/schemas/Names"
        numbers:
          $ref: "#/components/schemas/Numbers"

this tool show this:

Expected Behavior

I expected it to show the specific descriptions.

we depend on swagger parser for parsing the spec per the specification. and therefore don't have much of room to deal with it on our end. will keep this issue open for tracking

we depend on swagger parser for parsing the spec per the specification. and therefore don't have much of room to deal with it on our end. will keep this issue open for tracking

I believe you can evaluate replace with this component: APIDevTools/json-schema-ref-parser
This was done at https://github.com/Rhosys/openapi-explorer/issues/57

Thanks fo the suggestion, we do keep testing the spec parsers time to time, we also keep an eye on their issue list and release notes
APIDevTools/json-schema-ref-parser is promising one but
so far we found swagger parser to be working as expected for most of the spec. their parsing performance is also better and provide ability to partially parse the spec.
our assessment of switching the parser in order to take care of this issue is too risky at the moment

Pinging this issue since it appears that the underlying library support has been available for a while.  We really need this feature and will have to move to another tool if it can't be done.

Lack of support for this, is one of the reasons start maintaining a fork: https://github.com/Authress-Engineering/openapi-explorer#readme :cry:

Soon there will be two years anniversary since the issue was opened.

its fixed in v9.3.6
for test case refer to https://rapidocweb.com/examples/override-descriptions-from-refs.html

In your test case, you use a component from the "schema" section and override the description of that schema.
Did you consider other types of components too, as there is no test case for overriding the descriptions of request bodies or responses? @mrin9
That was the requirement I added here.


Fixes #23 #18 #17

I edited the register() function in pop.js file to show a warning message in footer div on not selecting
any checkboxes and for empty queries. I even added some styling to footer div. I edited the CONTRIBUTION.MD file as required.

@battulasaivinesh I have cherrypicked your CONTRIBUTING.md commit will check your other one out and merge it later. Thankyou for the work. I will try updating with new issues hope you stay around. Meanwhile you can also create new issues if you feel like, they can be related to any feature, bug, discussion you want for the project.

@battulasaivinesh We have many merge conflicts.
Your 1 of the 2 commits has already been added to master as https://github.com/NIT-dgp/chrome-search-extension/commit/df783b6fb8c1191c014083750562f4983ebb9111 .
Please can you send in the PR just for #18 and #17.
By the way checked out your PR great work. Thanks for the PR :smile:


Parent element style leaks into ix-tooltip

Prerequisites

[X] I have not leaked any internal company information.
[ ] I have not posted internal links or code snippets.

What happened?
CSS style set on parent element leaks into ix-tooltip

What type of frontend frameware are you seeing the problem on?
Angular
Which version of iX do you use?
2.0.3
Code to produce this issue.

  <ix-tooltip for="[id=1]">Example</ix-tooltip> <-- gets red background color

I think this is an expected behavior if you want to manage background you can have a look
https://stackblitz.com/~/edit/xnfrdi-qu2sx2

I think you copied a wrong stackblitz link, this one doesn't have any ix-tooltip. Anyway, I thought that outer css should not leak into ix component's shadow root. It's a bit strange to me that when I use the ix-tooltip in a html table, the table's style applies to the ix tooltip and I have to "reset" the tooltip style to the original.

or maybe the  .table>:not(caption)>*>* selector is the problem

Could you give a little more information, I have tried to recreate it:
https://stackblitz.com/edit/p7ij6z?file=src%2Fapp%2Ftooltip.html,src%2Fstyles.css

The documentation suggests that I should use "table" class in a table: https://ix.siemens.io/docs/controls/html-grid
If you add the "table" class to the table in the example you can see that the tooltip inside the table is losing it because this selector: .table > :not(caption) > * > * applies to the tooltip as well.

Thank you very much, we will discuss this issue
Internal ref [IX-901]


Add note to Installation section about rust-analyzer

PULL REQUEST
Overview
See https://github.com/brotzeit/rustic/issues/403.

I wasn't sure where exactly to put the note, so I'm open to feedback. Since #403 got a couple of thumbs up, I figured it was a common enough problem to put it up front.

:+1:


Namespaced checks output

Working on #125, I'd like to be able to easily list all of the NixOS test checks, because I'd like to build them one by one to see whether each trigger that warning. They are distinguishable in the output of nix flake show:
│       ├───kbin-frontend: derivation 'kbin-frontend-0.0.1'
│       ├───kbin-toplevel: derivation 'nixos-system-nixos-24.05.20231218.886c9ae'

but I'd prefer namespacing, like this, from https://github.com/molybdenumsoftware/pr-tracker/:
github:molybdenumsoftware/pr-tracker/d7269959cc6b3f1309c9cf159ad3b89d770d0082
├───checks
│   ├───aarch64-darwin
│   │   ├───clippy omitted (use '--all-systems' to show)
│   │   ├───formatting omitted (use '--all-systems' to show)
│   │   ├───"nixosTests/api" omitted (use '--all-systems' to show)
│   │   ├───"packages/api" omitted (use '--all-systems' to show)
│   │   └───"packages/fetcher" omitted (use '--all-systems' to show)

That way they are grouped, and I can trivially see the list of them. I know I'm being picky here, and I can grep my way into a list, but this seems more orderly and and will prevent name conflicts.

Sorry, the NixOS tests are not in checks. See #157. Regardless, namespacing would still be nice.


Add a test for recursive aggregation

This PR implements the "manual" testing notebook developed by @tburandt as a proper test in the aggregation test suite.

note that all unit tests fail because the IIASA infrastructure is down today. We apologize for the inconvenience!


[5.7] Reject .NET subtraction and quote range operands

5.7 cherry-pick of https://github.com/apple/swift-experimental-string-processing/pull/517
Tighten up validation of character class range operands such that we reject quotes and custom character classes. This includes rejecting syntax that would be a subtraction in .NET. We throw a custom error that suggests using -- instead.

@swift-ci please test


Optimize the object copy function for the game drawings and use sprites for box shapes instead of graphics objects

This should increase performance for all drawings, but most notably the box shapes. Using this code as example:
const shapesProp = [];
game.events.addEventListener('roundStart', {perPlayer: false}, function() {
  let shapes = [];

  let sc = game.graphics.getScreenSize();

  for (let i = 0; i < 5000; ++i) {
    let size = Math.random() * 2
    shapes[i] = {
      type: 'bx',
      colour: Math.random() * 0xFFFFFF,
      alpha: 1,
      pos: [Math.random() * sc[0], Math.random() * sc[1]],
      size: [size, size],
      angle: Math.random() * 90,
    }

    shapesProp[i] = {
      speed: Math.random() * 0.5,
      dir: [Math.random()*2-1, Math.random()*2-1]
    }
  }

  game.graphics.createDrawing({
    alpha: 1,
    pos: [0, 0],
    angle: 0,
    scale: [1, 1],
    attachTo: 'world',
    isBehind: false,
    shapes: shapes,
  });
})

game.events.addEventListener('step', {perPlayer: false}, function() {
  let sc = game.graphics.getScreenSize();
  game.graphics.drawings[0].shapes.forEach((s, i) => {
    let prop = shapesProp[i];
    s.pos[0] += (prop.speed * prop.dir[0]); s.pos[0] %= sc[0];
    s.pos[1] += (prop.speed * prop.dir[1]); s.pos[1] %= sc[1];
    s.angle += prop.speed; s.angle %= 360;
    s.noLerp = true;
  });
})

I normally get 10-15 fps, but with the new code i get 45-50 fps

this is awesome, i'd never thought of using sprites for this, thank you!
i'll also adapt this to lines as well in the next commit after this one

apparently i have to have it opened to merge whoops