Wrong transition animation in iOS

In example, i just change /details transition
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:get_state/home/views/country_view.dart';
import 'home/views/details_view.dart';
import 'home/views/home_view.dart';

void main() {
  runApp(GetMaterialApp(
    debugShowCheckedModeBanner: false,
    initialRoute: '/',
    namedRoutes: {
      '/': GetRoute(page: HomePage()),
      '/country': GetRoute(page: CountryPage()),
      '/details': GetRoute(
        page: DetailsPage(),
        transition: Transition.scale, // changed
      ),
    },
  ));
}

Demo

In iOS,  /country to /details  screen will move from left to right.
Flutter 1.17.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision f7a6a7906b (29 hours ago) • 2020-05-12 18:39:00 -0700
Engine • revision 6bc433c6b6
Tools • Dart 2.8.2

Watching the video I could see that the transition works correctly. The scale animation is being displayed (moving from the upper right to the left). If you want to hide the animation of the bottom page being slid, you can use: opaque = true.

i tried add  opaque = true, but still have black bar when /country to /details screen will move from left to right.

Did you remove the Scaffold transparency? Why it is necessary to remove:
// backgroundColor: Colors.transparent
If you don't want to see a black background.

no, I do not have remove the Scaffold transparency.
I just  change /details transition in your example.
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:get_state/home/views/country_view.dart';
import 'home/views/details_view.dart';
import 'home/views/home_view.dart';

void main() {
  runApp(GetMaterialApp(
    debugShowCheckedModeBanner: false,
    initialRoute: '/',
    namedRoutes: {
      '/': GetRoute(page: HomePage()),
      '/country': GetRoute(page: CountryPage()),
      '/details': GetRoute(
        page: DetailsPage(),
        transition: Transition.scale, // changed
      ),
    },
  ));
}

This situation will only happen on iOS, android everything is normal

android everything is normal

Try this:
'/country': GetRoute(page: CountryPage(),  transition: Transition.fade),
'/details': GetRoute(
page: DetailsPage(),
transition: Transition.scale,
I think this is peculiar to the Cupertino route,
The cupertino transition (default) cannot be changed, it has many peculiarities, so we simply use the native Flutter transition. On iOS, if no transition is defined, the default transition will be displayed (cupertino). We have no control over cupertino animations, and by its description, there is a 99.9999% chance of being an issue with the native iOS transition. If you set a transition to fade, it will change the default transition, and probably solve the problem.

Thanks for your quick help!


Discord server link in README.md is expired

Current link in README.md https://github.com/explodinggradients/ragas/blob/main/README.md points to https://discord.gg/5djav8GGNZ, which returns an invalid invite.
Hopefully you can refresh the invite link :). If you don't want people to join, probably should remove the link

Hi @nelsonauner, Sorry for the inconvenience. I can see that the link was working until yesterday midnight, it might have expired after that. Here's the new link if you want to join now https://discord.gg/Je4W4rePCx

Works, great, thanks!


Community build of 2.12.x failing

See https://gitter.im/scala-js/scala-js?at=561294d5ff22c70f6fac2111

@lrytz said:

hi guys, running the community build on 2.12, we recently started seeing test failures. just reaching out to ask if it rings a bell. we're currently building 0.6.4 in scala-js (not tracking master), so it's probably a recent change in scala/2.12.x (or 2.11.x, which gets merged into 2.12) that introduced the failure. here's the relevant log: https://gist.github.com/lrytz/d5664bc623871298e1c7. the full thing is here: https://scala-ci.typesafe.com/view/scala-2.12.x/job/scala-2.12.x-integrate-community-build/160/consoleFull.
BTW, we have a build of the current 2.12.x on sonatype under the version "2.12.0-M3", add this resolver: https://oss.sonatype.org/content/repositories/orgscala-lang-1272 (this is possibly not the real M3, we'll rebuild it if required)

It turns out that this is cause by a change in the shape of spurious Predef.classOf[T] trees that reach the jsinterop. The change is caused by this PR in scala/scala: https://github.com/scala/scala/pull/4749
Previously they appeared as scala.this.Predef.classOf[T]. Now they appear as scala.Predef.classOf[T].


How to add easy medium hard level on pressing new game

can someone tell me where is the already field cell no is in this
Beacuse I want to add levels in this

the builtin sudoku generator doesn't support custom difficulty levels, so you need to find another generator is you need different levels

but how can I increase the no. of pre-filled cells in it?
I want more cells to be filled automaticaly


seed_smartactuator_sdk: 0.0.3-1 in 'kinetic/distribution.yaml' [bloom]

Increasing version of package(s) in repository seed_smartactuator_sdk to 0.0.3-1:

upstream repository: https://github.com/seed-solutions/seed_smartactuator_sdk.git
release repository: https://github.com/seed-solutions/seed_smartactuator_sdk-release.git
distro file: kinetic/distribution.yaml
bloom version: 0.8.0
previous version for package: null

Holding for kinetic sync


Another one Uncaught Reference: wavesurfer is not defined

Hey, I would like to add wavesurfer on a laravel / vuejs project that I make, but after adding the unpkg script and create the wavesurfer instance I get Uncaught Reference, that wavesurfer is not defined.
I use
let waveScript = document.createElement('script');
waveScript.setAttribute('src', 'https://unpkg.com/wavesurfer.js');
document.head.appendChild(waveScript);

to add the script to the head and then once the vue is loaded (either on setup() or mounted()) I call:
const wavesurfer = WaveSurfer.create({
    container: '#waveform',
    waveColor: 'violet',
    progressColor: 'purple',
    scrollParent: true
 });

wavesurfer.load('../storage/preprocessed-audio/innews1.wav');

But when I put also the wavesurfer instance to the script (with innerHTML) the error is gone, but there is no waveform on the page.
on the body there is
How I could overcome this issue?

I have used
npm install wavesurfer.js
and then add below on vuejs.
import * as WaveSurfer from 'wavesurfer.js';
and it works.

Remember to also put the package version number in your unpkg url, that way your code won't break if there is an update, for example<EMAIL_ADDRESS>


httpd restart in cron

In the file /scripts/cron.php on line 104 the cron will restart httpd gracefully. I am not sure but doesn't the rewrite on line 103 restarts httpd already?

Hmm, I wasn't sure about this too.

I will test it today.

The webserver(s) will be restarted when the files are rewrited. A second restart is not necessary so I removed it.


Jupyter Notebook: Markdown cell not saved on when cursor escapes cell

Bug: Markdown cell not saved on when cursor escapes cell
Steps to cause the bug to occur:

Type something in markdown cell
Press Down key to move cursor to the next cell
Markdown cell looses content that were just typed in

Expected behaviour: Cell content is saved (as it works when changing focus to another cell by click)

Python environment

Jupyter server running:              Local
Extension version:                   2019.10.44104
VS Code version:                     1.39.2
Python and/or Anaconda version:      3.6.8
OS:                                  Linux (distro): Ubuntu 18.04.3

Thanks for letting us know. We'll look into it.

This is arrowUp, arrowDown not updating internal cell state.

Validated


Reshape/View as a module?

I was wondering if there is module which performs reshape/view so that it can be added to nn.Sequential just as other modules like Conv2d or Linear. The reason I want this feature rather than simply performing torch.reshape or tensor.view is that I can make the reshape/view a configurable plugin (especially when combined with global pooling which can be switched on and off) in my model.

You can easily define your own module:
class View(nn.Module):
    def __init__(self, shape):
        self.shape = shape

    def forward(self, x):
        return x.view(*self.shape)

Just plug that into sequential now.

I implemented this, and it works fine when I add it to my nn.sequential. Unfortunately, when it comes starting the training it gives me the following error:  'View' object has no attribute '_modules' . It seems like something with the inheritance goes wrong?

@ruppphil try calling the super constructor:
class View(nn.Module):
    def __init__(self, shape):
		super(View, self).__init__()
        self.shape = shape

    def forward(self, x):
        return x.view(*self.shape)

Exactly what @TheCodez mentioned!

okay thank you both!
So I have a 3040 layer and I would like to convert it to a 12001 layer, convolve it with a 12001 vector, and resize it back to 3040.
The super constructor helped me get rid of Attribute error, but I have no problems with the sizes it self.
Why is the given argument x different in every training epoch?

I believe we won't be adding support in nn for View, see pytorch/pytorch#2486
But it's fairly straightforward to create your own module for it.

It is fairly straightforward to add the simple module (many people do), I have this and plug it before FC layer.
class FCView(nn.Module):
    def __init__(self):
        super(FCView, self).__init__()

    # noinspection PyMethodMayBeStatic
    def forward(self, x):
        n_b = x.data.size(0)
        x = x.view(n_b, -1)
        return x

    def __repr__(self):
        return 'view(nB, -1)'

but unless it is part of the official PyTorch many people will not use it.
As also requested here
Looking at the torchvision.models.resnet34 this is forward:
class ResNet(nn.Module):

    def forward(self, x):
        x = self.conv1(x)
        x = self.bn1(x)
        x = self.relu(x)
        x = self.maxpool(x)

        x = self.layer1(x)
        x = self.layer2(x)
        x = self.layer3(x)
        x = self.layer4(x)

        x = self.avgpool(x)
        x = x.reshape(x.size(0), -1)
        x = self.fc(x)

        return x

This means resnet34 could have been
class ResNet(nn.Sequential):

No need to implement forward at all.  If it was not for the reshape. Then manipulating it would have been more straightforward and we would not need to treat it differently. resnet34 is just an example, but in general it would be nice to also have a simple reshape nn.module and use it instead of re-implemeting forward.

We have since then added a nn.Flatten module, which does the job of nn.Reshape for the particular case of converting from a convolution to a fc layer.

No need to implement forward at all. If it was not for the reshape. Then manipulating it would have been more straightforward and we would not need to treat it differently. resnet34 is just an example, but in general it would be nice to also have a simple reshape nn.module and use it instead of re-implemeting forward.

there are cases where having the explicit forward written is better. For example, what if you want to return intermediate features as well?

@dashesy I'm not sure we want to modify the implementations to all leverage nn.Flatten and make everything a single nn.Sequential.
From my view, as soon as we want to do something slightly less custom having the model being a nn.Sequential will just be an annoyance, and we start by removing the nn.Sequential so that we have full control of what the model executes.
Having a nn.Sequential model has its conveniences, e.g., it makes it easier to break the model in the middle. But it also moves away from the programming style that we have encourage since the beginning in PyTorch, which is that the model is code, and is entirely defined by your forward pass, giving you full capability of modifying the model as you wish.
If all the reference implementations leverage nn.Sequential, it might give the impression to new users that that's the only way they can implement models.
I'm adding more people to the discussion, as I think this deserves some more discussion. @soumith @cpuhrsch @zhangguanheng66 @vincentqb thoughts?

did this nn.View() ever get implemented upstream?

You can easily define your own module:
class View(nn.Module):
    def __init__(self, shape):
        self.shape = shape

    def forward(self, x):
        return x.view(*self.shape)

Just plug that into sequential now.

@varunagrawal  I made a slight variation by adding a comma so it can cope with both tuples and simple integers as shapes. Seems to work in my limited testing  - feedback welcome.
class View(nn.Module):
    def __init__(self, shape):
        super().__init__()
        self.shape = shape,  # extra comma
        print(self.shape)

    def forward(self, x):
        return x.view(*self.shape)

You can easily define your own module:
class View(nn.Module):
    def __init__(self, shape):
        self.shape = shape

    def forward(self, x):
        return x.view(*self.shape)

Just plug that into sequential now.

@varunagrawal I made a slight variation by adding a comma so it can cope with both tuples and simple integers as shapes. Seems to work in my limited testing - feedback welcome.
class View(nn.Module):
    def __init__(self, shape):
        super().__init__()
        self.shape = shape,  # extra comma

    def forward(self, x):
        return x.view(*self.shape)

I implemented View() as shown above, but instead of the requested data being reshaped, I see that View() was returned. Am I doing something different?

@ncuxomun I think you forgot to add the super().__init__() in the __init__() method.

I know this issue is closed, but I'd like to share my hack still:
class Reshape(nn.Module):
    def __init__(self, expr: str, mode="reshape"):
        super().__init__()
        assert mode in ["reshape", "view"]
        self.mode = mode
        self.arg_expr, self.ret_expr = expr.replace(" ", "").replace(",", ", ").split("->")
        exec(f"self.get_new_shape = lambda {self.arg_expr}: ({self.ret_expr})")

    def extra_repr(self):
        args = [
            f"[{self.arg_expr}] -> [{self.ret_expr}]".upper(),
            f"mode={self.mode}",
        ]
        return ", ".join(args)

    def forward(self, x):
        shape = self.get_new_shape(*x.shape)
        return getattr(x, self.mode)(*shape)

class Permute(nn.Module):
    def __init__(self, expr: str):
        super().__init__()

        expr = expr.replace(" ", "").replace(",", ", ")
        src_expr, dst_expr = expr.split("->")
        src = src_expr.split(", ")
        dst = dst_expr.split(", ")
        assert len(src) == len(dst)
        self.order = tuple([src.index(d) for d in dst])
        self.src_expr = src_expr
        self.dst_expr = dst_expr

    def extra_repr(self):
        return f"[{self.src_expr}] -> [{self.dst_expr}]".upper()

    def forward(self, x):
        return x.permute(self.order)

See it in action:
image = torch.rand(10, 3, 32, 128)
to_seq = nn.Sequential(
    Reshape("n,c,h,w -> n, c * h, w", mode="view"),
    Permute("n, c * h, w -> n, w, c * h")
)
print(to_seq) # pretty print
seq = to_seq(image)
print(seq.shape)

Sequential(
  (0): Reshape([N, C, H, W] -> [N, C*H, W], mode=view)
  (1): Permute([N, C*H, W] -> [N, W, C*H])
)
torch.Size([10, 128, 96])

Also, these layers seem exportable to ONNX files:
# works fine
torch.onnx.export(to_seq, image, '/tmp/test.onnx',
                  do_constant_folding=True,
                  opset_version=12,
                  input_names=["images"],
                  output_names=["seq"])


fix: prevent duplicate id parameters in addToWhitelist [sup 9346]

could check the superformId isn't already present to prevent adding duplicates
(in that case whitelistedSuperformIdArray[] will have the same entry twice which might give some weird results later on)

closing because this issue is now resolved in https://github.com/superform-xyz/SuperVaults/pull/32


Feat/native mesh decimation

This is a pure scala implementation of a mesh decimation algorithm based on the Fast Quadric Mesh Simplication algorithm: https://github.com/sp4cerat/Fast-Quadric-Mesh-Simplification/tree/master
This is the first part of removing the VTK dependency in Scalismo, https://github.com/unibas-gravis/scalismo/issues/415

The current version is a direct conversion of the original c++ version to a scala version, so a lot of code structure still needs to be properly updated.
For now the algorithm works, so I would love some feedback on having this algorithm in comparison to the quadratic edge collapse, which might look more appealing.
On a side note, this algorithm is with the current implementation already ~2 times faster (on the face mesh) than the VTK decimation we currently use.
One minor bug is that some triangle norms are inverted.

I am fine with the replacement, if the normal inversion can be fixed. The old decimate could be offered as alternative in scalismo-vtk later on.

@Andreas-Forster is working on restructuring the code, I'll merge it in when we have a cleaner version.


Question regarding 10x UMIs

I've been trying to access the UMI matrix for the 'sce_sc_10x_qc' dataset. However, the documentation seems to only show how to retrieve a count matrix, one that is clearly not de-duplicated given the extremely high number of reads for each cell.
Is the UMI matrix for the 10x data supplied anywhere within the package? And if not, where are the fastqs and/or BAM files we'd need in order to generate a de-duplicated UMI matrix?

Sorry for confusion. We only provide UMI count matrix. The cell line we used is transcriptional active so there are a lot of mRNA in each cells. I will update the documents.


WIP: Add python code to coveralls

Coverage increased (+6.7%) to 48.646% when pulling fc07263bae37cc7255224d3abbd0744e3a2f038d on jdgarrett:python-coveralls into 2fa431e83842b1f581b1370d31b63b233aad8196 on locationtech:master.

Closing to consolidate #1601, #1602, and #1603 into a single PR.


Model runner enhancement

#21

@mul14, can you rebase to the main branch? If this fulfills everything in #21, let's merge it.

[ ] Relation test
[ ] Docs


After edit lithlogy, view scrolls at bottom of profile

Steps to reproduce

Create more lithologies and correspoing lithology descriptions than fits your screen
Do corrections on one of the lithology entries

Expected behavior
When you close the lithology entry, the view stays at this place.
Current behavior
The view scrolls down to the last entrie
I assume this is partly due to a request, if you generate a new lithlogy entrie, that it jumps to the place where this is added, however, if you modify a lithology, this should not be the case

geht einwandfrei! Danke!


Rename threads to indicate that they are for the driver. (JAVA-583)

Since we are upgrading to Netty 4.x, the threads used and how they are named is changing.  I thought that would be a good opportunity to implement JAVA-583 to make it more evident that the threads created are coming from the Java Driver and what cluster instance they are tied to.
The following changes the following thread names:

Cluster.Manager.reconnectionExecutor: Reconnection-%d -> cluster1-reconnection-%d
Cluster.Manager.scheduledTasksExecutor: Scheduled Tasks-%d -> cluster1-scheduled-task-worker-%d
Cluster.Manager.executor: Cassandra Java Driver worker-%d -> cluster1-worker-%d
Cluster.Manager.blockingExecutor: Cassandra Java Driver blocking tasks worker-%d -> cluster1-blocking-task-worker-%d
Cluster.ConnectionReaper.executor: Reaper-%d -> cluster1-reaper-%d
Connection.Factory.timer:  Hashed Wheel Timer #%d ->  cluster1-timeouter-%d
New I/O Worker #%d, New I/O Boss #%d -> cluster1-nio-worker-%d

Where 'cluster-1' can be substituted for the Cluster name of the given Cluster instance.
Opening as a Pull request against java622, if everything looks good I can cherry-pick the commit over to that branch.  We'll also want to rename some of the metrics created in JAVA-626

LGTM.
Go ahead and cherry-pick on 622.

Thanks!  I'll resolve the conflicts locally and cherry-pick.

cherry-picked 8ea292d into java622, closing pr.


Implement Write generic for DataWriter

It's a very common pattern to write constant ushort and bytes in files. To do so, right now we need to do boxing (there aren't literal suffixes for these types):
writer.Write(0xBEEF);  // write int
writer.Write(0xBEEFu);  // write uint
writer.Write((short)0xBEEF);
writer.Write((ushort)0xBEEF);
writer.Write((byte)0xBE);

Boxing should be avoid if possible and we introduce a more error-prone and longer type. I propose to add these methods with generics:
writer.Write<int>(0xBEEF);
writer.Write<uint>(0xBEEF);
writer.Write<ushort>(0xBEEF);
writer.Write<byte>(0xBE);

The method name can't be just Write<T> since this overload will be the preferred in some non-generic cases like Write('a') calls Write<char>('a'). Since this method is slower we shouldn't pass through here all the time. I'll use WriteOfType<T>(T value)


Unity BluetoothBLE: Operation is not supported on this platform

Unity Version: 2022.3.19f1
Package: InTheHand.BluetoothLE 4.0.36
Platform: Windows 11
I'm currently having trouble using the BLuetoothLE package with my Unity project. When I run my code I get an error when trying to scan for BLE devices using Bluetooth.ScanForDevicesAsync(), "Operation is not supported on this platform". Here is the code block
#if UNITY_STANDALONE_WIN
using InTheHand.Bluetooth;
using System.Linq;
#endif

    private async void StartScanningForDevicesWindows()
    {
#if UNITY_STANDALONE_WIN
        var devices = await Bluetooth.ScanForDevicesAsync();
        // Rest of code

I've tried installing the package a couple of different ways:

Installing using Nuget for Unity according to Unity example while ensuring that the API Compatibility Level in Unity was .NET Framework (uses 4.x) and not .NET Standard 2.1
Downloading the github repo from the main branch and building the dlls using Visual Studio. I first tried the bin / .NET Standard 2.0 InTheHand.BluetoothLE.dll, but that didn't work either. I read this [issue ](https://github.com/inthehand/32feet/issues/214#issuecomment-1241826141) and realized the .net standard one wouldn't work so -
I then tried using the bin / .net462 InTheHand.BluetoothLE.dll, however, this still yielded the same "Platform Not Supported" Error.

For what it's worth, my platform (Windows 11) does support Bluetooth and Bluetooth is enabled in both Unity and Windows.
How can I fix this issue?

If you check the file properties for the dll in your output folder you can see which version has been used in the project e.g. "InTheHand.BluetoothLE-net462". Because the library uses WinRT apis it references the package Microsoft.Windows.SDK.Contracts but I'm assuming that NuGet for Unity should pull this in automatically.

Thank you, @peterfoot


Discord Invite Expired

Hi! I was trying to join the discord using the link(s) in the README, but it appears that they are expired. Can you please update them? Thanks!

It seems to be expired for me as well.


Clarified some of the getter-setter instructions.

Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] All the files I changed are in the same world language, for example: only English changes, or only Chinese changes, etc.

Closes #37612

I changed around some of the variable names to remove the 'jokiness' aspect.
There were some comments in regards to how 'tracking' had a sense of poor understanding. I did not touch this, because I wasn't sure how to best reword what we were aiming at.
There were also mentions of changing the solutions around, but nothing decisive, so I left it as is.

@Pallof Can you provide an update on your implementation of the requested changes?

I have proposed a different solution over on the issue page that led to this PR. I have not yet made a PR, but I'm willing to try if the community agrees.

Thanks for the PR @Pallof 🎉 I believe that edits from maintainers are being blocked on this. So, in the interest of saving time, I have made a new PR for this. Thanks and happy coding 🎉


Magic Search Input should support elements with .text() to allow

contenteditable forms of input.

Looks good to me.  Your thoughts, @dkavanagh?

I'll add my input here. I have concerns about the ability to add DOM via the  element. A user can paste DOM directly into the input box and it gets rendered. I think we'd have to do something to limit what the user can input, or escape entities at the very least.


Update helm and terraform

Update helm to 2.0.1
Update Terraform to 0.7.13
I can re-file this under k2-tools if that's preferable

@maratoid done https://github.com/samsung-cnct/k2-tools/issues/14


Generate a password

Generate a password
User Story
AS AN employee with access to sensitive data
I WANT to randomly generate a password that meets certain criteria
SO THAT I can create a strong password that provides greater security
Acceptance Criteria
GIVEN I need a new, secure password
WHEN I click the button to generate a password
THEN I am presented with a series of prompts for password criteria

Prompt are presented after clicking the generate a password button.


Revert "Start generating sprite sheets at boot"

Reverts GoogleChromeLabs/graviton#80

Fixed manually in 9387b96


软硬件参数适配

张老师，您好！首先非常感谢您的开源，我最近阅读了您的Fracbnn论文，将网络进行训练并部署在了HLS上，但我目前还有以下一些问题，希望能得到您的解答：
（1）首先我使用了您提供的硬件参数将网络部署到HLS上，并达到了不错的准确率（95.1%）。接着我在软件上重新训练了一遍网络，参数均采用默认，epoch=260，得到了新的网络参数，试图将其部署在HLS上。目前将卷积权重按照输入通道的不同拼接在一起，末位补0，形成uint64的形式，将权重参数与其余参数装载到HLS上，发现网络对于所有输入图片的十分类结果都一样，结果为-20.5625 -6.83594 -7.55469 -5.4375 -15.1016 3.5625 -25.4453 -9.15625 -23.2344 -18.3984 ，我想知道其中的问题出在了哪里，是否是需要将软件训练的超参数进行一定的修改才能将其部署在HLS上。我在之后的实验发现，仅将layer3_2中的所有bn参数和全连接层参数替换为新训练参数，其余均使用预先给好的参数，就会出现以上问题。
（2）最后想了解在参与硬件测试的input.bin和label.bin文件的输入形式是怎样的，不知道您是否方便提供。
期待您的答复

Hi,
Thanks for reading our FracBNN paper and trying out the FPGA deployment! For the interest of a potentially broader audience, I will respond in English.
There are some missing details for me to fully answer the questions, but I'll give my best attempt as follows:

Why am I getting the same classification results for all input images?

The first thing to check is probably the mean square error between the HLS C and PyTorch model outputs. Maybe input images are indeed from the same class. If the error is large, then there might be something wrong with the weight packing after model retraining.

Is it required to modify training hyperparameters in order to deploy the model on FPGA?

No. Training hyperparameters will only affect model accuracy and is independent of FPGA deployment. Whatever accuracy you get from PyTorch training, you should be able to replicate it on FPGA, assuming weight loading etc. is correct.

Replacing BN and FC layer weights in layer3_2 with in-house fresh-trained weights will have the issue in the 1st question.

Not sure if I follow. Does the "same" issue means the output logits are exactly the same in both cases, or the classification results are the same? If latter, please refer to my answer to the first question.

What is the format of input.bin and label.bin?

Label.bin is the output label. Since it is a single digit that is only for evaluating the model, you could use whatever format that you are comfortable with.
Input.bin contains the channel packed input images. In FracBNN we binarized input RGB images using the thermometer encoding. As a result each input image to the FPGA accelerator has 96 channels, each with 1-bit pixels. We pack those channels into int64 as well. You could refer to the paper how thermometer encoding works, or call this function with resolution set to 8 to view the output shape.

感谢您的回复！
是的，硬件网络对于不同的输入图片（类别不相同），输出的十分类结果的数值是完全一样的，为了保证测试的环节没有其他因素的影响，我使用了您给出的testbench文件（本身没有任何问题，使用原参数能够正确分类），并依然使用您给出的权重（使用uint64包装好的，没有进行修改），仅将将 layer3_2 中的 BN 和 FC 层权重替换为内部新训练的权重，问题就出现了，且与参数全部替换的十分类结果相同，此结果似乎表明网络新更换的BN与FC层对于输入数据完全没有分类能力，并将计算结果转变为同一数值。
于是问题似乎指向了软件端，但是我并没有对软件端代码进行修改（仅改变了超参数），导出的浮点参数统一保留了8位有效数字。这个结果令我感到困惑，不知道问题还会出在哪里。
下图给出了testbench的部分输出结果，希望能得到您的指点。

期待您的回复

In your screenshot, I guess "software" means the C testbench. Software outputs looks good.
I'd guess hardware weight packing has an issue when you plug in your own weights?

在您的屏幕截图中，我猜“软件”是指 C 测试平台。软件输出看起来不错。我猜硬件重量包装在插入自己的重量时有问题吗？

感谢您的回复，是的，经过检验，在BN参数打包过程中出现了问题，在修改过后，问题得到解决。
同时，我想在这提出一个新的问题，希望能得到您的解答：首先，我在软件端训练得到了不错的准确率参数模型，但是参数在导入硬件后发生了10%左右的精度损失（参数打包以及导入方式已经被验证正确），这一问题可能出在哪里，是否与软件的训练方式有关。
期待您的回复！

Thank you for your reply. Yes, after inspection, there was a problem in the BN parameter packaging process. After modification, the problem was solved.
At the same time, I would like to raise a new question here, hoping to get your answer: First of all, I trained a parameter model with good accuracy on the software side, but the parameters suffered an accuracy loss of about 10% after they were imported into the hardware ( The parameter packaging and import methods have been verified to be correct), where may this problem occur, and whether it is related to the training method of the software.
Looking forward to your reply


Can't use RunKubectlAndGetOutputE to CURL a Pod with a JSON Body

Describe the bug
I want to run HTTP Requests inside a KIND cluster using Terratest without creating a Port-Forward first. With a simple GET request this works easily using something like
	frontendResponse, err := k8s.RunKubectlAndGetOutputE(
		t,
		kubectlOptionsArgocd, "run", "curl-frontend", "--image", "alpine/curl", "--rm", "-it", "--restart=Never", "--",
		"curl", "-iLk", SomeFrontendUrl)
	if err != nil {
		t.Fatal(err)
	}

However when doing a POST Request with some JSON data this fails, although the request works when I do this manually in kubectl.
To Reproduce
I am using ArgoCD here, but I guess this should be the same for all services that unmarshal some JSON they receive from curl. I reckon this has to do with the way the JSON string is passed through Go until it reaches kubectl...
While this works
k run curl-argocd-session-token --image alpine/curl --rm -it --restart=Never -- curl -X POST -H "Content-Type: application/json", -iLk argocd-server.argocd.svc.cluster.local:443/api/v1/session -d "{\"username\":\"test-user\",\"password\":\"somePassword\"}"

This doesn't
	argoSessionToken, err := k8s.RunKubectlAndGetOutputE(
		t,
		kubectlOptionsArgocd,
		"run", "curl-argocd-session-token", "--image", "alpine/curl", "--rm", "-it", "--restart=Never", "--",
		"curl", "-X", "POST", "-H", "Content-Type: application/json", "-iLk", ArgoCdApiSessionUrl, "-d", argoCurlRequestData)
	if err != nil {
		t.Fatal(err)
	}

The following happens depending on what I format in Go
1. Input
	argoCurlRequestData := fmt.Sprintf(`{\"username\":\"test-user\",\"password\":\"%s\"}`, argoCdPassword)

Output:
{\"username\":\"test-user\",\"password\":\"somePassword\"}
Terratest Output in Console:
Running command kubectl with args [--namespace argocd run curl-argocd-session-token --image alpine/curl --rm -it --restart=Never -- curl -X POST -H Content-Type: application/json -iLk argocd-server.argocd.svc.cluster.local:443/api/v1/session -d {\"username\":\"test-user\",\"password\":\"somePassword\"}]
Error Message:
{"error":"invalid character '\\\\' looking for beginning of object key string","code":3,"message":"invalid character '\\\\' looking for beginning of object key string"}
2. Input
	argoCurlRequestData := fmt.Sprintf(`"{\"username\":\"test-user\",\"password\":\"%s\"}"`, argoCdPassword)

Output:
"{\"username\":\"test-user\",\"password\":\"somePassword\"}"
Terratest Output in Console:
Running command kubectl with args [--namespace argocd run curl-argocd-session-token --image alpine/curl --rm -it --restart=Never -- curl -X POST -H Content-Type: application/json -iLk argocd-server.argocd.svc.cluster.local:443/api/v1/session -d "{\"username\":\"test-user\",\"password\":\"somePassword\"}"]
Error Message:
{"error":"json: cannot unmarshal string into Go value of type session.SessionCreateRequest","code":3,"message":"json: cannot unmarshal string into Go value of type session.SessionCreateRequest"}
Expected behavior
The POST Request using a Curl POD works the same as if I would execute the command from a local shell using Kubectl
Versions

Terratest version: v0.43.13
Environment details (Ubuntu 20.04, Windows 10, etc.): OS X newest version

Additional context
I also tried other ways to format the String, e.g. by using backticks or even more obscure ways. No luck. I only see the option to create a Port-Forwarding or start the tests in a Docker Container inside the K8s Cluster

Also tried this with an override:
frontendResponse, err := k8s.RunKubectlAndGetOutputE(t, kubectlOptionsMongoDb, "run", "curl", "--image", "curlimages/curl", "--rm", "-it", "--restart=Never", 		"--overrides", '{"apiVersion": "v1", "metadata": {"annotations": { "sidecar.istio.io/inject":"false" } } }', 		"--", "curl", "argo-argo-workflows-server.argowf.svc.cluster.local:2746")
Tried all kinds of formatting styles apart from the above one, always getting a error: Invalid JSON Patch


Cannot delete tests older than 21 days - DE: Tests die älter als 21 Tage sind, können nicht gelöscht werden (EXPOSUREAPP-2398)

Description
The original pr #1481 did not fix the actual issue people were having in production.
This PR implements a refactoring of the whole state handling process for test result fetching and should hopefully get rid of the actual underlying issue.
Please make sure to test the risk status fetching behaviour thouroughly, especially on the homescreen. Using the cwa server emulator should help in the process. Also check behaviour with varying network connectivity states
Steps to reproduce
With Emulator:

Setup CWA Server emulation
Try to scan a qr code
Try refetching the testresult in many places and with different results (note that all test results other than pending require a relaunch of the app to be refetched)

To test the specific 21 days failure case you need to do the following:

Setup CWA Server emulation
Scan a qr code
set status as pending in server emulator
return to homescreen
set status as 400 error in server emulator
check if fetching or error card appears on homescreen

Without emulator

Get QR codes for your testing environment from Sharepoint
Scan the qr codes and test if test behaviour is consistent

Tested it together with https://github.com/corona-warn-app/cwa-app-android/pull/1600 . Works as expected, will review the coding.

code lgtm. running device tests with different fetches.. will come back later


Kepler Deployed Example

Also need to change in main package.json. Not allowed to do so due to gitignore
"resolutions": {
...
<EMAIL_ADDRESS>"^8.2.0",
}
TODO
Fix gatsby config. Website showing up on main page for whatever reason

Pull Request Test Coverage Report for Build 473505757

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 457233530:
0.0%

Covered Lines:
2

Relevant Lines:
2

💛  - Coveralls

Pull Request Test Coverage Report for Build 473505757

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 457233530:
0.0%

Covered Lines:
2

Relevant Lines:
2

💛  - Coveralls


Unrecognized configuration key warning

Hello! I added the pom dependency to my project
<dependency>
   <groupId>io.quarkiverse.asyncapi</groupId>
   <artifactId>quarkus-asyncapi</artifactId>
   <version>0.2.2</version>
</dependency>

And these two lines in my application.properties
quarkus.asyncapi.annotation.scanner.server.oci.url=${kafka.bootstrap.servers}
quarkus.asyncapi.annotation.scanner.server.oci.protocol=kafka

I have one method with @Incoming annotation
And I'm getting this warning messages when the application starts
[io.qu.config] (Quarkus Main Thread) Unrecognized configuration key "quarkus.asyncapi.annotation.scanner.server.oci.protocol" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a typo [io.qu.config] (Quarkus Main Thread) Unrecognized configuration key "quarkus.asyncapi.annotation.scanner.server.oci.url" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a typo
May I miss something?

I found my mistake the dependency should be
<dependency>
  <groupId>io.quarkiverse.asyncapi</groupId>
  <artifactId>quarkus-asyncapi-scanner</artifactId>
  <version>0.2.2</version>
</dependency>


Add article "Mixing Design With Business: 5 Reasons Why Designers Should Go To Business School"

Add Gabriel Moreno's articel "Mixing Design With Business: 5 Reasons Why Designers Should Go To Business School"
Add thumbnail image for article

thanks @nhisamoto!
cc @gabxmoreno


why the images are loaded slowly from firebase storage?

The images aren't loaded quickly from firebase storage in my app. what might be the problem ? This is the stack overflow post.
It is taking lot of time to load on my screen. This is the problem. How can i fix this ?

it would be great if you can you share your repo link, so that i can have a look at your code...

This is the code of the MessageAdapter I'm using.

that's great :)

For me I won't find the .asBitmap()

Which version of the glide are you using ?


Add possibility to filter by arc's index in mesh function.

Hello, in my project, I'd like to have the possibility to check also arc's index inside my filter method. I've analyzed mesh function and I've just added two parameters into filter function. I'd be glad if you could merge this and release to npm. Without that, I cannot proceed with my project.

@mbostock could you review my PR, please?


:auto ... call {} in transactions of ... rows -- not recognized

These structures are not recognized
// soc-feature
:auto load csv with headers from 'file:///RATED_FEATURE.csv' as r
CALL {
with *
match (soc:SOC {soc: trim(r.SOC)})
match (feature:Feature {code: trim(r.FEATURE_CODE)})
merge (soc)<-[:PART_OF]-(feature)
} IN TRANSACTIONS OF 10000 ROWS;

Please accept those?

Hi @neopaf, thank you for logging this issue.
I believe ":auto" is a client-side command that has a meaning when used in Neo4j Browser and Neo4j Shell, but it has no meaning elsewhere. (See here for a full list of browser commands: https://neo4j.com/docs/browser-manual/current/reference-commands/)
If I run a query that starts with ":auto" via the Neo4j Java Driver (or any other drivers, I believe), I get an error:
Exception in thread "main" org.neo4j.driver.exceptions.ClientException: Invalid input ':': expected
[...]

Therefore, I don't think this plugin should support browser commands such as ":auto".

right. and without :auto it works smoothly. thanks!


ensure the uid:gid and the fsgroup always match

If the redpanda container changes the uid:gid for the "redpanda" user, it will no longer match the fsGroup and the pod will no longer be able to access its data or configuration. This ensures the ids always match the file ownership.

Hi.
we stumbled over this issue and it is really nice to see the fixes are already coming :) We had a connected issue though: When setting the user and group to 101 the post-upgrade and post-install pods failed because kubernetes PodSecurityPolicy set to runAsNonRoot, container has runAsNonRoot and image has non-numeric user (appuser), cannot verify user is non-root. We could solve this by setting the securityContext there as well.
Can you reproduce this? Would it make sense to set the securityContext in these pods as default?

Good catch. Thanks!


Delivery for Visibility Addin DotNet – Sprint 3(Updates)

This build address the issue of input graphics overlaying the results

This pull request does not fix the issue of graphics overlaying the results when being ran from feature classes or a csv


Allow request method to be case sensitive

This should fix slimphp/Slim#2169 by removing strtoupper from request method.

Coverage decreased (-0.002%) to 98.204% when pulling d51f8fb2adfc3e78753a84905a198a58440698a3 on copynpaste:case-sensitive-method into 7ad25147bc5d9989ca14c53c4b291599d06adab9 on slimphp:master.


Select Python Environment - Show all available venvs

Environment data

VS Code version: 1.25.1
Extension version (available under the Extensions sidebar): 2018.7.1
OS and version: Windows 10 1803
Python version (& distribution if applicable, e.g. Anaconda): 3.4, 3.5, 3.6, 3.7
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
Relevant/affected Python packages and their versions: all

Actual behavior
"Select Python Environment" Displays a list of system Pythons
Expected  behavior
"Select Python Environment" Displays a list of venv Pythons (inside of ./venv directory) followed by system Pythons
Steps to reproduce:

C:/PATH_TO_PYTHON_34-36/python.exe -m venv ./venv/3.4-36
C:/PATH_TO_PYTHON_34-64/python.exe -m venv ./venv/3.4-64
py -3.5-32 -m venv ./venv/3.5-32
py -3.5-64 -m venv ./venv/3.5-64
py -3.6-32 -m venv ./venv/3.6-32
py -3.6-64 -m venv ./venv/3.6-64
py -3.7-32 -m venv ./venv/3.7-32
py -3.7-64 -m venv ./venv/3.7-64
Try to select the venv from the "Select Python Environment" prompt

The reason that I am trying to do this is to create a set of bdist_wheels for my project.
Thanks for your time, and the wonderful extension!

Please reload vscode and test.
It should work.

Just checked for updates, closed and reopened VS Code.
Same deal, I am seeing the Python environments from my system python installations and not the list of venvs I'm expecting:

The benefit of having the venvs organized in this structure is that when I activate a venv, it displays the version and bitness info of that venv in powershell:

@DonJayamanne we only checked for directories at the top level of your project, not within a subdirectory.
@TylerGubala you can get the functionality you went by setting "python.venvPath": {$workspaceFolder}\\venv". Our documentation outlines where we do check automatically if you want to avoid the setting.

Sorry, but even with the proposed change it still doesn't work for me


Security analysis of GitHub approvals

Following up on #109 to verify our approval strategy is secure

Since it is a public repository, as of now anyone with a valid Github ID can leave a comment.

Anyone can comment on this ticket.


Revert "fix: sets the actual_kafka_billing_model and the desired_kafka_billing del for old kafkas where billing_model was empty"

Reverts bf2fc6cc711aee1a0c2a/kas-fleet-manager#1595

Why @cos-fleet-manager-reviewers gets pulled as reviewer?

Why @cos-fleet-manager-reviewers gets pulled as reviewer?

In this specific PR's case, as specified in the CODEOWNERS file, it is due to the PR contains changes to the test directory and/or subdirectories.

Thanks for the review @ziccardi


cancelling queued tasks should likely not splice/mutate the array

Rather then costly array splicing, we should just mark the particular task as "cancelled" and then skip it in the flush.
relevant code: https://github.com/ebryn/backburner.js/blob/master/lib/backburner/queue.js#L190-L217

Sounds like a good idea to me, I'll try to poke at it today...

Submitted https://github.com/ebryn/backburner.js/pull/178 to get a baseline before messing with things...


react16 can be supported？

At present, my react version is 16, but there seems to be an error. Is there any way to use it?

Unfortunately the minimum version of react should be @17.0.2


refactor: make reset_password internal use only

pylint CI fails because of a new pylint update (2.6.0) released today:
(python37) ➜  kili-python-sdk git:(feature/ml-915-hide-reset-password) ✗ pylint src/kili --rcfile=.pylintrc | grep exception
pylint: Command line or configuration file:1: UserWarning: Specifying exception names in the overgeneral-exceptions option without module name is deprecated and support for it will be removed in pylint 3.0. Use fully qualified name (maybe 'builtins.BaseException' ?) instead.
pylint: Command line or configuration file:1: UserWarning: Specifying exception names in the overgeneral-exceptions option without module name is deprecated and support for it will be removed in pylint 3.0. Use fully qualified name (maybe 'builtins.Exception' ?) instead.
src/kili/orm.py:152:12: W0719: Raising too general exception: Exception (broad-exception-raised)
src/kili/authentication.py:72:12: W0719: Raising too general exception: Exception (broad-exception-raised)
src/kili/helpers.py:191:4: W0719: Raising too general exception: Exception (broad-exception-raised)
src/kili/helpers.py:207:12: W0719: Raising too general exception: Exception (broad-exception-raised)
src/kili/mutations/asset/helpers.py:24:12: W0719: Raising too general exception: Exception (broad-exception-raised)
src/kili/mutations/label/__init__.py:317:16: W0719: Raising too general exception: Exception (broad-exception-raised)
src/kili/graphql/__init__.py:197:16: W0719: Raising too general exception: Exception (broad-exception-raised)
src/kili/graphql/graphql_client.py:108:24: W0719: Raising too general exception: Exception (broad-exception-raised)
src/kili/graphql/graphql_client.py:113:20: W0719: Raising too general exception: Exception (broad-exception-raised)
src/kili/services/plugins/upload.py:329:12: W0719: Raising too general exception: Exception (broad-exception-raised)
src/kili/services/plugins/upload.py:338:12: W0719: Raising too general exception: Exception (broad-exception-raised)

do we accept bare exceptions in the SDK or we should fix them? @kili-technology/ml


Use local IP not random IP (Fix timeout error & Eventloop error).

Use local IP not random IP. (I think they blocked some random IP rnage?)

On my windows still need cookie file but fix timeout. (Ubuntu too)
Add pull_request_target on github action yml file. (make fork repo can run github action CI/CD test)
Ignore PyCharm config.

What actually is this project license? GitHub says unlicensed, PYPI say GPL V2 license.

I think 0.13.0 code will make "RuntimeError: Event loop is closed", when reuse same bot instance.
So i move the aiohttp session to stream function not on ChatBot init.

Fix:

#621
#627
#606

Maybe fix:

#631
#603
#636

What actually is this project license? GitHub says unlicensed, PYPI say GPL V2 license.

Thanks for catching that. It's The Unlicense.


BuilderBase.kt:42: BuilderBase test needs to be...

The puzzle 121-2726af4f from #121 has to be resolved:
https://github.com/objectionary/ddr/blob/16fcf13fb05c1e0270931e64c97ff8067c74a0ff/src/test/kotlin/org/objectionary/ddr/unit/graph/builder/BuilderBase.kt#L42-L42
The puzzle was created by c71n93 on 13-Jul-23.
Estimate: 60 minutes,  role: DEV.
If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

The puzzle 121-2726af4f has disappeared from the source code, that's why I closed this issue.


2nd iteration of 'Model' & 'Notebook' as Main Nav items

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/1067
Originally created by @derek-knox on 2019-09-27 19:58:20

For a first iteration we updated the Main Nav to contain both 'Model' and 'Notebook' to improve the at-a-glance communication that Meltano will empower users with modeling and notebooking functionality (hence "Help shape this feature..." in the screenshot below). Each nav item currently just links to our Meltano issue tracker pre-filtered with 'model' and 'notebook' respectively. Maybe not ideal, but a step forward.

@sytses @dmor

Do we want to have dedicated landing pages for each nav item pre-v1?
Assuming yes (that's why I have this issue in this milestone), please add anything specific you think they should communicate. @sytses I intentionally didn't house our Analyze CTAs in this new top-level "Model" as this feels a more "big picture" opportunity vs. solely referencing our Analyze CTAs (Meltano Model as config-files-that-enable-click-to-code-sql-generation).

Technically speaking Meltano's modeling occurs both in transforms (via dbt) and pre-analyze (via Meltano Model). So currently, modeling is more of an embedded quality vs. a theme-of-tasks container.
My current gut for this second iteration is:

Model = landing page

blurb about dbt
blurb about Meltano Model
blurb about "modeling" aspirations (@iroussos @mbergeron looking for thoughts here if you have any)

Notebook = existing link

View 3 previous comments from the original issue on GitLab


feat(client): introduce "after" hook

This PR introduces the new feature "after" hook for Hono Client.
As mentioned in #928, writing the same steps for each response is tedious.
In this PR, after hook allows us to write common actions after getting the response.For example, to output logs, we can write the following:
const client = hc<AppType>('http://localhost:8787', {
  after: (res) => {
    console.log(`${Date.now()}: Response status is ${res.status}`)
  },
})

I would like to keep the Hono Client to a minimum, but this after Hook is good because it allows for so much with so little implementation.
This will resolve #928

Alternatively:
const client = hc<AppType>('http://localhost:8787', {
  hooks: {
    afterResponse: [
      async (res, retry) => {
        if (res.status === 401) {
          const accessToken = await getAccessToken();
          return retry({ headers: { authorization: `Bearer ${accessToken}` }});
        }
        return res;
      }
    ]
  }
});

I agree with the current code except where I commented.

Thank you for the comments. I'm going on a trip and will reply later.

(more of an idea rather than review or suggestion, so leaving comments here)
After some thought, I suppose opt?.hooks?.after is better organized than opt?.after if you accept more hooks after receiving feature requests in the future. Examples of such hooks include but are not limited to beforeRequest, onFailure, and onTimeout (these are what I can come up with right now).
It depends on how minimal we want to keep hc.

@yudai-nkt potential hook names to consider for future development (options.hooks):
init, beforeRequest, beforeRedirect, beforeRetry, afterResponse, beforeError.

@koistya oops I overlooked your comment, sorry. I think we are basically along the same lines.

Hi @yudai-nkt @usualoma @koistya !
Thank you for the review and comment. This is a matter of how far hc is minimal, as @yudai-nkt says. It's not an easy decision to make so let's take some time to think about it.

I made this PR a draft because it is still incomplete and will not be developed soon.

KY uses the same hooks naming as @koistya suggested, would be great to use the same here. Another alternative is to have a Middleware instead of hook, It's obvious that beforeRequest/afterResponse looks exactly like middleware, and so we have single concept for client and server


Open Api Library

Removed open api generated code
Removed open api templates
Added open api generated dependency
Updated open api imports
Patched a few client call lines
Added TransactionHttp tests mocking open API route clients.

Generator:
https://github.com/NEMStudios/nem2-open-api-generator
NPM Package:
https://www.npmjs.com/package/nem2-sdk-openapi-typescript-node-client
Maintainer @rg911 @fboucquez

@evias we have been discussing this in previous closed PRs. I second the idea wrapping OpenAPI codes into a lib package. A few benefit here:

Future http client changes made easier, and we can avoid big changes in PRs
Standard OpenAPI generator template has got a lot lint issues,
Improve the test coverage up to more than 20%
Controlled lib version
First setup for automated CI / CD

I suggest to have the package reviewed for adding to nemtech organization such that its content follows the same review as the SDK/catbuffer generators.

I suggest to have the package reviewed for adding to nemtech organization such that its content follows the same review as the SDK/catbuffer generators.

Certainly can. Buy the way, the package is generated using official openAPI generator and standard template. Content would be the same as before.


Digital Ocean App version is outdated (Running tgcf 1.1.7.post1)

Describe the bug
When I deployed an App on Digital Ocean today the version is - Running tgcf 1.1.7.post1
How to update the app to current version tgcf 1.1.8?

https://github.com/aahnik/tgcf/discussions/212
https://pypi.org/project/tgcf/
Use pip (I'm not sure if you can do w/ your instance deplyoed on Digital Ocean).

#212 https://pypi.org/project/tgcf/
Use pip (I'm not sure if you can do w/ your instance deplyoed on Digital Ocean).

Wow thanks pip update helped

how you did this?


Assertions when desterilizing Vector2 fields

Hello, I tried to recreate what was written on the readme page about serialization and deserialization, but it doesn't seem to work. Maybe I am doing something wrong? Here is how I try to use it. The file contains this:

{"node_name":"InventoryGridPlayer","item_protoset":"res://ItemProtoset.tres","items":[{"node_name":"2x2_bomb","protoset":"res://ItemProtoset.tres","prototype_id":"2x2_bomb"}],"size":"(10, 5)"}

The serialization code:

 if Input.is_action_just_pressed("save_and_close"):
  # Serialize the inventory into a JSON string
  var inventory: Inventory = get_node("Inventory/InventoryGridPlayer")
  var dict: Dictionary = inventory.serialize()
  var json = JSON.print(dict)
  # Save to file
  var file = File.new()
  file.open("res://inventory_save.res", File.WRITE)
  file.store_string(json)
  file.close()

then trying to deserialize the file on launch:

func _ready():
var file = File.new()
file.open("res://inventory_save.res", File.READ)
var read_file = file.get_as_text()
file.close()
Deserialize the inventory from a file
var inventory: Inventory = get_node("Inventory/InventoryGridPlayer")
var res: JSONParseResult = JSON.parse(read_file)
if res.error == OK:
var dict = res.result
inventory.deserialize(dict)

or I tried to deserialize on a button press, doesn't work either :(
The target inventory stays empty even if the file contained the json.
Also the Output is giving me this:

Key 'size' has wrong type! Expected '5', got '4'!

Maybe this is the reason, idk what this is, I was copying everything from the instruction.
Maybe I should refresh the inventory or something?
Originally posted by @Ingeniouz in https://github.com/peter-kish/gloot/discussions/62

Should be fixed in 115eaa77fd0436c628825f4f36083856238be704


test bucketclient

To test versioning-enabled bucketclient's backward-compatibility with existing S3 and MetaData.

@ironman-machine your important part

Hello @ttvi,
Starting end to end procedure using the following payload:
{"DEFAULT_BRANCH":"master","SCALITY_S3_BRANCH":"test/bucketclient"}
Please follow http://ci.ironmann.io/gh/scality/Integration/2048 for circle status.


What's the right way to include a model's directory in an app?

For development purposes, I'd like to simply include an MLX converted model folder in the app.  I'm a rookie in all things iOS/Xcode, so I've tried 4 things, with no luck:
directory:  Bundle.main.url(forResource:"Data/model_folder", withExtension: nil)!,
as well as
directory:  Bundle.main.url(forResource:"model_folder", withExtension: nil)!,
applying
"Convert to Group" and "Convert to Folder" on the  model_folder .
Any help would be greatly appreciated.

Resolved.

@aPaleBlueDot what did you do to solve this? thanks!

@aPaleBlueDot what did you do to solve this? thanks!

Hey @zach-withcoherence, here's what worked, if I remember correctly:

Click on the root of your project on the left hand side navigation.
Under the TARGETS column select LLMEval
Click on the Build Phases tab
Go to the Copy Bundle Resources section
Click the + sign to add your model folder


Drag 'n Drop and Resizing Capabilities for Charts

@katherineyli: more info to follow...

To support this feature, we can add a new dependency: react-grid-layout.
About resizing, one initial consideration is setting a minimum size constraint for a chart view. Maybe react-grid-layout offers support for that through built-in props, but if not, we can handle it through an event.
For now, we'll keep it local (useState), but I talked to Connor earlier and he might want to sync it with the API, so we can easily add support for that later.
@connor-makowski, do you have any additional thoughts or requirements about this new feature?

@luisvasq were does this currently stand?


Fix projectName being added to script twice

projectName is getting the name and value variables added to the script twice which is causing scripts saved with the projectName variable to throw an error. This fix removes the serialisable and dynamic flag from the projectName and projectRootDirectory variables so that they aren't saved twice. (SG 9026)

Hi Carmen,
Thanks for looking in to this one. I've made a couple of comments in the diff as to why I don't think this approach to fixing the problem is the right one. Essentially the issue is that Caribou loads scripts slightly differently to the way standalone Gaffer does, so while your code would work in Caribou if the first comment was fixed, I'm afraid it's not a workable solution for the general case in Gaffer standalone.
@andrewkaufman and I have discussed the problem previously, and Andrew has an alternative approach which I'll detail on SG9026.
Many thanks,
John

Thanks for looking into this! I'll keep an eye on the ticket.


tsc API: undefined JSX element attribute value incorrectly showing syntax kind of 79 or 80

🔎 Search Terms
kind 79, undefined, jsx, prop, attribute
🕗 Version & Regression Information

This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________

ts 5.0.4 on astexplorer.net returns Kind = 79

ts 5.2.2 on a local test returns Kind = 80

⏯ Playground Link
https://astexplorer.net/
💻 Code
function asdf() {
  return <SomeThing stuff={undefined} />
}

🙁 Actual behavior
the emitted AST gives the following on astexplorer:
"expression": {
  "pos": 45,
  "end": 54,
  "flags": 0,
  "modifierFlagsCache": 0,
  "transformFlags": 0,
  "parent": "[Circular ~.statements.0.body.statements.0.expression.attributes.properties.0.initializer]",
  "kind": 79,
  "escapedText": "undefined"
}

Locally, with 5.2.2, we get:
IdentifierObject {
  pos: 601,
  end: 610,
  flags: 0,
  modifierFlagsCache: 0,
  transformFlags: 0,
  parent: <ref *1> NodeObject {
    pos: 600,
    end: 611,
    flags: 0,
    modifierFlagsCache: 0,
    transformFlags: 2,
    parent: NodeObject {
      pos: 575,
      end: 611,
      flags: 0,
      modifierFlagsCache: 0,
      transformFlags: 2,
      parent: [NodeObject],
      kind: 291,
      symbol: undefined,
      localSymbol: undefined,
      name: [IdentifierObject],
      initializer: [Circular *1]
    },
    kind: 294,
    dotDotDotToken: undefined,
    expression: [Circular *2]
  },
  kind: 80,
  escapedText: 'undefined',
  jsDoc: undefined,
  flowNode: undefined,
  symbol: undefined
}

Type 79 maps to CaretEqualsToken, LastAssignment, LastCompoundAssignment, LastPunctuation,  and LastBinaryOperator.
Type 80 maps to Identifier.
None of these have any relation to undefined, such as Kind = 157 (UndefinedKeyword).

🙂 Expected behavior
I expect this to behave like null, false, true, etc... where undefined is recognized in the AST as a keyword.
Additional information about the issue
No response

SyntaxKind is unstable and its exact values must not be depended on. Only the names are stable, and must be used to look up values at runtime for a given instance of typescript.

Maybe I'm misunderstanding, but undefined is an identifier, not a keyword, so what you're seeing is correct.

In type space, it's what is used to represent the undefined type. e.g. put your cursor on the type in https://ts-ast-viewer.com/#code/MYewdgzgLgBAHgLhgVzAEwKYDMCWYNowC8K62eBA3EA and note the Node on the right.

That's super helpful info, thank you!
As a side note, we've been really happy with the TypeScript compiler API so far. We're using it to perform static analysis of source code for telemetry purposes.


Plaintext profile keys are stored in the database

When the default profile is created, the profile key is encrypted using the store key, but when creating a new profile in the same store, the profile key is stored in the database in a plaintext format https://github.com/hyperledger/aries-askar/blob/2ab2e5049df5f1f5fab06b91faa2f441b80ee620/src/backend/postgres/mod.rs#L115
As a consequence, loading of all profiles fails (except for the default one), since in the resolve_profile_key function, plaintext key is being decrypted https://github.com/hyperledger/aries-askar/blob/2ab2e5049df5f1f5fab06b91faa2f441b80ee620/src/backend/postgres/mod.rs#L594
A connected issue is in the SQL query SELECT id, profile_key FROM profiles WHERE name=?1 ?1 should be replaced with $1, otherwise the value is not bound correctly
This issue is connected to  ACA-py improved multitenancy implementation and represents a security vulnerability.

I've got fixes for these issues lined up if you'd like to test that PR. I'm going to look at adding postgres to the CI before merging it.


Correct mapping between .NET Framework and .NET Standard versions

Paket's mapping of .NET Framework to .NET Standard versions is currently incorrect according to https://docs.microsoft.com/en-us/dotnet/standard/net-standard, resulting in the inability to use .NET Standard 2.0 packages in some projects that should be able to use them.

Sadly the table you linked is a lie. we have a huge discussion around that somewhere. Can you try to find and link it (I'm on mobile right now)

The (simplified) issue is that if you are still on VS2015, then netstandard 2 <-> netfx4.6.1  does not work.
The best solution would be a per-group setting which enables this, but that would probably be a lot of effort to route the flag correctly through all layers.

I hate .NET Core and everything that came with it.
The problem I'm trying to get around here is that as far as I can see, it is currently impossible to use packages that are .NET Standard 2.0 only (such as EF Core) from a .NET 4.6.1 project using Paket (which works fine with NuGet), because it will not generate the appropriate condition in the project file. Is there any other way around that?

At the moment? No. You could use nuget shrough.

Well, we would probably accept a group setting. But this is really dangerous area, there are so many corner cases. And as @matthid said, that table is a lie and should be deleted. I guess the only real solution is to use net471

Sorry, that is not a "solution". We don't have that choice. It would work technically, of course, but it's not a solution.

Well, the other option is that group setting. Because implementation is
breaking. Unfortunately
TeaDrivenDev<EMAIL_ADDRESS>schrieb am Di., 12. Juni 2018,
15:19:

Sorry, that is not a "solution". We don't have that choice. It would work
technically, of course, but it's not a solution.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/fsprojects/Paket/pull/3248#issuecomment-396586233,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADgNHGo349FxP4HlcwKm2Ee1u4RhPB4ks5t77_0gaJpZM4UjtwL
.

We would definitely accept a well tested implementation ;)...

Just dropping https://github.com/dotnet/docs/issues/5915 here.
One important part:

4.7.1 still needs some facades. Only 4.7.2 has all the assemblies in-box that are needed [...]

And I'd love a solution, because I'll shortly (hopefully in one or two weeks) be in the same boat that I need to target NET Standard 2 from NET 4.6.1.

I have at least started looking into (or rather at) this. Gonna be a few years.

Can we define that this flag is global per dependencies file (NOT per group), then stash it in a global mutable variable somewhere?

Yeah, routing it through was what made me stop and look for something easier to practice on first, because this essentially requires understanding the whole path from parsing the dependencies file deep into the core logic, and I need to build an understanding of the code base first.

So I'm a bit in a bind.
I was originally the one to remove the net461<>ns2 mapping (https://github.com/fsprojects/Paket/pull/2380), then tried to re-add it (https://github.com/fsprojects/Paket/pull/2391), but gave up because I personally didn't need it then, and the routing was a lot of effort.
Now I need to use ASP.NET Core from a .NET 4.6.1 project (hopefully moving to .NET Core soon, but not soon enough), so am forced to fall back to plain NuGet PackageReference.
The proposals above (Environment variable and/or app.config) were partially in jest, but also partially serious.
Routing it through everything will touch almost everything, and break every public API because of added fields and parameters. This all for a small gain, which will be of less value with time as more and more moves to .NET 4.7.2+ and .NET Core.

My current preference would be a switch in the app.config of paket.exe. This app.config would be checked in, so the state is stable between all developers and CI.
It should write a flag into the lockfile, erroring out if the lock was resolved with a different state than the current one, forcing you to reinstall.
It should not be possible (because of the effort involved) to specify this per-group, this is a per-repository opt-in.
I have looked at it a little bit, and it would be possible to surgically insert this into only a handfull of files - the framework definition and the places where the lockfile is parsed/written out.
@matthid  @forki What do you think?

If it works with magic mode I’m fine with this in principle. The only thing is that app.config is no longer a thing in netcore so a different format might make sense...

If it works with magic mode I’m fine with this in principle. The only thing is that app.config is no longer a thing in netcore so a different format might make sense...

Ah, good catch about the app.config.
Yes, in magic mode it would need to read the whatever-file from the stub, not the full exe.

I personally think it should be a group setting

I also think it should be a group setting, but a group setting would be a lot of effort for a debatable gain.

tha gain is consistency. I think that's important

Yes, and the cause of the issue is a (hopefully) one-time massive hack by the dotnet sdk.
If there were a tooling-level 3 and 4 in the foreseeable future, then it would be different, but if everything goes well, then this switch could be added now, and forgotten and buried in 5 years.

The current mapping is also wrong:
https://github.com/Microsoft/dotnet/blob/master/releases/net471/KnownIssues/514195-Targeting .NET Framework 4.7.1 copies extra files to your bin directory.md

.NET Framework 4.7.1 intended to have full support for running .NET Standard 2.0 assets, but we found some bugs on 12 assemblies that would cause some types to not get forwarded correctly. Patching those 12 assemblies is not viable since then the applications would require the patch to be installed on end-user machines in order to function correctly.

https://github.com/fsprojects/Paket/blob/38b50c108db386cbd64bd6d84bf54508b560869f/src/Paket.Core/Versioning/FrameworkHandling.fs#L598-L600
So this should probably be fixed so only netfx472+ supports netstandard2.0 natively.

@0x53A Ok we can change that as well, even Microsoft seems to roll back: https://twitter.com/terrajobst/status/1032025428242849793 so I guess we can close all the PRs and issues floating around?

Burn it all down

hahahahahahahahahahaahahahahahahaaha
deep breath
hahahahahahahahahahaahahahahaha
cries

That would mean in cases like ours, where it works with NuGet, even if unofficially from now on, we have no upgrade path to Paket unless we can move to whatever 4.7.x version works with .NET Standard 2.0 (which is beyond our control and likely to be years away); is that correct?

Correct is that from our side nothing has changed. We probably would still accept a well tested PR as long as it is explicit opt-in according to the discussion, but it is unlikely that we are doing it. Considering that no PR has been sent until now it becomes more and more unlikely that it happens at all


Rendering Math Expressions

I would like to include Math expressions like so:
When  $a \ne 0$ , there are two solutions to $(ax^2 + bx + c = 0)$ and they are
$$ x = {-b \pm \sqrt{b^2-4ac} \over 2a} $$
this is supported in github markdown.
Can I make it work in MudMarkdown?

Thank you for doing this hard work!
I can imagine that this is very hard to solve, because in Mathematics the Layouts can get very tricky.
I would be overwhelmed by the complexity of this, because there are so many things for this to work 100% correctly.
For example, matrices, integrals, OMG, so much work!
So... take your time
Thanks again
Matthias Hess
Von: MihailsKuzmins @.>
Gesendet: Mittwoch, 17. August 2022 10:46
An: MyNihongo/MudBlazor.Markdown @.>
Cc: Hess Matthias @.>; Author @.>
Betreff: Re: [MyNihongo/MudBlazor.Markdown] Rendering Math Expressions (Issue #105)
sorry, it takes longer than expected.
I do not really like to include mathjax directly since i don't really like their concept of changing the web page rather than rendering it straight away.
Hopefully it won't take forever...

Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMyNihongo%2FMudBlazor.Markdown%2Fissues%2F105%23issuecomment-1217697687&data=05|01|matthias.hess%40cmiag.ch|f07f414595034d1a983808da802cd94b|2ded1acc3f724a038acd3fc55e03cbd6|0|0|637963227354638673|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=S00QSgeMJNZqsey3w9ShnQuKjK5O0nFabQuYj0CvCts%3D&reserved=0, or unsubscribehttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABUEAMEPNVJTZLYCENCVBXTVZSRCZANCNFSM53IEK7IA&data=05|01|matthias.hess%40cmiag.ch|f07f414595034d1a983808da802cd94b|2ded1acc3f724a038acd3fc55e03cbd6|0|0|637963227354638673|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=pMuy%2BfqQ%2Fygo2MPtsOTf9iyHCyuPgvVah%2FD8BgW6ZM8%3D&reserved=0.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>

I just had an idea.
Since it takes some time, could you please share what math operations are crucial for you. I think I will try to release them together with the <details> feature. Afterwards I will continue to improve rendering of math expressions
I hope that I need some easy expressions like $(ax^2 + bx + c = 0)$ since this is already dome :)

Yes, at the moment it would be sufficient to have something lik $(ax^2 + bx + c = 0)$, because my Math examples are only for 12-14 years old students 😊.
So this would already be „good enough“ form e and offer a grat value.
Best Regards
Matthias
Von: MihailsKuzmins @.>
Gesendet: Freitag, 19. August 2022 15:44
An: MyNihongo/MudBlazor.Markdown @.>
Cc: Hess Matthias @.>; Author @.>
Betreff: Re: [MyNihongo/MudBlazor.Markdown] Rendering Math Expressions (Issue #105)
I just had an idea.
Since it takes some time, could you please share what math operations are crucial for you. I think I will try to release them together with the  feature. Afterwards I will continue to improve rendering of math expressions
I hope that I need some easy expressions like $(ax^2 + bx + c = 0)$ since this is already dome :)
—
Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMyNihongo%2FMudBlazor.Markdown%2Fissues%2F105%23issuecomment-1220700615&data=05|01|matthias.hess%40cmiag.ch|0e97b4a947434cdfb24808da81e8e08e|2ded1acc3f724a038acd3fc55e03cbd6|0|0|637965134440459527|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=xowfg7Ek7hnwOFEsepchTR60BHHG6UW1EnwAN%2B%2BUYAs%3D&reserved=0, or unsubscribehttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABUEAMGUGTDV6WRG3LR6CA3VZ6FSDANCNFSM53IEK7IA&data=05|01|matthias.hess%40cmiag.ch|0e97b4a947434cdfb24808da81e8e08e|2ded1acc3f724a038acd3fc55e03cbd6|0|0|637965134440459527|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=eC3FkTSpyu9oJn4qjVVRvtuYhRNTqcxQvv%2FCUOY9zvU%3D&reserved=0.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>

These are my top priority features

Fractions like       x = \frac{ 1 }{2}
Exponents like    ax^2
Roots like \sqrt {2}

Best Regards Matthias
Von: MihailsKuzmins @.>
Gesendet: Freitag, 19. August 2022 15:44
An: MyNihongo/MudBlazor.Markdown @.>
Cc: Hess Matthias @.>; Author @.>
Betreff: Re: [MyNihongo/MudBlazor.Markdown] Rendering Math Expressions (Issue #105)
I just had an idea.
Since it takes some time, could you please share what math operations are crucial for you. I think I will try to release them together with the  feature. Afterwards I will continue to improve rendering of math expressions
I hope that I need some easy expressions like $(ax^2 + bx + c = 0)$ since this is already dome :)

Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMyNihongo%2FMudBlazor.Markdown%2Fissues%2F105%23issuecomment-1220700615&data=05|01|matthias.hess%40cmiag.ch|0e97b4a947434cdfb24808da81e8e08e|2ded1acc3f724a038acd3fc55e03cbd6|0|0|637965134440459527|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=xowfg7Ek7hnwOFEsepchTR60BHHG6UW1EnwAN%2B%2BUYAs%3D&reserved=0, or unsubscribehttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABUEAMGUGTDV6WRG3LR6CA3VZ6FSDANCNFSM53IEK7IA&data=05|01|matthias.hess%40cmiag.ch|0e97b4a947434cdfb24808da81e8e08e|2ded1acc3f724a038acd3fc55e03cbd6|0|0|637965134440459527|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=eC3FkTSpyu9oJn4qjVVRvtuYhRNTqcxQvv%2FCUOY9zvU%3D&reserved=0.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>

This input

will produce the following output

I hope this works for you. I think I will close this issue, but if you encounter some problems, please reopen it or create a new one

Thank you, this looks great
Holen Sie sich Outlook für Androidhttps://aka.ms/AAb9ysg

From: MihailsKuzmins @.>
Sent: Sunday, August 28, 2022 11:39:38 AM
To: MyNihongo/MudBlazor.Markdown @.>
Cc: Hess Matthias @.>; Author @.>
Subject: Re: [MyNihongo/MudBlazor.Markdown] Rendering Math Expressions (Issue #105)
This input
[image]https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F47413092%2F187064452-5a9604fe-2003-4fab-9e21-bd37b48dd841.png&data=05|01|matthias.hess%40cmiag.ch|9c2abdfb121949b7a5d508da88d93a55|2ded1acc3f724a038acd3fc55e03cbd6|0|0|637972763810921666|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=pAu38XxniyVGcyi95v1Il8kBujx162I856K6%2BWZBEwI%3D&reserved=0
will produce the following output
[image]https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F47413092%2F187064437-f7e3b436-1fa3-4e47-81da-d11f5e9d40a1.png&data=05|01|matthias.hess%40cmiag.ch|9c2abdfb121949b7a5d508da88d93a55|2ded1acc3f724a038acd3fc55e03cbd6|0|0|637972763810921666|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=bsNSTFq9iqENFcMLw4SMgLMD1XC2WydiITKoBnrAYI8%3D&reserved=0
I hope this works for you. I think I will close this issue, but if you encounter some problems, please reopen it or create a new one
—
Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMyNihongo%2FMudBlazor.Markdown%2Fissues%2F105%23issuecomment-1229418630&data=05|01|matthias.hess%40cmiag.ch|9c2abdfb121949b7a5d508da88d93a55|2ded1acc3f724a038acd3fc55e03cbd6|0|0|637972763810921666|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=l%2BuHv%2FxYU5GEgzejsIVg06b62qnXkTf3Oc1Unomr7gw%3D&reserved=0, or unsubscribehttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABUEAMARE5ZO7JD7SZO6QHDV3MXVVANCNFSM53IEK7IA&data=05|01|matthias.hess%40cmiag.ch|9c2abdfb121949b7a5d508da88d93a55|2ded1acc3f724a038acd3fc55e03cbd6|0|0|637972763810921666|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=uRvFlYz8%2FqKzj9RTsYBL5s48L5oErgmbIKzx3lhv7%2BQ%3D&reserved=0.
You are receiving this because you authored the thread.Message ID: @.***>


win32: Show drive letter instead of device in dropdown

Physical drive names are long and cause the dropdowns to overflow.
Fixes: https://github.com/resin-io/herostratus/issues/23

Tested in OS X.

Tested on Windows:


[SPARK-12618] [CORE] [STREAMING] [SQL] Clean up build warnings: 2.0.0 edition

Fix most build warnings: mostly deprecated API usages. I'll annotate some of the changes below. CC @rxin who is leading the charge to remove the deprecated APIs.

Test build #48648 has started for PR 10570 at commit 7338058.

Test build #48648 has finished for PR 10570 at commit 7338058.

This patch fails from timeout after a configured wait of `250m`.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/48648/
Test FAILed.

Test build #48762 has started for PR 10570 at commit bfaa1fa.

Test build #48762 has finished for PR 10570 at commit bfaa1fa.

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

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/48762/
Test FAILed.

Merged build finished. Test FAILed.

@JoshRosen you might be able to help here. The Spark build passed, but the MiMa failed due to a compilation error. The change that tripped this uses an API call in commons-codec 1.7 that isn't present in earlier versions, and IIRC we hadn't updated this since Hadoop 1.x used an older library version. However Hadoop 2.2+ is fine, as is Spark here. However the MiMa check vs Spark 1.6 (and Hadoop 1.x?) is failing somehow due to a compilation error here. Is it something that can be worked around? I can just back out the change if it's hard.

Test build #48777 has started for PR 10570 at commit e6702c4.

Test build #48777 has finished for PR 10570 at commit e6702c4.

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

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/48777/
Test FAILed.

(Nevermind -- I backed out the commons-codec change for now.)

Test build #48848 has started for PR 10570 at commit 2c4011e.

Test build #48848 has finished for PR 10570 at commit 2c4011e.

This patch fails to build.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/48848/
Test FAILed.

Test build #48857 has started for PR 10570 at commit d277104.

Test build #48857 has finished for PR 10570 at commit d277104.

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

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/48857/
Test PASSed.

@srowen thanks a lot for the cleanup! Just two comments.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/48868/
Test FAILed.

cc @jkbradley
@srowen I have some concerns about the number of files being touched by this PR, it may be hard to merge without an ever-present conflict somewhere. Maybe splitting it will go faster?

It's not hard to rebase this, as the number of lines changed is actually small. I don't see a value in splitting it as it will still mean as many rebases.

That's the only item I see. Thanks very much for doing these cleanups!

OK, I think that's two positive reviews. I'm going to rebase and test and then merge if all is well.

Test build #48934 has started for PR 10570 at commit b743456.

Test build #48934 has finished for PR 10570 at commit b743456.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/48934/
Test FAILed.

@srowen I am confused, did you send me this message for this PR? It somehow does not show up in github, and I do not see the jenkins run that failed:
@thunterdb Hm, I get this error now:

[error] /home/jenkins/workspace/SparkPullRequestBuilder/extras/kinesis-asl/src/test/scala/org/apache/spark/streaming/kinesis/KinesisStreamSuite.scala:140: No Manifest available for org.apache.spark.streaming.kinesis.KinesisBackedBlockRDD[Array[Byte] @unchecked].
[error]     nonEmptyRDD shouldBe a [KinesisBackedBlockRDD[Array[Byte] @unchecked]]
[error]
Did I misunderstand how to apply it or is it not going to work here?

@thunterdb It's here on Github: https://github.com/apache/spark/pull/10570#discussion_r49080896  Right above is the result of the last run, which failed. https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/48934/consoleFull

Test build #49017 has started for PR 10570 at commit 16b6a39.

Test build #49017 has finished for PR 10570 at commit 16b6a39.

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

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/49017/
Test PASSed.

Merged to master


Are there plans for a dedicated invitation model?

Hey :smile:
I tried to move the invitation into a dedicated Invitation model. Main reason for that attempt was that most users never are invited. So why having those extra attributes for them? And furthermore it feels natural. Like User has one invitation.
However I simply delegated the attributes to the dedicated Invitation model, like:
class User < ApplicationRecord
  has_one :invitation

  delegate :user_invitation_token, to: :invitation, allow_nil: true
  delegate :user_invitation_created_at, :invitation_created_at=, to: :invitation, allow_nil: true
  delegate :user_invitation_sent_at, :invitation_sent_at=, to: :invitation, allow_nil: true
  delegate :user_invitation_accepted_at, :invitation_accepted_at=, to: :invitation, allow_nil: true

  def user_invitation
    invitation || build_invitation
  end
end

class Invitation < ApplicationRecord
  belongs_to :user
end

But had to stop because finding a user by its invitation token heavily relies on the Devise#find_or_initialize_with_error_by
which I obviously don't wanna screw up.
So I think it is currently not easy to extract the invitation into a dedicated model.
My question: Are there plans in regards to this? Does it make sense from your side?

I'm open to change to independent model, with own table, with a polymorphic belongs_to to support adding invitable to multiple models. However, it isn't simple task, and I don't have plans to do it shortly. If someone sends a PR I will review it to merge it, or I could help with the change, but I don't have much time


Null keys break schema generation

Given the test JSON:
{
 "items": [
   { "name": "foo", "details": { "a": "b" } },
   { "name": "bar", "details": null }
 ]

}

running the command line tool produces:
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "details": {
            "type": "null"
          }
        },
        "required": [
          "name",
          "details"
        ]
      }
    }
  }
}

The details key has a type of null and no items. The null value for the second object in the items array in the example is overwriting the schema generated from the first.
So there is an ordering dependency which means that null values can result in lost schema information.
For a quick local fix I've put a conditional around these lines. If the type of the item is null and there's already a key for that property, then don't overwrite it.
    if (type === 'null' && output.properties[key]) {
      //console.log(output.properties[key]);
    } else {
        output.properties[key] = {}
        output.properties[key].type = type
    }

I'm not sure that's a complete fix though, or even recommended. Just gives me a quick workaround!

Interesting...

So following the specification, when a field has multiple types it should become an array of primitives.
I have introduced this behavior in the following form:
    if (output.properties[key]) {
      var entry = output.properties[key]
      var hasTypeArray = Array.isArray(entry.type)

      if (hasTypeArray && entry.type.indexOf(type) < 0) {
        entry.type.push(type)
      }

      if (!hasTypeArray && entry.type !== type) {
        entry.type = [entry.type, type]
      }

      continue
    }

This should satisfy the expectations of your schema and validation


Github for Jira don't see all my organization

Hello,
Github for Jira only see one of my organizations:

I am trying to link it with one of my other organization.
In my target organization, within github setting page, the Jira app is correctly installed and rights are given :

Please adivse,

You need to install the app on the other organization and be the admin of that organization to connect to it.  If you don't meet this requirement, you cannot add a new org to jira for security reasons.

You need to install the app on the other organization and be the admin of that organization to connect to it. If you don't meet this requirement, you cannot add a new org to jira for security reasons.

Admin on both side, jira atlassian and the targeted github organization.
Still I have this specific problem.

What's the message that shows when you hover over the 'connect' button?

What's the message that shows when you hover over the 'connect' button?

The organization seen in my first screenshot is not the one I want to connect to!
The one I want to connect to isn't showing up.
Thus the message when I over on the connect button for the organization already connected doesn't matter, the message is about the fact that for this specific organization I am not admin, which is correct but we don't care, because that's not the organization I want to connect.
The organization I want to connect isn't listed, I am owner of this organization.

So, you've installed the app on the second organization but it's not
showing up in the list? Do you have IP allowlist enabled on your GitHub org?
On Wed, Jun 22, 2022, 5:52 PM Sacha Ott @.***> wrote:

What's the message that shows when you hover over the 'connect' button?
The organization seen in my first screenshot is not the one I want to
connect to!
The one I want to connect to isn't showing up.
Thus the message when I over on the connect button for the organization
already connected doesn't matter, the message is about the fact that for
this specific organization I am not admin, which is correct but we don't
care, because that's not the organization I want to connect.
The organization I want to connect isn't listed, I am owner of this
organization.
—
Reply to this email directly, view it on GitHub
https://github.com/atlassian/github-for-jira/issues/1288#issuecomment-1162771087,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEMBZF6E5LJKICDP5I5QA3VQLA2LANCNFSM5ZMXISWQ
.
You are receiving this because you commented.Message ID:
@.***>

Exactly. The app is correctly installed on the targeted organization, and configured like you see on my second screenshot. And this org doesn't show up in the list.
I don't have IP allowlist enabled.

Okay, I'm going to need to know the GitHub org name and your jira domain to
look at the logs to see what's going on.
On Wed, Jun 22, 2022, 7:46 PM Sacha Ott @.***> wrote:

Exactly. The app is correctly installed on the targeted organization, and
configured like you see on my second screenshot. And this org doesn't show
up in the list.
I don't have IP allowlist enabled.
—
Reply to this email directly, view it on GitHub
https://github.com/atlassian/github-for-jira/issues/1288#issuecomment-1162886056,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEMBZCKN6WAP54USFQSBUTVQLOH5ANCNFSM5ZMXISWQ
.
You are receiving this because you commented.Message ID:
@.***>

Sure, can we communicate those information privately? If yes tell me how.

Email it to me at<EMAIL_ADDRESS>Cheers.

Email it to me at<EMAIL_ADDRESS>Cheers.

Thank you! I sent you the requested information by e-mail. Let me know if you want to do a quick sharing screen call.

@Xoib Looked at the logs and saw could not determine admin status of user Xoib in org <YOUR ORG>.  The github API is returning a 403 status which can happen for a few different reasons, but more often than not it's because IP Allowlisting has been enabled on that specific org or there's simply a problem with the API (unlikely).
If you were to look at this URL to check the IP Allowlisting status: https://github.com/organizations//settings/security
If IP Allowlisting is enabled, you need to tick the Enable IP allow list configuration for installed GitHub Apps checkbox.
If that is not the issue, then we could always get on a call together to figure out the issue.
Cheers.

@mboudreau here a screenshot of how it is (I didn't touch anything) :

Hm, weird.
Do me a favor, go to this url and login/authorize the explorer: https://docs.github.com/en/graphql/overview/explorer
And in the query textfield, copy paste this (replacing the org) and click the play button then show me the result:
query {
  viewer {
    organization(login: "YOUR-ORG") {
      viewerCanAdminister
    }
  }
}

Thanks

Result bellow:
{   "data": {     "viewer": {       "organization": {         "viewerCanAdminister": true       }     }   } }

@mboudreau, with a renewed auth after clearing cookies of github.atlassian.com domain, it worked, the org I wanted appeared in the list and I was able to click on the connect button. Thank you!


[SPARK-45466][ML] VectorAssembler should validate the vector elements

What changes were proposed in this pull request?
Make VectorAssembler validate the vector values
Why are the changes needed?
VectorAssembler should validate the vector values
Does this PR introduce any user-facing change?
yes, in error mode, if a vector contains NaN, it fails
before this PR:
In [15]: from pyspark.ml.linalg import Vectors

In [16]: from pyspark.ml.feature import VectorAssembler

In [17]: df = spark.createDataFrame([(1.0, Vectors.dense(float('nan'))), (0.0, Vectors.sparse(1, [], []))], ["label", "features
    ...: "])

In [18]: vecAssembler = VectorAssembler(outputCol="new_features")

In [19]: vecAssembler.setInputCols(["label", "features"])
Out[19]: VectorAssembler_a3896f503d95

In [20]: vecAssembler.transform(df).show()
+-----+---------+------------+
|label| features|new_features|
+-----+---------+------------+
|  1.0|    [NaN]|   [1.0,NaN]|
|  0.0|(1,[],[])|   (2,[],[])|
+-----+---------+------------+

after this PR:
In [6]: vecAssembler.transform(df).show()
23/10/10 10:53:20 ERROR Executor: Exception in task 0.0 in stage 5.0 (TID 17)
org.apache.spark.SparkException: [FAILED_EXECUTE_UDF] Failed to execute user defined function (`VectorAssembler$$Lambda$2749/0x0000007001e3fb20`: (struct<label:double,features:struct<type:tinyint,size:int,indices:array<int>,values:array<double>>>) => struct<type:tinyint,size:int,indices:array<int>,values:array<double>>).
	at org.apache.spark.sql.errors.QueryExecutionErrors$.failedExecuteUserDefinedFunctionError(QueryExecutionErrors.scala:194)
    ...
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: org.apache.spark.SparkException: Encountered NaN while assembling a row with handleInvalid = "error". Consider
removing NaNs from dataset or using handleInvalid = "keep" or "skip".

How was this patch tested?
added UTs
Was this patch authored or co-authored using generative AI tooling?
no

Does this change behavior or just refactor code? I'm actually surprised that NaN is treated as an error but looks like that is existing behavior?

It is a behavior change.
Before this PR, NaN/null doubles and null vectors are treated as errors, but NaN values inside a vector are ignored.

Is that really an error? It's the only way to represent a missing value

Is that really an error? It's the only way to represent a missing value

https://github.com/apache/spark/blob/d679dabdd1b5ad04b8c7deb1c06ce886a154a928/mllib/src/main/scala/org/apache/spark/ml/feature/VectorAssembler.scala#L72-L81
according to the doc, the NULL and NaN values are invalid data.
And the default handleInvalid is error, which treats invalid values as errors.
If users want to keep the missing value, users can set handleInvalid=keep

I see. Would users want to filter/catch NaN here and not upstream? maybe. I'm reluctant to change behavior even in 4.0.

ok. I'm fine to close it since there is no strong requirement


Fix TF 2.7 release notes

Fix https://github.com/tensorflow/tensorflow/pull/52670/. The changes is in TF2.7 and not 2.6.
@mihaimaruseac

@googlebot I consent.
I already have the CLA signed. I'm not sure why this was asked.

CLA bot is confused when doing cherrypicks.
There's a caveat here, we'll add a new commit on the branch after the release, but probably we can handle this the same as #52971

CLA bot is confused when doing cherrypicks.

I didn't cherry-pick anything here.

There's a caveat here, we'll add a new commit on the branch after the release, but probably we can handle this the same as #52971

Can you confirm that, I need to do this commit on top of master and not on the release branch? I updated this PR to do this. I changed the RELEASE.md files instead of README.md.

So we need one PR against the r2.7 branch and one against master. This way we ensure that the relnotes on the branch are always a subset of what's on master, each section matching.
After the r2.7 branch PR lands I will update the GitHub release notes to match.

Looks good


Information on how to prevent blocking?

I am trying to use node-fetch to fetch for automation purposes.
In this way, I am trying to use this similarly to how Puppeteer is often used.
Using node-fetch is simpler for smaller projects, so I would prefer to use it sometimes.
Is there information available on how to prevent blocking, similar to below for Puppeteer?
https://stackoverflow.com/questions/51731848/how-to-avoid-being-detected-as-bot-on-puppeteer-and-phantomjs
Regards.

change the user agant to something that a browser would send
also include a bunch of unnecessary request header that always get sent, like accept header