Add a hosted web version for quick access!

Hello nice project, and it's funny I have the same similar project that I have been working on also for some time now, just I work on it very slow in my free time, almost same stack though me am using just react, shadcn and tauri plus a few editors. None the less, am excited to try this out.
so could you host a web version put link to home page so that people can goto to it quickly and test this out, plus it will then be easier to install the pwa...
I also want to see if I can make a linux build with tauri we get that available as well. Nice work!

I have also seen the install instructions, too complex for someone just to try out this, can you switch to a simpler database that doesn't require a lot from users, something like pocket base, sqlite or even supabase can be simpler, or app write like any, though would recommend an offline first db then you could have a cloud version that you already setup yourself with a dashboard for users to create an account and link it to their app. you host them in that way and you can make that a paid feature and then the offline db option be default and free... just saying... am not going to go through firebase as me now just try this out honestly but can I just run it and see how it works without setting up the firebase stuff???

@Hussseinkizz I do have a Vercel button.
You can find it on README.md

However, you still have to setup Firebase and Algolia project to get the config

can you switch to a simpler database that doesn't require a lot from users

I apologize for not be able to implement this request. Because it will take a lot of efforts.
P/s: I've been recording a setup video, head to my discord server to hear the updates

@Hussseinkizz  video released
https://www.youtube.com/watch?v=aBVF-3NE_1Q

Ohh sure, gonna follow through will give feedback!


New documentation for 🤗 Hub

This is a new proposal for documentation. It won't be submitted until the course release so we keep similar design with it.
FYI @lewtun in case you want to add ideas :)

Should we also provide a bullet point list of the libraries documentation (transformers, datasets, tokenizers, accelerate) in one of the pages (open-source?)

I think it's already in main navigation no? I'm not sure if adding it here would help considerably.

Some of the doc is still transformers-specific, for example in the inference-api page, while it doesn't need to be

I improved this a bit to make it more generic and explain how it works for other libraries

It isn't super clear how one would add support for a library. Especially now that everything's merged into this repo, let's think of a way to centralize all information and make it super easy

The libraries page has a section that has

How can I add a new library to the Inference API?
You can find detailed instructions in huggingface_hub.

I don't think we should document how to add a new library in the Hub documentation. Instead, I think we need to work on improving the documentation within this repo and provide tools/clear guides on adding new libraries/pipelines. I think that should be a separate effort from this PR.

follow up tweaks in #109


request help: http[].match.exprs[].subject.name shoule be case sensetive

Issue description
I want to match the url like http://xxx?accountId=111,  but I found the scope.name will be format as lower case, such as accountId will be changed to accountid which can only match the url like http://xxx?accountid=111
I create the ApisixRoute like this
    match:
      exprs:
      - op: In
        set:
        - "111"
        subject:
          name: accountId
          scope: Query

And the route in apisix is:
{
    "action": "get",
    "count": 1,
    "node": {
        "key": "\/apisix\/routes\/3747de50",
        "value": {
            "labels": {
                "managed-by": "apisix-ingress-controller"
            },
            "create_time":<PHONE_NUMBER>,
            "name": "isolation-with-query",
            "hosts": [
                "xxx"
            ],
            "status": 1,
            "desc": "Created by apisix-ingress-controller, DO NOT modify it manually",
            "update_time":<PHONE_NUMBER>,
            "priority": 10,
            "vars": [
                [
                    "arg_accountid",
                    "in",
                    [
                        "111"
                    ]
                ]
            ],
            "id": "3747de50",
            "upstream_id": "be16542f",
            "uris": [
                "\/*"
            ]
        }
    }
}

Environment

your apisix-ingress-controller version (output of apisix-ingress-controller version --long): 1.4

I found the code, any reason about this?
https://github.com/apache/apisix-ingress-controller/blob/c48a62abfbd0b546c1d89bb7931caf1ed11abbb3/pkg/kube/translation/apisix_route.go#L502-L503
@tokers please take a look.

let me take a look

Have you tried creating the same routing rules directly using APISIX's admin API?

Have you tried creating the same routing rules directly using APISIX's admin API?

Yes
bash-5.1# curl -s -H 'X-API-KEY: xxx' <IP_ADDRESS>:9180/apisix/admin/routes/test -X PUT -i -d '
{
    "uri": "/index.html",
    "hosts": ["foo.com", "*.bar.com"],
    "methods": ["PUT", "GET"],
    "vars": [
        [
            "arg_accountId",
            "in",
            [
                "111"
            ]
        ]
}'  "upstream_id": "b18f1d01"
HTTP/1.1 200 OK
Date: Tue, 26 Jul 2022 02:04:25 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
Server: APISIX/2.11.0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: *
Access-Control-Max-Age: 3600

{"action":"set","node":{"key":"\/apisix\/routes\/test","value":{"create_time":1658801026,"upstream_id":"b18f1d01","hosts":["foo.com","*.bar.com"],"uri":"\/index.html","status":1,"update_time":1658801065,"priority":0,"id":"test","methods":["PUT","GET"],"vars":[["arg_accountId","in",["111"]]]}}}

ok, I can reproduce this issue, wondering if you are interested in submitting a PR to fix this issue?

ok, I will try.


Improve docstrings

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

Project coverage is 100.00%. Comparing base (09ce59b) to head (0f9c619).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #89   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           53        53
  Lines          965       965
  Branches        72        72
=========================================
  Hits           965       965

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


chore(main): release 1.2.4

:robot: I have created a release beep boop
1.2.4 (2024-03-26)
Bug Fixes

remove useless code ... (8a952a3)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/Basalt-Lab/basalt-helper/releases/tag/v1.2.4 :sunflower:


Template and Cluster is not displayed in VM pool

Description of problem [include screenshots and browser console logs]:
Template and cluster is not displayed in VM pool detail. Same for admin and non-admin user.
VM Portal version number:
master
oVirt version number:
ovirt-engine-4.4.0-0.0.master.20190318180517.git576124b.el7.noarch
Browser and version:
FF 65.0.1

We will just fix this in the redesign for #195

@bond95 not sure if it's still reproduced and if it's relevant for the pool's VM or the pool itself so please check and if it's not reproduced anymore then let's close this

@bond95 not sure if it's still reproduced and if it's relevant for the pool's VM or the pool itself so please check and if it's not reproduced anymore then let's close this

Yes, this bug will be fixed in redesign


"disabled due to remaining attempts" on Hyper-V VM

Hello,
My Hyper-V VM worked for a few months without any issues. Now, for some reason, I cannot boot it. It goes to the menu:

When I select Shell and type boot, I see the following:

it loads correctly if I type
boot system0

My question is why is it doing this and how can I make it work aromatically as it worked before. I do not want to go shell and type that command.
Is the problem because I see
disabled due to remaining attempts = 0

How to fix it?
Thank you.

After boot, there should be a job they mark it system as correct. Try rauc status mark-good. What is the output of rauc info?

What do you mean after the boot. When I go to number four (shell)? When I try commands, I see this:

yes, after boot into host system, not on bootloader


CONTRIBUTING: Add hotlinks to package and module reviewing guides, minor touchups

Description of changes
I missed a detail myself, so let's improve discoverability.
Rendered:

pkgs/README.md#reviewing-contributions
nixos/README.md#reviewing-contributions

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

I did as suggested, but the results is not pretty to read in source. Perhaps a CI check that looks for dead links is the way to go?

It would also be great for third-party documents to be able to link to anchors, but I guess for now something like that would be better than nothing

I've committed heinous crimes, but alas we do have a prototype:

{ pkgs ? import ./. {}
, lib ? pkgs.lib
}:

with pkgs;

let
  src = let
    toLink = path: {
      inherit path;
      name = lib.removePrefix "${toString ./.}/" (toString path);
    };
  in pkgs.linkFarm "nixpkgs-gfm-docs" (map toLink [
    ./CONTRIBUTING.md
    ./README.md
    ./doc/README.md
    ./lib/README.md
    ./lib/path/README.md
    ./maintainers/README.md
    ./nixos/README.md
    ./pkgs/README.md
    ./pkgs/by-name/README.md
    ./pkgs/test/nixpkgs-check-by-name/README.md
  ]);
in
  runCommand "test-nixpkgs-gfm-links" {
    nativeBuildInputs = [ htmlq pandoc ];
  } ''
    md2html() {
      local fname="$1" # relative to ${src}
      if test -f html-cache/"$fname"; then
        cat html-cache/"$fname"
      else
        mkdir -p "$(dirname html-cache/"$fname")"
        pandoc ${src}/"$fname" --from gfm --to html | tee html-cache/"$fname"
      fi
    }

    return_code=0

    shopt -s globstar
    for fname in ${src}/**/*.md; do
      fname="''${fname#${src}/}" # strip nix store prefix

      get_links() (
        set +o pipefail
        md2html "$fname" \
          | htmlq a --attribute href --base file:///"$fname" \
          | grep '^file:///' \
          | cut -d/ -f4- \
          | grep -E '\.md(#.*)?$' \
          | sort -u
      )

      while IFS=# read target anchor; do
        if ! test -f ${src}/"$target"; then
          >&2 echo "ERROR ($fname): resolved reference not found: $target"
          return_code=1
          continue
        fi

        test -n "$anchor" || continue

        if test -z "$(md2html "$target" | htmlq "#$anchor")"; then
          >&2 echo "ERROR ($fname): resolved reference not found: $target#$anchor"
          return_code=1
        fi
      done < <(get_links)

    done

    touch $out
    exit $return_code
  ''

Output:
test-nixpkgs-gfm-links> ERROR (CONTRIBUTING.md): resolved reference not found: CONTRIBUTING.md#backporting-changes
test-nixpkgs-gfm-links> ERROR (CONTRIBUTING.md): resolved reference not found: CONTRIBUTING.md#sec-package-naming
test-nixpkgs-gfm-links> ERROR (nixos/README.md): resolved reference not found: CONTRIBUTING.md#file-naming
test-nixpkgs-gfm-links> ERROR (pkgs/README.md): resolved reference not found: CONTRIBUTING.md#file-naming

The first two are genuine errors, and the last two are due to my code not handling name=... in addition to id=.... This could be fixed.

I cleaned it up and pushed it as tests.nixpkgs-check-readme-links. I believe the way i phrase the src linkTree should avoid any uneccesary rebuild

Nice! Though just recently I was pointed to https://github.com/serokell/xrefcheck, which looks a bit nicer :sweat_smile:
In any case, could you do that in a separate PR? This way we can merge this one with just the doc improvements/fixes

Otherwise looking good!


Add crt and key

Hi, everybody
I'm new to Shuffle
Please tell me how do I download the crt and key when calling http?

Hi, everybody I'm new to Shuffle Please tell me how do I download the crt and key when calling http?

Hey!
This 100% depends on what system you are talking to. Please tell us and show us more things :)


harbor package 2.3.3 support secretName for tlsCertificate - follow up

Signed-off-by: Shengwen Yu<EMAIL_ADDRESS>What this PR does / why we need it

This PR is to introduce a new configuration called "tlsCertificateSecretName"  so that Harbor package 2.3.3
can auto reload ca.crt, tls.crt, tls.key info which the secretName contains.
Details for the Release Notes (PLEASE PROVIDE)

Introducing a new configuration called "tlsCertificateSecretName"
in order to auto load ca.crt, tls.crt, tls.key info from the secretName for Harbor 2.3.3

Which issue(s) this PR fixes

Fixes: #2553
Describe testing done for PR

unit test:
cd addons/packages/harbor/2.3.3/test
make test
functional test:

install Harbor package 2.3.3 with tlsCertificate & tlsCertificateSecretName not set
login to Harbor portal and check the certificate, it should be valid for 10 years because of which using cert-manager self-signed certificate
create a secret called "harbor-tls-2" with ca.crt, tls.crt, tls.key and duration (valid for) 24h created by openssl tool
set "tlsCertificateSecretName" in harbor-data-values.yaml file to be "harbor-tls-2"
update harbor package: tanzu package installed update harbor  --version 2.3.3 -f harbor-data-values.yaml
login into Harbor portal again, check the certificate validation, it's only valid for 24 hours

Special notes for your reviewer

This is a follow-up PR for this PR:
https://github.com/vmware-tanzu/community-edition/pull/2554
Both of which are trying to resolve issue #2553

Is there going to be any documentation that shows how to use cert-manager with this?


Use env in kedro

Please consider using --env  parameter for running kedro pipelines.
Your case
# from torchvision
kedro run --pipeline data_download --params=download_options.source:torchvision
# from AWS S3 bucket (require previous AWS access configuration)
kedro run --pipeline data_download --params=download_options.source:aws

looks like you should create conf/aws/* for AWS environment
You can keep default cond/base/* for torchvision

Thank you for your advice. Based on that I added custom download envs for AWS and Torchvision in conf/download_confs folder and appropriately updated README. Link to the commit.


Bazar structure inclusion

Inclusion of the general bazar structure into encointer-wallet-flutter, nothing fancy yet.

Interesting:
https://books.google.com/ngrams/graph?content=bazar%2Cbazaar&year_start=1800&year_end=2008&corpus=0&smoothing=5&direct_url=t1%3B%2Cbazar%3B%2Cc0%3B.t1%3B%2Cbazaar%3B%2Cc0


output: flush complex nested values, not just map[string]string.

send the full nested complex values when flushing to output plugins in Message.Record as a map[string]interface{} instead of as a simple map[string]string. This will allow receiving float64 and other simple types as well as nested records with key/value pairs and arrays.
tests have also been added for this new functionality.

@nicolasparada Any insights? It's OK for you?


Can't run any of the examples

Using python 3.8 and latest version of sklearn
This is the error I get:
from sklearn.utils.validation import ( ImportError: cannot import name '_check_y' from 'sklearn.utils.validation' (/Users/nimashahbazi/PycharmProjects/distrust/venv/lib/python3.9/site-packages/sklearn/utils/validation.py)
Any ideas how to fix it?

Hi @neemashahbazi , what are your versions of MAPIE and scikit-learn ? You mention python 3.8 but your error message is python 3.9.

Problem solved by installing Python 3.10.


feat: add dashboard playground link card

Fixes: #667
Changes:

reformat code
add dashboard playground block

Screenshots of the change:

Build preview is broken since yesterday. Any idea why? CDN issue?

It seems that there is something wrong with CDN. I will seek help from others to repair this problem. Now you may have to pull this branch locally for preview. So Sorry.

Build preview is broken since yesterday. Any idea why? CDN issue?

It seems that there is something wrong with CDN. I will seek help from others to repair this problem. Now you may have to pull this branch locally for preview. So Sorry.

This is not your fault, due to some reasons, jsDelivry doesn't work well in China. I'm planning a PR to use CDN from github raw.

@1502shivam-singh I updated it, pls review this. I have already burn out. :D

How about replacing PASSWD with PASSWORD?🤔

How about replacing PASSWD with PASSWORD?🤔

Look here


[FEA] handle errors when opening shuffle blocks

When we open a local shuffle block, or a remote block, there may be certain issues like length mismatch, format changes (say that one version of cudf contiguously slices one way, but the next version slices differently), compression issues, etc.
There are a number of these, and spark will throw FetchFailedException when:

Zero-sized blocks
Failure to open a local block
Buffer format is corrupted (can’t be decompressed for example), or the buffer can't otherwise be read.

Most of these cases are relevant, to the rapids shuffle case. I think we can add handling for zero-sized blocks that shouldn't be zero-sized (metadata isn't a row count only), when we try to open a block locally and the block isn't there (bug likely), and when a buffer is corrupted due to compression.
The compression handling is harder since we uncompress later on (outside of shuffle). So it may be that we handle this one differently, and just make sure that the buffer fits the metadata spec, with whatever tools we have.

@abellina is this still relevant?


Split analysis steps out of dev/bots/test.dart into dev/bots/analyze.dart

This allows to run analysis step with command line arguments that are only applicable to flutter analyze(like --dart-sdk, needed for dart-flutter-engine head-head-head bot).

@aam did you forget to add analyze.dart to the commit?

@aam did you forget to add analyze.dart to the commit?

Oops, I certainly did!


[icons] Not finding the DialerSip icon

Steps to reproduce
Link to live example: (required)
Steps:
1.
2.
3.
Current behavior
I've installed @mui\icons-material latest and old version on next.js but it returns error like this.
Can't find module DialerSip icons in<EMAIL_ADDRESS>Expected behavior
No response
Context
No response
Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: DialerSip, icons

Hey, thanks for opening the issue! Could you provide a minimal reproduction? It helps us troubleshoot. A live example would be perfect. This StackBlitz sandbox template may be a good starting point. I can see the icon available in https://next--material-ui.netlify.app/material-ui/material-icons/?query=DialerSip. 🤔

While building my project, I noticed that several icons, all starting with "DialerSip," are declared but do not have the corresponding JavaScript code in the npm package. This absence causes build errors and disrupts the development process.
MUI the lots of developers love and use need to be perfect. Thx for your kind reply and quick update.  👍👍👍


integrated the vector store into our existing process

Repos (and their docs) will be ingested into our Vector store right after being generated.


Enable using llama.cpp's --model-draft  feature for speculative decoding

Howdy fine Ollama folks 👋 ,
Back this time last year llama.cpp added support for speculative decoding using a draft model parameter. https://github.com/ggerganov/llama.cpp/issues/2030
This can massively speed up inference.
I was wondering if there's any chance you could look at adding the option for llama.cpp's --model-draft parameter that enables this?

It works by loading a smaller model (with the same tokeniser/family) in front of a larger model.
I know with exllamav2 you can get 100%-200% speed increases (seriously!) and the best part is - with no loss of quality.
For example, you might have:

Main model: Qwen 72b Q4_K_M
Draft model: Qwen 0.5b Q4_K_M

The result would be the memory usage of main Qwen 72b model + the tiny 0.5b draft model but around 4x the tokens/s you'd see with just the main model loaded.
I've been using exllamav2 instead of Ollama for this feature (and the 4bit K/V cache #5091) recently and the performance really is astounding.

Parameters that can be passed to llama.cpp's server:

--model-draft (required) - the usage is the same as the existing --model used for loading normal models.
--draft (optional, but recommended to make available)
--p-split (optional, but recommended to make available)

There is also the following, but I think the default is probably fine 99% of the time:

--threads-draft
--threads-batch-draft

https://github.com/ggerganov/llama.cpp/blob/master/examples/server/README.md?plain=1#L37
  -md,   --model-draft FNAME      draft model for speculative decoding (default: unused)
  -td,   --threads-draft N        number of threads to use during generation (default: same as --threads)
  -tbd,  --threads-batch-draft N  number of threads to use during batch and prompt processing (default: same as --threads-draft)
         --draft N                number of tokens to draft for speculative decoding (default: 5)
  -ps,   --p-split N              speculative decoding split probability (default: 0.1)

I just found this old issue which while pretty out of date seems to be related - https://github.com/ollama/ollama/issues/1292

@sammcj this is really, really cool. Sorry for the late reply. By the way, check out https://infini-ai-lab.github.io/Sequoia-Page/ if you haven't yet.

Oh that's a neat project too! thanks @jmorganca :)

I could imagine using draft models with Ollama Modelfiles to be quite a nice combo, e.g:
FROM qwen2:72b-q4_k_m
DRAFT qwen2:1.5-q4_k_m

I could imagine using draft models with Ollama Modelfiles to be quite a nice combo, e.g:
FROM qwen2:72b-q4_k_m
DRAFT qwen2:1.5-q4_k_m

The best option is generally a wide-but-shallow sheared model rather than a generalist small model. For example, I made some GGUF conversions of the Yan et al models here:
https://huggingface.co/Nafnlaus/Wide-Sheared-LLaMA-290M-GGUF
Non-GGUFs here:
https://huggingface.co/minghaoyan
The TL/DR is that getting "an" answer out fast is more important than getting a good answer out.

@enn-nafnlaus that's really interesting to see, I'll have to read the paper but I'm assuming this results in the draft model taking significantly less vRAM as it's essentially just the one layer being loaded (with the tokenizer)?
I suspect this might be what Exllamav2 does with it's draft model loading as they don't seem to use as much vRAM as loading it normally.

I should add I find draft models/speculative decoding with Exllamav2 so useful that I often find myself choosing to use Ellamav2 (via TabbyAPI/TabbyLoader) over Ollama when loading models larger than 30b~ - the performance improvements when running 70b models is nothing short of amazing.

Is this a feature the ollama maintainers would be interested in implementing? I'm asking because I'm considering giving it a shot.
Are there some pointers / suggestions for anyone looking into implementing this? Thank you.

@oxfighterjet I think this would be amazing to add, combined with #6279 - this would bring Ollama up to speed with the likes of ExllamaV2 / TabbyAPI which have had these as core features for a long time.
I was actually planning on trying to get it merged after #6279 is merged. As such I'd be more than happy to work with you on this (just note I'm only a contributor - not a maintainer).
If you look at #6279 you'll see how I've added parameters that pass down to the underlying llama.cpp.
I would take the same approach but also make sure there is support for configuring the draft model in the Modelfile and API. This is something I did have in my PR (prior to the latest reactor for the new runners/server) but was asked to remove as Ollama didn't want to add new features to the API / CLI at the time, however for the draft model feature it will be required by design, I still have the code kicking round for this here: https://github.com/sammcj/ollama/pull/26/files.
Again - I was going to work on this after #6279 is merged, assuming it actually is merged in soon - I'd still be happy to do the work for this ticket, or work with you on it - be it doing a first pass for you to review/improve, or simply to help with peer review.
One thing I'd be aware of expectations wise, getting features merged into Ollama is painfully slow, just to set your expectations up front 😅.

@sammcj Thank you for your helpful resources, they will most certainly come in handy!
I see indeed that your #6279 PR has been a rollercoaster of a ride, I hope it can get merged soon.
I'll study the codebase and your PRs and see what I can contribute. I might get back to you with questions! :)

@sammcj Thank you for your helpful resources, they will most certainly come in handy! I see indeed that your #6279 PR has been a rollercoaster of a ride, I hope it can get merged soon.
I'll study the codebase and your PRs and see what I can contribute. I might get back to you with questions! :)

Have you guys also considered the below approach? It looks like you could mix and match and 2 models. However, it might not be as performant.
https://huggingface.co/blog/universal_assisted_generation

I tried running llama server with speculative decoding to see if I could speed up some model, but I found out it's not supported by the server:
https://github.com/ggerganov/llama.cpp/issues/5877

https://github.com/ggerganov/llama.cpp/pull/10455 - this is now in llama.cpp server!

Great, I'm still on the ollama implementation and I'll be able to test it now. Will report back when I have a working prototype.

@oxfighterjet looks like #7875 was favoured over #7670, and is moving faster, if it helps any

Looks like performance just got another big bump thanks to https://github.com/ggerganov/llama.cpp/pull/10586 (source: https://www.reddit.com/r/LocalLLaMA/comments/1h5uq43/llamacpp_bug_fixed_speculative_decoding_is_30/)

These options were tantalisingly mentioned in the opening post, but these don't seem to be valid options in llama-server. Have these been implemented in any branch or are these just proposals?
  -md,   --model-draft FNAME      draft model for speculative decoding (default: unused)
  -td,   --threads-draft N        number of threads to use during generation (default: same as --threads)
  -tbd,  --threads-batch-draft N  number of threads to use during batch and prompt processing (default: same as --threads-draft)
         --draft N                number of tokens to draft for speculative decoding (default: 5)
  -ps,   --p-split N              speculative decoding split probability (default: 0.1)

I will check again but I was referring specifically to flags -tbd, -td and -ps.

I could imagine using draft models with Ollama Modelfiles to be quite a nice combo, e.g:
FROM qwen2:72b-q4_k_m
DRAFT qwen2:1.5-q4_k_m

agreeing, the draft model (model-draft) and most related parameters (draft-max, draft-min, draft-p-min, ctx-size-draft) should be specified in the Modelfile. some parameters could be defined in the environment (device-draft, gpu-layers-draft) unless there is a good way to derive them automatically.

model-draft: [Modelfile, DRAFT] ollama uses layers (media type: application/vnd.ollama.image.model) to reference model blobs. it would be nice to reuse the same mechanism and store the layer reference in the model manifest. Maybe just assume that the first application/vnd.ollama.image.model layer is the main model, and an optional additional application/vnd.ollama.image.model layer is the draft model?
draft-max, draft-min, draft-p-min, ctx-size-draft [Modelfile, PARAMETER] Those parameters appear to be just Runner options, and can probably be very easily added.

looks like https://github.com/ollama/ollama/pull/7875 was merged

@oxfighterjet are you still working on this?

@chris-calo yes.

just because it wasn't obvious to me: getting this into ollama is going to be more work than just handling down the mentioned parameters.
it appears that we basically have to replicate this as well:
https://github.com/ggerganov/llama.cpp/commit/9ca2e677626fce759d5d95c407c03677b9c87a26
and keeping track of fixes (for example, there are more):
https://github.com/ggerganov/llama.cpp/commit/84e1c33cde9e0a7aafcda2d4f21ba51c300482d7
https://github.com/ggerganov/llama.cpp/commit/1da7b765692764a8b33b08da61cbee63812a7bd9

Before moving forward with a prototype implementation it may be helpful to discuss the necessary changes?
Imo we roughly have the following tasks:

Parameter handling, how and where to define them, how to reference draft models such that the existing model repository can be used for loading a draft model, how to pass all required parameters down to a runner.
Reimplementation of the actual draft model feature in the runner, i.e., draft model loading (https://github.com/ollama/ollama/blob/cf4d7c52c47d753bd04a8791b9c6042271c40c1e/llama/runner/runner.go#L845) and using it during inference (https://github.com/ollama/ollama/blob/cf4d7c52c47d753bd04a8791b9c6042271c40c1e/llama/runner/runner.go#L360)
Reimplement or preferably somehow use existing utility code (cgo) located in llama.cpp (https://github.com/ggerganov/llama.cpp/blob/master/common/speculative.cpp, https://github.com/ggerganov/llama.cpp/blob/master/common/common.cpp) by appropriately extending https://github.com/ollama/ollama/blob/main/llama/llama.go

Maybe this is not helpful, but perhaps there are some additional ideas on how to easily add this functionality by looking at how the llama-swap project accomplishes this?

Before having looked at the source I also assumed that ollama just starts llama.cpp server instances similar to llama-swap. I guess there are or have been good reasons why ollama reimplemented that part of llama.cpp; probably because of the added flexibility and maybe being able to implement some features quicker than having to wait for upstream. At least for this feature, upstream was faster; also it is my impression that llama.cpp server nowadays appears more sophisticated than what we have in ollama, so for the long run it might really be a good idea to look into adopting llama.cpp server directly as a runner (and add potentially missing instrumentation/control API to llama.cpp server).
Anyway, as I wanted to understand speculative decoding and getting into Go I tried to move forward with the previously outlined tasks and made progress with 1., and 3. (turned out ollama already made use of interfacing c++ code via C wrappers, so this was easy to extend). The second task is a bit of a struggle to debug. As soon as I have something of an initial proof of concept-quality solution to show in a couple of days and @oxfighterjet hasn't already done so, I'll open a PR...

@bfroemel Thanks for sharing your thoughts and your intentions. I am mostly interested in this feature being implemented at all, but my personal availability has decreased lately, with my work requiring more of my attention before the end of the year. It seems you are interested in taking over this issue and I'm glad to hand it over, I do not want to claim any exclusivity over it. If you have some ideas of how to implement it, please go ahead. I will anyway follow the progress of this issue closely, and am hoping for this feature to be propagated all the way to the top with open-webui :)

@oxfighterjet @sammcj Could you take a look at https://github.com/ollama/ollama/pull/8134 ? Testing/reviews/comments very welcome ;)

Seeing more very positive things about the performance and surprisingly - TDP/power usage required with speculative decoding in llama.cpp: https://www.reddit.com/r/LocalLLaMA/comments/1hqlug2/revisting_llamacpp_speculative_decoding_w/


chore: release v0.2.8

:robot: I have created a release beep boop
0.2.8 (2024-03-31)
What's Changed

fix(ci): check for boolean value correctly by @coffeebeats in https://github.com/coffeebeats/gdpack/pull/205

Full Changelog: https://github.com/coffeebeats/gdpack/compare/v0.2.7...v0.2.8

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/coffeebeats/gdpack/releases/tag/v0.2.8 :sunflower:


Cloud View network and datastore activation depends on quotas and vms

Description
Is not possible to activate network and DS features without quotes
To Reproduce
Activate network on cloud.yml and select quotas to false
Expected behavior
Network and DS to be active on cloud view
Details

Affected Component: Sunstone
Hypervisor: -
Version: 5.62, development

Progress Status

[x] Branch created
[x] Code committed to development branch
[ ] Testing - QA
[ ] Documentation
[ ] Release notes - resolved issues, compatibility, known issues
[x] Code committed to upstream release/hotfix branches
[ ] Documentation committed to upstream release/hotfix branches

Unable to replicate the error in version 5.8


WikibaseClient: Data Bridge Change Op

Looks good, but I also think this ends up becoming too low level, as these are all files.

Looks good, but I also think this ends up becoming too low level, as these are all files.


Cannot drag item outside of parent with overflow:auto

If you take the example and surround the OL with a div with a style="overflow:auto" the element won't be visible outside that div.

It took a bit longer than I originally imagined, but this bug is now fixed in the master branch.


Do maven preprocessing in golang, not a java jar

For now the java xml library we're using works pretty well.
However it does require an additional os.exec - it'd be nice to do this preprocessing in golang native, since that's what we appear to be settled on for most of the execution.

https://github.com/beevik/etree maybe?

https://github.com/subchen/go-xmldom is another option too.


fix anchor for Android build section

CI gfxreconstruct build queued with queue ID 740.

CI gfxreconstruct build # 1219 running.

CI gfxreconstruct build # 1219 passed.


[Feature Request] mark invoice "settled" when fallback address receives payment

Background
Fallback addresses can be added to BOLT-11 invoices so that a payment can be made on-chain if an off-chain payment is not possible or desirable.  However, an invoice's state is not updated to reflect payment is the invoice recipient pays to this fallback address.
Your environment

LND v0.5.2
Arch Linux, 4.14.87-1-ARCH armv7l GNU/Linux
bitcoind v0.17

Steps to reproduce

lncli addinvoice --fallback_addr $FALLBACKADDR --amt $AMT
Pay $AMT to $FALLBACKADDR
inspect the invoice with lncli listinvoices.  The invoice settled field will be false.

Expected behaviour
If an invoice recipient uses the fallback address to send an on-chain payment of the correct size, the invoice in which this fallback address was included will be marked as settled.
Additional Considerations
It's possible an invoice generator could reuse a fallback address within multiple invoices for a payment of the same size, which could make it ambiguous what should be marked as paid if a payment is made to that address.
LND could prevent reuse of fallback addresses within multiple invoices, or at least reuse within invoices for a payment of the same size, to remove this ambiguity.
LND could prevent fallback address reuse in any 0-amt invoices.

Seems like no one has picked this one up yet, so would be happy to give this one a try.

Are you sure this is the correct approach? I see two potential issues:

With the current behavior (i.e. not settling the invoices), it's possible to pay to the fallback address and pay the invoice afterward. With this change, I believe LND would have to deny paying to invoices after the fallback address was used, which is technically a breaking change for the clients.
The new proposed behavior (i.e. settling invoices) might not be semantically correct. BOLT11 never specifies that payments to the fallback address should invalidate the invoice, and as far as I've been able to tell, none of the BOLTs ever say this.

For these reasons, I don't feel like this feature should be implemented. Maybe we should close it.
CC @bjarnemagnussen @carlaKC @Roasbeef @guggero

Are you sure this is the correct approach? I see two potential issues:

With the current behavior (i.e. not settling the invoices), it's possible to pay to the fallback address and pay the invoice afterward. With this change, I believe LND would have to deny paying to invoices after the fallback address was used, which is technically a breaking change for the clients.
The new proposed behavior (i.e. settling invoices) might not be semantically correct. BOLT11 never specifies that payments to the fallback address should invalidate the invoice, and as far as I've been able to tell, none of the BOLTs ever say this.

For these reasons, I don't feel like this feature should be implemented. Maybe we should close it.
CC @bjarnemagnussen @carlaKC @Roasbeef @guggero

Agree and closing this issue based on this comment.


Connection Issues in Production

I have singled out the reason I was having connection issues in https://github.com/PhilWaldmann/openrecord/issues/43
node-pg and node-pg-native do not work with the semi-popular pgpool load balancer. there is something about the way it handles prepared statements that node-pg never becomes aware that an error has been returned
You should add a disclaimer that your library won't work when used with pgpool

I don't see any possibility for a user to use pg-pool with OpenRecord, because the connection is established by knex.
Do you have an example?

no not pg-pool, PGPool. very different. PGPool is a load balancer for postgres that sits between your application server and the actual postgres backend. As of today, it is the only production ready Postgres load balancer, and as such, is decently popular for those that actually build their entire infrastructure.
there's nothing you can do to fix the issue until node-pg has been properly patched, but a disclaimer would still be a good option in the readme


Add Enumerable/Iterator#filter_map

Adds convenience method introduced in Ruby 2.7.
Refs:

https://www.rubydoc.info/stdlib/core/Enumerable:filter_map
https://forum.crystal-lang.org/t/ruby-2-7-new-enumerable-methods/800

Apparently it skips falsy values not just nil.
The spec behaves just like #compact_map would, but re-using the example from #compact_map would work. But then it behaves as #filter would, so :confused:

Actually I agree. #compact_map works equally fine, and it's absent in Ruby world, which explains rationale behind adding this method to the Ruby's stdlib.


Extend LSFProvider so that it works on systems that don't have jsrun

Is your feature request related to a problem? Please describe.
The batch farm at SLAC runs under LSF, but does not have the extensions for jsrun.    The example for running with lsf, https://github.com/Parsl/parsl/blob/master/parsl/configs/summit.py uses the JsrunLauncher, which does not work at slac.
Describe the solution you'd like
The easiest solution would be to provide a BsubLauncher() which submits the jobs using the lsf bsub commands.   The only complication is that to get this to work I have to provide an additional argument to the launcher to provide the job dependent overrides to
        job_override = "-W {walltime} -J {jobname} -o {submit_script_dir}/{jobname}.submit.stdout -e {submit_script_dir}/{jobname}.submit.stderr".format(jobname=job_name, **job_config)

        # Wrap the command
        job_config["user_script"] = self.launcher(command,
                                                   job_override,
                                                   tasks_per_node,
                                                   self.nodes_per_block)

And then the call method of BsubLauncher would look like:
    def __call__(self, command, job_override,  tasks_per_node, nodes_per_block):
        """
        Args:
        - command (string): The command string to be launched
        - job_override (string) : Job-specific overrides for submitting the job to the batch
        - tasks_per_node (int) : Workers to launch per node
        - nodes_per_block (int) : Number of nodes in a block
        """
        tasks_per_block = tasks_per_node * nodes_per_block
        debug_num = int(self.debug)

        x = '''set -e
WORKERCOUNT={tasks_per_block}
cat << JSRUN_EOF > cmd_$JOBNAME.sh
{options}

{command}
JSRUN_EOF
chmod a+x cmd_$JOBNAME.sh
bsub {overrides} {job_override} /bin/bash cmd_$JOBNAME.sh &
wait
[[ "{debug}" == "1" ]] && echo "Done"
'''.format(command=command,
           tasks_per_block=tasks_per_block,
           tasks_per_node=tasks_per_node,
           options=self.options,
           overrides=self.overrides,
           job_override=job_override,
           debug=debug_num)
        return x

Describe alternatives you've considered
I'm not at all sure that there isn't an easier way to be able to launch jobs using the SLAC farm, this is just what I came up with.

Do you have a working implementation of this? It looks like you have a bunch of code already fleshed out.

What's the difference between job_overrides and overrides in your example?

@benclifford, I do have a working example, but I'm not at all sure it matches with the intended design, mainly b/c it required me to change the signature of the BsubLauncher.call() w.r.t. JsrunLauncher.call()
overrides are global, i.e., they can be set when BsubLauncher() is constructed
job_overrides are job-specific, i.e., they are things that need to be computed each time BsubLauncher is called.
Here is the rest of the working example I have for setting up the config:
class LsfFactory:
    """
    Factory class to create HighThroughputExecutor objects for running
    in SLAC queues.
    """
    def __init__(self, htx_options=None, provider_options=None,
                 scheduler_options_template=None):
        self.htx_options = HTX_OPTIONS if htx_options is None else htx_options
        self.provider_options = (PROVIDER_OPTIONS if provider_options is None
                                 else provider_options)
        if scheduler_options_template is None:
            self.scheduler_options_template = ("#BSUB -R={}\n#BSUB -q={}\n")
        else:
            self.scheduler_options_template = scheduler_options_template

    def create(self, label, arch, qos, mem_per_worker, walltime):
        """Create a HighThroughputExecutor object"""
        scheduler_options = self.scheduler_options_template.format(arch, qos)
        provider = LSFProvider(walltime=walltime,
                               scheduler_options=scheduler_options,
                               launcher=BsubLauncher(options=scheduler_options),
                               **self.provider_options)
        return HighThroughputExecutor(label=label,
                                      mem_per_worker=mem_per_worker,
                                      address=address_by_query(),
                                      provider=provider, **self.htx_options)

lsf_factory = LsfFactory()

batch_small = lsf_factory.create(label='batch-small',
                                 arch='centos7',
                                 qos='xlong',
                                 mem_per_worker=1,
                                 walltime='9:00:00')

batch_medium = lsf_factory.create(label='batch-medium',
                                  arch='centos7',
                                  qos='xlong',
                                  mem_per_worker=1,
                                  walltime='10:00:00')

local_executor = ThreadPoolExecutor(max_threads=4, label="submit-node")

config = parsl.config.Config(executors=[batch_small, batch_medium, local_executor], app_cache=True, retries=1)

yeah launcher API thing sounds awkward. I'm not sure what the best thing to do here is. @yadudoc ?

@benclifford and I had a chat about this. My concern is that if there is no clear separation between LSF and bsub and responsibilities are shared, then it might not be easy to fit them into our abstractions of provider and launcher. We can hack around by breaking the abstraction a bit, but it will be awkward. It might even work to have a new LSFBsubProvider that does the job of your Factory.


Updated rules and edges in language.rs for swift and added rules to simplify something_and_true

Added rules and edges for swift language in language.rs
Created cleanup rules for:

true && something to something
something && true to something

Created edges to:

run boolean_simplification rules
recursive edge to complete boolean_simplification.

updated test for created rules
Stack from ghstack (oldest at bottom):

-> #343

I wonder how will gh stack work at updating the PR descriptions after you have updated it :)
I hope it does not throw a fit

I haven't touched up on ghstack's part, let's see if ghstack is intelligent enough to figure this out

I will close this after stacking a pr on top of this, want to know how ghstack would handle that.

Looks like ghstack is able to handle description changes properly, merging this one.


Bug: When updating a post, a token was not used on the post overlay page (for example, likes/dislikes for a specific user were not displayed)

Fixed by 22b5379 commit


Tagged template literals not working with TypeScript type parameters

Tagged graphql/gql template literal strings don't work with TypeScript type parameters.
(The variant of gql found in urql has support for type parameters, but it doesn't seem like Apollo Client does).
Actual Behavior
Tagged template literals not recognized, i.e. no syntax highlighting, autocompletion or query execution available.
Example:

Expected Behavior
The same as for tagged template literals without type parameters, example:

Steps to Reproduce the Problem Or Description
Insert type parameters (such as <AnyType>) between gql/graphql and the template literal string
Specifications

GraphQL for VSCode Extension Version: 0.3.16
VSCode Version: 1.56.2
OS Name: mac OS
OS Version: 10.15.7 (19H524)

Finally got it working!

I cut a release, but the extension did not publish from the github action yet, so I will publish 0.4.10 manually tonight

ok. 0.4.11 is the release, let me know if there's any other issues! I haven't checked but this should fix #2444 which is the same bug just embedded in markdown


Make a new language/hashmap

Analogous language/list and language/setbagmix, create a new language/hashmap
Move most of the top stuff from type/Hash into language/hashmap
Rationale: Associative stuff should have a major section in language, similar to language/list, the type/Hash should be trimmed to the reference stuff like type/Array
What do you think?

Relative : #1646
The problem is how we organize the documentation.
IMO we can take https://docs.racket-lang.org/ for information, that is separating the whole documentation into two parts: the guide and the reference. It is quite similar with our language and type. The most important idea is, put the basic and overall topics into 'language', keep 'type' be as concise as possible. In the 'language', we show the most significant topic; in the 'type' we show all the topics with examples.


Add split-debug and obfuscation to build aar

Description
Add --split-debug-info and --obfuscate flags to build aar.
Related Issues
Fixes https://github.com/flutter/flutter/issues/56068
Obviates https://github.com/flutter/flutter/pull/56069
Tests
build_aar_test flag parsing.  Confirmed the tests also passed on master when I commented out the --split-debug-info and --obfuscate parts, so nothing regressed.
Checklist

[x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
[x] I signed the [CLA].
[x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
[x] I read the [Tree Hygiene] wiki page, which explains my responsibilities.
[x] I updated/added relevant documentation (doc comments with ///).
[x] All existing and new tests are passing.
[x] The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change

[x] No, no existing tests failed, so this is not a breaking change.
[ ] Yes, this is a breaking change. If not, delete the remainder of this section.

Forgot to add the integration test.

LGTM. Thanks for fixing!


Support Older React Versions

Describe the feature request
Can StyleX support older versions of react similar to Style-Components?
React v18 is only supported option.

We already support older versions of React. Since we don't depend on any React features at all, StyleX can be used with any version of React and many other frameworks such Svelte, Solid, Qwik, etc.
As long as you are able to do the bundler setup, there are no restrictions about which component framework, or version you're using.

React v18 is only supported option.

Where did you get this idea? @stylexjs/stylex has no dependency on React at all.

I have a component in React v16.4 and installed via npm
 "dependencies": {     "@stylexjs/stylex": "^0.5.1",    },   "devDependencies": {     "@stylexjs/dev-runtime": "^0.5.1",     "@stylexjs/webpack-plugin": "^0.5.1"   } however I am getting the error Module not found: Error: Can't resolve 'stylex' in and webpack compiled with 1 error
import * as stylex from 'stylex';

const styles = stylex.create({
  red: {color: 'red'},
});

<div {...stylex.props(styles.red)}>Test</div>

The package name is @stylexjs/stylex


Check getBlock endpoint to see if current functionality is desirable

Currently the /beacon/block GET calls GetBlockBySlot, which can return an empty block if no block was created in the current slot.
We need to double check if that's whats desired, or whether we should be calling GetBlockInEffectAtSlot instead. (get the last block before the current slot if none was produced at that slot)

fixed in #1473


Add branch for deployment to DockerHub

Some changes like for example documentation don't have to be pushed to production directly since they don't affect how the service operates.  I, therefore, think we should create a branch for production.

I have changed the auto-build settings on Docker Hub to pull from the production branch instead of master.


[build] Incremental build for docker images

New version of incremental build, which will hopefully will satisfy everyone.
Primary motivation for this change is to allow to build images for cluster test and validator during local development in order to try cluster test with those images. We were using build-aws so far, however, it now takes about 8-10 minutes to build, which is longer(!) then cluster test run itself, so some change is required in this area.
This version does not modify docker files in the repo, which I think was main concern previously.
Also, with help of previous refactorings, this change introduces support for incremental compilation for all libra images, that use libra-build
How it works?
Idea is same as previously - it compiles libra code in the build container and copies over artifacts into target image.
It creates temporary Dockerfile from the source one, by sed'ing call to build-common. This obviously limits incremental compilation to only containers that executes build-common as a build step.
Nice thing that this is fairly self-contained change that enables incremental compilation on all libra images, for example incremental compilation of validator can be done like this:
./docker/validator/build.sh --incremental

I'm okay with this, but think it'd led to redundant work if we ran it in CI (rebuilding the build executor in every machine it ran on.)

@rexhoffman this diff only play effect if --incremental is supplied, so it would not affect CI?

@bors-libra r=rexhoffman
Chatted with @rexhoffman - we don't use this in CI right now, so it should not affect build times.
If we decided to use it on CI, we will want to make a separate Dockerfile for build image

:pushpin: Commit 1ac40cd has been approved by rexhoffman

:hourglass: Testing commit 1ac40cdb4a675b36a14ab41a37f24f54855da0f8 with merge bbc1126c9f351d4e05e443b0618f4e778ec4cfde...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: rexhoffman
Pushing bbc1126c9f351d4e05e443b0618f4e778ec4cfde to master...


translate paid status to pending

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

Project coverage is 100.00%. Comparing base (bf06100) to head (89cccd6).

Additional details and impacted files
@@               Coverage Diff               @@
##           demo-fn-19-07       #49   +/-   ##
===============================================
  Coverage         100.00%   100.00%
===============================================
  Files                  1         1
  Lines                  4         4
  Branches               1         1
===============================================
  Hits                   4         4

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


feat(stream): hold combinator should not emit during Stream.run

Subtle bugs can occur when events are allowed to emit during the
same tick as Stream.run and most.js makes the guarantee that this
can not occur. See the wiki on architecture here.
BREAKING CHANGE: hold no longer emits last emit immediately upon subscription

Lets wait until these fixes occur in @most/hold

@TylorS, please provide information on why the PR was closed (in general). It's difficult for others to guess why.


Closes #2643: Add description field to console/power components and device bays

@lampwins I'm stashing this in a PR for now to ensure it doesn't conflict with your work in develop-2.6. Please let me know when the migrations are settled, and I'll adapt as necessary and merge.


Remove Spring-WebFlux and only uses reactor-netty

Remove Spring-WebFlux and only uses reactor-netty

btw: The reason why we keep reactor-netty-http is: If it were used for user APIs, we WILL remove it and implement an HTTP server from scratch, but it is only used by admin APIs,
so we don't need to go that far.

After code review, it's easy to implement our own APIs + actuators, but it's not an easy job to implement endpoints for OpenAPI from scratch, so we hold on until there are not important tickets to do.


BUG(?): [XCDYouTubeVideoOperation handleJavaScriptPlayerResponse] blocks UI

Hey guys,
First I want to say thank you for this awesome library!
Second,
I'm having a weird issue where it seems that using XCDYouTubeKit blocks the UI.
I'm new to Xcode's Instruments, but running the 'Time Profiler' helped me narrow it down to the method in the title.
I'm only using the [[XCDYouTubeClient defaultClient] getVideoWithIdentifier:_videoID completionHandler:^(XCDYouTubeVideo *video, NSError *error) method.
The method in the title seems to be running on the main queue, even if I explicitly create a background queue and run the above method on it.
Linking / Un-linking the JavaScriptCore framework to my project does not seem to make any difference.
I'm making a youtube query, with 25 results, then I call the method above to create XCDYouTubeVideo object for each of the results.
Perhaps the XCDYouTubeKit is too resource intense to be running this much simultaneously?
I'm running the app on iPhone 4s with iOS 7.1.2
And using Xcode 6.2 (The latest version compatible with Mavericks)
Any one else experiencing the same issue?
Basically, I'm creating my own objects for each youtube search result,
I'm just using the XCDYouTubeKit library to retrieve the stream URLs,
So perhaps is a different method in the XCDYouTubeKit, more suitable to my needs?
Cheers!
EDIT-
Just ran the 'Allocations' profile, and besides blocking the UI, the same method also takes a lot of memory.
Calling [[XCDYouTubeClient defaultClient] getVideoWithIdentifier:_videoID completionHandler:^(XCDYouTubeVideo *video, NSError *error) for those 25 search results items, 'costed' about 350MB.

I’m looking into it.

I had the same problem, the cause is that NSURLConnection and other methods are operating on main thread runloop when they don't need to since all of this is within an NSOperation.  I was able to get around this by using my own JLURLConnection (https://github.com/jlott1/JLURLConnection) and running this synchronously.  ping me any time and I'd be happy to help.  this is great code otherwise.

Can you please test the feature/performance branch? All networking and parsing code is now executed on a background thread.

Haven't made thorough testing,
But it seems to be working great now.
Thank you for your fast reply and extremely fast code adjustments!
You rock Mr. Luthi!
And Mr. Lott, I appreciate your reply, and will to help, as well,
But Mr. Luthi was so extremely fast on solving this, that I didn't had time to try your solution.
Thank you both guys.

Great! This ticket will close automatically when I'll release version 2.2.0.


[Java] The ArrowIPC Java library doesn't respect buffer offsets set in the flatbuffer metadata

Describe the bug, including details regarding any error messages, version, and platform.
The Buffer Alignment and Padding section of the Arrow Columnar Format Specification allows padding to be either 8-bytes or 64-bytes with 64-bytes being preferred for SIMD performance reasons.
I have a custom implementation of the Arrow Columnar Format (serialization and deserialization only as we operate on an entirely different columnar format) where I pad all of my data buffers to 64-bytes when serializing. This works fine with the C++, Python and Rust libraries (and I think with the Go library as well) as they all use the offset value from the flatbuffer Buffer message when calculating where to read the next body buffer from...
The Java library however, seems to assume that the padding will always be 8-bytes and just pads the size of the n-1th buffer to 8-bytes when calculating the offset for the nth buffer. This assumption obviously breaks when the padding size is anything other than 8-bytes...
Would it be acceptable to bring the Java library in-line with the remaining implementations, i.e., have it respect the offset from the flatbuffer metadata?
Component(s)
Java

Specifically:
What my library produces:

ArrowRecordBatch [length=64, nodes=[ArrowFieldNode [length=64, nullCount=0]], #buffers=2, buffersLayout=[ArrowBuffer [offset=0, size=8], ArrowBuffer [offset=64, size=128]], body length = 192]

What the Java library deserializes:

ArrowRecordBatch [length=64, nodes=[ArrowFieldNode [length=64, nullCount=0]], #buffers=2, buffersLayout=[ArrowBuffer [offset=0, size=8], ArrowBuffer [offset=8, size=128]], body_length = 136]

I'm not sure what the problem is. To be clear, is Java reading the data incorrectly?

Yes the Java library is reading the data incorrectly. It thinks the data body buffer starts at offset 8 (as the validity buffer only has 8 bytes of data) in the example above. However, the data buffer is actually at offset 64 as I'm padding all of my body buffers to 64.
I'm considering just going back to 8 byte padding in my implementation for now, but I think the Java library should respect the offset value in the Buffer metadata and not just add size of the previous buffer to calculate the offset of the next buffer.

Thanks. That indeed sounds like a bug. A PR would be welcome.

Okay so. This turned out to be a red herring for my particular issue... There was a bug in my implementation... Fixing that fixed the incorrect data issue.
The issue still remains that the calculation of bufferLayouts in ArrowRecordBatch.java is incorrect... Those computed layouts are used by the toString() function and apparently only for Java-specific testing (Java<->Java roundtrip). The wrong buffer offsets reported via the toString() function drove me down the wrong path.. 🤦🏽♂


Use SemVer'd faker library

Per: https://github.com/astorm/pestle/issues/120#issuecomment-348811249
sven@SG-MINT18 ~/project-dir $ composer require pulsestorm/pestle
Using version ^1.4 for pulsestorm/pestle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for fzaninotto/faker == <IP_ADDRESS> -> satisfiable by fzaninotto/faker[v1.7.1].
    - pulsestorm/pestle 1.4.0 requires fzaninotto/faker 1.6.0 -> satisfiable by fzaninotto/faker[v1.6.0].
    - pulsestorm/pestle 1.4.1 requires fzaninotto/faker 1.6.0 -> satisfiable by fzaninotto/faker[v1.6.0].
    - pulsestorm/pestle 1.4.2 requires fzaninotto/faker 1.6.0 -> satisfiable by fzaninotto/faker[v1.6.0].
    - Conclusion: don't install fzaninotto/faker v1.6.0
    - Installation request for pulsestorm/pestle ^1.4 -> satisfiable by pulsestorm/pestle[1.4.0, 1.4.1, 1.4.2].
Installation failed, reverting ./composer.json to its original content.

@twosg Was this a Magento project you were trying to add pulsestorm/pestle to?  Or some other random PHP project.  Regardless of that -- do you know what the semantic version string from your composer.json file looked like for fzaninotto/faker?

@astorm Yes it is a Magento project.
That is the composer.json:
{
    "name": "magento/project-community-edition",
    "description": "eCommerce Platform for Growth (Community Edition)",
    "type": "project",
    "version": "2.0.2",
    "repositories": [
        {
            "type": "composer",
            "url": "https://repo.magento.com/"
        }
    ],
    "require": {
        "magento/product-community-edition": "2.2.1",
        "composer/composer": "@alpha",
        "n98/magerun2": "^2.0",
        "staempfli/magento2-code-generator": "^1.8"
    },
    "require-dev": {
        "phpunit/phpunit": "4.1.0",
        "squizlabs/php_codesniffer": "1.5.3",
        "phpmd/phpmd": "@stable",
        "pdepend/pdepend": "2.0.6",
        "sjparkinson/static-review": "~4.1",
        "fabpot/php-cs-fixer": "~1.2",
        "lusitanian/oauth": "~0.3 <=0.7.0"
    },
    "config": {
        "use-include-path": true
    },
    "autoload": {
        "psr-4": {
            "Magento\\Framework\\": "lib/internal/Magento/Framework/",
            "Magento\\Setup\\": "setup/src/Magento/Setup/",
            "Magento\\": "app/code/Magento/"
        },
        "psr-0": {
            "": "app/code/"
        },
        "files": [
            "app/etc/NonComposerComponentRegistration.php"
        ]
    },
    "autoload-dev": {
        "psr-4": {
            "Magento\\Sniffs\\": "dev/tests/static/framework/Magento/Sniffs/",
            "Magento\\Tools\\": "dev/tools/Magento/Tools/",
            "Magento\\Tools\\Sanity\\": "dev/build/publication/sanity/Magento/Tools/Sanity/",
            "Magento\\TestFramework\\Inspection\\": "dev/tests/static/framework/Magento/TestFramework/Inspection/",
            "Magento\\TestFramework\\Utility\\": "dev/tests/static/framework/Magento/TestFramework/Utility/"
        }
    },
    "minimum-stability": "stable",
    "prefer-stable": true,
    "extra": {
        "magento-force": "override"
    }
}

It is "n98/magerun2": "^2.0" which requires the fzaninotto/faker in <IP_ADDRESS>. After removing magerun2, I can require pestle. And after pestle is required, I can also add magerun2 in 2.0.0 version.
So it seems this is just a composer problem and nothing wrong with pestle :)
Thanks for your help!

Magerun seems to have this locked at 1.6.0, so I'm not sure where your 1.6 was coming from.  That, plus your comments, makes me think everything is addressed here.  However, if your'e still having trouble, please don't hesitate to reopen this issue, or open a new and (and apologies for the delay -- being a one man band doesn't always make for the most timely of responses)


Is the ability to play local content still coming?

Basically I just want to know if the local file playback/local files autoplaylist feauture is still coming?
Thanks :)

Productivity on this seems to be picking up, at this time I don't see it happening, however I'd keep an eye on @TheerapakG's clone and branches since he's most likely to implement something like this tbh.


[Android] Authentication with Auth0 SDK in Android

Authentication with Auth0 SDK in Android
Proposed article introduction
Auth0 is a flexible, drop-in solution to add authentication and authorization services to your applications. Your team and organization can avoid the cost, time, and risk that come with building your own solution to authenticate and authorize users. Auth0 is an easy to implement, adaptable authentication and authorization platform.
The Authentication API enables you to manage all aspects of your user identity when you use Auth0. It offers endpoints so your users can log in, sign up, log out, access APIs, and more. The API supports various identity protocols like OpenID Connect , OAuth 2.0, and SAML.
In this tutorial, we are going to create an Android app that uses Auth0 authentication feature.
Key takeaways

What is Auth0 SDK?
An understanding of authentication and authorization.
Features offered by Auth0.
Pricing.
Integrating the SDK into an Android app.

Article quality
I performed some searches on the web and there are not many articles/ tutorials talking about setting up authentication in an Android app. Most results come from the doc, but with my article I will use the SDK to come up with an architectured Android app with authentication feature.
References

Auth0 Docs

@feswalsalim I was just going through the documentation https://auth0.com/docs/libraries/auth0-android I feel they already covered most of your key takeaways adequately. Feel free to suggest another topic. Thanks


Document workaround for MySQL FIELD function

We should document a workaround for users who are using the MySQL FIELD function and want to migrate to CockroachDB from MySQL.
According to this forum post on Sorting using FIELD there may be a workaround using array_position.

Zendesk ticket #3462 has been linked to this issue.

@Amruta-Ranade, can I work on this one?

@rmloveland, I am an external contributor and I don't have access to this Zendesk ticket: #3462
Based on this forum post on Sorting using FIELD, I'm planning to add a new section under "Considerations" in migrate to CockroachDB from MySQL.
FIELD function
The MYSQL FIELD function is not supported in CockroachDB. Instead, you can use the array_position function, which returns the index of the first occurrence of element in the array.
While MYSQL returns 0 when the element is not found, CockroachDB returns NULL. So if you are using the ORDER BY clause with the array_position  function, the caveat is that sort is applied even when the element is not found. As a workaround, you can use the COALESCE operator.
Example:
SELECT array_position(ARRAY[4,1,3,2],1);
array_position
------------------
             2
(1 row)
SELECT * FROM table_a ORDER BY COALESCE(array_position(ARRAY[4,1,3,2],5),999);
Will this work? Is there anything else that I can add on this workaround?

Hy @deeptikorwar thanks for pulling this together.  I think that works.  Mind putting it in a PR so we can test and review?  Thanks!

Fixed by #8751


Add capabilities feature

This PR adds capabilities feature, which gives administrators ability to restrict changes to namespaces on a per-user basis. This is a front-end only change.
Implementation details:

The logic of fetching and determining is abstracted from the application. This allows QuotaService users to implement their own internal logic without having to make changes to the opensource code.
To enable capabilities feature, env.capabilities in index.jsx should be set to true.
Communication between QS front-end an internal logic is done via DOM events:

QuotaService.fetchCapabilities is triggered by QS front-end. event.detail.callback should be called when the fetch is complete.
QuotaService.getCapabilities is triggered for each namespace to determine if current user is able to make changes. event.detail.namespaceName contains namespace name in question. event.detail.callback should be called with true or false where true indicates that user will be able to make changes.
index.jsx contains example implementation.

Is 🛠 visually enough? I wonder if we should grey out the others a bit more.

All comments are addresses. Please review.

LGTM except for small fix. :shipit:

FYI, @sajidsnasir


List allTON

Description
Listing Alloyed TON
Checklist
Adding Assets
If adding a new asset, please ensure the following:

[ ] Asset is registered to the Cosmos Chain Registry.
[ ] Add asset to bottom of zone_assets.json.

[x] chain_name and base_denom are provided and use values exactly as defined at the Chain Registry.
[x] path is provided, and the IBC channel referenced is registered at the Chain Registry (unless native to Osmosis).
[x] osmosis_verified is set to false
[x] listing_date_time_utc is specified and accurate
[ ] Optional: transfer_methods, peg_mechanism, override_properties, canonical, categories, where necessary (see README for details).

Pending Chain registry, which is pending logo
https://github.com/cosmos/chain-registry/pull/5247


placeholder not working, StateListDrawable cannot be cast to BitmapDrawable

Please complete the following information:

Library Version 1.4.5
Affected Device(s) emulator android 12

Describe the Bug:
Use placeholder code in README
FrescoImage(
            imageUrl = uri,
            // Crop, Fit, Inside, FillHeight, FillWidth, None
            contentScale = ContentScale.Crop,
            // shows an image with a circular revealed animation.
            circularReveal = CircularReveal(duration = 250),
            // shows a placeholder ImageBitmap when loading.
            placeHolder = ImageBitmap.imageResource(android.R.drawable.btn_default),
            // shows an error ImageBitmap when the request failed.
            error = ImageBitmap.imageResource(android.R.drawable.stat_notify_error),
            previewPlaceholder = android.R.drawable.btn_default,
            modifier = Modifier.height(90.dp)
        )

App crash
java.lang.ClassCastException: android.graphics.drawable.StateListDrawable cannot be cast to android.graphics.drawable.BitmapDrawable
        at androidx.compose.ui.res.ImageResources_androidKt.imageResource(ImageResources.android.kt:39)
        at androidx.compose.ui.res.ImageResources_androidKt.imageResource(ImageResources.android.kt:58)
        at com.kkday.component.TextViewWithImageTagComposeKt.TextWithImageButtonCompose(TextViewWithImageTagCompose.kt:31)
        at com.example.composeapplication.MainActivityKt.Greeting(MainActivity.kt:69)

Expected Behavior:
I could not find placeholder example in the project.

Hey @andreas-kkday,
The crash shows you used StateListDrawable instead of the BitmapDrawable.
Could you try to build with another single-state image? such as ic_android.xml or something just an icon image.

Thank you, using .png image resource is working.


[index] fix chmod of keyvimerger binary

the original implementation turned out to be broken. This change fixes keyvimerger access rights and adds a test for it

Coverage remained the same at 93.186% when pulling ae6b88d71db4a0ea6e5ce346db391d5ee03b5937 on hendrikmuhs:index-fix-keyvimerger_install into 7fc055b035fa6f3c0aa0890dcee4735b2e716b38 on KeyviDev:index.

After some more testing it seems that the current approach will not work for wheel packages. Wheels have no execution hook but simply unzip the package and changer permissions (The wheel still has '+x' on the binary, but after installation it is reset).
Therefore I need a different approach, possible solutions:

create a python version and install it as script and/or use keyvi cli (problem: different style of cmd arguments)
at runtime copy the binary to a tmp location with proper access rights and use that
provide a script that needs to be run after installation that fixes rights (could be in combination with the above as fallback)
implement in-process merge and only use that as a fallback

It goes into the right direction:
Providing the binary works, some build fail due to full static linkage:

on manylinux we lack a static build of boost
on mac full static linkage is not possible, but I need to link it with minimal dependencies as we already do for the python bindings

Both is complicated to fix, maybe I still go with the option of a python script.

I think python script is better option. Also we will not need to build whole keyvi from setup.py and ship with package, but just extension part.

closing in favor of #48


.py script

Can you create a .py script? I've tried but got weird errors but maybe because i've run in a non gpu environ

Sure added to list it will be done after current tuning operations done

@EdwardDali Could you test with latest packaging on uv could be fixing your issues

thanks, I will look into it. fyi, in the meantime I've created this https://github.com/EdwardDali/EntropixLab

are you using quantized gguf models ?

are you using quantized gguf models ?

in the second branch, yes. the dinamic sampling seems to work but I can't calculate the attention entropy, seems that is not possible

Yes that was the point i will mention you can have some problems getting some metrics in strategies but good work overall

you can somehow approximate the attention entropy using other factors like the varuance of the entropy over a window of tokens and could make it more stable using a chunking strategy before changing the strategy but overall it's not a stable, consistent result. the attention entropy seems to be needed at the moment this is why I moved the non-gguf branch as main

CLI version is implemented


Sample fix for #10

This is an example of a possible fix for #10.  It reimplements List.Extra.greedyGroupsOf to use the same tail-recursive version of List.take that is used internally by elm/core (but there it is used only after 1000 entries as explained in #10).

I realise you may feel this is better fixed upstream in elm-community/list-extra.  I have submitted a pull request there too (elm-community/list-extra#165).


berks command failed to execute

I'm setting this up on OS X with vagrant (version 1.6.5) and the following vagrant plugins
vagrant-berkshelf (4.0.0)
vagrant-cachier (1.1.0)
vagrant-hosts (2.2.3)
vagrant-login (1.0.1, system)
vagrant-omnibus (1.4.1)
vagrant-share (1.1.2, system)
The following berks command failed to execute:

    /Volumes/MacintoshHDD/Users/dalekurt/.rbenv/shims/berks --version --format json

The stdout and stderr are shown below:

    stdout:
    stderr: /Volumes/MacintoshHDD/Users/dalekurt/.rbenv/versions/2.1.4/lib/ruby/2.1.0/rubygems/dependency.rb:298:in `to_specs': Could not find 'berkshelf' (>= 0) among 60 total gem(s) (Gem::LoadError)
	from /Volumes/MacintoshHDD/Users/dalekurt/.rbenv/versions/2.1.4/lib/ruby/2.1.0/rubygems/dependency.rb:309:in `to_spec'
	from /Volumes/MacintoshHDD/Users/dalekurt/.rbenv/versions/2.1.4/lib/ruby/2.1.0/rubygems/core_ext/kernel_gem.rb:53:in `gem'
	from /Volumes/MacintoshHDD/Users/dalekurt/.rbenv/versions/2.1.4/bin/berks:22:in `<main>'

It appears that you are not using the ChefDK. Please note that Vagrant Berkshelf
works best when used with the ChefDK, and other installation methods are not
officially supported.

Please download and install the latest version of the ChefDK from:

    https://downloads.getchef.com/chef-dk

and follow the installation instructions. Do not forget to add the ChefDK to
your PATH.

I had the same issue and got it working by doing
brew cask uninstall chefdk
brew cask install chefdk
I also uninstalled the berkshelf( and other related gems) and uninstalled each version of ruby managed by RVM but it didn't work until I re-installed chefdk

@dalekurt Thanks. That helped. Uninstalled berkshelf and installed chef-dk.


Fix hits_along_path

For a test case with lmp (1 [4, 5) G) (2 [8, 9) C)
It doesn't think hit (3, 3, 3, 3{[4, 5)[8, 9)[16, 17)}, 1, 0) lies on this path

This isn't a bug - hits_along_path finds hits contained within the path. If the path is too short to contain a hit, so be it. Rename function instead in commit d148dcd


useTranslation hook of next-i18next is triggring an error

Describe the Bug
when we use useTranslation hook in an email template we get an error
"can not read properties of null, of useContext"
can we fix this ? or there's another way to use translations in the email template
Which package is affected (leave empty if unsure)
No response
Link to the code that reproduces this issue
nolink
To Reproduce
add useTranslation hook in an email template and try to use it (the template)
Expected Behavior
no error and the text gets translated
What's your node version? (if relevant)
18.16.0

No context will work since the email components are rendered apart from your react app.
What I'd recommend you do is you pass the instance of i18next into the email as a prop instead of trying to useContext on the email.


closures for module scope

Function closure support has been implemented as of ticket http://trac.cython.org/ticket/82. The same mechanism is required for the module scope to support generator expressions and lambda expressions at the module level, and might be a suitable base to implement PEP 3121 support as of tickets http://trac.cython.org/ticket/173 and http://trac.cython.org/ticket/218.
At 2010-11-27T08:26:08Z @vitek added attachment lambda-module-scope.patch
Migrated from http://trac.cython.org/ticket/308

Generators at the module scope currently seem to work (module scope variables are looked up, rather than captured, but this is right I think)


data-bind:list

To make things nice and simple with nested lists, a new bind key can be used to specify which property of the bound object should be used for automatically binding the nested list.

Name goes here

Categories:

Category name goes here

$iterable = getListOfThings();
$iterable[0]->categories = getCategoriesForThing(); // silly example, but it makes sense
$binder->bindList($iterable);

This latest wip commit is nearly there. It's currently detecting data-bind:list just fine, and binding the sub list, all while expanding the nested objects correctly (thanks to #356).
The remaining issue is that the sublist is repeating itself, so item 2 of a sublist contains the same content as item 1.

It works! The problem was just me being dumb in the unit test... for the last hour or so, the functionality was actually working, but my assumptions in the tests were wrong.

Here's the HTML structure I'm using in the unit tests for this:
<!doctype html>

Customer overview

<customer-list>

			<customer-details>

ID

000

Name

Customer Name!

Address

						Address Line 1
						Address Line 2
						Address City
						Address Postcode
						Address Country

Latest orders

					<order-list data-bind:list>

City / State

Subtotal

£0.--

Shipping

£0.--

Total

£0.--

Items in order

Item name

£0.--

					</order-list>

			</customer-details>

</customer-list>

Before this is made into a PR, I think there's a few tweaks left. The main one is whether or not this functionality works when the root data structure is an object with a list property, rather than in this case a list of multiple objects... basically this works with bindData but does it work with bindList?


Example script update

Hi,
The PowerShell script on this page does not work with PowerShell 7.3.6 and later, I have not tested with earlier versions. The reason for it is because the returned request headers has changed type from Windows PowerShell to PowerShell 7.
One way to make the script work in both Windows PowerShell and PowerShell 7, would be to change the catch clause to this:
catch
{
$wwwAuthHeaders = $_.Exception.Response.Headers
switch ($wwwAuthHeaders.gettype().Fullname) {
    System.Net.WebHeaderCollection {
        if ($wwwAuthHeaders['WWW-Authenticate'] -match "Basic realm=.+")
        {
            $secretFile = ($wwwAuthHeaders['WWW-Authenticate'] -split "Basic realm=")[1]
        }
    }
    System.Net.Http.Headers.HttpResponseHeaders {
        $secretFile = ($wwwAuthHeaders.WwwAuthenticate.Parameter -split '=')[1]
    }
}

}
An additional update is to update the $apiVersion to 2021-02-01

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

ID: 8ec54523-244d-f725-325d-43c7a8b2c002
Version Independent ID: 8aa03d64-59f8-98b2-6981-7613a529d769
Content: Authenticate against Azure resources with Azure Arc-enabled servers - Azure Arc
Content Source: articles/azure-arc/servers/managed-identity-authentication.md
Service: azure-arc
Sub-service: azure-arc-servers
GitHub Login: @johnmarco
Microsoft Alias: johnmarc

@pejuborg
Thanks for your feedback! We will investigate and update as appropriate.

@pejuborg - Thanks again for bringing this to our attention. We have updated the doc and it will be live once it's merged.  We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


issue 964 properly impl getEntityTypeByLabel

Fixes https://github.com/DSpace/dspace-angular/issues/964

@artlowel Already have an issue and PR for what you're describing: https://github.com/DSpace/DSpace/issues/3078


More usage detail

Is this automatically generated documents, or I need to write code in the md file to generate documents?

Automatically by this logic vue-docgen and you can add something other in the near README.md files like this components/button/README.md

can I write specified path in md file, and it can resolve vue api in files and render. like vuese.
eg vuese:
xx.md
vc-color-picker API
<vuese-h3

Currently i think no


Anti-Virus (NOD32) blocking the "Live Preview"

Hello,
Whenever I hit Live Preview, Chrome opens up like it's supposed to. However, it is stuck at "Waiting". It takes extremely long to load, to the point where I don't even feel like using Live Preview anymore. And in the rare case that it does work, it's not live. It's like any other static http server.
so I tried to stop the my antivirus (NOD32) and suddenly problem fixed!
Now I don't sure how to make nod32 stop blocking the live preview.....
I hope some one can help :)

Yes, I can confirm that.
But NOD32 also blocks some extensions (for example eqFTP) and even some functions of Brackets.
Fortunately, you can exclude the protocol filtering in NOD32: advanced settings -> web and mail -> protocol filtering -> excluded aplications -> brackets.exe

Two days ago I noticed that brackets hangs every 5 minutes or so, I tried disabling some extensions, then all with no success. I cleaned brackets and reinstalled it, after only a minute working with this fresh  bracket install (no extensions) it froze again... I'm also using NOD32 so it may be related, I excluded the application from filtering and no more freeze.

@GuyZipory Are you still facing the issue?

No, problem solved! Thanks!
בתאריך 25 במרץ 2015 09:56, "Prashant Kumar Singh"<EMAIL_ADDRESS>כתב:

@GuyZipory https://github.com/GuyZipory Are you still facing the issue?
—
Reply to this email directly or view it on GitHub
https://github.com/adobe/brackets/issues/10744#issuecomment-85906191.


Unable to hide root folder in monorepo setup

Hello, I'm using Nextra for hosting my documentation with a Nextjs + Nextra monorepo setup. I have all my docs under pages/docs, however, I don't want the root docs folder showing up in the sidebar as the main container for all the documentation. Is there a way to hide it?

This is critical for many organizations...

Same here, please fix it

+1!

+1

Any updates on this? I need to incorporate my custom naming from _meta.json...
I don't see a direct solve in the docs

use "display": "children" in _meta.json
  "docs": {
    "title": "Documentation",
+    "display": "children"
  },

Any reason why this isn't in the docs? I'd be happy to add it if this just needs someone to make a PR

use "display": "children" in _meta.json
  "docs": {
    "title": "Documentation",
+   "display": "children"
  },

It definitely helps with the sidebar, though the root node still appears in the breadcrumb

Any solution for this?


Fix Python inference typos

There are 2 typos at python_infer_cn.md.

The correct parameter is Float32 instead of kFloat32
The correct argument is precision_mode instead of precision

@NHZlX ,
I have submitted the PR for issue https://github.com/PaddlePaddle/Paddle/issues/20786.
Could you help to take a look?


fix: dev export generated during build

🐛 The bug
🛠 To reproduce
using siroc build (little bit hard to make preproduction)
🌈 Expected behavior
Only generate final bundle but shortly a dev version is being generated in dist
ℹ Additional context
Add any other context about the problem here.

This was originally to allow builds to progress in parallel in a monorepo. I'm guessing it became an issue because the build was interrupted, meaning that you still have a dev stub in your dist folder?

No actually it was just since i noticed fs writes (which probably little bit slows down too)
Would you please share more context why dev stub is needed for monorepo builds?


Clangd not finding nested includes

Please describe the problem.
For hints on what information is helpful, see: https://clangd.llvm.org/troubleshooting.html
If you can, provide a minimal chunk of code that shows the problem (either inline, or attach it if larger).
#include <vulkan/vulkan.h>

using namespace std;

// VkInstance instance;
int main()
{
}

.clangd
# https://clang.llvm.org/docs/CommandGuide/clang.html
CompileFlags: # Tweak the parse settings
    Add:
        - "-IC:/VulkanSDK/1.3.268.0/Include"

Then going to vulkan_core.h shows this spurious error

Logs
Please attach the clangd stderr log if you can. (Usually available from the editor)
If possible, run with --log=verbose - note that the logs will include the contents of open files!
If this is a crash, try to put llvm-symbolizer on your PATH per the troubleshooting instructions.
System information
Output of clangd --version: 16.0.2
Editor/LSP plugin: clangd on vscode
Operating system:
Version: 1.84.2 (user setup)
Commit: 1a5daa3a0231a0fbba4f14db7ec463cf99d7768e
Date: 2023-11-09T10:51:52.184Z
Electron: 25.9.2
ElectronBuildId: 24603566
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.22621

Please see explanation in https://github.com/clangd/clangd/issues/1615#issuecomment-1532279786


Send an email if the publish images job failed

In order for the email to be sent successfully, the secrets used by the email job must be set. The email is only sent if any of the previous steps fail and the workflow is run by the cron job.

This adds the sending email step to the Publish FINOS Waltz Images job.
LGTM!
The secrets have also been added to the repository.


Export: name replacement issues

(11,2 km) -> 112 km
decimal separator removed since locale-aware number formatting in #200
öäüÜéèß -> .gpx
name with only replaced characters is empty

Fixed by client-side formatting (#399) and download (7aa2fcb).
Additionally removing > from default name as it requires encoding in XML and gets removed in filename anyway (2003257).


Reference dataset/datasets on the visualizationView page

We should give the user the ability to navigate to the dataset/datasets that they used to create their saved visualization on the visualizationView page. Currently the user has no way to know what dataset/datasets they used at the time of creating the saved visulization.
AC:

[ ] As a logged in user with saved visualizations, when I click on a saved visualization and land on the visualizationView page I should see a reference/links to the datasets that I used to create the visualization
[ ] When I click on the dataset link I should be redirected back to the datasetview page of that dataset

Can we not do a light interrogation of the sql and just build links based on data names? That sounds like the same or less amount of work for something that's more dynamic (as they write queries etc).

Split card to an API card as well, blocking this.


DOCUMENTATION: OPEN SOURCE PROJECT

Add every file required to be hosted on LF AI & Data Platform as Sandbox stage.

Testing merge from a forked repository


Update Node.gitignore

Reasons for making this change:
It need coverage.lcov file to integrate nyc and Codecov. I recommend to add it because it's created locally when someone will check that the node command that creating coverage.lcov file works correctly.
Links to documentation supporting these rule changes:
https://github.com/istanbuljs/nyc#integrating-with-codecov

@byeonggukgong thanks!


RedeliverOnStart don't work

I tried this simple demo and found that if I set the same value to state every time, onEach and invalidate are not executed. Isn't the default value of deliveryMode RedeliverOnStart? I look forward to your help.
data class MainState(
    val num: Int = 0
): MavericksState

class MainViewModel(mainState: MainState): MavericksViewModel<MainState>(mainState) {
    companion object {
        private const val TAG = "mavericks"
    }
    init {
        onEach {
            Log.d(TAG, "state has changed")
        }
    }

    fun increaseNum() {
        setState {
            copy(num = 1)
        }
    }
}

@gpeal did I used it the wrong way? I'm curious and look forward to your help.

I tried this simple demo and found that if I set the same value to state every time, onEach and invalidate are not executed. Isn't the default value of deliveryMode RedeliverOnStart? I look forward to your help.
data class MainState(
    val num: Int = 0
): MavericksState

class MainViewModel(mainState: MainState): MavericksViewModel<MainState>(mainState) {
    companion object {
        private const val TAG = "mavericks"
    }
    init {
        onEach {
            Log.d(TAG, "state has changed")
        }
    }

    fun increaseNum() {
        setState {
            copy(num = 1)
        }
    }
}


Change the map tiles and location points to be prettier

As a user of the map website, I want to see a map that is a little more interesting than black and white, and points for meetup locations that are of a shape and color that is prettier than a small orange dot so that I can appreciate the quality of the map I'm seeing, and see the points clearly on that map.

The color was changed to a prettier shade with #47


Gym - Error code: 65

Hello Felix!
I got a problem trying gym in fastlane,
My lane:
desc "Create ipa"
lane :build do
gym
end
I'm executing "fastlane build" in the command line through a remote desktop using Screensharing, since El Capitan I can't press allow button in the Keychain prompt (codesing is trying to use a specific key...), so I can't execute gym from my machine, and I don't have physical access to the server machine.
So I was wondering if somehow gym (or sign, cert, any fastlane's module) can do that for me (allow codesign to use that key).
Or if you have any idea about how can I solve this.

i don't have any experience doing this exactly but the unlock_keychain fastlane action sounds promising. A description of the action can be found here: https://github.com/fastlane/fastlane/blob/master/docs/Actions.md#unlock_keychain

Hey everyone. I am going to go ahead and close this issue for now because it's been a while since there has been activity on it. Please feel free to continue discussion and we will reopen it if appropriate. Thanks!! :rocket: :guitar:


Worked perfectly for months until the upgrade 2 weeks ago

Hi, I am a reasonable novice with Home Assistant. I installed HACS and the Kingspan integration in about August 2023 and it worked perfectly untik 2 weeks ago when it was updated. I am not getting any clues as to what is wrong. It just says 'failed set up, will retry'. Its done this for two weeks. I have updated and restarted HA hoping htat might help.
When I hover over the message I see 'Error while connecting to device [IP Address]  Call connect failed  (IP Address) (connection error).
Any advice to trouble shoot would be appreciated.
Also, if anyone could tell me what this device shows as on the wireless network that could be usefull. I have a lot of equipement conected and cant see any IP on my router that looks like Kingspan or Sensit.
The Kingsapn app is working perfectly so its not that. I has been updating as usual every morning.
Many thanks! Kirsty

Did you update to the latest version?  The integration needed some updates following HA release 2024.1.
Also, nothing obvious for you to look for on your LAN for the Kingspan device.  When I first installed it I trapped its MAC & IP and called it 'Oil Sensor' on my Router.  MAC starts 94-B9-7E - sometimes these can be common from the manufacturer.

Did you update to the latest version? The integration needed some updates following HA release 2024.1.
Also, nothing obvious for you to look for on your LAN for the Kingspan device. When I first installed it I trapped its MAC & IP and called it 'Oil Sensor' on my Router. MAC starts 94-B9-7E - sometimes these can be common from the manufacturer.

Many thanks for your help. I had updated HA but not the Kingspan updates and its working again now! I wanted to idetify it on my network to fix the IP address as I've done with some other things as I thought something like a dynamic IP address may have been the issue. I took a look and have nothing like your MAC address, so I guess I'll just leave for now and fix whenever I work out which of the obscure devices it is. Thanks once again.


UI reskin pr branch

@adamgibs did this fix the issues we were seeing with AC and the Filters?

@adamgibs was this suppose to be the whole reskin? It just looks like formatting changes?

@oblodgett No, this is just for subject and disease editor input autocomplete and display. It's not meant to be merged into alpha, just into the ui_reskin branch. I pushed it out Friday in case you or Ketaki were going to work on it while I was gone yesterday.


How to reuse old ROS bag files in the cyber RT?

Hi,
Is there any way to reuse the ROS bag files in the cyber RT in rc3.5?
It looks like cyber has a similar tool for playback, cyber_record. But I failed to use it to play the old bag files; it complains "read header section failed".
Thanks,
Junjie
System information

OS Platform and Distribution (e.g., Linux Ubuntu 14.04): Ubunut 14.04
Apollo installed from (source or binary): source
Apollo version (1.0, 1.5, 2.0, 2.5, 3.0): rc3.5

I have the same problem.


Allow staff to acknowledge all notifications on Grading page

[UX] Allow staff to acknowledge all notifications on Grading page
Feature suggestion.
Rationale
The backend generates a large amount of notifications for each staff member for student submissions, especially right after assessment deadlines, where all open submissions are auto-submitted and all submissions are re-autograded.
As a result, this renders a large number of submission badges at once in the submissions table (datagrid) on the Grading page. Each notification needs to be manually acknowledged by hovering over the corresponding badge and closing it with the 'X' button, which makes the notification system unnecessarily frustrating to use.
The submissions table also prioritises submissions with attached notifications, and sorts the submissions to float them to the top of the table. Acknowledging a notification removes it from that submission, which causes the datagrid to re-sort the submissions and re-render, crippling performance.
Feature description
Add controls to allow staff greater flexibility in acknowledging submissions-related notifications, e.g. allow Avengers to acknowledge all notifications of a certain type for a given assessment at once. Alternatively, automatically acknowledge notifications when the corresponding submission has been viewed.
Last updated 16 Jun 2020, 11:45PM

Notifications are removed. issue gone.


python3Packages.aggdraw: fix build for Python 3.12

Description of changes
Found running nixpkgs-review for https://github.com/NixOS/nixpkgs/pull/298437.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[x] x86_64-darwin
[x] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Any reason why these fixes are applied as patches instead of updating the version to 1.3.18?
I also came through this issue while running nixpkgs-review for #299993 and it looks like updating to 1.3.18 fixes both of the issues addressed by the patches.

superseeded by https://github.com/NixOS/nixpkgs/pull/301794