add flow package depdendenices into version

Closes #1465
Description
example:
Flow Package Dependencies:
github.com/onflow/atree: v0.6.0
github.com/onflow/cadence: v0.42.9
github.com/onflow/cadence-tools/languageserver: v0.33.3
github.com/onflow/cadence-tools/lint: v0.14.1
github.com/onflow/cadence-tools/test: v0.14.6
github.com/onflow/crypto: v0.25.0
github.com/onflow/fcl-dev-wallet: v0.7.4
github.com/onflow/flixkit-go: v1.1.2
github.com/onflow/flow-cli: (devel)
github.com/onflow/flow-cli/flowkit: v1.11.0
github.com/onflow/flow-core-contracts/lib/go/contracts: v1.2.4-0.20231016154253-a00dbf7c061f
github.com/onflow/flow-core-contracts/lib/go/templates: v1.2.4-0.20231016154253-a00dbf7c061f
github.com/onflow/flow-emulator: v0.61.1
github.com/onflow/flow-ft/lib/go/contracts: v0.7.1-0.20230711213910-baad011d2b13
github.com/onflow/flow-go: v0.33.2-0.20240306234901-64ab8d27ea30
github.com/onflow/flow-go-sdk: v0.46.0
github.com/onflow/flow-nft/lib/go/contracts: v1.1.0
github.com/onflow/flow/protobuf/go/flow: v0.3.7
github.com/onflow/flowkit: v1.17.1
github.com/onflow/nft-storefront/lib/go/contracts: v0.0.0-20221222181731-14b90207cead
github.com/onflow/sdks: v0.5.0
github.com/onflow/wal: v0.0.0-20240208022732-d756cd497d3b

For contributor use:

[ ] Targeted PR against master branch
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work
[ ] Code follows the standards mentioned here
[ ] Updated relevant documentation
[ ] Re-reviewed Files changed in the Github PR explorer
[ ] Added appropriate labels

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 40.06%. Comparing base (c0a70d6) to head (7720278).
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1467      +/-   ##
==========================================
- Coverage   41.05%   40.06%   -1.00%
==========================================
  Files          51       51
  Lines        2957     2908      -49
==========================================
- Hits         1214     1165      -49
  Misses       1591     1591
  Partials      152      152

Flag
Coverage Δ

unittests
40.06% <ø> (-1.00%)
:arrow_down:

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Bot latency

Since few weeks, my bot haves a latency between 5 and 12 seconds or do not receive some messages.
I tried :

tested the network [OK] : datacenter hosted in Paris, 10ms ping to api.telegram.org, no packets lost
tested with another bot [OK] : the same code on the same host works perfectly for months with high latency
tested on other machines [DOESN'T CHANGE ANYTHING] : Debian 12, Docker 26.0.0 and MacOs Sonoma
tested on other networks [DOESN'T CHANGE ANYTHING]
deleted the bot and recreated it [OK for some hours then NOK : high latency is back] : At for the first hours, the bot was super fast with a latency below 1 second. Now, the problem came back again.

The code is running python-telegram-bot==20.8.
How can I solve this issue ?

You need to find the cause of the issue. For example, check the way you get updates.

If I changed the bot token an got a working software. The issue shouldn't be on my side, right ? If I need to check something else, explain me what. I tested already some much things. Thanks for your help.

If I changed the bot token an got a working software. The issue shouldn't be on my side, right ?

No, this implies nothing.
Do you use api.telegram.org?

I don't define any host so defaults are used.
According to the documentation, https://api.telegram.org/bot is used.
class telegram.Bot(token, base_url='https://api.telegram.org/bot', base_file_url='https://api.telegram.org/file/bot', request=None, get_updates_request=None, private_key=None, private_key_password=None, local_mode=False)
I check also dns resolution :
total_time=0; for i in {1..10}; do sleep 30;query_time=$(dig +noall +stats api.telegram.org | awk '/Query time:/ {print $4}'); echo "$query_time";total_time=$((total_time + query_time)); done; mean_query_time=$(echo "scale=2; $total_time / 10" | bc); echo "Mean Query Time: $mean_query_time ms"
The result is Mean Query Time: .80 ms Max 4ms

Could you write details to https://t.me/tdlib_bot?

The problem disappeared without changing anything on my side (no reboot, restart, ...).
In the meantime, I did pcap when everything works well, take logs of typical timings. If the issue come back, I will do a more detailed report on https://t.me/tdlib_bot. Thanks


Support the KEDA ScaledJobs / Jobs Pattern

KEDA supports a pattern of ScaledJobs for containers or jobs that "run to completion".  This is especially useful if you are pulling messages from a queue or event source and want to have it run to completion without scaling down
https://keda.sh/docs/2.4/concepts/scaling-jobs/
This could also be merged with the traditional "job" concept - and expose a "manual invoke" ability where you can kick off the job without it being tied to an event with something like az containerapp invoke-job -n myjob --image {}

This would support one of my most needed use cases, having it work as an Azure Pipelines/Github Actions pool.

Adding my voice to this too. This is key for us to enable the use of containerapps for a bunch of deployment pipeline situations where we need jobs to run to completion.

This would be very beneficial for the use cases we have for container apps as well.

We are currently looking into utilizing Container Apps for our workloads. Since we need to run numerous long-running batch jobs and would like to scale those via KEDA Queues, we are very interested in having ScaledJobs support in CA. Otherwise we cannot utilize CA for our workloads in this case.

Would be useful for our use cases as well. Have a lot of minor apps that should start every now and again, do their thing to completion and then scale down automatically. Based mostly on cron expressions and EventGrid triggers (HTTP).

we will be working on jobs and support for this will happen with support for jobs!

one of my customers ask for this feature as well

Any ETA on this one?

We are making progress in design phase - will keep updated

One of our customers ask for this feature as well!
Where is the official roadmap of ContainerAppService?

Need this feature too. Our use case is around processing lidar data in a container app which would require long-running jobs and even vertical scaling of resources for particular batch jobs.

Adding my voice to the line as well. We would greatly appreciate this feature to support our pipeline deployments.

We're looking forward to this as well.  Our current use case is for Azure DevOps pipelines, but we're also considering it for other long running jobs.  Thanks!

Need this as well

Any updates regarding this? Would be very useful in our use-case.

Any updates regarding this? Would be very useful in our use-case.

Found the answer myself in #526 if someone else is wondering.

#please-close
https://techcommunity.microsoft.com/t5/apps-on-azure-blog/introducing-jobs-for-azure-container-apps/ba-p/3826677#:~:text=With this new feature%2C Container Apps now supports,can run for minutes or even hours.

Closing this issue as Container Apps Jobs is in Public Preview:
https://techcommunity.microsoft.com/t5/apps-on-azure-blog/introducing-jobs-for-azure-container-apps/ba-p/3826677#:~:text=With this new feature%2C Container Apps now supports,can run for minutes or even hours.


fix(steps): add unit test and fix unique col scaling

changes:

fix unique col standardization
add unit test

resolve #119

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 86.55%. Comparing base (6582682) to head (d6446c7).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #158      +/-   ##
==========================================
+ Coverage   85.39%   86.55%   +1.16%
==========================================
  Files          26       27       +1
  Lines        1924     1964      +40
==========================================
+ Hits         1643     1700      +57
+ Misses        281      264      -17

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

This doesn't quite fix it; it throws an error. I'm not too keen on it.
Why? Preprocessing can be like a recipe you apply, and you may always want to scale your numeric columns. I don't want to throw an error just because one of those columns is not unique; should figure out how to handle it instead.
See how scikit-learn handles it, for example: https://github.com/betatim/scikit-learn/blob/main/sklearn/preprocessing/_data.py#L82 (huh, not sure how I got to somebody's fork, but whatever... get the point)
If you want to refactor this PR to just add the unit tests, and create an issue to handle scaling without throwing an error, we can do that (but doesn't need to go in today).
(Or you can push off adding the unit tests until address the scaling in a future PR)

This doesn't quite fix it; it throws an error. I'm not too keen on it.
Why? Preprocessing can be like a recipe you apply, and you may always want to scale your numeric columns. I don't want to throw an error just because one of those columns is not unique; should figure out how to handle it instead.
See how scikit-learn handles it, for example: https://github.com/betatim/scikit-learn/blob/main/sklearn/preprocessing/_data.py#L82 (huh, not sure how I got to somebody's fork, but whatever... get the point)
If you want to refactor this PR to just add the unit tests, and create an issue to handle scaling without throwing an error, we can do that (but doesn't need to go in today).
(Or you can push off adding the unit tests until address the scaling in a future PR)

make sense, I will update this PR soon.


Differentiating icon between marimo notebook and marimo API

Description
Been loving marimo so far. When I have a marimo notebook open as well as multiple tabs on the marimo docs, they all have the same icon so it's difficult to immediately jump back to the correct tab.

Suggested solution
Slightly change the icon on the marimo docs pages.
Alternative
No response
Additional context
No response

Ha, good point ...! Perhaps we can close the docs logo in a box. Thanks for the suggestion.


React app build failing after installing ffmpeg/ffmpeg

Describe the bug
Following react example as per https://ffmpegwasm.netlify.app/#demo, the build gives an error.
Compiled with problems:
×
ERROR in<EMAIL_ADDRESS>6:92-166
Module not found: Error: Can't resolve<EMAIL_ADDRESS>in '/Users/anmolvarma/personal/new-things/guitar-chords/kareoke-app/node_modules/@ffmpeg/ffmpeg/src/browser'
To Reproduce
Steps to reproduce the behavior:

run npm i @ffmpeg/ffmpeg
Copy code from https://github.com/ffmpegwasm/react-app/blob/master/src/App.js
Run npm start

Expected behavior
The app should build successfully.
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

OS: MacOs Ventura 13.4
Browser: chrome and brave
Version: Version 1.52.126 Chromium: 114.0.5735.133 (Official Build) (arm64)

Additional context
Add any other context about the problem here.

You have only installed @ffmpeg/ffmpeg, check the docs they also install @ffmpeg/core with it as well or @ffmpeg/util depends on the version.
if using ffmpeg verion 0.11.x install @ffmpeg/core if >= 0.12.x install @ffmpeg/util


TenantAware Commands

Description
Often when running a SaaS, we need to run tenant specific commands. Having a trait or BaseCommand to extent - or even magical automatic setup.
Why this should be added
I know you have the tenancy()->all($this->option('tenants'))->each(...) syntax in place, but I will suggest to have a forced command with only one tenant. do to the fact that if you forget the argument, then it runs the command on all tenants - which can lead to incorrect operations.
I suggest
tenancy()->only($this->option('tenant'))->run(function ($tenant) {
    // call the command
});

and a new HasATenantOption that is required.
trait HasATenantOption
{
    protected function getOptions()
    {
        return array_merge([
            ['tenant', null, InputOption::VALUE_REQUIRED, '', null],
        ], parent::getOptions());
    }
}

I can do a PR, but still a bit new to the project in terms of how to do those magical setups. so I will let you decide how to proceed.

You can use tenants:run to run a command for specific tenant(s). But I've also been thinking about a TenantAware trait. I'll explore the idea a bit more.

I'll add a TenantAwareCommand trait but I disagree with this:

do to the fact that if you forget the argument, then it runs the command on all tenants - which can lead to incorrect operations.

I don't like the idea of removing features because users could make a mistake. It should be the user's responsibility to implement confirmToProceed() on dangerous commands.
Anyway, I decided to go with abstract protected function getTenants(): array on the TenantAwareCommand, so that you can return an array with a single tenant if it doesn't make sense to execute some command on multiple tenants.


HTTP Status Codes are swapped for Unauthorized (401) and Forbid (403)

Using Blazor/server on VS 16.1.0 Preview 3
A return from an ASP.Core Blazor server-side API method of Unauthorized permits the passing of an object like this Unauthorized(object). The return of Forbid permits the passing back of authentication parameters.
According to this Stack Overflow, a 401 is used when regarding the authentication of a users credentials. And a 403 is used when in regards to what the user has access to (authorization). And it a 401 is sent to the user, instructions on how to authenticate is sent with it. If a 403 is sent, we are sending a custom validation class to the client to set field validation messages and why they are not authorized (e.g. server-side validation failed), so sending an object with a 403 makes sense.  So are the parameters of these swapped in ASP.net Core by chance? Also, Microsoft, this would be a great time to change the names of these in the code to make sense to the average Joe.
Reference:
https://stackoverflow.com/questions/3297048/403-forbidden-vs-401-unauthorized-http-responses

I would like to add another possible related bug. I switched my 401 to 403 error and the client is now getting a status of 500 (Internal Server Error) instead of 403.
[HttpPut]
public ActionResult<vResponse> Put([FromBody] string fdJson)
{
     return Forbid(); //403
}

I would like to add another possible related bug. I switched my 401 to 403 error and the client is now getting a status of 500 (Internal Server Error) instead of 403.

Check your logs. Do you see something like: no default forbid scheme registered?

Sorry, but where is the log when running VS in debug mode on desktop?

You can find the logs in the Output window in VS, while debugging.
Alternatively, you can select the dropdown for the run button in VS to run the app directly instead of using IIS Express. That would show the console and you'll see the logs right in it.


Fully remove subprocess from the multi-gpu launcher

Completely remove all subprocess from multi_gpu_launcher
What does this add?
This PR removes the subprocess parts of the multi_gpu launcher code and replaces it with raw torchrun. This reduces the number of subprocesses had (2 to 1, just torchrun's), and lets us actually get a readable stack trace now that isn't overwhelmed with subprocess bits (so we can play with them now! 🥳 )
Who is it for?
Users of Accelerate
Why is it needed?
Old stack traces were very hard to read and parse through, especially to play with since it's a double-nesting of subprocess. Now only one instance of subprocess is used, leaving us with the following new stack trace example:
(base) zach_mueller_huggingface_co@zach-multi-gpu:~/accelerate/examples$ accelerate launch nlp_example.py
The following values were not passed to `accelerate launch` and had defaults used instead:
        `--num_cpu_threads_per_process` was set to `2` to improve out-of-box performance
To avoid this warning pass in values for each of the problematic parameters or run `accelerate config`.
Traceback (most recent call last):
  File "nlp_example.py", line 193, in <module>
    main()
  File "nlp_example.py", line 189, in main
    training_function(config, args)
  File "nlp_example.py", line 100, in training_function
    raise ValueError()
ValueError
Traceback (most recent call last):
  File "nlp_example.py", line 193, in <module>
    main()
  File "nlp_example.py", line 189, in main
    training_function(config, args)
  File "nlp_example.py", line 100, in training_function
    raise ValueError()
ValueError
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 165573) of binary: /opt/conda/bin/python3.7
Traceback (most recent call last):
  File "/opt/conda/bin/accelerate", line 33, in <module>
    sys.exit(load_entry_point('accelerate', 'console_scripts', 'accelerate')())
  File "/home/zach_mueller_huggingface_co/accelerate/src/accelerate/commands/accelerate_cli.py", line 43, in main
    args.func(args)
  File "/home/zach_mueller_huggingface_co/accelerate/src/accelerate/commands/launch.py", line 823, in launch_command
    multi_gpu_launcher(args)
  File "/home/zach_mueller_huggingface_co/accelerate/src/accelerate/commands/launch.py", line 442, in multi_gpu_launcher
    distrib_run.run(distrib_args)
  File "/opt/conda/lib/python3.7/site-packages/torch/distributed/run.py", line 755, in run
    )(*cmd_args)
  File "/opt/conda/lib/python3.7/site-packages/torch/distributed/launcher/api.py", line 131, in __call__
    return launch_agent(self._config, self._entrypoint, list(args))
  File "/opt/conda/lib/python3.7/site-packages/torch/distributed/launcher/api.py", line 247, in launch_agent
    failures=result.failures,
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
============================================================
nlp_example.py FAILED
------------------------------------------------------------
Failures:
[1]:
  time      : 2022-08-09_23:17:00
  host      : zach-multi-gpu.c.huggingface-ml.internal
  rank      : 1 (local_rank: 1)
  exitcode  : 1 (pid: 165574)
  error_file: <N/A>
  traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
------------------------------------------------------------
Root Cause (first observed failure):
[0]:
  time      : 2022-08-09_23:17:00
  host      : zach-multi-gpu.c.huggingface-ml.internal
  rank      : 0 (local_rank: 0)
  exitcode  : 1 (pid: 165573)
  error_file: <N/A>
  traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
============================================================

A follow-up PR will help with the repeating structure of this stack trace via rich
It would also be a good idea to see what the other launchers would take to run them via native python to launch rather than calling subprocess to call the script/entrypoint
What parts of the API does this impact?
User-facing:
Absolutely nothing
Internal structure:
Functionally nothing

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Have some kind of live activity indicator

Ideally it would show distinctly colored (anonymous) dots for each person, which would show up in a summary view in th eheader for the entire presentation, but also show up as they jump around the cards (seeing the movement and others helps with virality)

https://firebase.google.com/docs/firestore/solutions/presence

Consider using Google Cloud Scheduler to schedule the updates


Revert #119

Revert the change here: https://github.com/nielsenramon/chalk/pull/119

To paraphrase what was said on that PR, we should probably upgrade to jekyll-assets v3, the breaking changes are trivial to fix and are contained here: https://github.com/migueldemoura/migueldemoura.com/commit/6c498dbbe53a2f17db3d34848a6a3716261953cc

@migueldemoura Absolutely, I got some spare time in the coming days, I'll try my best to check off some of the issues.

One could keep the baseurl key empty, along with a comment, as that might help out new users.


Added the args option

The args option can be used as a short-hand way of passing some
value/object to all loaded modules (assuming they all export a function
that can be directly invoked)
Fix for #15

Awesome work! I'm a bit busy at the moment, but will try to properly review soon. Thank you. =)

:+1: please pull this in, we need it, awesome work @dsebastien!

:+1: we really need it :)

Sorry folks, I've been unusually busy with both work and life for a sustained period of time now. I keep meaning to get to these PRs (and other projects), but don't find myself with the time + energy too often.
One thing I've done with another project is to invite one or two other people to be collaborators in the project and help maintain it. Anyone here interested in that?
I'd just ask that you be mindful of keeping this project focused, and not let it get too complex. E.g. I'm not 100% sure it's a good idea to accept all of the currently open PRs, but I haven't looked into them fully or thought deeply about it.
Apologies again for the delay, and thank you for understanding. =)

@aseemk no problem, yes find someone with your same view about the project who can take decisionis of merging PRs instead of you. I have some free time and could help if you want.
About the pull requests I think the two fundamental ones are the ignore/filter option and this one, since you can also pass arguments with the standard `require('./file.js')(args)', here is an example that could save 3 lines of code in one of my projects.

( @marcofugaro: I missed your previous reply! Are you still interested? )
Hi there,
I'm sorry I haven't been timely in responding to these issues and PRs.
If you're interested in taking over the maintainer role for this project, please let me know.
More details: https://github.com/aseemk/requireDir/pull/31#issuecomment-255744987
Cheers,
Aseem

Hi - new maintainer here. I don't think this is a feature we'll add, you should be able to solve this problem with the new mapKey/mapValue/filter functions. mapValue(v) { return v(args) } should work fine for this case.


Some problems when using the well trained model

Hello!
Thank you for your previous answer.
However some errors occurred when i load the well trained simsiam model for cifar10:
ModuleNotFoundError: No module named 'solo.methods'
and moco for cifar100:
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory
When I use simclr, byol, moco for cifar10, there is no such problem.

Can you post a brief code snippet to reproduce the problem?

`import torch
import torchvision
from torchvision import datasets
from tqdm import tqdm
from pl_bolts.models.self_supervised import SimCLR,BYOL
import torch.nn as nn
from sklearn.metrics import accuracy_score
import numpy as np
np.set_printoptions(threshold=np.inf)
torch.set_printoptions(precision=None, threshold=None, edgeitems=None, linewidth=None, profile=None)
class linear(nn.Module):
def init(self,n_features,n_classes):
super(linear,self).init()
self.model = nn.Linear(n_features,n_classes)
def forward(self,x):
    return self.model(x)

device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model = torchvision.models.resnet18()
model.conv1 = nn.Conv2d(3, 64, kernel_size=3, stride=1, padding=2, bias=False)
model.maxpool = nn.Identity()
model.fc = nn.Identity()
state = torch.load('simsiam_cifar10.ckpt',map_location=torch.device('cpu'))["state_dict"]
for k in list(state.keys()):
if "encoder" in k:
state[k.replace("encoder.", "")] = state[k]
del state[k]
model.load_state_dict(state, strict=False)
model = model.to(device)
train_dataset = datasets.CIFAR10(root='./cifar10_dataset',train=True,transform=torchvision.transforms.ToTensor(),download=True)
test_dataset = datasets.CIFAR10(root='./cifar10_dataset',train=False,transform=torchvision.transforms.ToTensor(),download=True)
linear_model = linear(model.inplanes,10).to(device)
train_loader = torch.utils.data.DataLoader(
train_dataset,
batch_size=128,
shuffle=True,
    drop_last=True,
)

test_loader = torch.utils.data.DataLoader(
test_dataset,
batch_size=128,
shuffle=True,
    drop_last=True,
)

optimizer = torch.optim.Adam(linear_model.parameters(), lr=3e-4)
criterion = torch.nn.CrossEntropyLoss()
for i in range(100):
print(i)
accuracy_epoch = 0
loss_epoch = 0
accuracy_sample = []
total_sample = []
for step, (x,y) in enumerate(tqdm(train_loader)):

    model.eval()
    x = x.cuda()
    y = y.cuda()
    r = model(x)

    output = linear_model(r)

    loss = criterion(output, y)
    predicted = output.argmax(1)
    predicted = predicted.cpu().numpy()
    predicted = list(predicted)
    accuracy_sample.extend(predicted)
    y = y.cpu().numpy()
    y = list(y)
    total_sample.extend(y)
    loss.backward()
    optimizer.step()

    loss_epoch += loss.item()

print(accuracy_score(total_sample,accuracy_sample))
print(loss_epoch/len(train_loader))

and it cause:Traceback (most recent call last):
File "simsiam_cifar10.py", line 24, in
state = torch.load('simsiam_cifar10.ckpt')["state_dict"]
File "/home/xinlei.he/.local/lib/python3.7/site-packages/torch/serialization.py", line 607, in load
return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
File "/home/xinlei.he/.local/lib/python3.7/site-packages/torch/serialization.py", line 882, in _load
result = unpickler.load()
File "/home/xinlei.he/.local/lib/python3.7/site-packages/torch/serialization.py", line 875, in find_class
return super().find_class(mod_name, name)
ModuleNotFoundError: No module named 'solo.methods'`

import torch
import torchvision
from torchvision import datasets
from tqdm import tqdm
from pl_bolts.models.self_supervised import SimCLR,BYOL
import torch.nn as nn
from sklearn.metrics import accuracy_score
import numpy as np
np.set_printoptions(threshold=np.inf)
torch.set_printoptions(precision=None, threshold=None, edgeitems=None, linewidth=None, profile=None)
class linear(nn.Module):
    def __init__(self,n_features,n_classes):
        super(linear,self).__init__()
        self.model = nn.Linear(n_features,n_classes)

    def forward(self,x):
        return self.model(x)

device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model = torchvision.models.resnet18()
model.conv1 = nn.Conv2d(3, 64, kernel_size=3, stride=1, padding=2, bias=False)
model.maxpool = nn.Identity()
model.fc = nn.Identity()
state = torch.load('simsiam_cifar10.ckpt',map_location=torch.device('cpu'))["state_dict"]

for k in list(state.keys()):
     if "encoder" in k:
         state[k.replace("encoder.", "")] = state[k]
     del state[k]
model.load_state_dict(state, strict=False)

model = model.to(device)
train_dataset = datasets.CIFAR10(root='./cifar10_dataset',train=True,transform=torchvision.transforms.ToTensor(),download=True)
test_dataset = datasets.CIFAR10(root='./cifar10_dataset',train=False,transform=torchvision.transforms.ToTensor(),download=True)

linear_model = linear(model.inplanes,10).to(device)

train_loader = torch.utils.data.DataLoader(
        train_dataset,
        batch_size=128,
        shuffle=True,

        drop_last=True,
    )

test_loader = torch.utils.data.DataLoader(
        test_dataset,
        batch_size=128,
        shuffle=True,

        drop_last=True,
    )
optimizer = torch.optim.Adam(linear_model.parameters(), lr=3e-4)
criterion = torch.nn.CrossEntropyLoss()

for i in range(100):
    print(i)
    accuracy_epoch = 0
    loss_epoch = 0

    accuracy_sample = []
    total_sample = []
    for step, (x,y) in enumerate(tqdm(train_loader)):

        model.eval()
        x = x.cuda()
        y = y.cuda()
        r = model(x)

        output = linear_model(r)

        loss = criterion(output, y)
        predicted = output.argmax(1)
        predicted = predicted.cpu().numpy()
        predicted = list(predicted)
        accuracy_sample.extend(predicted)
        y = y.cpu().numpy()
        y = list(y)
        total_sample.extend(y)
        loss.backward()
        optimizer.step()

        loss_epoch += loss.item()

    print(accuracy_score(total_sample,accuracy_sample))
    print(loss_epoch/len(train_loader))

and it caused:
Traceback (most recent call last):
  File "simsiam_cifar10.py", line 24, in <module>
    state = torch.load('simsiam_cifar10.ckpt')["state_dict"]
  File "/home/xinlei.he/.local/lib/python3.7/site-packages/torch/serialization.py", line 607, in load
    return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
  File "/home/xinlei.he/.local/lib/python3.7/site-packages/torch/serialization.py", line 882, in _load
    result = unpickler.load()
  File "/home/xinlei.he/.local/lib/python3.7/site-packages/torch/serialization.py", line 875, in find_class
    return super().find_class(mod_name, name)
ModuleNotFoundError: No module named 'solo.methods'

Thanks a lot for your help.

Sorry, but I can't reproduce the error. I ran the following:
>>> import torch
>>> state = torch.load('simsiam-cifar10-252e1tvw-ep=999.ckpt', map_location=torch.device('cpu'))["state_dict"]
>>> len(state.keys())
147

Are you sure that you have solo installed in your environment? You can run pip list | grep solo and check if it appears. If it doesn't, just install it like this (from the root folder of the repo):
pip3 install .[dali,umap]

BTW, you are importing SimCLR and BYOL from pl_bolts.models.self_supervised, not from solo.methods.
However, I actually suggest that you use our linear eval class, it is very easy to use. As said we have precompiled scripts for this (e.g. for simsiam). You just need to change a few args to adapt to cifar.  I will try your precompiled scripts.

Sorry, but I can't reproduce the error. I ran the following:
>>> import torch
>>> state = torch.load('simsiam-cifar10-252e1tvw-ep=999.ckpt', map_location=torch.device('cpu'))["state_dict"]
>>> len(state.keys())
147

Are you sure that you have solo installed in your environment? You can run pip list | grep solo and check if it appears. If it doesn't, just install it like this (from the root folder of the repo):
pip3 install .[dali,umap]

BTW, you are importing SimCLR and BYOL from pl_bolts.models.self_supervised, not from solo.methods.
However, I actually suggest that you use our linear eval class, it is very easy to use. As said we have precompiled scripts for this (e.g. for simsiam). You just need to change a few args to adapt to cifar.


VS Code reloading to change icons

[x] I'm sure this issue is not a duplicate?

I'm assuming the current icon manifest approach of handling presets forces VS Code to be reloaded in order to update the icons.
Could this be avoided if instead the different presets were abstracted into their own extensions, and vscode-icons refactored so that it's only in charge of handling project detection and theme switching?
I'm asking this because I can very easily go to settings.json, change workbench.iconTheme and immediately see the icons updated, without having to restart VS Code.
So, this extension would only have to set:
"workbench.iconTheme": "vscode-icons", or "workbench.iconTheme": "vscode-icons-angular", etc. accordingly.

Thanks for bringing that to our attention. We are investigating the possibility.

Things to consider:

Using several manifest would certainly smooth the transtion between presets but it would also mean it would multiplicate the number of manifest we should have to ship in order to supply all possible preset combinations.

I've checked out the possibility to programmatically change the extension name temporarily in the configuration between manifest changes but it seems that manifests are cached by VSCode so any attempt to use this kind of possibility is not an option.

Some ideas that have crossed through my mind these days.
I guess you have seen this kind of menu:

What if we could do something like this just for the user to check which presets he would like to have and then parse the manifest accordingly?
Benefits:

We could get rid of many of the commands we have now making the user experience easier.
We could even use the multi-manifest approach by calculating all the possible preset combinations prior to publication.

Cons:

This kind of menu can be minified but I'm not sure if it could be disabled in case the user doesn't like its presence there.

Uh, that sounds pretty interesting, but it still takes a bit space, even though it would be collapsed most of the time. Maybe I can give it a try(because I want to code something too ;D) when we want to do that like this?

It was just an idea to explore. I wasn't implying that we're effectively going to do it or when. Anyway, if you want to test the possibility and make some kind of PoC I have nothing to oppose :wink:

(changed because it is likely that we'll implement this)

@jens1o I'm not sure that we will end up implementing it exactly this way. After all, what is causing UX concerns is PAD.

yes, and besides that we would have to also consider how would this affect to custom icons.

That's my main concern. Changing the current functionality to a static icon manifest has the unwanted side effect that it loses the customization ability.
I still have to check if vscode loads the icon manifest before or after activating the extension.

What would that change? A reload would still be needed, wouldn't it?

If it loads the manifest after activate we could manipulate the vscode-icons-angular to include any user custom icons then vscode will load that manifest. But I suspect that vscode load the manifest file before activate is called.

But, the main point is that it wouldn't even solve the fact that you would have to reload vscode in order to make this manipulation so it wouldn't be solving the original cause of this issue.

@robertohuertasm I'm talking about smoothing the PAD reload not the preset toggling reload.

OK. I see it now. What if user uses angular icons and wants an official icon. It's not possible the way I'm thinking it.

In that case, a rebuild of the angular manifest and restart is mandatory. But if the extension knows beforehand from the setting it could build the manifest before vscode loads it.
So, bottom line, the user will have to restart if (s)he toggles a preset but the transition from angular icons to non angular icons will be done without restarting.

That's right. With presets and custom icons a reload would always be needed. That's why I think that if there's not a holistic solution to the reload issue any kind of refactor it's maybe not worth it.

From my POV I can't think of a holistic solution.

From some testing I've done, unfortunately, vscode loads the manifest file before it invokes activate. So any manipulation before calling activate is not possible.

Just an update. Insiders icon was switched to green color instead of orange, probably to keep color consistency with separate vscode distros. Don't know if vscode team will switch to blue for the stable distro or keep the orange one.

It would definitely be valuable on slow PCs. I'm having a hard time with my HDD and the reload is driving me crazy 😞.

@MonsieurMan It's time to invest in an SSD. Development on HDD is a PITA.

See #1938


wish search bar regexp include more advanced features

Today I want to change all the snake_case variables in the code to camelCase
The online search method says you can use _([a-z])，then replace \U$1，
But the result are in unexpect
then i download the notepad++，it's replace is so excellent
it solved my needs

i really like vscode，so i wish increase search regexp features,
English is not good, please forgive me
thanks

https://github.com/microsoft/vscode/issues/12185

thanks


Not an issue, but a question...

Dear sir,
I don't know if it's the right place, to ask (if not you can delete this post).
I'm a Newbee with Elfinder, and I want to add to map (in Elfinder 2.1.7) a shared directory of my google drive. I've read your instructions, but I can't follow.
In the composer I've added:
 "require": {         "php": ">=5.2"        "barryvdh/elfinder-flysystem-driver"        "nao-pon/flysystem-google-drive"
Where do I have to put the flysystem-google-drive directory (in the elfinder root?)
And then I don't know how to continue... Sorry.
Can you please provide me some help?
Thanks for your patience.
F.

@sauerlu I recommend to composer.json for test
{
    "require": {
        "league/flysystem": "1.1.*@dev",
        "barryvdh/elfinder-flysystem-driver": "~0.1@dev",
        "nao-pon/flysystem-google-drive": "~1.1@dev",
        "google/apiclient": "@rc"
    }
}

Hi, thanks a lot for your fast answer.
I've copied the content of "flysystem-google-drive-master" into my "elfinder" directory and I've used your require code above.
My elfinder folder looks like this now:
elfinderfolder
What exactly must i do now please?

I've copied the content of "flysystem-google-drive-master" into my "elfinder" directory

It does not need. You should be set up to use the composer at the server shell.

Thanks but how and where can  i make the needed settings please.
Sorry for anoying you sir...

 I'll try to find an other possibility :)
Thank you sir!

My connector.php looks like this:
`<?php
defined( '_JEXEC' ) or die;
error_reporting(0); // Set E_ALL for debuging
include_once JPATH_ROOT.'/plugins/editors/yeeditor/assets/js/ckeditor/elfinder/php/'.'elFinderConnector.class.php';
include_once JPATH_ROOT.'/plugins/editors/yeeditor/assets/js/ckeditor/elfinder/php/'.'elFinder.class.php';
include_once JPATH_ROOT.'/plugins/editors/yeeditor/assets/js/ckeditor/elfinder/php/'.'elFinderVolumeDriver.class.php';
include_once JPATH_ROOT.'/plugins/editors/yeeditor/assets/js/ckeditor/elfinder/php/'.'elFinderVolumeLocalFileSystem.class.php';
// Required for MySQL storage connector
// include_once dirname(FILE).DIRECTORY_SEPARATOR.'elFinderVolumeMySQL.class.php';
// Required for FTP connector support
// include_once dirname(FILE).DIRECTORY_SEPARATOR.'elFinderVolumeFTP.class.php';
/**

Simple function to demonstrate how to control file access using "accessControl" callback.
This method will disable accessing files/folders starting from  '.' (dot)

@param  string  $attr  attribute name (read|write|locked|hidden)
@param  string  $path  file path relative to volume root directory started with directory separator
@return bool|null
**/
function access($attr, $path, $data, $volume) {
return strpos(basename($path), '.') === 0       // if file/folder begins with '.' (dot)
? !($attr == 'read' || $attr == 'write')    // set read+write to false, other (locked+hidden) set to true
:  null;                                    // else elFinder decide it itself
}

//Get select image folder by option
$elfinderfolderaccess = array_filter(json_decode(get_yeeditor_option('yeeditor_elfinderfolderaccess','[]'),true));
$user = JFactory::getUser();
$imagefolder = "images/";
foreach($user->groups as $group){
if(isset($elfinderfolderaccess[$group])){
$imagefolder = $elfinderfolderaccess[$group]."/";
}
}
$opts = array(
// 'debug' => true,
'roots' => array(
array(
'driver'        => 'LocalFileSystem',   // driver for accessing file system (REQUIRED)
'path'          => JPATH_ROOT.'/'.$imagefolder,         // '../files/',         // path to files (REQUIRED)
'URL'           => JURI::root().$imagefolder,        //dirname($_SERVER['PHP_SELF']) . '/../files/',  // URL to files (REQUIRED)
'accessControl' => 'access',             // disable and hide dot starting files (OPTIONAL)
'mimeDetect'    => 'mime_content_type',
'uploadDeny'    => array('text/x-php'),
'disabled' => array('mkfile', 'edit')
)
)
);
// run elFinder
$connector = new elFinderConnector(new elFinder($opts));
$connector->run();
`
and the composer.json (in the elfinder/php folder) like this:
{     "name": "nao-pon/flysystem-google-drive",     "description": "Flysystem adapter for Google Drive",     "license": "MIT",     "authors": [         {             "name": "Naoki Sawada",             "email"<EMAIL_ADDRESS>       }     ],        "require": {         "league/flysystem": "1.1.*@dev",         "barryvdh/elfinder-flysystem-driver": "~0.1@dev",         "nao-pon/flysystem-google-drive": "~1.1@dev",         "google/apiclient": "@rc"     },     "require-dev": {         "phpunit/phpunit": "~4.0",         "mockery/mockery": "0.9.*"     },     "autoload": {         "psr-4": {             "Hypweb\\Flysystem\\GoogleDrive\\": "src/"         }     },     "config": {         "bin-dir": "bin"     },     "extra": {         "branch-alias": {             "dev-api_v2": "1.0-dev",             "dev-master": "1.1-dev"         }     } }

ON YOUR SERVER SHELL
cd [Your connector.php directory]
curl -sS https://getcomposer.org/installer | php
php composer.phar require league/flysystem:1.1.*@dev league/flysystem-cached-adapter:dev-master@dev barryvdh/elfinder-flysystem-driver:0.1.*@dev nao-pon/flysystem-google-drive:1.1.*@dev google/apiclient:@rc

AND edit your connector.php
defined( '_JEXEC' ) or die;
error_reporting(0); // Set E_ALL for debuging

include_once './vendor/autoload.php';

/**
 * Simple function to demonstrate how to control file access using "accessControl" callback.
 * This method will disable accessing files/folders starting from  '.' (dot)
 *
 * @param  string  $attr  attribute name (read|write|locked|hidden)
 * @param  string  $path  file path relative to volume root directory started with directory separator
 * @return bool|null
 **/
function access($attr, $path, $data, $volume) {
    return strpos(basename($path), '.') === 0       // if file/folder begins with '.' (dot)
        ? !($attr == 'read' || $attr == 'write')    // set read+write to false, other (locked+hidden) set to true
        :  null;                                    // else elFinder decide it itself
}

//Get select image folder by option
$elfinderfolderaccess = array_filter(json_decode(get_yeeditor_option('yeeditor_elfinderfolderaccess','[]'),true));
$user = JFactory::getUser();
$imagefolder = "images/";
foreach($user->groups as $group){
    if(isset($elfinderfolderaccess[$group])){
        $imagefolder = $elfinderfolderaccess[$group]."/";
    }
}

$opts = array(
    // 'debug' => true,
    'roots' => array(
        array(
            'driver'        => 'LocalFileSystem',   // driver for accessing file system (REQUIRED)
            'path'          => JPATH_ROOT.'/'.$imagefolder,         // '../files/',         // path to files (REQUIRED)
            'URL'           => JURI::root().$imagefolder,        //dirname($_SERVER['PHP_SELF']) . '/../files/',  // URL to files (REQUIRED)
            'accessControl' => 'access',             // disable and hide dot starting files (OPTIONAL)
            'mimeDetect'    => 'mime_content_type',
            'uploadDeny'    => array('text/x-php'),
            'disabled' => array('mkfile', 'edit')
        )
    )
);

$client->setClientId('[YOUR CLIENTID]');
$client->setClientSecret('[YOUR CLIENTSECRET]');
$client->refreshToken('[YOUR REFRESH TOKEN]');

$service = new \Google_Service_Drive($client);

$googleDrive = new \Hypweb\Flysystem\GoogleDrive\GoogleDriveAdapter($service, 'root', [ 'useHasDir' => true ]);

$filesystem = new \League\Flysystem\Filesystem($googleDrive);

$opts['roots'][] = [
    'driver' => 'Flysystem',
    'alias'  => 'GoogleDrive flysystem',
    'filesystem' => $filesystem
];

// run elFinder
$connector = new elFinderConnector(new elFinder($opts));
$connector->run();

Thanks sir, for you amazing support, I really appreciate that!

I've installed the composer in the connector.php directory
I started the comper over my server shell (xampp win10)
When I copied the code php composer.phar require league/flysystem:1.1.*@dev league/flysystem-cached-adapter:dev-master@dev barryvdh/elfinder-flysystem-driver:0.1.*@dev nao-pon/flysystem-google-drive:1.1.*@dev google/apiclient:@rc

I got this message:
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Installation failed, reverting ./composer.json to its original content.
[Composer\Downloader\TransportException]
The "http://packagist.org/p/league/flysystem%24bc7d13f42505d592c5e9bb2dc145ef92806bec4881f800d68a45a1ab7f3548a7.json" file could not be downloaded: failed to open stream: HTTP request failed!
As your wrote above, I've updated my connector.php
I've found the ClientId and ClientSecret, but how can i find/get the refreshToken Please?
Thanks a lot for your great support.

file could not be downloaded: failed to open stream: HTTP request failed!

Are enabled curl and openssl of PHP? OR Plz check your firewall.

how can i find/get the refreshToken

Please ask to teacher Google.

Again Thanks a lot...
For the refresh token It's ok thank you.
Curl and openssl are enabled. Firewall is disable.
Now I get the following message in my server shell:
`Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package nao-pon/flysystem-google-drive No version set (parsed as 1.0.0) could not be found.
Potential causes:

A typo in the package name
The package is not available in a stable-enough version according to your minimum-stability setting
see https://getcomposer.org/doc/04-schema.md#minimum-stability for more details.
Sorry...
Thank you.

Either install git, or set up to stable version with php composer.phar require league/flysystem league/flysystem-cached-adapter barryvdh/elfinder-flysystem-driver nao-pon/flysystem-google-drive google/apiclient.


Remove hard-coded project IDs (using gcloud for that info instead) + update CONTRIBUTING

Update CONTRIBUTING to include required steps, like setting GCP credentials and installing Docker.
Also add gcloud step as it's very helpful if one is developing against GCP and gives us a central project ID store.
Update places where hard-coded projects were used to fetch it from gcloud.

This change is

/assign jessicaochen

/lgtm
Thanks for updating the guide.

Pull request updated with all changes.

This is related to the issue on documenting how to contribute to the cluster API:
https://github.com/kubernetes/kube-deploy/issues/545

Is there a way to retroactively squash all these commits into 1? @rsdcastro


Fix SplitContainer dragging

No description, no issue referenced, user deleted and repo deleted, so closing.
If there's a bug and an actual fix here, someone else can make a new PR.


Weird list style

Margin top is too high

post: /pt-br/2017/05/regex-part-3

Closed in favor of #140


[newton] RI-88 Remove cinder/heat/horizon ironic scenario

Cinder/heat/horizon are not needed as part of the ironic scenario
as they are not required for testing. This ensures unnecessary
items are not installed.
(cherry picked from commit 47a26958df09e4802af0ad33b3b318d8a9abb3c0)
Issue: RI-88

recheck_cit_artifact


StopIteration Exception breaks entity updates until HASS restart

I got the following exception at midnight, which breaks the update timer and does not do any future updates until HASS is restarted:
Error doing job: Exception in callback async_track_point_in_utc_time.<locals>.run_action(<Job HassJobT...7f84cb97dbd0>>) at /usr/src/homeassistant/homeassistant/helpers/event.py:1310
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 1325, in run_action
    hass.async_run_hass_job(job, utc_point_in_time)
  File "/usr/src/homeassistant/homeassistant/core.py", line 590, in async_run_hass_job
    hassjob.target(*args)
  File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 1553, in pattern_time_change_listener
    hass.async_run_hass_job(job, dt_util.as_local(now) if local else now)
  File "/usr/src/homeassistant/homeassistant/core.py", line 590, in async_run_hass_job
    hassjob.target(*args)
  File "/config/custom_components/epex_spot/__init__.py", line 189, in _on_hour_change
    source.update_time()
  File "/config/custom_components/epex_spot/__init__.py", line 94, in update_time
    self._marketdata_now = next(
StopIteration

It does not happen every night, but it did happen at least three times in the last two weeks.

Hm, that is interesting. Does this happen always at the same time? (because update_time is called every hour to update the current values). Which data source (Awattar or EPEX Spot) and which market area are you using?
What the code is trying to do is to get the values for the current hour. There is data available for other time slots - otherwise it would return earlier in line 89. But it doesn't find data for the current hour. So, we have to find out why the data is missing.

I am using both data sources. As far as I can tell, it always happened at midnight (00:00).
I took a quick peek at the code, but I couldn't find the cause of this issue right away. If I find some time, I will try to dig a little deeper.
Would it be a good idea to catch this exception in case there isn't any data? Because this exception would probably also be raised if the integration was unable to fetch new data (e.g. no internet), wouldn't it?

Actually, I do think that the issue is caused by the integration not being able to fetch new data, because a data set always ends at 00:00.

I uploaded a debug version in branch debug_stopiteration. Could you please try this out and post the log output one the error occured again?
The only change is the following, so you can also edit the one file manually:
diff --git a/custom_components/epex_spot/__init__.py b/custom_components/epex_spot/__init__.py
index 179f19a..0b04873 100644
--- a/custom_components/epex_spot/__init__.py
+++ b/custom_components/epex_spot/__init__.py
@@ -91,9 +91,12 @@ class SourceDecorator:
         now = dt.now()

         # find current entry in marketdata list
-        self._marketdata_now = next(
-            filter(lambda e: e.start_time <= now and e.end_time > now, self.marketdata)
-        )
+        try:
+            self._marketdata_now = next(
+                filter(lambda e: e.start_time <= now and e.end_time > now, self.marketdata)
+            )
+        except StopIteration as e:
+            _LOGGER.error(f"now={now}, marketdata={self.marketdata}")

         # get list of entries for today
         start_of_day = now.replace(hour=0, minute=0, second=0, microsecond=0)

I have installed the debug version, thanks!
I will report as soon as this issue appears again.

The issue did appear again tonight. This time - due to the catched exception - the timer is still running.
 Strangely enough, the awattar data source still does not contain any up-to-date market data, even ~18 hours later.
I also have this error in the log, but it is probably unrelated as it happend after the first catched exception and only affects the epexspot data source (which is still working fine). It probably was caused by an internet outage today.
First occurred: 11:00:09 (1 occurrences)
Last logged: 11:00:09

fetch failed : HTTPSConnectionPool(host='www.epexspot.com', port=443): Max retries exceeded with url: /en/market-data?market_area=DE-LU&trading_date=2023-03-15&delivery_date=2023-03-16&modality=Auction&sub_modality=DayAhead&product=60&data_mode=table&ajax_form=1 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fee1a5a3af0>, 'Connection to www.epexspot.com timed out. (connect timeout=None)'))

I agree, obviously fetching of the data fails. The interesting question is now whether the fetch stops to return valid data, or if the fetch functions is not called anymore.
Therefore I added some more debug output to the branch. You should see 2 lines for every source (awattar, epexspot) right after the hour.
BTW: As no one else has reported this issue so far, I assume this has s.th. to do with your network infrastructure or system setup. Do you s.th. special?

Is it possible that I have the same issue? At point midnight there is no refresh of the numbers anymore.

After the initial fetch after reboot, the awattar fetch is completely missing from the log. Instead epexspot fetch appears twice every hour after that.
The issue might be related to having both data sources configured at the same time.

BTW: As no one else has reported this issue so far, I assume this has s.th. to do with your network infrastructure or system setup. Do you s.th. special?

Nothing that I would know of.


Web users can't hear ios users, but ios users can hear web users.

Describe the bug
I have implemented agora sdk into web, using capacitorjs framework. It works fine on all devices browsers, like ios safari, android chrome, desktops etc. It also works fine on android WebView. There appeard problem on ios. In docs is written that there must be a native implementation for ios. I used sample from official agora documentation (https://github.com/AgoraIO/Basic-Audio-Call/tree/master/Group-Voice-Call/OpenVoiceCall-iOS) and it looks that ios users hear everyone else, but nobody hear ios users. What did i wrong? Is there any additional magic setting? I tested on ios 13.
Here is piece of code from my private app, where ios behavior is the same
import Foundation
import Capacitor
import AgoraRtcKit

@objc(AgoraIos)
public class AgoraIos: CAPPlugin {

    var agoraKit: AgoraRtcEngineKit!

    @objc func initialize(_ call: CAPPluginCall) {
      let appId = call.getString("appId");
      agoraKit = AgoraRtcEngineKit.sharedEngine(withAppId: appId, delegate: nil);
      call.resolve();
    }

    @objc func join(_ call: CAPPluginCall) {
        let channelName = call.getString("channelName");
        let userId = call.getString("userId");
        agoraKit.joinChannel(byToken: nil, channelId: channelName, info:nil, uid: userId) {[unowned self] (sid, uid, elapsed) -> Void in
            self.agoraKit.setEnableSpeakerphone(true);
            call.resolve();
        }
    }

    @objc func leave(_ call: CAPPluginCall) {
        agoraKit.leaveChannel(nil);
        call.resolve();
    }

    @objc func talk(_ call: CAPPluginCall) {
        agoraKit.muteLocalAudioStream(true);
        call.resolve();
    }

    @objc func mute(_ call: CAPPluginCall) {
        agoraKit.muteLocalAudioStream(false);
        call.resolve();
    }
}

To Reproduce
Steps to reproduce the behavior:

Just download code from this repo and run to connect with others.

Expected behavior
It should work like web implementation.
Smartphone (please complete the following information):

Device: iphone 6s
OS: ios
Version 3.1.2

@dzziwny  sorry for late reply. could you pls share the channel name you used for testing?

It's just 'test'. Today I am going to create a sample app and share on
issue page.
On Thu, Oct 15, 2020, 6:21 AM Qianze Zhang<EMAIL_ADDRESS>wrote:

@dzziwny https://github.com/dzziwny sorry for late reply. could you pls
share the channel name you used for testing?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/AgoraIO/Basic-Audio-Call/issues/25#issuecomment-708887476,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADRFY67WFHETEOKWJFQPHX3SKZ2FBANCNFSM4SFB7W5Q
.

I created separated repo for agora plugin wrapper for capacitorjs. There is a sample app with bug - https://github.com/dzziwny/capacitor-agora-sdk/tree/master/sample

@dzziwny try calling setChannelProfile to make the channel profile livebroadcasting. then call setClientRole to make yourself a broadcaster and see if it's now working for you.
btw "test" is a too common name, i'm trying to look for your channel in our backend, it would be helpful if you can provide test in a channel which has more unique name.

i added your suggestions, now i have such error - 2020-10-29 19:45:30.216484+0000 App[1331:353091] [Client] Updating selectors after delegate removal failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 87 named com.apple.commcenter.coretelephony.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service on pid 87 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.}. Channel name was Thursday29102020. Here is the sample app https://github.com/dzziwny/capacitor-agora-sdk/tree/master/sample

@dzziwny hi, i did a test using your app and it's working fine. are you sure you have successfully joined the channel at all?

btw i tested using web -> click JOIN CHANNEL -> make myself muted, using iOS -> click JOIN CHANNEL -> click TALK, and web can hear iOS

i did a search using "Thursday29102020" and failed to find a channel. I believe you failed to join the channel somehow. please check your join channel callback, and whether you have turned on token but failed to provide a valid one.

btw i tested using web -> click JOIN CHANNEL -> make myself muted, using iOS -> click JOIN CHANNEL -> click TALK, and web can hear iOS

Did you check on ios native app or safari on ios?

@dzziwny i checked on ios native app using your instructions on readme.

by running this
npx cap add ios
npx cap open ios + run from XCode

Hi @plutoless,
I didn't test example project yet, but as an iOS developer, after reading example code, I think you forgot ask permission to use microphone. Please try below code to require microphone's permission:
AVAudioSession.sharedInstance().requestRecordPermission { (success) in
    print(success)
}

@tuannguyenanh177 thanks, i am going to make up asking for mic permission. it seams that @plutoless is right, i was creating token in a wrong way.
thank you guys, i think we can close the ticket.


UMD Bundle (please)

This is a feature request: it would be convenient for online example use if ngrx/store would ship a bundle of some kind. Although the project is composed of a modest number of files anyway, it is still easier to explain if it can be loaded from a single bundle directly from (for example) SystemJS or even a script tag.
Following along with where the Angular project itself has landed, I believe it makes the most sense to ship a UMD bundle.
The should require only a modest change to the package/build process, but I thought it wise to discuss in a feature request to see if it is desired by the ngrx team, before tinkering with an actual PR.

We have revamped the build process in ngrx/db to emit ES2015 modules and include a UMD bundle. Plan is to make this consistent across all ngrx projects.

Excellent, I will keep an eye on that project also.


YARN-9124. Resolve contradiction in ResourceUtils: addMandatoryResour…

…ces / checkMandatoryResources work differently

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
40
Docker mode activated.

_ Prechecks _

+1
dupname
0
No case conflicting files found.

+1
@author
0
The patch does not contain any @author tags.

-1
test4tests
0
The patch doesn't appear to include any new or modified tests.  Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+1
mvninstall
1152
trunk passed

+1
compile
35
trunk passed

+1
checkstyle
19
trunk passed

+1
mvnsite
38
trunk passed

+1
shadedclient
713
branch has no errors when building and testing our client artifacts.

+1
javadoc
28
trunk passed

0
spotbugs
106
Used deprecated FindBugs config; considering switching to SpotBugs.

+1
findbugs
104
trunk passed

_ Patch Compile Tests _

+1
mvninstall
32
the patch passed

+1
compile
31
the patch passed

+1
javac
31
the patch passed

-0
checkstyle
14
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api: The patch generated 1 new + 13 unchanged - 3 fixed = 14 total (was 16)

+1
mvnsite
34
the patch passed

+1
whitespace
0
The patch has no whitespace issues.

+1
shadedclient
731
patch has no errors when building and testing our client artifacts.

+1
javadoc
23
the patch passed

+1
findbugs
105
the patch passed

_ Other Tests _

+1
unit
45
hadoop-yarn-api in the patch passed.

+1
asflicense
26
The patch does not generate ASF License warnings.

3236

Subsystem
Report/Notes

Docker
Client=18.09.8 Server=18.09.8 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1121/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/1121

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle

uname
Linux b37a81a3d124 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
personality/hadoop.sh

git revision
trunk / 4e66cb9

Default Java
1.8.0_212

checkstyle
https://builds.apache.org/job/hadoop-multibranch/job/PR-1121/1/artifact/out/diff-checkstyle-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-api.txt

Test Results
https://builds.apache.org/job/hadoop-multibranch/job/PR-1121/1/testReport/

Max. process+thread count
448 (vs. ulimit of 5500)

modules
C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api U: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api

Console output
https://builds.apache.org/job/hadoop-multibranch/job/PR-1121/1/console

versions
git=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1

Powered by
Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
60
Docker mode activated.

_ Prechecks _

+1
dupname
0
No case conflicting files found.

+1
@author
0
The patch does not contain any @author tags.

-1
test4tests
0
The patch doesn't appear to include any new or modified tests.  Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+1
mvninstall
1073
trunk passed

+1
compile
34
trunk passed

+1
checkstyle
16
trunk passed

+1
mvnsite
35
trunk passed

+1
shadedclient
730
branch has no errors when building and testing our client artifacts.

+1
javadoc
24
trunk passed

0
spotbugs
106
Used deprecated FindBugs config; considering switching to SpotBugs.

+1
findbugs
104
trunk passed

_ Patch Compile Tests _

+1
mvninstall
34
the patch passed

+1
compile
32
the patch passed

+1
javac
32
the patch passed

-0
checkstyle
14
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api: The patch generated 1 new + 13 unchanged - 3 fixed = 14 total (was 16)

+1
mvnsite
34
the patch passed

+1
whitespace
0
The patch has no whitespace issues.

+1
shadedclient
736
patch has no errors when building and testing our client artifacts.

+1
javadoc
36
the patch passed

+1
findbugs
110
the patch passed

_ Other Tests _

+1
unit
50
hadoop-yarn-api in the patch passed.

+1
asflicense
46
The patch does not generate ASF License warnings.

3263

Subsystem
Report/Notes

Docker
Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1121/2/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/1121

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle

uname
Linux 7a22e20ec899 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
personality/hadoop.sh

git revision
trunk / aebac6d

Default Java
1.8.0_212

checkstyle
https://builds.apache.org/job/hadoop-multibranch/job/PR-1121/2/artifact/out/diff-checkstyle-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-api.txt

Test Results
https://builds.apache.org/job/hadoop-multibranch/job/PR-1121/2/testReport/

Max. process+thread count
413 (vs. ulimit of 5500)

modules
C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api U: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api

Console output
https://builds.apache.org/job/hadoop-multibranch/job/PR-1121/2/console

versions
git=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1

Powered by
Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
43
Docker mode activated.

_ Prechecks _

+1
dupname
0
No case conflicting files found.

+1
@author
0
The patch does not contain any @author tags.

-1
test4tests
0
The patch doesn't appear to include any new or modified tests.  Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+1
mvninstall
1058
trunk passed

+1
compile
34
trunk passed

+1
checkstyle
15
trunk passed

+1
mvnsite
35
trunk passed

+1
shadedclient
666
branch has no errors when building and testing our client artifacts.

+1
javadoc
23
trunk passed

0
spotbugs
96
Used deprecated FindBugs config; considering switching to SpotBugs.

+1
findbugs
95
trunk passed

_ Patch Compile Tests _

+1
mvninstall
35
the patch passed

+1
compile
30
the patch passed

+1
javac
30
the patch passed

-0
checkstyle
12
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api: The patch generated 1 new + 13 unchanged - 3 fixed = 14 total (was 16)

+1
mvnsite
33
the patch passed

+1
whitespace
0
The patch has no whitespace issues.

+1
shadedclient
719
patch has no errors when building and testing our client artifacts.

+1
javadoc
21
the patch passed

+1
findbugs
99
the patch passed

_ Other Tests _

+1
unit
46
hadoop-yarn-api in the patch passed.

+1
asflicense
26
The patch does not generate ASF License warnings.

3068

Subsystem
Report/Notes

Docker
Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1121/3/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/1121

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle

uname
Linux 358c314b9a70 4.4.0-157-generic #185-Ubuntu SMP Tue Jul 23 09:17:01 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
personality/hadoop.sh

git revision
trunk / d086d05

Default Java
1.8.0_212

checkstyle
https://builds.apache.org/job/hadoop-multibranch/job/PR-1121/3/artifact/out/diff-checkstyle-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-api.txt

Test Results
https://builds.apache.org/job/hadoop-multibranch/job/PR-1121/3/testReport/

Max. process+thread count
412 (vs. ulimit of 5500)

modules
C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api U: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api

Console output
https://builds.apache.org/job/hadoop-multibranch/job/PR-1121/3/console

versions
git=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1

Powered by
Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

Hi @adamantal
+1 on this change, merging.


Normalize comment on pkg/utils/helm/utils.go:ListReleaseMap function.

Ⅰ. Describe what this PR does
I normalized the comment on pkg/utils/helm/utils.go:ListReleaseMap function.
Ⅱ. Does this pull request fix one issue?
None.
Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.
These is no test cases because this task just modifies a comment, and does not do anything on original codes.
Ⅳ. Describe how to verify it
Verify the comments with stardard Go's Comment Standard.
Ⅴ. Special notes for reviews
None.

Codecov Report

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

@@           Coverage Diff           @@
##           master     #268   +/-   ##
=======================================
  Coverage   17.60%   17.60%
=======================================
  Files          51       51
  Lines        2209     2209
=======================================
  Hits          389      389
  Misses       1781     1781
  Partials       39       39

Continue to review full report at Codecov.

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


add bournemouth and poole college email

add bournemouth and poole college email
-- proof of mail
http://mail.bpc.ac.uk/

@athpillx Thank you for your patience while waiting for a review and processing your request. Pull request merged.
Please start requesting the licenses in about an hour, to let the changes to propagate through our system.


standardize capitalization of JSDoc type annotations

We use {Boolean}/{Number}/{String} in some places and {boolean}/{number}/{string} in others. Let me know the preferred capitalization and I'll make the appropriate tweaks.

It's a bit late commenting maybe, but "number" and "Number" are two different types in Javascript. One is a primitive, the other is an object.

Ramda doesn't really have any particular dealings with the wrapper types.  Obviously you could pass them to Ramda functions, where they would be treated like any other object.
But this issue was really about our type signatures.  So, for instance, size :: [a] -> Number instead of size :: [a] -> number.


Support Comments Enabled/Disabled for comment.List API

// ListArgs arguments for the comment.List rpc call
type ListArgs struct {
	ChannelName   *string `json:"channel_name"`    // signing channel name of claim
	ChannelID     *string `json:"channel_id"`      // signing channel claim id of claim
	ClaimID       *string `json:"claim_id"`        // claim id of claim being commented on
	AuthorClaimID *string `json:"author_claim_id"` // filters comments to just this author
	ParentID      *string `json:"parent_id"`       // filters comments to those under this thread
	Page          int     `json:"page"`            // pagination: which page of results
	PageSize      int     `json:"page_size"`       // pagination: nr of comments to show in a page (max 200)
	TopLevel      bool    `json:"top_level"`       // filters to only top level comments
	Hidden        bool    `json:"hidden"`          // if true will show hidden comments as well
}

ChannelName and ChannelID can now be passed to the comment.List API. It will then check if that creator has their setting to disable comments on and will instead return a 400 error when the creator has comments disabled.
If these two parameters are not passed the functionality will not check the creator settings.

It currently returns status 200 instead of the 400 error mentioned above:
{
  "code": -32000,
  "message": "comments are disabled by the creator",
  "data": null
}

I can parse the message if we want to retain this.


llm models should default to llm models list

I keep typing llm models and expecting a list of models, but I have to use llm models list instead.
llm logs already defaults to llm logs list so there is precedent.

I'll do llm templates defaulting to llm templates list too.


[flash_ctrl] V2S Signoff

I think this is already signed off based on this comment: https://github.com/lowRISC/opentitan/issues/21012#issuecomment-1986128320

Discussed moving as P1 to M5 due to RTL risk analysis performed during last issue triage.

I think flash_ctrl is already signed off at V2S based on this comment: #21012 (comment)
Can this be closed as a duplicate @andreaskurth?

I've noted that, too. What is missing is the change to the hjson updating the verification stage.


fix replace "0x" bug

Checklist

[x] I checked the Contributing Guidelines before creating this request.
[ ] New extensions are written in Swift 5.0.
[ ] New extensions support iOS 10.0+ / tvOS 9.0+ / macOS 10.10+ / watchOS 2.0+, or use @available if not.
[ ] I have added tests for new extensions, and they passed.
[ ] All extensions have a clear comments explaining their functionality, all parameters and return type in English.
[ ] All extensions are declared as public.
[ ] I have added a changelog entry describing my changes.

If the hex string is "0XFFFFFF", hexString.replacingOccurrences(of: "0x", with: "") do nothing, 0X will not be removed, so i add lowercased .
I think it was a mistake due to carelessness. 😄

          2 Warnings

:warning:
Consider adding tests for new extensions or updating existing tests for a modified SwifterSwift extension

:warning:
The source files have been modified. Please consider adding a CHANGELOG entry if necessary.

          1 Message

:book:
Thank you for submitting a pull request to SwifterSwift. The team will review your submission as soon as possible.

  Generated by :no_entry_sign: Danger

Thank you for contributing to SwifterSwift! I've invited you to join the SwifterSwift GitHub organization - no pressure to accept! If you'd like more information on what that means, check out our contributing guidelines. Feel free to reach out if you have any questions! 😃


Make workflow instance.status() return output equal to production workflows

Previously, in local dev, the output field would return the list of successful steps outputs in the workflow. This is not expected behavior compared to production workflows (where the output is the actual return of the run function), probably just an implementation detail not set left-over from before beta.
This commit makes it so that output is equal to production behavior.
For observability’s sake, I kept the old step output list in a different field __LOCAL_DEV_STEP_OUTPUTS - I think this is a good enough compromise right now since we want local dev to be correct against prod first. We can remove __LOCAL_DEV_STEP_OUTPUTS later, once we figure out on how to add custom stuff to the devtools page.

Tests

[ ] TODO (before merge)
[x] Tests included
[ ] Tests not necessary because:

E2E Tests CI Job required? (Use "e2e" label or ask maintainer to run separately)

[] I don't know
[ ] Required
[x] Not required because: just local dev ig

Public documentation

[ ] TODO (before merge)
[ ] Cloudflare docs PR(s):
[x] Documentation not necessary because: this was expected behavior

I think we'll need E2E tests here because we test workflows in our dev E2E suite.


Add oneDNN GRU docs

Documentation on oneDNN fusion_gru.
Preview: https://github.com/grygielski/FluidDoc/blob/grygielski/onednn_gru_doc/doc/fluid/design/mkldnn/gru/gru.md

 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.You have signed the CLA already but the status is still pending? Let us recheck it.

LGTM

@luotao1 Could you please review this one?


Docker compose appears to be broken in latest runner image (20230625.1)

Description
In the last day or so we have been experiencing a failure in docker compose:
please specify build context (e.g. "." for the current directory)

it would appear that compose cannot see the filesystem correctly to build images
this has never happened before and im unable to repro locally
afaict it happens iff the selected runner is using the newer runner image (https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20230625.1)
(our) downstream issue:
https://github.com/envoyproxy/envoy/issues/28188
Platforms affected

[ ] Azure DevOps
[X] GitHub Actions - Standard Runners
[ ] GitHub Actions - Larger Runners

Runner images affected

[ ] Ubuntu 20.04
[X] Ubuntu 22.04
[ ] macOS 11
[ ] macOS 12
[ ] macOS 13
[ ] Windows Server 2019
[ ] Windows Server 2022

Image version and build link
20230625.1
Is it regression?
Version: 20230619.1.0
Expected behavior
stable, working docker compose that functions as documented/expected
Actual behavior
docker compose fails with
please specify build context (e.g. "." for the current directory)

Repro steps

run docker compose to build an image
swear a lot about flakey/unstable upstreams

It's mandatory despite doc states otherwise

that appears to be a change in the latest version
im trying currently to debug this - but every time i try im getting the old runner image so test is pointless
happy to close this if adding context fixes
but then i think the real issue is #7816 whethere acknowledged or  otherwise


soviet-matrix: 0.1.0

I am submitting

[x] a new package
[ ] an update for a package

Description: This package implements a classic Tetris game using Typst. It provides a fun and interactive way to enjoy the nostalgic game of Tetris directly within the Typst environment.

I have read and followed the submission guidelines and, in particular, I

[x] selected a name that isn't the most obvious or canonical name for what the package does
[x] added a typst.toml file with all required keys
[x] added a README.md with documentation for my package
[x] have chosen a license and added a LICENSE file or linked one in my README.md
[x] tested my package locally on my system and it worked
[x] excluded PDFs or README images, if any, but not the LICENSE

[x] ensured that my package is licensed such that users can use and distribute the contents of its template directory without restriction, after modifying them through normal use.

Thanks!


Drop node v6 support

With v6 out of LTS, should we refactor the code base to >= v8? This could mean trailing commas in functions, native Promises and async/await. I'd be highly in favour in doing this and releasing a new major version - do we have any other breaking changes we could also release or would it be just the node version upgrade?

I just wanted to follow up with some more details about the improved debugging: https://v8.dev/blog/fast-async
And I've been asked about the performance impact of this. In v12, native async/await has caught up:
/bluebird $ ./bench doxbee

results for 10000 parallel executions, 1 ms per I/O op

file                                       time(ms)  memory(MB)
callbacks-baseline.js                           167       25.14
callbacks-suguru03-neo-async-waterfall.js       215       40.11
callbacks-caolan-async-waterfall.js             225       46.23
promises-bluebird-generator.js                  229       32.55
promises-bluebird.js                            263       49.07
promises-native-async-await.js                  269       54.89
promises-lvivski-davy.js                        280       89.95
promises-ecmascript6-native.js                  295       64.70
promises-cujojs-when.js                         303       59.53
promises-then-promise.js                        347       72.50
promises-tildeio-rsvp.js                        412       86.03
generators-tj-co.js                             491       62.53
promises-calvinmetcalf-lie.js                   499      139.76
promises-dfilatov-vow.js                        589      133.29
promises-obvious-kew.js                         635      114.16
streamline-generators.js                        687       90.89
promises-medikoo-deferred.js                    737      127.87
observables-pozadi-kefir.js                     799      153.48
streamline-callbacks.js                         945      118.20
observables-Reactive-Extensions-RxJS.js        1235      228.34
promises-kriskowal-q.js                        2762      484.91
observables-caolan-highland.js                 3158      455.48
observables-baconjs-bacon.js.js                4611      815.02

Platform info:
Darwin 18.5.0 x64
Node.JS 12.0.0
V8 7.4.288.21-node.16
Intel(R) Core(TM) i7-7567U CPU @ 3.50GHz × 4

Noone? :D

@Siemienik you're clearly excited about this :)
@guyonroche would you be interested in releasing a major version bump to drop v6 support and introduce async/await?

You are right:)

Should we still produce a transpiled version for node.js? If we do, adding async/await won't be a breaking change, since babel will add its runtime and some polyfills, right?
But I feel as if the standard require/import should point at our real code and the user should specify something special if they need a transpiled version. What do you all think?

LGTM if it keeps backwards compatibility

it's done for now


Delay before woking

Hi, all
Is there possible to set a delay (i.E. 1000 ms) for this script begins to work ?
Or either, the possibility that it works only after n ( 5 or 10 i.e.) changes, but not for each change ?

Hi @GrCOTE7
The tool runs whenever you want it to run so you've full control :) Maybe you are running the tool using some plugin that makes it run an every change you make?

To fulfill the picture - PHP CS Fixer has no functionality of "watch" changes in live mode, count changes or sth like that. It's functionality of your IDE or sth.
Closing as this is not question related directly to this repo. Feel free to continue the discusion, even after closing!


Simple BEDMAS Calculator in Chat

This is an attempt to close #3967. I implemented a simple BEDMAS calculator used via a chat command.  I feel like it's a "nice to have" feature. It is used in chat like the following:
!calc <input expression with other sub-expressions involving +, -, /, *, ^, (, )>
where the operators are Addition (+), Subtraction (-), Division (/), Multiplication (*), Exponentiation(^)
The result is Calc: <input expression> = <input expression evaluation> if successful or Calc: Unable to calculate expression: <input expression> which may happen if the input expressions have unsupported symbols.
For example, !calc (1+(2^2)/3.5) yields Calc: (1+(2^2)/3.5) = 2.142... (all digits will be printed out in double precision).
Examples:

Please note I'm new to the API so I may have missed something, or I might have made some logical errors. Perhaps there are better ways of optimizing my code. I'm open to suggestions!

Implemented feedback. Let me know if there's anything else I need to fix.
Thanks @Jasper-ketelaar and @Kamielvf .

Oops, accidentally closed PR. Opening again....

I think it this is truely a wanted feature we could pull in a dependency to manage the calculator... I probably do not want to maintain a calculator implementation though.

I agree to adding a library. Looking at exp4j, it's nicely featured, tested, and decently documented. (I also had a hard time finding similar libraries.) The only downside is that it is no longer maintained. The license is compatible.
If you do end up using exp4j, you only need to support arithmetic. Don't add special syntax to allow variable solving, at least, not yet.

So now this uses exp4j's implementation.
Features:

Addition: '2 + 2'
Subtraction: '2 - 2'
Multiplication: '2 * 2'
Division: '2 / 2'
Exponential: '2 ^ 2'
Unary Minus,Plus (Sign Operators): '+2 - (-2)'
Modulo: '2 % 2'
the following functions are supported:
abs: absolute value
acos: arc cosine
asin: arc sine
atan: arc tangent
cbrt: cubic root
ceil: nearest upper integer
cos: cosine
cosh: hyperbolic cosine
exp: euler's number raised to the power (e^x)
floor: nearest lower integer
log: logarithmus naturalis (base e)
log2: logarithm to base 2
log10: logarithm to base 10
sin: sine
sinh: hyperbolic sine
sqrt: square root
tan: tangent
tanh: hyperbolic tangent
signum: signum of a value

Due to some rebasing issues, I will open up a new PR...


msg.projection does not work

operation: find.toArray
The function before the mongodb3 node containts:
msg.payload = {"age":50}
msg.projection = {"firstName":1}

return msg;

Anyhow, the result includes all fields and not only the firstName like I wish.

Try: msg.payload = [{"age": 50}, {"fields": {"firstName"; 1}}]; return msg;

Not sure if the question is for Mongo V3, but according to the V3 Docs, fields is deprecated.  I found this structure works for me:
msg.payload =  [
    { age: 50},
    {
        projection : {firstname: 1},
        limit: 5
    }
];
return msg;

In this case, Mongo should return only the firstname field up to a maximum of 5 results.


[ko] Translate the glossary term 'Dockershim, Helm Chart, HostAliases ... etc' into Korean

This is a Feature Request
What would you like to be added
Translate docs/reference/glossary/ {{ some_file }} into Korean
◾ Page: https://kubernetes.io/ko/docs/reference/glossary/?all=true

[x] Dockershim
◾ File: https://github.com/kubernetes/website/blob/dev-1.24-ko.2/content/en/docs/reference/glossary/dockershim.md
[x] Helm Chart
◾ File: https://github.com/kubernetes/website/blob/dev-1.24-ko.2/content/en/docs/reference/glossary/helm-chart.md
[x] HostAliases
◾ File: https://github.com/kubernetes/website/blob/dev-1.24-ko.2/content/en/docs/reference/glossary/host-aliases.md
[x] Kubeadm
◾ File: https://github.com/kubernetes/website/blob/dev-1.24-ko.2/content/en/docs/reference/glossary/kubeadm.md

Why is this needed
Not translated yet
Comments
/language ko
/assign

/triage accepted

Resolved by

#35358 (→ dev-1.24-ko.2)
#35767 (dev-1.24-ko.2 → main)

/close


Automate scale test

Proposed changes
Problem: Give a brief overview of the problem or feature being addressed.
Solution: Explain the approach you took to implement the solution, highlighting any significant design decisions or
considerations.
Testing: Describe any testing that you did.
Please focus on (optional): If you any specific areas where you would like reviewers to focus their attention or provide
specific feedback, add them here.
Closes #ISSUE
Checklist
Before creating a PR, run through this checklist and mark each as complete.

[ ] I have read the CONTRIBUTING doc
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have checked that all unit tests pass after adding my changes
[ ] I have updated necessary documentation
[ ] I have rebased my branch onto main
[ ] I will ensure my PR is targeting the main branch and pulling from my branch from my own fork

Release notes
If this PR introduces a change that affects users and needs to be mentioned in the release notes,
please add a brief note that summarizes the change.

Shall we close in favor of https://github.com/nginxinc/nginx-gateway-fabric/pull/1926?


Test/iam auth

Refactors vault test helper
Bumps version of consul cluster module on examples
Adds vault iam auth example

There still an intermittent test issue going on (from before this PR, which continues to happen through this PR). Josh suggested to use Eugene's new feature. I agree! I am thinking about tackling it in a different PR though. What do you think?

I am thinking about tackling it in a different PR though. What do you think?

Sounds like a good idea. I'll review the rest of this PR now.

These tests run with the open source Vault, not Vault Enterprise, correct?

Well, the vault enterprise cluster test runs with Vault Enterprise installed, so will the auto unseal test that I'm working right now (coming on another PR). All the others run with the open source vault.

Well, the vault enterprise cluster test runs with Vault Enterprise installed, so will the auto unseal test that I'm working on right now (coming on another PR). All the others run with the open source vault.

So, this is Vault open source then? My point is that we should default to using Vault open source since it's the free version and only use Vault Enterprise in the examples when the examples specifically calls for it.

So, this is Vault open source then? My point is that we should default to using Vault open source since it's the free version and only use Vault Enterprise in the examples when the examples specifically calls for it.

Yes, this is exactly how it works already

Notify
@infosecgithub
@bgt101


Support for Sonar 8.x

Affects: <sonar-collector-version-number>.

Hello
My company upgraded to SonarQube 8.3 and the qualityprofiles/changelog api moved from profileKey to qualityProfile + language
https://next.sonarqube.com/sonarqube/web_api/api/qualityprofiles/changelog
Tested on Sonar 8.2 (outside my company) and believe this change happened at least by 8.x but i don't have any other versions to test against

 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.You have signed the CLA already but the status is still pending? Let us recheck it.

@Courtneyp123 can you test this PR if it works fine with Sonar version 7 to ensure the changes are backward compatible?

This is backwards compatible! Approved.


Create testing.toot

I wasn’t clear from the instructions if you needed to PR into this repo to test the tool or if it would work from my fork?


Datetime filter?

I saw you can use the date filter this way: {{ date| date('Y-m-d') }}
Is the a date time filter that includes formatting for hours and minutes?

Yes it is, just google php date time formating.
For example:
{{ val.timestamp|date('m-d-Y h:i:sa') }}


Added the domain of University of Alberta (ualberta.ca).

Change(s):
[1] Created a item/file for the domain of University of Alberta.
Contributor(s):
[1] Linxuan Zhang

@VarmeLin I am sorry, the domain ualberta.ca is removed from our trusted domains list because it was abused in the past. If you are the student of this school, please enroll to GitHub Student Developer Pack at https://education.github.com/discount_requests/application. Then apply for JetBrains educational subscription with your GitHub account (GitHub tab at https://www.jetbrains.com/shop/eform/students).


Index Operation failed when Invoke-eBayAuthentication

when Invoke-eBayAuthentication, post log into ebay, an error throw:
Index operation failed; the array index evaluated to null.
At C:\Program Files\WindowsPowerShell\Modules\PowereBay\0.0.4\PowereBay.psm1:395 char:9

    $Response["$key"] = $QueryOutput[$key]

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidOperation: (:) [], RuntimeException
FullyQualifiedErrorId : NullArrayIndex

Thank you for reporting this issue! I was able to reproduce it and it looks like the System.Windows.Forms.WebBrowser is not completing the sign in properly so no data is being returned to PowerShell. I'm investigating further.


HDDS-10919. Change ozone.security.crypto.compliance.mode default value in ozone-default.xml

What changes were proposed in this pull request?
I changed the ozone.security.crypto.compliance.mode configuration default value to unrestricted. Its default value is already "unrestricted" in the OzoneConfigKeys class.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-10919
How was this patch tested?
No testing needed.

@dombizita thank you for the change looking good to me. The Ci failure seems unrelated.

Thank you for the review @fapifta and @Galsza!


Bundle-SymbolicName is not unique between asciidoctorj and asciidoctorj-api

When trying to install bundles into Apache Karaf 4.2.2, I get the following:
karaf@root()> bundle:install mvn:org.asciidoctor/asciidoctorj/1.6.2
Bundle ID: 46
karaf@root()> bundle:install mvn:org.asciidoctor/asciidoctorj-api/1.6.2
Bundle IDs:
Error executing command: Error installing bundles:
Unable to install bundle mvn:org.asciidoctor/asciidoctorj-api/1.6.2: org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: org.asciidoctor:1.6.2
The issue seems to be that in the MANIFEST.MF in both jars, the Bundle-SymbolicName only includes the package but not the bundle name, resulting in 'org.asciidoctor' being shared between both bundles.

Seems like the issue might be a bit trickier than a simple rename within the manifest. I just built the project locally after tweaking the symbolicName in the build.gradle files, and while that allows the bundles to be loaded into Karaf, there is still a class resolution issue.
I have the following code in my bundle:
logger.info("Asciidoctor: " + Asciidoctor.class.toString());
logger.info("Asciidoctor: " + NodeCache.class.toString());
logger.info("DocumentHeader: " + DocumentHeader.class.toString());
The first and second lines succeed, while the third fails with the following:
java.lang.NoClassDefFoundError: org/asciidoctor/ast/DocumentHeader
I'm not an OSGI expert, but I believe this is because both the asciidoctorj and asciidoctorj-api bundles have "org.asciidoctor.ast" in their export-package headers. Although NodeCache and DocumentHeader are both part of the org.asciidoctor.ast package, NodeCache is provided by the asciidoctorj jar, while DocumentHeader is provided by the asciidoctorj-api jar. When attempting to resolve classes from the org.asciidoctor.ast package, the OSGI container searches for the first bundle to provide it and searches that bundle alone. Thus, NodeCache is able to be resolved, but DocumentHeader is not.

We're currently working on separating the archives so that packages no longer overlap in #760
This will be an effort for AsciidoctorJ > 1.6.x though.

Ah, that's great to know. Thanks! I'll close the issue.


Agent cli die and cannot be restarted after sending uninstall on dev machine (Darwin)

Environment info

Version: 2.0
Deployment: DEV
Customer: NAME

Actual behavior
Some time after calling uninstall for a host, the agent cli dies and cannot be restarted.
A workaround: After the process dies, delete the agent_conf and noobaa_storage related to the deleted host and rerun agent_cli
Expected behavior

Agent cli should clean itself after local uninstall and should not fall

Steps to reproduce

Delete a host (using the UI) then wait for 2-3min.

Screenshots or Logs or other output that would be helpful
(If large, please upload as attachment)

No longer relevant with agents deployed by k8s


Using environment variable ESPFLASH_PORT does not provide value for --port arg

I'm not sure if this is a bug in clap, or this projects use of it.  Or perhaps it's a bug that only occurs on macOS.  But when I set the ESPFLASH_PORT environment variable, it doesn't provide that value for the --port command.
I found that if I change the env value for this arg to "ESPFLASHPORT", it starts working.  The underscore is causing a problem somehow.

My mistake, this was operator error.  I was trying to do something tricky with globs in zsh.  echo was telling me what I wanted to see, but that wasn't telling the whole truth.  I got this sorted out.

If anyone's curious, I got this to work as I want by adding the following to my .zprofile
TEMP_EXPFLASH_PORT=(/dev/cu.usbmodem*)
export ESPFLASH_PORT=$~TEMP_EXPFLASH_PORT


ORC-1569: Remove HadoopShimsPre2_3, HadoopShimsPre2_6, HadoopShimsPre2_7 classes

What changes were proposed in this pull request?
This PR aims to remove HadoopShimsPre2_3, HadoopShimsPre2_6, HadoopShimsPre2_7 classes and use HadoopShimsCurrent always.
Why are the changes needed?

HadoopShimsCurrent supports not only Apache Hadoop 3+ but also Apache Hadoop 2.7+.

Apache ORC 2.0 uses Hadoop 3.x shaded client doesn't need old shims for Hadoop 2.6 and olders.

#1509

In addition, Apache Spark community also has been using the shaded Hadoop client since Spark 3.2 (SPARK-33212) and dropped Hadoop 2 profile via SPARK-42452 completely at Spark 3.5.0.
How was this patch tested?
Pass the CIs.

Could you review this, @williamhyun ?

Thank you!


How to handle a new TAG in the ISO20022 bank statements - Dynamics 365 for Finance & Operations

In the blog post below I explain How-to handle a new Tag in the ISO20022 bank statements file.
https://sinedax.blogspot.com/2018/11/how-to-handle-new-tag-in-iso20022-bank.html

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

ID: e05abef3-f815-21a0-eedb-e67901e5bf99
Version Independent ID: c4556269-06f3-177a-7da7-1de63eea835b
Content: Set up the advanced bank reconciliation import process - Finance & Operations | Dynamics 365 | #MSDyn365FO
Content Source: articles/financials/cash-bank-management/set-up-advanced-bank-reconciliation-import-process.md
Service: dynamics-ax-applications
GitHub Login: @ShylaThompson
Microsoft Alias: saraschi

@macchinettid, thanks for posting this!


Add clarification footnote to exact search k-NN blog post

Description
This PR updates a recent blog post for boosting exact search k-NN performance.  A footnote is added to specify the recommended settings for users to achieve the best performance and be able to replicate the benchmarking results
Issues Resolved
N/A
Check List

[X] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the BSD-3-Clause License.

I'm actually going to push one more change quickly to just have the setting be -1 so people don't get confused if they don't have a coding background


Upgrade fog-aliyun to 0.3.10

The fog-aliyun 0.3.10 aims to fix the issue: https://github.com/fog/fog-aliyun/issues/61 and exlarge the limitation when getting oss objects. The related PRs as following:
https://github.com/fog/fog-aliyun/pull/65
https://github.com/fog/fog-aliyun/pull/64
https://github.com/fog/fog-aliyun/pull/63
https://github.com/fog/fog-aliyun/pull/62

[x] I have reviewed the contributing guide

[x] I have viewed, signed, and submitted the Contributor License Agreement

[x] I have made this pull request to the master branch

[ ] I have run all the unit tests using bundle exec rake

[ ] I have run CF Acceptance Tests

[x] I have deploy a whole CF deployment and spring-music app by packing gem fog-aliyun 0.3.10 to Capi-release.

Hey @xiaozhu36,
Looks like a super easy PR to merge, thanks! Quick clarification -- title says 0.3.10, commit says 0.3.9. Should we hold off from merging this until it's updated for 0.3.10?

HI @aashah Thanks for your review. I am sorry for the confused  commit message and I have corrected it. Please check it again. Thanks.

No worries, thanks for updating the PR.
Will merge this in then.


Remove soft link and -data directory for new storage class

Pull request checklist

Pull request type

Please check the type of change your PR introduces:

[ ] Bugfix
[x] Feature Enhancement
[ ] Test Automation
[ ] Code Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Community Operator listing
[ ] Other (please describe):

What is the current behavior?

Soft links created to primary FS. Directory "pvc-xxx-data" created for each pv

What is the new behavior?
-NO soft links created to primary FS. Remove creation of directory "pvc-xxx-data" created for each pv
How risky is this change?

[ ] Small, isolated change
[x] Medium, requires regression testing
[ ] Large, requires functional and regression testing

does this remove the dependecy for primaryFset going forward with new PVCs?

Yes, that is the intention. But at many places code won't go away for old PVCs. @deeghuge the change is done for both new and old storage class. I recall you wanted to check if we should do it for old storage class or not ?

does this remove the dependecy for primaryFset going forward with new PVCs?

Yes, that is the intention. But at many places code won't go away for old PVCs. @deeghuge the change is done for both new and old storage class. I recall you wanted to check if we should do it for old storage class or not ?

We should not do the changes for old storageClass.