Add query profile type

I am not sure if this is right, so I want to improve the vespa doc on this as well
https://github.com/vespa-cloud/vespa-documentation-search/blob/main/src/main/application/schemas/doc.sd#L99 :
        rank-properties {
            $titleWeight: 20.0
            $contentWeight: 10.0
            $gramTitleWeight: 2.0
            $gramContentWeight: 1.0
        }

I seem to remember the $ syntax is legacy, but not sure
https://docs.vespa.ai/en/reference/schema-reference.html#rank-properties does not point to an example with query features

Yes, the dollars thing is legacy, and that a query rank feature becomes a rank property is secret knowledge.
We don't have a documented way to set defaults for query properties in a rank profile at the moment - you can set it in the query profile.
I'm planning to add one as part of supporting defining inputs in rank profiles:
Since yesterday's release you can say
rank-profile {
    inputs {
        query(foo) [type]
    }
}

And then we can also support
rank-profile {
    inputs {
        query(foo) [type]: [value]
    }
}

Note that adding the types of float query properties is just politeness/documentation since that is the default type.

Great! I'll update doc search accordingly

Note that adding the types of float query properties is just politeness/documentation since that is the default type.

right - but the console warns, which is why I wanted to fix this anyway. I want to add a link to something in docs once this PR is done, from the console warning.


Support abbreviated owner/repo Git URL format

The GitHub hub tool allows using owner/repo as an abbreviated form of https://github.com/owner/repo.git. This change supports that format in the --git command-line argument.
It also improves the command-line argument documentation.

I resolved the current conflicts with master.
I am now waiting for the tests to run, before merging to master.

Done, thanks again for your work :)


Windows binaries broken

Steps to reproduce
Tell us about your environment:

Puppeteer version: 0.11
Platform / OS version: Windows 7, Windows 10

What steps will reproduce the problem?

The web page of that url should open.
What happens instead?
The content area of the chromium browser remains empty. Same website opens fine in IE:

Basically 0.11 completely does not work on Windows for me..

0.12 seems to be fine.


fix: remove unused sass-loader dependency

Coverage remained the same at 89.783% when pulling 53134d5455eea46348bc409f6676fd9cbc886b7d on abutterworth/remove-sass-loader into 7137541aba62bc7ef6b4a13044d7bc7d9970da19 on master.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Enable automerge for new version PRs of community packages

Description
Fixes: #4424

Enables automerge also for new version PRs of community packages.
Refactored duplicate steps from 2 workflows in a separate composite action

Triggered a manual run, a new version of runpod-native community package was picked up, but the execution of the workflow failed because I made a mistake in the path to the composite action: ./github/... instead of ./.github/...
https://github.com/pulumi/registry/actions/runs/9594431540/job/26457015261

My second attempt was not yet succesfull, but the third one was:
https://github.com/pulumi/registry/actions/runs/9599696212
This run found 1 community package which had a new version:

Job Creating PR
Automerged PR

<EMAIL_ADDRESS>#4781

This was the most I could test this PR.

thank you @ringods !!!


book the room

[Enter feedback here]

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

ID: 2eebb06d-174a-4f38-6e9e-c6176e97b3ba
Version Independent ID: b3feb7ce-6756-29af-f18b-2b9fd4e29f3e
Content: Purchase Power Apps for your organization - Power Platform Admin center
Content Source: power-platform/admin/signup-for-powerapps-admin.md
Service: power-platform
GitHub Login: @jimholtz
Microsoft Alias: jimholtz

@bongbong0000
Please provide feedback on what should change in the documentation. Thanks.


Provide the ability to defer the execution of parent in a page load function

Describe the problem
Imagine a very ordinary scenario in which you're retrieving user information in your root layout's load function (previously done with getSession):
routes/+layout.ts:
export const load: PageLoad = async ({ fetch }) => {
  const user = await fetch('/getUserInfo');
  return { user };
});

In the load function of some page, you might need to do something that affects the user state, which means it would then require updating the user info. Another way of thinking about this would be that you want to first do something and only THEN retrieve the user info. This is currently not possible:
routes/sign-out/+page.ts:
export const load: PageLoad = async ({ fetch }) => {
  const success = fetch('signOut');
  return { success }; // In the corresponding `+page.svelte`, now `$page.data.user` would likely be out-of-date, we need to refresh it somehow because we did something that affected it.
});

(Now, a sign out page may not be the best example because you could have an endpoint that does the same thing but it was the simplest example, there are other more realistic instances such as a page that a user gets redirected to after a payment transcation, etc.)
Describe the proposed solution
Introduce some sort of a construct that allows page load functions to instruct SvelteKit that the execution of the parent load function(s) should be initiated after the execution of the current one.
Perhaps something like:
export const load: PageLoad = async ({ fetch, parent }) => {
  parent.defer();
  const success = fetch('signOut');
  return { success };
});

Or:
export const parentDefer: boolean = true;
export const load: PageLoad = async ({ fetch }) => { // no `parent` here as part of the input
  const success = fetch('signOut');
  return { success };
});

The API doesn't have to look like this and is open to discussion, the underlying idea here is what matters: The ability to reverse the execution flow of a page load function and its parent. This would be very, very useful in scenarios where the page load does something that causes the data that the parent retrieves to become out-of-date.
Alternatives considered
No response
Importance
would make my life easier
Additional Information
No response

AFAIK the intended approach is:
// routes/+layout.js
export const load = () => {
  return {
    user: { someData: 1 }
  };
};

// routes/whatever/+page.js
export const load = async ({ parent }) => {
  const { user } = await parent();
  return {
    user: { ...user, changedData: 2 }
  }
};

If the child page/layout requires that it do something before some other data is fetched, it should just do both of them, in the required order. Or, if there's only a part of the data that would otherwise be coming from a parent that should be overridden, the load function can override just that part.
This doesn't seem like something that needs a special syntax. The logout example doesn't feel like how you would want to implement logout anyway. Logging out should probably either be a form action, or - if for some reason if needs to be a GET to a page - that page should redirect to some post-logout page.

@Conduitry Would've made more sense to give me the opportunity to respond before closing the issue.

If the child page/layout requires that it do something before some other data is fetched, it should just do both of them, in the required order. Or, if there's only a part of the data that would otherwise be coming from a parent that should be overridden, the load function can override just that part.

That's not possible, because then the overridden data property will revert back to the parent value once the user navigates to another page, that's not what's intended here.

The logout example doesn't feel like how you would want to implement logout anyway. Logging out should probably either be a form action, or - if for some reason if needs to be a GET to a page - that page should redirect to some post-logout page.

I explicitly pointed out that the sign out example wasn't the best but the simplest, and also hinted at a better example, namely the page that the user gets redirected to after a payment transaction is complete.

Can you please reconsider this?


glossary: review "DVC repository" term

Extracted from https://github.com/iterative/dvc.org/pull/679#pullrequestreview-313614107

"DVC repository" was introduced in the glossary during the writing of the data registry use case. It can be confusing since usually DVC projects are also Git repositories. Should we just remove this term and use something like "Git repository containing the DVC project"?
We could also keep it but "be more explicit about the difference". Let' s decide and address.

...be more explicit about the difference

(between "DVC project" and "DVC repository", I assume.)
@shcheklein could you clarify what we mean by this?  Thanks!

Ah, I see it already has a kind-a back-reference to the DVC Project at the very beginning. I think we can close this, @jorgeorpinel . Sorry, about confusion.

Ok. We can also consider:

Should we just remove this term and use something like "Git repository containing the DVC project"?

What do you think? That would probably be the least confusing. Closing for now.


A litte issue in the Meshery docs

Description

https://docs.meshery.io/reference/error-codes#meshery-adapter-library-library
There are some headings in the docs  where the first letter of  Linkerd is not capitalised
Expected Behavior

Screenshots/Logs

Environment:

Meshery Version: v0.5.0
Kubernetes Version:
Host OS: Windows
Browser:  Chrome

To Reproduce
Steps to reproduce the behavior:

Go to 'https://docs.meshery.io/reference/error-codes#meshery-adapter-library-library '
Click on 'https://docs.meshery.io/reference/error-codes#meshery-adapter-for-linkerd'
Scroll down to '....'
See error

This is a prior attempt at solving the issue. It might be useful to iterate on this approach. CSS is one way to achieve the desired result.

Actually I guess , due to issues faced in setting up my environment
Give me some time , will be up with this

The issue seems to be fixed now. Hence, closing this issue.


Make Select more versitale

How other system do that

https://atlassian.design/components/select/examples#popup-select

Please add more details about the requirements.

Not relevant anymore. Will be revisited if it becomes relevant again.


Fix expected result for mf2/h-card/nested.html test

This test should not parse a value in the child h-card since it isn't also a property element.
mf2py parses correctly:
{
    "rels": {},
    "items": [
        {
            "type": [
                "h-card"
            ],
            "properties": {
                "url": [
                    "http://blog.lizardwrangler.com/"
                ],
                "name": [
                    "Mitchell Baker"
                ]
            },
            "children": [
                {
                    "type": [
                        "h-org",
                        "h-card"
                    ],
                    "properties": {
                        "url": [
                            "http://mozilla.org/"
                        ],
                        "name": [
                            "Mozilla Foundation"
                        ]
                    }
                }
            ]
        }
    ],
    "rel-urls": {}
}

Reference:
http://microformats.org/wiki/microformats2-parsing##if+that+child+element+itself+has+a+microformat
php-mf2 issue: https://github.com/indieweb/php-mf2/issues/98
mf2py resolved issue: https://github.com/indieweb/php-mf2/issues/99

Similar issue previously fixed: https://github.com/microformats/tests/pull/53

I think these are all fixed now https://github.com/microformats/tests/commit/59cabf19228472deb4be46ddd9432a64185b7b01#diff-f21c1ccd7a418443c9debd5c772701a7

Resolved per above.


chore: Update go mod for v0.34.2 release

Fixes #N/A
Description

Update go.mod for v0.34.2 release

How was this change tested?

N/A

Does this change impact docs?

[ ] Yes, PR includes docs updates
[ ] Yes, issue opened: #
[x] No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 82.474%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
5007

Relevant Lines:
6071

💛  - Coveralls


Is it possible or recommended to use a sounddevice stream via fastapi?

So i want to send some audio stream to my fastapi server which processes it and sends it back to the client. Its pretty straight forward to build a streaming endpoint in FastAPI with:
@app.websocket("/audio-stream/")
async def audio_stream_endpoint(websocket: WebSocket):
    await websocket.accept()
    try:
        while True:
            # Receive raw audio data from the client
            audio_data = await websocket.receive_bytes()

            # Process audio data
            pa = streaming_service.process_stream()

            # Send processed audio data back to the client
            await websocket.send_bytes(pa)
    except Exception as e:
        print("Connection closed:", e)
    finally:
        await websocket.close()

However I wondered if it makes sense to use sounddevice streams in this scenario to take advantage of the optimizations which are certainly there in comparison to my naive implementation? The question would be how to implement it. Use sounddevice on the client side and send the stream through fastapi as bytes and the take the audio_data from my endpoint and convert it again to an sounddevice stream to do processing and stuff.

If you want to send uncompressed PCM data, this should be fairly simple.
I would create an audio callback function that writes into a queue (see examples) and from a different thread (e.g. the main thread) repeatedly check for data in the queue and send it to the server via WebSocket (no example yet, see #415).
If you want to play back the manipulated signal that comes back from the server, I guess you'll need quite a long queue for buffering (depending on the network latency).
If you want to encode/decode the signal before/after sending it over the network, this gets a bit more complicated (and will need additional libraries), but it should be possible, too.


Class 'League\Plates\Template\Directory' not found

When im running my script I get this error:

Fatal error: Class 'League\Plates\Template\Directory' not found in .../src/Engine.php on line 57

I installed it via the zip file from the releases page.
PHP-Code
<?php
// ...

// Include Plates (Template Engine)
include_once(".../src/Engine.php");

// Create new Plates instance
$templates = new League\Plates\Engine('themes/default/templates');

// ...
?>

The ... is just a place holder for the full path. Didn't want to show it here

I mightght be wrong here, but if you are not using composer or any other sort of autoloading you have to include every class that is needed.
I would strongly suggest that you invest some time in autoloading since it will ease you in the long run + make your code cleaner

Yes @DaGhostman is exactly right here. If you don't use Composer, you basically need to manually load all the classes included with this package, or even write your own auto-loader for it. Of course this isn't what I recommend. Using Composer is much simpler. 👍

I am currently trying Plates out, and I have run into this too.
I completely understand Composer may be the way to go, but think of people that have not used Composer -or- Plates before. If I am trying to learn Plates, I don't want to have to learn Composer first.
Given the installation page (http://platesphp.com/installation/) says you can just download the .ZIP file and use that, you may want to consider expanding on the instructions for that scenario.
I don't even have any clue what's in this auto-loader file, because it is not in your package and I imagine it's auto-generated by Composer. At least show what that looks like so we can mimic it in our scripts.
Just my two cents.

Requiring Engine.php and all of the PHP files in the Template directory did the trick for me (as in I was able to run the basic example on your website):
require 'plates/Engine.php';
require 'plates/Template/Directory.php';
require 'plates/Template/FileExtension.php';
require 'plates/Template/Folders.php';
require 'plates/Template/Functions.php';
require 'plates/Template/Data.php';
require 'plates/Template/Template.php';
require 'plates/Template/Name.php';
require 'plates/Template/Func.php';
require 'plates/Template/Folder.php';
Just logging this in case anyone else runs into this. I apologize if this is obvious stuff.

If you have downloaded or clone this project from github just run this command on terminal composer dump-autload it will generate the vendors folder along with autload files


nextTick: "TypeError: implementation is not a function"

Hello, i used your component for multiples selec, all ok..
but in event click, say ;

nextTick: "TypeError: implementation is not a function"
 at Menu.vue

the data send successfully but in console ever watch error

Can you give more information on this issue? I don't have a clue :/

Hello, the componet functions i'ts fine, only error is Error in console
Laravel 5.3
Vue 2.
even with the example of the web the same thing happens
salu2, thanks

Can you use this pen to create a demo? Otherwise, I'm afraid I can't help :/

i'm try in other projects and fine, no idea what is the problem, thanks...
i'm compiling with Gulp.

hello, I try to packaging a npm Secondary, the browser console show issus
'[Vue warn]: Error in nextTick: "TypeError: implementation is not a function"'


double start() doubles prefix and suffix

Description
I was getting my suffix twice.  Some considerable wondering and debugging eventually revealed that I was calling start() on a progress bar twice before actually using the progress bar.  (I didn't notice, because the calls were in separate sections of code.)  Removing the extra start() solved my problem.
It is unclear to me whether it might be desirable to call start() multiple times in some applications.  For my application, it is not desirable, so this was a bug in my code.  In any case, doubling the prefix and suffix is probably not the intended outcome.  :-)
Code
#!/usr/bin/python3

import progressbar
import sys
import time

def basic_widget_example():
    prefix = "beg "
    suffix = " end"
    widgets = [progressbar.Percentage()]
    bar = progressbar.ProgressBar(widgets=widgets, max_value=10,
                                  prefix=prefix, suffix=suffix).start()
    bar.start()                 # My bug.
    for i in range(10):
        # do something
        time.sleep(0.1)
        bar.update(i + 1)
    bar.finish()

if __name__ == '__main__':
    basic_widget_example()

Versions

Python version:

 $ python3
Python 3.5.2 (default, Apr 16 2020, 17:47:17)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys; print(sys.version)
3.5.2 (default, Apr 16 2020, 17:47:17)
[GCC 5.4.0 20160609]

Python distribution/environment: CPython

Operating System: Linux Mint 18.3

Package version: 3.51.1

That's indeed a bug. It's now fixed in 3.51.2 :)

I see it works.  Thank you.


Splashtop.SplashtopPersonal version <IP_ADDRESS>01

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?

[x] Does your manifest conform to the 1.0 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

##[error] Result: Failed
##[error] Manifest: The manifest file path must match PackageIdentifier and PackageVersion properties from manifest.
actual   'manifests\s\Splashtop\SplastopPersonal\<IP_ADDRESS>01',
expected 'manifests\s\Splashtop\SplashtopPersonal\<IP_ADDRESS>01'
##[error]Manifest Schema Validation Failed


Add Bun to documentation

Subject
To add bun to the documentation
Description
Each mention of npm, pnpm, yarn etc should have a tab for bun

Already done the work and added to a fork here: https://github.com/chakra-ui/panda/pull/1461


[XLA] vectorize row reduction for even row size

This depend on LLVM commit: https://reviews.llvm.org/D74444 that is recently merged in XLA.
This PR vectorize row reduction for even row size.
For odd row size, every other row is unaligned. So would need a more complicated fix.
On a reduction of size 32x131070, I have no speed up for a max reduction, but I have 1.21x speed on the sum+pw reduction from the softmax in float16.
This was benchmarked on the row major "Softmax" TF operations.
The optimized graph contain 3 main operations: reduce_8 (the max reduction), fusion_1 (the exponential and sum reduction), fusion (the post normalization pw operations, ignored).
This was benchmarked with a matrix of input shape (32x131070) with float16 dtype:

Kernel
Before PR
After PR
Speed up

fusion_1
39.827us
33.843us
1.18x

reduce_8
22.112us
22.047us
1x

Here is the not optimized HLO:
HloModule cluster_0
%max_ {
  %x = f16[] parameter(0)
  %y = f16[] parameter(1)
  ROOT %maximum = f16[] maximum(%x, %y)
}

%add_ {
  %x = f32[] parameter(0)
  %y = f32[] parameter(1)
  ROOT %add = f32[] add(%x, %y)
}

ENTRY %main {
  %arg0.1 = f16[32,131070]{1,0} parameter(0)
  %constant.3 = f16[] constant(-inf)
  %pad1 = f16[32,131070] pad(%arg0.1, %constant.3), padding=0_0_0x0_0_0
  %reduce.8 = f16[32]{0} reduce(%pad1, %constant.3), dimensions={1}, to_apply=%max_
  %broadcast.9 = f16[32,131070]{1,0} broadcast(%reduce.8), dimensions={0}
  %subtract.131070 = f16[32,131070]{1,0} subtract(%arg0.1, %broadcast.9)
  %exponential.11 = f16[32,131070]{1,0} exponential(%subtract.131070)
  %convert.12 = f32[32,131070]{1,0} convert(%exponential.11)
  %constant.13 = f32[] constant(0)
  %pad2 = f32[32,131070] pad(%convert.12, %constant.13), padding=0_0_0x0_0_0
  %reduce.18 = f32[32]{0} reduce(%pad2, %constant.13), dimensions={1}, to_apply=%add_
  %convert.19 = f16[32]{0} convert(%reduce.18)
  %broadcast.20 = f16[32,131070]{1,0} broadcast(%convert.19), dimensions={0}
  ROOT %divide.21 = f16[32,131070]{1,0} divide(%exponential.11, f16[32,131070]{1,0} %broadcast.20)
}

I did the change or answer all comments.
Just a note that for odd row size, this is also complicated. There is memory order optimization problem in LLVM. I already fixed one, but the problem left is probably more complicated. I'm still trying a few different options before trying to change LLVM optimization passes.

Can you share one HLO graph that regress with this?
Also, on which GPU do you saw regression? I didn't benchmark on many GPUs or on older GPU generations. Here is an HLO that give me speed up the fused reduction in the optimized graph:
HloModule cluster_0__XlaCompiledKernel_true__XlaNumConstantArgs_0__XlaNumResourceArgs_0_.25

%max_ {
  %x = f16[] parameter(0)
  %y = f16[] parameter(1)
  ROOT %maximum = f16[] maximum(%x, %y)
}

%add_ {
  %x = f32[] parameter(0)
  %y = f32[] parameter(1)
  ROOT %add = f32[] add(%x, %y)
}

ENTRY %main {
  %arg0.1 = f16[32,131070]{1,0} parameter(0)
  %constant.3 = f16[] constant(-inf)
  %pad1 = f16[32,131070] pad(%arg0.1, %constant.3), padding=0_0_0x0_0_0
  %reduce.8 = f16[32]{0} reduce(%pad1, %constant.3), dimensions={1}, to_apply=%max_
  %broadcast.9 = f16[32,131070]{1,0} broadcast(%reduce.8), dimensions={0}
  %subtract.131070 = f16[32,131070]{1,0} subtract(%arg0.1, %broadcast.9)
  %exponential.11 = f16[32,131070]{1,0} exponential(%subtract.131070)
  %convert.12 = f32[32,131070]{1,0} convert(%exponential.11)
  %constant.13 = f32[] constant(0)
  %pad2 = f32[32,131070] pad(%convert.12, %constant.13), padding=0_0_0x0_0_0
  %reduce.18 = f32[32]{0} reduce(%pad2, %constant.13), dimensions={1}, to_apply=%add_
  %convert.19 = f16[32]{0} convert(%reduce.18)
  %broadcast.20 = f16[32,131070]{1,0} broadcast(%convert.19), dimensions={0}
  ROOT %divide.21 = f16[32,131070]{1,0} divide(%exponential.11, f16[32,131070]{1,0} %broadcast.20)
}

Here is the nvprof output:
==> OUT.softmaxf16_32x131070_131070._nvprof_TFV=old_master_xla=1.txt <==
2020-03-12 13:04:20.388311: E tensorflow/compiler/xla/tools/replay_computation.cc:476] iteration complete.
==9320== Profiling application: .../tensorflow-source.copy//bazel-out/k8-opt/bin/tensorflow/compiler/xla/tools/replay_computation_gpu softmax_template.txt.tmp --print_result=false --use_fake_data --num_runs=5
==9320== Profiling result:
            Type  Time(%)      Time     Calls       Avg       Min       Max  Name
 GPU activities:   90.81%  4.8267ms         1  4.8267ms  4.8267ms  4.8267ms  [CUDA memcpy DtoH]
                    3.75%  199.14us         5  39.827us  39.328us  40.607us  fusion_1
                    2.77%  147.36us         5  29.472us  29.024us  29.792us  fusion
                    2.08%  110.56us         5  22.112us  21.600us  22.432us  reduce_8
                    0.34%  17.856us         1  17.856us  17.856us  17.856us  broadcast_2
                    0.25%  13.536us        10  1.3530us  1.0880us  1.8560us  [CUDA memset]

==> OUT.softmaxf16_32x131070_131070._nvprof_TFV=rb2_xla=1.txt <==
2020-03-12 12:57:39.328761: E tensorflow/compiler/xla/tools/replay_computation.cc:476] iteration complete.
==8924== Profiling application: .../tensorflow-source.copy//bazel-out/k8-opt/bin/tensorflow/compiler/xla/tools/replay_computation_gpu softmax_template.txt.tmp --print_result=false --use_fake_data --num_runs=5
==8924== Profiling result:
            Type  Time(%)      Time     Calls       Avg       Min       Max  Name
 GPU activities:   94.13%  7.3283ms         1  7.3283ms  7.3283ms  7.3283ms  [CUDA memcpy DtoH]
                    2.17%  169.22us         5  33.843us  32.608us  35.040us  fusion_1
                    1.88%  146.72us         5  29.343us  28.896us  29.791us  fusion
                    1.42%  110.24us         5  22.047us  21.760us  22.176us  reduce_8
                    0.23%  17.792us         1  17.792us  17.792us  17.792us  broadcast_2
                    0.17%  13.312us        10  1.3310us  1.0560us  1.8880us  [CUDA memset]

I added 4 commits:

The first one trigger some of the missing vectorization by LLVM. ptxas was vectorizing those already, but at least, now they are tested here.
The 3rd one fix a regression. We where using the columns reduction indexing in some cases.
The 2nd and 4th limit the vectorization on P100 GPUs. We now only vectorize when the tile fit exactly and for dtype of up to 32 bits.

On P100, with float16, I see 1.23x and 2.33x speed up. In float32, I see 1.08x and 1.10x speed up.
The PR can be benchmarked. But I still need to update the tests to have expect the right vectorization depending of the hardware. I need to find how to detect the current GPU in the test.

I updated the tests to expect the right PTX depending of the GPU arch.
I also fixed crashed that I introduced today by an earlier in d9ae69f04ba944384d117662b888c43cb7e0bf72
I did a small refactoring to help that kind of error to not pop up again here.

@nouiz I'm a bit confused by your benchmark, do you mean the runtime reduction in fusion_1 from 39us to 33us?

exact

Their is a CI failure. I didn't see it before. It happens non-deterministically, but I'm able to reproduce it from time to time. I'll look into it .

Fixed. I needed to check that the layout is row major for one of the simplification.

New PR with the CHECK fix and the other small code changes:
https://github.com/tensorflow/tensorflow/pull/38136


jetstream  producer issue not going to stream

Hi..
we are using  docker image synadia/jsm:nightly means nats-server version 2.2.0-beta.15
and Git commit [bfe52fdb]
we are able to create stream, consumer and consume the the stream  by using jsm.go utility in golang source code .
But we are not able to send req/publish data to stream through publisher.
Is there any code examples are there so that we can publish our data to subject.
we are publishing data by using nats go client natsConn.Publish("abc.p0.6, []byte(line.Text));
and stream subject is configured for abc.*
from jetstream cli we are able to send request nats req abc.scratch hello

its under help needed label.. but we are not able to add label in github.

The subject abc.* means only abc.x not also abc.x.y if you want all subject below you need to use abc.>

sure..thanks a lot missed this one.


larger compass?

Is there a way to make the compass larger? In Mapbox GL Native, that was possible by setting the compassView.image property to a larger compass image, but they remove that functionality. What is the best way to do this with maplibre-gl-native?
I have tried setting the compassView.image to a larger image and calling sizeToFit on the compassView, but the compass does not change.

Good question; I'd love to know, the answer, too.


[TASK] Synchronize version of CSI components in longhorn/longhorn and longhorn/longhorn-manager

What's the task? Please describe
The fix for https://github.com/longhorn/longhorn/pull/6920 introduced new versions of many CSI components to the longhorn/longhorn repo. However, their defaults in the longhorn/longhorn-manager repo (which are generally overridden by the values in the longhorn/longhorn repo) remain unchanged. This was confusing while investigating https://github.com/longhorn/longhorn/issues/7116, though it probably won't cause any particular bad behavior.
Describe the sub-tasks

[x] Update the CSI component versions in the longhorn/longhorn-manager repo.

Verified on master-head 20231228

longhorn master-head https://github.com/longhorn/longhorn/commit/07bdb419a968633059c24db35ec66d7d68d73f4c
longhorn-manager master-head https://github.com/longhorn/longhorn-manager/commit/f41d5b8fef567311a55656dd7590a35375ff61e1

Result Passed

Install with Kubectl & Helm:  CSI components were successfully installed with the updated version.
No outstanding issues observed in the master-head pipeline.


is there a way to make the bot auto re login it self?

facebook doesn't even let the bot live for 10 minutes without kicking it out and having to copy the cookies again everytime so i had to use email and pass instead.. and it's working good so far..only downside i have to restart it myself when it goes offline but it's better than cookie..
so the question is.. can i make it force login when that happens?

ok nvm managed to do it


VS 2013 Compile Error When Using REQUIRE With nullptr

When I do REQUIRE( bytes != nullptr ); I get the following compile error in Visual Studio 2013:
4>c:\users\excaliburhissheath\gunship\tests\Catch/catch.hpp(1075): error C2593: 'operator <<' is ambiguous
4>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(498): could be 'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(std::basic_streambuf<char,std::char_traits<char>> *)'
4>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(478): or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(const void *)'
4>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(458): or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(long double)'
4>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(438): or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(double)'
4>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(418): or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(float)'
4>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(397): or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned __int64)'
4>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(377): or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(__int64)'
4>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(356): or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned long)'
4>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(336): or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(long)'
4>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(316): or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned int)'
4>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(291): or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(int)'
4>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(271): or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned short)'
4>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(237): or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(short)'
4>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(217): or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(std::_Bool)'
4>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(210): or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(std::ios_base &(__cdecl *)(std::ios_base &))'
4>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(203): or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(std::basic_ios<char,std::char_traits<char>> &(__cdecl *)(std::basic_ios<char,std::char_traits<char>> &))'
4>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(197): or       'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(std::basic_ostream<char,std::char_traits<char>> &(__cdecl *)(std::basic_ostream<char,std::char_traits<char>> &))'
4>          c:\users\excaliburhissheath\gunship\tests\Catch/catch.hpp(1069): or       'Catch::FalseType Catch::Detail::operator <<(const std::ostream &,const Catch::Detail::BorgType &)'
4>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(699): or       'std::basic_ostream<char,std::char_traits<char>> &std::operator <<<char,std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,const char *)'
4>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(746): or       'std::basic_ostream<char,std::char_traits<char>> &std::operator <<<char,std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,char)'
4>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(784): or       'std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,const char *)'
4>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(831): or       'std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,char)'
4>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(957): or       'std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,const signed char *)'
4>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(964): or       'std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,signed char)'
4>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(971): or       'std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,const unsigned char *)'
4>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(978): or       'std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,unsigned char)'
4>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(988): or       'std::basic_ostream<char,std::char_traits<char>> &std::operator <<<char,std::char_traits<char>,T>(std::basic_ostream<char,std::char_traits<char>> &&,const _Ty &)'
4>          with
4>          [
4>              T=nullptr
4>  ,            _Ty=nullptr
4>          ]
4>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(1026): or       'std::basic_ostream<char,std::char_traits<char>> &std::operator <<<char,std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,const std::error_code &)'
4>          while trying to match the argument list '(std::ostream, const nullptr)'
4>          c:\users\excaliburhissheath\gunship\tests\Catch/catch.hpp(1110) : see reference to class template instantiation 'Catch::Detail::IsStreamInsertable<T>' being compiled
4>          with
4>          [
4>              T=nullptr
4>          ]
4>          c:\users\excaliburhissheath\gunship\tests\Catch/catch.hpp(1161) : see reference to class template instantiation 'Catch::StringMaker<T>' being compiled
4>          with
4>          [
4>              T=nullptr
4>          ]
4>          c:\users\excaliburhissheath\gunship\tests\Catch/catch.hpp(1289) : see reference to function template instantiation 'std::string Catch::toString<RhsT>(const T &)' being compiled
4>          with
4>          [
4>              RhsT=nullptr
4>  ,            T=nullptr
4>          ]
4>          c:\users\excaliburhissheath\gunship\tests\Catch/catch.hpp(1235) : see reference to function template instantiation 'Catch::ResultBuilder &Catch::ExpressionLhs<void *const &>::captureExpression<IsNotEqualTo,RhsT>(const RhsT &)' being compiled
4>          with
4>          [
4>              RhsT=nullptr
4>          ]
4>          c:\users\excaliburhissheath\gunship\tests\Catch/catch.hpp(1235) : see reference to function template instantiation 'Catch::ResultBuilder &Catch::ExpressionLhs<void *const &>::captureExpression<IsNotEqualTo,RhsT>(const RhsT &)' being compiled
4>          with
4>          [
4>              RhsT=nullptr
4>          ]
4>          C:\Users\excaliburhissheath\Gunship\tests\MemoryTests.cpp(80) : see reference to function template instantiation 'Catch::ResultBuilder &Catch::ExpressionLhs<void *const &>::operator !=<nullptr>(const RhsT &)' being compiled
4>          with
4>          [
4>              RhsT=nullptr
4>          ]
4>          C:\Users\excaliburhissheath\Gunship\tests\MemoryTests.cpp(80) : see reference to function template instantiation 'Catch::ResultBuilder &Catch::ExpressionLhs<void *const &>::operator !=<nullptr>(const RhsT &)' being compiled
4>          with
4>          [
4>              RhsT=nullptr
4>          ]
4>c:\users\excaliburhissheath\gunship\tests\Catch/catch.hpp(1075): error C2056: illegal expression

I considered adding this to #182 but it seemed like it wasn't related to any of the other problems people were having.

I can confirm this issue. REQUIRE(sth == nullptr) fails, REQUIRE(sth == NULL) works correctly.

In any case, for information..
gcc version 4.7.2 (linux)..
..
using namespace std;
...
CHECK( ib.cdiagram == nullptr );  and REQUIRE( ib.cdiagram == nullptr );
works correctly.

@excaliburHisSheath and @Ezodev can you confirm which version of Catch you are running there?
In any case support for nullptr has been in for quite a long time. AFAICS it should be selected for VS2013 by virtue of:
#define CATCH_CONFIG_CPP11_NULLPTR
#endif```

- but in case something is breaking that could you try compiling with ```CATCH_CONFIG_CPP11_NULLPTR``` defined explicitly? (I don't have access to VS2013 at the moment, or for  while to try it out myself).

@excaliburHisSheath  Could you try compiling with -DCATCH_CONFIG_CPP11_NULLPTR and see if that improves matters?
My best guess is that VS is trying to instantiate the StringMaker<std::nullptr_t> template rather than the  toString(nullptr_t) overload.

That was spooky, @PureAbstract ;-)

@philsquared snap ;-)

Well, they do say "Great minds seldom differ" ;-)
(also It doesn't look the the _MSC_VER >= 1600 condition is present in master)

That's not exactly how I remembered the quote ;-)
So, sounds likely that the OP(s) are using the version from Master - in which case I'd suggest using Develop (it's pretty stable right now - will probably do a merge in the near future).

I'm using last single header version.
It's possible that my Visual Studio have a problem. I'm trying to create new project, and it doesn't see included files, even if they are in include patches. So, maybe it's just that VS is broken.

I'm using the latest version of the single header build (53). Adding CATCH_CONFIG_CPP11_NULLPTR caused the build to succeed.

build 53 is the latest on Master. Active development is on the Develop branch - so that is further ahead.
It looks like the detection for nullptr support in Visual Studio 2012+ has only been added on Develop so far.
So I'd suggest either picking up the version from there,
https://raw.githubusercontent.com/philsquared/Catch/develop/single_include/catch.hpp
...or continuing with explicitly defining CATCH_CONFIG_CPP11_NULLPTR (thanks for letting me know that worked, @excaliburHisSheath )


GTO cannot be downloaded, because of the aspect ratio.

Hello everyone,
I tried to download GTO with 1080p but as you might know GTO is very old anime the highest resolution is 480p, but it has different aspect ratio so it is not downloadable at all.

I wanted to create this issue in your for @Nicnl but there is no Issues option.

I'll take a look at this. I remember downloading GTO from anime-dl earlier. Will check again. Aspect ratio shouldn't cause any problems though.

Hello @Xonshiz , Is the fixed in https://github.com/Xonshiz/anime-dl/releases/tag/2019.05.26

Is your resolution 640x480? If so I just requested a pull request that will fix this issue.


Add Revolution Pasting

Build a segment and choose a center point for said segment to paste/revolve around X number of times. Segments will also be rotated accordingly.
Aka just copy this: https://www.youtube.com/watch?v=6fps_-3jA4c

Sounds totally doable. Will implement after merging of #67, since that one fixes a few paste and rotate bugs.


Recruiting additional maintainers for Crystal

We're about to start a big push towards version 3 (v3) of Exercism. This is going to be a really exciting step forward for Exercism, with in-browser coding, new Concept Exercises with automated feedback, improved mentoring and much more.
This to be a big community effort, with the work spread out among hundreds of volunteers across Exercism. One key thing is going to be each track having enough maintainers who have the time to manage that community effort. We are therefore putting out a call for new maintainers to bolster our numbers. We're hoping that our existing maintainers will be able to act as mentors to the newer maintainers we add, and take on a parental role in the tracks.
If you are an existing maintainer, could you please reply to this letting us know that you think you'll have time (2-3hrs/week) to help with this over the next 6 months. If you won't have that time, but still want to be a maintainer and just help where you can instead, please tell us that too. If you have come to the end of the road as a maintainer, then we totally understand that and appreciate all your effort, so just let us know.
For anyone new who's interested in becoming a maintainer, thanks for your interest! Being an Exercism maintainer is also a great opportunity to work with some other smart people, learn more about your language of choice, and gain useful skills and experience that are useful for growing your career in the technical leadership direction. Please write a comment below introducing yourself along with your Exercism handle, and telling us why you're interested in becoming a maintainer, and any relevant experience. We will then evaluate every application and contact you using your exercism email address once we have finished the evaluation process.
Thank you!
See also https://github.com/exercism/exercism/issues/5161

I would love to help out.  I think I can commit this time to project.

That'd be great!
I'll have 2-3+hrs/week as well (most weeks).
What's a good number of maintainers to strive for?

It is hard to do the exercisms because there are no active mentors.  How do you become a mentor?

We're closing this issue as it was part of our push to implement the v3 version of this track and v3 has just been released.
New maintainer are always welcome though!


To extract partition fields from a timestamp

Hi, I'm now working on a PoC to sink logs from Kafka to Iceberg format, I want to partition the logs to under year=YYYY/month=MM/day=DD, but I only have a timestamp inside the log.
I didn't found any configurations on how to partition logs with timestamp, so wondering if there any workarounds existing already?
I think there is an workaround to use SMT to duplicate the ts_ms into year, month, day, then extract data into 3 different fields and set to iceberg.tables.default-partition-by, however it makes the connector config dirty yet requires to code a custom SMT function...
For a detailed example, my log format is like
{
    "ts_ms":<PHONE_NUMBER>953,
    "data": "abcd"
}

Thanks.

I found this one:
https://github.com/tabular-io/iceberg-kafka-connect/tree/main/kafka-connect-transforms#smts-for-the-apache-iceberg-sink-connector

Close issue, found a duplicate one with a workaround:

https://github.com/tabular-io/iceberg-kafka-connect/issues/220


Tlen helpers

Adds a couple accessors to operate on the TLEN (duration) frame.

Thanks, looks good!


[debug] add option to select workspace folder when calling 'Add Configuration'

Description
At the moment, when running the debug command Add Configuration..., the new configuration is always added to the first workspace folder when a user currently has multiple folders present in his/her workspace.
In order to properly support multiple folder workspaces, I suggest that a prompt be provided to end users to choose in which workspace folder they'd like to add a new debug configuration to. (similarly to how the New Terminal command works and users select their desired current working directory from all possible folders).
Steps to Reproduce

Open a workspace with multiple folders
Open the menu item Debug and select  Add Configuration...
Notice that the new configuration is always added to the first workspace folder despite multiple folders being present

This is a fair feature request. However currently is not on the plan.
Also it does not always add it to the first launch.json but to the selected launch, which basically means the last used one.

I recommend to extend this launch.json configuration to .code-workspace file under respective language sections to improve debugger configurations and the usability.


Missing tablet devices detection

In order to be fully responsive, it would be nice to add the detection for tablet devices as well.

The regex was updated


ContentType for CSS Files

If I try to use FlyingFox and embed some HTML with CSS in my app and then load the content via a WebKit browser instance, the HTML content does not load correctly because the CSS does not get loaded.
It appears that the makeContentType method in FileHTTPHandler does not return the right type for CSS files. If you add the following case to the method, the HTML content renders correctly:
case "css":
	return "text/css"

Thanks for the issue @FahimF 🙏🏻.
Fix is on the main branch.

Thank you for the fix 🙂 Funny thing is I checked like an hour ago to see if the fix was in since I'm using your library on two separate projects and I had the source code in till a fix was in place. So, much appreciated!


fix: update security headers

Description
Updated security headers to pass Mozilla Observatory tests
Related Issues
fixes #65

This breaks CSS, image, and script loading. Consider using gatsby-plugin-csp or developing a new plugin to export the proper headers to vercel.json


1.9: Safety issues from 2023-11-20

Rolls back PR #521 into 1.9.2.

coverage: 33.997%. first build
when pulling 85da0f1d3a458605ee96475bcbb1be64201c842a on 1.9/andy/safety-2023-11-20
into fe8b45cc968a949657e0971bd0e5099951697eeb on stable_1.9.


[WIP] Dep for vendoring

Replace govendor by dep.

Need to wait for github.com/apache/thrift to release 0.11 in order to merge it (See https://github.com/openzipkin/zipkin-go-opentracing/issues/68)


Compile error on C++14

Hi
The following code does not compile using MSVC 142 (19.35.32215 from VS 2022) using C++14 standard
#include <iostream>
#include "variant.hpp"

int main() {
    std::pair<std::string, nonstd::variant<std::string>> y2 = {"a", "b"};
}

It hits the error C3445: copy-list-initialization of 'std::pair<std::string, nonstd::blah>... which we assume is because in our setup, this is observed as false:
std::is_convertible<const char*, nonstd::variant<std::string>>::value

While the same for std::variant evaluates to true. This then makes std::pair constructor to be explicit which in turn removes the possibility of using a wide range of valid codes like this:
    using foo = nonstd::variant<std::string>;
    using bar = std::map<std::string, foo>;
    auto zoo = bar{{"hello", "world"}};

Thank you for making me aware of this.
Takes some staring at it...

Any workarounds yet?


Fix HMR reloading problem when a files is added or deleted everywhere in the projet.

Added an option pagesDir to resolve this problem.
Without this, the page reload entire instead of just a module.
PhpStorm create lot of temp, or laravel push some logs too.
Fix this https://github.com/JohnCampionJr/vite-plugin-vue-layouts/issues/94

Yes , Please merge， urgent

Shouldn't this also catch the layouts dir?  Let me check this out in more details

same issue, work with after apply this patch


bug: Lifecycle events never be fired on React.FC

Bug Report
Ionic version:
[x] 4.x
Current behavior:
I'm trying to receive lifecycle events following your documentation:
https://ionicframework.com/docs/react/lifecycle
https://github.com/pjc0247/bugreport/blob/master/src/pages/Home.tsx#L6
Expected behavior:
console log will be printed.
Steps to reproduce:
https://pjc0247.github.io/bugreport/build/index.html
Related code:
https://github.com/pjc0247/bugreport/blob/master/src/pages/Home.tsx#L6
Other information:

Ionic info:

Ionic:

   Ionic CLI       : 5.4.12 (C:\Users\pjc02\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework : @ionic/react 4.11.6

Utility:

   cordova-res : 0.6.0
   native-run  : 0.2.8

System:

   NodeJS : v10.16.0 (C:\Program Files\nodejs\node.exe)
   npm    : 6.9.0
   OS     : Windows 10

@pjc0247 beat me to it
This was introduced in ionic 4.11.6, version 4.11.5 works perfectly fine.
Here's another repo to reproduce the issue by comparing the 2 versions https://github.com/obedm503/ionic-hooks-broken
From what I've noticed this is only an issue on the first render, lifecycle hooks still work when navigating to other pages and back.

Thanks,
I've found the issue and am working on a fix. Hopefully will be out later today.

fixed and released in 4.11.7, thanks for reporting!

can confirm it's working now


Feature: Optimize&refactor the duplicated work / logic modules in the GetDependencyDiffResult API

Is your feature request related to a problem? Please describe.

The different implementations of initializing clients in the original Scorecard run and the dependency-diff API (PR #2046):

The original one: the initialization logic for the scorecard check runner is to simply initialize and use all the clients if a valid repoURI is there, even if checks like Fuzzing or  CII-Best-Practices are not specified to run.
Mine (GetDependencyDiffResult): use the same API, checker.GetClients to initialize all clients first, then return the clients corresponding to the checks to run. For example, if we only run checks License and Maintained, the OSSFuzzClient, CIIBestPracticeClient, and VulnsClient will be nil. Scorecard also runs well with this initialization.

Refactor the input params of GetDependencyDiffResult. This depends on what other projects might want.

By @laurentsimon , that it would be useful to have better tests for getScorecardCheckResults(). There's a bunch of logic in there that would be nice to have tests for. It may require some code-refactoring.

Describe the solution you'd like
For 1, the best way is to optimize both and initialize the corresponding clients for the run. IMO, neither the logic of the original Scorecard run nor mine is that ideal. An alternative temp solution is, if we simply want them to have the same initialization logic, we can use the original one to align mine or vice versa.
For 2, IMO, using the client objects as one of the API's input params might not be a good idea. My justifications:

This is an API for users to call, and the simplest way for users is to specify a list of checks to run (a list of check names, string types), and then the API will initialize the corresponding clients.
This is also an API used for the CLI (PR #2077), still, using a list of check names to run as the input is a straightforward way.
Might need an additional module to check if the input client objects are corresponding to the checks to run. For example, if the caller specifies the Fuzzing check to run but fails to initialize the FuzzClient and we don't have a verification module on this, the API and the Scorecard run will panic. This is unnecessary and redundant IMO.

For 3, I'll note this in my design doc and take a look later. As what Laurent suggested, I might use a follow-up PR to refactor it and add the e2e test coverage.
Additional context
@azeemshaikh38 @laurentsimon wdut?

https://github.com/ossf/scorecard/issues/2008#issuecomment-2140865208


Reuse files/templates under podvm for provider specific packer builds

Currently we have lots of duplication w.r.to pod VM image configuration and templates in podvm directory and under the provider specific directories (aws, azure, ...)
This has created drifts in configuration which results in unintended consequences. Like some of the config changes made for qcow2 generation (under podvm) is not available to native image generation (under aws, azure ...)
We should switch to using common config files for all packer builds on similar lines to the common Makefile.
Creating this tracker issue for the work.

Fixed by https://github.com/confidential-containers/cloud-api-adaptor/pull/1585


v0.5 Refactor Compile Module

This PR is by no means ready but thought it would be good to have up to keep track of ongoing development and discussions / feedback as I finish it up.

Moving to work off of refactor branch


feat: add "cat" to nouns

😸

@all-contributors please add @half0wl for code.

🤖 Beep boop! This comment was added automatically by all-contributors-auto-action.
Not all contributions can be detected from Git & GitHub alone. Please comment any missing contribution types this bot missed.
...and of course, thank you for contributing! 💙


adding runtime of new/missing tests to the tests_expected_runtime file

#134

summarizing the final commit:

.github/workflows/test-push.yml : uploading the run log of Run all-tests job as an artifact to be used in the new workflow

tests/run_all_tests.py : a "cosmetic" commit , to avoid printing empty lines in the failed_check_runtime.csv.
a note : in first commit I committed a function in this file to add new tests to the expected_runtime file, but since, I have the same functionality in my new script (which will always work for any new test committed) and the function in this file works only if the user run with the "check_run_time" flag (a thing I can't ensure will happen), I decided to revert that commit.

tests/tests_expected_runtime.csv: manual changes, adding new tests that are already on master branch and increasing the expected runtime for this "git_resource" tests , to avoid performance issues in these cases.(from slack decision)

.github/workflows/update-tests-expected-runtime.yml:

the new workflow, will first get a list of the "changed-tests" in the PR (changed tests maybe : new scheme files (A), modified scheme files/ modified cmdline_tests file (M) , deleted tests files (D) , or renamed scheme/cmdline files (R) )
if there are no "changed_tests" , the workflow will stop running (nothing to do), else:
then will download the run_log from the new artifact in the test-push workflow (above).
Run the new script tests/update_expected_runtime.py to update the tests_expected_runtime.csv file
remove the run_log from the repo and commit the tests_expected_runtime.csv

Note:
in the meanwhile I kept the workflow "on" section this way :

on:
workflow_dispatch: # manual triggering
//  workflow_run:
//    workflows: [test-push]
//    types:
//      - completed

when workflow_dispatch is triggered manually only
and the workflow_run (kept commented now) tells the workflow to run only after test-push workflow is completed.
However, both triggers work only from the master branch
so I couldn't test with them. (for my tests I used "pull_request" trigger with other combination to get the artifact)

tests/update_expected_runtime.py :
my new script , this script gets the "changed_tests" list from the previous job in the workflow.
and have an access to read the "run_log" which is downloaded from the artifact.
in this script :
scheme files:
new : added in new row to the tests_expected_runtime.csv  , with the actual runtime from the Run all tests workflow job (from the run_log)
modified : the script , updates the new runtime (from the run_log) in the relevant row of the modified test in the tests_expected_runtime.csv
deleted: the script delete the test's row in the tests_expected_runtime.csv
cmdline_file:
since we have multiple tests in one cmdline file, so for this file if  some queries were modified/ deleted (we can't tell which),
the script will first delete all the cmdline tests from tests_expected_runtime.csv , then copy all cmdline_tests that were run from the run_log with there actual runtime

scheme file updates: what if a scheme file is renamed?

when a file is renamed the git diff output is the file's new name.
so in this case , the "new file name" will be send as input to the script, and since it does not appear in the expected-run-time file, will be added  ( the script "thinks" as if it is a new added test),
the only minus that the row (in the expected-run-time file) with the old name will not be removed cause the script has no indicator it does not exist anymore.
if we do not often rename test files , I suggest to keep it as it ("both rows").
however, Running The new (reset_expected_runtime) workflow will remove these "old" rows.

Hi @shireenf-ibm , looks very good. One last comment: since you were not able to test the entire flow (including the commits that should be added following expected runtime updates), Can you prepare some test branch with some "test plan", so that you can open a PR (for testing) of the test branch right after we merge this PR? You can change some tests in the test branch, so that we can test all kinds of expected runtime updates: deleted test, added test, modified test (with runtime greater/smaller than expected), renamed test. Then after we merge, create a PR for the test branch, and then run the new workflow to see if a new commit with expected updates is added. Then, you can also test the new workflow that resets all expected runtime as well.

Sure, I think it is a great idea


UC3: Install and configure Shibboleth

Install the Shibboleth Service Provider on the Roadmap server and configure it to work with the appropriate federation.
References: https://www.pivotaltracker.com/story/show/131902937 and https://www.pivotaltracker.com/story/show/125268081

Need to register new roadmap domain names with federation and point the service to the EduGain federation's list

Shib is working! Although I noted an unrelated issue with ORCID. Will move this along and create a new issue for the other thing.

Not sure if this is working as my freshly created account suggests I have credentials assigned (possibly as recovery email is uni one?) and the link to 'unlink' doesn't do anything. Not sure if that's because I'm from a UK federation though so not right configuration? Close out if so as it's not really one for me to test.
Here's what I see for reference. Shib link would be better alongside ORCID

something crazy happened with this page layout! many things are awry. will cross-check w/related issues #390 for the proper way to display ORCID info

Shib integration is working for UCOP account testing. Closing this issue. We will address Shib workflows and profile UI things in other issues.


Popped out and closed windows cannot be reopened

Now it's possible using the new "Restore default layout" button


Update Documentation

Proposed Changes
Example App

Remove warning from pubspec.yaml by making sure the example app isn't able to be published

Guildes.md

Clarify where to get your Team Id required for iOS OneLink connection through the AppsFlyer website (L311-L317)
Clarify how to generate the SHA256 needed for Android OneLink connection through the AppsFlyer website (L271-L279)
Remove unnecessary setup for iOS that Flutter takes care of for you (double check me on this but my deep link worked without additional setup)
Add explicit typing to functions
Clarify where to get the afAppId
Update the isDebug value to pull from the kDebugMode constant found in the package:flutter/foundation.dart file
Specify the use of flutter_dotenv (or similar) to remove the devKey from source control
Create a full example using Dart's Cascade Notation to call functions on the appsFlyerSdk

Help
Flutter defaults to Kotlin, but the guide only uses Java. Would you be able to update the guide with the Kotlin alternative? (L301-L304)

Hey @SupposedlySam ,
Thank you so much for your contribution.
I've edited some of the docs and change the example app pubspec.yaml file based on most of your edits.


Final variable type promotion is lost inside a closure if followed by try/catch

Dart SDK Version (dart --version)

Dart SDK version: 2.13.4 (stable) (Wed Jun 23 13:08:41 2021 +0200) on "macos_x64"

Description
The following code attempts to use type promotion of a final variable, which should be guaranteed to work in this case because the variable in question is final.
mixin A {
}

class Foo with A {
  final foo = 'foo';
}

class Bar with A {
  final bar = 'bar';
}

void main() {
  final A a;
  try {
    a = Foo();
  } catch (e) {
    print('ERROR: $e');
    return;
  }
  if (a is Foo) {
    print(['foo', 'bar'].firstWhere((i) => i == a.foo)); // fails to compile
  } else if (a is Bar) {
    print(['foo', 'bar'].firstWhere((i) => i == a.bar)); // fails to compile
  }
}

The two lines where it says // fails to compile fail because of the errors (from DartPad):
Error: The getter 'foo' isn't defined for the class 'A'.
 - 'A' is from 'package:dartpad_sample/main.dart' ('lib/main.dart').
    print(['foo', 'bar'].firstWhere((i) => i == a.foo));
                                                  ^^^
lib/main.dart:23:51:
Error: The getter 'bar' isn't defined for the class 'A'.
 - 'A' is from 'package:dartpad_sample/main.dart' ('lib/main.dart').
    print(['foo', 'bar'].firstWhere((i) => i == a.bar));
                                                  ^^^
Error: Compilation failed.

I am almost certain this is a bug because changing the code that assigns a from:
  final A a;
  try {
    a = Foo();
  } on FormatException catch (e) {
    print('ERROR: $e');
    return;
  }

to:
final A a = Foo();

... causes the problem to go away. But at the point where the error occurs, it shouldn't matter which of the two above was used, as a is guaranteed to be assigned and final after this.
This issue might be related to issue 32285?

Also, notice that this compiles fine:
    print(a.foo);
    //print(['foo', 'bar'].firstWhere((i) => i == a.foo));

So type promotion seems to work when outside the closure only.

The following reduced example will actually suffice to obtain the error:
void main() {
  final num a;
  a = 1;
  if (a is int) (i) => i == a.isEven; // fails to compile
}

whereas the following compiles without errors:
void main() {
  final num a = 1;
  if (a is int) (i) => i == a.isEven; // fails to compile
}

The reason why there is no promotion of a in the function literal body is that there is an assignment to a (this happens for any assignment to a, no matter where it is located). Some more info can be found in https://github.com/dart-lang/language/issues/1247.
I think we can close this issue as a duplicate, because the discussion about this particular part of the flow analysis is already the topic of that issue.

The treatment of a final local variable for purpose of flow analysis should not depend on whether it's assigned immediately on declaration, or separately. There's no good reason to do it that way. As long as the variable has been definitely assigned (which the analyzer can easily recognize), the two cases are identical?!
I agree that in the case where the variable is not final, the current behaviour is appropriate. But for final local variables, I believe it's simply a mistake to not promote the type.

I think it's better to make that argument in https://github.com/dart-lang/language/issues/1247!


TypeError: target argument of Reflect.get must be an object, got (void 0)

Describe the bug
When I'm switching between different accounts in my wallet ae--> btc--> eth, I'm getting this error in console: TypeError: target argument of Reflect.get must be an object, got (void 0)
To Reproduce
Steps to reproduce the behavior:

Open the wallet
Swipe between accounts
Open console
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: MacOS
Browser FF
Version 119

Additional context
Reproducible on the current dev branch: https://develop.wallet.z52da5wt.xyz/ and in some ETH support related prs.

the error message will be improved on sdk side after fixing https://github.com/aeternity/aepp-sdk-js/issues/1927


Fix Firefox not being transitioned

Why?
While implementing react-flow in our application I wanted to move the selectedNode to the center of the screen. This makes sure the user can find it even on larger trees.
To achieve that I added a transition to the two places the translation is applied:
  .react-flow__nodes, .react-flow__edges *: {
      transition: transform 500ms ease-in-out,
    }

This works fine in Chrome,. When testing in Firefox the transition did not work however. This seemed to be related to the transfrom being applied as an attribute by react-flow. Attributes are only targeted by the SVG2 spec which has already been partially implemented in Chrome, but not in Firefox.
Fix
To fix this I tested moving the transform into a style tag like it is done for the nodes.
https://github.com/wbkd/react-flow/blob/c5ce586dd9d6a53e600cbff4e9257695fb08e601/src/container/NodeRenderer/index.tsx#L61
With that fix it worked for me in both Chrome and Firefox.

Hey @PhilGarb
thanks for the fix. We changed a lot for our next major release and there is no transform for the group anymore. We only do one transform in the parent of the edge- and nodes-renderer. I'll merge this anyway ;) I think we need one more month until the release is ready..

Hi @moklick
thank you for taking the time to check out the PR. I followed your progress with version 10 and I'm glad this issue is going to be fixed there as well.

released in v9.7.2


JFY/extract data from discord & load to  bigquery

ITEM#1: filename "extract_discord.py"
I created a bot and add it to my discord channel. I use this code to command that bot to extract messages in my discord channel.
ITEM#1: filename "load_bigquery.py"
I used the Activity Watch application to monitor my Windows OS screentime. After extracting the data on the application, I load the data to my BigQuery. I used this code to do the extraction and loading.

Hi @joemarkyangag thanks for this!
Few suggestions:

For the Python packages, instead of installing them on the new .py files, kindly put them on setup.py.
Create a separate .py for extracting Activity Watch data
Wrap the loading of data to BigQuery into a Python function. Something like

def load_data_to_bigquery(df, dataset_id, table_id):
This will help us re-use the code for loading data from other sources.

Document setup guides for Discord and Activity Watch in README.md. We might also need to modify the setup guide for BigQuery.

Thank you!

okay bro. Got this. Thank you

Hi @joemarkyangag thanks for applying the comments! Will review soon. In case you get a chance, kindly breakdown this PR into suggested parts:

Given df, load to BQ
Extract Discord data
Extract Activity Watch data

On second thought let me review the BigQuery load process first then we can create separate PRs for the other functions later. Thanks bro @joemarkyangag

We'll be using DuckDB instead of BigQuery. We'll wrap Discord extraction in dlt in the future. Let's keep this PR open for now. Thank you. cc: @joemarkyangag @sairilseb-me


model.pt error

during binding-ddg-predictior, I got the below error. model.pt file exists in the data directory.

Hi,
Thank you for your interest in our project.
Could you try change your working directory to ~/binding-ddg-predictor and run the following command:
python ./scripts/predict.py ./data/example_wt.pdb ./data/example_mut.pdb

Thanks!

thanks, the problem has been solved. what is the formula of ddg calculation in your tools? ddg=dgmut - dgwild or dgwild -dgmut


add check and fallback behavior for python executable

FIxes https://github.com/colcon/colcon-core/issues/85
Opening for visibility needs some testing still

I updated the sh logic in 281839a612c0676a3d5c0865d1320fda7f3f267b:

improve the error message mentioning the environment variable
move variable closer to where they are actually used
catch stderr output when checking for fallback executable
invert the logic to get rid of the else block (to be shorter and the same as above)

Codecov Report

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

@@           Coverage Diff           @@
##           master      #86   +/-   ##
=======================================
  Coverage   78.27%   78.27%
=======================================
  Files          50       50
  Lines        2766     2766
  Branches      462      462
=======================================
  Hits         2165     2165
  Misses        579      579
  Partials       22       22

Continue to review full report at Codecov.

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


Rethink the rule classes from scratch

Just the fact that they're singletons is a problem, I think. But they currently cause more problems that I cannot remember right now.
"Hey, shouldn't we have the rules inside the game state? After all, each game can have different rules, so we'll have to store in the game state which rules it follows."
"This way you would do game_state.action_is_legal(action) and the game state would go through all of its rules to check."

"I'm going to pass the game state in the action_applied signal, but this is a very bad thing. We don't want anyone to be able to have a reference to the game state."
---> I think this wouldn't be a problem if the rules were inside the game state.

"The AI wants to check what the minimum army size is. It should have access to that. Pretty sure that goes in the game state."

From now on, rules will be hard-coded. I was trying to turn rules into objects, which I learned is a really bad idea


When I compile a cpp file in caffe

When i compile a cpp file which refer to dlib，i get this error， how should i do？
/usr/local/include/dlib/image_processing/scan_fhog_pyramid.h:52:34:   required from 'void dlib::default_fhog_feature_extractor::operator()(const image_type&, dlib::array<dlib::array2d >&, int, int, int) const [with image_type = dlib::array2ddlib::bgr_pixel]'
/usr/local/include/dlib/image_processing/scan_fhog_pyramid.h:594:15:   required from 'void dlib::impl::create_fhog_pyramid(const image_type&, const feature_extractor_type&, dlib::array<dlib::array<dlib::array2d > >&, int, int, int, long unsigned int, long unsigned int, long unsigned int) [with pyramid_type = dlib::pyramid_down<6u>; image_type = dlib::array2ddlib::bgr_pixel; feature_extractor_type = dlib::default_fhog_feature_extractor]'
/usr/local/include/dlib/image_processing/scan_fhog_pyramid.h:633:48:   required from 'void dlib::scan_fhog_pyramid<Pyramid_type, Feature_extractor_type>::load(const image_type&) [with image_type = dlib::array2ddlib::bgr_pixel; Pyramid_type = dlib::pyramid_down<6u>; Feature_extractor_type = dlib::default_fhog_feature_extractor]'
/usr/local/include/dlib/image_processing/object_detector.h:433:9:   required from 'void dlib::object_detector<image_scanner_type_>::operator()(const image_type&, std::vectordlib::rect_detection&, double) [with image_type = dlib::array2ddlib::bgr_pixel; image_scanner_type_ = dlib::scan_fhog_pyramid<dlib::pyramid_down<6u> >]'
/usr/local/include/dlib/image_processing/object_detector.h:507:16:   required from 'std::vectordlib::rectangle dlib::object_detector<image_scanner_type_>::operator()(const image_type&, double) [with image_type = dlib::array2ddlib::bgr_pixel; image_scanner_type_ = dlib::scan_fhog_pyramid<dlib::pyramid_down<6u> >]'
examples/face_landmark.cpp:55:56:   required from here
## /usr/local/include/dlib/pixel.h:1313:52: error: 'lab' is not a member of 'dlib::pixel_traits'
typename enable_if_c<pixel_traits::lab && pixel_traits::hsi>::type
^
/usr/local/include/dlib/pixel.h:1313:52: error: 'hsi' is not a member of 'dlib::pixel_traits'

What did you type?

@davisking After compiled caffe,  I added a .cpp in caffe/example/  and in caffe/ dir i type make


There aren't examples about AxiSlave, AxiLiteSlave, or from_entity

Probably are there also other useful examples missing, but these are what I am interested in. I searched under verilog-axi/tb and cocotbext-tests:
grep -r AxiSlave verilog-axi/tb
grep -r AxiLiteSlave verilog-axi/tb
grep -r from_entity verilog-axi/tb
grep -r AxiSlave cocotbext-axi/tests/
grep -r AxiLiteSlave cocotbext-axi/tests/
grep -r from_entity cocotbext-axi/tests/

I know now that you can use .from_entity(dut) when you haven't a prefix.

There are basically two ways to use AxiSlave and AxiLiteSlave.  One way is to extend from it and override _read and _write, see AxiRam and AxiLiteRam.  The other way is to specify a target, for that see the readme and https://github.com/corundum/corundum/blob/master/fpga/common/tb/mqnic_core_axi/test_mqnic_core_axi.py .  I don't have any examples of from_entity as this is more for things like SV interfaces, and I don't really use SV at the moment.  However, I think it would make a lot of sense to add some additional test cases for things like SV interfaces as I have had people ask about several variations of those.  That's on my to-do list, but probably won't happen for a while.


Change LocalBlockStore.getVolatileBlockMeta to return Optional

What changes are proposed in this pull request?
Return Optional instead of throwing BlockDoesNotExistException.
Using exception to handle special case is expensive, using Optional.empty()
instead.
Also remove the block meta related APIs in BlockWorker.

alluxio-bot, merge this please.


'Service Client is not connected' with ExternalTokenManagement and new ServiceClient(ConnectionOptions) ctor

I'm updating my code to take advantage of the new SerivceClient(ConnectionOptions) constructor.
The working code:
  new ServiceClient(
      instanceUrl: uri,
      tokenProviderFunction: GetToken,
      useUniqueInstance: true,
      logger: logger);

Switching to the new constructor:
  new ServiceClient(connectionOptions: new()
  {
    AccessTokenProviderFunctionAsync = GetToken,
    AuthenticationType = Microsoft.PowerPlatform.Dataverse.Client.AuthenticationType.ExternalTokenManagement,
    ServiceUri = uri,
    Logger = logger,
    RequireNewInstance = true, // seems to be true by the default anyway (undocumented/change?)
    // SkipDiscovery also seems to true by default anyway (undocumented/change?)
  });

I receive this exception calling Execute():

Microsoft.PowerPlatform.Dataverse.Client.Utils.DataverseConnectionException:
'Service Client is not connected to Dataverse. Please recreate this Service Client.'
at Microsoft.PowerPlatform.Dataverse.Client.ServiceClient.ValidateConnectionLive()
at Microsoft.PowerPlatform.Dataverse.Client.ServiceClient.ExecuteOrganizationRequestImpl(OrganizationRequest req, String logMessageTag, Boolean useWebAPI, Boolean bypassPluginExecution)
at Microsoft.PowerPlatform.Dataverse.Client.ServiceClient.Execute(OrganizationRequest request)

The exception occurs for:

all combinations of RequireNewInstance and SkipDiscovery
regardless of whether deferConnection is true or false
regardless of whether Connect() is called or not

GetToken is never called.
The only message logged is this warning, which seem spurious:

Client ID not supplied, using SDK Sample Client ID for this connection

Environment: I'm using .NET 6.0 in an Azure Function running locally in the Visual Studio 2022 Version 17.2.4 debugger.
As far as I can tell both constructors calls are equivalent - what am I missing?

We have found the issue there and corrected it, expect an update later today / tomorrow for it.
Also the behavior of both skipdiscovery and requirenewinstance is defaulted to the same behavior as connection strings, which have behaved that way since 2017ish.
I have asked the team to make sure the doc's and intensens reflect the default behavior.
thanks for your report.


TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/70513

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/95600

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/103479


[submodule-sync] bot-submodule-sync-branch-24.04 to branch-24.04 [skip ci] [bot]

submodule-sync to create a PR keeping thirdparty/cudf up-to-date.
 If failed, it will remain open until test pass or manually fix.

[INFO]      [exec] CMake Error in CMakeLists.txt:
[INFO]      [exec]   export called with target "cudf" which requires target "nvtx3-cpp" that is
[INFO]      [exec]   not in any export set.


Trigger change event for add/remove - backported 187e13a244b

Backported change from upstream 187e13a244b which enables firing of update events when adding or removing widgets.
Required in widget centre to update coordinates of widgets that are shifted after adding or deleting widgets (FuseIt/FuseTube#3131).

Looks good to me, @kukareka what you think?


How about add support for lua script?

Some times we need operations like CAS(compare and set), lua script can make it atomic and also get good performance by reducing number of times of remote call.

can you tell me your usage? In Qihoo, there is less then 10% users use lua script when they use redis. So we haven't supported lua script.

Hey guys, I came from LedisDB project which I believe is developed by someone from your team.
I use LedisDB in production and I'm quite happy with it. I server scientific articles from it. Currently I have 76M articles in my DB. I also heavily rely on LUA because it's critical sometimes to make decision on DB instead of fetching article's XML from DB to API server. I have 10X difference in response time.
Also sometimes it's very convenient to do maintenance on DB. For example I build huge bitsets for articles. Fetching 100GB of compressed XML to set bunch of bits would take very long time.
Therefore seeing LUA support in Pika would be dealbreaker for me :)

Hi unoexperto:
We are planning to supporting LUA in Pika, but it may take a while before we finally release this cause there are something we have to consider and solve:
1). Accomplish a built-in LUA interpreter in Pika
2). LUA supporting requires Pika to support the atomic semantic like MULTI/EXEC commands in Redis, it would bring a performance penalty. Pika store data in disk not memory, if we simply use only one thread to serve, like Redis, we can easily bring atomic semantic, but the performance will decrese 4~6X, which is not what the Pika's users want. We need to find out a better way
Anyway, we belive that LUA supporting will come sooner or later, thanks for using^^


Install Requirements

I cannot install it into any of my conda environments, what are the requirements? This should be on the front page btw.

FastHTML is up on conda-forge. You should be able to install it using either conda or mamba via conda install -c conda-forge python-fasthtml.

Oh nifty thanks @synapticarbors for letting us know! Do you know if that will be auto-updated as new releases are tagged?

Thanks guys, sorry for the trouble.

@jph00 In theory a bot should automatically submit a PR for all new releases, but I'm seeing that it didn't for some reason. I'll manually update and then will follow releases here to see if the issue is persistent.

Many thanks Joshua -- if there's anything we can do at our end to help,
just let us know.

Message ID: @.***>


sublime LSP plugin list autocomplete method without parameters

can we make this become a option feature?

If the language server sends both label and insertText, we currently prefer label.
I would welcome a PR to add a setting to always prefer insertText.


Oruga-next with Vue3 doesn't work with up/down keys after searching

Overview of the problem
Oruga version: @oruga-ui/oruga-next 0.4.8
Vuejs version:  vue 3.2.22
OS/Browser: Chrome 96
Description
When using the autocomplete component, I am not able to use the up/down keys after searching.
See video...
https://user-images.githubusercontent.com/260667/143936997-1fcb5081-89c7-4777-9791-738f9fdcba5e.mov
Steps to reproduce

Start typing for items
Wait for items to show up in auto complete
Use the up and down to move hover

Expected behavior
There should be a hover item and up and down should move it.
Actual behavior
No items are hovered.
I have tried some time debugging it. The code is correctly calling setHover but no css is appended. I am not sure what else to try.

@coreyworrell I'll investigate about it

At the moment it works well but the only one problem is about scrolling options that I just fixed 3461ef489b3f0a5d009f0c0c9d0ae38655fa1b6f; maybe it could related to your issue

@jtommy I keep getting pinged in this repo and I'm not sure why :smile:

@jtommy what do you mean it works well? Were you able to reproduce the issue?

@amir20 can you reproduce on codepen or similar? So I'll try my fix if are able to reproduce it

@jtommy I tried to figure out how to use codepen with orgua-next and vue3. But all the examples in the documentation were with vue2. If you have an example with any component, then I can try again to use the auto complete component. Otherwise, I think it should be easily reproducible. Thanks.

@amir20 https://codesandbox.io/s/silly-sun-u7ron?file=/src/App.vue
It's a sample from Discord server

Thanks. It helped. I wasn't able to reproduce my exact issue. Which is confusing. I may need your help. After much debugging, it seems like the object that is passed to setHover or selected is a proxy. But the data is just a regular array which is why the hover css class never shows up.
I'll have to keep investigating.

Ok, anyway I fixed a bug about scroll navigation using arrow keys

@jtommy I fixed it. To be honest, I have no idea why. Looks I was affected by the proxy equality as explained here in the vue documentation.
This makes no sense. But I wrapped all my objects with .map((i) => reactive(i)) using vue's reactive function and everything started working. See https://github.com/amir20/dozzle/commit/5cf74e3f959fe5c6950bb672321c14da6aabf259.
Again no idea why I need to do this. Debugging showed that this.hovered = {...} would convert hovered to a type Proxy.

It's very strange but it's a Vue 3 issue, I don't think to change something in my part


Test Failure - Scene/GroundPolylinePrimitive/picking in Columbus View

When running Scene/GroundPolylinePrimitive specs together, the "picking in Columbus View" test fails. However, when run on its own, it runs fine.
The test suite ran fine until https://github.com/CesiumGS/cesium/commit/97492e7a29e55905acb5f3a84d026047dcf901b8.

That commit doesn't make any sense to me in terms of how it could have caused this.  I did a bisect and it pointed to 4e730efd99bab6ef32237633dae88d2415b9b1d2, which also makes no sense.  So I have no idea what's going on here.


rbenv install ruby 2.7.1 fail, macOS

> RUBY_CONFIGURE_OPTS="--with-openssl-dir=`brew --prefix openssl` --with-readline-dir=`brew --prefix readline` --with-libyaml-dir=`brew --prefix libyaml`" rbenv install 2.7.1

Downloading ruby-2.7.1.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.1.tar.bz2
Installing ruby-2.7.1...

BUILD FAILED (OS X 10.15.4 using ruby-build 20200401)

Inspect or clean up the working tree at /var/folders/nf/hlsjw5r54rjcnmgdlbvz1d980000gn/T/ruby-build.20200508220318.88289.GSwf36
Results logged to /var/folders/nf/hlsjw5r54rjcnmgdlbvz1d980000gn/T/ruby-build.20200508220318.88289.log

Last 10 log lines:
compiling error.c
compiling eval.c
compiling file.c
file.c:31:10: fatal error: 'CoreFoundation/CFString.h' file not found
#include <CoreFoundation/CFString.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
file.c:31:10: note: did not find header 'CFString.h' in framework 'CoreFoundation' (loaded from '/System/Library/Frameworks')
1 error generated.
make: *** [file.o] Error 1
make: *** Waiting for unfinished jobs....

I know this might be the problem of macOS rather than rbenv. But I have already linked the headers as below to make sure headers are in the usr/local/include/
sudo ln -s "$(xcrun --show-sdk-path)/usr/include/*" /usr/local/include
sudo ln -s /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/* /usr/local/include/

Is there anything I still missing to compile successfully?
Thanks for the help.

solution found:
put below scripts in .bash_profile or .zshrc. Comment these lines out after ruby is installed or it might influnce original C/C++ environment.
for macOS users, $(xcrun --show-sdk-path)/usr/include/ should be linked as /usr/include with csrutil disabled.
# Setup Compiler paths for readline and openssl
local READLINE_PATH=$(brew --prefix readline)
local OPENSSL_PATH=$(brew --prefix openssl)
export LDFLAGS="-L$READLINE_PATH/lib -L$OPENSSL_PATH/lib"
export CPPFLAGS="-I$READLINE_PATH/include -I$OPENSSL_PATH/include"
export PKG_CONFIG_PATH="$READLINE_PATH/lib/pkgconfig:$OPENSSL_PATH/lib/pkgconfig"

# Use the OpenSSL from Homebrew instead of ruby-build
# Note: the Homebrew version gets updated, the ruby-build version doesn't
export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$OPENSSL_PATH"

# Place<EMAIL_ADDRESS>at the beginning of your PATH (preempt system libs)
export PATH=$OPENSSL_PATH/bin:$PATH

export SDKROOT="$(xcrun --show-sdk-path)"

ref: https://zhile.io/2018/09/26/macOS-10.14-install-sdk-headers.html


Debug tool bar not updating properly when docked

VSCode Version: 1.32.3
OS Version: Microsoft Windows 10 Pro - 10.0.17763 Build 17763

Steps to Reproduce:

Create a workspace with two projects ("API" and "Web").
Set Tool Bar Location to "docked"
Set up a debug configuration for each project.
Debug "API"
Debug "Web" via "Start Additional Session"

Expected behavior:

The session drop-down menu appears

Actual behavior:

No session drop-down menu appears (due to the docked tool bar failing to update)

Workaround:

Toggle the Tool Bar Location to "floating" (which causes the tool bar to updates properly) then back to "docked"

Does this issue occur when all extensions are disabled?: Yes
Screen captures showing the inconsistent behavior between the floating and docked debug tool bar:
Debug "API"

Start additional session

Debug Web

Session drop-down menu fails to appear

Toggle tool bar location to "floating" (causes drop-down to appear)

Toggle tool bar location back to "docked" (drop-down menu remains)

Switch session to "API" (stop button still has "attached" icon even though it was "launched")

Toggle tool bar location to "floating" (causes stop button icon to update)

Toggle tool bar location back to "docked" (correct stop button icon remains)

This works for me in the latest vscode insiders. I have pushed some changes in that area which might have fixed it. Can you please try reproducing with latest vscode insiders https://code.visualstudio.com/insiders/

Unfortunately, no. I just downloaded the latest insiders and still have the same problem. I should have mentioned this in my original bug report, but my app does require one extension (Debugger for Chrome). Perhaps that's a factor? Also, note that I'm on Windows 10.

@isidorn,
Also, here are my launch configs and tasks in case they are related:
API
launch.json
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "API - Debug",
            "type": "node",
            "request": "launch",
            "preLaunchTask": "Clean-Compile-Watch",
            "runtimeExecutable": "node",
            "runtimeArgs": ["--inspect-brk=<IP_ADDRESS>:9223", "./build/server.js", "--nolazy"],
            "port": 9223,
            "restart": true,
            "outFiles": ["${workspaceFolder}/build/**/*.js"],
            "console": "integratedTerminal",
            "internalConsoleOptions": "neverOpen",
            "skipFiles": ["node_modules/**/*.js", "lib/**/*.js"],
            "env": {
                "NODE_ENV": "development",
                "PORT": "4000",
                "GOOGLE_MAPS_API_KEY": "AIzaSyDvx0yi33aZRShecXpiesRe6t2G8cCAeH8"
            }
        }
    ]
}

tasks.json
{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "Clean",
            "type": "shell",
            "group": "build",
            "command": "powershell",
            "args": ["-ExecutionPolicy", "Unrestricted", "-NoProfile", "-File", "${cwd}/build-scripts/clean.ps1"],
            "isBackground": false,
            "problemMatcher": []
        },
        {
            "label": "Clean-Compile-Watch",
            "type": "shell",
            "group": "build",
            "command": "tsc",
            "args": ["--watch"],
            "isBackground": true,
            "problemMatcher": "$tsc-watch",
            "dependsOn": ["Clean"]
        }
    ]
}

clean.ps1:
$ErrorActionPreference = "Stop"
Remove-Item build -Recurse -Force -ErrorAction Ignore
New-Item build -ItemType Directory
Copy-Item ./src/database build -Recurse -Force -PassThru
Copy-Item ./src/scripts build -Recurse -Force -PassThru
Copy-Item ./src/workbooks build -Recurse -Force -PassThru
Copy-Item ./package.json build -Force -PassThru
Copy-Item ./web.config build -Force -PassThru
Write-Output ""
Write-Output "Successfully replaced build folder"

Web
launch.json
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Web - Browse",
            "type": "chrome",
            "request": "attach",
            "preLaunchTask": "Debug",
            "url": "http://localhost:3000",
            "webRoot": "${workspaceFolder}/src",
            "port": 9222,
            "smartStep": false,
            "skipFiles": ["node_modules/**/*.js", "lib/**/*.js"]
        }
    ]
}

@isidorn,
Also, here are my launch configs and tasks in case they are related:
API
launch.json
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "API - Debug",
            "type": "node",
            "request": "launch",
            "preLaunchTask": "Clean-Compile-Watch",
            "runtimeExecutable": "node",
            "runtimeArgs": ["--inspect-brk=<IP_ADDRESS>:9223", "./build/server.js", "--nolazy"],
            "port": 9223,
            "restart": true,
            "outFiles": ["${workspaceFolder}/build/**/*.js"],
            "console": "integratedTerminal",
            "internalConsoleOptions": "neverOpen",
            "skipFiles": ["node_modules/**/*.js", "lib/**/*.js"],
            "env": {
                "NODE_ENV": "development",
                "PORT": "4000",
                "GOOGLE_MAPS_API_KEY": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
            }
        }
    ]
}

tasks.json
{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "Clean",
            "type": "shell",
            "group": "build",
            "command": "powershell",
            "args": ["-ExecutionPolicy", "Unrestricted", "-NoProfile", "-File", "${cwd}/build-scripts/clean.ps1"],
            "isBackground": false,
            "problemMatcher": []
        },
        {
            "label": "Clean-Compile-Watch",
            "type": "shell",
            "group": "build",
            "command": "tsc",
            "args": ["--watch"],
            "isBackground": true,
            "problemMatcher": "$tsc-watch",
            "dependsOn": ["Clean"]
        }
    ]
}

clean.ps1:
$ErrorActionPreference = "Stop"
Remove-Item build -Recurse -Force -ErrorAction Ignore
New-Item build -ItemType Directory
Copy-Item ./src/database build -Recurse -Force -PassThru
Copy-Item ./src/scripts build -Recurse -Force -PassThru
Copy-Item ./src/workbooks build -Recurse -Force -PassThru
Copy-Item ./package.json build -Force -PassThru
Copy-Item ./web.config build -Force -PassThru
Write-Output ""
Write-Output "Successfully replaced build folder"

Web
launch.json
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Web - Browse",
            "type": "chrome",
            "request": "attach",
            "preLaunchTask": "Debug",
            "url": "http://localhost:3000",
            "webRoot": "${workspaceFolder}/src",
            "port": 9222,
            "smartStep": false,
            "skipFiles": ["node_modules/**/*.js", "lib/**/*.js"]
        }
    ]
}

I tried windows and still can not repro.
If you can repro all the time, please create a repository on GitHub which I can clone and repro on my machine. Otherwise I can not do anything about this. Thanks

@isidorn
Please:

Please install the Debugger for Chrome extensions (no other extensions needed)
Clone these two repos into a workspace folder:

https://github.com/devuxer/debug-tool-bar-fail-api
https://github.com/devuxer/debug-tool-bar-fail-web

Create a code-workspace file in the workspace folder containing the following:

{
    "folders": [
        {
            "path": "api"
        },
        {
            "path": "web"
        }
    ],
    "settings": {
        "editor.tabSize": 4,
        "editor.insertSpaces": true,
        "editor.detectIndentation": false,
        "terminal.integrated.scrollback": 10000,
        "prettier.tabWidth": 4,
        "files.exclude": {
            "**/.git": true,
            "**/.svn": true,
            "**/.hg": true,
            "**/CVS": true,
            "**/.DS_Store": true
        },
        "search.exclude": {
            "**/build": true
        },
        "tslint.configFile": "../tslint.json"
    }
}

If I launch "API - Debug" then "Web - Browse", I will not see a session drop-down menu unless I float the debug tool bar.

@devuxer thanks for being persistent.
Please try it with next week's vscode insiders and let us know if my fix solves the problem for you.
Thanks

@isidorn
Sure thing! Thanks for taking the time to review my issue!

Reopen issue as requested by @devuxer pls see https://github.com/microsoft/vscode/issues/75050#issue-453347584

@devuxer I can only reproduce the session not showing up during the initalisation.
However I have pushed what I think is a fix for your issue (changed the eventing order such that we first go into multi session state and only then fire new session event). So please try out vscode insiders from Monday and let me know if this fixes the issue for you. https://code.visualstudio.com/insiders/

@devuxer thanks for trying it out, adding verified label.


System (please complete the following information):

OS: Linux (Ubuntu)
node version v10.19.0
npm version 6.14.4
cli version 4.1.1

Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Any idea what is going on, or how to resolve it? Have I done something wrong?

Sorry, just noticed an error in the manifest file - my bad. :(

No worries, thanks for your attention @dhofverberg!


RFC: Embedding -> EmbeddingModel

Embeddings sounds like the output of an embedding model, not an embedding model itself 🌝

@dev2049  this rename looks great to me! And it's backwards compatible soooo :)

This is great!