Add babel-runtime to use async

Hi,
I was using react-heatpack to try a component that was using some async. Unfortunately, it was not  handled and provoked the error Uncaught ReferenceError: regeneratorRuntime is not defined in the browser.
Here is a PR that adds babel-runtime dependency to handle it. (https://www.npmjs.com/package/babel-loader)

Thanks for the PR.
Just created an async test component and it looks good.


Add new Raytac MDBT53-DB-40 and MDBT53V-DB-40 boards.

Adds support for Raytac MDBT53-DB-40 and MDBT53V-DB-40 demo board. These two boards pull out all the GPIOs of the module and connect them with pins without additional peripherals. It is very convenient for the development of various project programs.

@nordicjm I get a bug report daily and can't figure out what's wrong. Can you help me find out why?

Run if [[ "$GITHUB_REF" =~ "refs/tags/v" ]]; then
/__w/_temp/2cda6640-5825-4a19-b85f-de8a19c5bddd.sh: 1: [[: not found
make: Entering directory '/__w/zephyr/zephyr/doc'
cmake
-GNinja
-B_build
-S.
-DDOC_TAG=development
-DSPHINXOPTS="-q -j auto"
-DLATEXMKOPTS="-quiet -halt-on-error"
-DDT_TURBO_MODE=0
Loading Zephyr module(s) (Zephyr repository): doc
-- Found Python3: /__w/zephyr/zephyr/.venv/bin/python3.11 (found suitable exact version "3.11.2") found components: Interpreter
-- Cache files will be written to: /__w/zephyr/zephyr/.cache
-- Found west (found suitable version "1.0.0", minimum required is "1.0.0")
-- Zephyr base: /__w/zephyr/zephyr
-- Found Doxygen: /usr/bin/doxygen (found version "1.9.4") found components: doxygen dot
-- Found LATEX: /usr/bin/latex  found components: PDFLATEX
-- Configuring done
-- Generating done
-- Build files have been written to: /__w/zephyr/zephyr/doc/_build
cmake --build _build --target pdf
[0/3] Generating Devicetree bindings documentation...
[1/3] Running Sphinx LaTeX build...
WARNING: /__w/zephyr/zephyr/include/zephyr/drivers/misc/pio_rpi_pico/pio_rpi_pico.h:125: The following parameter of DT_INST_PIO_PIN_BY_NAME(inst, name) is not documented:
WARNING: /__w/zephyr/zephyr/include/zephyr/sys/util.h:538: argument 'x' from the argument list of LOG2 has multiple @param documentation sections
WARNING: /__w/zephyr/zephyr/include/zephyr/drivers/misc/pio_rpi_pico/pio_rpi_pico.h:125: The following parameter of DT_INST_PIO_PIN_BY_NAME(inst, name) is not documented:
WARNING: /__w/zephyr/zephyr/include/zephyr/sys/util.h:538: argument 'x' from the argument list of LOG2 has multiple @param documentation sections
WARNING: /__w/zephyr/zephyr/include/zephyr/sys/util.h:538: argument 'x' from the argument list of LOG2 has multiple @param documentation sections
Error: Process completed with exit code 137.

@nordicjm I get a bug report daily and can't figure out what's wrong. Can you help me find out why?

Not sure how you are getting this? But this is not coming from this PR and can probably be ignored.

@RaytacStanley any update on this? The zephyr 3.4 merge window closes this friday.

@nordicjm I've edited the parts suggested by the reviews. Do I need to update this branch?


Code workflow

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: arvindmits sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


dataset 'About' menu item

Should take us to dataset details.

Had a discussion w/ Jing.  Will the implementation within Dev follow Production's implementation:  have the Dataset details page use parameters that are provided by the constructed URL, e.g. https://genome-cancer.soe.ucsc.edu/proj/site/xena/datapages/?dataset=public%2Fother%2F1000_genomes%2FBRCA1&host=https%3A%2F%2Fgenome-cancer.ucsc.edu%3A443%2Fproj%2Fpublic%2Fxena?

yes, should work the same way. The parameters are encoded in the dataset
id. This was a wonky work-around for the problem that javascript has no
proper map type: you can't use an object as a key in a map. Our datasets
have a name and a host, like
{name: , host: }
So to make a js map of datasets we have to convert that to a string
somehow. We ended up just JSON stringifying it, rather than using some
other convention, like name::host, or whatever.
So in the column prop there should be a dsID which is a JSON encoded object
with name & host. So, the link is built by parsing it out & using them as
the dataset & host params.
On Wed, Feb 24, 2016 at 3:53 PM, Albert Chang<EMAIL_ADDRESS>wrote:

Had a discussion w/ Jing. Will the implementation within Dev follow
Production's implementation: have the Dataset details page use parameters
that are provided by the constructed URL, e.g.
https://genome-cancer.soe.ucsc.edu/proj/site/xena/datapages/?dataset=public%2Fother%2F1000_genomes%2FBRCA1&host=https%3A%2F%2Fgenome-cancer.ucsc.edu%3A443%2Fproj%2Fpublic%2Fxena
?
—
Reply to this email directly or view it on GitHub
https://github.com/acthp/ucsc-xena-client/issues/11#issuecomment-188524267
.

fixed in 48ebd23


builder: Rewrite in Go to be more reliable and more testable

The builder component is notoriously fragile, and has many associated issues, including:

#3317
#3249
#1772
#2980
#3078

Part of this is due to the fragility of the scripts themselves, but it's also because we cannot write unit tests for the builder component. We need to prioritize rewriting the component in Go so it's something that can be more easily maintained moving forward.

+1

#3684 helps a bit with this. To be clear, I think that the core part of builder (the script that is run when a commit is received) would definitely benefit from a re-factor. However, gitreceive or re-implementing a git server in Go is fruitless. openssh/gitreceive seems to handle that quite well.

However, gitreceive or re-implementing a git server in Go is fruitless.

I think that's perfectly reasonable. In my mind, the goals of a builder refactor are twofold:

Make the codebase less fragile and easier to maintain (many bug fix attempts have resulted in regressions)
Add test coverage to gain confidence in changes

Having the builder in Go is secondary to both of these primary motivations.
Both of those can be achieved without a new git server. :+1:

closing in favor of #3758


Allow controlling offset scale of minimap

Sorry for not creating a discussion first, but this one is pretty trivial.
Due to the 5 hard-coded value here:
https://github.com/wbkd/react-flow/blob/993a778b80cc1e80a47983ed75407b579313a73c/packages/minimap/src/MiniMap.tsx#L70
— minimap mask has a ~5px border even when the viewport is perfectly aligned with the map and all the nodes are inside:

This doesn't work for me, as I need the mask to show only when nodes are outside the view or the view aspect ratio differs from map's, eg:
https://github.com/wbkd/react-flow/assets/2056864/bd93c88d-98aa-4b1c-aa16-6ccb88cd7379
Setting the value to 1 resolved the issue (and doesn't seem to break anything), but I guess it was added for a reason, hence the added prop with the old default value.

Good idea! Thanks for your PR :)


feature[]: ability to view all trades and users

Right now there is no way to see multiple trades and users listed on the JSON file. We need it to return a full list of all trades/journals.
It would be a good idea to add a cursor as well but we will do that in the future.

Blocked by #29


Opening code blocks in a temporal buffer

Does this feature exist in Emacs orgmode core?
Yes
Orgmode link
By the end of the Literal-Exampels section, there's a keybind for what seems to be opening code blocks in a separate buffer.
https://orgmode.org/org.html#Literal-Examples
Feature value
Editing in a separate buffer with its own filetype is much more comfortable than doing it within the block. Furthermore, that makes it easier to interoperate with other plugins - just the top off my head, autocompletion and diagnostics via LSP would be trivially included.
Additional context
No response

Probably not the cleanest, but we can pretty easily get the source node using something like:
local parsers = require("nvim-treesitter.parsers")
local ts_utils = require("nvim-treesitter.ts_utils")

local in_src_block = function()
  if not parsers.has_parser() then
    return nil
  end

  local current = ts_utils.get_node_at_cursor()
  if not current then
    return
  end

  local src_node
  while current ~= nil do
    if current:type() == "block" then
      local child_count = current:named_child_count()

      for i = 1, child_count do
        local child = current:named_child(i - 1)

        if child:type() == "name" then
          src_node = child
          break
        end
      end

      if src_node and ts_utils.get_node_text(src_node)[1] == "SRC" then
        break
      end
    end

    current = current:parent()
  end

  if not src_node then
    return false
  end

  local pos = vim.api.nvim_win_get_cursor(0)
  return ts_utils.is_in_node_range(src_node:parent(), pos[1], pos[2])
end

(really this just checks if we are in a source block, but returning the node text is a trivial addition). From this then we can just put the lines in a new buffer, and set ft=... to whatever from there. Happy to open a PR with a proof-of-concept for this @kristijanhusak, but curious on your thoughts first.

The above example applies only to SRC blocks too, but I'm not familiar enough with Org to know why we'd want to edit a non-SRC block in another buffer other than just for "shits and giggles". The solution could apply in a general sense, but it would change what handling is necessary for doing things like setting :h filetype and similar (referring specifically to the documentation noted by @seiyagit, where one might want to edit a #+BEGIN_EXAMPLE block in another buffer).

Happy to open a PR with a proof-of-concept for this @kristijanhusak, but curious on your thoughts first.

@levouh go for it :)


Multi-class segmentation

请问这个代码支持多类分割吗？

This code currently does not support multi-class segmentation.

May I ask the author, are the two parameters of the mask decoder and prompt encoder frozen? Or is it trainable? Thank you

The mask decoder and prompt encoder are both trainable.


Use formatter.json inside .vscode folder resolves #3

This code allows users to add formatter.json file in .vscode folder instead of using config file located in extension folder.
This is my first work on a vs-code extension, so not sure if I did things correctly.
Happy to amend, update if needed.

@rjmacarthy Thanks for the request. I'll update this code as soon as possible. :)

Looks like its resolved now!


fix(huff_utils): Ast try_from panics

Overview
Reverts some changes to hotfix try_from panicking in the latest nightly build

Merging w/o review because the bug causes compilation to panic @abigger87


persist templates, user-defined templates in demo mode

by creating, if absent, a data/ folder next to the JAR, to put those things in.

This is a 90% solution: putting it in ~/Library/Application Support/Stevedore or .stevedore (copying Tabula, of course)


Avoid ladder effects, fix color for numbers,  other improvements..

Avoid ladder effect on swift…case block.
Avoid ladder effect on line break within function parameter list.
Fix wrong highlight on number part of non-number symbols, such as
Foo64Bar
Several color highlight improvements.
Add common  keywords like init,guard, defer, @IBOutlet…
Add common types like Array, Data, URL….
Modify function match pattern to show color in parameter list.
Add support for conditional compile instruction #if, #else, #elseif,
#endif

Tested on dozens of swift file with select-all + auto-indent,  all results are acceptable.
but still have problem on complex code style,  for example "double parentheses":
      let ccw_acd = triangleWinding(
          (ax, ay, cx, cy, dx, dy
          ))
          > 0
          let ccw_bcd = triangleWinding(
         // i dont known how to fix this

and more common case:
    return float4x4([
        [ c, 0, -s, 0],
        [ 0, 1, 0, 0],
        [ s, 0, c, 0],
    [ 0, 0, 0, 1]])
    // acceptable for me, but....

FYI.

Thanks!


Using the same code base to deploy IPC actors as system or user-defined

Initially, all the code for the IPC gateway and subnet actors where embedded into a for of filecoin-project/builtin-actors. As part of our efforts to minimize the disruption of deploying IPC in mainnet, we decided to decouple the IPC actors from the builtin-actors code base and make them user-defined. In their current form, all actors can be deployed as user-defined.
The discussion about if the IPC gateway (and even the subnet actor) should be system actors is still open. In this issue I collect different options were we can use the same code base we have today in both cases, for their deployment as user-defined and system actors, leaving our options open.
Bundle IPC actors hosted in a different repo
In this approach we keep the code for the IPC actors in their own independent repos: consensus-shipyard/ipc-gateway and consensus-shipyard/ipc-subnet-actor, and we modify the builtin-actors build logic to point to the code in these repos as the additional actors to include in the bundle.

We add a new feat_network for spacenet.
We add new actor types for IPC actors so they are considered for the bundle construction and the manifest.

We may also need to include a builtin-type as part of the runtime to build the right bundle

Add an additional step that downloads and compiles the WASM binaries for the IPC actors (similarly to how is done for the default builtin-actors).
Include the binaries for IPC actors also as part of the bundles.

Building a bundle with this approach only requires a fork of builtin-actor with minimal changes (see additional considerations below), and we can decouple the bundle building logic into an independent tool that compiles and collects the binaries for the actors, and builds the bundle.
Note: With the latest versions of ref-fvm a lot of the coupling between the FVM and the system actor has been removed, so we shouldn't need any changes to the ref-fvm. That being said, there are still three actors (system, init, and account actor) that still have a special treatment in the FVM (see issue). Worth bearing it in mind if we realize that we need some special treatment for the IPC actors.
Include user-defined friendly IPC actors in a fork of builtin-actors
In this case, the approach would be to move all of the code bases (again) for the actors into a fork of filecoin-project/builtin-actors but without changing any of the actors code. We would still use our own runtime from fvm_utils and keep the code completely decoupled from builtin-actors dependencies so this same code base can still be used to compile IPC actors as user-defined. In this case, to include the IPC actors as part of the bundle would only require  adding new actor types for IPC actors and a builtin-type.
Deploy actors manually in genesis
The same way we load the builtin-actors bundle in genesis, we can deploy the IPC actors as independent actors and initialize them directly from Lotus (using a similar approach to the one used to deploy user-defined actors). This is the approach that we used for the LegacyVM in the MVP, but it may not be as straightforward but the FVM.
Note: we haven't yet tested this approach and it may not be possible or straightforward. Adding it just for completeness, but I would probably go with one of the first two.
Additional considerations for IPC as system-actors
The IPC gateway is a singleton actor in each subnet, but there is a subnet actor for each child subnet a network has. Thus, if we make the subnet actor a system actor, we will need to create a new actor Type for subnet actors, and slightly modify the init_actor to allow the deployment of new instances of subnet actors. For the IPC gateway, we will have to set it as a singleton actor and specify the actor address we want to use for it (in the legacyVM we used address 64).
Conclusion
The first option is probably the one that has a lower overhead, as we can decouple the bundle building logic into an independent tool (as part of fvm_utils) keeping the changes to our fork of builtin-actors minimal (see section above). The second one is the next best option, it has a low overhead but it requires us to keep a fork of builtin-actors. Finally, option 3 is the closest to the user-defined actors flow, but we haven't  tested it yet, so it may have unforeseen complexities.
Note: All options may require a non-trivial dependency dance to align all dependency versions.
//cc @cryptoAtwill

@cryptoAtwill, it would be interesting to test option1 (and potentially 2) with the latest version of Lotus to see if they work, and to understand how hard is the dependency dance.

To deploy native actors as user-defined we would need to target one of these versions:
https://github.com/filecoin-project/testnet-wallaby/issues/9
https://github.com/filecoin-project/testnet-wallaby/issues/8

TODO: Add info on how to build a custom bundle for builtin-actors.

In order to override a bundle in lotus, LOTUS_BUILTIN_ACTORS_V10_BUNDLE need to be set pointing to the .car of the bundle that wants to be overwritten.
This is where these overrides get loaded https://github.com/filecoin-project/lotus/blob/0efca4d2660f80f6aa202f18c80055af45c2f0a2/build/builtin_actors.go#L36

Since https://github.com/consensus-shipyard/lotus/pull/71 eudico ships with a custom builtin bundle including IPC actors.


Unsupported characters in tmux?

Hello again. I've stumbled upon another issue, this time I can't seem to get the powerlevel9k theme working with the Terminal Multiplexer. I'm posting it here as an issue, because I was unable to resolve it myself by googling around and am not sure where to post it. Please, redirect me somewhere else, if this is not the correct place to ask for help regarding this issue.
Without tmux: http://i.imgur.com/ctcR5mf.png
With tmux: http://i.imgur.com/2CtMRfT.png
Terminal emulator:
https://launchpad.net/pantheon-terminal
/etc/default/locale content:
LANG=de_DE.UTF-8
LC_ALL=de_DE.UTF-8

~/.tmux.conf contains (not only) the following:
setw -g utf8 on
set-option -g status-utf8 on

Output of tmux -V (version):
tmux 1.8

@Limeth - I use tmux as well, but don't have any problem with the rendering. I have the same two lines you do (see my config here: https://github.com/bhilburn/dotfiles/blob/master/tmux.conf).
I am running tmux 1.9a, though. I wonder if the version update is important? What OS are you using?

I am running tmux 1.8 on Elementary OS. Anyway, I switched to a different shell, so I no longer need a solution. Feel free to close the issue.


add podAntiAffinity for pods

support anti-affinity rules for availability zones.
related issue https://github.com/open-cluster-management/backlog/issues/2720

/assign @qiujian16

/retest e2e

/retest

/retest

Looks like a failure of the loopback e2e, possibly a flake.
/retest

/approve

This looks good, but I want a clean e2e run before I tag lgtm

failed by no lease role, I will rebase the code after the PR https://github.com/open-cluster-management/registration-operator/pull/39 is merged.
 Status: "Failure",
              Message: "leases.coordination.k8s.io \"cluster-lease-loopback-e2e-rd9pml\" not found",
              Reason: "NotFound",

/retest

/retest

/lgtm


prepare host-report for separate taxes and payment processor fees

@znarf code updated. For OCEU, I get:

{ VAT: { collected: 3803, paid: -53010 } }


Configurable Sensu child process limit

This pull request allows users to configure how many child processes a Sensu process can create (e.g. 20 concurrent check executions).
Example:
{
  "sensu": {
    "spawn": {
      "limit": 20
    }
  }
}

Closes https://github.com/sensu/sensu/issues/1184

New config namespace! \o/

Closes https://github.com/sensu/sensu/issues/1002

Confirmed that it works as expected.

woot, thanks!


Onion address in alias field

Codec fails with it because alias is a fixed size 256 bit field and onion address is too large.

Fixed in https://github.com/btcontract/wallet/commit/d68ce70060abeb1eee641b5d81d9310820f2eec6


[PyTorch] Implement GQA based on fused qkv and fix layernorm for key and value

This PR implements group query attention based on a fused projection for query, key and value. This fixes issue #392 in an alternative way to PR #378.
This implementation is similar to the one in Megatron-LM. The advantage is that it generalises better to the case num_gqa_group==num_attention_heads. For example, the parameter naming in the state dict no longer changes when GQA is enabled or disabled. It also does not require an additional linear projection for queries, and by using LayerNormLinear instead of explicit normalisation, kernels should be fused correctly.
This implementation invalidates checkpoints with GQA. But considering that the current implementation suffers from issue #392, this should be OK. The notations for the dimensions get a bit messy, I would be really open to ideas for improvement ;-)

Thanks @Marks101 for submitting this PR.
The hidden_size + 2 * self.hidden_size_kv is a neat trick but we didn't go with it in the initial implementation (https://github.com/NVIDIA/TransformerEngine/pull/338#issuecomment-1656476505) because hidden_size + 2 * self.hidden_size_kv might not divide well by 3 when doing ColumnParallel or splitting the parameters into q, k, v tensors.
The fusion of layernorm and linear is a good idea, but if the statement in the above paragraph is valid and we'll be doing linears separately for q and kv, we're facing either self.layernorm_query + self.layernorm_key_value as our fused option, or self.norm + self.query + self.key_value as our unfused option. Between two instances of layernorm and one instance of layernorm but unfused, I'm not sure how this is going to impact the code performance wise.
Any ideas are welcome. @adhocyyf #378
Thanks.

Hi @cyanguwa @Marks101, here are some of my thoughts：
The fusion of input norm and qkv is interesting，but may encounter with problems when fuse_qkv_params=False in Linear module, which will assert self.out_features % len(parameters_split) == 0
The idea of self.layernorm_query + self.layernorm_key_value seems strange because we will have duplicate params of layernorm from layernorm_query and layernorm_key_value
I also tried an alternative way to fix this，which create layernorm_query with return_layernorm_output=True，and reuse the layernorm_output in forward. But it report RuntimeError in layernorm_query forward stage, which i post the picture below.
I suggest that we can fix this issue firstly，then create new Issues about performance or return_layernorm_output

Thanks ;-)

Hi @cyanguwa @Marks101, here are some of my thoughts：
The fusion of input norm and qkv is interesting，but may encounter with problems when fuse_qkv_params=False in Linear module, which will assert self.out_features % len(parameters_split) == 0
The idea of self.layernorm_query + self.layernorm_key_value seems strange because we will have duplicate params of layernorm from layernorm_query and layernorm_key_value
I also tried an alternative way to fix this，which create layernorm_query with return_layernorm_output=True，and reuse the layernorm_output in forward. But it report RuntimeError in layernorm_query forward stage, which i post the picture below.
I suggest that we can fix this issue firstly，then create new Issues about performance or return_layernorm_output

Thanks ;-)

Hi @cyanguwa  and @adhocyyf thank you for the quick replies and all your thoughts about this topic.

because hidden_size + 2 * self.hidden_size_kv might not divide well by 3 when doing ColumnParallel or splitting the parameters into q, k, v tensors.

Okay, the issue lies in fuse_qkv_params=False. I did not see that before. Thanks for the clarification!
I started to do a few benchmarks for MultiheadAttention in order to evaluate the performance of the different implementations. I added the benchmark script at the bottom. The benchmark was done on a H100 DGX with NCCL 2.18.3, CUDA 12.1, torch 2.1.0 (dev) and flash-attn 2.0.4. The command I used is torchrun --nproc-per-node TP_SIZE benchmark_multiheadattention.py --num_gqa_groups 8. The overall setting is typical for a 40B model. The timings I get are:

branch
commit
timing TP_SIZE=1 [ms]
timing TP_SIZE=8 [ms]

main branch
3b7b7c68
17.2
4.53

#378
cc81e01f
17.2
4.53

this PR
6f206fac
17.2
3.71

We see that, at least in these tests, having a separate normalization in #378 is no performance issue, but having separate projections for query and (key, value) has a massive implication when tensor parallelism is active. In this benchmark the fused qkv implementation is around 18% faster. I tested it in an actual training is well, there the step time differs by around 9%.
Could you maybe try to replicate these numbers? Perhaps this is just something special about my setup.
My feeling is that GQA got very popular, for this reason good performance numbers for this architicture matter for many people.

Benchmark script

import argparse
from typing import List, Optional
import time
import torch
import transformer_engine as te

def speedometer(
    module: torch.nn.Module,
    args: List[torch.Tensor],
    output_grad: torch.Tensor,
    fp8_autocast_kwargs: Optional[dict] = None,
    timing_iters: int = 500,
    warmup_iters: int = 100,
) -> None:
    """Measure average run time for a PyTorch module

    Performs forward and backward passes.
    """
    if fp8_autocast_kwargs is None:
        fp8_autocast_kwargs = {"enabled": False}

    # Warmup runs
    for _ in range(warmup_iters):
        with te.pytorch.fp8_autocast(**fp8_autocast_kwargs):
            output = module(*args)
        output.backward(output_grad)

    # Timing runs
    torch.distributed.barrier()
    torch.cuda.synchronize()
    start = time.time()

    for _ in range(timing_iters):
        with te.pytorch.fp8_autocast(**fp8_autocast_kwargs):
            output = module(*args)
        output.backward(output_grad)

    torch.distributed.barrier()
    torch.cuda.synchronize()
    elapsed = time.time() - start

    if torch.distributed.get_rank() == 0:
        print(f"Rank 0 mean time: {elapsed/timing_iters} s")

if __name__ == "__main__":
    parser = argparse.ArgumentParser()
    parser.add_argument("--hidden_size", default=8192, type=int)
    parser.add_argument("--num_attention_heads", default=64, type=int)
    parser.add_argument("--num_gqa_groups", default=64, type=int)
    parser.add_argument("--sequence_length", default=2048, type=int)
    parser.add_argument("--batch_size", default=4, type=int)
    parser.add_argument("--fp8", action="store_true")
    args = parser.parse_args()

    torch.distributed.init_process_group(backend="nccl")
    tp_group = torch.distributed.new_group(
        ranks=range(torch.distributed.get_world_size())
    )
    torch.cuda.set_device(torch.distributed.get_rank())

    model = te.pytorch.MultiheadAttention(
        args.hidden_size,
        args.num_attention_heads,
        num_gqa_groups=args.num_gqa_groups,
        fuse_qkv_params=True,
        tp_group=tp_group,
        set_parallel_mode=True,
        params_dtype=torch.bfloat16,
    ).cuda()

    inp_shape = (
        args.sequence_length,
        args.batch_size,
        args.hidden_size,
    )

    inp = torch.randn(
        inp_shape, dtype=torch.bfloat16, requires_grad=True, device="cuda"
    )

    output_grad = torch.randn(inp_shape, dtype=torch.bfloat16, device="cuda")

    recipe = te.common.recipe.DelayedScaling(fp8_format=te.common.recipe.Format.HYBRID)
    fp_autocast_kwargs = {"enabled": True, "fp8_recipe": recipe}
    speedometer(
        model,
        [inp],
        output_grad,
        fp8_autocast_kwargs=fp_autocast_kwargs if args.fp8 else None,
    )

@Marks101 Yes, the parameter split is a problem if we use hidden_size + 2 * hidden_size_kv. But also, ColumnParallel might have some issue when TP is present. Currently we only do 'even split' for parameters_split (in Linear and LayerNormLinear), and for ColumnParallel (when parallel_mode = column in MHA). When it's not divisible by 3, we would be splitting q,k,v the wrong way, and putting different workloads across the TP GPUs as well. Both should be fixable though with a bit of engineering effort and testing, but I guess we just don't have it yet as of now.
Thanks for the performance benchmarking. I agree we should squeeze out every bit of performance we can - maybe we should really evaluate if fusion is even possible here. @ptrendx
@adhocyyf I agree we shouldn't duplicate the layernorm params by using self.layernorm_query and self.layernorm_key_value.
Regarding the return_layernorm_output error, it looks like the code has gone through the FP8 path? Maybe try running it with FP16/BF16?
Thanks!

@cyanguwa Thanks for the clarifications. But as long as fuse_qkv_params==True and num_gqa_groups % tp_size == 0, there should be no problem in my fused implementation, or am I missing something? The assumpiton num_gqa_groups % tp_size == 0 seems very natural to me for GQA. The line self.num_gqa_groups_per_partition = int(self.num_gqa_groups // tp_size)) already assumes it. This is actually not asserted in the current main branch, here mixed_x_layer.view(*new_tensor_shape) fails if this assumption is not met.
All in all, I see two options

Going with #378: in this case it will be hard to squeeze out the full performance without changing the checkpoint layout at a later point of time.
Going with the fused implementation in my PR: in this case it should be asserted that fuse_qkv_params==True if GQA is active. Later on, it might be possible to add uneven parameter splits to the Linear to remove this restriction again.

What are your thoughts?

Hi @Marks101, you're right, I think there was some misconception there with my comment. For ColumnParallel to work (i.e. load-balanced across TP), we need hidden_size + 2 * hidden_size_kv to be divisible by tp_size, not by 3. And our current assumptions, num_gqa_groups % tp_size == 0 and num_attention_heads % self.num_gqa_groups == 0, should suffice for that! Let's continue to work under these assumptions and add support for when they're not true later.
On the other hand, for parameters_split to work, we need hidden_size + 2 * hidden_size_kv to be divisible by 3 (in the self attention case, not a problem in cross attention). You're right that we should provide the high performance path, i.e. your fused implementation, but can we make it work for both fuse_qkv_params == True and fuse_qkv_params == False? For example, can we add a dictionary support for parameters_split: Union[Tuple[str, ...], Dict[str, int]] so that if the input is ("query_", "key_", "value_") it assumes an even split and if it's {"query_": hidden_size, "key_": hidden_size_kv, "value_": hidden_size_kv} it uses hidden_size and hidden_size_kv to split? I think the other change we need to make here is probably just the indexing here and here.
Thanks!

Hi @cyanguwa, I really like your suggestion and implemented it. Please have a look

Thanks! It looks good to me. I'll run some CI tests.
Thanks,
Charlene

/te-ci

@Marks101 I can't seem to push to your branch from the command line. I'm working in PR #434 for now.

#434 is merged! Thanks!

Thank you so much @cyanguwa for putting the effort into this to merge it :D


Enhance voting mechanism

What to do if everybody doesn't vote?

Possibly set a timer when the first player votes if everybody doesn't vote till the time runs out, the players that have voted (hasVotedmodifier) can call a function to force the handout and will split the deposit from the players that didn't vote.

When can voting start?

What if only 1, 2 or 3 players register, there needs to be some way to cancel the contract.

Can prizes be handed out when the majority has voted?

{ There was some blocker here, will edit when I remember what it was }

Einar,
Here´s my keep it simple, minimum viable product idea:

Once contract is made, 24 hour timer starts, voting can start
immediately
If you don´t vote, it´s the same as voting wrong, you loose your
"voting incentive"
If nobody votes in 24 hours, contract is cancelled.

How´s that?
On Wed, Mar 6, 2019 at 10:38 PM Einar Alexander Eymundsson <
<EMAIL_ADDRESS>wrote:

What to do if everybody doesn't vote?

Possibly set a timer when the first player votes, if everybody doesn't
vote till the time runs out, the players that have voted (hasVotedmodifer)
can call a function to force the handout and will split the deposit from
the players that didn't vote.

When can voting start?
What if only 1, 2 or 3 players register, there needs to be some way to
cancel the contract.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/briandgoldberg/Homeless-Poker/issues/6, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AKHKkUHsA2ZYQT2hidzAb2zL1GS3OQAxks5vUENPgaJpZM4bh9tX
.

The issue with timers in smart contracts is that a contract can not trigger itself after x amount of time. It can only be triggered when someone calls it.
But it shouldn't be a problem to implement. If voting hasn't started within 24h, the registered players can cancel the contact after 24h. Same with if not enough votes are in, those who voted can call to cancel the contract after 24h.
Can you elaborate on what you mean by loosing your "voting incentive" ?

I believe we discussed it previously.... let’s say it’s a 1 Eth poker
game.  Everyone would send in 1.25 Eth where the .25 is returned if you
vote the same way as the consensus.  It’s motivation to vote even if you
are mad or lost.
...I’m not sure if we decided to implement this feature now or later
On Thu, Mar 7, 2019 at 2:36 PM Einar Alexander Eymundsson <
<EMAIL_ADDRESS>wrote:

The issue with timers in smart contracts is that a contract can not
trigger itself after x amount of time. It can only be triggered when
someone calls it.
But it shouldn't be a problem to implement. If voting hasn't started
within 24h, the registered players can cancel the contact after 24h. Same
with if not enough votes are in, those who voted can call to cancel the
contract after 24h.
Can you elaborate on what you mean by loosing your "voting incentive" ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/briandgoldberg/Homeless-Poker/issues/6#issuecomment-470549350,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKHKkS7J-h7jKdk_GJsJk2p5Q9OEGCWeks5vUSPbgaJpZM4bh9tX
.

--
Sent from Gmail Mobile

Note: You only get the deposit back if you vote correctly.

Deposit is flat-rate.
Set a trigger to handout rewards after 1h if someone hasn't voted. The deposit gets distributed to those who voted correctly. <- anyone can call that trigger.


Injuries Module Coding Error

The module has 4 instances of:
 "codes": [
    {
      "system": "SNOMED-CT",
      "code": "Encounter for 'check-up'",
      "display": "185349003"
    }
  ],

Seems like the code and display fields are reversed

Good catch, thank you!


Redisson trying to connect to a dead slave on sentinel setup

Guys,
I have a redis 3.2 setup with sentinel (3 nodes). I'm using redisson 2x.
I'm performing some HA tests, dropping some slaves or making them fail to test the resilience of the system.
My simple config:
# redisson configuration for redis servers
# see : https://github.com/mrniko/redisson/wiki/2.-Configuration

sentinelServersConfig:
  idleConnectionTimeout: 10000
  pingTimeout: 1000
  connectTimeout: 10000
  timeout: 3000
  retryAttempts: 3
  retryInterval: 1500
  reconnectionTimeout: 3000
  failedAttempts: 3
  subscriptionsPerConnection: 5
  clientName: "bar"
  loadBalancer: !<org.redisson.connection.balancer.RoundRobinLoadBalancer> {}
  slaveConnectionMinimumIdleSize: 10
  slaveConnectionPoolSize: 64
  masterConnectionMinimumIdleSize: 10
  masterConnectionPoolSize: 64
  readMode: "SLAVE"
  sentinelAddresses: ["redis://sentinel.dev.foo.net:30039"]
  masterName: "mymaster"
codec: !<org.redisson.codec.SnappyCodec> {}

So I got this scenario where one of slaves is disconnected and with error on master link (check lines 10 and 33):
sentinel slaves mymaster
 1) "name"
  2)   "<IP_ADDRESS>:30079"
  3)   "ip"
  4)   "<IP_ADDRESS>"
  5)   "port"
  6)   "30079"
  7)   "runid"
  8)   "5533a09464369994a52b4d4a80e490a8613920ce"
  9)   "flags"
  10)   "s_down,slave,disconnected"**
  11)   "link-pending-commands"
  12)   "57515"
  13)   "link-refcount"
  14)   "1"
  15)   "last-ping-sent"
  16)   "60798317"
  17)   "last-ok-ping-reply"
  18)   "60799373"
  19)   "last-ping-reply"
  20)   "60799373"
  21)   "s-down-time"
  22)   "60788261"
  23)   "down-after-milliseconds"
  24)   "10000"
  25)   "info-refresh"
  26)   "60805267"
  27)   "role-reported"
  28)   "slave"
  29)   "role-reported-time"
  30)   "146523425"
  31)   "master-link-down-time"
  32)   "1508340989000"
  33)   "master-link-status"
  34)   "err"
  35)   "master-host"
  36)   "<IP_ADDRESS>"
  37)   "master-port"
  38)   "30079"
  39)   "slave-priority"
  40)   "100"
  41)   "slave-repl-offset"
  42)   "1"

The problem is that redisson tries to connect to this slave for reading regardless of its status instead of picking another slave.  Shouldn't redisson consider sentinel flags in this case? Maybe it is just a configuration I'm missing.

Duplicated with https://github.com/redisson/redisson/issues/1280


[Stable Video Diffusion] parameters meaning

Hello! Thank you for great work!
It would be great if you could add some readme on the parameters meaning in stable video diffusion input.
as I can guess cond_aug is amount of noise added to each frame
and also there are 127 variations of motion_bucket_id - what means each value?

Tested all buckets on the same input image and had only 2 different movements. Moreover if I do image 2 video in the same script twice I get different movement types for 2 passes with the same motion_bucket_id.

motion_bucket_id (int, *optional*, defaults to 127):
The motion bucket ID. Used as conditioning for the generation. The higher the number the more motion will be in the video.
This is the annotation in diffusers. Hope it works for you.

In the diffusers code I scrutinized the, fps, bucket, aug parameters. I found that its role is on timestep. First the code packages the above parameters together in the parameter add_time_ids, by using the function _get_add_time_ids. then passes in unet. does something like the following time_embedding (ps,aug,buket) + time_embedding(timestep). Added the value of time_embedding. In the ddpm algorithm, timestep tells the model which step (0-999) this is, and a larger timestep means that the model will consider the input z to have more noise at this step. This equates to an increase in noise reduction each time, resulting in a large difference from the original image. I think that's what these parameters do. As for why there is a bucket parameter, I see that the svd paper performs a streaming operation on the dataset to compute the degree of video motion k, and this bucket_id may be a proxy for the degree of motion. When training svd, it is paired with the streaming motion degree k of the training data for training.

motion_bucket_id (int, *optional*, defaults to 127): The motion bucket ID. Used as conditioning for the generation. The higher the number the more motion will be in the video.
This is the annotation in diffusers. Hope it works for you.

Thank you this is what lies on the surface.

In the diffusers code I scrutinized the, fps, bucket, aug parameters. I found that its role is on timestep. First the code packages the above parameters together in the parameter add_time_ids, by using the function _get_add_time_ids. then passes in unet. does something like the following time_embedding (ps,aug,buket) + time_embedding(timestep). Added the value of time_embedding. In the ddpm algorithm, timestep tells the model which step (0-999) this is, and a larger timestep means that the model will consider the input z to have more noise at this step. This equates to an increase in noise reduction each time, resulting in a large difference from the original image. I think that's what these parameters do. As for why there is a bucket parameter, I see that the svd paper performs a streaming operation on the dataset to compute the degree of video motion k, and this bucket_id may be a proxy for the degree of motion. When training svd, it is paired with the streaming motion degree k of the training data for training.

Thank you this explains the processes and also explains that it only controls the amount of movement. I hoped to control the type of movement, but unfortunately this param can't do it. But maybe using the piece of code you've shown we can copy the previous movement and use it next time...

From name of parameter motion_bucket_id i can guess that they sort videos in dataset by motion magnitude. So every motion_bucket_id refers to some kind of motion. Somewhere in 1..300? there is motion of camera from left to right, somewhere right to left and so on. If they clustered motions. It will be great that somebody from stability.ai shared samples from each bucket for using as map.

Hello! Thank you for great work! It would be great if you could add some readme on the parameters meaning in stable video diffusion input. as I can guess cond_aug is amount of noise added to each frame and also there are 127 variations of motion_bucket_id - what means each value?

Hi, i have a question, what is the meaning of cond_aug? This is not the amount of noise added for each frames in the diffusion process I guess, instead, it is the amount of noise added to first frame condition(which will be concatenate with z_t in the denoising process)?  I would be grateful if you could answer this question.


Runtime API

There's no runtime API provided?
Is it prohibited by policy or just dependencies issue?

It's just a dependency issue. The code relies on UnityEditor functions, and needs some work to be made available for runtime.
It's something that has been requested several time and we are aware that it would be a nice addition. Even if it's not in the short roadmap, it's definitely something that could be done in the near future.

I think Sketchfab should really reevaluate moving this up the todo list. To be frank, what is the point of this library existing without runtime features? Unity already has a great drag and drop deserealizer in it's editor that works with everything but the most exotic formats. Correct me if I'm wrong but the UnityGLTF library this forks still doesn't deserialize animations, so even if you used an asset from Sketchfab you would want Unity to handle deserialization from its native format because it will just do it better.
If a runtime tool was included however, it would suddenly be a great tool for AR/VR , previz, broadcast, and other industry devs to include in their project. Being able to have the end user open up a sketchfab drawer and drop in models would be a huge win for those industries.

any update on this. Unbelievable

I second this, it's hard to think of a good reason for this to exist without runtime (and since there's no animation support, that's another huge knock)


GitHub: name is nil

For GitHub, if the user's profile name is left blank, auth.info.name is nil, but the documentation says info.name is requried. Should info.name be an empty string?

If this issue still persists, please file it over at omniauth-github.
Thanks!


Amended code for python 2.7

Hi Danjperron
Thankyou for producing such a comprehensive library.
I wanted a simplified version that runs on python 2.7 and that is shorter...
My version works on windows and I thought it may be useful to others who wanted to work in python 2.7..
LX16Awalk5.zip
https://drive.google.com/file/d/1e9ufrIlQSM1uMu_6oj4CiufyW1GLamkT/view?usp=sharing

Hi sujtvasanth,
Thanks but, simplify the code make it very hard to read. Why do you want to simplify it? (MicroPython?)
I  know my comments are in french but you should put some on yours just to explain what each function does! and please put space line between functions.
You maybe right I don't code with python 2.7 anymore. I.M.O. it's obsolete!
In 10 years you will look at your  code and try to figure out why I have a number one in function moveServo for parameters.  I should have put remarks juts to figure out what I was doing!
Better Declare function literally than just put a number because it is way easier to pin point  is you are using the correct function code by looking at the text declaration than a simple number.
This is my opinion but you are free to do what you want.
Daniel


Does not respect bounds on new props

Bounds seem to be calculated only on drag which presents a couple of issues:

If bounds are changed and passed down from  a parent component they will not be respected until the element is dragged

Scaling operations on children can cause them to be outside of draggable element bounds and will not be recoverable since not able to click on the now invisible element

I think you are expected to change position manually if bounds are changing over time, here's example:
  const right = document.body.clientWidth / 2;
  const [position, setPosition] = React.useState({ x: 0, y: 0 });
  React.useEffect(() => {
    const listen = () => {
      const right = document.body.clientWidth / 2; // notice shadowed variable
      if (position.x > right) {
        setPosition({ x: right, y: position.y });
      }
    };
    window.addEventListener('resize', listen);
    return () => window.removeEventListener('resize', listen);
  });
  return (
      <ReactDraggable
        position={position}
        onDrag={(e, { x, y }) => {
          setPosition({ x, y });
        }}
        bounds={{ left: 0, right }}
      >
          Stuff to drag
      </ReactDraggable>

so when bounds change and your new x doesn't fit inside right you have to manually change position.x and it will cause the component to move

That doesn't feel like a great solution to me. It forces you to roundtrip through Redux state during a drag. I'm currently needing to do an elaborate workaround, something like:
  const { width, height } = useWindowSize()
  const actual = useRef({ x: 0, y: 0 })
  const [position, setPosition] = useState(defaultPosition)

  const bounds = useMemo(() => {
    const calculatorHeight = isExpanded ? 400 : 0
    return (height - calculatorHeight - DRAWER_HEIGHT) / 2
  }, [height, isExpanded])

  const setBoundedPosition = useCallback(position => {
    const constrained = constrain(position, bounds)
    actual.current = constrained
    if (!areEqual(position, constrained)) {
      setPosition(constrained)
    }
  }, [bounds, position])

  return (
    <Draggable
      onDrag={(_, position) => { setBoundedPosition(position) }}
      onStop={() => { setPosition(actual.current) }}
      position={position}
    >
    ...
    </Draggable>
  )

which is very much a workaround for behaviour I would hope the library to take care of.

Related issue: https://github.com/react-grid-layout/react-draggable/issues/363
There's an interesting workaround suggested there: https://github.com/react-grid-layout/react-draggable/issues/363#issuecomment-631750224. Simulates a mouse down event to trigger the internal calculations related to bounds.


add support for both attach mode and detach mode

Changes Unknown when pulling d445e724f8729e56524d716d10028d4248c26877 on v01dstar:detach-mode-support into ** on osrg:master**.

@v01dstar
Thank you a lot for working on this :smiley: .
I confirmed -p and -privileged are working perfectly with both proc inspector and ethernet inspector :satisfied: .
I didn't do test -net and -volumes-from, but basically they LGTM.
However I could not get about -d. It seems just waiting for a container and does not seem doing "detach".
if detach {
	err = client.StartContainer(container.ID, opt.HostConfig)
	if err == nil {
		_, err = client.WaitContainer(container.ID)
	}
	exitCh <- err
}

Actually I tried nmz container run -p 80 -d nginx and nmz container run -itd busybox sh, but it did not work for me.
(Please compare the result of docker run)
Could you please look into this?
If you can split -d into other PR, I think we can merge this PR immediately.
Thank you again

@AkihiroSuda
I am sorry for this. I mistakenly open this PR. I suppose to merge this with my fork and have it tested.
But here is my idea about WaitContainer. I should call WaitContainer after StartNamazuRoutines to ensure the parent process being blocked.

PTAL @AkihiroSuda

Changes Unknown when pulling 15552750f6a45b131d40c95bc7210a50862ce1f8 on v01dstar:detach-mode-support into ** on osrg:master**.

Changes Unknown when pulling 15552750f6a45b131d40c95bc7210a50862ce1f8 on v01dstar:detach-mode-support into ** on osrg:master**.

Thank you a lot :smile:
LGTM

(the following discussion can be done in separate PR)
I still fear a user may be surprised that nmz container run -d keeps running in foreground.
So I think the nmz should daemonize itself in such a case.
But I'm not sure how we can safely daemonize golang program..
(https://github.com/golang/go/issues/227, Chinese article: http://studygolang.com/articles/6190, Japanese article: http://qiita.com/k0kubun/items/d6d332697ef7a369e6e2, could not find other useful information in English :cry: )
What do you think about this?
@v01dstar @mitake

copying from gitter https://gitter.im/osrg/namazu?at=576e07bb74f25dd571bea9e2

v01dstar @v01dstar Jun 25 13:25
I am not sure. Namazu is not in client–server model like docker(docker client <-> docker daemon).
So, if we damonize nmz process, it would also surprise some users who may expect nmz will run in background by providing a & flag (eg. nmz container run -d nginx &).
Probably, we should inform users the behavior of using -d in our document or through nmz container run --help rather than daemonize nmz.

OK, merging, thanks!
Cc @mitake

@AkihiroSuda lgtm too, thanks a lot @v01dstar !


Latest commit (PR 22): Under Netstandard 3.0: Cannot consume scoped service 'Microsoft.JSInterop.IJSRuntime' from singleton 'Blazor.Extensions.Storage.SessionStorage'

Using .net core 3 preview 4 and your latest commit of PR22, injecting LocalStorage into my class using DI results in error:
Cannot consume scoped service 'Microsoft.JSInterop.IJSRuntime' from singleton 'Blazor.Extensions.Storage.LocalStorage'
I believe this is because your StorageExtensions.cs calls:
AddSingleton<LocalStorage>()
But when your LocalStorage.cs constructor injects IJSRuntime public LocalStorage(IJSRuntime Runtime) I am guessing that IJSRuntime is added to the Service Collection as Scoped, therefore consuming it from your Singleton StorageExtensions.cs cases this error.
FYI I have tried amending your StorageExtensions.cs to read: AddScoped<LocalStorage>(). This does compile and run but then any call to await _localStorage.SetItem<>() never returns...

Can you check if that still happen with the latest package?

Hello. Yes I removed my assembly references and added your latest package 0.1.8. Exactly the same error as above:
Cannot consume scoped service 'Microsoft.JSInterop.IJSRuntime' from singleton 'Blazor.Extensions.Storage.LocalStorage'

same problem here, but i am using preview 5

same problem to

It looks like an issue here
blazor.server.js:15 [2019-05-17T21:06:00.715Z] Error: Microsoft.JSInterop.JSException: Could not find 'BlazorExtensions' in 'window'.
Error: Could not find 'BlazorExtensions' in 'window'.
    at https://localhost:44391/_framework/blazor.server.js:8:20878
    at Array.forEach (<anonymous>)
    at d (https://localhost:44391/_framework/blazor.server.js:8:20839)
    at https://localhost:44391/_framework/blazor.server.js:8:21429
    at new Promise (<anonymous>)
    at e.beginInvokeJSFromDotNet (https://localhost:44391/_framework/blazor.server.js:8:21403)
    at https://localhost:44391/_framework/blazor.server.js:1:16653
    at Array.forEach (<anonymous>)
    at e.invokeClientMethod (https://localhost:44391/_framework/blazor.server.js:1:16624)
    at e.processIncomingData (https://localhost:44391/_framework/blazor.server.js:1:14624)
   at BlazorTest.Components.Shared.UserProvider.OnAfterRenderAsync() in C:\Users\efrancis\Source\Repos\BlazorTest\BlazorTest\Components\Shared\UserProvider.razor:line 40
   at Microsoft.AspNetCore.Components.Rendering.Renderer.GetErrorHandledTask(Task taskToHandle)

I forked this repo and ill try to make a PR that works with Preview 5

I have the same problem here:

'Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: Blazor.Extensions.Storage.SessionStorage Lifetime: Singleton ImplementationType: Blazor.Extensions.Storage.SessionStorage': Cannot consume scoped service 'Microsoft.JSInterop.IJSRuntime' from singleton 'Blazor.Extensions.Storage.SessionStorage'.) (Error while validating the service descriptor 'ServiceType: Blazor.Extensions.Storage.LocalStorage Lifetime: Singleton ImplementationType: Blazor.Extensions.Storage.LocalStorage': Cannot consume scoped service 'Microsoft.JSInterop.IJSRuntime' from singleton 'Blazor.Extensions.Storage.LocalStorage

Using .net core sdk preview 5 and extensions.storage 0.1.8 in a server side project.

After a couple of hours I can execute it in server mode. How:
install nuget package
configure dependencies by hand using Transient scope:
             services.AddTransient<LocalStorage>();
Clone this repo
Compile with typescript the ts files in Storage\src\Blazor.Extensions.Storage.JS\src
create a javascript file join both created files. I removed the 'required' to put all code togheter:
`"use strict";
//Object.defineProperty(exports, "__esModule", { value: true });
class BrowserStorage {
Length(storage) {
return window[storage].length;
}
;
Key(storage, index) {
return window[storage].key(index);
}
;
GetItem(storage, key) {
const item = window[storage].getItem(key);
if (item) {
return JSON.parse(item);
}
return null;
}
;
SetItem(storage, key, keyValue) {
window[storage].setItem(key, JSON.stringify(keyValue));
}
;
RemoveItem(storage, key) {
window[storage].removeItem(key);
}
;
Clear(storage) {
window[storage].clear();
}
;
}
var Storage;
(function (Storage) {
const blazorExtensions = 'BlazorExtensions';
const extensionObject = {
Storage: new BrowserStorage()
};
function initialize() {
if (typeof window !== 'undefined' && !window[blazorExtensions]) {
window[blazorExtensions] = Object.assign({}, extensionObject);
}
else {
window[blazorExtensions] = Object.assign({}, window[blazorExtensions], extensionObject);
}
}
Storage.initialize = initialize;
})(Storage || (Storage = {}));
Storage.initialize();`
I named this file InitializeStorage.js (very original I know)
Reference this file in _Host.cshtml at the end of the body part:
`
@(await Html.RenderComponentAsync())

`
And it started to work. I figured it out the problem to "embed" javascript code from external dll. But this trick works for me. No idea how to contribute and fix this issue once for all.

Same with preview 7.

I just tested now with both Scoped and Singleton and both works. I'm change it to scoped just for the sake of being compliant with the JS runtime registration. Also yes, it works on preview7. Please check the pictures below.

The package was published https://www.nuget.org/packages/Blazor.Extensions.Storage/0.2.1
Nuget is indexing and it should be available soon.


Add SCALE and TXLF

Add SCALE 2016
Add Texas Linux Fest 2015
Set correct dates for Google I/O
Remove typo from LinuxConfAU

Merged. Thanks!


Fix verifier parameters metadata check to actually compare verifier context and metadata

Discovered while debugging a different issue, the check that is supposed to report if verifier parameters are mismatched currently does not. Instead it just checks internal consistentency of receipt.metadata.verifier_parameters against receipt.inner.verifier_parameters, both of which are digests to help the verifier determine which version of the verifier parameters it should use. Note that the digest alone is not enough to verify the receipt, and instead the actual parameters come from the VerifierContext.
This PR fixes the check to actually compare against the verifier context so that the correct error message can be shown, instead of a generic verification failure.

I realized that a simple digest check doesn't work as well for SegmentReceipt as for SuccinctReceipt and Groth16Receipt, so I've removed the check there and added a note in 7625813ca6c38011af17c0816f53d55b3347bfc0

Not immediately sure why the keccak test is failing. I'll need to come back to this after I take care of some things for Boundless.


go get -u is failing

go get -u is failing
➜  lyra git:(master) ✗ go test ./...
go: finding sigs.k8s.io/structured-merge-diff/merge latest
go: finding k8s.io/api/admissionregistration/v1alpha1 latest
go: finding sigs.k8s.io/structured-merge-diff latest
go: finding k8s.io/api/admissionregistration latest
go: finding k8s.io/api latest
../../go/pkg/mod/k8s.io/client-go@v10.0.0+incompatible/kubernetes/scheme/register.go:22:2: unknown import path "k8s.io/api/admissionregistration/v1alpha1": cannot find module providing package k8s.io/api/admissionregistration/v1alpha1

Workaround.

Paste the copied line over the go.mod line for github.com/lyraproj/lyra-operator
Run make or similar

tl;dr using go get github.com/lyraproj/... without the -u should work well.
The behaviour of -u is "Update all direct and indirect dependencies to latest minor or patch upgrades" (ref).  Dependencies of lyra-operator are typically non-mods and have Pseudo versions e.g. v0.0.0-20190128043916-71123fcbb8fe, i.e. no semantic versions, meaning that the latest will always be pulled if updated.
The problem here is that where C depends on B and B depends on A, and the latest version of A is incompatible with the "preferred" version of B.  In this case B is k8s.io/client-go and because there is a semantically well-named (v10.0.0) release in github (https://github.com/kubernetes/client-go/releases/tag/v10.0.0), it is considered to be preferable to later commits.  So go get -u will pull the latest (master) of k8s.io/api but not the latest of k8s.io/client-go
We could use a replace as follows (i.e. specify that we wish to use a specific, later, version of B).  This survives a go get -u (unlike updating the reference of k8s.io/client-go), but we could end up maintaining a list here.
replace k8s.io/client-go => k8s.io/client-go v2.0.0-alpha.0.0.20190215080940-fc20e1abff02+incompatible

Easier than this, we could simply run go get github.com/lyraproj/... which will update the lyraproj dependencies but only update their dependencies if specified by their go.mod files.
Aside: the following command should go get all direct dependencies.
go list -m -f '{{ .Path }} {{ .Indirect }}' all | grep " false" | awk '{print $1}' | xargs go get

but is prone to a higher risk of failure.  Currently, for example, we need to exclude terraform for this to work:
go list -m -f '{{ .Path }} {{ .Indirect }}' all | grep " false" | grep -v "github.com/hashicorp/terraform" | awk '{print $1}' | xargs go get


v0.15.30: GSL (https://github.com/ruslo/gsl/) 404

Hunter fails to load GSL from a non-existent repo.

Can you provide more detail on this error, and a small sample that reproduces the issue?

Sorry, of course:
I only added hunter_add_package(GSL) to CMakeLists.txt and then ran cmake and got the following error appearing over and over:
  -- downloading...
         src='https://github.com/ruslo/gsl/archive/v1.16.tar.gz'
         dst='C:/tools/hunter/_Base/Download/GSL/1.16/ce16e45/v1.16.tar.gz'
         timeout='none'
CUSTOMBUILD : error : downloading 'https://github.com/ruslo/gsl/archive/v1.16.tar.gz' failed [C:\tools\hunter\_Base\0a63c66\2e0e6b1\a812237\Build\GSL\Build\GSL-Release.vcxproj]
    status_code: 22
    status_string: "HTTP response code said error"
    log:
    --- LOG BEGIN ---
    timeout on name lookup is not supported
    Trying <IP_ADDRESS>...
  Connected to github.com (<IP_ADDRESS>) port 443 (#0)
  schannel: SSL/TLS connection with github.com port 443 (step 1/3)
  schannel: disabled server certificate revocation checks
  schannel: sending initial handshake data: sending 182 bytes...
  schannel: sent initial handshake data: sent 182 bytes
  schannel: SSL/TLS connection with github.com port 443 (step 2/3)
  schannel: failed to receive handshake, need more data
  schannel: SSL/TLS connection with github.com port 443 (step 2/3)
  schannel: encrypted data buffer: offset 1436 length 4096
  schannel: encrypted data length: 1338
  schannel: encrypted data buffer: offset 1338 length 4096
  schannel: received incomplete message, need more data
  schannel: SSL/TLS connection with github.com port 443 (step 2/3)
  -- Retry after 15 seconds (attempt #4) ...
  schannel: encrypted data buffer: offset 3492 length 4096
  schannel: sending next handshake data: sending 126 bytes...
  schannel: SSL/TLS connection with github.com port 443 (step 2/3)
  schannel: encrypted data buffer: offset 51 length 4096
  schannel: SSL/TLS handshake complete
  schannel: SSL/TLS connection with github.com port 443 (step 3/3)
  schannel: incremented credential handle refcount = 1
  schannel: stored credential handle in session cache
  GET /ruslo/gsl/archive/v1.16.tar.gz HTTP/1.1

  Host: github.com

  User-Agent: curl/7.44.0

  Accept: */*

  schannel: client wants to read 16384 bytes
  schannel: encdata_buffer resized 17408
  schannel: encrypted data buffer: offset 0 length 17408
  schannel: encrypted data got 1229
  schannel: encrypted data buffer: offset 1229 length 17408
  schannel: decrypted data length: 1200
  schannel: decrypted data added: 1200
  schannel: decrypted data cached: offset 1200 length 16384
  schannel: encrypted data buffer: offset 0 length 17408
  schannel: decrypted data buffer: offset 1200 length 16384
  schannel: schannel_recv cleanup
  schannel: decrypted data returned 1200
  schannel: decrypted data buffer: offset 0 length 16384
CUSTOMBUILD : The requested URL returned error : 404 Not Found [C:\tools\hunter\_Base\0a63c66\2e0e6b1\a812237\Build\GSL\Build\GSL-Release.vcxproj]
  Closing connection 0
  schannel: shutting down SSL/TLS connection with github.com port 443
  schannel: clear security context handle
  schannel: decremented credential handle refcount = 0

    --- LOG END ---

Looks like I did remove this repository from my profile.

Testing:

https://ci.appveyor.com/project/ingenue/hunter/build/1.0.992
https://travis-ci.org/ingenue/hunter/builds/162495836

Considering that GSL is just a bunch of include headers, does it really needs a separate repo?

Tests passed:

https://ci.appveyor.com/project/ingenue/hunter/build/1.0.997
https://travis-ci.org/ingenue/hunter/builds/162622042

Uploading:

https://ci.appveyor.com/project/ingenue/hunter/build/1.0.1001
https://travis-ci.org/ingenue/hunter/builds/162711432

Considering that GSL is just a bunch of include headers, does it really needs a separate repo?

What do you mean by "separate repo"? If I want to apply temporary fixes I need to have fork, right?

Oh, that's confusing... I was talking about a different GSL: https://github.com/Microsoft/GSL
Why would they name it the same X_X

Uploading

Done. This issue fixed in https://github.com/ruslo/hunter/releases/tag/v0.15.33

Oh, that's confusing... I was talking about a different GSL: https://github.com/Microsoft/GSL

Hm, I see. Please open separate issue for this one.

Why would they name it the same X_X

There is no central registry for C++ packages so there is no collisions control :)

@ruslo How would you handle two packages named the same in hunter? Maybe naming it MicrosoftGSL will do...

How would you handle two packages named the same in hunter?

@grisevg Hunter will not handle it, all packages should have different names.

Maybe naming it MicrosoftGSL will do

Yes, as a workaround. However both packages will install files to gsl/gsl_*.h, which is the main problem. Related feature request: https://github.com/ruslo/hunter/issues/275

Well Microsoft's GSL files don't have .h extension so it should work for now, but of course its can cause problems and confusion later


Renamed development_environment to environment

/dev_env --------> /environment
development_environment ---> environment
dev_env.html --------> environment.html
new_dev_env.html ---> new_environment.html
add_dev_env ---------> add_environment
As someone relatively new to the application and the code base, I thought that development_environment was a weird name and some might argue not appropriate for the purpose it served.
I didn't change any of the API routes on purpose since I wasn't sure how the team normally handled route changes. I can easily make that change if we want to change it just to have the same name all across.
Any feedback is welcomed.

Just to be sure, you need to update the migration file :-)

Hey @JoseRoman
Just came across this, and the db migration file still needs to be updated. Can you please give it a bump?
Cheers!

@JoseRoman if you want this to be included in the next release, could you mark this PR as ready for review and/or complete it?

This PR now requires quite some conflict resolution. @JoseRoman please let us know if you're interested in putting it up to date or not. If not or radio silence, we may just close the PR. Thank you for your understanding!

Hi @madchap, I completely understand. I will resolve all conflicts tomorrow (12/11). Apologies for being MIA for so long.


Incomplete listing and undesirable deletion of torrent with missing files

When listing the contents of a torrent with many files of which one is missing, listing is incomplete, and rclone_RD makes a whole lot of delete and re-download requests that do not seem to help retrieving the missing file.
As an example, consider a torrent with files A, B and C.
If I unrestrict links on real-debrid.com I get links for A and C, but for B I get the message

https://real-debrid.com/d/...: hoster_unavailable

For such a torrent, rclone_RD version v1.58.1-rd.2.1 displays only A. This happens both when mounting the debrid + listing the folder or serving it as HTTP + accessing the folder from the browser. Additionally, rclone_RD prints "Redownloading dead torrent X" to the logs. It then makes a whole bunch of delete requests and re-adds the torrent to real-debrid.
Seemingly, behavior is as follows (possibly not fully correct):

rclone_RD tries unrestricting all the files in the torrent; this works fine until it encounters B
as soon as rclone_RD encounters B, the torrent is marked as bad
rclone_RD then issues DELETE requests for every file following B (B, C and so on)
rclone_RD then issues a DELETE request to the torrent itself
rclone_RD then issues a new download request for the torrent

The torrent I am accessing has the same fault for file B after re-adding it, so this results in a lot of superfluous requests and weird behavior, at even the files preceding B (A) seem to become unavailable after the DELETE request is made.
Desired behavior for me would be one of the following:

I see all files in the torrent except for the missing one.
Alternatively, I see all the files and can access all of them, except the missing file.

rclone_RD is a lot faster for me than rclone+WebDAV, so thanks a lot for creating this software!

hey thanks for reporting this! I will not be able to add this to the newest bug fix update, but I will try to keep this in mind for the broader update that is coming soon. This broader update will allow file renaming and moving, and development for it will continue at the end of april.


issue resolving DNS on Windows

Go version
1.23
Output of go env in your module/workspace:
CGO_ENABLED=1
GOOS=windows
GOARCH=amd64
CC=x86_64-w64-mingw32-gcc

What did you do?
We did upgrade one of CLI to go 1.23 and we started to get this
Simple HTTP call to a service result every time with an dial tcp: lookup DNS on IP:53: server misbehaving

That service is working when using the browser or just a simple curl command.
What did you see happen?
dial tcp: lookup DNS on IP:53: server misbehaving
What did you expect to see?
I was expecting that this will do a normal http call has before and just return back the response from the backend.

Related Issues and Documentation

net: DNS look up failed after configure DoH in Windows  #60730 (closed)

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

Downgrading to go 1.22 make everything works again

This happens when the Go program receives a DNS packet with a response code that is neither NoError nor NXDomain.  It would help to see a dump of the DNS packets, if possible.  It's hard to see why this change between 1.22 and 1.23, though.
One thing you could try is setting GODEBUG=netedns0=0 in the environment.
CC @golang/windows

Ok, let me check tomorrorw.


Run Kolibri in the main activity

https://phabricator.endlessm.com/T33784

Oh yeah, we're already doing this now :)


Add UnionArgParser to CLI section.

Lovely little library that meets the quality tests in the contribution guidelines.

Looks good. Thank you


Query list of objects...

Hi,
I have a data structure: Book->Authors[id,name]
book contains a list of authors, each entry has an ID and name. How do I query book to get the authors id?
I've tried the following:
authors.id: which get's the record into the match method but doesn't select it
authors[].id: doesn't get the record at all (found this as an example for this library on Goog)
Are lists supported?
Thanks.
glenn

Hi glenn,
check out the following example:
https://github.com/fosscom/objectdb/blob/main/test/objectdb_query_test.dart
Kind regards,
Mario

Sorry I think my answer does not answer your question.
You'd need to fetch the whole Book and get the Author-ID's manually via Dart.
Querying lists is still very limited.

Hi,
Yeah, I saw this example and tried it out already. I've traced it through the code and the '[]' does not seem to be recognized.
My data Json looks like this:
{
"title": "A book",
"authors": [{
"identity": 1234234,
"name": "the author"
}]
}
I tried authors[]identity, but as I said above this returns nothing, never finds the identity attribute. If I use authors.identity it finds the document but ignores it, seeing the default Op.and and returning to continue the search.
I've worked around this for now, building out the search code itself after getting all entities in the DB. Not a great longterm solution but will get me moving on development.
Please let me know if you figure this out, or implement a different way.
Appreciate your work, nice, simple, and just what I needed.


[Test] Improve speed of executing Python tests from CMake

What
Improve the speed of execution of pure Python tests during TDD loop.
Why
Currently, executing the openassetio-python CMake target to run the pytest tests takes more than 10 secs even for a warm start (i.e. where everything is already installed and no changes have been made).  This noticeably impacts dev efficiency during the TDD loop.
Notes
We found that the pip flag --no-build-isolation can drastically improve our setup.py "build" times, at the expense of polluting the execution environment with the otherwise-unnececssary wheel package.  It's also discouraged as not the modern way to build packages. But perhaps it makes sense for our particular use case.
A development install via --editable would be great, but this has issues with the compiled _openassetio.so component.
We could have a "fast build" CMake/CTest target/option that skips steps such as dependency installs.

Testing #515 reveals that, assuming the build isolation overhead is gone, approx half the remaining time is due to checking dependencies and half is actually running the tests.


Suggested Q&A entry: why not use Maps?

Which use cases of objects-as-dictionaries are not better handled by using Maps?

I think until its common practice to serialize/deserialize JSON using Map (which is already possible today with the JSON.parse/stringify methods) we're going to continue to see lots of code make use of objects-as-dictionaries. Searching through public usage of libraries that provide has(o, p) you'll find lots of examples of using has() with request/json-body data.

Until Map and Set literals appear, Object and Array will be used more frequently due to the ease of declaration even if it's a more suitable data structure.

All the arguments for adding Object.fromEntries apply here; just like the existence of Set didn't obviate arrays-as-sets, the existence of Map doesn't obviate objects-as-dictionaries.

For the record, I agree with everything you're saying, and have written about it before: https://v8.dev/features/object-fromentries#objects-vs.-maps I'm merely suggesting to document this rationale in the FAQ to get ahead of the debate :) (Same with the other issue I filed.)

Yup, I was just trying to work out the reasoning in issues before committing them to the explainer doc


Azure Web Application Microsoft Graph API Integration / Interoperation

The application works while in localhost - thank you for the notes and start with Microsoft Graph.
My next issue is getting this on Azure Web Application; of course, there are questions about this like the registration process, scope and authorization of the web application to the API. Can we add a "walkthrough" adding this application to Azure. I ask the question here because this is the only sample I've been able to get to work with Microsoft Graph on the localhost - so I want to publish it to Azure and see if I can get it to work there as an Azure Web Application. Thank you, Tim:

Thanks @twcarnahan . I added a Deploy the sample to Azure section to the readme. Please let me know if you have any issues with the process.
Also, you mentioned that you had problems with other Graph samples. Can give some more info? Which did you try and what were the problems?

Diane,
This works - however, there are like i mentioned two issues that if you could clarify I would appreciate it.  So, from your readme :
Deploy the sample to Azure
If you have an Azure subscription, you can deploy the sample app to Azure. These instructions assume you've already registered the sample apphttps://github.com/microsoftgraph/aspnet-connect-rest-sample#register-the-application in the Azure Registration Portal.
This is my question/issue: I can't get the application to work if I've registered it with Azure Registration Portal.  FYSA - I've tried added "TenantID: x...x..x...xx to web.config and used my best efforts on permissions - but, no success.
My second issue will be only if it's not answered in the first question --- permissions on the application - how are they setup "correctly"; as I know permissions, AD and as you know it can get messy. I'd like to have a working example.
Diane, thank you much for paying attention to these details as they are very important to us and our customers.
Vr, Tim:

From: DianeD<EMAIL_ADDRESS>Sent: Monday, November 28, 2016 2:46:37 PM
To: microsoftgraph/aspnet-connect-rest-sample
Cc: Tim Carnahan; Mention
Subject: Re: [microsoftgraph/aspnet-connect-rest-sample] Azure Web Application Microsoft Graph API Integration / Interoperation (#16)
Thanks @twcarnahanhttps://github.com/twcarnahan . I added a Deploy the sample to Azurehttps://github.com/microsoftgraph/aspnet-connect-rest-sample#deploy-the-sample-to-azure section to the readme. Please let me know if you have any issues with the process.
Also, you mentioned that you had problems with other Graph samples. Can give some more info? Which did you try and what were the problems?

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/microsoftgraph/aspnet-connect-rest-sample/issues/16#issuecomment-263373794, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AWi3TvgHiSf6QmpYhyf_xLQH3o42gM4Pks5rCy-dgaJpZM4K9TFW.

Hi Tim. I want to be sure that I understand your situation, so here are some questions/comments to start.

Where are you having trouble when running the app on Azure? Are you prompted to login/consent at all?
Are you getting any errors? Sometimes they can show up in the address bar after the login flow.
This sample uses the Azure AD v2.0 endpoint, so permissions are specified in the app (not in the portal) and then sent to AAD in the scope parameter.

Diane,
We are "registering our application" in Azure NOT from https://apps.dev.microsoft.com, we run the application from our localhost just as we did before and it fails to report or send back to the reply url. It is set correctly in Azure - but I don't know if this even works?
Do you follow?
Much appreciated ,
Vr, Tim:

From: DianeD<EMAIL_ADDRESS>Sent: Wednesday, November 30, 2016 3:15:06 PM
To: microsoftgraph/aspnet-connect-rest-sample
Cc: Tim Carnahan; Mention
Subject: Re: [microsoftgraph/aspnet-connect-rest-sample] Azure Web Application Microsoft Graph API Integration / Interoperation (#16)
Hi Tim. I want to be sure that I understand your situation, so here are some questions/comments to start.

Where are you having trouble when running the app on Azure? Are you prompted to login/consent at all?
Are you getting any errors? Sometimes they can show up in the address bar after the login flow.
This sample uses the Azure AD v2.0 endpoint, so permissions are specified in the app (not in the portal) and then sent to AAD in the scope parameter.

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/microsoftgraph/aspnet-connect-rest-sample/issues/16#issuecomment-263982542, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AWi3Tk7tJ3QJpagJBzHkHZzMbDMXHZrWks5rDdlKgaJpZM4K9TFW.

Hi Tim. I just fixed an incorrect term in the readme (changed "Azure Registration Portal" to "Application Registration Portal"). Sorry!
You do need to register this sample on https://apps.dev.microsoft.com because that's required for apps that use the Azure AD v2.0 endpoint. The sample won't work if you register it on http://portal.azure.com without some non-trivial code changes.
One difference when using the v2.0 endpoint is how permissions are specified for the app. You don't set them for the registered application in the portal, you send them in an auth request to the Azure AD auth provider. If you inspect the HTTP call, you'll see a scope parameter with the permissions.
This Azure topic provides more details about the new registration portal requirement and how you request permissions: What's different about the v2.0 endpoint?
Please let me know if this doesn't clarify your questions/issues!

Diane,
Oh yes - this is exactly what I'm talking about and have issue with - the links on Azure Registration is great; can there be an example of this or do you know of a working example - as like the small text change you caught, there may be likewise in the other documentation as well so a working example is the best approach if it is available that would give validity to the solution.
Vr, Tim:

From: DianeD<EMAIL_ADDRESS>Sent: Wednesday, November 30, 2016 6:51:40 PM
To: microsoftgraph/aspnet-connect-rest-sample
Cc: Tim Carnahan; Mention
Subject: Re: [microsoftgraph/aspnet-connect-rest-sample] Azure Web Application Microsoft Graph API Integration / Interoperation (#16)
Hi Tim. I just fixed an incorrect term in the readme (changed "Azure Registration Portal" to "Application Registration Portal"). Sorry!
You do need to register this sample on https://apps.dev.microsoft.com because that's required for apps that use the Azure AD v2.0 endpoint. The sample won't work if you register it on http://portal.azure.com without some non-trivial code changes.
One difference when using the v2.0 endpoint is how permissions are specified for the app. You don't set them for the registered application in the portal, you send them in an auth request to the Azure AD auth provider. If you inspect the HTTP call, you'll see a scope parameter with the permissions.
This Azure topic provides more details about the new registration portal requirement and how you request permissions: What's different about the v2.0 endpoint?https://docs.microsoft.com/en-us/azure/active-directory/active-directory-v2-compare
Please let me know if this doesn't clarify your questions/issues!

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/microsoftgraph/aspnet-connect-rest-sample/issues/16#issuecomment-264034597, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AWi3Tkvg3D37S3mc3BLT3dY1oW0hd-T6ks5rDgwMgaJpZM4K9TFW.

Hi Tim. I think what you're asking for is a sample that can be registered on http://portal.azure.com with instructions about how to deploy/publish it to an Azure website.
So I'll update the readme for the last_v1_auth version of the ASP.NET Connect sample to include deployment steps and to make sure it matches the new Azure Portal UI. That version uses the Azure AD endpoint (not the Azure AD v2.0 endpoint), so it will only work for work and school accounts. This will still require both registering the app with Azure AD and creating an Azure web app (website).

Diane,
I'm trying to get (c.) scenario working --- I've attached the readme file (I marked up from github) as it has good information on permissions - but it doesn't work. Its loads the correct logon page, logs user on and just states in the browser tab "working..."; Scenario (a.) allows the user to consent to permission [and the azure directory has to allow user to do this though an admin can override that setting using your application]. All three below use OWIN - and with the complexities going on here I believe getting (c.) to work could answer some questions. Deployment to Azure information was great and worked but not for (c.) and (c.) doesn't even work with https://localhost:xxxxx/. Also, I don't need the full application of (c.) to work, my interest is with authentication, the using graph to get user profile info such as userprinciplename and be multi-tenited.
Appreciate your help clearing up this problem, Vr Tim:
Scenarios:
a. Your application "aspnet-connect-rest-sample" works,  you register it in apps.dev.microsoft; it even works as or like a "Multi-Tenant" Application.
b. The https://github.com/Azure-Samples/active-directory-dotnet-webapp-openidconnect - works but is "single tenant".
[https://avatars3.githubusercontent.com/u/1844662?v=3&s=400]https://github.com/Azure-Samples/active-directory-dotnet-webapp-openidconnect
Azure-Samples/active-directory-dotnet-webapp-openidconnecthttps://github.com/Azure-Samples/active-directory-dotnet-webapp-openidconnect
github.com
active-directory-dotnet-webapp-openidconnect - A .NET MVC web application that uses OpenID Connect to sign-in users from a single Azure Active Directory tenant.
c. The https://github.com/Azure-Samples/active-directory-dotnet-webapp-multitenant-openidconnect.git - does not work.
[https://avatars3.githubusercontent.com/u/1844662?v=3&s=400]https://github.com/Azure-Samples/active-directory-dotnet-webapp-multitenant-openidconnect.git
Azure-Samples/active-directory-dotnet-webapp-multitenant-openidconnecthttps://github.com/Azure-Samples/active-directory-dotnet-webapp-multitenant-openidconnect.git
github.com
active-directory-dotnet-webapp-multitenant-openidconnect - A sample .NET 4.5 MVC web app that signs-up and signs-in users from any Azure AD tenant using OpenID Connect.

From: DianeD<EMAIL_ADDRESS>Sent: Thursday, December 1, 2016 7:04:51 PM
To: microsoftgraph/aspnet-connect-rest-sample
Cc: Tim Carnahan; Mention
Subject: Re: [microsoftgraph/aspnet-connect-rest-sample] Azure Web Application Microsoft Graph API Integration / Interoperation (#16)
Hi Tim. I think what you're asking for is a sample that can be registered on http://portal.azure.com with instructions about how to deploy/publish it to an Azure website.
So I'll update the readme for the last_v1_authhttps://github.com/microsoftgraph/aspnet-connect-rest-sample/tree/last_v1_auth version of the ASP.NET Connect sample to include deployment steps and to make sure it matches the new Azure Portal UI. That version uses the Azure AD endpoint (not the Azure AD v2.0 endpoint), so it will only work for work and school accounts. This will still require both registering the app with Azure AD and creating an Azure web app (website).

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/microsoftgraph/aspnet-connect-rest-sample/issues/16#issuecomment-264334621, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AWi3TnkjXQFJNikiJ493U9hf6jb5bTFOks5rD2CjgaJpZM4K9TFW.

Thanks Tim. I'll take a look at the Azure multitenant sample in scenario (c.). I don't see the readme attachment. Can you please try to attach it again?

Diane,
I changed the readme file to a pdf --- maybe that was the problem; as with Multi-Tenant, it is most likely to be a permission issue but again --- I've exhausted my "trial and error" approach. [😊]
Thank you a lot for your patience working with my issue, Tim:
Also note: While your testing, you have to change the "multi tenant" application setting in Azure to "no" in order to delete the application. Really looking forward to this working - thank you again Diane for your knowledge transfer - Tim:

From: DianeD<EMAIL_ADDRESS>Sent: Friday, December 2, 2016 1:07:19 PM
To: microsoftgraph/aspnet-connect-rest-sample
Cc: Tim Carnahan; Mention
Subject: Re: [microsoftgraph/aspnet-connect-rest-sample] Azure Web Application Microsoft Graph API Integration / Interoperation (#16)
Thanks Tim. I'll take a look at the Azure multitenant sample in scenario (c.). I don't see the readme attachment. Can you please try to attach it again?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/microsoftgraph/aspnet-connect-rest-sample/issues/16#issuecomment-264521034, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AWi3Tullc-9hQaV29dGW5JMv0t-4fEKzks5rEF5XgaJpZM4K9TFW.

Hi Tim. I'm closing this issue and will continue the conversation in the issue you opened on the Azure sample.
If you added more repro information to the readme you marked up, can you please attach it to that issue?


linux-reader: Add version 4.19

Closes #12634

Relates to #4797
Supersedes #11957

[x] I have read the Contributing Guide.

/verify


SwiftCompilerSources: bridge_object_to_word is not a ForwardingInstruction

Fix this mismatch between C++ SIL and swift SIL.
Fixes a crash in begin_borrow simplification
Also add an assert to catch such cases.
rdar://119763595

@swift-ci smoke test


Erro ao logar no admin

even with the correct password not log

Go to the bb-config and make sure your url is correct if you have a ssl cert make sure your url has the https:// in it (This happend with me unto i made sure it was right) , please make sure you done a fresh Install for the MySQL Database too.

I checked the order is in the bb-admin.php was running normal until moments ago SOME of nowhere stop entering the admin

Can you explain your problem once again?

I am not able to log into my admin is giving error login and password but the same login and password and an overnight stay as well

So basically you can't login, right do the following goto phpMyAdmin and go to the database your installation is on (Example mine is order)
When you got onto the Database you should see a table called admin click on this.
When it has loaded you should se a table which has admin and cron edit the admin table.
When this has loaded you should see something called email make sure this is correct.
Under the that you should see something called pass, then your password which will be a MD5 encrypted password for now leave this and go to this website http://www.adamek.biz/md5-generator.php, when loaded type in the password you want and hit Calculate MD5, copy and paste the MD5 created into where the value of pass then git Go and it will save, please try and re-login.
If you are still having issues please give me a link to your boxbilling installation and me or the boxbilling team will take a look, it would also be best if you could give me or boxbilling your username and password but you would have to email us or something.
Hope this helps.

Just a few comments, passwords are actually SHA1 encoded, and you do not need extra tools for reseting your password in phMyAdmin. You just enter raw password in password field, and select function "SHA1" in nearby select field.
Also you can check your email. BoxBilling sends installation details to your administrator email.

Hmm odd i never got that email, i remember you used to in the old version but this time i did not, and i really did think that was MD5Fail,  and my phpMyAdmin does not seem to have that option for some reason maybe i need to update.

the strange people and sometimes you have to log hours and has not log with my username and password even though correct

I created an account as a user copied the password md5 put it in my admin but not the error log so I could login and password

"NIK-Software" already tested and not already installed the system works but after a time the same error

Can you give us a link to your installation?

also tested with SHA1 but even so recreated the error when I type the password and also the error of User and password
the stranger who tried the same password to see if the code SHA1 tava right but the second will hit was correct or do not know where the error may be
Please need a help

Can you give us a link to your installation?

I found something other machines tested and all seem to connect and something blocking the system with my machine I do know how to fix

http://www.central.amvhost.com.br link instalation

This link is not working

Are you still experiencing this issue?

problem solved in order to install the database
Thank you for your attention

http://seodaddyhost.com/gateway/bb-admin.php
ERROR 404 - Not Found!
The following error occurred:
The requested URL was not found on this server.
Please check the URL or contact the webmaster.
everything is setup correctly and i even changed the passwords.
IF this is not a stable platform then i will be very disappointed cause it seems real good better than all the nonsense for host billing

Please use following URL: http://seodaddyhost.com/gateway/bb-admin
You can change it in bb-config.phpfile.


[Fix] generate token bug fixed.

Problem Summary:
What is changed and how it works?
Proposal: xxx
Feel free to ping committers for the review!
Contribution Checklist

Make sure that the pull request corresponds to a GITHUB issue.

Name the pull request in the form "[Feature] [component] Title of the pull request", where Feature can be replaced by Hotfix, Bug, etc.

Minor fixes should be named following this pattern: [hotfix] [docs] Fix typo in README.md doc.

-->
Purpose of this pull request

@lizzy-yang PTAL.

pr #1026

This is not a bug. The user password should not be used here. The token is generated according to username, password and expireTime. If the user password is used here, the access token generated by the same user on the browser will be exactly the same, which is not allowed！

@lizzy-yang PTAL.

In fact, the authentication of accesstoken has nothing to do with the user password, because it will directly query the database information. The user password here plays a role of salt value.

@lizzy-yang PTAL.

So this is not a bug. On the contrary, it is better to take UUID, which can make accesstoken more random


Spike: Updates to work with the Sepolia test network

On ~Oct 6th Ropsten will be stopped/decommissioned so we will be moving to Sepolia.
Devops work is being done to migrate to Sepolia under the following issue:

https://github.com/vegaprotocol/devops-infra/issues/1523
https://github.com/vegaprotocol/devopsscripts/issues/72
https://github.com/vegaprotocol/devopsscripts/issues/71

This spike is to

[ ] coordinate with devops to understand the changes
[ ] understand what is required for the FE apps / team / testing
[ ] create and schedule the FE work to be done in coordination with the network changes above

Closing as trading app pulls all addresses from core, there is no code change, any test effort should be covered by https://github.com/vegaprotocol/frontend-monorepo/issues/1418


temporal filtering before maxwell filtering?

Together with @StevenMGraham we were trying to use the MNE study template for our analysis.
However, we realized that the study template is doing something different from what the biomag demo repo does. It temporally filters first and then applies maxwell filtering. The biomag demo applies maxwell filtering first.
This seems wrong to me because you'd temporally spread the artifacts before the maxwell filter which would make data overall worse. Instead you want to do  maxwell filtering first and then apply temporal filtering on the cleaned data. Thoughts @agramfort ?

indeed that's what I would recommend
@larsoner agreed?

This seems wrong to me because you'd temporally spread the artifacts before the maxwell filter which would make data overall worse. Instead you want to do maxwell filtering first and then apply temporal filtering on the cleaned data.

If you are doing tSSS or movement compensation this could matter, because both are basically a time-varying linear operations.
If you are doing plain SSS it should not matter, because vanilla SSS is a spatially linear transformation, and filtering is a temporally linear operation (assuming you apply both operations to all channels under consideration). You should be able to check this on your data.
But yes typically when doing SSS-like operations people do a notch filtering (filter_chpi) then SSS(+tSSS+movecomp) then proceed with things like low- or high-pass filtering. The logic behind this is that the notch filtering makes things like tSSS work (probably) better so it's a useful first step, then you proceed with your (potentially) time-varying linear filtering via tSSS+movecomp, then apply your linear temporal filters.

My 2 cents while at the Nov hackathon here: filter should be after maxfilter

yes +1 it's more standard

We discussed with @agramfort today how to do this. Here is a suggestion:

add a new script 00_visualization to plot the raw data and mark bad channels/ segments
script 01 reads raw and applies maxfilter (sss or tsss) if specified in config, otherwise it saves a _nosss version of raw with bad channels added
script 02 reads the output of 01 and runs frequency filter with the specified cut-offs

What do you think @jasmainak @larsoner @virvw ?
I implemented this new order for our version of the pipeline in the team if you want to have a look: [https://github.com/brainthemind/CogBrainDyn_MEG_Pipeline]

PS: there is a known issue  #6528 with interactive plotting in spyder / jupyter, which is problematic for the above mentioned script 00

what's the plan with the fork? Do you think we could make a pull request here so that everyone in the community benefits from it?
There is a PR for autobad in Maxfilter in MNE so I am assuming 00_visualization goes away eventually?
The maxfilter in MNE now has autobad IIRC, so maybe we don't need to mark bad channels/segments before?
Also we checked and @larsoner is correct that the order does not matter much at least for the SSS case. However, given that some people might easily swap SSS for tSSS, I think it's safer to keep Maxfilter after temporal filtering.

The fork is too outdated for a mergable PR, but I can make a new PR on the study template. Just wanted to check before doing the work.
I don't know about autobad, bad for us it is important to be able to look at the data.

agrees w/ Sophie - autobad sometimes causes more harm than good
Virginie van Wassenhove
https://brainthemind.com/ https://brainthemind.com/
On Tue, Nov 19, 2019 at 5:30 PM Sophie Herbst<EMAIL_ADDRESS>wrote:

The fork is too outdated for a mergable PR, but I can make a new PR on the
study template. Just wanted to check before doing the work.
I don't know about autobad, bad for us it is important to be able to look
at the data.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mne-tools/mne-study-template/issues/59?email_source=notifications&email_token=ABYMUISFFTKBS6NOXF3AZBDQUQIDNA5CNFSM4JMIFC42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEO2KQY#issuecomment-555590979,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABYMUIR5J6WU4CLG3SV7XZTQUQIDNANCNFSM4JMIFC4Q
.

I also just realized that we are using a rather specific frequency filter, which comes out as
one-pass, zero-phase, non-causal
We should use a two-pass, I think, or put the parameters in the config, not in the script (01 right now).

One-pass FIR should be fine, why do you want two-pass?

to not shift the phase

zero-phase

This part implies that the phase will not be shifted. You only need to do two-pass with IIR filters to achieve a zero-phase filter. FIR filters can be designed to be zero phase. So no need for two filtering passes to achieve it.

ups, yes. so this shifting back in time preserves the phase-ratio between different frequencies?
Nevertheless, it might make sense to export the filter length, phase, and design parameters to the config file though.
raw.filter(config.l_freq, config.h_freq,
               l_trans_bandwidth=config.l_trans_bandwidth,
               h_trans_bandwidth=config.h_trans_bandwidth,
               filter_length='auto', phase='zero', fir_window='hamming',
               fir_design='firwin'
               )

I believe this should be closed by #63 now?


Updated for Xcode 8 Beta 4

Thanks for your work. I'm not going to use it directly though. I had already updated it locally + updated the test as well.
See the changes in ac45714b0fe8be20078c0002f410d8607cff3ca4