Make live_migration_permit_auto_converge flag into a parameter to set via reclass

We want to enable changing this flag in our MCP clusters deployed via reclass and salt. This will allow us to do this. Default value of this flag is kept as false so there isn't any adverse impact on existing installations.

@fpytloun Mind reviewing this please? We need this flag as a parameter to change it in the reclass model.

@gautam-bhatia @mayankkapoor the similar change have beem inplemented by https://github.com/salt-formulas/salt-formula-nova/commit/9d31cbac608db4c1574c85fa6701419d5adb7b8d

@gautam-bhatia Please close this pull request as change has been merged separately.


How to specify max-warnings?

How do I specify the command-line argument max-warnings with eslint-loader?
I've tried adding this to my webpack config:
module.exports = {
  ...
  eslint: {
    maxWarnings: 1,
  },
  ...
}

I also tried changing my eslint loader config to:
  module: {
    // First, run the linter.
    // It's important to do this before Babel processes the JS.
    preLoaders: [
      {
        test: /\.(js|jsx)$/,
        loader: 'eslint?max-warnings=0',
        include: paths.src,
        exclude: [paths.foo, paths.bar],
      },
    ],

Is this an eslint option?

It's a command-line flag: http://eslint.org/docs/user-guide/command-line-interface
and it may be coded as an option internally? Here's the PR that added it: https://github.com/eslint/eslint/pull/3580/files

I'm digging more into this-- this issue may reveal some light: https://github.com/eslint/eslint/issues/4125
Your eslint-loader uses CLIEngine, and since CLIEngine doesn't handle exiting, they did not include max-warnings into the cliengine. :-/

So yeah, thinking about this, the eslint recommendation is to code this option up in any plugins that use CLIEngine. Would you accept a PR that added a maxWarnings option to eslint-loader?

Sure!

I was mucking around in the code and I found failOnWarning which is exactly what I wanted. Closing :D


Update README.md to use GeometryOps

Leads to a simpler API for the buffer (though the result is still a planar buffer and not spherical, so will be quite distorted)

I didn't know GeometryOps had a convex hull method, thanks!
Now that we can specify Planar or Spherical geometry I might look into writing a spherical buffer method :)

I just read a paper about this...will track it down and send it to you!   Spherical buffer would be great because s2's version is actually pixelated, lol

We don't have native Planar buffers either, its just calling LibGEOS. You could do both! ;)


Feature request: utility function filter

Feature Request
Thank you for making a good library! I suggest one feature that would be great.
My suggestion is to add a function called filter. This is a function that tries to satisfy the type condition of a given object.

If a given value matches a type, it returns the given value as it is.
If a given value is an object type, and there is only one way to satisfy the type by removing some fields from here, it returns the value by removing the field to satisfy the type.
If there is no way to convert a given object to match the type, or if there is more than one way to convert the type, an exception is thrown.

This will be useful for extracting the original value when the entered value contains a token for verification or some additional information.

typia.misc.assertClone<T>() and typia.misc.assertPrune<T>() functions are what you want.

https://typia.io/docs/misc/#clone-functions
https://typia.io/docs/misc/#prune-functions

Oh, I missed it. Sorry for bothering 😅


Login as organisation admin

[ ] Use Govstack logos on the login page; the wireframe for the login screen is below:

[ ] The following screen is shown to the admin users after successful login:

NOTE: There is no need to have the ability to self-registration, etc., and a mere login screen is enough.

@MARZOOQUE Small change in the above wireframes:

Consent Agreements should be replaced with Data Agreements
Under Manage User Records, Consent Records should be replaced with DA Records

Question from Marzooque (in slack channel): what should be the behaviour of user icon in the AppBar while clicking on it.
We shall retain the behaviour we have in Enterprise Dashboard. On click, a drop down is shown with relevant menu items.

Yes, please reuse the same as what we have for privacy dashboard.

@lalc @georgepadayatti  for breadcrumbs we have to use same behaviour as in enterprise dashboard right?

@lalc @georgepadayatti for breadcrumbs we have to use same behaviour as in enterprise dashboard right?

Yes.

Yes Sent from my iPhoneOn 6 Sep 2023, at 08:27, George J Padayatti @.***> wrote:
@lalc @georgepadayatti for breadcrumbs we have to use same behaviour as in enterprise dashboard right?
Yes.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>


[Task] Document how the UI code is laid out

How the widgets get their data
How property pane works
What are evaluations
Outline of the sagas
How a widget is put together.
Touch on actions

@Pranay105 @jnikhila I don't think should go on our docs.

removing this from the doc team's bucket as this is not related to product documentation. cc: @somangshu

I think we already have a fair amount of doc around this
cc @sbalaji1192 @riodeuno
@SatishGandham lets connect to find what is still missing, and how can this be managed better.

Closing the issues for now


Add std.meta.isStaticSorted

This is a logical counterpart to std.meta.staticSort.
Among other possible uses, isStaticSorted could facilitate major reductions in template bloat for templates with a variadic parameter that either requires sorting, or is order-independent.
Also included in this PR is a second commit which optimizes std.meta.staticSort to skip unnecessary calls to the O(N^2) staticMerge when top and btm do not need to be interleaved. In my tests, this makes staticSort about 3x faster and reduces compile-time memory consumption by about 3x (about 80 MB!) for reverse-ordered N = 450. It also appears to benefit smaller N to a lesser degree, although it's hard to tell how much.

Overall the code looks good. I'm not so sure about its utility.

I'm not so sure about its utility.

The main use case is reducing template bloat:
template Foo(T...)
{
    static if(isStaticSorted!T)
    {
        // Implementation...
    }
    else
        alias Foo = Foo!(staticSort!(Cmp, T));
}

Instantiating isStaticSorted is far cheaper than staticSort. Depending on what Foo does, it may also be cheaper than instantiating redundant copies of Foo (which isn't always an option, anyway).
I made this PR because I have such a use case in my work-in-progress fuller realization of rtDispatch.

The main use case is reducing template bloat:

Can't we include this pattern into staticSort instead?

Yah, I'm thinking of @DmitryOlshansky's idea. @tsbockman ?

Can't we include this pattern into staticSort instead?

There are two separate issues here:

What's the best way to optimize staticSort?
What utility does isStaticSorted have?

For (1), I believe that the already-sorted optimization I added in the second commit is a good starting point, because it is a little more efficient than the current implementation even if the list isn't already sorted. I don't know if it's worth it to call isStaticSorted every time staticSort is run, because in the general case the expected result is false, but you still have to pay the memory cost of calling isStaticSorted, anyway.
Ultimately, though, what D really needs is improved memory efficiency for the whole template system. Anything else is kind of like covering the end of a broken bone that's sticking out of your flesh with a band-aid: it may help, but isn't really a good long-term solution...
For (2), I probably should not have said "the main use case is..."
The truth is that D's template system is Turing Complete, and isStaticSorted is useful for all the same reasons that a runtime isSorted (which D has) is useful.
Which is to say, that if you want to be minimalistic about it it's not useful at all, because you could always just write is(staticSort!A == A) instead - but that's rather inefficient, particularly if you're just trying to decide (for example) whether to use a linear or binary search on a list, and don't actually want to sort it.

The name should be staticIsSorted.

What use case for this template?
Why not to execute RT code at CT instead?

You can't do this if the AliasSeq is not an array. For example, you can't use std.algorithm : sort to sort a sequence of types by their .sizeof property. Same for isSorted.
I foresee isStaticSorted quite useful in template constraints / static asserts.

@schuetzm IMO, nothing in std.meta should have static in its name. After all, we have a module system to distinguish between symbols with the same name coming from different modules.

That's fine then. But if static is kept, it should be at the beginning, because that's how it's done everywhere else.

I renamed it to staticIsSorted as requested.
I have also added a changelog entry; someone please review it.

LGTM. Thanks!

Auto-merge toggled on

The auto-tester failure appears to be unrelated to my work?

The auto-tester failure appears to be unrelated to my work?

You can deprecate builds yourself over at the auto-tester by clicking on "deprecate"

(I have just done this)

(I have just done this)

Thanks.


Add EndpointPrefix Support

Issue #, if available: Fixes #197
Description of changes: This diff finalizes our endpoint support by adding support for the endpointPrefix trait.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

landed separately


Expose helpers for converting data read directly from storage via node API

While we have a decodeReturnValues helper that can be used for converting the return values of a view call, this requires an ABI definition, which we don't have when reading directly from storage via a getPublicStorageAt call.
We should expose helper functions that make it easy to go from a flattened array of fields to a type defined by the user without having an ABI definition for it. Perhaphs it's as simple as requiring only an ABIType instead of a FunctionArtifact as input to decodeReturnValues..?
Requested by Wonderland

so perhaps storage and user defined structs in the ABI? is there any downside to that?

@spalladino would it be fair for me to re-title this issue to "make storage declarative in the ABI"?

@rahul-kothari I think making storage declarative is half of it. The other half is having a nice API (in aztecjs?) that uses the raw getStorageAts exposed by the node/pxe, and then uses the declarative storage info to properly decode it.

This issue seems very related to #2806 and both benefit from #5079.


Update French localization

There you go :)

Thank you very much! Just published a new version with the translation to the Chrome Web Store! :)


New copy for refund confirmation

Different confirmation page depending on whether the application is a refund or not.
Refund version should look like it does in the prototype.

Like it. merge when ready.


Display number of new songs added

I would like to work on this issue

@joaoppc its all yours. you might want to start by looking at the code at the bottom of the script


Use CAP interpolations on tiles

I want to modify MarsInterp to work on the tiles as well as the lat/lon grid. You can assign this issue to me and I'll submit my changes to a branch.

I forked CAP and made the necessary changes


Feature/sigfault handler

These changes will capture memory access errors caused by bad pointers and also stack overflows, and print the backtrace to standard output before exiting the process.
For example, this code:
def foo
  foo
end

foo

printed this on my machine:
$ bin/crystal coco.cr
Invalid memory access (signal 11) at address 0x7fff5637eff8
[4446512923] *CallStack::print_backtrace:Int32 +107
[4446500343] __crystal_sigfault_handler +55
[4446599043] sigfault_handler +35
[140735832497834] _sigtramp +26
[4446506021] *foo:NoReturn +5
[4446506025] *foo:NoReturn +9 (524046 times)
[4446498623] __crystal_main +2271
[4446505864] main +40

Notice that the backtrace is compressed to ease the visualization of stack overflows.
It would be possible to distinguish stack overflows checking the address where the fault occurs and comparing with thread and fiber stacks, but I'll leave that for another commit.
Also, instead of quitting the process I'd like to raise exceptions, but the landing of these exceptions became a little less intuitive because LLVM doesn't support right now to set unwind regions for non call instructions (https://llvm.org/bugs/show_bug.cgi?id=1269). In other words, this code:
begin
  invalid_ptr.value # Try to access an invalid location
rescue
  # Ideally the memory access exception would be caught here
end

will not work as expected because the value method is generated inline (not a function call).
Notice the controversial addition here, of an "ext" section in the source code with C code. I decided to add this after giving up with mapping the siginfo and sigaction structures. C headers uses many unions and nasty macros to access the structures and they vary a lot between platforms. On the other hand, I think that linking with syscalls this way might make Crystal more easily portable to other platforms in the future.
Let me know what you think, specially about this last point and how I implemented it.

:+1:

Thanks! That should really help.

Invalid memory access and shorter stacktrace is better than now :+1:

Nice work :+1:


Training on TPU results in a 'Check failed: xla_tpu_programs.size() > 0 (0 vs. 0)' error

Bug description
When running on Google Cloud TPU VM using XLA the TPUs throw this error, I suspect it has something to do with the model being larger than the TPUs can run but I'm not entirely sure. I'm new to using Google TPUs so I don't know exactly how they parallelize the data and how to shard the model across them effectively.
What version are you seeing the problem on?
No response
How to reproduce the bug
Lots of files needed, but you can find the exact code that caused the error here: https://github.com/Stelath/eg3d-diffused/tree/tpu

The command that caused the error was just running the train loop via:

export XRT_TPU_CONFIG="localservice;0;localhost:51011"
python3 -m train

If I don't use XLA it gets stuck warning me about allocating large chunks of memory but never appears to load anything onto the TPUs
Error messages and logs
Full Error Log
making attention of type 'vanilla' with 2048 in_channels
Working with z of shape (1, 128, 64, 64) = 524288 dimensions.
making attention of type 'vanilla' with 2048 in_channels
/usr/local/lib/python3.8/dist-packages/torchvision/models/_utils.py:208: UserWar                                                             ning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in                                                              the future, please use 'weights' instead.
  warnings.warn(
/usr/local/lib/python3.8/dist-packages/torchvision/models/_utils.py:223: UserWar                                                             ning: Arguments other than a weight enum or `None` for 'weights' are deprecated                                                              since 0.13 and may be removed in the future. The current behavior is equivalent                                                              to passing `weights=VGG16_Weights.IMAGENET1K_V1`. You can also use `weights=VGG1                                                             6_Weights.DEFAULT` to get the most up-to-date weights.
  warnings.warn(msg)
loaded pretrained LPIPS loss from taming/modules/autoencoder/lpips/vgg.pth
EG3D NOT FOUND, PLEASE ADD EG3D FILE
/usr/local/lib/python3.8/dist-packages/pkg_resources/__init__.py:123: PkgResourc                                                             esDeprecationWarning: 0.1.36ubuntu1 is an invalid version and will not be suppor                                                             ted in a future release
  warnings.warn(
/usr/local/lib/python3.8/dist-packages/pkg_resources/__init__.py:123: PkgResourc                                                             esDeprecationWarning: 0.23ubuntu1 is an invalid version and will not be supporte                                                             d in a future release
  warnings.warn(
GPU available: False, used: False
TPU available: True, using: 8 TPU cores
IPU available: False, using: 0 IPUs
HPU available: False, using: 0 HPUs

  | Name           | Type                 | Params
--------------------------------------------------------
0 | vision_encoder | CLIPVisionModel      | 303 M
1 | ae             | AutoencoderKL        | 909 M
2 | diffuser       | UNet2DConditionModel | 866 M
--------------------------------------------------------
866 M     Trainable params
1.2 B     Non-trainable params
2.1 B     Total params
8,316.202 Total estimated model params size (MB)
Epoch 0:   0%|                                          | 0/128 [00:00<?, ?it/s]                                                             2023-04-21 21:36:35.751126: E tensorflow/core/tpu/kernels/tpu_compilation_cache_                                                             external.cc:113] XLA:TPU compile permanent error. Ran out of memory in memory sp                                                             ace hbm. Used 7.77G of 7.48G hbm. Exceeded hbm capacity by 297.48M.

Total hbm usage >= 8.29G:
    reserved        530.00M
    program          12.04M
    arguments         7.76G

Output size 7.76G; shares 7.76G with arguments.

Program hbm requirement 12.04M:
    global             4.0K
    scoped           12.00M
    HLO temp          35.0K (71.5% utilization: Unpadded (10.0K) Padded (14.0K),                                                              60.0% fragmentation (21.0K))

  Largest program allocations in hbm:

  1. Size: 757.0K
     XLA label: register allocator spill slots call depth 1
     Allocation type: scoped
     ==========================

...

16.
E0421 21:36:36.639915    6336 coredump_hook.cc:453] RAW: Skipping coredump since                                                              rlimit was 0 at process start.
E0421 21:36:36.639943    6336 client.cc:278] RAW: Coroner client retries enabled                                                              (b/136286901), will retry for up to 30 sec.
E0421 21:36:36.639953    6336 coredump_hook.cc:512] RAW: Sending fingerprint to                                                              remote end.
E0421 21:36:36.639961    6336 coredump_socket.cc:120] RAW: Stat failed errno=2 o                                                             n socket /var/google/services/logmanagerd/remote_coredump.socket
E0421 21:36:36.639970    6336 coredump_hook.cc:518] RAW: Cannot send fingerprint                                                              to Coroner: [NOT_FOUND] Missing crash reporting socket. Is the listener running                                                             ?
E0421 21:36:36.639976    6336 coredump_hook.cc:580] RAW: Dumping core locally.

Environment

Current environment
#- Lightning Component (e.g. Trainer, LightningModule, LightningApp, LightningWork, LightningFlow): Accelerator
#- PyTorch Lightning Version (e.g., 1.5.0): 2.0.1 (latest version)
#- PyTorch Version (e.g., 2.0): 2.0
#- Python version (e.g., 3.9): 3.8
#- OS (e.g., Linux): Ubuntu (TPU VM OS)
#- GPU models and configuration: TPU 8 Devices
#- How you installed Lightning(`conda`, `pip`, source): pip
#- Running environment of LightningApp (e.g. local, cloud): Google Cloud TPU VM

More info
No response
cc @carmocca @JackCaoG @steventk-g @Liyang90

Can you provide a reproducible snippet for the error? From the error stacktrace it's not clear if this is something to be fixed in lightning

I unfortunately believe that the only way to reproduce the error would be to attempt running the train.py script on a TPU from this repository: https://github.com/Stelath/eg3d-diffused/tree/tpu, though it needs a couple of saved models that are gigabytes in size to run. To me it looks like an out of memory error but I'm not accustomed to working with TPUs so I'm not entirely sure if thats what it is. Any input would be greatly appreciated, though I understand if you're unable to diagnose the error as you cannot reproduce it yourself.

Are you using tpu v2-8? I am suspecting this is a OOM since
Total hbm usage >= 8.29G:
    reserved        530.00M
    program          12.04M
    arguments         7.76G

Output size 7.76G; shares 7.76G with arguments.

and TPU v2-8 has 8GB of HBM per core.

That makes a lot of sense, thank you, do you think TPU v3-8 would work, as it has 16GB of HBM per core?

I think so, can you give it a try?

Will do, for the past 2 weeks all v3 TPU instances have been in use so it might be a while, but I'll post on this thread after rerunning on a v3.

@Stelath if you install Lightning master, you can also use tpu v4 which are available in google cloud at the moment

I'll give that a try, currently I'm using the TRC research cloud credit program as I'm doing research for my university so I'm limited to whatever Google gives me, but I'll try and request some TPU v4 instances.

I finally got the chance to run them on V3 TPUs and it does look like it was caused by a memory issue, though other problems did arise, but as far as this error goes its fixed!


[dart2wasm] Stopwatch is broken due to "TypeError: Illegal invocation"

This is happening when compiling Dart code to wasm using the Flutter tool on Flutter SDK revision 9a721c456d4a6418c60f2512cbb54ee420b9c69b, and in Chrome Canary 09b3cb20dd38d702c5f2911860fc2101f067ce42-refs/branch-heads/5582@{#1}.
To repro, run flutter build web --wasm --target=lib/complex.dart on the flute benchmark, then serve the app using a local file server (e.g. python3 -m http.server 8888). Opening the app in Chrome will result in the following error:
main.dart.wasm:0x113a71 Uncaught TypeError: Illegal invocation
    at Stopwatch._now (main.dart.wasm:0x113a71)
    at Stopwatch.start (main.dart.wasm:0x1138ff)
    at PlatformDispatcher.scheduleFrame closure at file:///usr/local/google/home/yjbanov/code/flute/engine/lib/src/platform_dispatcher.dart:563:19 (main.dart.wasm:0x1136e1)
    at closure wrapper at file:///usr/local/google/home/yjbanov/code/flute/engine/lib/src/platform_dispatcher.dart:563:19 (main.dart.wasm:0x1138ba)
    at _OneShotTimer._run (main.dart.wasm:0x113f15)
    at _Timer._schedule closure at file:///usr/local/google/home/yjbanov/code/flutter/flutter/bin/cache/dart-sdk/lib/_internal/wasm/lib/timer_patch.dart:36:36 (main.dart.wasm:0x113ec1)
    at closure wrapper at file:///usr/local/google/home/yjbanov/code/flutter/flutter/bin/cache/dart-sdk/lib/_internal/wasm/lib/timer_patch.dart:36:36 (main.dart.wasm:0x113edf)
    at _invokeCallback (main.dart.wasm:0xfa558)
    at main.dart.mjs:82:44

The error happens on the last line of the following wasm output:
 (func $Stopwatch._now (;1438;) (result i64)
    (local $var0 f64)
    (local $var1 (ref $type39))
    (local $var2 f64)
    (local $var3 (ref $type39))
    (local $var4 f64)
    (local $var5 i64)
    (local $var6 (ref $type200))
    call $dart2wasm._1160 (import)

In main.dart.mjs the _1160 import is bound to the performance.now tear-off:
_1160: performance.now,

Changing it to a closure fixes the issue:
_1160: () => performance.now(),

Apparently performance.now can't be torn-off on browsers. Fixed in https://dart-review.googlesource.com/c/sdk/+/283500.


windows terminal display is not normal

When I use less, the display will appear as follows.

If possible, can you either share that file or a link to the repo and commit where this happens?

same for me. Any news?
Happens in PowerShell in all themes


#[extendr]-impl: Return the right reference

Following the polishing of ExternalPtr is this PR on returning the right reference.
First, we remove the ability to take &T and make ExternalPtr<T>. This is a flawed construct: Making an ExternalPtr is not just wrapping a pointer, it is also signing a pointer up for destruction. Converting a &T to ExternalPtr<T> may cause spurious double-free events.
The Rules of ExternalPtr are simple:

From an owned type, one may create an Owned Pointer, and from an owned pointer, one can instantiate a true ExternalPtr.
From &ExternalPtr<T> you can create &T, and similarly for &mut ExternalPtr<T> and &mut T.

So, should there be no references used or returned? A reference that comes from a true ExternalPtr<T> may be used. We embed this logic on the wrapping function, rather than do any C-crimes.
If a reference corresponds to any of the ExternalPtr<T> in the argument list, then that is returned.
Fixes #725
Depends on

[x] #765
[x] https://github.com/extendr/extendr/pull/766

At this stage, I now check the address of the returned-object, and see if it matches the ExternalPtr from Self.
Error (test-test-submodules.R:32:3): Return the right externalptr
Error in `x$max_ref(y)`: only able to return reference to self
Backtrace:
    ▆
 1. └─x$max_ref(y) at test-test-submodules.R:32:3

Next step is to go through all arguments, that are externalptr, and return the one that maches the output, or error otherwise.
Thankfully, it is impossible to create a local variable and return a reference from it in Rust.

This is ready for feedback, not necessarily review.

This is ready for review. I had to export (privately) one thing from libR-sys. Lesson learned: Derive-macros cannot do or access things, that its caller can't do themselves. Meaning, we can't use unimported crates, we can't use unexported types, etc.

@Ilia-Kosenkov I've dealt with the comments. I'd love it if you could give this another pass.
The PR has become a bit bigger, but that's due to the requested changes, and their impact.


Doorbell registrations and open by notifications

Hi,
It is super we got notifications enable in the nuki API.
Are you up for doing the same trick as with Nello to open from notifications? Or should it just work if you have a camera in the same room?
2nd

This under Home settings btw
I have a doorbell on my front door, but the nuki opner dosn't seems to be set as a doorbell in HomeKit is that because it dosn't have a video title attached?
I would think if you could get in there you could use a homepod to trigger a sound if someone rang.
Again thank you for the awesome work both with Nello and now this.

Or is this in the homebridge core i need to file an issue?

My HomePods play the bell sound when someone is ringing. The opener does initiate the callback on the bridge which then triggers the HomePods.

@CooperCGN Nice can you see it under doorbell in the home app?

No, I assume it would need a camera added, maybe a fake one.

The HomePod notifications already work with this plugin, for support for tvOS, see #55.

The HomePod notifications already work with this plugin, for support for tvOS, see #55.

Hi there,
i´m running the latest version of this plugin and set "isDoorbellEnabled" to true but it doesn´t work. I have no setting in all homepods to enable them as a chime for the opener. Anything I forgott or missing?
Thanks and best
Markus

Hi @Manguera,
the HomePod chime seems to work with this plugin without any setting. I wrote about this a while ago: https://github.com/lukasroegner/homebridge-nuki/issues/55#issuecomment-715258226
Hope it works for you, too!
Best,
Felix


compatibility issues with Webstorm 2020.2

Hi,
I installed the EAP version of Webstorm (202.5103.5) and the plugin is incompatable thus not being used which is a shame...
@jk1 Can you please release a new version that is compatible?
Thanks,

Sure, please find it published

Thanks @jk1 !


How to use different appsettings.json

I want to use different database for my test project and I am not sure how to point the type provider to different appsettings in my test project.
I have my config defined as
[<Literal>]
let config = __SOURCE_DIRECTORY__ + "/" + "appsettings.json"

This works fine in my web api project but in test project it is pointing to the web api dir and not picking the appsettings.json in my test project.
Is there a way to do what I want?

Does it break at run-time or design time?

Is this question for the other issue?

The type provider uses appsettings.json like files only at design time.
Make sure at build time you copy appsettings.json to output folder to make it works at run-time.
Web projects do it by default that why it works for you.


Rationalize use of Encoding

(Inspirit by https://github.com/PowerShell/PowerShell-RFC/issues/71)
We should use one common type for Encoding.
We have in fact two identical entity in our code for Encoding:

public enum FileSystemCmdletProviderEncoding

Although the enum is "Public" the documentation say:

The members of this class cannot be used directly, nor should this class be used to derive other classes.

So it's okay to change if necessary.
The enum is used in Encoding parameter (type = FileSystemCmdletProviderEncoding) of FileSystemProvider cmdlets:

Add-Content
Get-Content
Set-Content

internal static class EncodingConversion

The class is used in Encoding parameter (type = System.String) of Utility cmdlets:

Export-Clixml
Export-Csv
Export-PSSession
Import-Csv
Out-File
Select-String

We can not directly use System.Text.Encoding because we use extended Encoding with Default, OEM, String.
class EncodingConversion is more well looking. We always can easily extend it with new charset names.

We did some improvements in the area.


Recurring Google Calendar events are off by 3 hours

Hello! As the title says, only recurring events are off by 3 hours instead of being in EST from which it is properly set to the right time zone in Google Calendar but when I run it in MM, it is saying 06:00 instead of 0900, I need the recurring events for class.
{
            module: "MMM-CalendarExt2",
            header: "My Google Calendar",
            position: "top_right",
            config: {
            coloredText: false,
            coloredBorder: false,
            coloredSymbol: false,
            coloredBackground: false,
            calendars: [
            {
                url<EMAIL_ADDRESS>// Use the secret iCal link
                symbol: "calendar"
            }
            ]
        }
        },

Don't know what I'm doing wrong, my RPI Config shows it's the proper timezone EST, the time is correct on the clock module, all the other non recurring events is correct but not the recurring

Which time zone is showing in the system information output when you start MagicMirror?
[2024-11-03 21:16:07.007] [INFO]  System information:
### SYSTEM:   manufacturer: Notebook; model: N650DU; virtual: false
### OS:       platform: linux; distro: Debian GNU/Linux; release: 12; arch: x64; kernel: 5.10.0-20-amd64
### VERSIONS: electron: 32.2.2; used node: 20.18.0; installed node: 23.0.0; npm: 10.9.0; pm2: 5.4.2
### OTHER:    timeZone: Europe/Berlin; ELECTRON_ENABLE_GPU: undefined


[10.x] Fix data_set() while $overwrite set to false

For fixing issue #51049 created by me.
Remove the if expression of $overwrite in case of $target does not belong to array, object, or something like that.
Please make sure that the result of $data is expected while data_set() be called. Expecially, the fourth assertEquals() case of code changes in test cases, the old value which is not array or object will be overwrote.
The benifit is that end user can use it and get correctly result, if my expected result of cases is correct. Though, I think this may break laravel procjets of end users if they ever call data_set() or data_fill() like this, but laravel/framework itself will not break.

Thanks for your pull request to Laravel!
Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include.
If possible, please consider releasing your code as a package so that the community can still take advantage of your contributions!
If you feel absolutely certain that this code corrects a bug in the framework, please "@" mention me in a follow-up comment with further explanation so that GitHub will send me a notification of your response.


onDrag (in useGesture) fires just a few times and lags

When I use onDrag like following:
useGesture({
  onDrag: dragHandler
}, {
  domTarget: image
})

with following handler:
const dragHandler = ({ movement: [x, y], dragging }) => {
  if(dragging) {
    console.log("moving")
    console.log({ x, y })
    imageConfiguration.value.top += y
    imageConfiguration.value.left += x
  }
}

the dragging event fires only about 2 to 4 times and doesnt continue.
For example when i use standart eventListener to the same element, the event fires for each pixel that I dragged. But here it completely lags and I cant use it.
Can someone help me with what am I doing wrong? Or do I misunderstand the usage?
For the whole picture, I use then the imageConfiguration to create style for the element I want to drag ->
const imageStyle = computed(() => {
  return {
    'top': imageConfiguration.value.top.toString() + 'px',
    'left': imageConfiguration.value.left.toString() + 'px',
  }
})

Update: the example used works, but under verystrange conditions. It works, if I double tap the wanted object and I have to literally push the trackpad. I cannot just double-tap it...


Is Pinpoint support "HBase Security"?

Our company has a public hbase, but it's a "Secure HBase";
But I can't find anywhere to config the account of hbase.
So some guys can tell me how to solve this problem?

Pinpoint team has a plan to support hbase security.
But Schedule was not decided yet.

Get, thanks.


Coalescing Array Queue

Implements a coalescing queue where a duplicate offer will update an existing entry preserving the time priority of the original offer.
A typical use-case is in a constrained resource environment with a queue used to orchestrate requests.  One would wish to only use the resource with the latest updates and not waste computation on stale data when a resource becomes available.
The implementation follows IntArrayQueue but instead of queueing integers it enqueues the key of an instance via a call to a supplied KeySupplier.  The key is then mapped using a Int2ObjectHashMap to the latest value.

I've not seen a need for a collection like this with any of our clients. Why do you think this is suitable for Agrona?

I've not seen a need for a collection like this with any of our clients. Why do you think this is suitable for Agrona?

I agree there are not too many use cases but it is very useful in certain circumstances using Aeron on fast moving data flow with limited resources better explained with an actual use-case I wish to employ it on.  Financial instruments market data tick at a high-rate and when they change analytics need to be performed, i.e.  a derivative instrument whose underlying changes needs a theoretical to be recalculated and a market making strategy would put a spread around this theo resulting in market orders.  If the theo is calculated on stale data it may contribute to a loss.  Analytics take a finite amount of time and there may be many more instruments than available compute cores so one uses a queue to enqueue the requests until a core becomes available.  Say an update adds a request, by the time it reaches the head of the queue there may have been multiple fresh updates on the same instrument in the interim.  The proposed collection would ensure that the first change is registered, its priority is preserved and when it is polled it has the latest information dropping stale data requests that would otherwise exasperate the pain with unneeded stale computations.
I do have another scenario but that isn't within the "hot path" and I wont use Aeron so not a relevant use-case and I can keep the slower more typical LinkedHashMap implementation.
After the PR was raised I was concerned with the V object in reality it would be an int identifier to avoid allocation or possibly a slot in a ring-buffer the incoming data should reuse.
I was very taken with the elegance of the IntArrayQueue and it suited the core implementation for a fast coalescing queue however I do understand it has limited application usage so if its not a good fit I can cancel the PR and bring it into my own library.

I was very taken with the elegance of the IntArrayQueue and it suited the core implementation for a fast coalescing queue however I do understand it has limited application usage so if its not a good fit I can cancel the PR and bring it into my own library.

I think maintaining it as your own library would be the best.  It would give you control over the maintenance of the code and release schedule.


docs: Update docs for CR generation with links and outdated info

Codecov Report

Merging #62 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #62   +/-   ##
=======================================
  Coverage   87.35%   87.35%
=======================================
  Files           4        4
  Lines         617      617
=======================================
  Hits          539      539
  Misses         48       48
  Partials       30       30

Continue to review full report at Codecov.

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


Document ICPSLC24-10NA

This series adds the teardown and schematics of the ICSPLC24-10NA PWM output controller module found in LED drivers such as the ICPSHC24-30EU-IL-1 and ICSHC24-10EU-IL-1.
Signed-off-by: Olliver Schinagl<EMAIL_ADDRESS>

anything else you want to see changed here @basilfx ?

@basilfx Anything you want done or added for this merge?

Hey @oliv3r, thanks for this PR. I have been really busy with other things (and holidays) that I just don't have the time. Sorry!
I only have a comment on where the schema resides: I'd like to keep the pcb/ folder for things we can build. One suggestion is to move this to the teardowns/ folder? What do you think? Maybe we have to split the teardown folder per project into pictures and schemas then.

To be fair, we CAN build it using the schematics :) but I do agree, it is far better suited to be put under teardowns.
I'll think of some scheme to split the pictures and schemas as well though your suggestion makes quite sense. I'll rework the others once I've glanced at it.

After a quick peek at the others, there's no need to clean anything in the current state yet. So I only reworked this one and moved the files around as per request. So @basilfx you can merge this one if there's nothing else, and I'll rebase and cleanup the other PR's.

Looks good, thanks!


colab

can you please add a google colab

Hope you find this useful
https://colab.research.google.com/drive/1SmxFVqUvEkU7pHIwyLUz4VM1AxoVU-ER?usp=sharing
Added to the README file

Hope you find this useful
https://colab.research.google.com/drive/1SmxFVqUvEkU7pHIwyLUz4VM1AxoVU-ER?usp=sharing
Added to the README file

colab link is broken


Can I pwease add limiting system

What is your question?
Pease aid ap x xalmxnx zkzKnall CNN anxjbakzmMxps

stale + clarification needed


correctly set drag image offset

Fixes #332
Related to #245, #401
#401 didn't work for me with my handler nested within my li. Tested on both FF Chrome.

This fixed it for me, thanks!


UDP supported?

Does boringproxy support UDP? For example, proxying clients attempting to access an IKEv2 VPN server behind NAT

As a follow-up question, you mention on https://github.com/anderspitman/awesome-tunneling [boringproxy] solves almost everything I want except auto DNS management, and that's planned . What are your plans for supporting DNS (UDP port 53) and timeline? Perhaps the ability to do ad and content blocking, like pi-hole?

Hi @mrbluecoat. Unfortunately boringproxy doesn't support UDP, since we depend on SSH which is TCP-based. I don't currently have any plans to change this. I'd recommend finding another solution on the list.
The DNS support mentioned refers to managing DNS records, not implementing the DNS protocol itself. So for example it would be nice if you could create a tunnel in boringproxy, and it could use a Namecheap/Cloudflare/AWS/etc API key to update your DNS records for the tunnel.

socat and https://github.com/ambrop72/badvpn#peer-to-peer-vpn come to mind.. Any other recommendations for a transparent, performant proxy?


Unparsable structured data issue reported by Google Search Console when using Congo tags

What happened?
Summary
Google Search console reports structured data issues on any pages where I've used tags in the front matter. This is likely due to an additional comma in a JSON array structure for keywords generated as part of the linked data structure on the page.
I removed the tags on the pages, re-generated the site, submitted the sitemap again to Google Search Console, waited for re-indexing, and the issue is reported resolved. I also tested the page via rich results test, and the issue is resolved too.
This is a temporary fix only - I'd like to be able to add tags to pages.
Reproduce
Generate a new post using hugo new blog/my-post.md, and add tags to the page front matter.
---
title: "My Post"
date: 2022-01-03T15:46:51+11:00
author: "Jonny"
tags: ["cereal", "milk", "toast"]
---

Generate the site using hugo, and publish the page to your website. Test it via Google's [rich result test]( (https://search.google.com/test/rich-results). The issue will be reported in the rich result test. You can also have your site re-crawled, and the issue will be reported to you via email
Hugo output
I checked the HTML generated via hugo command at public/blog/my-post/index.html - the JSON linked data structure is:
  <script type="application/ld+json">
  {
    "@context": "https://schema.org",
    "@type": "BlogPosting",
    "articleSection": "Blogs",
    "name": "My Post",
    "headline": "My Post",
    "description": "",
    "inLanguage": "en-AU",
    "author" : {
      "@type": "Person",
      "name": " Jonathan Sagorin"
    },
    "creator" : {
      "@type": "Person",
      "name": " Jonathan Sagorin"
    },
    "copyrightHolder": " Jonathan Sagorin",
    "copyrightYear": "2022",
    "dateCreated": "2022-01-03T15:46:51\u002b11:00",
    "datePublished": "2022-01-03T15:46:51\u002b11:00",
    "dateModified": "2022-01-03T15:46:51\u002b11:00",
    "url" : "https:\/\/sagorin.org\/blog\/my-post\/",
    "wordCount": "0",
    "keywords": ["cereal","milk","toast",]
  }
  </script>

It looks like the keywords tag is generating an extra comma in the array, regardless of its position in the array, which is likely the cause of the issue reported by Google Search Console.
 "keywords": ["cereal","milk","toast",]
I checked out the source code for Congo, and narrowed it down to themes/congo/layouts/partials/schema.html, line 37
   "keywords": [{{ if .IsPage}}{{ range $index, $tag := .Params.tags }}{{ $tag }},{{ end }}{{ else }}{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}{{ printf "%s," $term }}{{ end }}{{ end }}{{ end }}]
The comma is added regardless of the element in the array.
I was able to reproduce the issue using the exampleSite content too in the Congo theme.
Suggested fix
Add logic to check if the current element is the last element of the array, do not append  comma. Similar to what the delimit function does. Possibly use the delimit function, but prepend each element with a double quote? I'm not familiar enough with Go/Hugo, but it would possibly look something like:
{{ with .Params.tags }}{{ delimit . ","}}{{ end }}. Just needs a double quote now! :)
Reference links
https://support.google.com/webmasters/answer/9166415#error_types
https://search.google.com/test/rich-results
https://gohugo.io/functions/delimit/
Theme version
v1.6.0
Hugo version
hugo v0.86.1+extended darwin/amd64 BuildDate=unknown
What browsers are you seeing the problem on?
Chrome
Relevant Hugo log output
No response

Thanks for the detailed report. I'll look into some ways to improve this. I notice too that the author name in your example has a space at the start of it, is that something in your config? I don't see that behaviour when I build and just want to check it isn't a separate issue.

hi @jpanther  - just checked my config. That's me leaving an extra space in my configs. Please ignore. No issue with your theme!. Thanks.


The preprocess code is duplicated

The same code is used twice:

In crates/shaders/src/compile/preprocess.rs
In src/shaders/preprocess.rs

According to Raph, this is because the vello_shaders is meant for Skia integration, and currently isn't used by Vello.
We should fix that and remove the duplication.

We always intended for the main Vello crate to use vello_shaders but never got around to it. The crate supports generating native shaders (such as MSL) from the WGSL which allows external engines to target Metal, Vulkan, etc directly. This code path isn't exercised in the Vello repository but we have wanted to have native runners (i.e. alternative engines alongside wgpu) eventually but decided to put that in the backburner due to other priorities.
I think this issue can be repurposed as "Move to shader management via crates/shaders".


Make build reproducible

Codecov Report

Merging #255 (461b38a) into int (178e834) will increase coverage by 0.59%.
The diff coverage is 35.71%.

@@            Coverage Diff             @@
##              int     #255      +/-   ##
==========================================
+ Coverage   68.54%   69.13%   +0.59%
==========================================
  Files          14       14
  Lines        1507     1510       +3
==========================================
+ Hits         1033     1044      +11
+ Misses        367      359       -8
  Partials      107      107

Impacted Files
Coverage Δ

eventhandler.go
62.59% <18.18%> (+2.21%)
:arrow_up:

procmon_linux.go
72.59% <100.00%> (+2.44%)
:arrow_up:

Continue to review full report at Codecov.

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


Add tests

I have some tests in the code but isn't enough.
For that and taking advantage that this month is Hacktoberfest. 😄
I purpose you to add some tests, not in all the code, be can move forward with the list or another thing if you have any suggestion.
We can start with:

Check the test/utils that already exists and add more or improve those.
Write a test for shared/formats.
Write a test for decorators/ resize.
Write tests for entire components unit and e2e.

@edgarordonez
I recommend closing this and creating a new one for D3-Stencil v2.0.0
based on this PR: https://github.com/edgarordonez/d3-stencil/pull/43
in connection to these test results.


Challenges with 'docker compose up': Backend OperationalError Despite Frontend and Database Running Smoothly

Hello,
I've been working with the Matcher project and have run into a bit of a snag when using Docker Compose. Although the frontend and database containers seem to be up and running without any issues (as verified by the docker ps command), I'm encountering a persistent error with the backend when attempting to integrate all components using docker compose up.
Here's a bit more context: When I execute the backend commands individually through Conda (conda run python ...), everything works as expected, with no errors. However, this issue arises specifically when I try to bring up the entire setup through Docker Compose.
I'm wondering if there are any additional considerations or configurations that I might be missing, particularly related to Docker Compose's handling of the backend service. Has anyone else encountered a similar issue, or could provide insights into what might be going wrong?
Any guidance or suggestions would be greatly appreciated!
Thank you in advance for your help.
$ docker compose up
[+] Running 4/4
 ✔ Network matcher_matcher-network  Created                                                                                0.1s
 ✔ Container matcher-database-1     Created                                                                                0.1s
 ✔ Container matcher-backend-1      Created                                                                                0.1s
 ✔ Container matcher-frontend-1     Created                                                                                0.1s
Attaching to matcher-backend-1, matcher-database-1, matcher-frontend-1
matcher-database-1  | The files belonging to this database system will be owned by user "postgres".
matcher-database-1  | This user must also own the server process.
matcher-database-1  |
matcher-database-1  | The database cluster will be initialized with locale "en_US.utf8".
matcher-database-1  | The default database encoding has accordingly been set to "UTF8".
matcher-database-1  | The default text search configuration will be set to "english".
matcher-database-1  |
matcher-database-1  | Data page checksums are disabled.
matcher-database-1  |
matcher-database-1  | fixing permissions on existing directory /var/lib/postgresql/data ... ok
matcher-database-1  | creating subdirectories ... ok
matcher-database-1  | selecting dynamic shared memory implementation ... posix
matcher-database-1  | selecting default max_connections ... 100
matcher-database-1  | selecting default shared_buffers ... 128MB
matcher-database-1  | selecting default time zone ... Etc/UTC
matcher-database-1  | creating configuration files ... ok
matcher-database-1  | running bootstrap script ... ok
matcher-backend-1   |
matcher-database-1  | performing post-bootstrap initialization ... ok
matcher-database-1  | initdb: warning: enabling "trust" authentication for local connections
matcher-database-1  | You can change this by editing pg_hba.conf or using the option -A, or
matcher-database-1  | --auth-local and --auth-host, the next time you run initdb.
matcher-database-1  | syncing data to disk ... ok
matcher-database-1  |
matcher-database-1  |
matcher-database-1  | Success. You can now start the database server using:
matcher-database-1  |
matcher-database-1  |     pg_ctl -D /var/lib/postgresql/data -l logfile start
matcher-database-1  |
matcher-database-1  | waiting for server to start....2024-01-15 07:52:58.301 UTC [48] LOG:  starting PostgreSQL 13.13 (Debian 13.13-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
matcher-database-1  | 2024-01-15 07:52:58.308 UTC [48] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
matcher-database-1  | 2024-01-15 07:52:58.331 UTC [49] LOG:  database system was shut down at 2024-01-15 07:52:57 UTC
matcher-database-1  | 2024-01-15 07:52:58.344 UTC [48] LOG:  database system is ready to accept connections
matcher-database-1  |  done
matcher-database-1  | server started
matcher-backend-1   | Preparing record 0[07:52:58] SMILES Parse Error: syntax error while parsing: SMILES
matcher-backend-1   | [07:52:58] SMILES Parse Error: Failed parsing SMILES 'SMILES' for input: 'SMILES'
matcher-database-1  | CREATE DATABASE
matcher-database-1  |
matcher-database-1  |
matcher-database-1  | /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/load-extensions.sh
matcher-database-1  | CREATE EXTENSION
matcher-database-1  |   oid  | extname | extowner | extnamespace | extrelocatable | extversion | extconfig | extcondition
matcher-database-1  | -------+---------+----------+--------------+----------------+------------+-----------+--------------
matcher-database-1  |  13454 | plpgsql |       10 |           11 | f              | 1.0        |           |
matcher-database-1  |  16385 | rdkit   |       10 |         2200 | t              | 4.3.0      |           |
matcher-database-1  | (2 rows)
matcher-database-1  |
matcher-database-1  |
matcher-database-1  | 2024-01-15 07:52:58.811 UTC [48] LOG:  received fast shutdown request
matcher-database-1  | waiting for server to shut down....2024-01-15 07:52:58.818 UTC [48] LOG:  aborting any active transactions
matcher-database-1  | 2024-01-15 07:52:58.822 UTC [48] LOG:  background worker "logical replication launcher" (PID 55) exited with exit code 1
matcher-database-1  | 2024-01-15 07:52:58.822 UTC [50] LOG:  shutting down
matcher-database-1  | 2024-01-15 07:52:58.897 UTC [48] LOG:  database system is shut down
matcher-database-1  |  done
matcher-database-1  | server stopped
matcher-database-1  |
matcher-database-1  | PostgreSQL init process complete; ready for start up.
matcher-database-1  |
matcher-database-1  | 2024-01-15 07:52:58.961 UTC [1] LOG:  starting PostgreSQL 13.13 (Debian 13.13-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
matcher-database-1  | 2024-01-15 07:52:58.961 UTC [1] LOG:  listening on IPv4 address "<IP_ADDRESS>", port 5432
matcher-database-1  | 2024-01-15 07:52:58.961 UTC [1] LOG:  listening on IPv6 address "::", port 5432
matcher-frontend-1  | [2024-01-15 07:52:58 +0000] [15] [INFO] Starting gunicorn 20.1.0
matcher-frontend-1  | [2024-01-15 07:52:58 +0000] [15] [INFO] Listening at: http://<IP_ADDRESS>:8000 (15)
matcher-frontend-1  | [2024-01-15 07:52:58 +0000] [15] [INFO] Using worker: gevent
matcher-frontend-1  | [2024-01-15 07:52:58 +0000] [16] [INFO] Booting worker with pid: 16
matcher-database-1  | 2024-01-15 07:52:58.974 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
matcher-database-1  | 2024-01-15 07:52:58.991 UTC [66] LOG:  database system was shut down at 2024-01-15 07:52:58 UTC
matcher-database-1  | 2024-01-15 07:52:59.005 UTC [1] LOG:  database system is ready to accept connections
matcher-frontend-1  | [2024-01-15 07:52:59 +0000] [17] [INFO] Booting worker with pid: 17
matcher-backend-1   | Started indexing at time =<PHONE_NUMBER>.6845496
matcher-backend-1   | Finished loading fragments, seconds taken = 0.0030546188354492188
matcher-backend-1   | Starting to find pairs at<PHONE_NUMBER>.6876042
Traceback (most recent call last):
matcher-backend-1   |   File "/opt/./backend/mmpdb/mmpdb.py", line 9, in <module>
matcher-backend-1   |     commandline.main()
matcher-backend-1   |   File "/opt/backend/mmpdb/mmpdblib/commandline.py", line 1089, in main
matcher-backend-1   |     parsed_args.command(parsed_args.subparser, parsed_args)
matcher-backend-1   |   File "/opt/backend/mmpdb/mmpdblib/commandline.py", line 393, in index_command
matcher-backend-1   |     do_index.index_command(parser, args)
matcher-backend-1   |   File "/opt/backend/mmpdb/mmpdblib/do_index.py", line 203, in index_command
matcher-backend-1   |     with index_algorithm.open_mmpa_writer(args.output, format=args.out,
matcher-backend-1   |   File "/opt/backend/mmpdb/mmpdblib/index_algorithm.py", line 1333, in open_mmpa_writer
matcher-backend-1   |     index_writer = index_writers.open_postgres_index_writer(destination, title)
matcher-backend-1   |   File "/opt/backend/mmpdb/mmpdblib/index_writers.py", line 739, in open_postgres_index_writer
matcher-backend-1   |     db = dbutils.open_postgres_database(filename)
matcher-backend-1   |   File "/opt/backend/mmpdb/mmpdblib/dbutils.py", line 155, in open_postgres_database
matcher-backend-1   |     conn = psycopg2.connect(
matcher-backend-1   |   File "/opt/conda/envs/matcher-api/lib/python3.9/site-packages/psycopg2/__init__.py", line 122, in connect
matcher-backend-1   |     conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
matcher-backend-1   | psycopg2.OperationalError: timeout expired
matcher-backend-1   |
matcher-backend-1   | ERROR conda.cli.main_run:execute(47): `conda run python ./backend/mmpdb/mmpdb.py index ./backend/initialize_db/test_structures.fragments -o public$postgres` failed. (See above for error)

$ docker ps
CONTAINER ID   IMAGE              COMMAND                  CREATED         STATUS         PORTS                                       NAMES
2887c1c6c6a2   matcher-frontend   "conda run --no-capt…"   8 seconds ago   Up 6 seconds   <IP_ADDRESS>:8000->8000/tcp, :::8000->8000/tcp   matcher-frontend-1
cc8b51c6d099   matcher-backend    "bash -c 'echo $RUN_…"   8 seconds ago   Up 6 seconds   <IP_ADDRESS>:8001->8001/tcp, :::8001->8001/tcp   matcher-backend-1
4428773eea48   matcher-database   "docker-entrypoint.s…"   8 seconds ago   Up 6 seconds   <IP_ADDRESS>:5432->5432/tcp, :::5432->5432/tcp   matcher-database-1

$ conda run python ./backend/mmpdb/mmpdb.py index ./backend/initialize_db/test_structures.fragments -o public$postgres
Started indexing at time =<PHONE_NUMBER>.7112198
Finished loading fragments, seconds taken = 0.0006251335144042969
Starting to find pairs at<PHONE_NUMBER>.711845
Starting to write pairs at<PHONE_NUMBER>.901698

Hi @jungyongji ,
Thanks for reporting this issue. One possibility is a timing issue, where the backend container is attempting to write to the DB container before it's ready to accept connections. I went ahead and updated the code to try to prevent this scenario.
Could you please pull the newest version of the main branch, and give it a try again? I'd recommend using the below commands (note that using the --volumes flag deletes your previous matcher DB data, but this helps prevent issues by starting from a clean slate):
docker-compose down --volumes && \
docker-compose build && \
docker-compose up --force-recreate

I recently encountered an issue after accessing http://<IP_ADDRESS>:8000/, related to a JSON type error.
matcher-frontend-1  | ERROR:frontend.frontend_api:Exception on /dash/_dash-update-component [POST]
matcher-frontend-1  | Traceback (most recent call last):
matcher-frontend-1  |   File "/opt/conda/envs/matcher-frontend/lib/python3.9/site-packages/flask/app.py", line 2073, in wsgi_app
matcher-frontend-1  |     response = self.full_dispatch_request()
matcher-frontend-1  |   File "/opt/conda/envs/matcher-frontend/lib/python3.9/site-packages/flask/app.py", line 1519, in full_dispatch_request
matcher-frontend-1  |     rv = self.handle_user_exception(e)
matcher-frontend-1  |   File "/opt/conda/envs/matcher-frontend/lib/python3.9/site-packages/flask/app.py", line 1517, in full_dispatch_request
matcher-frontend-1  |     rv = self.dispatch_request()
matcher-frontend-1  |   File "/opt/conda/envs/matcher-frontend/lib/python3.9/site-packages/flask/app.py", line 1503, in dispatch_request
matcher-frontend-1  |     return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
matcher-frontend-1  |   File "/opt/conda/envs/matcher-frontend/lib/python3.9/site-packages/dash/dash.py", line 1265, in dispatch
matcher-frontend-1  |     ctx.run(
matcher-frontend-1  |   File "/opt/conda/envs/matcher-frontend/lib/python3.9/site-packages/dash/_callback.py", line 450, in add_context
matcher-frontend-1  |     output_value = func(*func_args, **func_kwargs)  # %% callback invoked %%
matcher-frontend-1  |   File "/home/jyji/matcher/frontend/pages/common/callbacks.py", line 178, in instantiate_output_elements
matcher-frontend-1  |     pair_data = json.loads(pair_data)
matcher-frontend-1  |   File "/opt/conda/envs/matcher-frontend/lib/python3.9/json/__init__.py", line 339, in loads
matcher-frontend-1  |     raise TypeError(f'the JSON object must be str, bytes or bytearray, '
matcher-frontend-1  | TypeError: the JSON object must be str, bytes or bytearray, not list

I'm wondering if I need to modify the code in the instantiate_output_elements method within the /home/jyji/matcher/frontend/pages/common/callbacks.py script. This error seems to arise because the file format is a list rather than a string. Is this a common issue that others have experienced?
For your information, I'm currently using the Docker Compose command, not docker-compose. Could this be a contributing factor to the problem?

Hi @jungyongji ,
Why are you trying to access  http://<IP_ADDRESS>:8000/ -- are you navigating to this address in a browser, and expecting normal functioning of the app? If that's the case, you shouldn't be navigating to http://<IP_ADDRESS>:8000/ (which in my experience will not lead to the desired functionality), and instead you should be navigating to http://localhost:8000, as is written in the README, which works for me to give expected behavior of loading the app's frontend client in the browser.
One test you can run is to navigate to http://localhost:8000/snap/1, and you should see the table below:

It shouldn't matter whether you are using docker-compose or docker compose, this convention is based on the version of Docker that you are using, and otherwise has not had an effect on the functioning of the app in my experience.
Could you confirm that the code in the current main branch (as of the time of this post) works on your end, in terms of launching the app with docker compose? At least from your error message, it seems like the code is not running in containers.
That being said, the exception you pasted does occur on page load (even when everything is working as expected with docker compose), and is something we should fix, but as far as I can tell has no effect on the desired functionality of the app.

Dear @hooveran,
I wanted to extend my deepest gratitude for your invaluable assistance on the GitHub issue regarding the 'docker compose up' challenges in the Matcher project. Your insightful guidance and prompt resolution not only addressed the technical difficulties but also contributed significantly to the project's advancement. Your expertise and willingness to help are truly appreciated.
Warm regards,
jungyongji


Abaqus Mesh

Hi Kristoffer,
I have a few questions regarding Phon. In my case I am not dealing with polycrystalline material. I am dealing with homogenous material but I want to place cohesive elements between inter-element boundaries. I think it should work theoretically because I can assume each element as a grain. I wrote my input file as the form in the documentation for 2D so I used face to define each element as separate grain and edge to define the elements in grain boudaries (in my case it is one element). Since my model is 2D, in the Nset I dont have any Zo  dependence. When I try to run the commands to embed cohesive elements it is not working it doesnot give me an error even. My question can Phone handle this case or No.
thanks

I would need to see the input file you provided (best if you can make it small)  and the exact commands you tried to run.


Revert "Use git lfs"

Reverts opentensor/bittensor#808
Our LFS bandwidth allotment is too low, so we won't use this solution.

Pull Request Test Coverage Report for Build 0f00377a-2a79-4b8e-8f5b-3907f43e5c44

0 of 0   changed or added relevant lines in 0 files are covered.
832 unchanged lines in 23 files lost coverage.
Overall coverage decreased (-16.2%) to 65.501%

Files with Coverage Reduction
New Missed Lines
%

bittensor/_endpoint/init.py
1
85.71%

bittensor/_metagraph/init.py
1
78.95%

bittensor/_config/init.py
2
80.33%

bittensor/_dataset/init.py
2
88.06%

bittensor/_metagraph/metagraph_impl.py
2
63.41%

bittensor/_subtensor/subtensor_impl.py
2
78.64%

bittensor/_threadpool/priority_thread_pool_impl.py
2
73.88%

bittensor/_wallet/wallet_impl.py
3
75.56%

bittensor/_subtensor/init.py
5
75.0%

bittensor/_dendrite/dendrite_impl.py
8
81.97%

Totals

Change from base Build 304f61d9-f910-4eea-b1c2-82fc89eab0e6:
-16.2%

Covered Lines:
3353

Relevant Lines:
5119

💛  - Coveralls


Can not build using ionic after adding plugin

Hey,
I've added the plugin as described in your manual and since then I can not build my app (I'm using Ionic). Here's the log:
FAILURE: Build failed with an exception.

What went wrong:
A problem occurred configuring root project 'android'.

Could not resolve all dependencies for configuration ':_debugCompile'.
Could not find any version that matches com.google.android.gms:play-services-ads:+.
Searched in the following locations:
https://repo1.maven.org/maven2/com/google/android/gms/play-services-ads/maven-metadata.xml
https://repo1.maven.org/maven2/com/google/android/gms/play-services-ads/
Required by:
:android:unspecified

Any ideas ?

It seems that you did not install required android sdk libraries. Read: https://github.com/floatinghotpot/cordova-admob-pro/wiki/Difference-of-Plugin-IDs#4-build-error-with-message-not-found-comgoogleandroidgmsplay-services-ads

Realized it only after I posted... :-1:
Nevertheless - Now I can build yet I see nothing on my device

Ok fixed the stuff and rebooted. For some reason it did the magic. Can close the issue thx for the fast reply tho :D


CSS formatting

@daveliepmann After working on c15070ca84f19cfa994dd38bb92adccb1d4fbed7 to close the loop on #90, I discovered the odd indentation/formatting used in this project. Surprisingly I guess I’d never actually looked at the CSS source. How would you feel about using standard indentation for tufte.css?

I chose the formatting standard used in this project because I see no need to give space to open- or close-braces, and because I find the horizontal staggering to be a useful visual/mental crutch for differentiating selector blocks.
Since "standard" CSS indentation decreases readability for me, the only value-add I see for using it would be to increase code consistency with external projects. Part of the reason I don't find that tremendously convincing is that I don't spend much time with CSS in other projects, so I have no mental overhead involved in context-switching. Is the unfamiliarity disruptive for other people? Are there other benefits to "standard" indentation that I'm not seeing?

In my case, I converted a lot of this to SCSS for my own project, and it was painful having to reformat everything to the standard. I don't remember if that was just to get rid of warnings, or because it also caused errors. Things like nesting definitely require reformatting.
It also puts me off coming back for updates that would otherwise be more easily merged.
On an editor with softwrapping at 80 chars (which is fairly normal) the parts with the media queries become really messy.
Not that I'm wanting to moan! :) Everyone has their preferred ways for formatting, just letting you know my experience.
Regards,

@yb66 SCSS conversion is a substantial reason that did not come to my mind.

...but on further inspection, don't tools like http://csstoss.com/ do this rather painlessly? Or even just selecting all the open-braces, add a newline after, then select all the close-braces, add a newline before, then re-indent the file?
I do recognize the issue of soft-wrapping, as well.

i think specifying a format and providing the specification for a given linter/formatter tool would be very helpful. I think supporting such a tool and then enforcing its use with every merged commit would actually make it easier for people to make contributions and pull requests. I don't think anyone wants to spend their time fiddling with indents and braces, when you could just run a command on the *.css file before committing and be done with it.
One option is stylelint.io but there are others as well.

I mean, we've had the CSS Style Guide section in the README since back in the days when dinosaurs roamed the earth and commits were sent by ship across the Atlantic. My policy on enforcing that standard has been

hope that people conform
accept PRs regardless
manually coerce nonconformant code into conformity

This project is less than 300 lines. I respectfully don't see the need to introduce a command-line tool dependency in order to automate the process of taking 90 seconds to correct the six to eight braces most PRs have.
I have been admittedly slow addressing bugs and PRs, but that's not due to style issues, it's due to external time pressure and the complexity of testing changes across many devices and scenarios.

My intended original point, which I’m sorry for not making clear, is that one’s eye is forced to zig-zag around to read the code.
Let’s compare the current formatting to two other options A and B.
Current:
.table-caption { float:right;
                 clear:right;
                 margin-right: -60%;
                 width: 50%;
                 margin-top: 0;
                 margin-bottom: 0;
                 font-size: 1.0rem;
                 line-height: 1.6; }

.sidenote-number { counter-increment: sidenote-counter; }

.sidenote-number:after, .sidenote:before { content: counter(sidenote-counter) " ";
                                           font-family: et-book-roman-old-style;
                                           position: relative;
                                           vertical-align: baseline; }

.sidenote-number:after { content: counter(sidenote-counter);
                         font-size: 1rem;
                         top: -0.5rem;
                         left: 0.1rem; }

.sidenote:before { content: counter(sidenote-counter) " ";
                   top: -0.5rem; }

blockquote .sidenote, blockquote .marginnote { margin-right: -82%;
                                               min-width: 59%;
                                               text-align: left; }

p, footer, table, div.table-wrapper-small, div.supertable-wrapper > p, div.booktabs-wrapper { width: 55%; }

Option A
.table-caption               { float:right;
                               clear:right;
                               margin-right: -60%;
                               width: 50%;
                               margin-top: 0;
                               margin-bottom: 0;
                               font-size: 1.0rem;
                               line-height: 1.6; }

.sidenote-number             { counter-increment: sidenote-counter; }

.sidenote-number::after,
.sidenote::before            { content: counter(sidenote-counter) " ";
                               font-family: et-book-roman-old-style;
                               position: relative;
                               vertical-align: baseline; }

.sidenote-number::after      { content: counter(sidenote-counter);
                               font-size: 1rem;
                               top: -0.5rem;
                               left: 0.1rem; }

.sidenote:before             { content: counter(sidenote-counter) " ";
                               top: -0.5rem; }

blockquote .sidenote,
blockquote .marginnote       { margin-right: -82%;
                               min-width: 59%;
                               text-align: left; }

p,
footer,
table,
div.table-wrapper-small,
div.supertable-wrapper > p,
div.booktabs-wrapper         { width: 55%; }

Option B:
.table-caption {
  float: right;
  clear: right;
  margin-right: -60%;
  width: 50%;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.0rem;
  line-height: 1.6;
}

.sidenote-number {
  counter-increment: sidenote-counter;
}

.sidenote-number::after,
.sidenote::before {
  content: counter(sidenote-counter) " ";
  font-family: et-book-roman-old-style;
  position: relative;
  vertical-align: baseline;
}

.sidenote-number::after {
  content: counter(sidenote-counter);
  font-size: 1rem;
  top: -0.5rem;
  left: 0.1rem;
}

.sidenote:before {
  content: counter(sidenote-counter) " ";
  top: -0.5rem;
}

blockquote .sidenote,
blockquote .marginnote {
  margin-right: -82%;
  min-width: 59%;
  text-align: left;
}

p,
footer,
table,
div.table-wrapper-small,
div.supertable-wrapper > p,
div.booktabs-wrapper {
  width: 55%;
}

Having written hundreds of thousands of lines of CSS in my life I’m most used to reading Option C, but I can absolutely see a case being made for something like Option B. That being said I have a hard time seeing how Option B doesn’t surpass the current formatting in readability. Of course, as you point out, it’s <300 lines so it’s no big deal either way.

At this point I'm leaning towards something more conventional, so that it's more readable and in line with CSS norms in the broader community. Option B seems like it will be more recognizable for folks.

I'd go for option B too. Is there not a way to specify a format that is human readable and machine readable for several formatters/linters?

I finally got around to this. Thanks for raising this issue Adam, and thanks to everyone else for adding your two cents.
Please, if you have a minute, take a look at the commit (https://github.com/edwardtufte/tufte-css/commit/bfbe3b5c50ee450ba09122f1506233edf6a97ffe) and let me know if A) any indentation or statements could be further standardized, or B) you notice any implementation changes. (I have not implemented any way to test changes except manually scrolling through the sample doc.)

It looks good to me, @daveliepmann. I know how hard it can be to find the energy to face old issues like this so the effort is much appreciated! I'm in the process of re-publishing my blog to a new site so I'l use these changes and let you know if I find any problems.

@daveliepmann looks great. Thank you so much for doing this.

@yb66 Do... do you have your SCSS around somewhere? Like, in github?  I'm using an email tool that allows overriding the styling when displaying HTML mime parts, and it uses SCSS.  I'd love to use Tufte for this, and if somebody's already done an SCSS conversion it'd make that a whole lot easier.

@serussell Isn’t CSS valid SCSS?

@adamschwartz :shrug:  It didn't occur to me; I'm not a web developer.  But it appears that you're right: SCSS is a superset of CSS.  Good news, everyone!

May I suggest also suggest using a linter! Stylelint lights up like its Christmas when I use the css here. While some of those are an issue of style, there are many inconsistencies as well which we can get rid of easily.


How do i generate collection ID's from Unsplash?

Love this wallpaper module, especially the wallpapers on unsplash are one of the best ones on the internet. Thankfully there is a module for MM for this.
However i am trying to figure out how to generate collection id for a certain type of wallpaper for eg:-
Dark Backgrounds?
https://unsplash.com/s/photos/dark-background
Can you please guide.

Hi,
I'm not quite sure whether you can generate a collectionID based on a certain type of wallpaper.
However, I added a new parameter query, where you can type in your search keywords like Dark Background, such that the module only returns wallpaper, which are tagged with these keywords.
A second possibility would be - as far as I recall correctly - to create an account and create an own collection with the wallpaper you like and use this generated (own) collectionID.

Thanks for your reply. That will help.
Also i think if you can add an option to pull the wallpapers from the favourites.
Several people usually add the wallpaper into their favourites. if you can add a option we can just get all the wallpapers to show up from our favourites.

This option is already implemented - just use the collection ID of your favorite collection(s) as comma separated list (e.g. ["1101429"])
It can be found in the URL of your desired collection.
The URL should look like the following:
https://unsplash.com/collections/<yourCollectionID>/<yourCollectionName>

Hello I tried that, and the collection id from the favourites do not work. However single wallpaper id works. I think there is an issue, can you please test it on your setup?

Hi,
glad that at least single wallpaper id works for you.
Of course is the collectionID from favorites tested - can you give me your user name or collectionID to test exactly your it on my setup ?
For me the collectionID from a random collection as well as from my own collection works perfectly.
Can you describe how you get the collectionID and what you did ?

Thanks.
My Unsplash user is is @monukoshy
Collection id is
https://unsplash.com/collections/0mTpa26cG5w/textures/4014b532f62e0737afd008625c8423a0

Hi,
thanks for the information.
Given your link, the collectionID is 0mTpa26cG5w.
As stated above, your configuration should then look like this:
module: 'MMM-Wallpaper',
position: 'fullscreen_below',
config: {
        updateInterval: 0,
        unsplashAPIKey: "YOUR API-KEY", // REQUIRED
        query: false,
        collectionIDs: ["0mTpa26cG5w"],
        userName: false,
        photoID: false,
        autoDim: true,
        brightImageOpacity: 0.85,
        imageOrientation: "landscape",
        imageWidth: "auto",
        imageHeight: "auto",
        imageOptions: "fit=fill&fill=blur",
}

or minified, due to default values:
module: 'MMM-Wallpaper',
position: 'fullscreen_below',
config: {
        unsplashAPIKey: "YOUR API-KEY", // REQUIRED
        collectionIDs: ["0mTpa26cG5w"],
}

Hope this solves your issue...

Hello thank you so so very much, yes its working now. Your wallpaper module is the real deal, its the best wallpaper module for non mirror setup.

Oh, perfect! :-)
Glad that I could help!
So, I would close this issue then. Feel free to open another issue, if there is something still not working or if you want to have another feature.


Get-Credential instead of User and Password?

Might the script for "Elastic pool data space allocated and unused allocated space" contain an example in using Get-Credential so the reader doesn't try the script using 'userName' and 'password'?
$resourceGroupName = ""
$serverName = ""
$poolName = ""
$userName = ""
$password = ""
get list of databases in elastic pool
$databasesInPool = Get-AzSqlElasticPoolDatabase -ResourceGroupName $resourceGroupName `
-ServerName $serverName -ElasticPoolName $poolName
$databaseStorageMetrics = @()
I would like to see that myself.  :-)

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

ID: c60b2433-250b-009c-2794-f5924a8e6c3c
Version Independent ID: 9448dc48-0b71-42e4-e2d8-d9fafa2d646e
Content: Azure SQL Database file space management - Azure SQL Database
Content Source: articles/azure-sql/database/file-space-manage.md
Service: sql-database
Sub-service: operations
GitHub Login: @oslake
Microsoft Alias: moslake

@robertplata We are looking into this also and will get back shortly. Thanks

@oslake Please see customer feedback above. I tried to use Get-Credential in PowerShell and it worked fine. Can we add an example to the doc. Thanks
Get-Credential
[[-Credential] ]
[]

@robertplata We have raised a pull request to make changes in the document. Once the PR is approved the changes will be live between 24 to 48 hours. Thanks


fix: multibuild (+ reduced build duration)

- What I did

Converted to absolute path for multibuild upload artifacts, because actions/upload-artifact doesn't respect the working-directory.

See https://github.com/actions/upload-artifact/issues/294

Added a job to alert in google chat if ssh no ports builds fail
Doing other_build in parallel to reduce wait time of build

- How I did it
- How to verify it
See https://github.com/atsign-foundation/sshnoports/actions/runs/5606212030
- Description for the changelog
fix: multibuild (+ reduced build duration)

This needs to be merged so we can run multibuild against trunk for the next release


Use tempest-testing in misk-aws-dynamodb-testing

As documented here https://cashapp.github.io/tempest/guide/testing/
This PR

does not modify public APIs in misk-aws-dynamodb-testing and misk-aws2-dynamodb-testing.
removeswisp-aws2-dynamodb-testing

I’m seeing breaks in downstream projects like this:
    1) [Guice/ErrorInCustomProvider]: IllegalArgumentException: `dynamoDb` is only usable while the service is running
      at InProcessDynamoDbModule.providesAmazonDynamoDB(InProcessDynamoDbModule.kt:53)
          \_ installed by: MiskTestExtension$beforeEach$module$1 -> CashFaceTestingModule -> InProcessDynamoDbModule

Some of the fixes to address that fallout:
https://github.com/cashapp/backfila/pull/190
https://github.com/squareup/cash-plasma/pull/2256


Update WAFv2 URLs with proper regex

Follow up to #4110

Codecov Report

Merging #4237 (6b47c8e) into master (07bb843) will increase coverage by 40.14%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master    #4237       +/-   ##
===========================================
+ Coverage   54.91%   95.05%   +40.14%
===========================================
  Files         485      485
  Lines       54129    54129
===========================================
+ Hits        29723    51454    +21731
+ Misses      24406     2675    -21731

Flag
Coverage Δ

servertests
?

test_responses
32.89% <ø> (?)

unittests
95.03% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

moto/wafv2/urls.py
100.00% <ø> (ø)

moto/ec2/responses/route_tables.py
100.00% <0.00%> (+1.23%)
:arrow_up:

moto/ec2/responses/network_acls.py
100.00% <0.00%> (+1.40%)
:arrow_up:

moto/ec2/responses/elastic_ip_addresses.py
98.41% <0.00%> (+1.58%)
:arrow_up:

moto/rds/responses.py
90.59% <0.00%> (+1.70%)
:arrow_up:

moto/dynamodb2/parsing/validators.py
97.93% <0.00%> (+2.06%)
:arrow_up:

moto/ec2/responses/internet_gateways.py
100.00% <0.00%> (+2.22%)
:arrow_up:

moto/sqs/utils.py
95.34% <0.00%> (+2.32%)
:arrow_up:

moto/ec2/responses/vpn_connections.py
89.74% <0.00%> (+2.56%)
:arrow_up:

moto/ec2/responses/security_groups.py
89.05% <0.00%> (+3.64%)
:arrow_up:

... and 247 more

Continue to review full report at Codecov.

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


[2pt] Create a full documentation for the api

Write down a documentation on the api and how to get it up and running.


chore(cloudsql): code clean up

These code samples are redundant. Similar samples can be found in db prefix folder  code samples. (mysql_, postgres_, sqlserver_ folder under cloud_sql parent folder)
Description
Fixes #
Note: If you are not associated with Google, open an issue for discussion before submitting a pull request.
Checklist
Readiness

[ ] Yes, merge this PR after it is approved
[ ] No, don't merge this PR after it is approved

Style

[ ] My sample follows the rules described for Terraform in the Effective Samples style guide
[ ] My sample follows the other requirements and best practices in the Contributing
guide

Testing

[ ] I have performed tests described in the Contributing guide:

[ ] Tests pass: terraform apply
[ ] Lint pass: terraform fmt check

Intended location

[ ] Yes, this sample will be (or already is) included on cloud.google.com
Location(s):

[ ] No, this sample won't be included on cloud.google.com
Reason:

API enablement

[ ] If the sample needs an API enabled to pass testing, I have added the service to the Test setup file

Review

[ ] If this sample adds a new directory, I have added codeowners to the CODEOWNERS file

@msampathkumar is there a corresponding CL for updating the docs internally? As is, this will break our public docs.

@msampathkumar is there a corresponding CL for updating the docs internally? As is, this will break our public docs.

Thank you for your prompt response. I have CL at cl/553758056

Looks like snippet-bot check is still upset. Let's get that passing and then ping me here and I'll approve.

Working on second cl/554790268

Just let me know when you're ready for another pass.


Enable drag & drop for multiple choice

Can you please bump editable-html-tm in this one to be the latest?

:shipit:


SAK-29232 Hide templates of type a user can't add

When building the list of site templates a user can choose, only include templates if the user can create sites of that type.

Ah, I see, you're right, the if statements don't end at the same place.


Remove things from CeylonRuntime.zip

Things like compilers, antlr and markdown processors are not necessary anymore during runtime, so we need to remove them to produce a lighter runtime.

OK, I was able to shrink the runtime dependencies to this minimal set of archives:
<root url="jar://$CEYLON_DIST_REPO$/ceylon/language/1.2.2/ceylon.language-1.2.2.car!/" />
<root url="jar://$CEYLON_DIST_REPO$/com/redhat/ceylon/common/1.2.2/com.redhat.ceylon.common-1.2.2.jar!/" />
<root url="jar://$CEYLON_DIST_REPO$/com/redhat/ceylon/model/1.2.2/com.redhat.ceylon.model-1.2.2.jar!/" />
<root url="jar://$CEYLON_DIST_REPO$/com/redhat/ceylon/module-resolver/1.2.2/com.redhat.ceylon.module-resolver-1.2.2.jar!/" />
<root url="jar://$CEYLON_DIST_REPO$/org/jboss/modules/1.4.4.Final/org.jboss.modules-1.4.4.Final.jar!/" />
<root url="jar://$CEYLON_DIST_REPO$/org/jboss/jandex/2.0.0.Final/org.jboss.jandex-2.0.0.Final.jar!/" />

I was able to create a new IntelliJ plugin, written in Ceylon, that works at runtime without throwing any exception, so I suppose this is enough to bootstrap a Ceylon app. @davidfestal or @FroMage could you please confirm this?
Ceylon IDE itself needs these additional archives:
<root url="jar://$CEYLON_DIST_REPO$/org/tautua/markdownpapers/core/1.2.7/org.tautua.markdownpapers.core-1.2.7.jar!/" />
<root url="jar://$CEYLON_DIST_REPO$/org/antlr/stringtemplate/3.2.1/org.antlr.stringtemplate-3.2.1.jar!/" />
<root url="jar://$CEYLON_DIST_REPO$/org/antlr/antlr/2.7.7/org.antlr.antlr-2.7.7.jar!/" />
<root url="jar://$CEYLON_DIST_REPO$/org/antlr/runtime/3.4/org.antlr.runtime-3.4.jar!/" />
<root url="jar://$CEYLON_DIST_REPO$/com/github/rjeschke/txtmark/0.13/com.github.rjeschke.txtmark-0.13.jar!/" />
<root url="jar://$CEYLON_DIST_REPO$/com/redhat/ceylon/typechecker/1.2.2/com.redhat.ceylon.typechecker-1.2.2.jar!/" />
<root url="jar://$CEYLON_DIST_REPO$/com/redhat/ceylon/compiler/js/1.2.2/com.redhat.ceylon.compiler.js-1.2.2.jar!/" />
<root url="jar://$CEYLON_DIST_REPO$/com/redhat/ceylon/compiler/java/1.2.2/com.redhat.ceylon.compiler.java-1.2.2.jar!/" />
<root url="jar://$CEYLON_DIST_REPO$/org/jboss/logmanager/2.0.3.Final/org.jboss.logmanager-2.0.3.Final.jar!/" />
<root url="jar://$CEYLON_DIST_REPO$/org/apache/httpcomponents/httpcore/4.3.2/org.apache.httpcomponents.httpcore-4.3.2.jar!/" />
<root url="jar://$CEYLON_DIST_REPO$/org/apache/commons/codec/1.8/org.apache.commons.codec-1.8.jar!/" />
<root url="jar://$CEYLON_DIST_REPO$/net/minidev/json-smart/1.1.1/net.minidev.json-smart-1.1.1.jar!/" />
<root url="jar://$CEYLON_DIST_REPO$/org/apache/httpcomponents/httpclient/4.3.2/org.apache.httpcomponents.httpclient-4.3.2.jar!/" />
<root url="jar://$CEYLON_DIST_REPO$/com/redhat/ceylon/maven-support/2.0/com.redhat.ceylon.maven-support-2.0.jar!/" />
<root url="jar://$CEYLON_DIST_REPO$/org/apache/commons/logging/1.1.1/org.apache.commons.logging-1.1.1.jar!/" />
<root url="jar://$CEYLON_DIST_REPO$/com/github/lookfirst/sardine/5.1/com.github.lookfirst.sardine-5.1.jar!/" />
<root url="jar://$CEYLON_DIST_REPO$/ceylon/runtime/1.2.2/ceylon.runtime-1.2.2.jar!/" />
<root url="jar://$CEYLON_DIST_LIB$/ceylon-bootstrap.jar!/" />
<root url="jar://$CEYLON_DIST_REPO$/com/redhat/ceylon/langtools/classfile/1.2.2/com.redhat.ceylon.langtools.classfile-1.2.2.jar!/" />

I'm not sure what you mean by "are not necessary anymore during runtime", because I see quite a number of dependencies missing I would expect to be required to be able to run. BUt perhaps I'm just not understanding what minimal set you're trying to achieve?

I mean Stef recently removed a lot of dependencies from ceylon.language, which means if I write a Java program that calls Ceylon code, I don't need to have both compilers and the typechecker in the classpath anymore. Since we're also providing every required CAR files, and we register them by hand when the plugin is loaded, I think we don't have to depend on maven-support and all the HTTP related libs.
As for markdown processors and ANTLR, I don't see why they are needed in this scenario.
This basically leaves those three JARs, which I'm not sure what they do:
<root url="jar://$CEYLON_DIST_REPO$/ceylon/runtime/1.2.2/ceylon.runtime-1.2.2.jar!/" />
<root url="jar://$CEYLON_DIST_LIB$/ceylon-bootstrap.jar!/" />
<root url="jar://$CEYLON_DIST_REPO$/com/redhat/ceylon/langtools/classfile/1.2.2/com.redhat.ceylon.langtools.classfile-1.2.2.jar!/" />

maven-support is outdated anyway :-)

My sample plugin works good with this reduced runtime, so I'll close this issue.


Re-encrypt S3 vars under facebook/flow instead of mroch/flow... oops.

@facebook-github-bot shipit


docs(concepts): added new targets section

Gotten started on the targets section. Work in progress.

Need to add some resources, however is ready to have some eyes look at the content as a whole.

So I added a Todo also to find some more up to date targets, to supplement I whipped up a super minimal but informative repo that people can try out using all the different webpack targets in individual dist folders.


Possible Undefined Behavior / NaNs

I think this code produces NaNs or undefined behavior, if the time difference is 0.
https://github.com/vectr-ucla/direct_lidar_inertial_odometry/blob/a524000eb2e18a801a9222410650ddb12eddde39/src/dlio/odom.cc#L952-L954
From the reference:

If the second operand is zero, the behavior is undefined, except that if floating-point division is taking place and the type supports IEEE floating-point arithmetic (see std::numeric_limits::is_iec559), then:
- if one operand is NaN, the result is NaN
- dividing a non-zero number by ±0.0 gives the correctly-signed infinity and FE_DIVBYZERO is raised
- dividing 0.0 by 0.0 gives NaN and FE_INVALID is raised

The straightforward solution would be to check for 0 before adjusting imu_rates. I am not sure if that would break some other parts of the code that depend on imu_rates.
I can create a PR and test with the provided data if you agree this could be an issue.

Ah, good catch! Yes a PR would be great. Thanks so much @juliangaal :)

Sounds good. I'll take care of it in the next couple of days

@juliangaal -- Thanks again for the catch. I added a quick fix for when, for some reason, dt == 0. Shouldn't happen unless there is a data hiccup.

I'm surprised you're not simply returning. To my understanding, it shouldn't affect the calculation of the average rate because it just does an std::accumulate on the vector and doesn't care about the number of elements.

It's not a guarantee that, just because dt == 0 then the previous measurement and the current measurement are the same. It could be possible that the measurements are different and distinct, but for whatever reason the timestamps are equal. Yes returning won't affect the average rate calculation, but that's purely for visualization. If we return when dt == 0, that would throw away that measurement.
I suppose alternatively, if dt==0, that could be an indicator that a measurement was duplicated during data passing, but I would rather risk duplicating a measurement than losing information. In any case, in practice this should rarely happen, so either way would handle it fine. Just my thinking.

great, thanks.


Merge ifbyphone-develop -> ifbyphone-master

Merge ifbyphone-develop -> ifbyphone-master

@ajayanty Can you merge this for us and tag the merge point as v0.9.1.p1-1.ibp?
@runningferret After AJ's merged, can you update our Gemfile to point to the aforementioned tag?

@ajayanty
Don't You Forget About Me
Don't Don't Don't Don't
Don't You Forget About Me

This has been merged into ifbyphone-master


Return traffic can be denied for a short duration once the policies are reconciled on a new pod

What happened:
In standard mode, we do a default allow at pod startup and all traffic is allowed before policies are reconciled. It takes 1-2secs for the policies to be reconciled on the new pod. Once the network policy reconciliation happens, we start tracking the flows in conntrack table. For return traffic we check if entry is present in conntrack table and allow it accordingly. For traffic which exited the pod before network policies were applied and return traffic came after policies were applied, the return traffic will be denied as entry is not tracked in conntrack table
As a mitigation, 2-5secs delay can be added at the pod startup using init container. As a result, traffic will start going out of the pod only after network policies were applied and there will be no denies in the return traffic
We are actively working on fixing this issue, so that cx can use standard mode without the need to add sleep at pod startup. Fix for this issue can be tracked here
Please note that this issue happens only with standard mode and not in strict mode
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:

Kubernetes version (use kubectl version):
CNI Version
Network Policy Agent Version
OS (e.g: cat /etc/os-release):
Kernel (e.g. uname -a):

NetPol are always asynchronously reconciled. What makes standard mode so special here compared to strict mode? Can you please elaborate on the technical side a bit.

@youwalther65 In strict mode, we do default deny before policies are applied on the first pod, so no egress traffic goes out of the pod before policies were applied. So above issue will not happen where response packet will be denied as entry is missing in conntrack table for traffic that egressed out of pod before applying policies

@m00lecule We are looking into improving the user experience for strict mode. This is something we are prioritizing. We will provide more details soon


Simplify id creation

I think that it might be smart to reduce the amount of steps to upload a file. Instead of

Going to /dir/assign and receiving the fid
upload the file with the fid at /{fid}

You could change it to

Upload the file to directly to /dir/assign and receive the fid in the response.

This api design is very similar to Ambry, and could make this library better
Thanks

You can upload file directly by /submit . See more in https://github.com/chrislusf/seaweedfs/wiki/Volume-Server-API.

@Superman132 Also, separating the fid assignment from the actual uploading gives clients more control. It's possible to customize the fid.


[IOTDB-2598]Enable append operation on template after setting and using

NOTICE:
Given that we strongly recommend not setting templates on the nodes above the storage group, and that we want to disturb the mlog upgrade as little as possible, there was a very rare case that could cause an error after this pull request:
Suppose there is a user had set a template to a node above the storage group, and this MTree was recorded in the mlog. After this pull request, any new storage group under the set node will not be able to visit the template by querying paths set or using the template or be designated a new template.


Use external database by default

Task linked: QF-1505 Add option to ignore some env varnames in check_envars.py

Task linked: QF-1470 Use Exoscale's hosted db for dev


The unittests doesn't works in firefox.

INFO [karma]: Karma v0.12.31 server started at http://localhost:9876/
INFO [launcher]: Starting browser Chrome
INFO [launcher]: Starting browser Firefox
INFO [Chrome 40.0.2214 (Windows 7)]: Connected on socket WAYD_BtBE5RnLtxKs4rj with id 10225041
INFO [Firefox 36.0.0 (Windows 7)]: Connected on socket z9kdQ8ThjC7pVpIds4rk with id 21162204
Firefox 36.0.0 (Windows 7) ERROR
ConstraintError
at C:/CI-Cor/kexin/db.js/src/db.js:96
Chrome 40.0.2214 (Windows 7): Executed 41 of 61 SUCCESS (0 secs / 12.271 secs)
Chrome 40.0.2214 (Windows 7): Executed 44 of 61 SUCCESS (0 secs / 12.83 secs)
Firefox 36.0.0 (Windows 7): Executed 54 of 61 ERROR (12.317 secs / 12.124 secs)
Chrome 40.0.2214 (Windows 7): Executed 61 of 61 SUCCESS (16.207 secs / 16.179 secs)
Firefox 36.0.0 (Windows 7): Executed 54 of 61 ERROR (12.317 secs / 12.124 secs)
Firefox 36.0.0 (Windows 7) ERROR
ConstraintError
at C:/CI-Cor/kexin/db.js/src/db.js:96
Firefox 36.0.0 (Windows 7): Executed 54 of 61 ERROR (11.873 secs / 11.69 secs)
Chrome 40.0.2214 (Windows 7): Executed 61 of 61 SUCCESS (16.525 secs / 16.503 secs)

possibly relates to #98

Not getting errors anymore in Firefox, so I think this issue can be closed.

I'm not getting any in my testing either


Missing Dependencies?

Hello,
I tried serving this up on a Mac as well as a PC and got this same result:
FIRST ERROR
ReferenceError: $traceurRuntime is not defined
at Object. (http://localhost:666/node_modules/angular-new-router/dist/router.es5.js:860:4)
at Object.invoke (http://localhost:666/node_modules/angular/angular.js:4182:17)
at Object.enforcedReturnValue [as $get] (http://localhost:666/node_modules/angular/angular.js:4035:37)
at Object.invoke (http://localhost:666/node_modules/angular/angular.js:4182:17)
at http://localhost:666/node_modules/angular/angular.js:4000:37
at getService (http://localhost:666/node_modules/angular/angular.js:4141:39)
at Object.invoke (http://localhost:666/node_modules/angular/angular.js:4173:13)
at http://localhost:666/node_modules/angular/angular.js:6482:43
at forEach (http://localhost:666/node_modules/angular/angular.js:323:20)
at Object. (http://localhost:666/node_modules/angular/angular.js:6480:13)
angular.js:11594
SECOND ERROR
Error: [$compile:ctreq] Controller 'routerComponent', required by directive 'routerComponent', can't be found!
http://errors.angularjs.org/1.3.8/$compile/ctreq?p0=routerComponent&p1=routerComponent
at http://localhost:666/node_modules/angular/angular.js:63:12
at getControllers (http://localhost:666/node_modules/angular/angular.js:7537:19)
at nodeLinkFn (http://localhost:666/node_modules/angular/angular.js:7726:33)
at compositeLinkFn (http://localhost:666/node_modules/angular/angular.js:7075:13)
at compositeLinkFn (http://localhost:666/node_modules/angular/angular.js:7078:13)
at publicLinkFn (http://localhost:666/node_modules/angular/angular.js:6954:30)
at http://localhost:666/node_modules/angular/angular.js:1451:27
at Scope.$eval (http://localhost:666/node_modules/angular/angular.js:14383:28)
at Scope.$apply (http://localhost:666/node_modules/angular/angular.js:14482:23)
at bootstrapApply (http://localhost:666/node_modules/angular/angular.js:1449:15)

Same thing here (IE 11). I couldn't locate the code anywhere.

Yes, the traceur runtime is not loading. A workaround is to add it in index.html before angular-new-router:
<script src="node_modules/angular-new-router/node_modules/traceur/bin/traceur-runtime.js"></script>
<script src="node_modules/angular-new-router/dist/router.es5.js"></script>

That should fix it. You should see the list by accessing http://localhost:8000/phones/


Incompatible with Corpse Complex "Recoverable XP"

Recoverable XP with Fixeroo will always be a tiny amount with Corpse Complex experience module enabled. Even if recoverable XP is 100%, the actual amount of XP on the ground when the player dies is a tiny fraction of what it should be.

 It looks like an issue on Corpse Complex's side

I'm quite certain that this issue doesn't occur because of Fixeroo.

I tested with and without Fixeroo and it always gave the same amounts of XP. (It definitely gives less than it should but it has nothing to do but results aren't different)
Fixeroo doesn't change the amount of XP you get from XP orbs.
And if you were using the latest version back then, that version didn't worked :trollface:

Fell free to re-open the issue if there's actually one.