Attaches to Chrome instead of iOS Device on Windows

I've followed the instructions as I see them:

Install iTunes
Install extension
Restart vscode
Add a launch.json (see below)
Try to attach to a tab/etc. from debugger pane

Result:
At this point it is just connecting to my machine's Chrome when what I really want is to connect to the tab that is open on my iOS device and connected via USB. If the tab is open in chrome it will attach to it, otherwise it gives me a "chrome-debugger-error: tab not found, available tabs are...".
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Attach to an iOS device with URL",
            "type": "ios",
            "request": "attach",
            "port": 9222,
            "url": "http://www.example.com",
            "webRoot": "${workspaceRoot}",
            "deviceName": "*"
        }
    ]
}

Hi @hoovercj ,
Can I get you to enable logging by setting the diagnosticLogging to true  in your launch.json config?
You should see something like this in the console:
›OS: darwin x64
  ›Node: v5.10.0
  ›vscode-chrome-debug-core: 0.1.16
  ›debugger-for-ios-web: 0.1.2
  ›spawn('/usr/local/bin/ios_webkit_debug_proxy', ["--no-frontend","--config=null:9222,:9223-9323"])
  ›Discovering targets via http://<IP_ADDRESS>:9223/json
  ›Discovering targets via http://<IP_ADDRESS>:9223/json
  ›Discovering targets via http://<IP_ADDRESS>:9223/json
  ›Discovering targets via http://<IP_ADDRESS>:9223/json
  ›Discovering targets via http://<IP_ADDRESS>:9223/json
  ›Discovering targets via http://<IP_ADDRESS>:9223/json
  ›Discovering targets via http://<IP_ADDRESS>:9223/json

Hi I am trying to do both connect via Window PC and an Ipad. I still cannot get it to load on the PC.
Here is my attach config:       {             "name": "Attach to an iOS device",             "type": "ios",             "request": "attach",             "port": 9222,             "url": "https://www.tatoos.com/?store=1",             "webRoot": "developer/tatoos.com/sign/",             "deviceName": "Nicolas's iPad",             "diagnosticLogging": true         }
When I run the debugger I get this error "[debugger-for-chrome] Got a response from the target app, but no target pages found" and this console:
  ›OS: win32 ia32   ›Node: v5.10.0   ›vscode-chrome-debug-core: 0.1.16   ›debugger-for-ios-web: 0.1.2   ›spawn('C:\Users\User\.vscode\extensions\msjsdiag.debugger-for-ios-web-0.1.2\node_modules\vs-libimobile\lib\ios_webkit_debug_proxy.exe', ["--no-frontend","--config=null:9222,:9223-9323"])   ›Warning: Can't find a device with deviceName: Nicolas's iPad. Available devices: []   ›Discovering targets via http://<IP_ADDRESS>:9222/json   ›Discovering targets via http://<IP_ADDRESS>:9222/json ...   ›Discovering targets via http://<IP_ADDRESS>:9222/json   ›Discovering targets via http://<IP_ADDRESS>:9222/json   ›Error: Got a response from the target app, but no target pages found     at Object.errP (C:\Users\User\.vscode\extensions\msjsdiag.debugger-for-ios-web-0.1.2\node_modules\vscode-chrome-debug-core\out\src\utils.js:225:13)     at C:\Users\User\.vscode\extensions\msjsdiag.debugger-for-ios-web-0.1.2\node_modules\vscode-chrome-debug-core\out\src\chrome\chromeTargetDiscoveryStrategy.js:13:26     at process._tickCallback (internal/process/next_tick.js:103:7)

@nbapat43 Looks like the debugger is able to connect to your iOS device, but it can't find a tab with the  URL https://www.tatoos.com/?store=1 open. Please make sure Safari is opened with the tab, and the device isn't locked.

@nbapat43 @hoovercj I just wanna follow up here. Still having problems?

Apologies, I didn't get a chance to look at this until now.
It turns out the solution is "close chrome". If chrome is open, it will only try to attach there. If I close chrome, it will attach to the iPhone.

Hi guys I was wondering is there a way to see the generated sources on the page much like the "Sources" tab in Chrome - I want to debug a webpage that isn't hosted by me. Is it possible ?
I'm sorry that I didn't open a seperate thread - I'm going to open one if it's needed. Thanks !

Hey folks - I'm having this same problem. I closed Chrome completely on my PC. My iPhone is open to the right URL. I enabled logging, but nothing there seems to add additional info. What else can I try?

@auchenberg I am having the same symptoms as @nbapat43 above...
I am curious, his trace (like mine) says:
›Warning: Can't find a device with deviceName: XYZ. Available devices: []
but in your reply, you seem to think it found the device?
I've tried renaming the device, making it lowercase, etc, to no avail.
Any help would be much appreciated.

I'm getting the exact same error, except I don't see this:
›Warning: Can't find a device with deviceName: Nicolas's iPad. Available devices: []
Unfortunately, closing Chrome does not seem to help.
So far, it has refused to debug anything, no matter what I do.

This debug extension hasn't been maintained in a while. My advice would be to look into https://medium.com/@auchenberg/hello-remotedebug-ios-webkit-adapter-debug-safari-and-ios-webviews-from-anywhere-2a8553df7465, which has a guide for VS Code too.

If the plan is to not maintain this anymore (which is totally understandable), should the readme be updated to say as much?

@cfjedimaster Added in https://github.com/Microsoft/vscode-ios-web-debug/commit/dae1e00faf6f50f1ecef2faf3e72077b2051be0b


Filter by tags

I have two localizable files in my iOS project. The first one is the Localizable.strings file, wich can be easily updated by using phraseapp pull.
The second one is the InfoPlist.strings file that contains localizations e.g. for the NSCalendarsUsageDescription of the project's Info.plist. Currently I don't see any other chance than creating a second PhraseApp project for this file.
I wish I could set tags within the phrasapp.yml to filter keys with that specified tag for an output file.
For example like this:
phraseapp:
  access_token: "<token>"
  project_id: "<project_id>"
  file_format: "yml"
  pull:
    targets:
    - file: "./<locale_code>.lproj/Localizable.strings"
      params:
        tags: ["app-keys"]
    - file: "./<locale_code>.lproj/InfoPlist.strings"
      params:
        tags: ["info-plist-keys"]

This would create Localizable.strings files with all keys that belong to the app-keys tag and InfoPlist.strings that belong to the info-plist-keys tag.

The pull command only supports one tag since it relies on the parameters from the locales#download endpoint, so you should be able to specify your targets like this:
phraseapp:
  access_token: "<token>"
  project_id: "<project_id>"
  file_format: "yml"
  pull:
    targets:
    - file: "./<locale_code>.lproj/Localizable.strings"
      params:
        tag: app-keys
    - file: "./<locale_code>.lproj/InfoPlist.strings"
      params:
        tag: info-plist-keys

Does that solve the problem?

Oh, I didn't now that this is actually possible 😱 You need to describe that bug feature in you documentation 😉
One tag is enough for me I guess. I will try that later.
Thank you!


PowerShell does not support debugging this language mode: 'jsonc'.

Before submitting a bug report:

Make sure you are able to repro it on the latest released version
Perform a quick search for existing issues to check if this bug has already been reported

Steps to reproduce

Expected behavior

Actual behavior

If an unexpected error was thrown then please report the full error details using e.g. $error[0] | Select-Object *
Environment data

> $PSVersionTable

> (Get-Module -ListAvailable PSScriptAnalyzer).Version | ForEach-Object { $_.ToString() }

Thanks for opening this, please open a new issue with issue info and repro steps


[Android] Image Bitmap must not be updated from background thread

My application  crashes in android when i try to access the page which has the circle button and it returns this message:
Image Bitmap must not be updated from background thread

can you show me your code?

closing the issue as no further response from user.  Feel free to re-open if you run into issues around this again or there are further comments.


Improve loading speed (of regex?) - cli usecase

The biggest issue using this library currently is the fact, that on each startup a lot of regular expressions are compiled.
If regex (or whatever crate being used) implements serialization of the compiled regex this could be entirely avoided and shifted to build time / once upon a time. The current issue here is the impl of the crate regex itself which does not impl serde serialization.
In the meantime, parallel compilation of the parsed regexps would probably speed up the initial loading by a factor of $cores.

The biggest issue using this library currently is the fact, that on each startup a lot of regular expressions are compiled.

That is quite subjective :) But I agree that loading times should be improved / tracked more closely.

If regex (or whatever crate being used) implements serialization of the compiled regex this could be entirely avoided

This would be really nice. I believe regex-automata already implements this kind of serialization but fancy-regex builds on regex, not regex-automata.

In the meantime, parallel compilation of the parsed regexps would probably speed up the initial loading by a factor of $cores.

Regular expressions are already compiled lazily, and regex execution happens partially in parallel so I don't think there's much potential for improvement there:
https://github.com/bminixhofer/nlprule/blob/afc2d3ef43de900c500891b5db8d6f26fdaa15fb/nlprule/src/utils/regex.rs#L70-L80
Are you sure that regex compilation is actually the bottleneck? I think the deserialization of the tagger from an FST could be the issue. Happens here:
https://github.com/bminixhofer/nlprule/blob/afc2d3ef43de900c500891b5db8d6f26fdaa15fb/nlprule/src/tokenizer/tag.rs#L102
So the first step here would be to add a criterion benchmark for loading the tokenizer and rules, and then check where there's speed issues.
I want to focus on modularization for now, but I'm open to contributions and if there's some identifiable bottleneck which isn't too hard to fix we can do that now (for example, the word_store in the tagger is currently a map from String -> u32, I think that could be replaced with a set of Strings and computing hashes at runtime instead of a fixed u32 id, that would certainly improve memory usage but I'm not sure if there'd be any impact on loading time).

The biggest issue using this library currently is the fact, that on each startup a lot of regular expressions are compiled.

That is quite subjective :) But I agree that loading times should be improved / tracked more closely.

Note the constraint: cli ;)

If regex (or whatever crate being used) implements serialization of the compiled regex this could be entirely avoided

This would be really nice. I believe regex-automata already implements this kind of serialization but fancy-regex builds on regex, not regex-automata.

I've had a quick peek into the source of regex, and that task is actually non-trivial unfortunately.

In the meantime, parallel compilation of the parsed regexps would probably speed up the initial loading by a factor of $cores.

Regular expressions are already compiled lazily, and regex execution happens partially in parallel so I don't think there's much potential for improvement there:
https://github.com/bminixhofer/nlprule/blob/afc2d3ef43de900c500891b5db8d6f26fdaa15fb/nlprule/src/utils/regex.rs#L70-L80
Are you sure that regex compilation is actually the bottleneck? I think the deserialization of the tagger from an FST could be the issue. Happens here:
https://github.com/bminixhofer/nlprule/blob/afc2d3ef43de900c500891b5db8d6f26fdaa15fb/nlprule/src/tokenizer/tag.rs#L102
So the first step here would be to add a criterion benchmark for loading the tokenizer and rules, and then check where there's speed issues.

Yeah, I'll add some criterion benches eventually next week.

I want to focus on modularization for now, but I'm open to contributions and if there's some identifiable bottleneck which isn't too hard to fix we can do that now (for example, the word_store in the tagger is currently a map from String -> u32, I think that could be replaced with a set of Strings and computing hashes at runtime instead of a fixed u32 id, that would certainly improve memory usage but I'm not sure if there'd be any impact on loading time).

Just making sure I am not investing time + effort for the :wastebasket: :wink:

Note the constraint: cli - and there the load time is very significant for the end user.

Right, for CLI that is definitely true.

Yeah, I'll add some criterion benches eventually next week.

That would be great! Some very simple benchmark + cargo-flamegraph should be enough to track down the biggest contributors, at least that's how I did it for the core.

I took the lazy path and below is the current flamegraph of cargo-spellcheck w/ 0.5.3 and you are correct, most time is spent in deserialization which is quite unfortunate.
Not quite sure how to approach this, I'd like to just do all the hard work in build.rs and serialize to smth that is zer0 copy and deserialize that in the actual application, i.e. https://lib.rs/crates/rkyv or https://capnproto.org/ - which both are clearly out of scope for this crate.
So my question here is, how much one can expose for deserialization purposes to make that easier to swap out as needed.

Thanks for the graph! It seems almost all of the work is indeed done in the Tagger deserialization. In general, deserializing from an FST is necessary since otherwise size of the binary blows up, but it makes sense that it's slow.
Here's the problematic code:
https://github.com/bminixhofer/nlprule/blob/12bd52fd7cd5b95b94205625ebb274dbd66a6d8b/nlprule/src/tokenizer/tag.rs#L102-L153
I can give parallelizing this to some degree a go, that's not trivial here but it should help.

tl;dr need a good test case to improve this for real.

My measurements really were only a few runs of cargo-spellcheck on the same file with different impls, and comparing the total runtime percentage of the Tagger::from impl. So take it with a grain of salt.

The above code snippet seems slow due to the additional allocations, in reality, the change is insignificant and is slightly faster as is (probably due to some cache locallity) compared to:
        let word_store_fst = Map::new(data.word_store_fst).unwrap();
        let mut word_store = FastBiMap::<String, WordIdInt>::with_capacity_and_hashers(
            word_store_fst.len(),
            Default::default(),
            Default::default(),
        );
        let mut stream = word_store_fst.into_stream();
        while let Some((key, value)) = stream.next() {
            if let Some(key) = std::str::from_utf8(key).ok() {
                word_store.insert(key.to_owned(), WordIdInt(value as u32));
            }
        };

fnv hasher is supposed to be pretty fast for small keys, which is really all there is, but it appears hashbrown beats fnv, maybe due to SMID lookup that is advertised.

Some more digging revealed that the data really is very sparse. We do 2 allocations for structure and the intermediate combinator key, where everything holds 1 element only in 99% of all cases. So at this point, I am tempted to say that using Vec for the inner 2 layers should already give a pretty good speedup.
Another approach would be to eliminate the intermediate layer,
                .entry(inflection_id)

which also barely used, but in get_raw afaiu.
Using a Vec<(WordIdInt, PosIdInt)> should yield significantly better perf given our data sizes of mostly 1, up to 3 items.

Thanks for looking into this!

Vec for the inner 2 layers should already give a pretty good speedup.

Another approach would be to eliminate the intermediate layer

Sorry, what's the difference between these?

Using a Vec<(WordIdInt, PosIdInt)>

IIRC the reason for IndexMap<WordIdInt, Vec<PosIdInt>> was better binary size, I should've documented that.. We can try Vec<(WordIdInt, PosIdInt)>, maybe the size difference is negligible.
Also, what do you think about e.g. https://docs.rs/flurry/0.3.1/flurry/ for parallelization?

I'd like to just do all the hard work in build.rs

If the above is not fast enough, I think the best approach in this direction would be splitting the tag store into multiple FSTs + deserializing in parallel. That should speed things up roughly by a factor of the number n of FSTs, assuming the concurrent hashmap is fast. n would have to be one by default and settable by nlprule-build (which would have to do deserialization + update n + serialization) but that would be significantly more work and add quite a bit of complexity. But the size difference is actually not too bad - using two FSTs instead of one adds ~1MB.

Thanks for looking into this!

Vec for the inner 2 layers should already give a pretty good speedup.

Another approach would be to eliminate the intermediate layer

Sorry, what's the difference between these?

One retains the current 2 layer inner nesting structure, the other flattens the IndexMap<_,Vec<_> to a single Vec

Using a Vec<(WordIdInt, PosIdInt)>

IIRC the reason for IndexMap<WordIdInt, Vec<PosIdInt>> was better binary size, I should've documented that.. We can try Vec<(WordIdInt, PosIdInt)>, maybe the size difference is negligible.
Also, what do you think about e.g. https://docs.rs/flurry/0.3.1/flurry/ for parallelization?

That could work, but the most significant part is not the insertion, but just calling next() on the Stream - I tried to write a safe wrapper as an iterator to then be able to use rayon with a parallel iterator adapter (which suffers the same issues).

I'd like to just do all the hard work in build.rs

If the above is not fast enough, I think the best approach in this direction would be splitting the tag store into multiple FSTs + deserializing in parallel. That should speed things up roughly by a factor of the number n of FSTs, assuming the concurrent hashmap is fast. n would have to be one by default and settable by nlprule-build (which would have to do deserialization + update n + serialization) but that would be significantly more work and add quite a bit of complexity. But the size difference is actually not too bad - using two FSTs instead of one adds ~1MB.

I think fixing the topology of the Tagger should be the first step, I am not very deep into the code yet, so I don't know if that already implies adding multiple FSTs or not.

Please rebase this onto main, there's now a simple bench for rules and tokenizer loading speed, and a CI fix.

That'd be much appreciated, I'll have some time tomorrow night to look into this further.

Alright, there's better doc comments for the tagger on main now. I think I covered the important parts, let me know if anything is unclear!

This is somewhat addressed by #66 and #70. I'll keep this open because there's currently two more things worth investigating in this area:

Track loading speed (and possibly some other metrics) over time using e.g. https://github.com/rhysd/github-action-benchmark to prevent regressions.
Investigate parallelization of deserialization across structs. For example, the Tagger and the three Chunker models are all quite expensive to deserialize, and all of that happens sequentially at the moment although it could be done in parallel. I'm not sure how difficult this would be, there's some related discussion in https://github.com/bincode-org/bincode/issues/139 but I don't think this will land in serde anytime soon.


NuGet Install Error for 'IdentityServer4.AspNetIdentity 2.1.0'

The Nuget Package install fails when attempting to add the package to an WebForms .Net Standard (4.5.2)project. I see there are others that have had this issue but no work arounds are posted ...
Error message:
Could not install package 'IdentityServer4.AspNetIdentity 2.1.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5.2', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

.NET Standard 2.0 is not compatible with .NET Framework 4.5.1.
https://docs.microsoft.com/en-us/dotnet/standard/net-standard


Optimizing CompareArrays

This change improves the performance of the internal CompareArrays method by delegating most of the work to the heavily-optimized SequenceCompareTo method.
On my system, this is around 30% faster, but results will likely vary depending on the SIMD capabilities of the underlying processor. See the new CompareArrays benchmark for details.
BenchmarkDotNet v0.13.6, macOS Sonoma 14.2.1 (23C71) [Darwin 23.2.0]
Apple M1 Pro, 1 CPU, 10 logical and 10 physical cores
.NET SDK 8.0.101
  [Host]     : .NET 8.0.1 (<IP_ADDRESS>001), Arm64 RyuJIT AdvSIMD
  DefaultJob : .NET 8.0.1 (<IP_ADDRESS>001), Arm64 RyuJIT AdvSIMD

Method
Iterations
Mean
Error
StdDev
Ratio

Original
100
1,062.6 ns
2.40 ns
2.13 ns
1.00

Switch
100
1,056.5 ns
1.72 ns
1.53 ns
0.99

SwitchSpan
100
1,902.3 ns
2.19 ns
1.94 ns
1.79

SpanSequence
100
708.4 ns
0.97 ns
0.86 ns
0.67

Original
1000
10,281.5 ns
4.92 ns
4.10 ns
1.00

Switch
1000
10,284.7 ns
3.96 ns
3.31 ns
1.00

SwitchSpan
1000
18,508.2 ns
39.03 ns
32.59 ns
1.80

SpanSequence
1000
7,229.9 ns
5.98 ns
5.59 ns
0.70

Original
10000
96,331.5 ns
114.37 ns
101.39 ns
1.00

Switch
10000
99,886.0 ns
129.02 ns
114.38 ns
1.04

SwitchSpan
10000
170,427.8 ns
177.83 ns
157.64 ns
1.77

SpanSequence
10000
66,711.5 ns
217.44 ns
203.40 ns
0.69

I added an optimization to TryParseAsString that was present in similar methods, but I somehow missed before.

On a different topic, it looks like using utf8-byte-based alphabet dictionaries speeds up dictionary lookup by 1-3%. This isn't enough of a benefit to really be worth bothering with, except that it might facilitate implementing IUtf8SpanParseable so I thought I'd throw it out there as a suggestion.

Method
Mean
Error
StdDev
Ratio

Original
110.9 ns
0.78 ns
0.65 ns
1.00

Utf8Dict
108.4 ns
0.61 ns
0.54 ns
0.98

namespace Uuid7Benchmark;
using System;
using System.Numerics;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Security.Cryptography;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
using Medo;

public class Utf8Alphabet
{
    [Benchmark(Baseline = true)]
    public void Original()
    {
        for (var i = 0; i < Base58Alphabet.Length; i++)
        {
            _ = _base58Lookup[Base58Alphabet[i]];
        }
    }

    [Benchmark]
    public void Utf8Dict()
    {
        for (var i = 0; i < Base58Alphabet.Length; i++)
        {
            _ = _base58Lookup_Utf8[(byte)Base58Alphabet[i]];
        }
    }

    private static readonly char[] Base58Alphabet = [
        '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A',
        'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K', 'L',
        'M', 'N', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
        'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
        'h', 'i', 'j', 'k', 'm', 'n', 'o', 'p', 'q', 'r',
        's', 't', 'u', 'v', 'w', 'x', 'y', 'z'
    ];

    // this is optimized by the C# compiler into an embedded resource
    private static ReadOnlySpan<byte> Base58Alphabet_Utf8 => "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"u8;

    private Dictionary<char, BigInteger> _base58Lookup = new();
    private Dictionary<byte, BigInteger> _base58Lookup_Utf8 = new();

    [GlobalSetup]
    public void Setup()
    {
        _base58Lookup = new Dictionary<char, BigInteger>(Base58Alphabet.Length);
        for (var i = 0; i < Base58Alphabet.Length; i++)
        {
            _base58Lookup.Add(Base58Alphabet[i], i);
        }

        _base58Lookup_Utf8 = new Dictionary<byte, BigInteger>(Base58Alphabet.Length);
        for (var i = 0; i < Base58Alphabet.Length; i++)
        {
            _base58Lookup_Utf8.Add(Base58Alphabet_Utf8[i], i);
        }
    }
}

Looks good. Thank you!
Merged in. Will check it further over weekend and probably push new version then.

As for tf8-byte-based alphabet dictionaries, I am good with either, assuming it works for .NET Standard 2.0 and doesn't interfere with UTF-8 parsing. Tentatively, I would say it's ok for both but I'll look into it futher.
Thank you for going over code and getting all these improvements!


Can we get the guard name in Pulse::users()  ?

In a bunch of apps I have two distinct sections (public and admin) with totally different user classes (users and admins) but all we have in Pulse::users() as id's , but those are not enough to distinguish one from another, as both tables will have a user # 1.

Duplicate of https://github.com/laravel/pulse/issues/121


Vue Material integration

@Atinux and @marcosmoura please describe how to integrate Vue Material
https://github.com/marcosmoura/vue-material
I followed the Vue Material installation and Nuxt plugins instructions, and ended up with HTMLElement is not defined so please confirm and advise
Both awesome projects btw ⭐ thanks
ReferenceError: HTMLElement is not defined
    at /Users/josh/Static/teachest/nuxt/node_modules/vue-material/dist/vue-material.js:8:31912
    at Object.<anonymous> (/Users/josh/Static/teachest/nuxt/node_modules/vue-material/dist/vue-material.js:9:188)
    at e (/Users/josh/Static/teachest/nuxt/node_modules/vue-material/dist/vue-material.js:1:394)
    at Object.t.__esModule.default (/Users/josh/Static/teachest/nuxt/node_modules/vue-material/dist/vue-material.js:6:14434)
    at e (/Users/josh/Static/teachest/nuxt/node_modules/vue-material/dist/vue-material.js:1:394)
    at Object.defineProperty.value (/Users/josh/Static/teachest/nuxt/node_modules/vue-material/dist/vue-material.js:6:22870)
    at e (/Users/josh/Static/teachest/nuxt/node_modules/vue-material/dist/vue-material.js:1:394)
    at Object.<anonymous> (/Users/josh/Static/teachest/nuxt/node_modules/vue-material/dist/vue-material.js:10:4156)
    at e (/Users/josh/Static/teachest/nuxt/node_modules/vue-material/dist/vue-material.js:1:394)
    at Object.defineProperty.value (/Users/josh/Static/teachest/nuxt/node_modules/vue-material/dist/vue-material.js:1:515)

Using if (process.BROWSER_BUILD) { in the plugin, it works 😸 but with Warnings:
Mismatching childNodes vs. VNodes
and
[Vue warn]: The client-side rendered virtual DOM tree is not matching server-rendered content. This is likely caused by incorrect HTML markup, for example nesting block-level elements inside <p>, or missing <tbody>. Bailing hydration and performing full client-side render.

Hi,
This is the best solution for using vue-material with Nuxt right now because it seems that SSR is not supported by this library.
It should be easy to fix for @marcosmoura in a future release.

Are you guys sure that this is supposed to work like this? I tried this inside of my plugins/vue-material.js file:
import Vue from 'vue';
import VueMaterial from 'vue-material';

if (process.BROWSER_BUILD) {
    Vue.use(VueMaterial.mdCore);
    Vue.use(VueMaterial.mdButton);
    Vue.use(VueMaterial.mdIcon);
    Vue.use(VueMaterial.mdInputContainer);
    Vue.use(VueMaterial.mdSelect);
}

And enabled the plugin inside of nuxt.config.js. But I still receive the error message ReferenceError: window is not defined. Anything I missed?

Same problem for this vue lib: https://github.com/Wanderxx/vue-fullcalendar

I solved it inside of my *.vue file:
mounted(){
            // remove this if SSR is supported
            window.onNuxtReady(() => {
                this.isReady = true;
            });
        }```

and plugins:

import Vue from 'vue';
// import VueMaterial from 'vue-material';
if (process.BROWSER_BUILD) {
window.onNuxtReady(() => {
const VueMaterial = require('vue-material');
    // Vue.use(VueMaterial);
    Vue.use(VueMaterial.MdCore);
    Vue.use(VueMaterial.MdButton);
    Vue.use(VueMaterial.MdIcon);
    Vue.use(VueMaterial.MdInputContainer);
    Vue.use(VueMaterial.MdSelect);
    Vue.use(VueMaterial.MdMenu);
    Vue.use(VueMaterial.MdList);
    Vue.use(VueMaterial.MdBackdrop);
    Vue.use(VueMaterial.MdCheckbox);
    Vue.use(VueMaterial.MdSpinner);
});

}```

@dohomi
It seams that VueMaterial use window (which does not exist) directly when requiring it. The best way is to import it inside the if condition:
import Vue from 'vue'

if (process.BROWSER_BUILD) {
  const VueMaterial = require('vue-material')
  Vue.use(VueMaterial)
}

@Atinux I tried your code but without window.onNuxtReady it was failing. Now it works so far quite well. Thanks for your reply

if window.onNuxtready is a compulsory requirement then it should be in the documentation cos i have thesame issue, for some reasons, client side only plugins never get bound to the global Vue instance

@dohomi what do you mean by "I solved it inside of my *.vue file:" where is this file?

To be honest, it doesn't really work that well after NUXT and vue-material update. The developer experience is currently not very good, I usually have to restart the server and after code refresh its very buggy.

@dohomi can you kindly suggest any UI library that worked well with Nuxt, from your experience? I am having troubles with most of them.

bootstrap-vue
element-ui
vuetify

@jevojipi use vuetify if you are into material design. bootstrap-vue is bootstrap and element-ui has a bootstrap look and feel as well

When I import individual Vue Material components, webpack includes the whole VueMaterial library in my bundle.  Anyone know why?
`import Vue from 'vue';
if (process.BROWSER_BUILD) {
const MdCore = require('vue-material').MdCore;
const MdSidenav = require('vue-material').MdSidenav;
Vue.use(MdCore);
Vue.use(MdSidenav);
}`

Just made a package to ease the process of using vue-material with nuxt. It may be useful for people like me - I'm totally new all this - Vue, Node, even publishing something to NPM and Github, so I was big stress for me trying to apply googled instruction. So, here it is: nuxt-vue-material
I'll be grateful for some feedback:)

Now there is plugin for easy integration. But for now, there is no support for using separate components.


Performance issue when enabling Build Server

See: https://github.com/redhat-developer/vscode-java/issues/3357
          Wow, so slowly. I have to wait 30 minutes after opening the project for it to run. I don't know the cause yet, I hope the development team soon finds the cause.

Originally posted by @alexanderloong in https://github.com/redhat-developer/vscode-java/issues/3357#issuecomment-1776494511

One thing we can explorer is avoid Gradle to build the workspace right after import. Instead, let it build before launch/test

Thanks, my problem has been resolved. People can go into setting and choose it.

This is still the #1 issue with this plugin. I have a project I can open in IntelliJ in a few minutes. But it's over an hour every time in vscode. It's completely unusable.

2024 and this is still an issue

2024 and this is still an issue

Yep, still terribly slow.

Keeping this alive.  Still terribly slow.

yes, confirmed just now that it's still extremely slow with the
prerelease.  over an hour and it's still initializing.  this will
eventually complete.
On Sun, Nov 10, 2024 at 8:26 PM Sheng Chen @.***> wrote:

@mbruce https://github.com/mbruce Have you tried the pre-release
version?
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode-gradle/issues/1441#issuecomment-2467056452,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAN2TLPETEKDSOJT7V3J3F32AABUBAVCNFSM6AAAAAA6OVHPR2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRXGA2TMNBVGI
.
You are receiving this because you were mentioned.Message ID:
@.***>

Could you share the server log? Run Java: Open Java Language Server Log File

log.txt
@jdneo  - I'm having the same issue and here is my log file while it's slowly loading

FWIW I am not having this issue with VS Code Insiders, just the main VS Code release version.

FWIW I am not having this issue with VS Code Insiders, just the main VS Code release version.

I'm shocked that they perf can be different between vscode release and insiders. Is there any setup difference between two? For example, different extensions are installed?

For me, this is happening when I import a project with includeBuild to another project. To me the issue seems to be JDK incompatibility. The project required JDK 11 and somehow the plugin fails to use JDK 11 for included project.


Event trigger for the whole form Validated

It is not possible to determine when the form was fully validated.
This simple patch manage to trigger an event after all fields are validated.
fix #69 and closes #116

Trigger events is what validate do. https://github.com/1000hz/bootstrap-validator/issues/116#issuecomment-97195155
This is an async approach, and a reliable way to look for errors in a form, programmatically, is simple to achieve with jquery's when

Example Usage
        $('.form-element').on('form.validated.bs.validator', function() {
            var validator = $(this).data('bs.validator');
            if (!validator.hasErrors())
             console.log('No errors found')
            else
             console.log('Some errors present')
        });

This looks great @thiagof.
Exactly what I was looking for.
Thank you very much.

I'm becoming crazy about these race conditions on each input validation.
I need this.
@1000hz, Please...


--config not working

Craco is ignoring --config flag. I think the bug was introduced in the following commit.
https://github.com/gsoft-inc/craco/commit/ce0ba394b724f8de7d608eb4f003bb9089a4fc47

Thanks for the issue!
I will try to release a fix this week.

Thanks

Fix in<EMAIL_ADDRESS>

@patricklafrance thanks


kie-issues#2718: [kn-plugin-workflow] Minify the openAPI spec files to trim components/schemas

issue: https://github.com/apache/incubator-kie-tools/issues/2718

Path declarations may contain $ref references, which in turn may refer to other declarations. Therefore, before removing them, it is necessary to identify all declarations that the desired operationId depends on. A special case is securitySchemes; if they are present in the document, they should be retained since the reference to them occurs implicitly.


[1 line] fix damage origin

About the PR
Makes https://github.com/space-wizards/space-station-14/pull/11559 actually work by remembering to pass the origin so it's not null in all the events

hang on 1 sec, this fixed range but melee is still broken


CED interface time offsets

The problem reported here revealed that signals in smrx files (CED interface) might have different time offsets.
To account for that, at least for CEDRecordingInterface, we could e.g. pass starting_time to NwbRecordingExtractor.write_recording(), we could probably do it through the metadata dict.
I'm not sure how that might affect CEDStimulusInterface
@alejoe91 @CodyCBakerPhD

Hm... so theoretically, different channels might have different starting times for their ElectricalSeries? That specifically could be interesting to deal with.
The add_electrical_series method has timestamp information directly tied to the recording extractor object like so
        if not use_times:
            eseries_kwargs.update(
                starting_time=recording.frame_to_time(0),
                rate=float(recording.get_sampling_frequency())
            )
        else:
            eseries_kwargs.update(
                timestamps=H5DataIO(
                    recording.frame_to_time(np.arange(recording.get_num_frames())),
                    compression="gzip"
                )
            )

and so I'm not crazy about letting it be overridden via metadata or as an argument. Instead, the proper approach within the API would be to ensure the frame to time information is set/retrieved correctly in the extractor object itself, likely through the use of a SubRecordingExtractor.

The smrx files might contain electrophys + behavioral + stimuli + experimenmter actions. In the 3 files I looked into, each of these could have its own offset time (as given by sonpy FirstTime() function) but all electrophys channels shared the same time offset

Instead, the proper approach within the API would be to ensure the frame to time information is set/retrieved correctly in the extractor object itself, likely through the use of a SubRecordingExtractor.

I agree

@luiztauffer Sounds good - looks like those changes were merged to spikeextractors core. If there isn't anything more to do about this over here, is the issue good to close?


Only pass down the -no-verify-emitted-module-interface flag if the frontend accepts it

The flag -no-verify-emitted-module-interface may still rejected by older frontends, make sure the local frontend accepts it before passing down the flag.
rdar://123345345

@swift-ci Please test


Site beta

Remade the current site with Bootstrap. Checking for confirmation, and if anything else needed to be added

Feel free to experiment with the site as you wish, you don't have to use my previous attempt. 😄
Just keep the content of the disclaimer, as long as it is readable, you can style it however you like.


rename problem in hfss

I am renaming a geometry like this
hfssapp = Hfss(projectname=project_file,
            specified_version=desktopVersion,
            non_graphical=NonGraphical)
obj = hfssapp.modeler['AMB_V53_LS_AMB_Keramikquer_1']
obj.name = "AMB_Keramikquer_1"

If another geometry is present with this name, the code doesn't do anything/shows any error.
So after a mass rename, I don't know how many of those renames are successful.
how can I solve this?

Hi @arifroni,
yes you are right, we don't throw any message/exception if an object name is already in design.
I fixed this in this PR: #4431 where we'll throw a warning message if object's name is already present and rename won't be successful.
In the meanwhile I'll suggest to check before assignment:
if my_name in hfss.modeler.object_names
Hope this helps,
Giulia


💡[Feature]: Integration of MongoDB for Contact Form

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
We can maybe integrate the site with mongodb and store the data from the contact form in mongodb.
Use Case
This feature would allow the contact form to be functional and would be a great enhancement to the site
Benefits
Allow better user experience and enhance the functionality of the webpage
Add ScreenShots
No response
Priority
High
Record

[X] I have read the Contributing Guidelines
[ ] I'm a GSSOC'24 contributor
[X] I want to work on this issue

@sanjay-kv ik the contribution period is over, but i think we should work on this, atleast this would make the form functional. If you have any other plans for the DB, thats fine then otherwise i think mongo is not a bad option.

@shreyash3087 can we make the website link public. ? you can paste the link to me here. i will add on the info page


rosdep crashes parsing entry for libglfw3-dev

Hi,
Lately "rosdep update && rosdep db" gives us the following error:

ERROR: Rosdep experienced an error: rosdep OS definition for [libglfw3-dev:ubuntu] must be a dictionary, string, or list: None
Please go to the rosdep page [1] and file a bug report with the stack trace below.
[1] : http://www.ros.org/wiki/rosdep

rosdep version: 0.11.5

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 136, in rosdep_main
    exit_code = _rosdep_main(args)
  File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 351, in _rosdep_main
    return _no_args_handler(command, parser, options, args)
  File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 359, in _no_args_handler
    return command_handlers[command](options)
  File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 701, in command_db
    inst_key, rule = d.get_rule_for_platform(os_name, os_version, installer_keys, default_key)
  File "/usr/lib/python2.7/dist-packages/rosdep2/lookup.py", line 140, in get_rule_for_platform
    raise InvalidData("rosdep OS definition for [%s:%s] must be a dictionary, string, or list: %s"%(self.rosdep_key, os_name, data), origin=self.origin)
InvalidData: rosdep OS definition for [libglfw3-dev:ubuntu] must be a dictionary, string, or list: None

We think the problematic commit is https://github.com/ros/rosdistro/pull/18112
It seems that '*': [libglfw3-dev] can't be parsed.

Thanks @MarcSeebold for reporting this.
Indeed the wildcart support has been added in rosdep 0.12.0
Can you try upgrading rosdep and see if the problem still happens ?
PS: you will need to install rosdep from the ROS apt repository or via pip as the version in ubuntu is too old

Thanks @mikaelarguedas for your very quick response!
I can verify that version "0.12.2" or rosdep works fine.
However, all our developers are stuck with version "0.11.5" that is available in Ubuntu14LTS apt repositories.
Adding a change like this to base.yaml breaks backward-compatibility.
Possible solutions I see:

Keep backward-compatibility of rosdistro with old rosdep versions
Fork rosdistro
Force users to upgrade to a more recent version of rosdep

We ship the latest version of rosdep (0.12.2) to Precise: see http://repositories.ros.org/status_page/indigo_default.html?q=python-rosdep
So you should be able to pull the latest Debian package on Ubuntu 14 LTS without a problem.

Thanks for the feedback. We'll upgrade to the latest rosdep version then.


Feature Request: Add option to change port

Port 8080 is hard coded.  I already have another server running on port 8080.
I'd like to be able to manually change the port bee-dashboard runs on.
It would be great if it could also do some checks on startup to see if port 8080 is already in use, then increment the port by 1 until it finds an available port.

Thanks @Zaphod101010 for the suggestion. It makes sense but is not currently our priority. If anyone wants to try and implement it I'll promise to review timely :).
In the meantime, if someone wants to run the project on a different port, the easiest way is to do following is to download the files from git, build the project and serve it with any http server.
git clone git@github.com:ethersphere/bee-dashboard.git
cd bee-dashboard
npm ci
npm run build

And serve the ./build folder with any http server you want. You can also use the http-serve we are using, just edit the configuration https://github.com/ethersphere/bee-dashboard/blob/aab0462047a3fcd87ba258b5486aede922865b1e/serve.js#L12-L16


bump typescript-eslint

fixes https://github.com/typescript-eslint/typescript-eslint/issues/10196

I'm okay with this if we want to force through a version bump for repos that aren't keeping up with lock file maintenance, but I don't think we'd rush to cut a skuba release for it.

Closing this since we cannot release just the plugin without releasing skuba :(


Not available on CDNs

The online documentation says that this library is available on jsDelivr and UNPKG. But the browser bundle seems to be missing:
Cannot find "/build/free-mobile.min.js" in<EMAIL_ADDRESS>

Fixed in version 11.4.1.


Latest release is missing

[Enter feedback here]
Hi, 10.0.34 is release and 10.0.35 is in preview. Can you add a section for 10.0.34 please? Many thanks.

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

ID: a81f2d2a-8eac-df73-bf48-2a59ad0ff5ac
Version Independent ID: 26eb9087-c4d9-85e4-957c-9144269800ee
Content: What's new or changed in Dynamics 365 Finance - Finance | Dynamics 365
Content Source: articles/finance/get-started/whats-new-home-page.md
Service: dynamics-365-finance
Product: ****
Technology: ****
GitHub Login: @twheeloc
Microsoft Alias: twheeloc

@jimwillsher, thank you for the feedback. The article has been updated and changes will be reflected later today.


Runtime exception when assigning a mapping constructor for user-defined type of json

Description:
$title. This works fine for other basic types which are supported by json.
E.g.
type T7 json;
// Following scenarios are working
T7 t15 = 21; // int
T7 t16 = 1.2; // float
T7 t17 = "JSON"; // string
T7 t18 = null; // nil
T7 t19 = true; // boolean

T7 t20 = {"a": 1}; // mapping constructor, runtime exception!

Steps to reproduce:
type T7 json;
T7 t20 = {"a": 1};

Output:
[2022-02-18 12:13:10,125] SEVERE {b7a.log.crash} - Given type can't be instantiated at runtime : json
io.ballerina.runtime.internal.util.exceptions.BallerinaException: Given type can't be instantiated at runtime : json
        at io.ballerina.runtime.internal.values.TypedescValueImpl.instantiate(TypedescValueImpl.java:90)
        at test2.init(test2.bal:57)
        at $_init.$gen$$0046$0060init$0062(.:1)
        at $_init.$moduleInit(.)
        at $_init.$lambda$$moduleInit$(.)
        at io.ballerina.runtime.internal.scheduling.SchedulerItem.execute(Scheduler.java:611)
        at io.ballerina.runtime.internal.scheduling.Scheduler.run(Scheduler.java:317)
        at io.ballerina.runtime.internal.scheduling.Scheduler.runSafely(Scheduler.java:284)
        at java.base/java.lang.Thread.run(Thread.java:834)

Affected Versions:
SL 2201.0.0

When creating a map value from the user-defined type which refers to the Ballerina in-built unions (anydata, json, any), it fails at runtime as the union type is not a proper map type. This needs to be fixed from compiler TypeChecker to check and provide the map type similar to a non-type-referenced type map constructor.
type Any any;

public function main() {
    Any a = {"age": 22};  // passed as any
    io:println(a);

    any b = {"age": 22}; // passed as map<any>
    io:println(b);
}

The fix needs to be done from compiler FE.  Hence, removing the jballerina tag.


Webdeployment common v2

creating webdeployment-common-v2 in common-npm-packages without upgrading the node dependency.
One of the commit 631fa44a7411abfba2bbfec2a740cae4979f1f0a contains the exact copy webdeployment-common-v2 from Tasks/Common folder, it can be used to see the changes in the copied files<PHONE_NUMBER>4f2884cae9cbbdb0a193ed44e210d1
Task name:
Description:

creating the folder structure in common-npm-packages
changed the package name to azure-pipelines-tasks-webdeployment-common
changed the package.json to add the new dependency and run script
changed the code to include the new path for 7zip and MSDeploy

Documentation changes required: (Y/N)
Added unit tests: (Y/N)
Attached related issue: (Y/N) issue and related PR
Checklist:

[ ] Task version was bumped - please check instruction how to do it
[x] Checked that applied changes work as expected

Merge on behalf of @agrataru


Made log color choosable

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

Project coverage is 97.31%. Comparing base (cb9e890) to head (fb68801).

Additional details and impacted files

@@           Coverage Diff           @@
##             main     #363   +/-   ##
=======================================
  Coverage   97.31%   97.31%
=======================================
  Files         153      153
  Lines        9461     9461
=======================================
  Hits         9207     9207
  Misses        254      254

see 1 file with indirect coverage changes


the version that I get just now  don`t work

In order to help us troubleshoot issues with this project, you must provide the following details:

ElasticDump version  i don`t know
Elasticsearch version  2.4.6
Node.js version (note that nodejs v8+ is required for this tool)    v6.16.0
Full command you are having issue with (with inputs and outputs)

       node --max-old-space-size=2048 /usr/bin/elasticdump \
  --input=http://<IP_ADDRESS>:9200/tiku_20181015 \
  --type=data \
  --output=http://<IP_ADDRESS>:9200 \
  --limit=20000 \
  --noRefresh

A data set you can share publicly which reproduces the problem

/usr/lib/node_modules/elasticdump/elasticdump.js:124
  async _loop (limit, offset, totalWrites) {
        ^^^^^

SyntaxError: Unexpected identifier
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:549:28)
    at Object.Module._extensions..js (module.js:586:10)
    at Module.load (module.js:494:32)
    at tryModuleLoad (module.js:453:12)
    at Function.Module._load (module.js:445:3)
    at Module.require (module.js:504:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/lib/node_modules/elasticdump/bin/elasticdump:6:21)

We don't support node v6. You need to upgrade to v8 or later.


DAS needs impl or maybe just tests for ReplaceNullCheckWithCast with null-assert patterns

https://github.com/dart-lang/linter/pull/4148 added linter support for null_check_on_nullable_type_parameter in null-assert patterns. I think DAS should have support to quick fix such patterns into cast patterns. I could be wrong that that is an appropriate fix...

@munificent

Yeah, changing it from ! to as T makes sense to me.

https://dart-review.googlesource.com/c/sdk/+/292100


[BACKLOG-12440] Updated UX for meta inject step dialog

Build Completed
:white_check_mark: This pull request has passed all validations.
Build Commands
ant -Dtestreports.dir=bin/reports/unit-test -f core/build.xml clean-all resolve jacoco && ant -f core/build.xml checkstyle publish-local

Cleanup Commands
rm -r ~/.ivy2/local || echo no publish local to remove

Changed files
  core/src/org/pentaho/di/i18n/messages/messages_en_US.properties
  plugins/meta-inject-plugin/src/main/java/org/pentaho/di/ui/trans/steps/metainject/MetaInjectDialog.java
  plugins/meta-inject-plugin/src/main/resources/OSGI-INF/blueprint/pentaho-metainject-pdi-blueprint.xml
  plugins/meta-inject-plugin/src/main/resources/org/pentaho/di/trans/steps/metainject/messages/messages_en_US.properties

@pentaho/r2d2


enhance validation when updating transaction topic

Motivation
Currently executing the command bin/pulsar initialize-transaction-coordinator-metadata will directly update the number of partitions of persistent://pulsar/system/transaction_coordinator_assign.
When accidentally misoperation, the number of partitions is directly modified, and there is no way to roll back (the number of partitions cannot be reduced).
Modifications
Simplely add an argument to determine whether forced update is allowed.

Closed. See https://github.com/apache/pulsar/pull/15301#issuecomment-1240140655.


Counterfeit Monkey consistently fails to autorestore

I feel like some number of months ago CM just didn't attempt to do an autorestore; now it does, but it always fails.

Have you tried switching some letters around?
(I'm very sorry for this dumb joke, I just couldn't resist).
On Sat, Jan 7, 2023 at 1:23 PM Dannii Willis @.***>
wrote:

I feel like some number of months ago CM just didn't attempt to do an
autorestore; now it does, but it always fails.
—
Reply to this email directly, view it on GitHub
https://github.com/curiousdannii/parchment/issues/133, or unsubscribe
https://github.com/notifications/unsubscribe-auth/APY6WRVBLKBMNYTJCCH2KFTWRFU3TANCNFSM6AAAAAATT6JIIE
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Getting the same error (as I reported in the ticket above)

Does the clear autosave button at least work for you?

It deletes the save, but the same problem occurs the next time I try to save.

@nukeop You only mean an autosave right, not a manual save? You can still restore those?

Haven't tried saving manually yet, I only tried closing the tab and reopening it.


Make the ServerAddress optional for the main docker registry.

Fixes #1308
Signed-off-by: Eric Promislow<EMAIL_ADDRESS>

The FreeBSD test failure looks like a flake -- image-pulling timed out

@ericpromislow Could you take a look at comments? 🙏


Add Llama style RoPE

Thank you Rafi! I have replaced the existing RelativePositionBiases with the new RoPE implementation


Quick start for Ranking - Include support for Triton inference

Closes #919, closes #912, closes #913, closes #914

rerun tests

Quick-start for ranking

Good idea. Done.


Why mongo?

Not an issue, really, just wondering, why mrq uses mongodb?
I mean, e.g. celery and python-rq use only one broker (redis or rmq) without additional databases.
I believe there is a pretty good reason for using two storages, so I wanted to ask about it :)
Thanks in advance.

Hi @DataGreed,
This is a legitimate question, that we will cover properly in some slides about mrq's design for the 1.0 launch.
Mongo is best suited to store and index documents, so that's where we store the metadata of the tasks. Redis works great as a shared data structure server, and its queues & sorted sets structures are a good fit for the semantics we need for a task queue. MongoDB would do a poor job at that, and Redis would do a poor job at storing document metadata (which is what RQ does, and makes the dashboard much less useful).
Some message brokers like RabbitMQ do both the queueing and the metadata storage, but they have very poor visibility and control on what's queued (see Celery's nightmarish implementation of cancels & retries).

@sylvinus wow, that's an interesting approach, thanks for the answer!
By the way, did you consider using redis hashes for that tasks or the problem is that you need more complex query to achieve smooth dashboard experience?
And, one more question: is mrq stable to use on production and on highloads? I've read some freightening articles about mongo locking under heavy loads

@DataGreed, RQ does store task metadata in redis hashes, but they are not indexed so not useful for a dashboard that has to manage thousands or millions of tasks.
MRQ is now stable for high workloads (we use it to run several million tasks a day). MongoDB does scale very well if you understand its specifics and there are countless articles on the web on that :)

Thanks! Will try

The dashboard is really brilliant!

@sylvinus may I ask some more questions about architecture and scaling? :) I was wondering how often is mongo used by mrq. As I understood so far, mrq uses redis as pubsub to notify workers about new tasks which they get from queus based on redis. Whenever a task is created, it hits mongo. it hits mongo again when the worker starts executing the task and third time when worker successfully executes the tasks or tasks fails to update execution time and results/stacktrace.
So mongo is hit at least 3 times per task for inserts/updates? by the way, can I delete completed tasks that are older than 1 day (for example) without breaking anything?

Thanks @DataGreed :)
When no failure happens on a regular queue, there are indeed 3 interactions with MongoDB: insert the task in status "queued", update its status to "started", update its status to "success". MongoDB can handle hundreds of writes / second even on modest configs so that should get you pretty far even without sharding.
We have recently added a mode where tasks that don't fail don't use MongoDB at all. Useful when you don't care about tracking which ones are started (see https://github.com/pricingassistant/mrq/blob/master/tests/test_raw.py#L283), and then your only bottleneck is Redis which has crazy fast writes.
Tasks have a result_ttl attribute (with a default setting in the config https://github.com/pricingassistant/mrq/blob/master/mrq/config.py#L155), it's the number of hours after which successful jobs are cleaned from Mongo.

Wow, @sylvinus thanks for the answer!

We have recently added a mode where tasks that don't fail don't use MongoDB at all.

That sounds even better!

Maybe it's a little off-topic, but I want to ask if I could use mrq without installing MongoDB at all? I'm currently searching for q lightweight task queue system to deal with only network operations (sending HTTP requests). All the tasks are one-time operations, any failed operation will be retried immediately for several times and then we just throw it away. The test server has very limited resource so I'm asking if I could use Redis only? Thanks.

Hi @JokerQyou.
We use MongoDB as a data store for the task metadata and for making the tasks visible and filterable in the dashboard, so it's required for MRQ to work properly, sorry!


Extract my volume

Question
Hi
I have my volume file and I want to extract them
my volume had 2 replicas but they failed and I could not attach the volume to pod so now I want to extract the data of volumes
Have can I do this
I use the instruction in longhorn site but it was not helpful and when I mount the created device there is nothing in it but my volume size is 1Gigabyte.
Witch file system do I need to make created device to  and then mount it?
when if use this link helps docker logs show this:
msg="Process pvc-18dbcb3b-2e08-4995-8b04-ef4ea171ebff-13f4e600-e has started at localhost:10015"
Environment:

Longhorn version:  v1.0.0
Kubernetes version: v1.20.2
Node config

2 ubuntu 18.04 node one master one worker
CPU per node: 4 core
Memory per node: 4 gig
Disk type: ext4
Network bandwidth and latency between the nodes: 1Gig

Underlying Infrastructure (e.g. on AWS/GCE, EKS/GKE, VMWare/KVM, Baremetal): Baremetal

Additional context
my volumes stuck in deleting

I have another problem, to bring my disk back I create a volume in UI and attach it to an node and then when it goes to healthy state I dettach it and copy content of my old replica to its dir and then attach it to node and create a pvc for it from UI and finally attach it back to my pod and its work , but my new volume size is bigger than old one and the volume in UI is in expannition progress for a long time, I see this log in my cluster:
"Failed to expand the engine at 2021-03-08T06:31:03Z: failed to start expansion: controller my-volume doesn't support on-line expansion, frontend: tgt-blockdev"

so what is this error when I want to bring up 3 node longhorn cluster:
kubectl -n longhorn-system logs -f longhorn-csi-plugin-6hksm longhorn-csi-plugin time="2021-03-11T12:46:04Z" level=info msg="CSI Driver: driver.longhorn.io csiVersion: 0.3.0" time="2021-03-11T12:46:14Z" level=fatal msg="Error starting CSI manager: Failed to initialize Longhorn API client: Get \"http://longhorn-backend:9500/v1\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"


Build: make compiler warnings errors by default

It is best practice to pass -Werror to the build to promote any compiler warnings to be errors. This will cause travis jobs to fail that might have warnings we did not notice and therefore will help us stay warning free from the start.
In cases where you temporarily want to ignore a warning to help speed development we can accept an option like WERROR=false make to temporarily stop warnings from being treated as errors.
We can follow the lead on this from https://github.com/mapbox/node-cpp-skel/pull/42

Just notice that -Werror is already hardcoded in the flags in master: https://github.com/mapbox/hpp-skel/blob/0d81050952b04fddc168ea12a3802c974b38aa3c/Makefile#L5.
So, after #24 is merged the followup will be to add this back, but make it an option that can be disabled.


OpenColorIO DisplayTransform

Added a node for an OpenColorIO DisplayTransform, and setup the gui startup files to use it for the viewer overlay and color picker.

Rebased fixes in


False Positive in Windows telemetry List

Hey, thanks for providing the blocklists.
I've noticed that the following entries in the Windows telemetry list won't allow a login to XBOX Live - which is required to play MS Games, like Microsoft Flight Simulator:

device.auth.xboxlive.com
xsts.auth.xboxlive.com

Maybe you can remove them from the list or add them in a whitelist file.

Thank you @whoot for pointing this out.
I've commented those two entries from the list.


Create jenkins slave for perf

Right now we have http://jenkins-perf.noms.io/ because we wanted a decicated server for the perf tests. Instead we should use a jenkins slave and run the tests there.

@kalman @zcstarr @arv


Fix issue of retain_outputs

This PR is to fix an issue of retain_outputs (that is discussed in #2586).
The issue is that an output array might get inaccessible during backward even when it is declared to be retained by retain_outputs(). As far as I understand correctly, this issue may happen only when the variable node of the output array is a leaf node in a computational graph. So, my proposal to fix/work-around the issue is:

to make a temporary reference from the function to the variable node when an output array is specified to be retained by retain_outputs()
to remove the temporary reference when the variable node is used as an input by another function.

I've confirmed that the work-around above actually solve the case mentioned in #2586 while keeping GPU memory usage small.

I thought that the issue that I have noted in #2586 may also happen when the output node is not a "leaf" (I assume you are meaning the "root" of the backward graph). For example, the following code which is a modification to the code
z, w = func(x, y)
u = some_function(w)
del w, u

will also make w unavailable in the backward of func.
I also think it is dangerous to introduce a circular reference to the computational graph; the current code of this PR looks introducing a memory leak when the user tries to release an output variable of a function that retains the output immediately before applying any other function to that.

I am now suspecting that it is difficult to take the strategy of setting output_data just before calling backward instead of setting it in __call__. The life span of output_data should be equal to the life time of the variable node itself.

I agree with you that circular reference in a computational graph is prone to be problematic.
BTW, seems this circular reference is resolved by python GC.
In the case above, if the circular reference is not resolved:

The variable node of u and the some_function have reference each other (circular reference), so they are not released when the variable of u is deleted by user.
There is a reference from the some_function to the variable node of w, so the variable node of w is not released whtn the variable of w is deleted by user.

I am now suspecting that it is difficult to take the strategy of setting output_data just before calling backward instead of setting it in __call__.

I've modified the branch based on your comment above. The approach taken now is that

to set output_data in __call__() for arrays specified to be retained and
to update output_data in backward() when corresponding variable node is available.

You may wonder why 2. is necessary.  The reason is that the pointers (memory address) of arrays may change between the __call__() and the backward() considering recompute feature discussed in #2612. If you think it should be done in #2612, I will do so.


ToC show/hide animation is gone, but the delay is still there

[show]/[hide] buttons used to trigger a nice css animation, but it is no longer there.
However, the animation delay is still there. That is, you press [hide], then wait 1 second, and only then it actually hides.

Does https://github.com/perl6/doc/pull/687 will fix the problem? If yes, merge it please.

If I'm not mistaken, your pull request removes the animation completely. However, another fix would be to fix the animation.
Do we want the animation to be there or not?

CSS animations are fine in my eyes because the reader can make them go away with a userstyle. The less javascript we got the better. A botched setInterval can drain a battery rather quickly.

Yes, you are right. I can revert js animation, firstly I thought title somewhat implies that delay should be removed.
If you want CSS animation as a substitution of js version, we can remove js version for now and create a ticket like "Implement css animation for ToC box". What do you think?
As for me, animation is unnecessary, but it doesn't bother me in any way if it's quick enough.

please remove the JS version

The show/hide feature was originally added as an easier way to get to content. Now that gfldex++ moved the ToC to the side, there's absolutely no reason for the existence of the show/hide feature and it should be yanked out entirely.

moved the ToC to the side, there's absolutely no reason for the existence of the show/hide feature and it should be yanked out entirely

And now I realized that it looks completely different on larger screens…
On a small screen the toc is still on the top, so [show]/[hide] feature still makes sense (or not?). Also, the links are blue, hmm…

On a small screen the toc is still on the top, so [show]/[hide] feature still makes sense (or not?).

Oh, right, I forgot about smaller screens. I guess there is still use for it. The animation can likely be fixed by changing ol to tbody in here: https://github.com/perl6/doc/blob/master/html/js/main.js#L42 though I think there was a discussion above about removing the JS version.

Now this situation looks more interesting.
So we have two choices:
1.Fix JS animation.
2.Remove JS animation and implement CSS animation(without state storing in the cookies) instead later.
I suppose, we can't throw away show/hide feature completely, because of small screens.
I can discard my pr or extend it to full removing of js part, but, I afraid, I can't make a css implementation, so new issue still will be created. And I can't decide what to choose by myself, since I'm quite a novice here.

Closed by https://github.com/perl6/doc/pull/767

It seems we should reopen this.
Current css animation doesn't affect height and based on font-size/padding/margin transformations. Due to this, element sizes are still the same. even if element is not visible. It's not really bad, but when someone uses a small screen, ToC moves to the page center and we have an empty space. It's bad.
The problem is: to animate show/hide, we need to know exact max-height of element(auto doesn't work). And this height is different for every page. Possible solutions are:

Add some js to compute max-height and inject it into css every time(i.e. js+css variant, maybe it will be more efficient than js version).
Throw away css animation and use js-animation.
Throw away animation at all.

Animations on web pages have two functions. Convey time based information to the viewer simply be using progression of time. Guide the attention of the viewer to changed content.
There is no time based information to be conveyed. If you miss the fact that the ToC just disappeared, no amount of animation will help you. Also, we don't got viewers, we got readers. Reading and animations don't mix.
I'm a big fan of form follows function. If you can show me the function of that animation I'm happy to fix it.

I suppose, we should switch to js-animation for now, since it's bugless(or better than current css-solution anyway) and open issue like "Create a cool and free and better css-animation" in case if some css-priest/magician(or just someone better than me) will be here looking for a work.

Finally closed with https://github.com/perl6/doc/commit/d0dfc5ab6f6f5a3f3fe58a14e2e2d16f8f8b846c


Doesn't work for login brute force protection

I installed this to use for login brute force protection in a Symfony 3.4 project and found it didn't work at all for that use case. That is because onRequest in the listener registered by this bundle is never called on failed logins, as it has lower priority than FirewallListener performing the authentication.
I tried changing the priority from 1 to 9 in RequestListener::getSubscribedEvents() and got it working as expected. That is not a proper fix though, as in other use cases the listener being called after authentication is correct (and required) behaviour.
So what is needed is a way to register the listeners with different priority depending on what it is to be used for.

As I understand, to be called after FirewallListener is needed only when user-related identifier is used for bruteforce attempt counting, like username. Or do you see any other use-case?
What I'm thinking about is to relate this with identifiers used. If it can be resolved before FirewallListener (like IP), it should run as soon as it can.

It is not just a matter of identifier used , but also of what is being limited. Limiting authentication failures, essentially limiting access to the FirewallListener is different from rate-limiting valid requests to the actual application code behind that firewall.

When limiting authentication failures with any identifier, user based or not, it must run before FirewallListener, because the that is what we are limiting access to. The event does not propagate beyond FirewallListener on authentication failure anyway.

When rate-limiting valid requests per user it must act on authenticated user identity and thus must run after FirewallListener, even if the identifier could be resolved earlier.

When rate-limiting requests based on ip address, or some other identifier not related to user identity there is no hard requirement to run before or after FirewallListener, but as early as possible is preferable for performance reasons.

Each identifier provider can have priority assigned and run after FirewallListener. The default is to run before that (with priority 1000).
This fixes the issue with not being able to limit authentication failures when authenticating with FirewallListener.
To note some details on your written use-cases:

If limiting authentication failures with any identifier which could be provided before authentication ( (IP etc), it will work as expected. Limiting authentication failures by username is (and was not) supported out-of-the-box with listener configurations, as username is provided from the token, which is not set until authentication is passed.

If rate-limiting by user, it will run after FirewallListener, as no user would be got before that.

If rate-limiting by any other identifier, it will run with priority 1000, which is before any other default listener in symfony. This will allow to rate-limit authentication failures.

Please comment if it does not yet suit your needs.


fix: Wallet Attestation response code and method

This PR aligns the Wallet Attestation request with the REST specification

Please, add the normative text according to the non normative examples

Can you give an example? Originally there was no other additional text

Please, add the normative text according to the non normative examples

Can you give an example? Originally there was no other additional text

During the weekly meeting we agreed that along with the non normative example we need to better clarify the beahviour of the implementations using normative language and clear definition about the requirements these must satisfy
therefore we decided that this PR requires normative language within the appropriate section describing the result represented in the non normative examples


Doesnt work on windows

C:\Users\cyberpwn\Documents\development\workspace\Crucible\crucible\windows\flutter\ephemeral.plugin_symlinks\flutter_secure_storage_windows\windows\flutter_secure_storage_windows_plugin.cpp(6,10): fatal error C1083: Cannot open include file: 'atlstr.h': No such file or directory [C:\Users\cyberpwn\Documents\development\workspace\Crucible\crucible\build\windows\plugins\flutter_secure_storage_windows\flutter_secure_storage_windows_plugin.vcxproj]

Did you note this part of the readme?

Configure Windows Version
You need the C++ ATL libraries installed along with the rest of Visual Studio Build Tools. Download them from here and make sure the C++ ATL under optional is installed as well.

flutter_secure_storage: 9.0.0
Running on the desktop, an error occurred.
Flutter (Channel stable, 3.19.2, on Microsoft Windows [版本 10.0.19042.630], locale zh-CN)
    • Flutter version 3.19.2 on channel stable at D:\flutter\flutter
    • Upstream repository https://github.com/flutter/flutter/
    • FLUTTER_GIT_URL = https://github.com/flutter/flutter/
    • Framework revision<PHONE_NUMBER> (6 days ago), 2024-02-27 16:51:22 -0500
    • Engine revision 04817c99c9
    • Dart version 3.3.0
    • DevTools version 2.31.1
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[√] Connected device (3 available)
 Windows (desktop) • windows • windows-x64    • Microsoft Windows [版本 10.0.19042.630]

D:\Program Files\VisualStudio\Microsoft Visual Studio\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(382,5): error MSB3491: δ�����ļ���flutter_secure_storage_windows_plugin.dir\Debug\flutter_.2DBB85DB.tlog\flutter_secure_storage_windows_plugin.lastbuildstate��д�������С�·��: flutter_secure_storage_windows_plugin.dir\Debug\flutter_.2DBB85DB.tlog\flutter_secure_storage_windows_plugin.lastbuildstate ���� OS ���·�����ơ���ȫ�޶����ļ����������� 260 ���ַ��� [D:\test\build\windows\x64\plugins\flutter_secure_storage_windows\flutter_secure_storage_windows_plugin.vcxproj]
Error: Build process failed.

I am closing all older issues. If this issue still exists in the latest version, please let me know.


Nostr Wallet Connect (NIP-47)

Is your feature request related to a problem? Please describe.
We want to let stackers use their SN account more seamlessly with the rest of the Lightning ecosystem.
Nostr Wallet Connect is one option for this.
LNDHub is another.
Describe the solution you'd like
Support NIP-47

There are many more options for bidirectional flows:

LNC (lnd)
WebLN
Commando (cln)
Strike API?

Withdrawal only:

lightning address

There are many more options for bidirectional flows:

Yeah, I thought we would track each integration individually but I guess it's better to have them all at one place.
Renamed this ticket now :)

We seem to have a number of related tickets for this. It's probably better to list wallet options out individually at this point.


[Question] - When secret in the Secrets Manager rotate does pod needs to be restarted

Hi @jicowan
Just would like to ask if the secret manager rotates its secret, does the pod have to be restarted ?
As it is an "init-container" may not be able to reflect the changes on the flight ?

@haofeif we're in the process of building the rotation piece.  There should be another issue asking for feedback about the different approaches we've considered.  At present, you have to re-deploy the container each time the secret rotates.


fix typo and remove debug mode on production

fix typo and remove debug mode on production
minor typo fix
debug mode should be manually added during development and should not be included in docker container.
Love this project BTW 😃

Thank you for your PR, best wishes.


Can't Install CacheBar on Rails 3 Ruby 1.9.2

I am running Rails 3.0 on Ruby 1.9.2 and when I try running bundle install it fails installing the SystemTimer dependency
Installing SystemTimer (1.2.3) with native extensions /Users/dev/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:533:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
Is there a way to not use the SystemTimer dependency?

Fixed in the 1.0.2 release. Thanks!


Conditionally memoize certain private methods in EditLinkTag

Closes #162
Summary
Jekyll 4.0 caches parsed Liquid Templates. Therefore, when {% github_edit_link %} is used through a layout or an include, there is just one instance of Jekyll::GitHubMetadata::EditLinkTag in memory.
This poses a problem when attributes required for rendering the tag are memoized, resulting in the output of the same result for every page.
The changes proposed here allows compatibility with Jekyll 3.x where memoization improves performance and avoids memoizing when using Jekyll 4.0

@jekyllbot: merge +dev


Add support to log request method/path seperately

From<EMAIL_ADDRESS>on November 03, 2014 23:20:35
Currently the RequestPrinter only supports printing the request method and path if the log detail is ALL:
if (logDetail == ALL) {
addSingle(builder, "Request method:", requestMethod);
addSingle(builder, "Request path:", completeRequestPath);
addProxy(requestSpec, builder);
}
It would be nice to be able to log this portion on its own as you can with the params, headers, cookies, and body portions of the request.
What version of the product are you using?
2.3.4
Original issue: http://code.google.com/p/rest-assured/issues/detail?id=368

From<EMAIL_ADDRESS>on November 09, 2014 23:15:11
Status: Accepted
Labels: -Type-Defect -Priority-Medium Type-Enhancement Priority-Low

From<EMAIL_ADDRESS>on November 13, 2014 10:52:44
Are you looking for both the method and path at the same time or only one at a time?

From<EMAIL_ADDRESS>on November 13, 2014 11:32:52
Yea both at the same time. My use case is I have a really large request body I don't want to log but I want to log everything else still. And the above section is the only portion that can't be specified individually to be logged.

From<EMAIL_ADDRESS>on November 13, 2014 11:38:52
Hmm so what would you call call the request method and path with the same word?

From<EMAIL_ADDRESS>on November 13, 2014 12:49:19
hmm can't think of anything of the top of my head. If it makes better sense to do them separately that works too.

From<EMAIL_ADDRESS>on November 13, 2014 22:09:18
I think that would be better

From<EMAIL_ADDRESS>on November 14, 2014 10:41:55
I've added support for this in master. given().log().method() and given().log().path(). Is this ok? Or would given().log().requestMethod() and given().log().requestPath() be better?
Status: Fixed

From<EMAIL_ADDRESS>on November 14, 2014 10:47:56
path and method should be fine.
Thanks!

From<EMAIL_ADDRESS>on November 14, 2014 22:21:38
Thanks


ARROW-18361: [CI][Conan] Merge upstream changes

Updated: https://github.com/conan-io/conan-center-index/pull/14111

@github-actions crossbow submit -g conan

@github-actions crossbow submit -g conan


unable to reproduce correct model

hello, I trained the model with the config below.
torchrun --nnodes=1 --nproc_per_node=6 --max_restarts=1 --rdzv_id=42353467
--rdzv_backend=c10d ./team_code/train.py --id train_id_002 --batch_size 32
--setting all --root_dir ./data --logdir ./output --use_controller_input_prediction 1
--use_wp_gru 0 --use_discrete_command 1 --use_tp 1 --continue_epoch 1 --cpu_cores 1 --num_repetitions 3 \
I didn't change anything else. The model can not drive properly in longest6, is there anything I missed to set in the config?
Thank you.

{
"id": "train_id_002",
"epochs": 31,
"lr": 0.0003,
"batch_size": 32,
"logdir": "./output/train_id_002",
"load_file": null,
"setting": "all",
"root_dir": "./data",
"schedule_reduce_epoch_01": 30,
"schedule_reduce_epoch_02": 40,
"backbone": "transFuser",
"image_architecture": "regnety_032",
"lidar_architecture": "regnety_032",
"use_velocity": 1,
"n_layer": 2,
"val_every": 2,
"sync_batch_norm": false,
"zero_redundancy_optimizer": 1,
"use_disk_cache": 0,
"lidar_seq_len": 1,
"realign_lidar": 1,
"use_ground_plane": 0,
"use_controller_input_prediction": 1,
"use_wp_gru": 0,
"pred_len": 8,
"estimate_class_distributions": 0,
"use_focal_loss": 0,
"use_cosine_schedule": 0,
"augment": 1,
"use_plant": 0,
"learn_origin": 1,
"local_rank": -999,
"train_sampling_rate": 1,
"use_amp": 0,
"use_grad_clip": 0,
"use_color_aug": 1,
"use_semantic": 1,
"use_depth": 1,
"detect_boxes": 1,
"use_bev_semantic": 1,
"estimate_semantic_distribution": 0,
"use_discrete_command": 1,
"gru_hidden_size": 64,
"use_cutout": 0,
"add_features": 1,
"freeze_backbone": 0,
"learn_multi_task_weights": 0,
"transformer_decoder_join": 1,
"bev_down_sample_factor": 4,
"perspective_downsample_factor": 1,
"gru_input_size": 256,
"num_repetitions": 3,
"bev_grid_height_downsample_factor": 1,
"wp_dilation": 1,
"use_tp": 1,
"continue_epoch": 1,
"max_height_lidar": 100.0,
"smooth_route": 1,
"num_lidar_hits_for_detection": 7,
"use_speed_weights": 1,
"max_num_bbs": 30,
"use_optim_groups": 0,
"weight_decay": 0.01,
"use_plant_labels": 0,
"use_label_smoothing": 0,
"cpu_cores": 1,
"tp_attention": 0,
"multi_wp_output": 0
}

Your settings look mostly fine. You don't seem to do two stage training which will reduce DS but only for a few points.
If I understood you correctly the model didn't drive at all, so this isn't the main issue.
--cpu_cores 1 is strange, either set it to number of cores on your machine or 0 if you want to turn off multithreading. This setting only affects training speed so its not the problem.
I would suspect that the training is not the issue here, but you should make sure that the training losses properly went down.
Can you turn on inference debug mode by setting the env. variables:
SAVE_PATH=/some/path/# If set to system folder, this folder will be used as route to store logging and debug information.
DEBUG_CHALLENGE=1 # 1: Generate visualization images at SAVE_PATH

to see how the model output looks like.
When loading the model you should make sure that there is no unnecessary files like the optimizer file in the folder you load, otherwise model loading might fail silently (the provided script links/copies the relvant file to an eval folder).

I did not move the optimizer.pth file, etc.
Now it drives fine.
Thank you!


[BUG] k3d in host network with registry config - Failed Cluster Preparation: Failed Network Preparation: failed to create cluster network: failed to check for duplicate docker networks: failed to parse IP Prefix of network "host"'s member mqtt_bridge: netaddr.ParseIPPrefix(""): no '/'

What did you do

How was the cluster created?

k3d cluster create mycluster --api-port myclusterhostname:6443 --network host --no-lb --k3s-arg '--disable=traefik@server:*' --k3s-arg '--disable=metrics-server@server:*' --registry-config "/home/user/config.yaml"

with "/home/user/config.yaml" as:
mirrors:
  "myregistry:5000":
    endpoint:
      - http://myregistry:5000

What did you do afterwards?

initially I could create a cluster without registry config -> k3d cluster create mycluster --api-port myclusterhostname:6443 --network host --no-lb --k3s-arg '--disable=traefik@server:*' --k3s-arg '--disable=metrics-server@server:*'"
then I ran the problematic command (with registry config) and after that I can't run the command without registry config again. In other words I can't have a semi running environment :/.
I tried rebooting the machine/restarting the docker service... not sure what else to do to fix my environment.
tried in arm64/amd64 ubuntu24.04/ubuntu20.04/raspios all broken

What did you expect to happen
Run a cluster in host network that can use a local registry. I did try creating the cluster with --create-registry and --use-registry.
Screenshots or terminal output
Logs in a clean environment without registry config e.g. k3d cluster create mycluster --api-port myclusterhostname:6443 --network host --no-lb --k3s-arg '--disable=traefik@server:*' --k3s-arg '--disable=metrics-server@server:*'"

Logs in a clean environment with registry info e.g. k3d cluster create mycluster --api-port myclusterhostname:6443 --network host --no-lb --k3s-arg '--disable=traefik@server:*' --k3s-arg '--disable=metrics-server@server:*' --registry-config "/home/user/config.yaml"

Which OS & Architecture

ubuntu

name: docker
endpoint: /var/run/docker.sock
version: 20.10.17
ostype: linux
os: Ubuntu 20.04.4 LTS
arch: x86_64
cgroupversion: "1"
cgroupdriver: cgroupfs
filesystem: extfs

raspios

name: docker
endpoint: /var/run/docker.sock
version: 20.10.17
ostype: linux
os: Debian GNU/Linux 11 (bullseye)
arch: aarch64
cgroupversion: "2"
cgroupdriver: systemd
filesystem: extfs

Which version of k3d

ubuntu

k3d version v5.1.0
k3s version v1.21.5-k3s2 (default)

raspios

k3d version v5.4.3
k3s version v1.23.6-k3s1 (default)

Which version of docker

ubuntu

Client: Docker Engine - Community
 Version:           20.10.17
 API version:       1.41
 Go version:        go1.17.11
 Git commit:        100c701
 Built:             Mon Jun  6 23:02:57 2022
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.17
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.17.11
  Git commit:       a89b842
  Built:            Mon Jun  6 23:01:03 2022
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.6
  GitCommit:        10c12954828e7c7c9b6e0ea9b0c02b01407d3ae1
 runc:
  Version:          1.1.2
  GitCommit:        v1.1.2-0-ga916309
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

raspios

Client: Docker Engine - Community
 Version:           20.10.17
 API version:       1.41
 Go version:        go1.17.11
 Git commit:        100c701
 Built:             Mon Jun  6 23:02:34 2022
 OS/Arch:           linux/arm64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.17
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.17.11
  Git commit:       a89b842
  Built:            Mon Jun  6 23:01:01 2022
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.6.6
  GitCommit:        10c12954828e7c7c9b6e0ea9b0c02b01407d3ae1
 runc:
  Version:          1.1.2
  GitCommit:        v1.1.2-0-ga916309
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

just a heads up. I managed to make it run, the trick was to install the registry after creating the cluster. Hope that helps to identify the issue. Cheers


CLI env not detected

I have the following structure:
-- env
  |_ .env
  |_ prod.env               (API_URL=https://some.thing)
-- requests
  |_ something.http         (uses {{API_URL}})
-- package.json             (just script definitions)

When I run:
httpyac --env prod --all ./requests

I get:
ReplaceVariableHook: javascript failed
ExecuteHook: variableReplacer failed
ReferenceError: API_URL is not defined
    at Object.<anonymous> (requests/something.http:6:20)
    at Object.<anonymous> (~/.nvm/versions/node/v16.5.0/lib/node_modules/httpyac/dist/index.js:1:141494)
    at Generator.next (<anonymous>)
    at ~/.nvm/versions/node/v16.5.0/lib/node_modules/httpyac/dist/index.js:1:139999
    at new Promise (<anonymous>)
    at r (~/.nvm/versions/node/v16.5.0/lib/node_modules/httpyac/dist/index.js:1:139744)
    at Object.t.runScript ~/.nvm/versions/node/v16.5.0/lib/node_modules/httpyac/dist/index.js:1:141083)
    at Object.<anonymous> (~/.nvm/versions/node/v16.5.0/lib/node_modules/httpyac/dist/index.js:1:165669)
    at Generator.next (<anonymous>)
    at ~/.nvm/versions/node/v16.5.0/lib/node_modules/httpyac/dist/index.js:1:165188

It used to work before as far as I remember. And the environment is still correctly picked up by the vscode extension (and everything runs fine there). It's just the CLI which no longer works.
I'm using httpyac v3.1.0 (unfortunately I don't remember what version it used to work on but I'm pretty sure I haven't changed my directory structure since it last worked). 🤔

The environment was unfortunately not passed correctly by the cli in to the logic adapted for the extension.
The bug will be fixed with the next version.


Airflow Nav Item Links to https://docs.meltano.com/

Migrated from GitLab: https://gitlab.com/meltano/hub/-/issues/194
Originally created by @pnadolny13 on 2022-02-07 15:00:43

View 2 previous comments from the original issue on GitLab


Cannot brew inside a jupyter-lab cell due to another loop running

I've tried this simple recipe:
import alkymi as alk

foo=alk.arg("something", "foo")

@alk.recipe()
def do(foo):
    return f"doing {foo}"

do.brew(jobs=1)

But i'm getting:
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
Cell In[79], line 9
      5 @alk.recipe()
      6 def do(foo):
      7     return f"doing {foo}"
----> 9 do.brew(jobs=1)

File python3.10/site-packages/alkymi/recipe.py:107, in Recipe.brew(self, jobs, progress_type)
    105 # Lazy import to avoid circular imports
    106 from .core import brew
--> 107 return brew(self, jobs=jobs, progress_type=progress_type)

File python3.10/site-packages/alkymi/core.py:437, in brew(recipe, jobs, progress_type)
    435 graph = create_graph(recipe)
    436 statuses = compute_recipe_status(recipe, graph)
--> 437 result, _ = evaluate_recipe(recipe, graph, statuses, jobs, progress_type)
    438 return result

File python3.10/site-packages/alkymi/core.py:383, in evaluate_recipe(recipe, graph, statuses, jobs, progress_type)
    381 if progress is not None:
    382     progress.start()
--> 383 output, checksum = loop.run_until_complete(_execute())
    384 if progress is not None:
    385     progress.stop()

File /usr/lib/python3.10/asyncio/base_events.py:625, in BaseEventLoop.run_until_complete(self, future)
    614 """Run until the Future is done.
    615
    616 If the argument is a coroutine, it is wrapped in a Task.
   (...)
    622 Return the Future's result, or raise its exception.
    623 """
    624 self._check_closed()
--> 625 self._check_running()
    627 new_task = not futures.isfuture(future)
    628 future = tasks.ensure_future(future, loop=self)

File /usr/lib/python3.10/asyncio/base_events.py:586, in BaseEventLoop._check_running(self)
    584     raise RuntimeError('This event loop is already running')
    585 if events._get_running_loop() is not None:
--> 586     raise RuntimeError(
    587         'Cannot run the event loop while another loop is running')

RuntimeError: Cannot run the event loop while another loop is running

Environment:
$ python --version
Python 3.10.9

$ pip list | grep -iE 'notebo|jupy|ipy|alkymi'
alkymi                    0.2.0
ipydatagrid               1.1.15
ipykernel                 6.22.0
ipyleaflet                0.17.2
ipympl                    0.9.3
ipython                   8.11.0
ipython-genutils          0.2.0
ipyvue                    1.9.0
ipyvuetify                1.8.5
ipywidgets                7.7.3
jupyter                   1.0.0
jupyter_client            7.4.1
jupyter-console           6.6.3
jupyter_core              5.3.0
jupyter-events            0.6.3
jupyter-resource-usage    0.7.2
jupyter-server            1.23.6
jupyter_server_fileid     0.8.0
jupyter_server_terminals  0.4.4
jupyter_server_ydoc       0.8.0
jupyter-ydoc              0.2.3
jupyterlab                3.6.2
jupyterlab-code-formatter 1.5.3
jupyterlab-pygments       0.2.2
jupyterlab_server         2.20.0
jupyterlab-system-monitor 0.8.0
jupyterlab-topbar         0.6.1
jupyterlab-widgets        1.1.2
notebook                  6.5.3
notebook_shim             0.2.2
scipy                     1.10.1

Also tested on latest PY3.11
Also tested with latest sources from GitHub.

Thanks for reporting this. I'll check possible fixes for this. In the meantime, you might be able to make progress by reverting to alkymi v0.0.7

@ankostis this should now be fixed in v0.2.1, please confirm if everything works now :)

Indeed it works, thank you.
(nice response time btw)


Release Notes for 1.0.0-RC1

Description
Release Notes for 1.0.0-RC1
Issues Resolved
[List any issues this PR will resolve]
Check List

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

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Creating new PR


Show coverage measurement option

Adds an option to display the coverage measurement name under the coverage percentage. This option is useful on a dashboard where multiple widgets are used to display different measurements. When this checkbox is checked, the "Percent" label at the bottom of the widget is updated to say "Percent (Lines)" for example.

Note: I'm not setup to easily deploy this change locally, so I'm submitting this PR untested.


Misleading error message for incorrect rendering of  components.

When a component is rendered without / in ( instead of ) the error message message doesn't specifically describe a missing character rather it describe an issue with expecting "elseif" or "else" or "endif".
Steps To Reproduce:

Create a component are described in docs

Example:
resources/views/components/reuse.blade.php
<div>
	Hello! I'm a Component!
</div>

Render the components in another view.
Example:
resources/views/welcome.blade.php

<x-reuse  >
<!-- Instead of <x-reuse  /> --!>

The message display when the view is return.

I think a better error message explaining that there is a missing character on the syntax could be more helpful.

This seems like a feature request and an attempted PR wasn't accepted so it would seem we're not going to change anything here right now.


chore: bdd-nh-import-1584523530 to 0.0.1

chore: Promote bdd-nh-import-1584523530 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


platform, proxy: minor fixes/updates

Noticed a few nits/improvements while familiarizing
myself with the code.

jenkins build pilot/presubmit

jenkins rebuild pilot/presubmit

Thanks!
I've incorporated this PR into #852 since it would cause merge conflicts and jenkins doesn't seem to pick this one up for testing.

Thanks y'all for the review and merge!


Use schedule name as class name if unspecified

resque-scheduler will use the name of the scheduler as the job class name, if the name isn't specified in the 'class' attribute of the schedule.  This was not being supported in Active Scheduler.  The workaround is to simply specify the class name, but this change makes Active Scheduler that much more of a drop-in.

Like the idea, just have that one question ^

Actually, I push --forced your suggestion so this PR is still usable.  Thanks for the feedback!

Looks good, I'll merge and release this a bit later today :+1:

Released as 0.0.3


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

Thank you for translation but we currently have no plans to translate the Readme.md to other languages.


Add ticket view

Closes #1208
TODO

[x] Write tests
[X] Display attachments -- Note: API doesn't support this yet. Breaking it out into #1501

Coverage decreased (-0.9%) to 82.34% when pulling db12bce795c01014df90f68cd07f1913921a5b81 on eatonphil:ticket-view into 12859b849cf0a5a631092586bfa317ad501c700e on linode:master.

Coverage decreased (-1.08%) to 82.164% when pulling 9debe91fbbacdbcf725140d7fa85aa4b76cefd88 on eatonphil:ticket-view into 12859b849cf0a5a631092586bfa317ad501c700e on linode:master.

Coverage decreased (-1.09%) to 82.147% when pulling 7104231b2cba97688a5c23a8c0188821a5392f06 on eatonphil:ticket-view into 12859b849cf0a5a631092586bfa317ad501c700e on linode:master.

Coverage increased (+0.1%) to 83.379% when pulling fe05fd9f63b03f5a6d86536495627abadd722a05 on eatonphil:ticket-view into 12859b849cf0a5a631092586bfa317ad501c700e on linode:master.


Update: Twitch.Twitch version 8.0.0

Removing old versions to reduce clutter
Microsoft Reviewers: Open in CodeFlow

/azp run


The menu button in mobile view does not work

For some reason, the menu button when browsing in my cell phone and in Chrome Dev Tools using a mobile view is not working.
website: astroforos.com

By the way, Im using 2.5.0

Duplicate of #145. Check out the release notes for a workaround.


builtGeneratedDiagnosticMessagesJSON task probably shouldn't be async

Additionally, use mkdirP to ensure directory existence, rather than only copying if present.

:+1:

:+1:

This has been fixed in master.