Include es6 module format for dat/gui/GUI in build/

All modern browsers now include native es6 modules (except for chrome which will land shortly we hope).
Your repo already supports es6 imports, but uses module.exports = GUI rather than export default GUI.
Could you include an es6 module?

I've made a change that I think addresses this. Can you try out the develop version?

https://rawgit.com/dataarts/dat.gui/develop/build/dat.gui.js

Sorry for being late. I tried it and it didn't work. Looking at the code, it may presume I'm using a webpack workflow?
The test was to use a

In my experience, the best migration to modules, and still support legacy, is:

Convert the project to es6 modules
Use Rollup to create a bundle of several formats: iife, cjs, amd, umd, and so on.

This results in a simple modules based core, and conversion to any existing module type.

Thank you for reopening this. I'm making dat.gui the core of my simulation repo's sample models. It is also used with Three.js (which I also depend on) for their examples/ and is even included in their npm package.
Three has converted their code to modules as I mentioned above. Ditto for the Stats.js library they use. Sure would be cool if dat.gui also did so, then their entire eco-system would be converted!
I think you will find modules a huge "life changing" win in web/javascript programming in general.
A much-overlooked advantage: Your dependencies are in your code, not in

Just FYI: Chromium now supports modules under a flag. Its getting closer!
I'm writing a couple of articles on migrating a project to modules:
https://medium.com/@backspaces/es6-modules-part-1-migration-strategy-a48de0b7f112
It's all real, converting a repo that started out with a Legacy approach (IIFEs), converted to several module workflows (JSPM, System.js & Babel, ..) and then tossed them all for a dual build (Modules & bundles)
One surprise was, once the base was module based, it was easy to convert not only to IIFEs for the browser, but commonJS modules for node! So now any modules that can run in node, not having browser dependencies, are easily converted to cjs. Yay!
Jump in, you'll love it!

Whoa, just read the code and see you are already es6. Wonderful!
Only question left: is it possible to include the .css in the code. I'd guess "yes", because the IIFE works w/o needing the .css as a separately browser resource.
This is superb. Sorry if I was preaching to the choir.

TL;DR: I've got two versions of dat.gui as modules, one making 4 modifications to the source such that rollup can build a module, the other using a "wrapper". May be of use to you or your users.
Details: Sorry for being chatty! I definitely do not want to dominate the discussion! But I've now got dat.gui running as a module for my repo using one of two methods:
1 - convert to module: several dependencies are already in module form but don't expose it. dat.gui, for example was easily converted to a module via a bash script of 4 modifications of the dat.gui source, with rollup.
2 - wrapper: for dat.gui and other repos, I have a "wraplib" node script that takes in the legacy form (foo.min.js for example) and wraps it in a module having a function that executes it wrapped with its own window, module, 'this', and return value .. and finds the resulting foo code, exporting it as export default foo
I've tested both of these with several dependencies I have. I prefer method 1, generally, because when the project converts to modules, my project can easily use it. Method 2 has the advantage that it "just works" for all the libraries I've tried. dat.gui works fine using either with my small set of tests. I'll soon push this into all my demos, so should show any problems.
Details of the two stunts. Feel free to ask about details.
.............................................................
The dat.gui module bash script looks like
#!/usr/bin/env sh
cd dat.gui/src/dat
# convert raw html/css to export default of template string.
sed '
  1s/^/export default `/
  $s/$/`/
' < gui/saveDialogue.html > gui/saveDialogue.js
sed '
  1s/^/export default `/
  $s/$/`/
' < ../../build/dat.gui.css > gui/style.css.js

# Convert module.exports to js export default
cp utils/css.js utils/css0.js
sed '
  s/module.exports =/export default/
' < utils/css0.js > utils/css.js

# update GUI.js to new names
cp gui/GUI.js gui/GUI0.js
sed '
  /import saveDialogueContents/s/.html//
  /import styleSheet/s/scss/css.js/
' < gui/GUI0.js > gui/GUI.js

rollup -f es index.js > ../../../libs/dat.gui.module.js

.............................................................
The dat.gui wrapper created by the node wraplib.js looks like:
// Programmatically created by wraplib.js
const exports = {}
const module = {}
const window = {}
const self = {}
let returnVal

function wrap () {

returnVal =
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof
.. and a lot more ..

}
wrap.call(self)
const result = self.dat || window.dat || module.exports || returnVal
if (!result) throw Error("wrapper failed, file: libs/dat.gui.min.js name: dat")
export default result

thank you @backspaces ! The 1st script works perfectly. I'd just add that now you have to say const gui = new GUI.GUI() rather than just const gui = new GUI()  (when using import GUI from 'dat.gui.module)

Any news on this front? I'm using the "wrapper" approach for dat.gui now but more and more dependencies are now shipping a module version of their code. Trivial one-liner with rollup.
Please?  Makes a great Christmas gift. : )

@backspaces I'm not very familiar with Rollup, what changes would we need to be support Rollup?
I was hoping #144 might be enough, as dat.gui is now using export default instead of module.exports = , per your original comment. But it seems more changes are required for the SCSS and HTML. We have transforms in package.json to support this for Browserify — is there an equivalent way to do this for Rollup?

Alas, I only am dealing with code, so not sure what Browserify is doing for html/css.
It is trivial to have a module export a string, or several strings, such as css and html. And the plugins for Rollup include some html/css help.

https://github.com/rollup/rollup/wiki/Plugins

#144 and the module: is discussed here:

https://stackoverflow.com/questions/42708484/what-is-the-module-package-json-field-for

And the PR simply adds

"module": "index.js",

to the package.json.
Rich Harris, author of Rollup is quoted in the SO. Basically it will eventually be a standard, but for now is being used by Rollup and Webpack.

https://medium.com/webpack/webpack-and-rollup-the-same-but-different-a41ad427058c

I'm not sure just how useful this is, we should ask the author of #144


Inconsistent indentation of switch tag

Thank you SOOOO much for making the new switch tag (and set vars!) happen!!! I've been working with both and I'm getting some odd results from the formatter. The indentation of cases seems to be malfunctioning, and the space before the opening brackets and tag name gets removed.
This is my inital experience:

When switch is Inside the entries loop each case and the closing are always indented 6 spaces, while the opening tag is indented correctly. This behaviour seems to happen anytime the switch is inside another bracket pair.
If I move the switch case outside the loop it indents the cases as far past the opening bracket as the bracket itself, plus six extra spaces. I tried testing in an empty file and got similar behaviour, plus without the variable name the opening space gets removed:
Before formatting:

After formatting:

Resolved with:

CLI Version 1.0.12
Antlers Toolbox Version 2.0.12


want to update tweet on the base of status id

i have tweet in my database. if i want to update his no. of retweets and no. favorites how can i update that tweet?
is there any mechanism to update specific tweet?

This is not related to Tweetinvi is it? Or do you want to get a mechanism from Tweetinvi to track a Tweet?

it is related tweet invi
for example i have been fetched tweet on the base of some hashtag and stored the results in the database. after one day when i check the same tweet on twitter his no. of retweets are different from database tweet.
so how to update specific tweet base on his status id ?

// For single tweet
var tweetId = 42; // From database
var refreshedTweet = Tweet.GetTweet(tweetId);

// For multiple tweets
var tweetIds = new long[] {42, 43};
var refreshedTweets = Tweet.GetTweets(tweetIds);


keyserver default url fails with apt

github.com/opscode-cookbooks/apt expects a keyserver without leading hkp: and trailing port:
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.RDomMv27we --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://hkp://keys.gnupg.net:80:80 --recv some-key

so keys.gnupg.net is enough in
default["percona"]["apt"]["keyserver"] = "hkp://keys.gnupg.net:80"
default["percona"]["apt"]["keyserver"] = "keys.gnupg.net"

also had a problem with the apt key on ubuntu:
default["percona"]["apt"]["key"] = "0x1C4CBDCDCD2EFD2A"
it works without 0x
default["percona"]["apt"]["key"] = "1C4CBDCDCD2EFD2A"

Confirmed.
This change was made to the upstream cookbook with this commit and will cause this regression if you haven't pegged 'apt' to something less than 2.8 (e.g. "~> 2.7.0").

Closing due to inactivity.
If this is still an issue please reopen or open another issue. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help!
Thanks,
Sous-Chefs


RMSNorm precision different from HF implementation

We noticed there's a tiny implementation difference that makes transformer_engine.pytorch.module.rmsnorm and also TELayerNormColumnParallelLinear generate results from HF implementation.
And the tiny difference is when the hidden_states are converted back to bfloat16. Here's the gap:

the red line is native HF implementation, and converts hidden_states to bfloat16 before multiply weight, and TENorm's result is different form this implementation
the green line implementation matches the TENorm's implementation, and converts hidden_states to bfloat16 after multiply weights.

We wonder if TE could provide an other to match the HF's implementation, which converts hidden_states to bfloat16 before multiply the weights. Thanks.
How to reproduce
Version: transformer-engine        1.7.0+4e7caa1
Code to reproduce:
import unittest
import torch
import torch.nn as nn
from transformer_engine.pytorch.module.rmsnorm import RMSNorm as TELayerNorm
from copy_from_hf import HFRMSNorm

class TestLayerNormComparison(unittest.TestCase):
    def setUp(self):
        self.hidden_size = 4096
        self.batch_size = 1
        self.seq_length = 1024
        self.eps = 1e-5

        self.shared_weight = nn.Parameter(torch.randn(self.hidden_size, dtype=torch.bfloat16))

        self.te_layernorm = TELayerNorm(self.hidden_size, eps=self.eps, zero_centered_gamma=False).to(torch.bfloat16)
        self.hf_rmsnorm = HFRMSNorm(self.hidden_size, eps=self.eps).to(torch.bfloat16)

        self.te_layernorm.weight = self.shared_weight
        self.hf_rmsnorm.weight = self.shared_weight

        self.device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
        self.te_layernorm.to(self.device)
        self.hf_rmsnorm.to(self.device)

    def test_layernorm_comparison(self):
        input_tensor = torch.randn(self.batch_size, self.seq_length, self.hidden_size,
                                   dtype=torch.bfloat16, device=self.device)

        with torch.no_grad():
            te_output = self.te_layernorm(input_tensor)
            hf_output = self.hf_rmsnorm(input_tensor)

        assert torch.allclose(te_output, hf_output, atol=1e-2)

if __name__ == '__main__':
    unittest.main()

First define HFRMSNorm with native implementation:
import torch
from torch import nn

class HFRMSNorm(nn.Module):
    def __init__(self, hidden_size, eps=1e-6, config=None):
        super().__init__()
        self.weight = nn.Parameter(torch.ones(hidden_size))
        self.variance_epsilon = eps

    def forward(self, hidden_states):
        input_dtype = hidden_states.dtype
        hidden_states = hidden_states.to(torch.float32)
        variance = hidden_states.pow(2).mean(-1, keepdim=True)
        hidden_states = hidden_states * torch.rsqrt(variance + self.variance_epsilon)
        return self.weight * hidden_states.to(input_dtype)

The assertion should fail when we run the code with this implementation.
Now, let's change the last line from return self.weight * hidden_states.to(input_dtype) to  return (self.weight.to(torch.float32) * hidden_states).to(input_dtype), the assertion should pass.

That is correct, both RMSNorm and LayerNorm in TE perform all internal computation in FP32 (and so e.g. TE LayerNorm is equivalent to
x = x.to(torch.float32)
y = nn.LayerNorm(x)
y = y.to(torch.bfloat16)

The reason for that is to preserve precision of the computation, especially since RMSNorm/LayerNorm weights are typically close to 1.
This is especially important and visible with zero_centered_gamma option, which initializes the weight to 0 and adds 1 to it inside the normalization operation itself. Since the floating point numbers are the most precise around 0, and because bfloat16 does not have many mantissa bits, adding 1 to it in precision other than float32 results in losing most of that precision - see e.g. this example:
>>> import torch
>>> a = torch.Tensor([0.003]).to(torch.bfloat16)
>>> a
tensor([0.0030], dtype=torch.bfloat16)
>>> a + 1
tensor([1.], dtype=torch.bfloat16)

Based on this, I would argue that it is actually HF implementation that is wrong here.

@ptrendx Thanks for your reply. I totally agree that we should use float32 to do all the calculations, in theory.
However, we're not training from scratch. We're continuous training open source models like Llama3 and Qwen2 with Megatron-LM, and if we compare logits generated by Megatron-LM and HF transformers, the RMSNorm implementation difference will cause the logits to be very different. (80% of the hidden_states elements are different in numerics more than 0.01)
That's why I believe we should at least provide an option to align the RMSNorm with HF transformers?

Yeah, I figured that's a probable reason for this ask. Could you open an issue in HF transformers repo as well then? It would be interesting to hear their opinion on the topic and also raise their awareness to, hopefully, align the implementations to the right precisions with new models going forward.
I need to think how to expose that option. In the meantime - if you wanted to change TE implementation yourself to do the multiplication in the lower precision you would need to change
https://github.com/NVIDIA/TransformerEngine/blob/main/transformer_engine/common/rmsnorm/rmsnorm_fwd_kernels.cuh#L108-L109 and https://github.com/NVIDIA/TransformerEngine/blob/main/transformer_engine/common/rmsnorm/rmsnorm_fwd_kernels.cuh#L248-L249 to use Ktraits::weight_t rather than compute_t type.

Great, thank you @ptrendx ! I'll try to change the code myself.
Besides, here's the issue on HF: https://github.com/huggingface/transformers/issues/33133

We just stumbled upon this issue and compared the implementation of the RMSNorm between TransformerEngine and TensorRT-LLM. It looks like TensorRT-LLM does the weight multiplication in lower precision, consistent with the HF transformers implementation. This likely means that a model trained with TransformerEngine will produce (at least slightly) different outputs when inferenced with TensorRT-LLM.
I agree with @ptrendx that performing the operation in higher precision sounds sensible but I think it would be useful to have the option to align implementations across Nvidia's stack.


Back To Top scroll button

Is your feature request related to a problem? Please describe.
scroll to the top
Describe the solution you'd like
avoid scrolling
Describe alternatives you've considered
better user engagement
Additional context
Add any other context or screenshots about the feature request here.

Go Ahead @Damini2004

Can I work on this issue @avinashkranjan


problems with retroachievement.

In the last update whenever I try to put my credentials in the app it either doesn't recognize it or it just closes
Edit more complete:
when I enter the retroachievement tab and enter my data I confirm that the app simply closes or does not compute. even connected to the website. Sending
https://github.com/TapiocaFox/Daijishou/assets/135095385/cd4c97ed-644b-49fa-aed6-1088a2afb48a
note: the app is already in the latest version and has no connection problems

Could you elaborate more specifically. Are there any screenshots you can illustrate that. Thanks.

You mean Daijisho crashes (=closes)? Thats the issue for me with 1.4.59.

I also still have the issue with 1.4.59, no crash but a message that credentials are wrong.

Did that fixes in 1.4.60?

My bad, it was .60 I tried. Unfortunately, no it didn’t…

Can you show me the message you were saying?

Can you show me the message you were saying?

Here is what it looks like.

Sorry. But that is not related to Daijishō, it is the problem of retroarch itself.

Thanks for the new update, just tried it and unfortunately it still doesn’t register games played. Can I help with troubleshooting in some way?

@TapiocaFox
Thanks for the new update, just tried it and unfortunately it still doesn’t register games played. Can I help with troubleshooting in some way?

I have no idea if that stuff happened on retroarch. You have to figure it out whether your configuration in retroarch is correct instead of daijishō based on the message you've shown.

@TapiocaFox
I have disabled it in retroarch and I am just using the built in retro achievement function now. Just tried a new game which is not being registered as played or gives any sign of unlocking achievements , checked that it had achievements as well.

@TapiocaFox
I have disabled it in retroarch and I am just using the built in retro achievement function now. Just tried a new game which is not being registered as played or gives any sign of unlocking achievements , checked that it had achievements as well.

Sorry I have no idea what you were talking about at this point. Would you please start new issue that fully elaborate your issues thanks.


Expose copyBag function.

This change is

Jenkins job mixer/presubmit passed

Jenkins job manager/mixer-pr passed


feat: add ipfs-desktop support

Read https://github.com/ipfs-shipyard/ipfs-desktop/pull/738 for more info.
License: MIT
Signed-off-by: Henrique Dias<EMAIL_ADDRESS>

@olizilla this one is ready!


Manifest mashup opportunity with Socket Registry

👋 Socket.dev dev here. Also, the Lodash guy (please replace it with whatever promotes builtin stuff and simplicity). At Socket we've released the Socket Registry as a place to catalog our growing collection of overrides. We also have a @socketsecurity/registry package that exposes our manifest.json. I really like the idea of sharing and where possible consolidating. So figured you might be consume our manifest.json or give pointers to what kind of data you'd like tracked to make it more useful for others to consume.

Interesting work you are doing for sure
So if I understood correctly, you do very similar to this repo but we use codemods while you use overrides
The actual detection and manifests are very similar I think
There should be some way we can work together, otherwise it is a lot of duplicated work. I'll have a think but it may also be worth us having a catch up call around this one day

@43081j

Interesting work you are doing for sure
So if I understood correctly, you do very similar to this repo but we use codemods while you use overrides

Yes. Codemods are where I'd like to go eventually. While evaluating solutions a few months back the wiring to replace the code wasn't in place (in this or another project that consumes this). The overrides route was a more ready-to-go approach as package managers support it out of the box.

There should be some way we can work together, otherwise it is a lot of duplicated work. I'll have a think but it may also be worth us having a catch up call around this one day

Great! In the meantime I'm taking inspiration from some of your field names (like "moduleName") and schema stuff (may help folks consume it) to align more closely.


Minimal IAM usage error

Hi @azatsafin,
Thank you for this module but i have a problem.
When i try with mininal-iam config, i'm getting below error? What is the problem, do you have any idea @azatsafin?
╷ │ Warning: Argument is deprecated │  │   with module.cognito_auth_redirect.aws_s3_bucket_object.lambda_package, │   on .terraform/modules/cognito_auth_redirect/main.tf line 115, in resource "aws_s3_bucket_object" "lambda_package": │  115:   bucket        = var.s3_bucket │  │ Use the aws_s3_object resource instead │  │ (and 9 more similar warnings elsewhere) ╵ ╷ │ Error: Invalid index │  │   on cognito.tf line 17, in module "wg_cognito_user_pool": │   17:         "${module.api_gateway_cognito[0].apigatewayv2_api_api_endpoint}/cognito-auth-redirect" │     ├──────────────── │     │ module.api_gateway_cognito is empty tuple │  │ The given key does not identify an element in this collection value: the │ collection has no elements. ╵ ╷ │ Error: Invalid index │  │   on cognito.tf line 19, in module "wg_cognito_user_pool": │   19:       default_redirect_uri                 = "${module.api_gateway_cognito[0].apigatewayv2_api_api_endpoint}/cognito-auth-redirect" │     ├──────────────── │     │ module.api_gateway_cognito is empty tuple │  │ The given key does not identify an element in this collection value: the │ collection has no elements. ╵ Releasing state lock. This may take a few moments... ERRO[0043] 1 error occurred:
I'm using terraform via terragrunt by the way.

NO I don't know

Hello @oytunyuksel
I've checked minimal-iam example, the example itself had typo, i've fixed it in last release.
Could you please next time add your configuration details in your issue description.

No comments so far

Hi @azatsafin,
I upgraded version to 0.2.3 and now i'm getting different error. Error is below:
Error: Error building docker image: Error response from daemon: Cannot locate specified Dockerfile: Dockerfile
I'm using this config:
instance_type                = "t2.nano"   wg_group_name                = "VPN"   vpc_id                       = "MY_VPC_ID"   wg_admin_email               = "MY_EMAIL"


add updated hub client

Note to self make sure to add files to CMake once the json is merged

Code cov stands at 86%


EnqueueWriteBuffer functional: hitting assert buffer page size > 64K

     Verif | INFO     | Created a random vector of size 32768
                   Test | ERROR    | Test failed with exception!
terminate called after throwing an instance of 'std::runtime_error'
                   Test | ERROR    | TT_ASSERT @ tt_metal/impl/dispatch/command_queue.cpp:1450: int32_t(MAX_PREFETCH_COMMAND_SIZE) - int32_t(sizeof(CQPrefetchCmd) + sizeof(CQDispatchCmd)) >= padded_page_size
  what():  TT_ASSERT @ tt_metal/impl/dispatch/command_queue.cpp:1450: int32_t(MAX_PREFETCH_COMMAND_SIZE) - int32_t(sizeof(CQPrefetchCmd) + sizeof(CQDispatchCmd)) >= padded_page_size
backtrace:
 --- /home/ubuntu/actions-runner/_work/tt-metal/tt-metal/build/lib/libtt_metal.so(+0x2e5614) [0x7f145ed7b614]
 --- tt::tt_metal::HWCommandQueue::enqueue_write_buffer(std::variant<std::reference_wrapper<tt::tt_metal::Buffer>, std::shared_ptr<tt::tt_metal::Buffer const> >, std::variant<std::shared_ptr<std::vector<unsigned short, std::allocator<unsigned short> > > const, std::shared_ptr<std::vector<unsigned int, std::allocator<unsigned int> > > const, std::shared_ptr<std::vector<float, std::allocator<float> > > const, std::shared_ptr<std::vector<bfloat16, std::allocator<bfloat16> > > const, void const*>, bool)
 --- /home/ubuntu/actions-runner/_work/tt-metal/tt-metal/build/lib/libtt_metal.so(+0x2e685e) [0x7f145ed7c85e]

from https://github.com/tenstorrent-metal/tt-metal/actions/runs/8621138760/job/23629674281

These are failing because a single buffer page is larger than 64K and we don't currently support writing partial buffer pages

Moving this to P1 because this is hitting a known limitation that is being worked on

CommonFixture.Flatten also hitting this assert, please re-enable when it's fixed

duplicate of #7380


docs: add missing core classes

Description
Update the list.
Checklist:

[x] Securely signed commits
[] Component(s) with PHPDoc blocks, only if necessary or adds value
[] Unit testing, with >80% coverage
[x] User guide updated
[] Conforms to style guide

It seems Cookie and CSP should be loaded only when used.

True.


refactor: use stricter typescript

This PR leverages community tsconfig strict settings and updates codebase
to comply with it. All code changes are minor. Most fall into one of these
categories:

Record index access syntax.
Handling of undefined states (sometimes actually improved, sometimes
just needing a ! to help TS).

Pedantically, a patch release would be needed for affected packages. I would suggest ignoring these changes in our changelog nor making a release.

Not sure how to fix this yet, I didn't touch CI file. It seems the potential for this existed before. Will investigate.

Awesome! Thanks 🙏


Updating the title of a webview view doesn't always update when in the panel

Testing #107626
When a webview view is in the panel (as its own entry), the updates to the title don't always take effect. I haven't yet figured out when this happens, but it seems to happen often after a window reload when the webview in the panel is focused and the title is updated automatically.
I've also seen the panel "tab" selected state stick as well (where it looks like that webview view panel is still selected) even when another panel tab is selected -- though I've only been able to reproduce this once or twice. But these two issues seem somewhat related.

Since posting this, I've gotten this to happen with a normal view (that dynamically updates its title), so this seems like it isn't webview specific.
Here you can see that the GitLens File History isn't focused, but it still looks like it is -- and even when I switch to it, the tab title doesn't get updated with the filename as it should.

Again this only happens sometimes, and often right after a window reload

@eamodio  can you try this tomorrow, I pushed a related fix but I couldn't explain this behavior with it yet

@sbatten I can't reproduce this case anymore on today's insiders, but now the title of the tab won't get updated if the tab isn't visible. In this case, when the tab becomes inactive, I reset the tab title back to just File History and when active it is File History • filename, but now it just sticks at File History • filename even though it is getting reset.

Yep I reverted the fix for that and will check in the correct fix next iteration.

@sbatten Just want to confirm you check in the correct fix. I don't see a linked commit

just pushed https://github.com/microsoft/vscode/commit/c2337d8c5658ca5b0b0b0948131f0dc390604755


refactor: simplify desktop wrong network and wallet button container

What does this PR do and why?
Provide a description of what this PR does. Link to any relevant GitHub issues, Notion tasks or Discord discussions.
Screenshots or screen recordings
If applicable, provide screenshots or screen recordings to demonstrate the changes.
Acceptance checklist

[ ] I have evaluated the Approval Guidelines for this PR.
[ ] (if relevant) I have tested this PR in all supported browsers.
[ ] (if relevant) I have tested this PR in dark mode and light mode (if applicable).

Current dependencies on/for this PR:

main

PR #3346   👈

This comment was auto-generated by Graphite.


Production readiness - Tech review

Context: The goal of TW involvement is to deliver something that the organization could use. We are currently trying to work out what stories we need to play before we can advise it’s safe to use our app in production. So far we identified several aspects such as login, securing DB access, HTTPS.
Questions:
What are the aspects we should not compromise on before declaring our app production-ready? A. Backup should not be compromised, for July delivery we think export script can fulfil the backup requirements too.
What would be the right amount of monitoring in our case? Any recommendation on the tools could we use? A. Firebase alerting will need a billing account, need to talk to Charlotte about that.
We currently have only one environment. How many would we need in our case? Should we have a separate firebase project per environment? - A. Please refer to #24
Could be interesting: https://docs.honeycomb.io/learning-about-observability/about-instrumentation/client-side-code/
Database backups
Context: It seems that Firebase recommendation is to export the database content as JSON and store it in a bucket.
Questions:
Should we consider any other backup strategy alternatives?
How often should the data be backed up? Are there any standards we should recommend or does it depend on the client? A. Depends on how much HUDS will be used.
What slices should be backed up? What happens when someone changes an entry after it was already exported?

Production Readiness:

Document how releases are done
Document how to do a rollback
Discuss the definition of done (Will we need feature flags?)
Create billing alarms in Firebase - We might not need this since atm there's no credit card associated with our Firebase account
Setup DB backup
Logging/Monitoring

Monitoring tools:

https://sentry.io/pricing/
https://rollbar.com/pricing/
https://www.honeybadger.io/plans/
https://www.bugsnag.com/pricing
https://uptimerobot.com/pricing/
https://newrelic.com/products/browser-monitoring/pricing
https://www.uptrends.com/pricing

Resources:

https://jbd.dev/prod-readiness/
https://medium.com/google-cloud/production-guideline-9d5d10c8f1e
https://gruntwork.io/devops-checklist/
http://softwaremanagementblog.net/tag/production-readiness-checklist/
https://logrocket.com/for/front-end-application-monitoring/
https://dzone.com/articles/the-top-four-exception-tracking-services

Notes from the production readiness meeting:

create a disaster recovery plan - list what can go wrong and the mitigation:
-- someone deletes project from firebase -- document how to set up a new project in firebase
-- all the data in the DB is lost -- document how to manually export data from Firestore and import it in Microsoft Access
-- what happens if the user is offline and for some reason, it fails to sync data with Firestore when back online?
-- what happens if we reach firebase limits?
document problem with password strength of Firebase Authentication
document how to do releases
document how to rollback
create ADR:
-- why firebase
-- why firestore (vs ms access)
-- why PWA and not a mobile app

The export script will be used for backup, the frequency of exporting will depend on how often the HUDS is used on the webapp. We recommend daily. See #22 for more information


MirrorMaker2 resync all messages on topic when restarting

Hi,
We use strimzi MM2 for syncing our Kafka topics between strimzi Kafka cluster and non-strimzi Kafka cluster.
My config:
apiVersion: kafka.strimzi.io/v1alpha1
kind: KafkaMirrorMaker2
metadata:
  name: mirror-maker2-kafka1-to-kafka2
  namespace: test-kafka
spec:
  connectCluster: "target-kafka-cluster"
  version: 2.6.0
  replicas: 1
  clusters:
    - alias: "target-kafka-cluster"
      bootstrapServers: test-kafka1.example.com:9092,test-kafka2.example.com,test-kafka3.example.com
      config:
        group.id: "mirrormaker2-cluster-test-kafka"
        client.id: "mirrormaker2-cluster-test-kafka-consumer"
        config.storage.topic: "mirrormaker2-cluster-test-configs"
        status.storage.topic: "mirrormaker2-cluster-test-status"
        offset.storage.topic: "mirrormaker2-cluster-test-offsets"
    - alias: "test-kafka"
      authentication:
        certificateAndKey:
          certificate: user.crt
          key: user.key
          secretName: kafka-mm2-user
        type: tls
      bootstrapServers: test-kafka-kafka-bootstrap:9093
      config:
        config.storage.replication.factor: 3
        offset.storage.replication.factor: 3
        status.storage.replication.factor: 3
      tls:
        trustedCertificates:
          - secretName: test-kafka-cluster-ca-cert
            certificate: ca.crt
  mirrors:
    - sourceCluster: "test-kafka"
      targetCluster: "target-kafka-cluster"
      sourceConnector:
        config:
          replication.factor: 3
          offset-syncs.topic.replication.factor: 3
          replication.policy.separator: ""
          replication.policy.class: "io.strimzi.kafka.connect.mirror.IdentityReplicationPolicy"
      heartbeatConnector:
        config:
          heartbeats.topic.replication.factor: 3
      checkpointConnector:
        config:
          checkpoints.topic.replication.factor: 3
      topicsPattern: "topic1,topic2,topic3"
  metricsConfig:
    type: jmxPrometheusExporter
    valueFrom:
      configMapKeyRef:
        name: mirror-maker-2-metrics
        key: metrics-config.yml

but we faced with the following problem:
when I try to add the new topic to MM it restarts and becomes to sync all messages on all topics from the outset. It happens each time when I add a new topic. It is affected all topics.

Why do you think it i related to the IdentityReplicationPolicy? Also, what does it mean add new topic to MM?

Why do you think it i related to the IdentityReplicationPolicy? Also, what does it mean add new topic to MM?

I don't think that is related to the IdentityReplicationPolicy.
I've set topic1,topic2,topic3 to sync to another kafka and when I add topic4(5,6, etc) to this configuration - MM2 is restarted and sync all topics(topic1,topic2,topic3) again from the outset.

If it is not related to the identity replication policy, it should probably be opened here? https://github.com/strimzi/strimzi-kafka-operator
I don't know why would it resend the messages. I would also not expect MM2 to restart just by changing the topicsPattern, but TBH I never used it.


continue the training on the existing model

Thank you very much for your code. Could you please tell me how to continue the training on the existing model.It's a waste of time to start from scratch every time.waiting for your answer ,Thank you very much

Yes of course, all you need to do is point to the save model (.pth) with --resume: for examples python train.py --config config.json --resume saved/model.pth.

Sorry to bother you again. I want to call the model trained by your code in c++,when I use traced to exchange .pth to .pt,code in figure1,it always report the error that Missing key(s) in state_dict and Unexpected key(s) in state_dict in figure 2 and figure 3.I guess it is because of the config.json,but I don’t know how to call the config.json in traced,could you please teach me if you know about that,thank you very much.Looking forward to your reply.
发送自 Windows 10 版邮件应用
发件人: Yassine
发送时间: 2020年2月3日 22:42
收件人: yassouali/pytorch_segmentation
抄送: GYE19970220; Author
主题: Re: [yassouali/pytorch_segmentation] continue the training on theexisting model (#47)
Closed #47.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Hi, I am really sorry, but I've never used torch.traced.
Before saving the model as a .pt, did you convert the model to ScriptModule?
Anyway, If I have time I might take a look.
Good luck for making it work. You can also post your question in the PyTorch forum to see their solutions.


[stable/prometheus-operator] Allows option to configure kubernetes service spec externalTrafficPolicy

What this PR does / why we need it:
This PR gives you the option to configure kubernetes service spec externalTrafficPolicy, in prometheus-operator: alertmanager, prometheus, prometheus-operator and in the grafana chart
This is useful where you would like to always see the external traffic origin and keep traffic local.
Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[X] DCO signed
[X] Chart Version bumped
[X] Variables are documented in the README.md

@sanjmonkey Could you update values.yaml to specify the default value Cluster? This would make it easier to understand how the value affects the chart deployment and doesn't rely on the knowledge of K8s defaults.

/assign @anothertobi

/assign
/hold
can we split this PR to 2? one for each chart?


Nvidia Tesla T4 has been configured. If the image is abnormal after enabling model services

Please make sure that the Nvidia driver has been installed and configured properly.
Currently, the model can be only installed in Linux OS, and Nvidia-docker must be installed properly as well.


Add license to gemspec

I was trying to determine the licenses for my dependencies. I found that the RubyGems API will return the license, but only if it is specified in your gemspec file.

please notice  the first 3 lines of this file


Native library problem on package-build service

This package currently fails to build on the package build service: see the log below. Since x86_64-linux builds succeed on my local machine and Github CI, it seems like a problem specific to the package build service environment. From this and related notes, my first guess is that it may be using an older Glibc version.
The time is now Sunday, July 9th, 2023 5:24:01am
(/usr/bin/env DISPLAY=:1 PLT_PKG_BUILD_SERVICE=1 PLTUSERHOME=/home/root//user PLT_PKG_BUILD_SERVICE=1 CI=true PLTSTDERR=debug@pkg error PLT_INFO_ALLOW_VARS=;PLT_PKG_BUILD_SERVICE PLTCOMPILEDROOTS=/home/root//zo: /usr/bin/xvfb-run -n 1 /bin/sh -c cd "/home/root/"/racket && bin/racket -MCR "/home/root/"/zo: -l- raco pkg install --jobs 2 -u --auto libgit2)
Resolved "libgit2" via file:///home/root//catalogs/archive/catalog
pkg: catalog response: #hash((author<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>(checksum . "e65154d775f5089785d8abeb476518927071fada") (dependencies . (("base") ("libgit2-native-libs" #:version "0.1") ("rackunit-lib") ("rackunit-lib") ("rackunit-spec") ("scribble-lib") ("racket-doc"))) (description .  1) (source . "file:///home/root/catalogs/archive/pkgs/libgit2.zip") (tags . ("ffi" "git")))
00: Resolved "libgit2-native-libs" via file:///home/root//catalogs/built/catalog
Resolved "rackunit-spec" via file:///home/root//catalogs/built/catalog
pkg: catalog response: #hash((author<EMAIL_ADDRESS>(checksum . "c28ee823966406d649365a1bdb73a1ee8dfc317a") (dependencies . (("base") ("libgit2-x86_64-linux" #:version "0.2" #:platform #rx"^x86_64-linux(?:-natipkg)?$") ("libgit2-aarch64-macosx" #:version "0.2" #:platform "aarch64-macosx") ("libgit2-x86_64-macosx" #:version "0.2" #:platform "x86_64-macosx") ("libgit2-i386-win32" #:version "0.2" #:platform "win32\\i386") ("libgit2-x86_64-win32" #:version "0.2" #:platform "win32\\x86_64"))) (description . "native libraries for \"libgit2\" (meta-package)") (modules . ()) (name . "libgit2-native-libs") (ring . 1) (source . "file:///home/root/catalogs/built/pkgs/libgit2-native-libs.zip") (tags . ("binary" "git")))
pkg: catalog response: #hash((author<EMAIL_ADDRESS>(checksum . "19763735825a1cae23dd6cb9c2d7ad42f1823602") (dependencies . (("base") ("rackunit-lib") ("racket-doc") ("rackunit-doc") ("scribble-lib"))) (description . "BDD test helpers for rackunit") (modules . ((lib "rackunit/scribblings/rackunit-spec.scrbl") (lib "rackunit/spec.rkt"))) (name . "rackunit-spec") (ring . 1) (source . "file:///home/root/catalogs/built/pkgs/rackunit-spec.zip") (tags . ("testing")))
Resolved "libgit2-x86_64-linux" via file:///home/root//catalogs/built/catalog
pkg: catalog response: #hash((author<EMAIL_ADDRESS>(checksum . "1fce0e99fa352f57b3cbb0b816832370f5c70498") (dependencies . (("base"))) (description . "native libraries for \"libgit2\" on \"x86_64-linux\"") (modules . ()) (name . "libgit2-x86_64-linux") (ring . 1) (source . "file:///home/root/catalogs/built/pkgs/libgit2-x86_64-linux.zip") (tags . ("binary" "git")))
pkg: creating single-collection link to #<path:/home/root//user/.local/share/racket/8.9/pkgs/libgit2-x86_64-linux>
pkg: updating db with "libgit2-x86_64-linux" to '#s((sc-pkg-info pkg-info 3) (catalog "libgit2-x86_64-linux") "1fce0e99fa352f57b3cbb0b816832370f5c70498" #t "libgit2")
pkg: creating single-collection link to #<path:/home/root//user/.local/share/racket/8.9/pkgs/rackunit-spec>
pkg: updating db with "rackunit-spec" to '#s((sc-pkg-info pkg-info 3) (catalog "rackunit-spec") "19763735825a1cae23dd6cb9c2d7ad42f1823602" #t "rackunit")
pkg: creating single-collection link to #<path:/home/root//user/.local/share/racket/8.9/pkgs/libgit2>
pkg: updating db with "libgit2" to '#s((sc-pkg-info pkg-info 3) (catalog "libgit2") "e65154d775f5089785d8abeb476518927071fada" #f "libgit2")
pkg: creating link to #<path:/home/root//user/.local/share/racket/8.9/pkgs/libgit2-native-libs>
pkg: updating db with "libgit2-native-libs" to '#s(pkg-info (catalog "libgit2-native-libs") "c28ee823966406d649365a1bdb73a1ee8dfc317a" #t)
The following uninstalled packages were listed as dependencies
and they were automatically installed:
 dependencies of libgit2:
   libgit2-native-libs
   rackunit-spec
 dependencies of libgit2-native-libs:
   libgit2-x86_64-linux
raco setup: version: 8.9
raco setup: platform: x86_64-linux-natipkg [cs]
raco setup: target machine: any
raco setup: cross-installation: yes
raco setup: installation name: 8.9
raco setup: variants: cs
raco setup: main collects: /home/root/racket/collects/
raco setup: collects paths:
raco setup:   /home/root/user/.local/share/racket/8.9/collects
raco setup:   /home/root/racket/collects/
raco setup: main pkgs: /home/root/racket/share/pkgs
raco setup: pkgs paths:
raco setup:   /home/root/racket/share/pkgs
raco setup:   /home/root//user/.local/share/racket/8.9/pkgs
raco setup: links files:
raco setup:   /home/root/racket/share/links.rktd
raco setup:   /home/root//user/.local/share/racket/8.9/links.rktd
raco setup: compiled-file roots:
raco setup:   /home/root//zo
raco setup:   same
raco setup: main docs: /home/root/racket/doc
raco setup: --- updating info-domain tables ---                    [5:24:06]
raco setup: updating: /home/root/user/.local/share/racket/8.9/share/info-cache.rktd
raco setup: --- pre-installing collections ---                     [5:24:06]
raco setup: --- installing foreign libraries ---                   [5:24:06]
raco setup: installing: foreign library /home/root/user/.local/share/racket/8.9/lib/libgit2.so.1.4
raco setup: --- installing shared files ---                        [5:24:06]
raco setup: --- compiling collections ---                          [5:24:06]
raco setup: --- parallel build using 2 jobs ---                    [5:24:06]
raco setup: 1 making: <pkgs>/libgit2
raco setup: 0 making: <pkgs>/libgit2-x86_64-linux
raco setup: 0 making: <pkgs>/rackunit-spec
raco setup: 0 making: <pkgs>/rackunit-spec/scribblings
raco setup: 1 making: <pkgs>/libgit2/include
raco setup: 1 making: <pkgs>/libgit2/private
raco setup: 1 making: <pkgs>/libgit2/private/base
raco setup: 1 making: <pkgs>/libgit2/scribblings
raco setup: 1 making: <pkgs>/libgit2/test
raco setup: --- creating launchers ---                             [5:24:37]
raco setup: --- installing man pages ---                           [5:24:37]
raco setup: --- building documentation ---                         [5:24:37]
raco setup: syncing: <pkgs>/rackunit-spec/doc/rackunit-spec
raco setup: 1 running: <pkgs>/libgit2/scribblings/libgit2.scrbl
raco setup: 0 running: <pkgs>/racket-index/scribblings/main/user/local-redirect.scrbl
examples: exception raised in example
  error: "git_oid_fromstr: implementation not found\n  arguments...:\n   \"555c0bd2b220e74e77a2d4ead659ffad79175dfa\""
  context...:
   /home/root/racket/collects/racket/private/more-scheme.rkt:163:2: select-handler/no-breaks
   /home/root/racket/share/pkgs/scribble-lib/scribble/eval.rkt:356:9
   .../private/map.rkt:40:19: loop
   .../private/manual-vars.rkt:219:40
   /home/root/racket/share/pkgs/scribble-lib/scribble/private/manual-vars.rkt:167:0: *deftogether
   body of "/home/root/user/.local/share/racket/8.9/pkgs/libgit2/scribblings/oid.scrbl"

  context...:
   /home/root/racket/collects/setup/parallel-do.rkt:333:4: work-done method in list-queue%
   /home/root/racket/collects/setup/parallel-do.rkt:283:17
   /home/root/racket/collects/setup/parallel-do.rkt:237:4
   /home/root/racket/share/pkgs/racket-index/setup/scribble.rkt:139:0: setup-scribblings
   /home/root/racket/collects/setup/setup.rkt:78:3
   /home/root/racket/collects/pkg/main.rkt:17:0: setup
   body of (submod "/home/root/racket/collects/pkg/main.rkt" main)
   /home/root/racket/collects/raco/raco.rkt:41:0
   body of "/home/root/racket/collects/raco/raco.rkt"
   body of "/home/root/racket/collects/raco/main.rkt"
raco setup: 1 running: <pkgs>/racket-index/scribblings/main/user/release.scrbl
raco setup: 1 running: <pkgs>/racket-index/scribblings/main/user/search.scrbl
raco setup: 1 running: <pkgs>/racket-index/scribblings/main/user/start.scrbl
raco setup: 1 rendering: <pkgs>/racket-index/scribblings/main/user/local-redirect.scrbl
raco setup: 0 rendering: <pkgs>/racket-index/scribblings/main/user/release.scrbl
raco setup: 0 rendering: <pkgs>/racket-index/scribblings/main/user/search.scrbl
raco setup: 1 rendering: <pkgs>/racket-index/scribblings/main/user/start.scrbl
raco setup: --- installing collections ---                         [5:24:54]
raco setup: --- post-installing collections ---                    [5:24:54]
raco setup: --- summary of errors ---                              [5:24:54]
raco setup: error: during building docs for <pkgs>/libgit2/scribblings/libgit2.scrbl
raco setup:   examples: exception raised in example
raco setup:     error: "git_oid_fromstr: implementation not found\n  arguments...:\n   \"555c0bd2b220e74e77a2d4ead659ffad79175dfa\""
raco setup:     context...:
raco setup:      /home/root/racket/collects/racket/private/more-scheme.rkt:163:2: select-handler/no-breaks
raco setup:      /home/root/racket/share/pkgs/scribble-lib/scribble/eval.rkt:356:9
raco setup:      .../private/map.rkt:40:19: loop
raco setup:      .../private/manual-vars.rkt:219:40
raco setup:      /home/root/racket/share/pkgs/scribble-lib/scribble/private/manual-vars.rkt:167:0: *deftogether
raco setup:      body of "/home/root/user/.local/share/racket/8.9/pkgs/libgit2/scribblings/oid.scrbl"
raco setup:
racket pkg install: packages installed, although setup reported errors
The time is now Sunday, July 9th, 2023 5:24:54am

The package build service uses the Docker images mflatt/pkg-build-deps-min and mflatt/pkg-build-deps. These are based on Ubuntu 16.04 (Xenial), which has Glibc 2.23: definitely too old for our current .so, which is built against Glibc 2.31. (Thanks to @samdphillips for helping track this down!)
I can pursue more possibilities for building against an older Glibc, but it at least the problem is not related to moving the package source.


Can't resize columns

Hello,
System information:

Linux Debian 10.11
DBeaver version : <IP_ADDRESS>202051448
Additional extensions : None

Connection specification:

MariaDB 10.4.18
MariaDB
Do you use tunnels or proxies (SSH, SOCKS, etc)? : No

Describe the problem you're observing:
I can't resize the columns while modifying users, I enclose a screenshot
Steps to reproduce, if exist:
Try to modify à user
Include any warning/errors/backtraces from the logs
No logs or Backtrace, the program is working, but not showing some useful informations.

Regards
JP P

Hello @jppo,
These columns can't be resized. Perhaps we should make them resizeable.

Hello,
As I maintain some users lists on many machines I need to see all database and tables to give "good" (and sufficient rights to users (batch or tp).
I had to revert to the precedent release to have my work done.
So resizable columns are a must for me.
Regards
JP P
De: "ShadelessFox" @.>
À: "dbeaver/dbeaver" @.>
Cc: "jppo" @.>, "Mention" @.>
Envoyé: Mercredi 16 Février 2022 19:15:11
Objet: Re: [dbeaver/dbeaver] Can't resize columns (Issue #15516)
Hello [ https://github.com/jppo | @jppo ] ,
These columns can't be resized. Perhaps we should make them resizeable.
—
Reply to this email directly, [ https://github.com/dbeaver/dbeaver/issues/15516#issuecomment-1041967644 | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/ABSPJKZAQVX2NPJOX6VEMILU3PSS7ANCNFSM5OSAGFWA | unsubscribe ] .
Triage notifications on the go with GitHub Mobile for [ https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 | iOS ] or [ https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub | Android ] .
You are receiving this because you were mentioned. Message ID: @.***>

Has this been addressed? I cannot make any changes to database without seeing these columns - they are way to small.  How can I work when I dont know which data I am changing?

Hello,
The issue is always present in version 22.1.0.
The columns are way too small and I can't resize them.
Regards
JP P
PS : The screen is always like in the image attached to the first message :
Too small and not resizable.

for me the bottom scrollbar also do not appear. time to find a new client

Having the same issue, this is really very annoying when you're trying to adjust some user's permissions.

Same issue, as I'm administering db users couple times a day, this is really frustrating. Using 22.1.1


Remove unnecessary reinitialization

candidateContainers should always be defined, and dotSeparatedSegments should always be non-empty.

Closing in favor of #23323. Looks like the initialization is necessary (but we don't test for it...)


General Grievance: Watch reddashmedia.com

General Grievance requests the watch of the watch_keyword reddashmedia\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

reddashmedia\.com has been seen in 0 true positives, 0 false positives, and 0 NAAs.

Approved by Ryan M in Charcoal HQ


feat: updates

node 20+
updated to node-hl7-client to 2.0.0
updated unit testing to vitest
updated ci
updated many things to match node-hl7-client format
updated error handling

BREAKING CHANGE: - node 20

updated to node-hl7-client to 2.0.0

:tada: This PR is included in version 2.0.0-beta.1 :tada:
The release is available on:

npm package (@develop dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Added Mongolian (mn) locale

Added Mongolian translations (admin, forms, support, tables).

Thanks

Shouldn't we also add the locale to e.g. Filepond?

Shouldn't we also add the locale to e.g. Filepond?

Yes. I will create an another PR in later.


leptos 0.5.0-rc3 SSR hydration bug

Describe the bug
Using standard elements causes the bug, I based the project on the tailwindcss example folder.
Leptos Dependencies
leptos = { features = [], version = '0.5.0-rc3' }
leptos_meta = { features = [], version = '0.5.0-rc3' }
leptos_axum = { optional = true, version = '0.5.0-rc3' }
leptos_router = { features = [], version = '0.5.0-rc3' }

To Reproduce
Steps to reproduce the behavior:

clone https://github.com/beckend/leptos-hydration-bug-1
cargo leptos watch
visit http://localhost:3000
edit ./src/client/routes/home.rs On lines 14-24 there are elements ready to be used, uncomment any element you want, and see the SSR bug in browser console.
See error

Expected behavior
No hydration bugs using simple elements
Screenshots

Removed .cargo folder with sccache compilation flags so anyone normal setup with rust should be able to reproduce it.

I can't reproduce this using the steps provided: uncommenting any of the set of elements does not cause hydration issues when I try it. Are you sure that both the WASM/hydrate and the native/SSR halves of your app are recompiling correctly, and that the latest/uncached version of each is being used?
The fact that your WASM hydration code is expecting a DIV and finding a BUTTON instead suggests that it's the older version of the code before the button was uncommented.

Ok I will debug it further, thank you for looking at it.

@gbj just following up, I had code which only should be used for production:
 headers.insert(
      header::CACHE_CONTROL,
      "public, max-age=604800, stale-while-revalidate=86400"
        .parse()
        .unwrap(),
    );
    headers.insert(header::ETAG, etag.as_ref().parse().unwrap());

This causes my chrome to use the old stuff, I presume you disabled your cache and got the new ones


Create tests

This adds a basic start point to implement tests.
We should definitely add test! 😃

Thank you so much @mvdnbrk! I will review this and merge it tomorrow. Sorry been really busy!


Getting HTTP 403 when adding a cluster

Source: https://docs.microsoft.com/en-us/azure/data-explorer/ingest-sample-data
When I am adding my test cluster URI I get this following:

403 - "Forbidden: Caller is not authorized to perform this action Principal<EMAIL_ADDRESS>is not authorized to perform operation 'VersionShowCommand' on 'https://dataexplorer1ire.eastus.kusto.windows.net:443/'. Please provide the following information when contacting the Kusto team: ClientRequestId='KustoWebV2;e52ea394-5a2b-4136-bf93-218325d14f15', ActivityId='00ecf1bc-bc73-4a54-9b23-17ae963238cc', Timestamp='2020-04-04T08:50:32.9666989Z'."

But if I use "Data Ingestion URI" it is added successfully.
Also, if I use the help cluster "https://help.kusto.windows.net" I don't get an error (
https://docs.microsoft.com/en-us/azure/data-explorer/web-query-data#add-clusters).

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

ID: fc651bb6-a359-89f1-04ca-fd1a253a3ab0
Version Independent ID: 5b64504a-6f2d-9d26-5cc2-b9def09ebe48
Content: Ingest sample data into Azure Data Explorer
Content Source: articles/data-explorer/ingest-sample-data.md
Service: data-explorer
GitHub Login: @orspod
Microsoft Alias: orspodek

Thanks for the feedback! We are currently investigating and will update you shortly.

@asanaliev In the upper right when you are viewing https://dataexplorer.azure.com/, are you logged in and if so, what identity are you logged in under? Do you have an active subscription? I did a quick test and I am unable to resolve this instance: dataexplorer1ire.eastus.kusto.windows.net. Can you verify that the instance is correct?

@asanaliev As suggested by Mike, you should be logged in to Data explorer with an account that has permissions on the cluster.

Do let us know if you face any further issues.

@asanaliev We will proceed to close this issue now.
If there are further questions regarding this matter, please comment and we will gladly continue the discussion.


chore(ts-migration): current refinements contents

This pull request adjusts the current refinements contents to the new conventions

@francoischalifour Feedback addressed.


Fix NoMethodError for zero() => zero?()

Obvious fix.
Error was:
$ bundle exec chef-solo --version
Chef Infra Client: 17.9.18
~/.rvm/rubies/ruby-3.1.0/bin/ruby_executable_hooks: warning: Exception in finalizer #<Proc:0x0000000109989720 ~/src/pub/soloist/sprout-wrap/vendor/bundle/ruby/3.1.0/gems/corefoundation-0.3.4/lib/corefoundation/base.rb:40>
~/src/pub/soloist/sprout-wrap/vendor/bundle/ruby/3.1.0/gems/corefoundation-0.3.4/lib/corefoundation/base.rb:40:in `block in finalize': undefined method `zero' for<PHONE_NUMBER>:Integer (NoMethodError)

      proc { CF.release(pointer) unless pointer.address.zero }
                                                       ^^^^^
Did you mean?  zero?
~/.rvm/rubies/ruby-3.1.0/bin/ruby_executable_hooks: warning: Exception in finalizer #<Proc:0x0000000109989928 ~/src/pub/soloist/sprout-wrap/vendor/bundle/ruby/3.1.0/gems/corefoundation-0.3.4/lib/corefoundation/base.rb:40>
~/src/pub/soloist/sprout-wrap/vendor/bundle/ruby/3.1.0/gems/corefoundation-0.3.4/lib/corefoundation/base.rb:40:in `block in finalize': undefined method `zero' for<PHONE_NUMBER>:Integer (NoMethodError)

      proc { CF.release(pointer) unless pointer.address.zero }
                                                       ^^^^^
Did you mean?  zero?
~/.rvm/rubies/ruby-3.1.0/bin/ruby_executable_hooks: warning: Exception in finalizer #<Proc:0x00000001099aa830 ~/src/pub/soloist/sprout-wrap/vendor/bundle/ruby/3.1.0/gems/corefoundation-0.3.4/lib/corefoundation/base.rb:40>
~/src/pub/soloist/sprout-wrap/vendor/bundle/ruby/3.1.0/gems/corefoundation-0.3.4/lib/corefoundation/base.rb:40:in `block in finalize': undefined method `zero' for<PHONE_NUMBER>:Integer (NoMethodError)

      proc { CF.release(pointer) unless pointer.address.zero }
                                                       ^^^^^
Did you mean?  zero?

Signed-off-by: James Cuzella<EMAIL_ADDRESS>
Description

Should fix an issue while testing on Ruby 3.1.0:
$ bundle exec chef-solo --version
    Chef Infra Client: 17.9.18
    ~/.rvm/rubies/ruby-3.1.0/bin/ruby_executable_hooks: warning: Exception in finalizer #<Proc:0x0000000109989720 ~/src/pub/soloist/
    ~/src/pub/soloist/sprout-wrap/vendor/bundle/ruby/3.1.0/gems/corefoundation-0.3.4/lib/corefoundation/base.rb:40:in `block in fina

          proc { CF.release(pointer) unless pointer.address.zero }
                                                           ^^^^^
    Did you mean?  zero?

Related Issue

Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

[x] I have read the CONTRIBUTING document.
[x] I have run the pre-merge tests locally and they pass.
[x] I have updated the documentation accordingly.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.
[x] All commits have been signed-off for the Developer Certificate of Origin.

Oops... just realized this is already a duplicate of #31
I guess I was too slow to create the PR yesterday... 😄


Automatically select the most stable detected version

An adapted implementation of my proposal in https://github.com/BetterDiscord/Installer/pull/128#issuecomment-847857633
Having it automatically select the most stable version helps counteract the fact that some people don't realize that the platforms page is a big multiselect. Also for it saves people who only have one version installed anyway which is detected correctly a click.

I'm not sure I like this change, last time there was something similar in the older installer, people complained that they had to select their other versions when they just wanted to install one.

It helps people that don't realize that you have to click one of the options (quite a lot of people actually) to be able to install BD.
If they want to choose another version they can still do it selecting ptb/canary and unselecting stable, is not that hard.
It also kinda recommends people to choose the most stable version by default which will break less frequently.

That was the main intention, but it's a compromise. The proper solution to that problem would be redesigning the selection buttons. But I also thought it would be a nice change in general. But if you say it was received negatively in the past and you'd rather not add it feel free to close this.


webpack: Cleanup after webpack transition of app.js

Removes the app files from being included in the Django pipeline
as these files are now being compiled and included via webpack.
Also fixes some modules that were erroneously left out while transitioning app.js to webpack. This commit exposes them using expose-loader or setting them directly to window.

Testing Plan:
GIFs or Screenshots:

I fixed the issue noted above and merged this a couple days ago; apparently closing it at that time didn't work.  Thanks @armaanahluwalia!


style: fix various spelling errors

Just a small fix of various spelling errors or improvements in spelling.

Sorry but I don't think this is required.

Not required in the sense of correctness of the software or its usability - yes. But among many other things, proper spelling adds to the quality of a project and its perception by developers as a high-quality project. I don't insist on these changes, but I'm slightly puzzled why this perfectly valid PR is rejected. :thinking:

Because I don't think javascript vs JavaScript is an important difference. Actually I'm more familiar with the former.

Well, that's how the "authorities" spell them, e.g.:

JavaScript: https://nodejs.org, https://developer.mozilla.org/en-US/docs/Web/javascript, ...
TypeScript: https://www.typescriptlang.org
Babel: https://babeljs.io

It's not like I'm making it up.


Add function to start the game and start time counting

Add function to start the game and start time counting in logic.js

Added code to start game, timer and function to end game


State Not Propagating to Child Components

Describe the bug
When updating the state of a parent component, the change does not flow back to the child.
To Reproduce
Here's a stripped down example, with just a button to trigger a change in the parent (via a callback), which should update its (other) child.
import { App, Button, Text, View, Window } from "proton-native";
import React, { Component } from "react";
export default class Example extends Component {
  constructor(props) {
    super(props);
    this.state = { count: 0 };
  }
  updateName(newName) {
    this.setState({ count: this.state.count + 1 });
  }
  render() {
    return (
      <App>
        <Window style={{ width: 300, height: 100 }}>
          <View>
            <Clicker update={ this.updateName.bind(this) } />
            <ClickTotal count={ this.state.count } />
          </View>
        </Window>
      </App>
    );
  }
}
class Clicker extends Component {
  constructor(props) {
    super(props);
    this.state = { update: props.update };
  }
  render() {
    return (<Button onPress={ this.state.update } title='Increment' />);
  }
}
class ClickTotal extends Component {
  constructor(props) {
    super(props);
    this.state = { count: props.count };
  }
  render() {
    return (<Text>{ this.state.count }</Text>);
  }
}

Expected behavior
In the sample code above, the Text component (in ClickTotal) should increment on every button click. Instead, we can see that Example re-renders and reports this.state.count as increasing, but ClickTotal always sees the count as zero.
Edit to clarify:  The child component re-renders when the parent state changes, but always sees the property as its original value, rather than what's being passed in.
Screenshots
Hopefully not necessary, but I can add them later.
Versions:

OS: Ubuntu 19.10 (Linux)
Version<EMAIL_ADDRESS>Node version: v12.16.0

Additional context
I could obviously add Reflux to the project, but that seems like overkill for such minimal data requirements, if it's not absolutely necessary.  The actual project I'm working on is going to need to pass around lists of objects, but the same applies.
Also, v2 is a massive improvement over v1.  Thanks!

This is because in your ClickTotal constructor, you are setting the count into the state of ClickTotal. This is just a number, it has no reference to the other count, so it doesn't get updated. In general, it is better practice to not set your props into the state, but instead just reference them from this. Here's the fixed example:
import { App, Button, Text, View, Window } from "proton-native";
import React, { Component } from "react";

export default class Example extends Component {
  constructor(props) {
    super(props);
    this.state = { count: 0 };
  }
  updateName(newName) {
    this.setState({ count: this.state.count + 1 });
  }
  render() {
    return (
      <App>
        <Window style={{ width: 300, height: 100 }}>
          <View>
            <Clicker update={this.updateName.bind(this)} />
            <ClickTotal count={this.state.count} />
          </View>
        </Window>
      </App>
    );
  }
}
class Clicker extends Component {
  render() {
    return <Button onPress={this.props.update} title="Increment" />;
  }
}
class ClickTotal extends Component {
  render() {
    return <Text>{this.props.count}</Text>;
  }
}

Ah, thanks!


Implement PARSEC1.2 model isochrones

Raw data for PARSEC is in the evolutionary models directory but they aren't read in or interpolated yet. Implement this and produce a plot for the paper.

#32


How to add image with url without store in file?

Is there any way to add image to sheet which not stored in xlsx file, but just contains url to an image. Excel will load and show this images.
For example, Google Sheets has IMAGE() function:
=IMAGE("https://miro.medium.com/max/1400/1*mk1-6aYaf_Bes1E3Imhc0A.jpeg")
May be, there are something similar in excelize?
I have thousands images. But this is too long to download and inline them all. Better just add images urls to excel.

Thanks for your issue, you can set any cell formula with SetCellFormula by excelize, but currently the formula function IMAGE maybe unavailable in Microsoft Excel, Apple Numbers, OpenOffice, LibreOffice and another spreadsheet application.

Thanks


anv/anroid: Query gralloc for tiling mode

Tiled scan-out buffer works only for those platforms supporting set_tiling/get_tiling ioctl, which is not used for newer platforms (e.g., dGPU).  This change switch to querying modifier reliably with gralloc API.
Tracked-On: OAM-117994
Reviewed-by: Tapani Pälli<EMAIL_ADDRESS>Reviewed-by: Lionel Landwerlin<EMAIL_ADDRESS>Part-of: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29185

Improper Commit Message
Jira issue not in ['bug','improvement'],
make sure jira issue is of type bug or improvement.

Android CI has started Engineering Build for this issue ,Please check the linked Tracked-On issue/Android CI Web  for more details.

SUCCESS: Android CI has completed Engineering Build for this issue.Please check the linked Tracked-On issue/Android CI Web  for more details.

Android CI has started MERGE Build for this pr ,Please check the linked Tracked-On issue/Android CI Web  for more details.


Video encoding for wmv files for youtube

I need to change mp3 file to wmv file and then upload converted wmv to youtube. The converted wmv file does not stream on youtube. How video should be encoded while converting to wmv  so that converted file can be streamed on youtube.

Do you have a code? We do not write code for you nor this should be a forum.
If you have a code, we're glad to help you.

`		$ffmpeg = FFMpeg\FFMpeg::create(array(
'ffmpeg.binaries'  => 'ffmpeg/bin/ffmpeg',
'ffprobe.binaries' => 'ffmpeg/bin/ffprobe',
'timeout'          => 360000, // The timeout for the underlying process
'ffmpeg.threads'   => 12,   // The number of threads that FFMpeg should use
), $logger);
$img_url=DIR . '/image.png';
$video = $ffmpeg->open(DIR . '/input.mp3');
$format = new FFMpeg\Format\Video\X264();
$format->setVideoCodec('libx264');
$format ->setAudioCodec("aac");
$video->filters()->addMetadata(["title" => "My songVideo", "artist"=>"artistVideo", "album"=>"AlbumVideo", "composer"=>"ComposerVideo4", "track" => "103","date"=>"2018","isrc"=>"us:1231123123","upc"=>"213213324","artwork"=>$img_url]);
$format->on('progress', function ($video, $format, $percentage) {
echo "$percentage % transcoded";
});
    $video->save($format, 'output.wmv');`


devcontainer features info <..> command

A simple command that uses the local OCI implementation to fetch information on a dev container feature published to an OCI repository.
Today, this command returns all published tags for a given featureId.  The output can either be human-formatted (Default), or JSON.

updated:


Add voice trigger for modular grenades

About the PR

Adds a voice trigger to trigger modular grenades with a key phrase
Activate it with an alt-verb to record a word or phrase spoken by someone nearby
Activate it again later to re-record and change if needed
Examine to view the current recorded phrase
Matches whole words to allow specificity (we can change to a simple 'contains' if desired)

Related to #7318
Screenshots

Changelog

:cl:

add: Added voice trigger for modular grenades

Depending on what happens make sure this doesn't end up duplicating the chat listener events in https://github.com/space-wizards/space-station-14/pull/10522 if they both get merged


refinement to publicPath specification

I was wondering if you would accept a change to the way options.path is overwritten when a user specifies dynamicPublicPath=true.  I'm running into this issue, when I specify in my webpack config
output: {
  publicPath: '/test/',
  ...
}

the options.path passed to the EventSource constructor is:
/test//__webpack_hmr

(note the double slash).
I would just omit the trailing slash in output.publicPath, but then that breaks the get request for the hot-update json and js from webpack (reference).  Without the trailing slash, the request would be for something like:
http://localhost:7070/teste6a028c9d0da77c55829.hot-update.json

which needs the slash between the hash and the public path.
My proposal, would be to change L13 in client.js from:
options.path = __webpack_public_path__ + options.path;

to:
options.path =  __webpack_public_path__.replace(/\/$/, '') + options.path;

Let me know what you think
thanks!

Seems reasonable to me, can you send over a PR?

sure thing

Yep, probably worth including a test too.


Hints and variables highlight became totally broken

VSCode Version: Code 1.15.1 (41abd21afdf7424c89319ee7cb0445cc6f376959, 2017-08-16T17:16:27.618Z)
OS Version: Linux x64 4.4.0-92-generic
Extensions:

Extension
Author (truncated)
Version

aurelia
Aur
0.3.4

sass-lint
gle
0.0.4

sass-indented
rob
1.4.1

vscode-multiclip
sle
0.1.2

(22 theme extensions excluded)

Unfortunately, can't specially reproduce this bug, but it often happens, when VS Code stay opened for 5-6 hours and more.
Regarding to this bug, hints and highlight of same variables are becoming totally broken, like on screenshot:

Do you remember if this happens after switching branches or similar types of file system operations?
If this happens again, can you please first try:

Set "typescript.tsserver.trace": "verbose" in your user settings
Reproduce the problem in the editor
Open the output panel and go to the typescript section of the output panel

Check that printed output for the last operation you performed and see if there are any errors there

@mjbvz ok, thank you, i'll try to reproduce this bug with your instructions.
Anyway, the only system operation i always do in vscode is creating/renaming files/folders. And it definetly doesn't happen after switching branches.

@mjbvz well, finally it happened again. The last error in TS output, after which it happened:
[Trace  - 19:18:47] Sending request: completions (13257). Response expected: yes. Current queue length: 0
Arguments: {
    "file": "/home/levitator/projects/mp/mp-frontend-clear/src/components/SRPTest.jsx",
    "line": 36,
    "offset": 59
}
[Trace  - 19:18:47] Response received: completions (13257). Request took 10 ms. Success: false . Message: Error processing request. Debug Failure. False expression.
Error: Debug Failure. False expression.
    at tryReuseStructureFromOldProgram (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:57353:22)
    at Object.createProgram (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:57166:34)
    at synchronizeHostData (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:76169:33)
    at Object.getProgram (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:76235:13)
    at ConfiguredProject.Project.updateGraphWorker (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:79213:53)
    at ConfiguredProject.Project.updateGraph (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:79171:39)
    at ConfiguredProject.Project.getLanguageService (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:78911:26)
    at IOSession.Session.getCompletions (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:82250:43)
    at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:81364:61)
    at /usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:82698:88
    at IOSession.Session.executeWithRequestId (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:82689:28)
    at IOSession.Session.executeCommand (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:82698:33)
    at IOSession.Session.onMessage (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:82718:35)
    at Interface.<anonymous> (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:83804:27)
    at emitOne (events.js:96:13)
    at Interface.emit (events.js:191:7)
    at Interface._onLine (readline.js:241:10)
    at Interface._normalWrite (readline.js:384:12)
    at Socket.ondata (readline.js:101:10)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:191:7)
    at readableAddChunk (_stream_readable.js:178:18)
    at Socket.Readable.push (_stream_readable.js:136:10)
    at Pipe.onread (net.js:560:20)
[Error  - 19:18:47] 'completions' request failed with error.
Error processing request. Debug Failure. False expression.
Error: Debug Failure. False expression.
    at tryReuseStructureFromOldProgram (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:57353:22)
    at Object.createProgram (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:57166:34)
    at synchronizeHostData (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:76169:33)
    at Object.getProgram (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:76235:13)
    at ConfiguredProject.Project.updateGraphWorker (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:79213:53)
    at ConfiguredProject.Project.updateGraph (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:79171:39)
    at ConfiguredProject.Project.getLanguageService (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:78911:26)
    at IOSession.Session.getCompletions (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:82250:43)
    at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:81364:61)
    at /usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:82698:88
    at IOSession.Session.executeWithRequestId (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:82689:28)
    at IOSession.Session.executeCommand (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:82698:33)
    at IOSession.Session.onMessage (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:82718:35)
    at Interface.<anonymous> (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:83804:27)
    at emitOne (events.js:96:13)
    at Interface.emit (events.js:191:7)
    at Interface._onLine (readline.js:241:10)
    at Interface._normalWrite (readline.js:384:12)
    at Socket.ondata (readline.js:101:10)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:191:7)
    at readableAddChunk (_stream_readable.js:178:18)
    at Socket.Readable.push (_stream_readable.js:136:10)
    at Pipe.onread (net.js:560:20)
[Trace  - 19:18:47] Sending request: change (13258). Response expected: no. Current queue length: 0
Arguments: {
    "file": "/home/levitator/projects/mp/mp-frontend-clear/src/components/SRPTest.jsx",
    "line": 36,
    "offset": 59,
    "endLine": 36,
    "endOffset": 59,
    "insertString": "r"
}

Please try the latest VS Code insiders builds. I believe this bug (https://github.com/Microsoft/TypeScript/issues/16591) was fixed by Typescript in the most recent release


Addition of an option to input custom prompts.

Introduce an additional field for prompts via parameters, allowing users to enter custom prompts to modify or restrict the output generated by the model.

Feature added


Search HL database would be good

A page or navbar item to search the half-life database would be useful.

Added


[DataFmt] 32-bit String: Handle boxed NSStrings and _SwiftStringStorage

Add support for two more layouts of 32-bit Swift.String:

The ADT payload inside of the String contains a boxed NSString
pointer Note that this isn't always true, the runtime may choose not to
wrap the pointer with one level of indirection, without a clear
indication in the documented set of control bits.

The payload contains a _SwiftStringStorage instance.

rdar://40112101

@swift-ci Please test

Thanks! I filed: r://40267572


Storybook stuck at "loading source..." for HighlightCells example

Simply visit the Storybook link for the HighlightCells example and you'll see the example code stuck on loading source....
I noticed this while doing research for my previous issue.

Huh, weird.

Figured it out, turns out it was just the storybook not being about to parse import { type Foo, Bar } from baz;  style imports.


documentation: fix link to Vagrant instructions

The prior link just ended up pointing at the main Github page for rkt.

Thanks!


Render reference results as they are returned by reference providers.

This prevents a slow reference provider from blocking the results of other reference providers.
This PR is useful by itself, but it also resolves UX issues related to https://github.com/Microsoft/vscode/issues/20010 and gives us a starting point to implement streaming further down the stack.
Before

After (edit: updated screenshot with progress bar)

TODO

[x] Fix no results case

really cool.

I pushed a branch where you can play with this to see how the UI would behave for multiple concurrent reference providers (or a single streaming reference provider).
An indefinite loading indicator would be a nice addition.

I merged in master to resolve a conflict but tests are failing on master. Whenever tests are fixed on master, can re-merge in master to fix tests for this PR.

build is passing now

Moving to July. I have seen how this is used in source graph but it needs more work to make sure a stable UI is guaranteed.

it needs more work to make sure a stable UI is guaranteed.

I am happy to work on this more if you care to share what concerns still remain.


Update README.md - more precision about status mode

Thanks for the contribution @Grummfy
I've rewritten it slightly but looks good!
Merging


Shared preferences error

I get an error like this in the project structure part:
Library Dart Packages has broken classes path:   C:\src\flutter.pub-cache\hosted\pub.dartlang.org\shared_preferences_macos-2.0.0\lib [Fix]

I get a similar one for connectivity package. I'm using Linux.

I get a similar one for connectivity package. I'm using Linux.

same on windows

@regenin @tirth-stasis
can you provide your flutter doctor -v, your flutter run -d <some_platform> -v and a minimal reproducible code sample

@regenin @tirth-stasis
can you provide your flutter doctor -v, your flutter run -d <some_platform> -v and a minimal reproducible code sample

I ran into errors with red color like this how can I solve it?
[  +22 ms] Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.
[   +5 ms]
#0      FlutterCommand.validateCommand (package:flutter_tools/src/runner/flutter_command.dart:1274:11)
#1      RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:437:19)
#2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1114:11)

#3      FlutterCommand.run.
(package:flutter_tools/src/runner/flutter_command.dart:1009:27)

#4      AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)

#5      AppContext.run (package:flutter_tools/src/base/context.dart:149:12)

#6      CommandRunner.runCommand (package:args/command_runner.dart:197:13)

#7      FlutterCommandRunner.runCommand.
(package:flutter_tools/src/runner/flutter_command_runner.dart:278:9)

#8      AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)

#9      AppContext.run (package:flutter_tools/src/base/context.dart:149:12)

#10     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:234:5)

#11     run.. (package:flutter_tools/runner.dart:64:9)

#12     run. (package:flutter_tools/runner.dart:62:12)

#13     AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)

#14     AppContext.run (package:flutter_tools/src/base/context.dart:149:12)

#15     runInContext (package:flutter_tools/src/context_runner.dart:73:10)

#16     main (package:flutter_tools/executable.dart:90:3)

Hi @regenin
Can you please provide your flutter doctor -v, a complete reproducible minimal code sample, and your flutter run --verbose running the minimal code sample?
Thank you

Hi @regenin
Can you please provide your flutter doctor -v, a complete reproducible minimal code sample, and your flutter run --verbose running the minimal code sample?
Thank you

Sorry i was busy.
[√] Flutter (Channel stable, 2.0.4, on Microsoft Windows [Version 10.0.19042.867], locale tr-TR)
• Flutter version 2.0.4 at C:\src\flutter
• Framework revision b1395592de (7 days ago), 2021-04-01 14:25:01 -0700
• Engine revision 2dce47073a
• Dart version 2.12.2
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at C:\Users\beynov\AppData\Local\Android\sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Android Studio (version 4.1.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] VS Code (version 1.54.1)
• VS Code at C:\Users\beynov\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.20.0
[√] Connected device (2 available)
• Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.114
• Edge (web)   • edge   • web-javascript • Microsoft Edge 89.0.774.68
• No issues found!
C:\Users\beynov>flutter run --verbose
[  +85 ms] executing: [C:\src\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +66 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] b1395592de68cc8ac4522094ae59956dd21a91db
[   +1 ms] executing: [C:\src\flutter/] git tag --points-at b1395592de68cc8ac4522094ae59956dd21a91db
[  +44 ms] Exit code 0 from: git tag --points-at b1395592de68cc8ac4522094ae59956dd21a91db
[   +1 ms] 2.0.4
[  +47 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +34 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [C:\src\flutter/] git ls-remote --get-url origin
[  +28 ms] Exit code 0 from: git ls-remote --get-url origin
[   +1 ms] https://github.com/flutter/flutter.git
[  +66 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref HEAD
[  +33 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +1 ms] stable
[  +68 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[  +10 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +66 ms] executing: C:\Users\beynov\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[  +48 ms] List of devices attached
[   +7 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +41 ms] "flutter run" took 212ms.
[  +22 ms] Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.
[   +6 ms]
#0      FlutterCommand.validateCommand (package:flutter_tools/src/runner/flutter_command.dart:1274:11)
#1      RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:437:19)
#2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1114:11)

#3      FlutterCommand.run.
(package:flutter_tools/src/runner/flutter_command.dart:1009:27)

#4      AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)

#5      AppContext.run (package:flutter_tools/src/base/context.dart:149:12)

#6      CommandRunner.runCommand (package:args/command_runner.dart:197:13)

#7      FlutterCommandRunner.runCommand.
(package:flutter_tools/src/runner/flutter_command_runner.dart:278:9)

#8      AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)

#9      AppContext.run (package:flutter_tools/src/base/context.dart:149:12)

#10     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:234:5)

#11     run.. (package:flutter_tools/runner.dart:64:9)

#12     run. (package:flutter_tools/runner.dart:62:12)

#13     AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)

#14     AppContext.run (package:flutter_tools/src/base/context.dart:149:12)

#15     runInContext (package:flutter_tools/src/context_runner.dart:73:10)

#16     main (package:flutter_tools/executable.dart:90:3)

[ +270 ms] ensureAnalyticsSent: 262ms
[   +5 ms] Running shutdown hooks
[   +1 ms] Shutdown hooks complete
[   +1 ms] exiting with code 1

Hi @regenin
Looks like you're not executing flutter run -v in a project, it should be executed from the root of your project, in this case using a minimal code sample in a project that reproduces the issue
Can you please provide a complete reproducible minimal code sample, and your flutter run --verbose running the minimal code sample?
Thank you

Hi @regenin
Looks like you're not executing flutter run -v in a project, it should be executed from the root of your project, in this case using a minimal code sample in a project that reproduces the issue
Can you please provide a complete reproducible minimal code sample, and your flutter run --verbose running the minimal code sample?
Thank you

i created it inside the project but the result is exactly the same, only the emulator looks

@regenin

[  +41 ms] "flutter run" took 212ms.
[  +22 ms] Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.
[   +6 ms]

The error says you're not executing the command from the project, Can you make sure you're in the root of your project using pwd
For example
PS C:\Users\Taha\AndroidStudioProjects\master_flutter> pwd

Path
----
C:\Users\Taha\AndroidStudioProjects\master_flutter

PS C:\Users\Taha\AndroidStudioProjects\master_flutter>

Can you please provide a complete reproducible minimal code sample, and your flutter run --verbose running the minimal code sample?
Thank you

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.


readme: ntfyme project addition

i added a project i made using beaupy. Would like to add it in the list! thanks!

In the demo given in the repo doesnt show direct usage. but interactive setup, I use this Very much!

Yeah pretty cool, adding!


Add support for wrapping PostgreSQL JSON queries

I'm currently using https://github.com/darrylkuhn/dialect along side this package to better support the JSON columns in PostgreSQL, however, relationships on an external model to a model that has a JSON column fail because of incorrect wrapping of the JSON operators, e.g.
Undefined column: 7 ERROR:  column jobs.data->>'unit_id' does not exist

select * from "jobs" where "jobs"."data->>'unit_id'" = 2657 and "jobs"."data->>'unit_id'" is not null

The fix for that is in the wrapValue method and simply extends what's already there for the hstore wrapping.
Once that was fixed, there's another error when checking is null and is not null
Undefined function: 7 ERROR:  operator does not exist: jsonb ->> boolean

select * from "jobs" where "jobs"."data"->>'unit_id' = 2657 and "jobs"."data"->>'unit_id' is not null

The fix for this is to wrap the column and key within brackets
select * from "jobs" where "jobs"."data"->>'unit_id' = 2657 and ("jobs"."data"->>'unit_id') is not null

Thanks.


Widgets tests are broken

Upstream issue https://github.com/ipython/ipykernel/issues/1043
Temporarily pin ipywidgets to 6.17.1

Broken again in IPYKernel 6.19.0

Fixed upstream


[router] validate operations functions params

params validation using sinclair, take reference from the code on the main branch if necessary.

done


[bug]: 'k' is defined but never used.

Describe the bug
In chart.tsx or in components/ui/charts.tsx in line 11:
export type ChartConfig = {
  [k in string]: {
  ^^
    label?: React.ReactNode
    icon?: React.ComponentType
  } & (
    | { color?: string; theme?: never }
    | { color?: never; theme: Record<keyof typeof THEMES, string> }
  )
}

An error occured saying "'k' is defined but never used.".
Any ways or solutions to fix this?
Affected component/components
chart.tsx
How to reproduce

Go to components/ui/chart.tsx
Check line 11

Codesandbox/StackBlitz link
No response
Logs
No response
System Info
OS Name:                   Microsoft Windows 11 Home Single Language
OS Version:                10.0.22621 N/A Build 22621
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Workstation
OS Build Type:             Multiprocessor Free
Registered Owner:          asus
Registered Organization:   N/A
Product ID:                XXXXXXXXXXXXXXXXXXXX
Original Install Date:     21/07/2023, 1:48:39 pm
System Boot Time:          09/07/2024, 10:03:39 am
System Manufacturer:       ASUSTeK COMPUTER INC.
System Model:              VivoBook_ASUSLaptop X515DAP_M515DA
System Type:               x64-based PC
Processor(s):              1 Processor(s) Installed.

Before submitting

[X] I've made research efforts and searched the documentation
[X] I've searched for existing issues

what's in your tsconfig.json?

{
  "compilerOptions": {
    "target": "es6",
    "lib": ["dom", "dom.iterable", "esnext"],
    "allowJs": true,
    "skipLibCheck": true,
    "allowSyntheticDefaultImports": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "noEmit": true,
    "esModuleInterop": true,
    "module": "esnext",
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "jsx": "preserve",
    "incremental": true,
    "plugins": [
      {
        "name": "next"
      }
    ],
    "paths": {
      "@/*": ["./*"]
    }
  },
  "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
  "exclude": ["node_modules"]
}

Let me know if it's finally fixed or there is a solution. Thank you in advance.


[Header]: Support switching left-hand navigation between modes with different navigation areas.

The maximo team has a usecase where the navigation area switches between modes (carbon's SideNavDetails & SideNavSwitcher)

Spec is outlined here:
https://ibm.invisionapp.com/share/SNNZ29ZAY6V#/screens/319167299
and
https://ibm.invisionapp.com/share/D6NZ4C0PUN9#/screens/319188836_Navigation_Panel_-_Usage

This issue is stale. Closing. Please re-open once discussion with design team is complete.


Make it clear for teams how to add data such as their website link

E.g. https://theorangealliance.org/teams/10298#info shows website as N/A, when it should be https://ftc10298.wordpress.com/.

Possibly create a static page stating that any team info needs to be submitted to FIRST through TIMS, and once approved (semi) automatically updates in our database.

Does TIMS allow adding links for e.g. a YouTube channel/Facebook page?  Or just the website?

It allows you to add like to anything, we have Wix Sites, Youtube Pages, Twitter, Facebook, etc. All sourced from FIRST's database.

This will be coming in a future release of myTOA. No ETA at this time.

This is coming soon to myTOA

While editing teams directly through TOA will be coming in the future, with integration into myTOA, you can edit your team information through TIMS.  TIMS stand for Teams Information Management System.  This allows you to edit team information (like their website).  To edit information, you will first need to navigate to FIRST Inspires.  Once there, click “Log in” if you are the coach or team manager but if you need to create a team, please use the “Register” button and follow through the steps described on the website.  After you have logged in, you may need to agree to some terms or activate your account; those steps will be shown on the site.  You will then need to go to the Team Summary Page.  From there, click “Edit/View” and edit the team info on that page (such as the website).  Your team information will be updated on TOA at a later date (once we run our data retrieval software).

While editing teams directly through TOA will be coming in the future, with integration into myTOA, you can edit your team information through TIMS. TIMS stands for Teams Information Management System. This allows you to edit team information (like their website). To edit information, you will first need to navigate to FIRST Inspires. Once there, click “Log in” if you are the coach or team manager but if you need to create a team, please use the “Register” button and follow through the steps described on the website. After you have logged in, you may need to agree to some terms or activate your account; those steps will be shown on the site. You will then need to go to the Team Summary Page. From there, click “Edit/View” and edit the team info on that page (such as the website). Your team information will be updated on TOA at a later date (once we run our data retrieval software).
closed #110