Apply minimum linewidth constraint only to a binary design of the waveguide mode converter

It looks like we are able to generate some useful designs for the broadband waveguide mode converter. Thanks to @mochen4 for assistance in getting this to work. Some additional tuning is likely required to improve the results further.
This required three main changes to the original setup of the multiwavelength minimax topology optimization:

Ensuring that the initial design of the final epoch (in which the minimum linewidth constraint is applied) is binary.  We realized that trying to apply the linewidth constraint to a greyscale design will immediately ruin the performance and produce a poor final design. The change involved increasing the number of epochs to include three new β values of 64, 128, and 256.

Turning on subpixel smoothing in the MaterialGrid due to the binarized designs.

Applying damping to the MaterialGrid to penalize intermediate values.

The final design using a minimum linewidth constraint of 50 nm (shown below as an image and added to this repository as a CSV file) generated using these changes shows decent performance for the reflectance and transmittance across the six wavelengths:
1. reflectance into mode 1: wavelength (μm), reflectance, reflectance (dB)
refl:, 1.265, 0.000485, -33.139015
refl:, 1.270, 0.001061, -29.741837
refl:, 1.275, 0.002018, -26.950658
refl:, 1.285, 0.005592, -22.523949
refl:, 1.290, 0.008463, -20.724575
refl:, 1.295, 0.012185, -19.141852
worst-case reflectance (dB):, -19.141852

2. transmittance into mode 2: wavelength (μm), transmittance, transmittance (dB)
tran:, 1.265, 0.907546, -0.421314
tran:, 1.270, 0.906566, -0.426007
tran:, 1.275, 0.904175, -0.437477
tran:, 1.285, 0.894339, -0.484978
tran:, 1.290, 0.886602, -0.522712
tran:, 1.295, 0.876944, -0.570282
worst-case transmittance (dB):, -0.570282

Some notes regarding this data. The optimization history shown below (maximum of the objective function of $R+1-T$ over the six wavelengths vs. iteration number) shows a performance degradation in the final epoch (iterations 300 - 400). If we inspect the designs at the end of the last two epochs (β of 128 and 256), they differ only slightly. This indicates that even small changes to the design are enough to affect its performance. Also, there are unexpected "spikes" present in the optimization history. Could these be due to the inner iterations of the MMA algorithm?
It's possible that these results can be further improved by adjusting the two hyperparameters used in the minimum linewidth constraint function as well as the β scheduling.
The next steps are to generate designs for additional values of the minimum linewidths beyond 50 nm.

$\beta$ = 128 (next to last epoch) [note: not completely binarized yet]

$\beta$ = 256 (final epoch)

cc @smartalecH

Regarding the spikes in the convergence plot: this is a normal feature of nonlinear optimization algorithms.  Sometimes, they take too large a step, which turns out to make the objective much worse, and then the algorithm has to somehow "backtrack" and take a smaller step (which in CCSA happens by increasing a penalty term).
This kind of thing is especially prominent in badly conditioned problems (with second derivatives in some directions much larger than in others), corresponding to optimizing along a "narrow ridge" or valley.

As a separate issue, when I measure the minimum lengthscale of the 90 nm design using @mawc2019's ruler in this repository, I get a value of 63 nm.

When I used another version of ruler, the result is 56.25 nm, which deviates further from the expected value. When I used
@mfschubert's version, the result is 100 nm, which matches well the the expected value. I will look into this issue in the next few days.

Ok so we are making progress. But as discussed, there's a few things to consider:
(1) in the last epoch, when we "calibrate" the dummy parameter (t) we need to take into account the values of the objective functions (the FOMs) and the GLC constraints themselves.
(2) this is the "fun part" of TO! Until somebody automates this part (any takers?) then each problem requires a bit of detective work to nail down the proper hyperparameters. For example, in addition to the dummy parameter, it's always good to look at the gradients of the FOMs and the constraint functions. The gradients will tell you a lot about what's going on... When trying to nail down a proper c0 value (for the GLC) you can look at the indicator functions themselves. I typically save images of all the gradients/inidcator functions at each optimization iteration so I can do a post mortem on the results.

@mawc2019's ruler code does not know the boundary conditions.  You have to manually extend the image with the waveguides on the 2 sides in order to take those into account.
It looks like there is a clear lengthscale violation here when you add in the waveguides — it looks to me like a sharp corner at the left (and the right) at the junction with the waveguides.    According to @smartalecH, masking by 1 pixel should handle this for you (it should filter as if that 1 pixel were infinitely extended), but according to @mochen4 there might be a problem with this — he padded to 20 pixels, and more generally padding/masking to 1 filter radius should suffice.

The underestimated minimum length scale given by ruler.py is due to the features in the red circles below.

If the left and right sides of the pattern are extended as follows, the minimum length scale estimated by ruler.py is 93.75 nm, which is close to the declared value, namely, 90 nm.

@mawc2019's ruler code does not know the boundary conditions. You have to manually extend the image with the waveguides on the 2 sides in order to take those into account.

In the current version of ruler.py, a design pattern is padded by its boundary values. Therefore, at least for the design pattern here, the code was expected to produce the correct result. However, if a design pattern contains some features that are close to the boundaries, something unexpected happens: the narrow zones between those features and the boundaries would give rise to an incorrect minimum length scale.

By enlarging the mask at the edge of the design region by one pixel to the filter radius, the measured lengthscale of the final designs (using @mawc2019's ruler) are now more consistent with the imposed lengthscale constraint. Based on this change, I have added designs with lengthscale constraints of 50 nm, 60 nm, 70 nm, 80 nm, and 90 nm. The measured lengthscale is consistently larger than the constraint except for the 80 nm case for which the measured lengthscale is 75 nm (which is within one pixel dimension). The performance metrics for each design are added to the README.md as well as an image.

Would be good to compare your objective function max(R + 1-T) to the same quantity for Ian's — ideally we should be doing at least as well as Ian's structure on this metric, since he's optimizing a somewhat different objective.   If the max(R + 1-T) data is not easily accessible for Ian, you can bound it above by max(R + 1-T) ≤ max(R) + max(1-T).

Would be good to compare your objective function max(R + 1-T) to the same quantity for Ian's

It should be possible to compute this quantity since it depends on the reflection and transmission that are calculated by the script checked into this repository.
Another option for comparison here would be the quantities that the script in this repository reports: worst case transmission and worst case reflection.

As discussed, those flat regions in the beginning are odd. They could be due to the subpixel smoothing... they could be due to the damping factor, or some permutation of the two?
Also, that hard flat regions at the end of the optimization are somewhat discouraging... my experience has taught me to expect something much more smooth and organic (like an asymptotic convergence etc.)
So as discussed, we should look at $t$, the gradients, and the indicator functions to try to gain some intuition...

(1) in the last epoch, when we "calibrate" the dummy parameter (t) we need to take into account the values of the objective functions (the FOMs) and the GLC constraints themselves.

Specifying an initial value for the epigraph variable based on the objective function and the GLC constraints seems to make the final design worse compared to setting the epigraph variable based on the objective function alone (at least for the test case involving a minimum lengthscale of 70 nm).
Why does this happen? As shown in the plot of the epigraph variable and objective function (R+1-T) vs. iteration number (second figure below), this is probably because the value of the GLC constraint is two orders of magnitude larger than the objective function (~100 vs. ~1). With such a large disparity in magnitude, the optimizer is mainly working to satisfy the GLC constraint rather than minimizing the objective function.

As discussed, those flat regions in the beginning are odd. They could be due to the subpixel smoothing... they could be due to the damping factor, or some permutation of the two?

I tried modifying the setup such that damping and subpixel smoothing were applied separately rather than together but this did not seem to affect the results. Specifically,  I applied damping and no subpixel smoothing for the first two epochs (β=8, 16) in which the design is mostly greyscale and subpixel smoothing (and no damping) for the remaining epochs (β = 32, 64, 128, and 256) in which the design is mostly binarized.

final design

reflectance/transmittance spectra of final design (performance is worse than reference design in this PR)
refl:, 1.265, 0.180689, -7.430678
refl:, 1.270, 0.176486, -7.532888
refl:, 1.275, 0.172268, -7.637961
refl:, 1.285, 0.163559, -7.863258
refl:, 1.290, 0.159343, -7.976674
refl:, 1.295, 0.155480, -8.083249
worst-case reflectance (dB):, -7.430678
tran:, 1.265, 0.556878, -2.542402
tran:, 1.270, 0.564747, -2.481457
tran:, 1.275, 0.570994, -2.433684
tran:, 1.285, 0.579970, -2.365943
tran:, 1.290, 0.582900, -2.344057
tran:, 1.295, 0.584649, -2.331048
worst-case transmittance (dB):, -2.542402

diff --git a/waveguide_mode_converter/mode_converter_meep_opt.py b/waveguide_mode_converter/mode_converter_meep_opt.py
index bcfdb6b..3aa26d1 100644
--- a/waveguide_mode_converter/mode_converter_meep_opt.py
+++ b/waveguide_mode_converter/mode_converter_meep_opt.py
@@ -183,7 +183,7 @@ def c(result, x, gradient, eta, beta):

     # backpropagate the gradients through mapping function
     my_grad = np.zeros(dJ_du.shape)
-    for k in range(opt.nf):
+    for k in range(len(frqs)):
         my_grad[:, k] = tensor_jacobian_product(mapping, 0)(
             v,
             eta,
@@ -242,6 +242,13 @@ def glc(result, x, gradient, beta):
     gradient[0,1:] = g1.flatten()
     gradient[1,1:] = g2.flatten()

+    t1 = (M1(v) - b1) / a1
+    t2 = (M2(v) - b1) / a1
+
+    print(f"glc:, {result[0]}, {result[1]}, {t1}, {t2}")
+
+    return max(t1, t2)
+

 def straight_waveguide():
     """Computes the DFT fields from the mode source in a straight waveguide
@@ -301,12 +308,15 @@ def straight_waveguide():
     return input_flux, input_flux_data

-def mode_converter_optimization(input_flux, input_flux_data):
+def mode_converter_optimization(input_flux, input_flux_data, use_damping,
+                                use_epsavg):
     """Sets up the adjoint optimization of the waveguide mode converter.

     Args:
       input_flux: 1darray of DFT fields from normalization run.
       input_flux_data: DFT fields object returned by `get_flux_data`.
+      use_damping: whether to use the damping feature of `MaterialGrid`.
+      use_epsavg: whether to use subpixel smoothing in `MaterialGrid`.

     Returns:
       A `meep.adjoint.OptimizationProblem` class object.
@@ -316,8 +326,8 @@ def mode_converter_optimization(input_flux, input_flux_data):
         SiO2,
         Si,
         weights=np.ones((Nx,Ny)),
-        do_averaging=True,
-        damping=0.05*2*np.pi*fcen,
+        do_averaging=True if use_epsavg else False,
+        damping=0.02*2*np.pi*fcen if use_damping else 0,
     )

     matgrid_region = mpa.DesignRegion(
@@ -410,8 +420,6 @@ def mode_converter_optimization(input_flux, input_flux_data):
 if __name__ == '__main__':
     input_flux, input_flux_data = straight_waveguide()

-    opt = mode_converter_optimization(input_flux, input_flux_data)
-
     algorithm = nlopt.LD_MMA

     # number of design parameters
@@ -437,9 +445,10 @@ if __name__ == '__main__':
     epivar_history = []
     cur_iter = [0]

+    beta_thresh = 16
     betas = [8, 16, 32, 64, 128, 256]
     max_evals = [80, 100, 120, 130, 150, 100]
-    tol_epi = np.array([1e-4] * opt.nf)
+    tol_epi = np.array([1e-4] * len(frqs))
     tol_lw = np.array([1e-4] * 2)
     for beta, max_eval in zip(betas, max_evals):
         solver = nlopt.opt(algorithm, n + 1)
@@ -452,10 +461,21 @@ if __name__ == '__main__':
             lambda r, x, g: c(r, x, g, eta_i, beta),
             tol_epi,
         )
+
+        opt = mode_converter_optimization(
+            input_flux,
+            input_flux_data,
+            True, # use_damping
+            False if beta <= beta_thresh else True, # use_epsavg
+        )
+
         # apply the minimum linewidth constraint
         # only in the final "epoch" to an initial
         # binary design from the previous epoch
         if beta == betas[-1]:
+            res = np.zeros(2)
+            grd = np.zeros((2,n+1))
+            t = glc(res, x, grd, beta)
             solver.add_inequality_mconstraint(
                 lambda r, x, g: glc(r, x, g, beta),
                 tol_lw,
@@ -464,12 +484,16 @@ if __name__ == '__main__':
         # execute a single forward run before the start of each
         # epoch and manually set the initial epigraph variable to
         # slightly larger than the largest value of the objective
-        # function over the six wavelengths.
+        # function over the six wavelengths (and the lengthscale constraint).
         t0 = opt(
             [mapping(x[1:], eta_i, beta)],
             need_gradient=False,
         )
-        x[0] = np.amax(t0[0]) + 0.1
+        x[0] = np.amax(t0[0])
+        if beta == betas[-1]:
+            x[0] = 1.05 * max(x[0], t)
+        else:
+            x[0] = x[0] + 0.1
         print(f"data:, {beta}, {t0[0]}, {x[0]}")

         x[:] = solver.optimize(x)

As discussed, those flat regions in the beginning are odd. They could be due to the subpixel smoothing... they could be due to the damping factor, or some permutation of the two?

I tried modifying the setup such that damping and subpixel smoothing were applied separately rather than together but this did not seem to affect the results.

I maintain that the initial flat region is due to the incorrect adjoint gradients around the initial guess, i.e., x=0.5*np.ones(Nx*Ny), even with do_averaging=False and damping=0, as tested here.
Fortunately, the adjoint gradients are correct at a random design pattern (and maybe also correct at many other design patterns). Consequently, if the initial guess is a random structure, the initial flat region does not appear, as demonstrated here.
(Maybe in some cases, the initial flat region does not appear even though the adjoint gradients are incorrect, but such a lucky situation does not seem to happen every time.)

Consequently, if the initial guess is a random structure, the initial flat region does not appear

Even with a random rather than a uniform initial structure, the "flat region" at the start of the first epoch is still present.

The best thing to do at this point is to closely look at all the outputs (gradients, indicator functions, FOM values, $t$, etc.) and try to piece together what's going on (and why).
The fact that the dummy parameter started to go down, and then flat-lines shows that something is going on. Looking at all the data is the only way to figure out what that something is.

Even with a random rather than a uniform initial structure, the "flat region" at the start of the first epoch is still present.

Perhaps my previous test on a random structure was not presentative. What is your random seed? I can test the gradients related to your random structure.

As discussed, we could try "scheduling" the a1 parameter (like we do with $\beta$). For example, start with a relatively high a1 (e.g. 0.1) and gradually ramp it down (0.01, 0.001, etc).
I still think there is something else going on here...

We also discussed the importance of checking the gradient as we go... there are some obvious checks you can perform just by looking at it (weird nans, asymmetries, etc) but it's also good to do some actual checks (e.g. with a directional derivative) to gauge things quantitatively.

Another thing to do is to set opt.set_param("verbosity", 1) to see the internal progress of the MMA or CCSA algorithm, to see if it is getting stuck on inner iterations (e.g. if the "rho" penalty parameter is increasing without bound).   See the internal parameters for MMA in the nlopt docs.

We also discussed the importance of checking the gradient as we go... there are some obvious checks you can perform just by looking at it (weird nans, asymmetries, etc)

There seems to be an inconsistency between the final design (binarized) and its gradient. While the $L_\infty$ norm of the gradient does not reveal NaNs, etc, the regions in which its magnitude is largest does not seem to correlate with the topology of the final design. In fact, there seems to be practically no correlation between the final design and its gradient (or sensitivity map).
We would expect the gradient map to be mostly nonzero along the boundaries where the design transitions discontinuously from a weight of 0 to 1.
1. final design

2. gradient for a single wavelength [needs to be rotated 90° CW to be consistent with the design in (1)]

3. objective function history (maximum over six wavelengths)

Try looking at the gradient before backpropagating the smoothing filter
Maybe superimpose it on the structure (and make sure your image rotations are consistent etc)

Four major changes which seem to produce better results:

The objective function is now [R,1-T] across the six wavelengths rather than R+1-T.
The edge of the design region is padded by a filter radius rather than a single pixel which produces measured length scales of the final design that are more consistent with the imposed constraint.
The initial value of the epigraph variable of the final epoch (in which the linewidth constraint is imposed) now takes into account the value of the constraint itself to ensure a feasible starting point (previously the choice of the initial epigraph variable only involved the objective function).
The GLC hyperparameters have been modified to produce final designs which do not significantly degrade the unconstrained designs at the start of the final epoch.

I have added an additional set of results for designs with imposed minimum feature sizes of 100 nm, 125 nm, 150 nm, 175 nm, 200 nm, and 225 nm. The results in the README.md have been updated to include only the worst-case reflectance and transmittance values for each design (rather than the per-wavelength values).
These results, however, are a bit inconsistent: e.g., the design with minimum feature size of 200 nm has a measured feature size of 325 nm and significantly outperforms the design with 175 nm feature size with measured feature size of 175 nm . This suggests that the results can probably be improved.


Makes KZPlaygournds work with injectionforxcode!

Hi Krzysztof, Very impressed with KZPlaygrounds but can’t believe I didn’t do this before now. If you add these three lines you can use injection without the dyci setup. Cheers, John

nice, thanks!


An experiment on ImageNet 1K

Hello author,
Thanks for the release of the code of your paper.
For ImageNet 1K, you used 50 classes as ID and other 950 classes as OOD.
If you don't mind, could you perform other options such as (ID: 100, OOD:900 or ID: 500, OOD:500)?
Thank you in advance! ^_^

Thank you for your comment.
You can perform various experiments on any IN-OOD split ratio setups.
All you need is to simply adjusting load_split_data.py.


CC Certificate: Canvas not emailing

@robmyers
It looks like the Canvas instance you created is still not letting us send out emails/invitations to people. Everyone I tried to invite yesterday has a "pending" next to their username, including my email to my personal address (adding myself as a student to test functionality). I never received the email in my personal email inbox or junk mail, and it's been about 24 hours.
Here's where I am looking: https://lms.certificates.creativecommons.org/courses/1/users#.
The extra confusing thing is: it sounds like Cable and Tim received invites from last week, when you tried inviting them. Can you look into why I cannot add students?

This may in part be due to this:

@jennryn Publishing then re-sending seems to be working. Let me know if you've received an email?

Done. We had to publish the course. I Have Learned.


Very long tile loading

Hi!
I'am using osm tile server http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png but tiles loading to long. Even it can't be loaded with 504. I'm in Russia.
Can you explain what am i doing wrong or give one of the fastest tile server?

Leaflet has nothing to do with this — contact the maintainers of the OSM tile server.


Bug Description
Hey @chrisgrieser wasn't sure of another way to get hold of you outside a GitHub issue, apologies for doing it this way. Feel free to connect with me on email at<EMAIL_ADDRESS>(based on my GitHub handle) if you like.
Anyway, I'm the maintainer of https://github.com/andrewferrier/debugprint.nvim, just thought you might be interested in this since there's some similarity with what you're doing with nvim-chainsaw. I guess we came to some of the same ideas independently which is great, just thought you might like to know about it in case there's any ideas you want to adapt or combine efforts in some way. Totally up to you...
By the way, I use both your gx.nvim and nvim-various-textobjs in my own dotfiles, thanks so much for maintaining these!
Relevant Screenshot
No response
To Reproduce
x
neovim version
x

Make sure you have done the following

[X] I have updated to the latest version of the plugin.

Oh, and in the interests of full transparency, this is where I became aware of nvim-chainsaw: https://www.reddit.com/r/neovim/comments/1ca3rm8/comment/l17d44q/. I did add it to my README comparison table (any corrections gladly accepted!) and added AppleScript support (good idea) to debugprint (I know you're MIT licensed but still wanted to tell you in the interests of full disclosure!).

Hi! Yeah, I also wasn't aware of there already was a similar (lua) plugin.
Yeah, I can see that our plugins follow a similar goal. And I think debugprint is definitely more feature rich. Nonetheless, I think I'll keep on using chainsaw, simply for the fact that the code base is much more compact (~400 lines vs. ~3000 lines according to tokei), making it easy to maintain.
I also don't mind the healthy "competition", though I prefer to see it as a healthy redundancy which makes ecosystems more stable overall. (Well, at least if it is not in oversaturated areas such as status line or session management plugins. 😅)

I did add it to my README comparison table (any corrections gladly accepted!)

You might add the fact that chainsaw supports a bunch of log statement types (beepLog, timeLog, etc.). Or the LoC count :P
Anyway, also added a small section on similar plugins to the chainsaw-docs to point people to debugprint if they are looking for more functionality.

added AppleScript support (good idea) to debugprint (I know you're MIT licensed but still wanted to tell you in the interests of full disclosure!).

Haha, no worries! One or two lines of code does really is such a small amount that is really does not cross the threshold of requiring credit!

Hi! Yeah, I also wasn't aware of there already was a similar (lua) plugin.
Yeah, I can see that our plugins follow a similar goal. And I think debugprint is definitely more feature rich. Nonetheless, I think I'll keep on using chainsaw, simply for the fact that the code base is much more compact (~400 lines vs. ~3000 lines according to tokei), making it easy to maintain.

Of course, totally fine, wouldn't expect you to give up your project :)

I also don't mind the healthy "competition", though I prefer to see it as a healthy redundancy which makes ecosystems more stable overall. (Well, at least if it is not in oversaturated areas such as status line or session management plugins. 😅)

Haha yes, I think that's a much better attitude  :) Hopefully an opportunity to bounce ideas off each other too.

You might add the fact that chainsaw supports a bunch of log statement types (beepLog, timeLog, etc.). Or the LoC count :P

I think that's totally fair! My table was perhaps a little biased on reflection. I've added some of that, although I may adopt some of those ideas for debugprint, let's see ;) I had thought about adding support for 'sleeps' also.

Anyway, also added a small section on similar plugins to the chainsaw-docs to point people to debugprint if they are looking for more functionality.

Cool, I appreciate that, that's fantastic. Obviously I'll keep the comparison table in my README too and will try to keep it fair and balanced :) Any feedback always welcome...

added AppleScript support (good idea) to debugprint (I know you're MIT licensed but still wanted to tell you in the interests of full disclosure!).

Haha, no worries! One or two lines of code does really is such a small amount that is really does not cross the threshold of requiring credit!

:)
Feel free to close this issue by the way. You can always reach me on GitHub or at the email I mentioned if you want to discuss something that's not specifically an issue.

sure, will do!


[REQUEST] Set / get Custom Item on Suggestion List when user typing

Hi thank you for writhing this awesome library it helps me to build faster on my project. Okay now get to the point :)..  I want to pass object information in the suggestion list and get that value like, username, title, id, and imageUrl.
So I've made some changes on the adapter for the suggestion result when user typing on the search field, it turns out I must change other class too and copying the classes (most of them to my folder project), I just wondering if we can add custom Item in the SuggestionAdapter so I can easily add my custom Item to the suggestion list. and the get the selected item value when user click on the Suggestion list.
I've finished the feature and I just curious about this so I ask here so maybe I can get more code suggestion, thank you.

Hi, thank you. Next version of the library will have a lot of changes and I will try to fix every bug. But if you want to change the item of RecyclerView then you need custom adapter cause I have some important things like filtering database in the adapter. But I will consider to do some BaseAdapter class which you can extend and do some custom changes. Btw, that is a nice idea :D

Cool that's awesome, I'm glad giving you a nice idea.

+1

I am not really sure how to do it now, but I will try ASAP.

Right now I do not have time for BaseAdapter and things like that. Sorry guys.
But I hope I will finish release 3.0 soon.


Convert the plugin model to a Javascript based plugin system

Use a v8 engine. This has the added benefit that we cancel the context which will kill stuck or too slow / long running scripts.
Switching to Javascript might also be more user friendly.

This is now out of scope as replaced with runnable plugins.


Fix internal server errors on node errors

Would it make sense to do something with the value or log it somehow?

raise NodeConnectionException from exc will be catched and logged by Django: https://github.com/gnosis/safe-transaction-service/blob/master/safe_transaction_service/history/exceptions.py#L12


h5py for training on large datasets

I've pieced together from @edersantana and @jfsantos's commit history that there's HDF5 support for training Keras models on large datasets that cannot fit into RAM, but I've been unable to find instructions. The feature doesn't seem particularly documented, in fact.
I wonder if it's still actively supported, and if there are usage instructions somewhere. Just an example of how the HDF5 should be formatted, at least. Does it support multiple inputs/outputs, and so on?
Sorry if I'm missing something obvious!

here is the feature:
https://github.com/fchollet/keras/blob/90aafca585ca92d7ff558d811ff8eb8d60d7c3d4/keras/utils/io_utils.py#L7-L52
@carlthome and @jfsantos we kinda need to unit test that to serve as an example for how to use it. does anybody have time for that?

I'm really sorry, as I ended up never writing documentation for the feature. You basically have to call HDF5Matrix and pass the path to an HDF5 file and the name of the dataset inside that file that you want HDF5Matrix to point to. start and end enable you to make HDF5Matrix represent a slice of the dataset instead of the whole dataset (useful if you want to split the data somehow). You can also pass a function (or Python lambda) as a normalizer, which will be called on each slice of data you try to get from the matrix before returning the data to you.
After creating an instance of HDF5Matrix, you can pass it to model.fit as if it were a Numpy array. Note that allowing Keras to randomize minibatches will make it super-slow, as HDF5 is not well-suited for this kind of access. A workaround is to randomize your samples before saving them as HDF5 and then pass shuffle='batch' to model.fit.
If anyone wants to turn this into actual documentation, that would be great :)

I could absolutely type up some documentation and add tests, but it would be very helpful to see a basic code example with dummy data (just np.random or something).
Am I right in assuming that data is read from HDD, and not RAM when passing a HDF5Matrix to model.fit?

Here is a commented example on how to use HDF5Matrix: https://gist.github.com/jfsantos/e2ef822c744357a4ed16ec0c885100a3.
@carlthome Yes, the data is always read from the disk and not from RAM. HDF5Matrix is just a thin interface over h5py, so you can check the docs for h5py for more info.

I could take a stab at writing documentation for this. There's a couple of things I'm not sure about though. Shouldn't start and end be optional? And shouldn't there be a way to close the h5py.File?

Actually, never mind about the closing thing since I realized it shouldn't matter since we're only reading.

Great job @mezzode!

Could you add an example for using normalizer? What kind of transformations are possible? Can I for example resize images?

Hi @michaelschleiss ,
I've found that this works just fine. I imagine anything else would work similarly:
def normboth(x):
x = x.astype("float32")
rgb = np.load()
x -= rgb
x /= 255.
return(x)
trainImages = HDF5Matrix(inDir+hdf5Name, 'train_img', normalizer = normboth)

Hi guys, I found a wonderful solution to combine HDF5Matrix, generator and ImageDataGenerator.
That means you can random select batch data with data augmented fron HDF5 file by generator.
Here is link.


Audiokit 5 - background MIDI note play delays

macOS Version(s) Used to Build
macOS 12 Monterey
Xcode Version(s)
Xcode 13.4.1
Description
kAudioUnitErr_TooManyFramesToProcess error when app enters background with audio playing.
Please help. I have absolutely no idea. Sound plays well when app is foreground, but when it enters background, sound immediately glitches and delays.
private let sequencer = AppleSequencer()
private let metronome = MIDISampler(name: nil)
private let engine = AudioEngine()
private var metronomeTrack: MusicTrackManager

init() {
    self.metronomeTrack = sequencer.newTrack()!

    try? metronome.loadWav("my_audio_wav_file")

    let mixer = Mixer(metronome)
    let fader = Fader(mixer, gain: 50.0) // регулировка звука

    self.updateSequences()
    self.engine.output = fader

     try? engine.start()
     sequencer.play()
 }

Crash Logs, Screenshots or Other Attachments (if applicable)
2022-09-03 20:13:58.353958+0300 Metronome[72103:5358826] kAudioUnitErr_TooManyFramesToProcess : inFramesToProcess=3763, mMaxFramesPerSlice=1156
2022-09-03 20:13:59.377745+0300 Metronome[72103:5358826] kAudioUnitErr_TooManyFramesToProcess : inFramesToProcess=3763, mMaxFramesPerSlice=1156

I don't observe this behavior when using the MusicToy example in the AudioKit Cookbook. Try setting your session https://github.com/AudioKit/Cookbook/blob/2ce0d2fd0c6850cb4b6a5058309af0571b69f468/Cookbook/Cookbook/CookbookApp.swift

Answered by @NickCulbertson with no follow up, closing for now.


[FEATURE] ADDING BEM NAMING CONVENTION

Description
Objective
I want to add the BEM naming convention .
what is BEM Naming Convention
It is a known fact that the right styleguide can significantly increase development speed, debugging, and the implementation of new features in legacy code. Sadly, most CSS codebases are sometimes developed without any structure or naming conventions. This leads to an unmaintainable CSS codebase in the long term.
Use Case
The BEM approach ensures that everyone who participates in the development of a website works with a single codebase and speaks the same language. Using proper naming will prepare you for the changes in design of the website.
Proposed Solution
GIVING BEM CLASS NAMES TO EVERY CLASSES
Additional Information
No response
Attachments

Bhai Bhem we are using tailwind-css, hope they are following it :)
Leave all this , and seriously get to know stuffs yaar, kaha for this stupid gssoc points you are wasting your precious time,
Agar actual Mei sikhna hei, tho project setup kart, peel dekho project kya hei and the codebase, then message me on discord group. message me if only you are actually interested in learning, if this leaderboard is too important to you, don't join the group :)
All the best
@Ayushmaanagarwal1211

Same comment as https://github.com/krishnaacharyaa/wanderlust/issues/439#issuecomment-2196229831 @MuraliDharan7

@krishnaacharyaa  yes bro my bad but  but actually meine kafi sare tabs khol rkhe the uski vjh se glti se issue raise krte time kisi aur ka code dekhliya usmien classes thi to mujhe aisa lga ki classes use ki hein tbhi meine issue raise krdiya .

Nahi no problem bhai @Ayushmaanagarwal1211 , I know you are spamming multiple projects, even  if you do fine. But ground reality bool ra hu, aapko choodtaa hu decision lene kaa, Do you want a leaderboard rank which no one gives a damn about, or accha knowledge from which you can land jobs :)
This is coming from a guy you has gold model in Btech CS, and same guy who is joining Zomato in couple of weeks.
Dekho what you wanna do
@shivansh84ya @MuraliDharan7 same comment to you both swell

Nahi no problem bhai @Ayushmaanagarwal1211 , I know you are spamming multiple projects, even if you do fine. But ground reality bool ra hu, aapko choodtaa hu decision lene kaa, Do you want a leaderboard rank which no one gives a damn about, or accha knowledge from which you can land jobs or freelance :)
This is coming from a guy you has gold model in Btech CS, and same guy who is joining Zomato in couple of weeks. Dekho what you wanna do I'm here if you seriously wanna learn :) but please don't randomly raise issues and say I want to work on them @shivansh84ya @MuraliDharan7 same comment to you both swell

In Zomato as a Technical Lead? haha

@MuraliDharan7

In Zomato as a Technical Lead? haha

This whole project is built on the concept of helping people and I have quite a work in life to do which fetches me handsome money, I don't even get paid to give you insights of real life and help you people.
IF you don't want real truth or can't accept it, the least I expect you to zip your mouth. Here I never intended to brag about me. But if that's the only thing if you are able to take away.
Anyways all the best, for you if not this project You'll get thousand others, but please don't use sarcasm and make fun with people who actually want something better from you. It really hurts.

And @MuraliDharan7 best of luck in telling to interviewer that you added scroll to top feature in 100 projects, hopefully he'll get impressed. Anyways it is better than gold medal and Zomato technical lead ;)

Enough of lessons for today, enjoy life !!

@krishnaacharyaa  ThankYou for your guidance so far, you have said the right thing, I think I have been doing Open Source in wrong way. Now I learnt from you, But you should not have said about the zomato at all and other things as well. It was better if you really said about the contribution rule alone not other silly stuffs. Anyway have a great era.


Update $packageVersionID from String! to ID!

Resolves #19
DeletePackageVersionInput seems to have changed from String! to ID! for packageVersionId:
https://docs.github.com/en/graphql/reference/input-objects#deletepackageversioninput
Can't find the change in the Github API changelog though to confirm.
The ID scalar should match the shape of what's being sent through, and no need to change the response since docs claim it's returned as a string

Tested manually and works, thanks for the PR!


Some traces show 0μs

Bug description
It's not uncommon to see some spans from the QE take 0μs. These spans are fast, but not 0μs fast 😄

@millsp mentioned that we might be sending millisecond granularity back from Query Engine, so if a span takes less than 1ms, we'll send back 0ms. Worth investigating
How to reproduce

(Placeholder until we have more installation setup) Setup tracing with Jaeger using our docs and run it against your app a bunch of times
Expected behavior
Show an accurate duration at the highest granularity we can reliably provide.
Prisma information

// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema

generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["tracing", "interactiveTransactions"]
}

datasource db {
  provider = "sqlite"
  url      = "file:blog.db"
}

model Post {
  id        Int       @id @default(autoincrement())
  title     String    @unique
  content   String
  createdAt DateTime  @default(now())
  comments  Comment[]
}

model Comment {
  id        Int      @id @default(autoincrement())
  comment   String
  createdAt DateTime @default(now())
  post      Post?    @relation(fields: [postId], references: [id])
  postId    Int?
}

Environment & setup

OS:  OSX
Database:  SQLite
Node.js version:  v16.14.2

Prisma Version
Environment variables loaded from .env
prisma                  : 4.1.0
@prisma/client          : 4.1.0
Current platform        : darwin
Query Engine (Node-API) : libquery-engine 8d8414deb360336e4698a65aa45a1fbaf1ce13d8 (at<EMAIL_ADDRESS>Migration Engine        : migration-engine-cli 8d8414deb360336e4698a65aa45a1fbaf1ce13d8 (at node_modules/@prisma/engines/migration-engine-darwin)
Introspection Engine    : introspection-core 8d8414deb360336e4698a65aa45a1fbaf1ce13d8 (at node_modules/@prisma/engines/introspection-engine-darwin)
Format Binary           : prisma-fmt 8d8414deb360336e4698a65aa45a1fbaf1ce13d8 (at node_modules/@prisma/engines/prisma-fmt-darwin)
Default Engines Hash    : 8d8414deb360336e4698a65aa45a1fbaf1ce13d8
Studio                  : 0.467.0
Preview Features        : tracing, interactiveTransactions

/**
 * Defines High-Resolution Time.
 *
 * The first number, HrTime[0], is UNIX Epoch time in seconds since 00:00:00 UTC on 1 January 1970.
 * The second number, HrTime[1], represents the partial second elapsed since Unix Epoch time represented by first number in nanoseconds.
 * For example, 2021-01-01T12:30:10.150Z in UNIX Epoch time in milliseconds is represented as<PHONE_NUMBER>150.
 * The first number is calculated by converting and truncating the Epoch time in milliseconds to seconds:
 * HrTime[0] = Math.trunc(1609504210150 / 1000) =<PHONE_NUMBER>.
 * The second number is calculated by converting the digits after the decimal point of the subtraction,<PHONE_NUMBER>150 / 1000) - HrTime[0], to nanoseconds:
 * HrTime[1] = Number((1609504210.150 - HrTime[0]).toFixed(9)) * 1e9 = 150000000.
 * This is represented in HrTime format as [1609504210, 150000000].
 */
export declare type HrTime = [number, number];

Engine PR https://github.com/prisma/prisma-engines/pull/3144

Fixed in: https://github.com/prisma/prisma/pull/14991


Make the portable settings persistent

Persist "KeePass.config.xml"

Persist "KeePass.config.xml"

Closes #10218

Relates to #XXXX

[ x] I have read the Contributing Guide.

    "pre_install": "if (Test-Path \"$persist_dir\\KeePass.config.xml\") { Copy-Item \"$persist_dir\\KeePass.config.xml\" \"$dir\" }",
    "uninstaller": {
        "script": "if (Test-Path \"$dir\\KeePass.config.xml\") { Copy-Item \"$dir\\KeePass.config.xml\" \"$persist_dir\" -Force }"
    },

Please not that you implementation does not achieve the results than mine. The file in the persisted folder is not updated until the app is uninstalled. This makes backing the persisted folder not possible and manual deletion of the app without uninstall will loose the settings. "KeePass.config.xml" should be hard linked to the persisted file.

see: https://github.com/ScoopInstaller/Extras/commit/23c818386fa737cb516eacb50908b2a32550734b


Opt CI Process

Close #405
Opt CI process as follows:
Stage 1: Common Checks
Stage 2: Is master or changed files has .cc or .h
Stage 3: Build TF serving if stage 2 is true
Signed-off-by: NaNAGISaSA<EMAIL_ADDRESS>

@shiyingjin @amadeus-zte Any suggestions?

WORKSPACE, .bazelrc, BUILD, *.BUILD, *.proto also needed to consider.

bors r+


Why is the Connection boxed by default?

Hey,
I was just skimming over the API and I was wondering why connect and accept return a boxed Connection? Connection is neither a trait object nor dynamically sized, so why the need for the box?

Hello,
Connection is self-referencing, so it can't be moved or the internal reference (which is actually a raw pointer) would become invalid. So we use Box to get a more stable address on the heap. In theory we should use Pin<Box<...>> but Pin doesn't expose the APIs we need.

Ahh, thanks for the clarification. One more question: could this be hidden inside Connection‘s API?
This feels like a nitty gritty API internal to me that shouldn‘t be exposed to the user (at least from my limited understanding). Especially because the user might be tempted to move the connection out of the box, effectively breaking it. For example, Connection could be made into a newtype around the current Connection.

I'm not sure the indirection of wrapping Connection would be worth the effort, though I do agree that this should be documented. I'll reopen the issue to track that part.

I could file a PR to do this. I'd just need some guidance as to what to do with the documentation on Connections methods. Should they move to the newtype or be copied (so that they'd exist twice)? And also, would you be fine with moving the connection implementation from lib.rs into a separate module, so that lib.rs solely wraps Connection into a newtype and exports the public API surface?

@NeoLegends it's not only about actually having to do the initial work to implement that, but the maintainance burden the change adds in the future (e.g. the public Connection APIs would need to be duplicated to handle the wrapped, which makes it somewhat harder to understand and add new APIs).
So for the moment I'd rather not do anything more than documenting the current situation. We can always reconsider in the future.

e.g. the public Connection APIs would need to be duplicated to handle the wrapped

I don't think this is true - you already accept it by reference, and it will be perfectly fine to pass pointer from Box as if it was a pointer to unwrapped structure.

@RReverser if I understand correctly, the proposal here is to have something like pub struct ConnectionWrapper(Box<Connection>) and make Connection itself private, so you'd have to mirror the private Connection API in ConnectionWrapper.

@ghedo Correct. I think though, that the additional maintenance overhead will be minimal. When I made my first tests (and bumped into the questions I asked), the newtype added a mere 100 lines or so to lib.rs, not including some one-time churn like converting connect / accept to return the newtype and so on.

Connection is self-referencing, so it can't be moved or the internal reference (which is actually a raw pointer) would become invalid. So we use Box to get a more stable address on the heap. In theory we should use Pin<Box<...>> but Pin doesn't expose the APIs we need.

FWIW there's nothing stopping users from pulling the connection out of the box and putting it back in another one, triggering UB. What specific APIs do y'all need that Pin<Box<Connection>> wouldn't allow?

@cramertj basically this https://github.com/rust-lang/rust/issues/60245, though it could potentially be implemented in some other uglier way.

@ghedo i believe the required features will be stabilized as part of 1.39. https://github.com/rust-lang/rust/pull/63985

Yep, I made that PR :)

Made https://github.com/cloudflare/quiche/pull/249 based on Rust 1.39.


MINOR: Update README to mention the minimum required gradle version to 4.6

After #5602 we need Gradle 4.6 as minimum required version.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

Merged to trunk, 2.0, 1.1 and 1.0.


Provide paged result access for resources other than VirtualMachine and ResourceGroup

The OperationResponse class provides the function getNextLink() to retrieve the next result page if the number of results exceeds a certain threshold. It works for VirtualMachineOperations and ResourceGroupOperations as these class has the function listNext(). However I don't see this function or its equivalent for other kinds of resources (e.g. NetworkSecurityGroup, VirtualNetwork). Could you please verify and fix it?
Thanks.
Chuong

This is available in 1.0.0-beta1,  NetworkSecurityGroup::listNext() https://github.com/Azure/azure-sdk-for-java/blob/1.0.0-beta1/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/NetworkSecurityGroupsOperationsImpl.java#L800

In general, if there isn't a next link, it means the max capacity for this type of resource is small enough for one page to handle.
If Rest API does return a next link but the SDK fails to provide one, please do file a bug.
Thanks!


Update user and developer guide

Pull Request Test Coverage Report for Build 636

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

Totals

Change from base Build 635:
0.0%

Covered Lines:
3414

Relevant Lines:
3885

💛  - Coveralls


Creating Custom dataset like AVA

Hi researchers
I have been looking for how to create the dataset like AVA for a long time.
If anybody has any idea about that, please give feedback. I appreciate that.
Thank you in advance!

Can you tell me what dataset you are creating?


Not working on Chrome

When opening the web app none of the buttons work, Chrome then says the page is unresponsive repeatedly.

if ios,try the 微软edge/google chrom

i test skyemu v2 ,it can run in safari !!!LCD very good ,but donot for pixed in game,
ios mobile see here https://skyemu.nenge.net/


WIP: configure/deploy via helm charts

This commit is an example of using charts to deploy each
openwhisk component via charts instead of managing with ansible.
Taken a little bit further the entire application could be
deployable using a single chart (which references other charts).
All of the logic in the ansible scripts can be constructed with
kubernetes and helm functionality.
For instance deploying nginx is now:
helm install --name demo --set nginx.domainName=localhost charts/nginx

The certs are generated by an init container automatically.
This is a WIP.  I wanted to open it up for review/comments.

@berndtj IMO this looks very interesting. I think it makes sense to use a tool more native to Kube to deploy OpenWhisk.
For Mesos we're following a similar approach, reusing DC/OS Universe.
I'm not familiar with helm but I'd love to see it in action with OpenWhisk once this PR is complete.

There was some communication in the OpenWhisk Kube channel and so I;m going to capture the jist of that discussion for reference:
This PR seems like a great idea that I think everyone would benefit from. It solves the issues where a lot of properties/environment variables need to be defined correctly all over the place.
Sadly I think that there is a bigger issue before this can be full and easily implemented.
What I think we first need is one yaml file that defines all the values users need to define/have defaults if users do not define those values. Then we need a consistent way to populate that yaml file with environment deployment properties. This way that one yaml file can feed into deployment option like: Kube, Ansible, Docker-Compose, mesos, etc.

just created another ticket in k8s official charts repo:
https://github.com/kubernetes/charts/issues/1648
Once this is stable, can we also submit a PR in kubernetes charts repo?

@berndtj, are you still working on this? as we are also trying to write a chart to deploy open whisk, not sure if we can cooperate together?

I/we are working on it.  I was on PTO for the past couple weeks, and I delegated to a colleague.  That said, I'm sure he would like some help with it.  I'm trying to get his github ID so that you can connect.
I also chatted with @DanLavine on slack yesterday about this.  I think the one concern he has about a single config file for all deployment types could be overcome.  It may require an additional tool, but that would be  a separate effort that this could easily work with.

yeap, I agree. But anyway, we would still look forward to working out a separate charts deployment solution first, please let me know the developer's id so that we can have some conversation over this topic, thank you.

@tenczar is coming up to speed and will be working on it.

@berndtj, @tenczar and @DanLavine, I created a project using Helm to deploy open whisk, now it's working on the latest open whisk build. I created a repo and uploaded the draft code, PTAL, thanks:
https://github.com/xingzhou/Deploy_OpenWhisk_with_Helm

Awesome @xingzhou!  I'm going to close this WIP.

Amazing, @xingzhou ,great job!


Add motion blur support

Provide 2 BVH -- a "from" and "to" BVH
Provide a special traversal function that samples both with interpolation between the two
When path tracing randomly select an interpolation value to use for a full sample

The above only works for linear movement, though. For nonlinear interframe motion or rotation the animation can be broken up into "steps" (a step including a "from" and "to" bvh) and a certain and consistent number of samples can be taken along each step.
TODO

confirm that interpolating triangles and bounds positions between two BVHs is valid.

Demos

model with propeller
model with wings (dragon, bird)

Models

Cessna: https://sketchfab.com/3d-models/plane-cedc8a07370747f7b0d14400cdf2faf9
Humming Bird: https://sketchfab.com/3d-models/hummingbird-flying-4e6d591f6e50493aa5e31355084fc4e8
Dragon: https://sketchfab.com/3d-models/dragon-flying-78f809b98bbe426e94d4024dc894b206


Is this plugin useful now that Webpack 4 has a parallel option?

I noticed parallelism listed in Webpack 4's config. What benefit does HappyPack offer now that I'm seeing parallelism as a native Webpack config value?
Source:
https://webpack.js.org/configuration/other-options/#parallelism

@Sawtaytoes That option seems to have to do with how many modules are processed on the main thread rather than on separate threads.

What would that look like? Currently, I have HappyPack using as many threads as are available in os.cpus().length.

well i see no improvement with webpack 4

I was about to post the same issue. In Task Manager monitoring tool, with Webpack 3 I noticed only one thread active. With webpack 4 I noticed 4 cores/ 8thread active when compiling.
So is there still a benefit to using happypack with webpack 4?

I noticed, without using Happypack, that Webpack 4.16.4 is indeed using multiple threads:

I wanted to test whether using Happypack would result in decreased build time, however I wasn't able to make it work:
ERROR in ./index.tsx
Module build failed (from ../node_modules/happypack/loader.js):
Error: You may be using an old version of webpack; please check you're using at least version 4

even though I'm using webpack 4.

@grzegorzjudas Did you ever figure this out? I wanted to try the same experiment with adding Happypack to our Webpack 4 config, and am running into the exact same error.

webpack v4 take parallel process acquiescently

@mjlangan I did not - figured the semver/regex that detects the webpack version used in happypack is incorrect/out-of-date.
I recommend trying out most recent version of happypack and if it's still there, raising an issue for happypack. I removed happypack myself, since the most important thing for me (multithreading) is working just fine without it.


About LPM method

请问

出现运行错误，如何解决？

@xiaosen-wang @LinQinLiang

We have addressed this issue and updated the code.


DIfferent snippet based setup code

The code for Snippet based setup on this documentation page is different than the one in github's readme of appinsight-js (https://github.com/microsoft/ApplicationInsights-JS). Which one is correct? Or are they equivalent?

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

ID: d56ecb14-9e66-5313-a381-d2824ec3d1e2
Version Independent ID: ff056ac8-ae76-be10-6895-757333a28e05
Content: Azure Application Insights for JavaScript web apps - Azure Monitor
Content Source: articles/azure-monitor/app/javascript.md
Service: azure-monitor
Sub-service: application-insights
GitHub Login: @DawgFan
Microsoft Alias: mmcc

@yohny Thank you for the feedback!  We are investigating this and will get back to you shortly.

I see this was asked 3 weeks ago.  I am seeing this same issue.  Is there an update?

My understanding is that this snippet does belong in the docs, however there are additional steps that need to be taken before the docs are updated.  @lgayhardt is currently working on this.

@yohny Thanks for the reminder, the snippet on github README is the most updated one, and the doc page is now up to date: https://docs.microsoft.com/en-us/azure/azure-monitor/app/javascript#snippet-based-setup
Please close the issue if no further question, thanks.@lgayhardt

@yohny We are going to close this thread as resolved but if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.

is there some delay until changes are reflected in documentation? because as of right now the Snippet setup sample code is still different between readme and docs.

@yohny Sorry for the confusion... updating again, it should be all good today. 👀


Disabled cocoapods cache

Cocoapods cache was often out of date and would produce errors when trying to run pod install on Travis.
pod install was not required to be run because we keep the cocoapods files in our git repository. Usually pod install is not run on Travis if there is a Pods/ directory and Podfile.lock but the cache: cocoapods line seems to override this.

@Eitot instead of PR #915

@barijaona just to be clear, this is to work around a "bug" in Travis CI.
This comment https://github.com/travis-ci/travis-ci/issues/2484#issuecomment-52289189 describes the expected behaviour in Travis CI which appears to be broken if you have cache: cocoapods set in the Travis config.


update and improve Javadoc, especially for RedmineManagerFactory class.

pushed a major javadoc update

https://github.com/taskadapter/redmine-java-api/commit/73ef5b96742b0528bbf3f1bedfc46f2ffbd0ab54


CUDNN_STATUS_INTERNAL_ERROR with batch size 40 on 8x2080RTX

@ajabri Have you encountered this stack trace? https://github.com/pytorch/pytorch/issues/51382
with batch size 35 everything works, with batch size 40 even the first iteration breaks, it uses 7Gb memory out of 11gb just before the exception

This is surprising I cannot fit 2x batch size on 4xtimes of GPUs...

This is surprising I cannot fit 2x batch size on 4xtimes of GPUs...

Okay, it seems that my cuda device 7 is faulty :( https://github.com/pytorch/pytorch/issues/51382#issuecomment-770242265

Okay, it seems that my cuda device 7 is faulty :( https://github.com/pytorch/pytorch/issues/51382#issuecomment-770242265


Adding cncf membership details. close #468

Deploy preview for landscape ready!
Built with commit c376f2f3274fe41323bf36d06174efd7283cf935
https://deploy-preview-489--landscape.netlify.com


Fix drag-dropping nodes to parent with internal nodes

When reparenting nodes (or moving within the same parent) within the SceneTreeDock all indexes were taking into account internal nodes. However, Node::move_child does move the child only within the group of nodes the given node belongs to (internal-front / non-internal / internal-back), its parameter is supposed to be such relative index. Hence an absolute index (including internal nodes) shouldn't be passed to it.
This PR makes the SceneTreeDock::_do_reparent method ensure only non-internal nodes are being moved, and changes all indexes to not take internal nodes into account (hopefully I haven't missed any :upside_down_face:; please double check the changes).
Fixes #78810 (TabContainer has internal TabBar node).

hopefully I haven't missed any 🙃

You did. Search the file for get_index(), seems like they all cause problem. Note that here
https://github.com/godotengine/godot/blob/46424488edc341b65467ee7fd3ac423e4d49ad34/editor/scene_tree_dock.cpp#L2627
you also need to do get_child_count(false).

hopefully I haven't missed any upside_down_face

You did. Search the file for get_index(), seems like they all cause problem. Note that here
https://github.com/godotengine/godot/blob/46424488edc341b65467ee7fd3ac423e4d49ad34/editor/scene_tree_dock.cpp#L2627
you also need to do get_child_count(false).

Ah, saw that and concluded it's fine... but indeed it could result in finding a lower_sibling which is a back internal node. Which shouldn't happen.

By "they all cause problem" I actually meant all calls in scene tree dock. Deleting nodes, changing node to root or instantiating all have the same bug.

By "they all cause problem" I actually meant all calls in scene tree dock. Deleting nodes, changing node to root or instantiating all have the same bug.

Ok, I've restricted some more code to non-internal nodes only. Haven't tested it at all though, just went with find-read-update manner (again, not sure if I've handled everything). :upside_down_face:
Alternatively I guess I could maybe add a method like Node::get_internal_index so its result could be passed to Node::move_child (and nodes could be readded with the same internal mode as they had).
Current combination of how Node::get_index/Node::move_child work is unfortunate, I see no way to obtain internal node's "internal index" aka index only within the front/back internal nodes (for front ones it's the same as the absolute index but back ones are problematic). And that's what's needed for moving.

Thanks!


[V1] Implement Cascade Attention

This PR implements a simple version of Cascade Attention.

Overall LGTM. The implementation is pretty clean. One optimization we can do in the future is having a wrapper CUDA kernel in flash attention so that we can save kernel invocation overheads. This is how FlashInfer does as well.
@raywanb since you've worked on FlashInfer cascade kernel integration in v0, can you also take a look at the current v1 interface and see if this interface can integrate FlashInfer easily in the future?

Yes, seems pretty straightforward to integrate Flashinfer!


Question: how does AUTH_HEADER work ?

@ahmetb I've played around with this app and I can successfully configure it to proxy a public image from either Docker Hub or quay.io on my custom domain.
I've tried using the AUTH_HEADER variable to expose private images (hosted on quay.io) to a non-authorized account but cound't get this to work. (my end goal is to have custom authorization handler).
What is unclear to me is should I set a value of
Basic XYZ where XYZ is the base64 encoded value you can find in ~/.docker/config.json or to some other value?
If you can explain how the authentication handshake happens between the client and the registry that would probably also help me.
Thanks.

The code should be pretty explanatory. I believe it's used for basic authentication.


hikari: 2.1.2 -> 2.2.2

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/hikari/versions.
meta.description for hikari is: "Stacking Wayland compositor which is actively developed on FreeBSD but also supports Linux"
meta.homepage for hikari is: "https://hikari.acmelabs.space"
meta.changelog for hikari is: ""
Updates performed

Version update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 2.2.2 with grep in /nix/store/gfd52qgrm09wr6xg58lar7jph38s7fyp-hikari-2.2.2

directory tree listing: https://gist.github.com/64192b92a717d68ca77c374684fb15cb

du listing: https://gist.github.com/b3f9ddb0965e79cfba388c1d39ce4bfe

Rebuild report (if merged into master) (click to expand)

3 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
0 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
hikari

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/gfd52qgrm09wr6xg58lar7jph38s7fyp-hikari-2.2.2 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A hikari https://github.com/r-ryantm/nixpkgs/archive/138f9de4d502690a5f7d3eb7273e487ee8830b76.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/gfd52qgrm09wr6xg58lar7jph38s7fyp-hikari-2.2.2
ls -la /nix/store/gfd52qgrm09wr6xg58lar7jph38s7fyp-hikari-2.2.2/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review 1

1 package built:

hikari

Maintainer pings
cc @jpotier for testing.

Note: I'm not dogfooding this just yet, so there may be minor bugs lurking around. Hopefully they would be reported, and we can then work on fixing them.


Exchange edges improvements

In Anytype we discovered that current synchronisation mechanism of exchangeEdges doesn’t provide for cases when we have threads empty logs (i.e. their heads are empty). For example in these cases we exclude such thread from exchange process and thus prevent other node to discover new logs.
To remedy that I created the same PR as we have in our fork. The idea is that we still exchange information about such threads and send default values for respective hashes. We also made things backward compatible (because essentially previously we also sent empty values as hashes when we responded to exchangeEdges request, because 0s are used by default).

Nice, LGTM 💪

Thanks, I see that the tests are failing. I ran them locally and they are fine, except that sometimes TestListenerClose test fails. I increased the timeout, can you please approve running the tests?

Okay CI passes. As the PR was approved, I'll take the liberty to merge it.


Row is not updated if modified value is part of a compound primary key

Precondition: You have a table 'permission' with the columns 'module' , 'role' , 'fk_contact_id'. These three columns form a compound primary key.
Problem: Trying to update a model or collection having a new value for 'role' does not work. Data remains unchanged. No SQL exception.
Reason:  False bindings in \Propel\Runtime\ActiveQuery\Criteria.php.
Example:
This query is generated: UPDATE permission SET role=:p1, WHERE permission.module=:p2 AND permission.role=:p3 AND permission.fk_contact_id=:p4
with these bindings
p1:role=guest (<-- update value)
p2:module=someModule
p3:role=guest (<-- WRONG, it should be the old value, e.g. 'admin', not 'guest')
p4:32
Binding p3 uses the update value instead of the old/current db value causing the SQL query to not affect any row since the WHERE statement will not match any records.
Workaround: Remove 'role' as primary key field

Yes, this is a known limitation. Will be fixed in PR #795

Is someone able to make a PR here with suggested changes? maybe part of that PR can be extracted into propel2 directly.


Clarification for User story 426

Dear Product Owner Oleh Nakonechniy!
There are Acceptance Criteria № 3 and 6:

The selected favicon image should be validated to ensure it meets the required format and size specifications.

The title field should have appropriate validation to ensure it is not left blank and meets any length or formatting requirements.

Perhaps it is worth creating two new User stories, which would describe in detail the valid and invalid data that should be filled in the 'Title' and 'Favicon' fields. And also the error messages for them.
What do you think about it?
With best regards Andrii Kukharyk.

jhgh
пн, 10 лип. 2023 р. о 21:22 Artem Puhach @.***> пише:

Closed #441 https://github.com/ita-social-projects/ZeroWaste/issues/441
as completed.
—
Reply to this email directly, view it on GitHub
https://github.com/ita-social-projects/ZeroWaste/issues/441#event-9778113369,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BBAZLHFSR4R5EGR4NJB4VOTXPRB43ANCNFSM6AAAAAA2BUZKNQ
.
You are receiving this because you were assigned.Message ID:
@.***
com>


Add optimization and symbols for xmake build

Description
Fixes #462
Type of change
Bug fix (non-breaking change which fixes an issue)
How Has This Been Tested?
Tested with xmake from cmd and tested with VS2022 generated project.

Using  xmake project -k vsxmake2022 -y, VS displays /O2 with all build modes for all targets with this patch.
I tested both with the mod set up and standalone, same results.

Interesting... It looks like xmake appends the correct optimization flags at build time instead of setting them in the vs project.
When I run a verbose build, I can see that the correct flags are being set in the logs.

When I manually try and change the optimization setting from within VS, it adds the following to the vsproject file
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='CasePreserving__Dev__Win64|x64'">
    <ClCompile>
      <Optimization>MinSpace</Optimization>
    </ClCompile>
  </ItemDefinitionGroup>

Which will likely get trampled by xmake upon a xmake project -k vsxmake2022.
So this would appear to be a side effect of how xmake integrates with VS project files and not a failure in functionality.
Thoughts?

Thoughts?

Looks like xmake with VS isn't actually using VS to build but simply executes xmakes build command.
It also appears to execute xmakes config command every time before building.
As such, the settings in VS probably don't matter at all since it'll use whatever was configured with xmake.
The size differences in UE4SS.dll between the shipping and debug builds reinforces this as well.
We should probably warn about this as part of the build instructions.

Are you saying you can't change the build target in VS?

Are you saying you can't change the build target in VS?

No I'm saying everything is fine except I suspect that project properties don't apply (xmake overrides them) so we should warn about this in the build instructions so that people don't make changes there and expect it to work.
Changing the build target works fine.


Invalid configuration message SyntaxError: Unexpected end of JSON input

After running sample_device.js following error occurs:
Starting Smart Home Device
connect
Config message received:
Invalid configuration message SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at MqttClient.<anonymous> (d:\Projects\Projects\Upwork\Kimberly Hachaso\iot-smart-home-cloud-master\sample-device\sample_device.js:164:29)
    at MqttClient.emit (events.js:311:20)
    at MqttClient._handlePublish (d:\Projects\Projects\Upwork\Kimberly Hachaso\iot-smart-home-cloud-master\sample-device\node_modules\mqtt\lib\client.js:975:12)
    at MqttClient._handlePacket (d:\Projects\Projects\Upwork\Kimberly Hachaso\iot-smart-home-cloud-master\sample-device\node_modules\mqtt\lib\client.js:336:12)
    at work (d:\Projects\Projects\Upwork\Kimberly Hachaso\iot-smart-home-cloud-master\sample-device\node_modules\mqtt\lib\client.js:292:12)
    at Writable.writable._write (d:\Projects\Projects\Upwork\Kimberly Hachaso\iot-smart-home-cloud-master\sample-device\node_modules\mqtt\lib\client.js:302:5)
    at doWrite (d:\Projects\Projects\Upwork\Kimberly Hachaso\iot-smart-home-cloud-master\sample-device\node_modules\readable-stream\lib\_stream_writable.js:428:64)
    at writeOrBuffer (d:\Projects\Projects\Upwork\Kimberly Hachaso\iot-smart-home-cloud-master\sample-device\node_modules\readable-stream\lib\_stream_writable.js:417:5)
    at Writable.write (d:\Projects\Projects\Upwork\Kimberly Hachaso\iot-smart-home-cloud-master\sample-device\node_modules\readable-stream\lib\_stream_writable.js:334:11)

For everyone with this issue: I was able to solve this by setting configuration message {"on": true} in IoT Core.
For developers of this page: please add this part in instructions.

Thanks for your feedback. The flow of this example is for a device to be provisioned first using the mobile client, which registers it's identity in the cloud service and sets the initial configuration with IoT Core. Will look to make this process more clear in the README.
You might also find the blog post series about the sample helpful: Part 1 and Part 2.


feat: update notifier

Hey, this PR adds update notifications when a new version for ni available using update-notifier (added as a dependency)
you can test it by changing package.json version (e.g to 0.4.0)
output:
$ node ./bin/nr lint

><EMAIL_ADDRESS>lint D:\projects\ni
> eslint "**/*.ts"

   ╭──────────────────────────────────────╮
   │                                      │
   │   Update available 0.4.0 → 0.7.0     │
   │   Run npm i -g @antfu/ni to update   │
   │                                      │
   ╰──────────────────────────────────────╯

@vltansky can you put update-notifier to devDependencies? because rollup can bundle it to a single file without any dependencies, and that is why all dependencies are in devDependencies.

@hannoeru fixed, thanks.

Hi @vltansky thanks a lot for the contribution. But sorry I don't actually like CI tools prints updating messages randomly. ni is essentially a command aliasing tools and there shouldn't be much fixes that needs "update now". Thanks again, and hope my explanations make sense to you.

@antfu PR was inspired by ncu, but I actually agree with your point of view. Thanks for the feedback :)

Hi @vltansky thanks a lot for the contribution. But sorry I don't actually like CI tools printing updating messages randomly. ni is essentially a command aliasing tools and there shouldn't be much fixes that needs "update now". Thanks again, and hope my explanations make sense to you.

When using it in CI, you might be always installing the latest version of the package when setting up the workflow, right? so there can never be a chance of getting that update message?
just asking for curiosity :)

@antfu probably meant CLI, at least that's how I read it.
If you're talking about CI there are ways to prevent printing messages in CI environments.

Ohh 👍


Implement aepp support using SDK 2

The same functionality as in #303 but build by the approach that Naz and I have decided to implement

closes #277


Clarification in RemoteLibrary.java interface

Hi again,
In this Interface:
https://github.com/aenniw/jrobotremoteserver/blob/c21af42893d8243ca69d970906313fece618a688/jrobot-remote-server/src/main/java/org/robotframework/remoteserver/library/RemoteLibrary.java#L73
When this method: close() is called? We really need it?
Thanks,
Vitalino

It is mapped to remote keyword "libraryCleanup", and its purpose was to expose cleanup method for libraries if needed. Otherwise it does not have any other purpose.


Quickstart requires Rust Nightly

Hi when following the getting started guide the line below fails with this error below because it requires rust nightly build as the default.
cargo run --example breakout
Error:
error: failed to load manifest for workspace member `/code/bevy/crates/bevy_a11y`

Caused by:
  failed to load manifest for dependency `bevy_app`

Caused by:
  failed to parse manifest at `/code/bevy/crates/bevy_app/Cargo.toml`

Caused by:
  namespaced features with the `dep:` prefix are only allowed on the nightly channel and requires the `-Z namespaced-features` flag on the command-line

It is pretty easy to fix with the command rustup default nightly.

The dep: syntax has been stabilized on Rust 1.60, you don't need nightly but a version more recent than that. Generally Bevy works better with the last est stable, which is 1.69 currently

Good to know! Running rustup upgrade fixed it. I'll update the CR I sent.


The code

Hi, May I ask when will the code be released?

Hi there, thank you for your interest! We have just released the code.


Iss/39/roll portal

Closes #39.

@nickbradley Looks great!

@jopika This updates some base paths which will require some updates to your dev environment (e.g., the backend is now in a different folder)


Sign-ins Report - Content is out of date with Portal

Hi Team,
Just a friendly message to let you know that the graphic and instructions used for the "Sign-ins report" section of this article is out-of-date.
The graphic shows an old Azure portal, and the instructions refer to the old portal also.
The update now has this section found within "Monitoring" within Azure AD. The option is still referred to as "Sign-ins". It's only the heading that has changed.
Thanks!
James

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

ID: 1558e7c0-eaaf-d081-30c3-5c13e0876071
Version Independent ID: 1106c01b-1e4c-5b04-be84-432f99ec4d8f
Content: Sign-in activity reports in the Azure Active Directory portal
Content Source: articles/active-directory/reports-monitoring/concept-sign-ins.md
Service: active-directory
Sub-service: report-monitor
GitHub Login: @MarkusVi
Microsoft Alias: markvi

@jlee-vi Thank you for the update. We will check it with the engineering internally and let you know accordingly.

@cawrites we should look at this issue.

@jlee-vi I fixed this in a pull request. It should publish later today.


MCP page component shouldn't extend granite shell component. this fix…

…es #1420

Coverage remained the same at 40.725% when pulling 710b462090634eae572839a19b60e90d6ebb311c on justinedelson:issue/mcp-shouldnt-extend-granite-shell-page into 22d2b3573bacc8d5ae92cb3bdbe124c574c7a059 on Adobe-Consulting-Services:master.


[ENHANCEMENT] Support Kannnda

Please confirm these before moving forward.

[X] I have searched for my feature proposal and have not found a work-in-progress/duplicate/resolved/discarded issue.
[X] This improvement refers to an existing feature. If you want to suggest a new feature, please use this template.
[X] This improvement is not a bug. If you want to report a bug, please use this template.

Describe the improvement
I can translate UniGetUI into Kannada.
Describe how this improvement could help users
UniGetUI can be translated into Kannda.

For translations, please contact me by email


Does mmdet3D support 3D classification?

Hi, dear authors!
Sorry to bother you.
Does mmdet3D support 3D classification?
Thank you!

It doesn't support 3D cls now (I guess you are saying ModelNet40 shape classification?). But it can be easily integrated into the codebase. For example, we have PointNet++ backbone, you can add a cls head and do the task. I will ask whether this will be a future feature of MMDet3D in this week's meeting.

Thank you！
Sincerely hope that mmdet3d can support 3d classification!
There is another small question for advice. Which config.py file in config has 3D semantic segmentation?

@Wuziyi616 Thank you!

Hi @zhongqiu1245, I would like to keep this issue open as a reminder for us to integrate 3D cls in the future.

OK, I get it


Update portuguese translation

@lemonboston please help to review

Something is strange here, the values-pt-rPT/strings.xml file I see in our master is different from the one this change is originating from. There is also conflict in the file according to github here. @YSmhXQDd6Z Could you please rebase on this repository's master?
Or if that's problematic, you can also provide the strings.xml file as an attachment of a new issue here, we can commit it.

I updated the file there was some new strings missing

Github says here that there are unresolved conflicts in the file, @YSmhXQDd6Z could you please resolve them?

I noticed that but I can't resolve them with the web editor as it says "the conflicts are too complex". Can you please update the file directly using my last commit?

@lemonboston please copy the file from @YSmhXQDd6Z's branch, fix the conflicts and submit a new PR.

this will be handled by #429


update license year and add action

The action automatically updates the license every year

Should we update this too?
https://github.com/pybamm-team/PyBaMM/blob/c8a01ba72065a81e3b1c95586361cd76d326adc4/docs/conf.py#L25

@priyanshuone6 can you set up automatic updating for the file here?

Ready to merge now, See https://github.com/priyanshuone6/PyBaMM/pull/25 for test workflow run

Thanks! Somebody else needs to approve, since I opened


Fixed multiple mistakes in messages in Latvian

Q
A

Is bugfix?
yes

New feature?
no

Breaks BC?
no

Tests pass?
yes

Fixed issues
none

Change from international "fails" to localized "datne"; positive expression formats for value validation errors; fixed invalid use of "sekojošiem" replacing with "šādiem"; fixed singular and plural forms of the word "simbols"; clarified meaning of "virknei" by prefixing it with "simbolu"; fixed other minor spelling mistakes.

Thank you!


(maint) PDB wait on Puppetserver port

Prior to this PR, PDB waited for Puppetserver by pinging it. In some environments, the puppserver may not be pingable even if it is online. This PR changes the wait for puppetserver to check if either it is pingable or the service is listening on port 8140.
This should hopefully be a better implementation of #2903. The nc ensure the service is listening on the port but not the status of the service, so the status API query should not be fully redundant.

Here is the output from a test system.
$ kubectl logs pod/puppetdb-7cfdc5cd4b-lb24k
Running /docker-entrypoint.d/10-analytics.sh
(/docker-entrypoint.d/10-analytics.sh) Pupperware analytics disabled; skipping metric submission
Running /docker-entrypoint.d/20-wait-for-hosts.sh
wtfc.sh: waiting 150 seconds for nc -v -w 1 -z 'postgres' 5432
wtfc.sh: nc -v -w 1 -z 'postgres' 5432 finished with expected status 0 after 0 seconds
wtfc.sh: waiting 90 seconds for ping -c1 -W1 'puppet' || nc -v -w 1 -z 'puppet' 8140
wtfc.sh: ping -c1 -W1 'puppet' || nc -v -w 1 -z 'puppet' 8140 finished with expected status 0 after 1 seconds

CLA signed by all contributors.

Test PASSed

Closing in favor of #2935


Improve code rewrite support

We need a better changes view that also shows progress and notifications.
And we need a rewrite snippet.

https://user-images.githubusercontent.com/249595/184713541-ea65de1e-49d9-4319-a75d-0e19497af941.mp4

https://user-images.githubusercontent.com/249595/185363575-30727b73-9ed5-40d7-8612-bd7b7a44064d.mp4

https://user-images.githubusercontent.com/249595/186588145-52a52e4b-f9e1-4d39-8641-60522f81d675.mp4


Create GitHub OAuth Web Application Flow

https://developer.github.com/v3/oauth/#web-application-flow
The entry point to a user looking to Get Started with an Example Application looks like:

Developer is investigating technologies: http://developers.redhat.com/products/eap/get-started/
http://developers.redhat.com - Quickstart button that triggers setup
CI/CD Webapp forks the Quickstart authoritative repo to the user’s namespace on GitHub

With #4 we have the beginnings of a GitHub Service which can fork the repository into the user's namespace; this assumes we know the user's loginID (username) and OAuth token.  The link above describing the GitHub API's "Web Application Flow" dictates how we may get the OAuth token; along the way it'll prompt the user to grant us access and show the permissions we're requesting.
So what we need is to start to build a webapp to implement the OAuth Web Flow, here:
https://github.com/redhat-developer-tooling/katapult/tree/master/web/src/main/java/org/rhd/katapult/web
There is a PoC that @gastaldi did with some relevant code here:
https://github.com/redhat-developer-tooling/katapult/blob/master/services/github-service/src/main/java/org/rhd/katapult/github/GithubResource.java
...though we'll refactor/retire this bit as necessary.
Ideally this task will also encompass Arquillian tests with Drone/Graphene (http://arquillian.org/guides/functional_testing_using_graphene/) to simulate the user interaction with the browser as they click through the OAuth permissions.

I'm not able to assign this to myself, but I'll take a look at this

I created a pull request for the initial update for the web flow that includes a test of the user interaction in pull request #19
I'm using htmlunit directly in the GithubResourceTest as I needed to be able to dump out the returned html page to identify what elements one needs to interact with to move the web flow along.


Testing guide is severely lacking

I'm new to react, react-router, etc and was trying to get a handle on how to test an app using react-router. The testing guide has zero relevance to react-router. The code example only makes use of Links and the suite doesn't even test them. It does not show how to test navigating through an app at all.
Are there test utilities to determine the current route? What's the best way to test a route change?
For someone looking to copy/paste an example in their app just to get it working to digest, I'd suggest removing react-bootstrap from the example. There's a bug in the example with the text of the button. The component has "Your account" while the test is testing for "Your Account". I would also mention in the guide that because of the static syntax the babel-plugin-transform-class-properties plugin is required and should be added to .babelrc.
I wasted too much time trying to get the example working only to realize that it tests literally nothing related to react-router.

See #2933.


Use the new canonical name for logrus

This fixes go get behavior on non-case sensitive filesystems.

This fixes https://github.com/sirupsen/logrus/issues/570 .  If you want, I would be happy to submit a PR to vendor all of the downstream dependencies via dep(1).


Covid API deprecated

Either change the COVID API with another one or remove the feature

Removed deprecated Covid API


image_types_uboot missing?

Hi,
I am new to bitbake as well as to angstrom, but I tried the following ...
mkdir angstrom && cd angstrom
repo init -u git://github.com/Angstrom-distribution/angstrom-manifest
repo sync
MACHINE=cyclone5 . ./setup-environment
bitbake world

... and ended up with
ERROR: ParseError at /home/christian/Development/fpga/DE0/angstrom/layers/meta-linaro/meta-linaro/recipes-linaro/images/linaro-image-minimal-initramfs.bb:39: Could not inherit file classes/image_types_uboot.bbclass

Here is the config output:
Your build environemnt has been configured with:

    MACHINE=cyclone5
    SDKMACHINE=x86_64
    DISTRO=angstrom

You can now run 'bitbake <target>'

Some of common targets are:
    console-image
    systemd-gnome-image
    xfce-nm-image
    development-xfce-image
    development-gnome-image

Also bitbake console-image gives me the same error.

Hmm this class was merged into image bbclass via
OE-Core Commit
please remove inheriting it from
meta-linaro/recipes-linaro/images/linaro-image-minimal-initramfs.bb
this should be submitted to meta-linaro as well.

Seems to work (I submitted this also to OpenEmbedded@lists.linaro.org), but further problems can be observed.
Do you want me to create individual issues?

what more issues do you see ? if they are related to this then you can continue otherwise open a new ticket


Write to CapeMgr slots failed: ENOENT, no such file or directory

Hello,
got the error "Write to CapeMgr slots failed: ENOENT, no such file or directory"  with a simple script.
I dont know if it's a problem, when i do ls /lib/firmware/
i get : dra7-ipu2-fw.xem4  dra7xx-m4-ipu2.xem4  vpdma-1b8.bin
Beagle bone installed with debian
uname -a : Linux beaglebone 4.1.13-ti-r38 #1 SMP PREEMPT Thu Dec 31 23:38:01 UTC 2015 armv7l GNU/Linux
Thank you !
Philippe

debug output :
bone is_ocp() = /sys/devices/platform/ocp +0ms
bone find_sysfsFile(cape-universal,/sys/devices/platform/ocp,ocp:cape-universal) +23ms
bone is_cape_universal() = null +10ms
bone Loading Universal Cape interface... +2ms
bone load_dt_sync(cape-universaln) +4ms
bone onFindCapeMgr: path = /sys/devices/platform/bone_capemgr +2ms
bone cape-universaln +5ms
bone onReadSlots: index = -1, readAttempts = 1 +2ms
bone Writing cape-universaln to /sys/devices/platform/bone_capemgr/slots +1ms

bone.js       fs.writeFileSync(slotsFile, name, 'ascii');  (near line 200)
rises an error ENOENT, no such file or directory
but the file exists !!!
debug(fs.existsSync(slotsFile));  return true !!!!!!!!
if i comment onWriteSlots(err2);
seems to work !
heu ... I do not understand !!!

What is your original function call? Can you paste code here?

Btw, the error is that it found slots file but it is not able to find .dtbo file for cape-universaln inside /lib/firmware folder. I suggest u re-install latest debian from link given in readme.

Was this solved?

Closing it for now, I will re-open if the reporter requests.


Horizontal graph line expected, received near vertical instead.

Hi, been trying this library out. I found this issue with v2.3.0, but am still getting it with v2.4.0.
When initializing a graph like so:
var graphValues=[11.1,11.1,11.1,11.1,11.1,11.1,11.1,11,11,11,11];

new Chart($('#graph')[0],
{
    type: 'line',

    data: {
        labels: graphValues,
        datasets: [
            {
                backgroundColor: 'black',
                borderWidth: 0,
                pointRadius: 0,
                pointHoverRadius: 0,
                pointHitRadius: 0,
                data: graphValues,
                fill: true

            }

        ]

    },

    options:
    {
        responsive: true,
        legend: {
            display: false

        },
        tooltips: {
            enabled: false

        },
        scales: {
            xAxes: [{
                display: false,
                min: 0,
                max: 10
            }],
            yAxes: [{
                display: false,
                min: 0,
                max: 14
            }]
        }
    }

} );

Expected result:

Red is the background color. Black is the graph data, as shown above.
Actual result:
It draws a weird top-to-bottom line instead of a horizontal line straight across.

... Not sure what's going on or if there is a workaround. Seems like everything is valid and should work as expected? Is it a rounding error somewhere?

The min and max are part of the ticks sub-option. So the y scale should be like so:
        yAxes: [{
            display: true,
            ticks: {
            min: 0,
            max: 14
          }
        }]

This will give you the result you want.

Ah, yes. That's more like it. My mistake, thanks!


[JBEAP-2719] Fix opening SSL connection in IBM JDK in tests

Jira: https://issues.jboss.org/browse/JBEAP-2719
Upstream Jira: https://issues.apache.org/jira/browse/ARTEMIS-1844
Upstream PR: https://github.com/apache/activemq-artemis/pull/2063

Can one of the admins verify this patch?

Upstream has been merged


Redfish Client & Redfish OOBM Driver

Description

This PR adds support for the OOBM Redfish protocol, implementing a Java client to send HTTP requests to Redfish supported systems.
Implementation overview:

Redfish Java client: a Java Client for Redfish that makes Redfish actions available to the HA workflow via an OOB driver.
OOB Redfish driver: a new Out-of-band driver was created for Redfish, allowing to integrate the Redfish Client with the CloudStack Out-of-band management implementation.

Fixes: #3624
Thanks note: this implementation had valuable help from our friends at Yourhosting.
Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Screenshots (if appropriate):
Configure OOBM with Redfish driver

Check OOBM host tab

Test powering On and Off hosts. Host status is properly shown

How Has This Been Tested?

We have been able to test on Dell and Supermicro machines and it works fine:

via the CloudStack UI, enable Redfish oob driver for a KVM node with support for Redfish
verified that ACS can retrieve the redfish system ID and system power state
powering Off node works as expected, host state transition worked well and the host was indeed powered off
powering On also worked as expected, CloudStack host state transition as expected, host is indeed up again

@blueorangutan package

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

Packaging result: ✔centos7 ✔debian. JID-1529

@blueorangutan test

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

Trillian test result (tid-1981)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 51642 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4175-t1981-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Smoke tests completed. 82 look OK, 1 have error(s)
Only failed tests results shown below:

Test
Result
Time (s)
Test File

test_03_create_redundant_VPC_1tier_2VMs_2IPs_2PF_ACL_reboot_routers
Failure
481.95
test_vpc_redundant.py

Test LGTM, we can merge if anyone else can review and possibly share test results against a redfish BMC or simulator.

@DaanHoogland you are right, docs should be updated indeed. I will work on that as well.

and can we create a template for nested testing

Do you mean @TestTemplate from JUnit5?

Do you mean @TestTemplate from JUnit5?

no, nice link though, @GabrielBrascher . What i mean is a template VM that can serve as hypervisor for testing in. virtual nested environment.

@DaanHoogland The problem is that for Redfish testing (and IPMI) you need a physical machine do test this on.

@DaanHoogland The problem is that for Redfish testing (and IPMI) you need a physical machine do test this on.

ok, basically means we'll have to rely on you people testing. life is a dog, possibly of female gender, or not.

I think like many other plugins, this would fall under 3rd party support due to lack of simulator/hardware. The ipmi specific plugin uses a ipmi-simulator library. I'm okay to merge it as is.


nice document.title

but unable to retrieve document.body? Waste of time. 0/10

Please be constructive.
We need you to show code to help you.


I want to use ngx-datatable need complete API example with server side implementation

I am just new to angular 4 and I want to use ngx-datatable as  API implementation with full feature like pagination,sorting,searching, custom template all of these with server side which is nodejs in loopback framework, by searching internet I really confused need some help

@alimashal Go through the documentation provided on the official website - https://swimlane.github.io/ngx-datatable/


Develop a checklist for how to develop a new flow end to end

Describe the action
Create a guide for developing a new flow end to end.

Component Details
Implementation order
Component repo location

Acceptance criteria (optional)
Have a nice development guide in the wiki
Additional Context (optional)
Create a guide for developing a new flow end to end. Details the components necessary, the order in which they should be developed and the repos they are located at.

Hey team! Please add your planning poker estimate with ZenHub @andra-racovita @BohoCode @joycegilding-forgerock @mariantiris