Input file not recognized when using pkeyutl with encrypt/decrypt functions

Description:
When using the encrypt/decrypt pkeyutl tool with trustm provider, the operation fails due to incorrect input file.
Steps to Reproduce:
To decrypt, we use the following command:
openssl pkeyutl -provider trustm_provider -inkey 0xe0fd:* -decrypt -in to_enc_long.txt -out encrypted.enc
The output of the decrypt command is the following:
Input OID E0FD
Enc scheme : 11
Private OID : e0fd
inlen : 0
in is NULLError decrypting message with RSA.
Error code : 0403
Public Key operation error

It shows that the input file is NULL and its size is 0, while the file exists and is accessible (corret read/write rights).
To encrypt, we use the following command:
openssl pkeyutl -provider trustm_provider -inkey 0xe0fd:^ -encrypt -in to_enc_long.txt -out encrypted.enc
The output of the encryptcommand is the following:
Input OID E0FD
Enc scheme : 11
Private OID : e0fd
inlen : 0
Public Key operation error
Error encrypting message with RSA

It shows that the input file size is 0, while the file exists, is not empty and is accessible (corret read/write rights).
Frequency (1/1, 1/50, 1/100):
1/1
Build/Commit:
Branch: provider_dev, 934c79c703ebe092c98047315ad7a5a3980742ce
Target:
Read Chip Info [0xE0C2]: Success.
========================================================
CIM Identifier             [bCimIdentifer]: 0xcd
Platform Identifer   [bPlatformIdentifier]: 0x16
Model Identifer         [bModelIdentifier]: 0x33
ID of ROM mask                  [wROMCode]: 0x9301
Chip Type                    [rgbChipType]: 0x00 0x1c 0x00 0x05 0x00 0x00
Batch Number              [rgbBatchNumber]: 0x0a 0x02 0x61 0xd4 0x00 0x01
X-coordinate              [wChipPositionX]: 0x008e
Y-coordinate              [wChipPositionY]: 0x0033
Firmware Identifier [dwFirmwareIdentifier]: 0x80101071
Build Number                 [rgbESWBuild]: 24 40

Chip software build:
OPTIGA(TM) Trust M rev.3; Firmware Version: 3.00.2440
========================================================

Host OS and Version:
Linux 5.15.32 #1 SMP PREEMPT Tue Sep 24 12:12:55 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
Compiler:
gcc (GCC) 7.3.1 20180712 (Red Hat 7.3.1-17)
Environment
OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)
THANKS!

Hi @Oxmose These two commands are not supported yet and the implementation is still in progress. We will update you once it is completed. In the meantime, we would like to share the script RSA_openssl_enc_Trust_M_dec.sh with you. This script includes the OpenSSL pkeyutl command for RSA encryption and using Trust M for decryption function. Thank you very much.

Hi @Oxmose  This issue has been resolved by the latest commit. Please refer to the test script: RSA Encryption/Decryption using Trust M provider for testing. Thanks a lot.

Hi @ying-css ,
I update our lib and try the script, however, we get the following message when trying to encrypt:
# openssl pkeyutl -provider trustm_provider -inkey 0xe0fd:^ -encrypt -in to_enc.txt -out data.enc
Input OID E0FD
Public Key operation error
Error encrypting message with RSA

The key is generated as follows:
# openssl pkey -provider trustm_provider -in 0xe0fd:*:NEW:0x42:0x13 -pubout -out pubkey.pem
Input OID E0FD
Generating RSA keypair using TrustM....
Writing public key to OID 0xF1E1

Hi, @Oxmose I just cloned the repo and tested it again. These two commands are working properly at my side. Could you kindly run this command under linux-optiga-trust-m directory:./bin/trustm_metadata -r 0xf1e1  and send me the output of this command? Please also refer to the picture I attached here.

Thanks.

Hi @ying-css ,
Here is the output of the command:
# trustm_metadata -r 0xf1e1

========================================================
App DataStrucObj type 2     [0xF1E1]
OPTIGA execution time: 0.1484 sec.
[Size 0021] :
        20 13 C0 01 01 C4 02 05 DC C5 02 01 26 D0 03 E1
        FC 07 D1 01 00
        LcsO:0x01, Max Size:1500, Used Size:294, Change:LcsO<0x07, Read:ALW,

========================================================

Hi @Oxmose It seems no issue with the metadata setting for 0xF1E1. Could you kindly check whether this line has been added into your code? If it is not there,  Could you kindly add this line in? Also please check this line whether it has been set to "1"(Which means Soft Reset).Please refer to the picture attached here.

If both can not work, Could you kindly clone the repo again into one new location, install and run the command again? Thanks

I re-cloned the repo from scratch, enabled soft reset and updated my i2c-dev. I made sure the lines you pointed out where here.
I still get the following error:
# openssl pkey -provider trustm_provider -in 0xe0fd:*:NEW:0x42:0x13 -pubout -out pubkey.pem
Input OID E0FD
Generating RSA keypair using TrustM....
Writing public key to OID 0xF1E1

# echo "This is to encrypt" > to_enc.txt

# openssl pkeyutl -provider trustm_provider -inkey 0xe0fd:^ -encrypt -in to_enc.txt -out data.enc
Input OID E0FD
Error in trustm_provider/trustm_provider_asym_rsa.c:102 rsa_asymcipher_encrypt: Error in optiga_crypt_rsa_encrypt_message
Public Key operation error

Hi @RaymWong
Here is the output:
# openssl pkeyutl -provider trustm_provider -inkey 0xe0fd:^ -encrypt -in to_enc.txt -out data.enc
Input OID E0FD
[util]  optiga_util_open_application
[cmd]   optiga_cmd_open_application
[cmd]   Sending open app command...
[comms] >>>> (Data frame)
        Length of data - 0x001B
        03 00 16 08 20 F0 00 00 10 D2 76 00 00 04 47 65
        6E 41 75 74 68 41 70 70 6C BE 40
[comms] <<<<
        Length of data - 0x000B
        00 00 06 08 20 00 00 00 00 19 04
[comms] >>>> (Control frame)
[cmd]   Processing response for open app command...
[cmd]   Response of open app command is processed...
[util]  optiga_util_read_metadata
[cmd]   optiga_cmd_get_data_object
[cmd]   Sending read data command...
[comms] >>>> (Data frame)
        Length of data - 0x000D
        04 00 08 08 20 81 01 00 02 E0 FD 15 26
[comms] <<<<
        Length of data - 0x001E
        05 00 19 08 20 00 00 00 13 20 11 C0 01 01 D0 03
        E1 FC 07 D3 01 00 E0 01 42 E1 01 13 9B E8
[comms] >>>> (Control frame)
[cmd]   Processing response for read data command...
[cmd]   Response of read data command is processed...
[util]  optiga_util_read_data
[cmd]   optiga_cmd_get_data_object
[cmd]   Sending read data command...
[comms] >>>> (Data frame)
        Length of data - 0x0011
        09 00 0C 08 20 81 00 00 06 F1 E1 00 00 06 11 AD
        0C
[comms] <<<<
        Length of data - 0x0115
        0A 01 10 09 20 00 00 01 26 30 82 01 22 30 0D 06
        09 2A 86 48 86 F7 0D 01 01 01 05 00 03 82 01 0F
        00 30 82 01 0A 02 82 01 01 00 98 C4 D6 60 5B C6
        FD 8D 53 B9 41 9D FD AB 08 7A D5 79 3C 42 56 CA
        C6 B7 24 9B F5 53 84 E0 A5 98 7C 95 B9 E9 55 AA
        6C 44 61 56 6A AB 4D A4 F4 22 AA E0 9C CE 1B 36
        FE 34 18 3B 9F A4 D1 55 E1 59 81 67 92 65 49 65
        19 F9 D4 FA 99 50 01 D5 AF 7D D3 CD 9F 10 7B 92
        65 B5 C7 E1 5B 82 6F 65 8B D5 11 69 B1 CF 1C D6
        F6 8F 92 57 BD AA 5D 83 EA A6 71 D4 4A 59 96 C5
        7E 7C 20 89 2A 4C 81 92 9E BB BD 5C 0A 95 47 45
        DB AD 61 E7 58 75 6A 25 3C 35 6A D2 E9 5B 0D B8
        38 D3 94 97 AA BF 18 2C 7A 58 EF 33 A3 0E 79 32
        F8 39 2C 48 91 20 9C 8E F1 ED 39 2F 55 C6 4A 39
        E6 57 B0 FD 58 3A 36 DE D0 A9 B3 39 8B 56 5E AC
        4B 73 00 D8 31 A1 50 87 8B 3D 61 1D 3A 42 7B A6
        83 9A 2F BC A3 04 F0 BB FF C4 E1 4F 6C 04 3F 05
        7F 36 53 11 AF
[comms] >>>> (Control frame)
[comms] <<<<
        Length of data - 0x0022
        0E 00 1D 0C D2 6C 13 62 0E 0C 30 AE B7 37 D4 26
        84 02 E3 A7 1B B6 80 BE 4F 5F 75 02 03 01 00 01
        CB 99
[comms] >>>> (Control frame)
[cmd]   Processing response for read data command...
[cmd]   Response of read data command is processed...
[crypt] optiga_crypt_rsa_encrypt_message
Error in trustm_provider/trustm_provider_asym_rsa.c:102 rsa_asymcipher_encrypt: Error in optiga_crypt_rsa_encrypt_message
Public Key operation error


Searches don't seem to get all results

Brief description of your issue
I search for java using this and it showed adopt open versions of java but not 8. I can manual look through the repository and see its there. when searching using the package identifier it shows up.
Steps to reproduce

type winget search java
type winget search "AdoptOpenJDK.OpenJDK.8"

Expected behaviour
All versions should show up
Actual behaviour
versions are missing until using the direct identifier
Screenshot

PS C:\Users\denelon> winget search AdoptOpenJDK --tag java
Name                             Id                      Version   Source
--------------------------------------------------------------------------
AdoptOpenJDK JDK with Hotspot 16 AdoptOpenJDK.OpenJDK.16 <IP_ADDRESS>  winget
AdoptOpenJDK JDK with Hotspot 15 AdoptOpenJDK.OpenJDK.15 <IP_ADDRESS>  winget
AdoptOpenJDK JDK with Hotspot 14 AdoptOpenJDK.OpenJDK.14 <IP_ADDRESS> winget


feature(collection): ui changes

Small PR before diving back to /rankings
PR type

[x] Feature

Before submitting this PR, please make sure:

[x] Code builds clean without any errors or warnings
[x] I've merged recent default branch -- main and I've no conflicts
[x] I've didn't break any original functionality
[x] I've posted screenshot of demonstrated change in this PR

Optional

[x] I've tested it on mobile and everything works

What's new? (may be part of changelog)

This PR closes #738

Screenshot

LGTM!

Sent @vikiival request over table


tests: migrate from Travis to GitHub-Actions

Description

migrate from travis to gh-action

Motivation

https://github.com/sabre-io/vobject/pull/545

Related

https://github.com/SwikritiT/event/pull/1

@SwikritiT sorry, I didn't see this PR! I did this just now in PR #90


Update readme, clean up old files

Description

update readme to reflect new conda install option
remove old files from the repo that are no longer used
Move details of installation from source to a separate readme

Motivation and Context

Updates to show the new conda install option

How Has This Been Tested?

only readme

Fixes #345

Thank you @jhkennedy  for your help on getting raider on conda


DX: implicit api makes it really hard to navigate codebase/recipies

let me describe my feelings which I had today when working a few ours with deployer.
I read some docs, some 3rd party and also builtin recipies. when trying to understand the code I need to search the deployer codebase for keywords/symbols/functions like deploy_path, upload, deploy:prepare etc.
my IDE is not able to help me in any way, because of this "string-based api".
I would love a recipe (or api style) which allows me to use the regular IDE features, which work on most php codebases, like "navigate to function", "show inline phpdocs of func declaration" or similar.
because of the mentioned problems the library is rather hard to use DX wise.
please dont be angry, the lib itself is still a very usefull tool, but IMO there is some room for improvements as far as developer experience is a concern.
thank you

Agree. But take a look at Symfony which also has a lot of strings in DI and services. But has a great plugins for IDE.
We can do same thing and create same plugin for IDE.
Also I'm going to improve DX with helpful error messages, better recipe validation and better recipes importing and location.

I am fine with whatever way we can implement as long as DX inprove with it


augmenting built in command behaviour (cd)

While working on my dot files I got trouble trying to augment cd behavior. For reference here is my progress:
bash version: https://github.com/gdiazlo/acme/blob/master/profile
oh version: https://github.com/gdiazlo/acme/blob/master/ohrc
I need to execute an additional command on each cd, only if I'm inside my editor terminal (basically when TERM=dumb)
I tried something like:
define cd: method(:args) = {
	builtin cd @$args
	if (eq $TERM dumb) {
		command awd
	}
}

But the builtin usage is wrong.
I also tried something like:
define acd: method(:args) = {
	cd @$args
	if (eq $TERM dumb) {
		command awd
	}
  }

But when acd returns, the current directory remains unchanged.
What would be the way to change or augment the behavior of a builtin command?
I had a look at boot.oh, but still I can't figure out how to do it.

The command cd behaves a little differently than other commands as it needs to set some variables in the current environment. To create a new cd you want something like:
define lcd: syntax (: args) e = {
    define l: cons (quote cd) $args # Construct the command.
    write $l                        # Write the command so we can see it.
    e::eval $l                      # Evaluate it in the calling environment.
}

If you want to reuse the name cd, you have to save the old value somewhere:
export oldcd = $cd
define cd: syntax (: args) e = {
    define l: cons oldcd $args
    write $l
    e::eval $l
}

Cool! that solved it. thanks


Allow initialFocus to be false. Or maybe add another property

Is it really necessary setting up the focus when unpausing\activating focus-trap?
I mean if you wanna be sure that focus is inside focus-trap why just don't check for it? And if it's really somewhere outside, focus the initial element.
Potential use case (not counting previous issues):
If you have some modal divs inside your focus-trap that are being rendered outside of focus-trap (hints, popovers etc.) then you have to pause focus-trap every time they are appearing. And you don't want focus to jump from the current position to the initial position every time you are closing popover, hint or whatever.  Of course in case if your popovers/hints have nothing to focus inside.
p.s. sorry for English

@galanovnick Did you look at https://github.com/davidtheclark/focus-trap/issues/5 with the exact same issue title? This question has been addressed a few times, so please review the closed issues and compare your request to them.
If you think your use-case has not been addressed, it would help me understand if you'd build a little demo (can do it in a PR) showing the situation that you believe currently does not work well.

I think your concerns have been addressed in release 2.2.0. Please open a new issue if not, specifying what behavior is lacking.

Yeah, it was. The problem caused by React material components, your plugin works just fine.

Yes, it was. Thanks a lot.


increase decode_varint performance

I managed to increase the performance of encoding::decode_varint by removing some branching and getting rid of the slow decode loop. This sounds concerning, but I also added bytes.len() checks every step of the way.
This PR mostly came about though trial-and-error, but I suspect it has something to do with a branching/inline interaction. The result, at least on my machine, is sizable performance gains for small varints (I imagine the most common case, at least as far as tags go) and diminishing performance gains as the varints get larger.
Note: My machine is a old AMD FX-8150 running Linux WSL2. I would be interested to see how the performance is on a fancy new cloud machine.
varint/small/encode     time:   [254.83 ns 256.70 ns 259.09 ns]
                        change: [-0.2769% +3.2613% +9.8484%] (p = 0.28 > 0.05)
                        No change in performance detected.

varint/small/decode     time:   [224.79 ns 226.81 ns 229.44 ns]
                        change: [-39.192% -36.446% -33.858%] (p = 0.00 < 0.05)
                        Performance has improved.

varint/small/encoded_len
                        time:   [203.60 ns 205.40 ns 207.53 ns]
                        change: [-2.5341% +1.7540% +8.6075%] (p = 0.68 > 0.05)
                        No change in performance detected.

varint/medium/encode    time:   [1.3112 us 1.3206 us 1.3317 us]
                        change: [-10.751% -3.7931% +1.7344%] (p = 0.33 > 0.05)
                        No change in performance detected.

varint/medium/decode    time:   [580.60 ns 584.50 ns 589.62 ns]
                        change: [-30.263% -27.334% -22.984%] (p = 0.00 < 0.05)
                        Performance has improved.

varint/medium/encoded_len
                        time:   [205.49 ns 207.27 ns 209.46 ns]
                        change: [-6.0480% -0.5540% +3.8425%] (p = 0.86 > 0.05)
                        No change in performance detected.

varint/large/encode     time:   [2.5997 us 2.6160 us 2.6387 us]
                        change: [-2.7384% -0.3883% +1.9255%] (p = 0.77 > 0.05)
                        No change in performance detected.

varint/large/decode     time:   [1.0150 us 1.0234 us 1.0337 us]
                        change: [-9.7888% -3.3455% +1.8321%] (p = 0.35 > 0.05)
                        No change in performance detected.

varint/large/encoded_len
                        time:   [204.44 ns 206.36 ns 208.69 ns]
                        change: [-4.0713% -0.7775% +1.9785%] (p = 0.68 > 0.05)
                        No change in performance detected.

varint/mixed/encode     time:   [1.7585 us 1.7739 us 1.7949 us]
                        change: [-2.8892% -0.4886% +1.9897%] (p = 0.70 > 0.05)
                        No change in performance detected.

varint/mixed/decode     time:   [1.2819 us 1.2915 us 1.3041 us]
                        change: [-20.716% -14.960% -10.392%] (p = 0.00 < 0.05)
                        Performance has improved.

varint/mixed/encoded_len
                        time:   [203.70 ns 204.81 ns 206.03 ns]
                        change: [-8.2241% -4.1701% -0.9167%] (p = 0.02 < 0.05)
                        Change within noise threshold.

For reference the "before" decode measurements:
varint/small/decode     time:   [357.51 ns 360.22 ns 364.29 ns]
varint/medium/decode    time:   [811.81 ns 817.69 ns 823.87 ns]
varint/large/decode     time:   [1.0463 us 1.0545 us 1.0654 us]
varint/mixed/decode     time:   [1.4749 us 1.4832 us 1.4923 us]

Taking a page from @quininer (#519), I also tried out buf.get_u8(). Unfortunately, its still quite a bit slower than bytes.len() + bytes.get_unchecked(index) + buf.advance(len). This is likely because of the difference between calling buf.advance(len) 1 time vs. calling buf.advance(1) len times.

Initial commit was wrong and could invoke UB with get_unchecked (forgot I was working with &[u8] and not Bytes, which act like a cursor). Updated the PR description with new performance numbers. Unfortunately it made the perf improvements drop a bit, but hopefully still worth merging.
I thought about writing a unit test to capture my mistake, but the problem with invoking UB is that my test was passing for all the wrong reasons, so it ended up not being very useful.

You can not get rid of the slow decode loop, unfortunately.
bytes::buf::Buf documentation states that:

The underlying storage may or may not be in contiguous memory.

Also, for chunk():

Returns a slice starting at the current position and of length between 0 and Buf::remaining().

So you cannot rely on all bytes of the varint being in the slice returnd by chunk(). They could be spread among multiple chunks, depending on the actual implementation of the trait. This would be a subtle bug, which could or could not come up in the future, depending on what actual Buf implementations are used.
(For this same reason the default implementation of Buf::chunks_vectored seems buggy to me).

@jaskij Thanks for pointing that out. The naming behind chunk() makes more sense to me now too. I am going to go ahead and close this PR since it would not survive the tests added by #559.

I'm a stickler for adhering to specs, so there's that. You're welcome @ajguerrer


The method or operation is not implemented.

I have two table as per below pictures:

after I add rows to the second table (details) I click the "save" for the in memory List. Then I click "Update" to the main form and get error "The method or operation is not implemented."

` public class TestSablonsRepository
{
private static MyRow.RowFields fld { get { return MyRow.Fields; } }
    public SaveResponse Create(IUnitOfWork uow, SaveRequest<MyRow> request)
    {
        request.Entity.Id =  Guid.NewGuid();
        request.Entity.CreatedBy = Authorization.Username;
        request.Entity.CreatedDate = DateTime.Now;
        return new MySaveHandler().Process(uow, request, SaveRequestType.Create);
    }

    public SaveResponse Update(IUnitOfWork uow, SaveRequest<MyRow> request)
    {

        request.Entity.CreatedBy = Authorization.Username;
        request.Entity.CreatedDate = DateTime.Now;
        foreach (Entities.TestSablonRowsRow item in request.Entity.TestList)
        {
            if (item.Id == null) {
                item.Id = Guid.NewGuid();
                item.TestId = request.Entity.Id;
                item.CreatedBy = Authorization.Username;
                item.CreatedDate = DateTime.Now;
            }

        }
        return new MySaveHandler().Process(uow, request, SaveRequestType.Update);
    }`

fail on this line:  return new MySaveHandler().Process(uow, request, SaveRequestType.Update);

Hi,
how are the two Tables related? From the field names this is not clear as there is no field Name in 2nd table which corresponds to a field in 1st table.
with Kind regards,
John

ID from TestSablons este TestID in TestSablonRows  (Foreign Key)
Vio

If you are using MasterDetailRelation set CheckChangesOnUpdate = false


Update google-cloud-pubsub to 1.114.7

Updates com.google.cloud:google-cloud-pubsub from 1.107.0 to 1.114.7.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.google.cloud", artifactId = "google-cloud-pubsub" } ]

labels: library-update, semver-minor

Superseded by #276.


Mesos 0.24.0 protobufs

Fixes #191
Ref mesosphere/mesos-dns#290

What does this mean for compatibility?

@sttts: The previous mesos-0.24.0 tag didn't include the Protobuf updates by mistake. After merging this, I'll re-tag mesos-0.24.0.

lgtm


support factored out definitions

By adding support for a top-level "definitions:" item in
docstrings, we can factor out deep models and use
references. This helps keep nesting manageable.

Now why didn't I think of that for #5 :)
Awesome! Thanks Brian.


[SPARK-49301][SS] Chunk arrow data passed to Python worker

What changes were proposed in this pull request?

Add chunking logic to chunk arrow data into multiple batches if input rows are larger than ARROW_EXECUTION_MAX_RECORDS_PER_BATCH and pass to the Python worker to ensure scalability.
We added a new class TransformWithStateInPandasWriter rather than reusing the existing ApplyInPandasWithStateWriter because ApplyInPandasWithStateWriter needs to handle state fields together with data fields, the logic there is much more complicated than what we need for TransformWithState. Adding a new class would be much simpler. Also, there's not many existing code can be reused, so no point on adding more complexity to the existing ApplyInPandasWithStateWriter.

Why are the changes needed?

If input rows have a giant size of records, our system should be able to handle it in a large scale. Without this change, we will try to send all the rows to the Python worker and may result with an OOM error.
Does this PR introduce any user-facing change?

No
How was this patch tested?

Added unit test.
Was this patch authored or co-authored using generative AI tooling?

No

The logic seems fine but can we reuse some related code path? I believe we have a lot of classes that do the same thing

@HyukjinKwon Yeah I included the reason adding a new class in the PR description
We added a new class TransformWithStateInPandasWriter rather than reusing the existing ApplyInPandasWithStateWriter because ApplyInPandasWithStateWriter needs to handle state fields together with data fields, the logic there is much more complicated than what we need for TransformWithState. Adding a new class would be much simpler. Also, there's not many existing code can be reused, so no point on adding more complexity to the existing ApplyInPandasWithStateWriter.

Do you think if that's valid or is there any other class you think we could reuse?

Merged to master.


how do i find icons for windows apps?

how do i find icons for windows apps downloaded from the windows store?

I believe you have to press Windows key and drag it into the section where you add new programs on the application. It is a big bugged right now iirc and is fixed in #71.


[tuner] Add unified compilation step for models and dispatches

This PR adds a new compile() function for compiling both models and dispatches during tuning. This will eventually replace the old path, which has a separate function for model compilation and dispatch compilation. The new compilation flow is now simpler:

Populate each CandidateTracker with the input and output filepaths. The input filepaths can be overridden by an optional function argument to the compile() function. This argument can be used for model tuning, passing the model filepath as the new input file.
For each candidate, strip the compilation info using iree-opt, and compile to a vmfb with the iree compiler python bindings. Set the candidate's TD spec file (generated during candidate generation), and add any additional iree-compile flags that came from the TuningClient. The extra flags are taken from a new abstract TuningClient function called get_iree_compile_flags.
For all successful compilations, save the vmfbs to the designated output path, and skip any failed compilation. For any failed compilation, a failure dump is saved instead of the vmfb.
Remove duplicate vmfbs, and return the ids of all unique candidates.

This PR is based on https://github.com/nod-ai/shark-ai/pull/606. Please only review the last commit.


Problem with testing. Unable to mock "groupBy" function

Bug description
When I test groupBy, autocompletion wouldn't suggest any test related functions as if it is not a mockable method.
How to reproduce

mock Prisma client as below import { PrismaClient } from '@prisma/client';
 import { beforeEach } from 'vitest';
 import { mockDeep, mockReset } from 'vitest-mock-extended';

 beforeEach(() => {
   mockReset(prisma);
 });

 const prisma = mockDeep<PrismaClient>();
 export default prisma;

attempt to mock result of groupBy with mocked prismaimport prismaMock from '../../prisma/__mocks__/client';

prismaMock.mISSION.groupBy. // testing related functions should be available

Expected behavior
"groupBy" should also be available for mocking results.
Prisma information

// Add your schema.prisma

import { PrismaClient } from '@prisma/client';

const prisma = new PrismaClient();

prisma.$use(async (params, next) => {
  const before = Date.now();

  const result = await next(params);

  const after = Date.now();

  console.log(
    `Query ${params.model}.${params.action} took ${after - before}ms`,
  );

  return result;
});

export default prisma;

Environment & setup

OS: macOS
Database:  MySQL
Node.js version: 16.18.1

Prisma Version
4.16.1

Hey @dlwndks9436, thanks for the report. I have a few questions:

Is groupBy the only methods with which this does not work?
Is this just a type-level issue, or is mocking also broken at runtime?
Has this ever worked on previous/old Prisma Client versions?

Hi,

Yes, other method works well.

I think it is a type-level issue. If I ignore the error and run testing, it will successfully mock the method. The type error is stated as below.
Property 'mockResolvedValue' does not exist on type '{} & (<T extends CHALLENGE_RECORDGroupByArgs<DefaultArgs>, HasSelectOrTake extends Or<"skip" extends Keys<T> ? 1 : 0, "take" extends Keys<T> ? 1 : 0>, OrderByArg extends 1 extends HasSelectOrTake ? { orderBy: Enumerable<CHALLENGE_RECORDOrderByWithAggregationInput> | undefined; } : { orderBy?: Enumerable<CHALLENGE_RECORDOrderByWithAggregationInput> | undefined; }, OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T["orderBy"]>>>, ByFields extends _TupleToUnion<T["by"]>, ByValid extends Has<ByFields, OrderFields>, HavingFields extends GetHavingFields<T["having"]>, HavingValid extends Has<ByFields, HavingFields>, ByEmpty extends T["by"] extends never[] ? 1 : 0, InputErrors extends ByEmpty extends 1 ? "Error: \"by\" must not be empty." : HavingValid extends 0 ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [Error, "Field ", P, " in \"having\" needs to be provided in \"by\""]; }[HavingFields] : "take" extends Keys<T> ? "orderBy" extends Keys<T> ? ByValid extends 1 ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`; }[OrderFields] : "Error: If you provide \"take\", you also need to provide \"orderBy\"" : "skip" extends Keys<T> ? "orderBy" extends Keys<T> ? ByValid extends 1 ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`; }[OrderFields] : "Error: If you provide \"skip\", you also need to provide \"orderBy\"" : ByValid extends 1 ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`; }[OrderFields]>(args: { [key in keyof T]: key extends keyof CHALLENGE_RECORDGroupByArgs<DefaultArgs> ? T[key] : never; } & OrderByArg & InputErrors) => {} extends InputErrors ? GetCHALLENGE_RECORDGroupByPayload<T> : PrismaPromise<InputErrors>)'.ts(2339)

This is my first time writing test code, so I can't tell about that. Sorry.

I'm experiencing this exact same issue, it seems like a TypeScript issue since the mock works fine if I ignore ts on the mock line.
    // @ts-expect-error
    prismaMock.collections.groupBy.mockResolvedValue(collectionIdArray);


Is it possible to include linux-header in Orbstack

Is your feature request related to a problem? Please describe.
I was frustrated that I was unable to develop loadable kernel module in Orbstack linux machine, due to rootfs did not include linux-header in /lib/modules path.
Describe the solution you'd like
Add an option that can include linux header into /lib/modules
Describe alternatives you've considered
Maybe pack linux-header into a tar file or a package is also a good idea.

Kernel headers are already available as a compressed tarball at /sys/kernel/headers.tar.xz.

I cannot find the needed files in kheader.tar.xz tarball. I also try to build needed file from source, but the modified  linux kernel source code is in version 6.3.9 and current kernel version is 6.4.7. I don't know what to do next.
Is there any guide or recommend document that can help me?


refactor: clean envoygateway validate methods

What type of PR is this?

What this PR does / why we need it:
Which issue(s) this PR fixes:

Prepare for #3159, this part is very likely to get conflicts.

/retest


$sails.get not called when returned as resolve for anguilar-ui-router

If I try to use $sails in a resolve like $http is used in the ui-router docs:
.state('base.main.register', {
    url: '/register',
    templateUrl: 'modules/site/register.html',
    resolve: {
        campuses: function($sails) {
            return $sails.get('/resource').
                then(function (res) {
                    console.log(res);
                });
        }
    }
}

1)It never gets called and 2) the page never finishes loading.  If I, however, simply move the code out of the resolve and into a controller, it works great.
.state('base.main.register', {
    url: '/register',
    templateUrl: 'modules/site/register.html',
    controller: function ($sails) {
         $sails.get('/resource').
              then(function (res) {
                  console.log(res);
              });
    }
}

Just looking at this again with fresh eyes... you need to return something in your .then(function(){...}) so it can be passed to the next step/'link' in the chain.  With what you have, resolve will be getting undefined.
Here is a stupid quick example of this chaining http://jsfiddle.net/TheSharpieOne/8rmuqj8q/
In the console your can see what value gets passed to each of the .then()s  The first one gets the value that was passed, but because it doesn't return it (return val), the next function gets undefined/nothing.
In your example, return res at the end of the function or just get rid of the .then().

Closing this issue as it is not active.  Try the latest release and if you are still experiencing this issue, please re-open it.


Allow conversation-independent search (#62)

Conversation-independent search is available under ${base.url}/rocket/${client.name}/search
It accepts a text query parameter for full-text search, but also allows passing in arbitrary SolrRequestParams.
connected to #62

When setting the rows parameter, the numFounds behave cumbersome. Actually the numFounds is always lower than or equals the row parameter. It seems like this is not the num founds but the cardinality of documents returned

@tkurz: true, there was a bug with the responses, but in the implementation für #39. Here, everything should be fine.

After installing 0.6.0 do we have to trigger an indexing process to get the search work.
When executing a search like: http://localhost:8080/rocket/team/search?q=*:*
I only get 3 results (Smarti has stored > 100 conversations for the client team).
Note the first result is null

No triggering is required for the global search to work. Please note that only completed conversations are considered in search.
The null-result must not happen, we'll have a look at this.


Feature/google analytics interface

#67

Coverage decreased (-7.6%) to 87.111% when pulling 962c5ba11c3a5d6ebf9e878d6cadd3549d9034b6 on feature/google-analytics-interface into 200b578a6ffd4756e771dc516201e34d529cde99 on develop.

Coverage decreased (-7.3%) to 87.342% when pulling 0d59b97003ddeb9ff47045521428f310b19429ec on feature/google-analytics-interface into 200b578a6ffd4756e771dc516201e34d529cde99 on develop.

Coverage decreased (-2.5%) to 92.198% when pulling 59b9e77ed3dfebbd78be3668a83d758c9a6fda3a on feature/google-analytics-interface into 200b578a6ffd4756e771dc516201e34d529cde99 on develop.

Coverage decreased (-2.4%) to 92.313% when pulling 09862d3e99675e9ae92f725cbb5879537fe75187 on feature/google-analytics-interface into 200b578a6ffd4756e771dc516201e34d529cde99 on develop.


Add an option to make it compatible with "goyacc"

Added a little modification so that it can parse the "union" of golang

Hi! Thank you for the PR!
We could add a new feature to support Golang as the embedded language. However, this PR is not enough since it only handles the union parsing part and not the syntax highlight part.
That is, if we want to add a new embedded language, we need to add it in full; which means we need to handle also the syntax highlighting inside the %{ %} block and all { } action blocks.
At this moment, the declaration of an embedded language is "hard coded" in the package.json file
https://github.com/babyraging/yash/blob/0379b1b910d0aa68f1f2fd4754333b5b59f28a12/package.json#L80-L86
If you can find an elegant way to dynamicly change the syntax highlight behavior for the embedded language that would be great!

Thank you for your reply:
Let me try !

I have recently been using this plugin with goyacc and would love this feature. If it only supported the union that would be a large improvement independent of the other concerns.

Found this PR and it appears to make this false-positive error message to go away:

Reason is: Go is type-last and C is type-first. So, IMO, even without Go syntax highlighting support it's a definitive improvement, and that's the reason for my "ping" here.

+1 to at least fixing the union parsing; it doesn't complain about My Go code in production blocks; indeed, they seem to be quite nicely syntax highlighted.


function names can't contain hyphens

lib .test-function
Error: Invalid function name: test-function (test-function.js)
All path segments must be alphanumeric (or -, _) and start with a letter

This seems to be an issue with faaslang instead: https://github.com/faaslang/faaslang/blob/70bf181083473f1baaa97c18df40f3eda3db7ef2/lib/parser/function_parser.js#L50


What's the current status of using Vuforia with the MR Toolkit?

I got confused by all the different version acknowledgements and recommendations (Unity 2017.2, 2017.1.2, MRTP4...). I just want to know which Unity version is capable of running MR Toolkit for Hololens along with Vuforia?

Vuforia works with Unity even before 2017.2. The only difference I understand there is is that starting with Unity version 2017.2, it's included in the Unity installer. Before you had to add it yourself.

Adding to that, I would recommend you using Unity 2017.2 with MRTK.

I'd only recommend using 2017.2 with the latest master or dev branch, but not with the release

My proplem is, why I'm asking, using all that together results in the ARCamera rendering on top of the MixedRealityCamera. The former WorldPositionAnchor field is gone so you can't reference the MR Cam with the AR Cam. Trying to merge both cameras behaviours doesn't work, because the Vuforia Behaviour freezes the camera in place.
How do you set this up, did I miss  setup guide?

@Alexees Did you read through the new Vuforia page?  https://library.vuforia.com/articles/Training/getting-started-with-vuforia-in-unity-2017-2-beta.html

@shllybkwrm I did, but it's Vuforia only. I'm talking about Vuforia used with the Mixed Reality Toolkit and there's no reference to it on the page

@Alexees There's a section on digital eyewear and on the Hololens page linked, there's a new sample project and configuration instructions.  You're right that they don't specifically mention the toolkit but they do have instructions for HoloLens and other headsets.

@shllybkwrm that's right, but I wouldn't have asked here if it wasn't specifically for the toolkit.

Is there any updates on compatibility with Vuforia and MRTK? I'm building with Unity 2017.3.1p1 and the Hololens samples here https://developer.vuforia.com/downloads/beta.
However, it's the same issue as Alexees mentioned above on December 1:
"using all that together results in the ARCamera rendering on top of the MixedRealityCamera. The former WorldPositionAnchor field is gone so you can't reference the MR Cam with the AR Cam. Trying to merge both cameras behaviours doesn't work, because the Vuforia Behaviour freezes the camera in place."
Is there any specific setup or workaround for this?

Hello guys, same here...
I can't put together holotoolkit and AR camera. I also tried a manual initialization adding vuforia behaviour and defaulterrorinitializationhandler scripts to the mixedrealitycamera of the toolkit but in play mode it freezes . The only solution i can think of in my specific case is to have a vuforia scene with the ar camera (with the only drawback that i can't use toolkit input) and after a manual deinitialization switch to the holotoolkit scene . This is just an idea , can't make it work for now ahah

I'm getting it to work on 2017.3.0p1 with a HoloLens, the AR camera replaces the HoloLens camera prefab, just make sure to change its tag to "MainCamera" and make sure you still have the InputManager prefab in the scene. Not sure about MR as I don't have access to one of those headsets.

Are you getting any cursor visible or input on objects? I'm certainly not getting any toolkit input when deployed to Hololens. No cursor or anything as the ARCamera seems to override anything from the toolkit.
In the editor, cursor and input on a model semi works with AR camera/webcam in background, albeit flipped.

Yes, I'm able to use my app exactly as before, except now I've got Vuforia for image targets too.
My steps for getting it to work:

Enable Vuforia and import the MRTK, apply scene setting etc.
Right click on the hierarchy > Vuforia > ARCamera.
Delete the HoloLens camera/MixedReality camera from the scene, remember to copy over the GazeControls child, if you want camera control in the editor be sure to copy over the Manual Gaze Control script as well.
Very important: Tag the AR camera as MainCamera, this means the cursor should pick it up.
Window > Vuforia Configuration > Digital Eyewear, select Digital Eyewear from Device Type, and HoloLens from Device Config.
Edit > Project Settings > Player > Vuforia Augmented Reality support, make sure this is ticked.
Build with 10.0.16299 as the SDK.

If these don't work, sorry I've got no idea, I've managed to make 4 or 5 applications using Vuforia since 2013.3.0p1, and I can also get it to work on 2013.3.1p1. I haven't tried using the example apps, there's a chance they may be broken. I'm willing to keep helping though, let me know how it goes.

Thanks for the steps Sam. Will run some samples and get back. Cheers

Sam, I'm trying to follow your steps but getting a bit lost.  Are you able to show a screen cap of your final hierarchy?

That's fantastic and working for me now.  Thanks !

Thank you, Sam!  That worked for me, as well.  :-)

@samharper94 definitely yours. I can claim no credit for this! Personally I tried keeping the MRC but had no luck running that way round, just lots of crashes.

Okay, I'll add the setup steps to include the MRCamera.

Hi @StephenHodgson , @samharper94 . I tried using the methods mentioned in this discussion for using Vuforia with MRTK mixed reality camera. The problem that I am facing is, if I attach Vuforia components to mixed reality camera, whenever my image target is tracked, it is not showing the hologram that should be shown when tracking is found. Though the methods for tracking found, tracking lost are getting triggered.
If I have both the camera's in the scene, the ARCamera and MRTK camera, a memory leak happens. The application memory slow increases and finally a crash occurs. (This leak is happening only in Hololens and not in UnityEditor) Anyhelp on why it is happening would be of great help to me. Thanks in advance.

Hi @krreddy888, you should only have one camera in the scene. Up to you whether you want to use the MR camera with Vuforia components, or the AR camera with GazeControls and the background set to black. Either works for me.
In terms of the tracking getting lost, I'm not sure. Is your camera starting at the origin (0,0,0)? Is your room well lit etc.? Does your image target have a high readability score in the Vuforia target manager?

Thanks for the reply @samharper94 . The problem that I am facing is, if I have only one camera in the scene, and when the image target is detected, there is a huge offset in the hologram, between it's actual position and desired position. It comes too close to the camera and is culled by the camera though the Culling mask is set to 0.01.
If I have two cameras the hologram comes at the exact position. I am stuck with this. I am using Vuforia's default Astronaut image target and my room is well lit. Can you suggest me what's the problem??

A couple of things maybe, is the target printed at exactly the right size? If it's not, the hologram can appear way off its desired position. You can fix this by taking the actual measurements of your printed target and going to the ImageTarget GameObject > Image Target Behaviour > Advanced and type in a width. It's vital the starting position for the camera in world space is 0,0,0 as well.

Yes I resolved it. This was a silly error. So there is a script called Mixed reality camera manager attached to mixed reality camera. It also updates the clipping plane of the camera. I didn't set clipping plane there and it was clipping it. Setting clipping plane there resolves the issue. Thanks @samharper94  for your support.

Philosophical Question:
I was able to use Sam's steps to create a simple working Vuforia app on the Hololens in Unity 2017.3.1. Works great, but now it needs world anchors.
I want to benefit from MRTK, which currently only supports Unity 2017.2.1p2.  Should I downgrade to the older Unity?
My usual bias is always towards using the most recent foundation, but I already couldn't compile some MRTK examples in 2017.3.1....

@StephenHodgson , @samharper94   I followed Sam's instructions, keeping the Vuforia camera and copying over the Gaze Controls.  When I run the app, the sphere appears immediately, and Vuforia works fine, popping up the cube on top of the target.  But both objects shimmer and shake when I move around and being about one meters from them make them really go crazy--but it looks better when I am either closer or further away!
Here is my hierarchy:

When I use a voice command to turn off Vuforia (via a script I modified), the sphere still shakes a lot.
I tried this using both Unity 2017.3.1 and 2017.2.1p2.  In the latter, I also tried using the MRTK camera with the vuforia behavior script added, and got the exact same behavior!
Any ideas?
The next thing I'll try is anchoring the objects before turning off vuforia, like I'm supposed to do, anyway.  But I have a feeling that won't work, because the sphere should already be well-anchored by default.  It's rock steady without MRTK and with Vuforia turned off.

Yes! Dropping an explicit anchor is the thing to do!   I added the "TapToPlace.cs" script to the Sphere and it's rock steady, now, after I tap-place it.

I actually don't know, I'm sorry. But I'm also interested in hearing a solution.

Thanks for the reply @samharper94  and @shllybkwrm . Actually the application I am working at also requires streaming. If I don't disable vuforia at all, I cannot stream the application. Currently with disabling and enabling vuforia, I am able to stream at least the parts of the application where scanning is off, but the problem is application crashes randomly whenever the vuforia instance is enabled. I will try to get a solution from the vuforia forums. Please let me know if you find out any solutions to this particular problem.

@krreddy888 are you using a plug-in or your own code to do that streaming?  Once I get my anchor code working the way I want it to, I'll be trying to mix Vuforia with the Umbra plug-in that streams data.  My guess would be that both the stream and Vuforia want to use a lot of bandwidth, and the crash is happening because of some boundary condition problem around timing.  Just an educated guess.

@JeffreyJacobson, I am not using any plugin for streaming, I am using only the Hololens mixed reality portal to live stream. The problem is whenever vuforia scanning is switched on, live preview of Mixed reality portal wont work. That's why I am switching off vuforia whenever scanning is not needed so that I can atleast live preview some part of the application.
The problem is not related to streaming, it is related to enabling and disabling vuforia behaviour in runtime. Investigating the issue.

Hi all, I managed to fix the crash. It was an internal Vuforia issue and I had to upgrade my Unity and Vuforia to Vuforia SDK 7.0.50. This fixed the crash.

Hi all, has anyone tried to use Vuforia with the MixedRealityCamera prefab?  I've always used the HoloLensCamera prefab, which works, but I recently updated to HLTK 2<IP_ADDRESS>, so I thought I would try the new setup.  In play mode, my webcam light goes on, but I get a background like this and no webcam.

I'm attaching the Vuforia scripts to the camera like this (the same way I do with the HLCamera).

@shllybkwrm I have an identical setup. It's my first time trying to add Vuforia to an existing project, so I have only ever tried it with the MixedRealityCamera. It works successfully for me, but not in Play mode or when debugging - it only works correctly when remotely deployed in "release" mode to my actual Hololens.
And for anyone else who doesn't already know, I spent a full day figuring out that Vuforia apparently requires the "microphone" as well as the "webcam" to be enabled in Capabilities. Without the microphone, Vuforia will start successfully, but the webcam won't recognize any vumarks (or presumably images or objects).

Hi, Also for me, the setup in @shllybkwrm last photo is working ).
Mind that it also successful when you preloaded the mixed reality camera prefab from the previous scene (which is usually the use case when integrating Vuforia in your app), under DoNotDestoy objects :)!.

Hi All, I was wondering if anyone has tried running Holographic Remoting with Vuforia? I can't sem toget it working.

This would be a great question on Stack Overflow.

Hi All, I was wondering if anyone has tried running Holographic Remoting with Vuforia? I can't seem to get it working.
Any advice about getting this to work would be greatly appreciated.
A

Did you solve it?
I also encountered this problem in MRTK 2.4


How does it work?

How does it work exactly? You say it works with QBCore and ESX but how does it work to be compatible to work with all of them?

Yo sorry, only really just seen this.
Basically this resource is for developers to use that allows them to create a resource and not have to worry about different implementation like ESX, QBCore etc.
This resource will check what framework you have and create the necessary methods, so in the end the developer only has to call our export and be done with it. Like a "write once, run everywhere"

so will have to have qb-core or es_extended etc or which will i go with?


[LIVY-565] Fix the bug that sql query row count is less than the actual row count of the table

For example, there is a table with two columns ,which has two hundred rows ,and one of the column's data is all null .When the maxRows of sql query is 200 ,it will only return 100 rows.The cause is that the ColumnBuffer array ,only expands automatically when the inserted data size exceeds 100 , but does not expand if the one of column data is all null.
https://issues.apache.org/jira/browse/LIVY-565
What changes were proposed in this pull request?
(Please fill in changes proposed in this fix)
(Include a link to the associated JIRA and make sure to add a link to this pr on the JIRA as well)
How was this patch tested?
(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)
Please review https://livy.incubator.apache.org/community/ before opening a pull request.

Codecov Report

Merging #149 into master will increase coverage by 0.05%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #149      +/-   ##
============================================
+ Coverage     68.59%   68.65%   +0.05%
  Complexity      904      904
============================================
  Files           100      100
  Lines          5662     5662
  Branches        848      848
============================================
+ Hits           3884     3887       +3
+ Misses         1225     1223       -2
+ Partials        553      552       -1

Impacted Files
Coverage Δ
Complexity Δ

...main/scala/org/apache/livy/server/LivyServer.scala
35.96% <0%> (+0.49%)
11% <0%> (ø)
:arrow_down:

...ain/java/org/apache/livy/rsc/driver/RSCDriver.java
78.81% <0%> (+0.84%)
41% <0%> (ø)
:arrow_down:

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 7d9b453...fd8f03e. Read the comment docs.

Codecov Report

Merging #149 into master will increase coverage by 0.05%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #149      +/-   ##
============================================
+ Coverage     68.59%   68.65%   +0.05%
  Complexity      904      904
============================================
  Files           100      100
  Lines          5662     5662
  Branches        848      848
============================================
+ Hits           3884     3887       +3
+ Misses         1225     1223       -2
+ Partials        553      552       -1

Impacted Files
Coverage Δ
Complexity Δ

...main/scala/org/apache/livy/server/LivyServer.scala
35.96% <0%> (+0.49%)
11% <0%> (ø)
:arrow_down:

...ain/java/org/apache/livy/rsc/driver/RSCDriver.java
78.81% <0%> (+0.84%)
41% <0%> (ø)
:arrow_down:

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 7d9b453...fd8f03e. Read the comment docs.

Hi, if you're not planning to address feedback, I'll close the PR and submit a new one. I think we should fix this before releasing 0.6.

I'm closing this for lack of response. I'll post my own fix.


Duplicated imports warning when running dev server

Version
@nuxt/ui:  v2.8.0
nuxt: : v3.6.5
After an upgrade of nuxtUI at v2.8.0, when running the development server, I get a bunch of warnings:

Have you tried upgrading to the latest Nuxt https://github.com/nuxt/nuxt/releases/tag/v3.7.1?

Yes but I was having worst issues with it.

Could you please provide a reproduction on StackBlitz so I can check?

@benjamincanac Yes, here
To reproduce, just npm run dev the server.
I noticed the warning about node version. I don't have it locally as I'm using node 18, but the warnings are identical.

Seems related to https://github.com/unjs/unimport/issues/273

This has been solved for me after upgrading to latest nuxt (3.7.4) and nuxt/ui (npm:@nuxt/ui-edge@2.8.1-28266619.d46eafb).

Thanks... It worked for me too.

I just reinstalled all my projet with latest Nuxt (3.7.4) and nuxt ui-edge (ui-edge-2.8.1-28266619.d46eafb) and I get this error after running "npm run dev":
 ERROR  Cannot start nuxt:  The requested module 'vite-plugin-inspect' does not provide an export named 'default'

  import Inspect from 'vite-plugin-inspect';
  ^^^^^^^
  SyntaxError: The requested module 'vite-plugin-inspect' does not provide an export named 'default'

@ddahan Based on the thread of the issue, it has been fixed!

@benjamincanac Yep good to know, but I'm still completely blocked because of https://github.com/nuxt/cli/issues/181
(but it's unrelated to this issue).
I guess this can be closed anyway.

Feel free to reopen if you encounter the bug again.


Issue about running docker and forming farmvibes cluster

I am following all the guidelines provided in link https://microsoft.github.io/farmvibes-ai/docfiles/markdown/QUICKSTART.html.
I have all the specifications needed for system as I have window in system so using window subsystem linux ubuntu for the task.

I am stuck with the thing docker not running there.

Once I did the docker run (with sudo) the error raised is
stderr:
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: waiting for init preliminary setup: EOF: unknown.
     ╭───────────────────────────────────────────────────────────────────────────────────────────╮
   │                                                                                │
   │    😿  If the above advice does not help, please let us know:                             │
   │    👉  https://github.com/kubernetes/minikube/issues/new/choose                           │
   │                                                                                │
   │    Please run `minikube logs --file=logs.txt` and attach logs.txt to the GitHub issue.    │
   │                                                                                │
   ╰───────────────────────────────────────────────────────────────────────────────────────────╯

Again I am stuck with docker not runniing for now.

Can you please help me how to do this.
Thanks in advance

Hello @MuhammadHammadBashir, you seem to be running an old version of the code that still uses the minikube backend.
We migrated away from minikube with the January 27th release. I recommend you do a git pull and recreate your cluster.
Please notice that if docker isn't working, FarmVibes.AI will also not work.

Closing this issue for now. @MuhammadHammadBashir, feel free to reopen if the problem persists.


Update to Kibana 4.1.1

Updates to Kibana 4.1.1 ( what's new )
Requires ES 1.6.0 and logstash 1.5.2

Next step - deploy to meta


Adding coveralls badge to README.md.

Coverage remained the same at 78.08% when pulling 749f0adba0f1288b6e654a9a8bbf11147a396be0 on fnothaft:add-coveralls-badge into 9bb3fc8e3221483c9f816a0ce244c9f7a0c9ac83 on bigdatagenomics:master.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/avocado-prb/171/
Test PASSed.


Response text should not be quoted

At the moment bard and chatgpt with "stream": false, and claude (with any value) produce quoted text.

all response is in "quotes"
with special symbols escaped

New line = \n
Quote = \"

Example:
" Here is a little song about \"Fire and Ice\":\n\nSome say the world will end in fire, \nSome say in ice.\nFrom what I've tasted of desire\nI hold with those who favor fire.\nBut if it had to perish twice,\nI think
 I know enough of hate\nTo say that for destruction ice\nIs also great\nAnd would suffice."

My observations:

Text is quoted when you print response.content.
I suppose you should print response.text instead. You even do not need to decode it (.lstrip(b"data: ").decode("utf-8"))
response.iter_lines() is pointless, it does not give us streaming.


Add filters for non-DAC sector vocabs, flow type, aid type, untied status, finance type etc

Is your feature request related to a problem? Please describe.
It would be useful if the QB could allow non technical users to search by many other IATI fields e.g. to find only loans, or only untied projects etc. This means adding in filters for untied status, flow type, aid type, finance type, earmarking category etc. Basically all the options that can be set in the new datastore queries.
It would also be useful for the QB to allow searching by sector vocabs that are not the DAC vocab.
Describe the solution you'd like
Add more filters to the 'additional filters' page

All filters are available in Step 2.
As this request seems to contain more than one request I would ask to have the second part:
It would also be useful for the QB to allow searching by sector vocabs that are not the DAC vocab.
to go to a new issue.


Issue258 remove owltools

OWLTools is out.  With the exception of a handful of classes I just copied into minerva-core.  These can be found in the owltools.* package in minerva-core.  If we get motivated we can do further cruft removal there and more general refactoring.  The goal of this stage was just to get rid of the dependency and get us on track to move forward.
Based on all the junit tests in there and my own playing around running a local server I think we are good to go here.  Its behaving in my hands exactly as before the surgery.

On dev, little damage to be done. Let's take it for a spin.

Heads up to @dustine32 and @dougli1sqrd that the command line interface for running owl/shex validation has changed slightly in this version.  Both are now under one method and shex now depends exclusively on access to a go-lego ontology (just like the OWL validation).  This will break the travis build for go_shapes as it stands (which is pointing to the dev branch here) (and was broken anyway because rdf.go doesn't have the latest tbox).
To run it, here is an example parameter set for invocation from minerva-cli.sh:
--validate-go-cams
--shex
-i ../gocamfolder/
-c ../catalog-v001-for-noctua.xml
-r ../test-shex-owl.txt
-e ../test-shex-owl-explanations.txt
Catalog is not required but is how you can control things if your setup doesn't have 32g of ram to run with the whole thing as it stands.  (redirect to your own version of go-lego).  r is the tab-delimited report, one line per model.  e is a more verbose explanation of failures.  --shex adds on the shex validation, without it, it will just to OWL consistency.  -i can either be a folder of gocams or a blazegraph journal file.
Next week's work is to do 'neo-lite' and GOLR-based gene node typing so that the above (and other things) can run in a reasonable amount of time on lighter hardware.  That should make it possible to use it in the go_shapes travis again as well as in the pipeline.


CDA improvements

Link resolution
Api URL
Image API Helpers (for building URL)
Think about separating models for CDA and CMA
Maybe generalising

+1 link resolution would be great


Adding instructions for updating T2 firmware until update works

Note that the firmware updating instructions won't exist until https://github.com/tessel/t2-firmware/pull/51 is merged.
@rwaldron want to try this out?

@rwaldron it looks like when #176 was merged, your unit tests didn't get run through Grunt.


I can't get nginx logs when set docker log-driver=fluentd

Check CONTRIBUTING guideline first and here is the list to help us investigate the problem.
step1
docker run -d --log-driver fluentd --log-opt fluentd-address=localhost:24224 --log-opt tag="nginx-test" --log-opt fluentd-async-connect  --name nginx-test -p 80:80 nginx

step2
docker run -d -p 24224:24224  -v /data:/fluentd/log fluent/fluentd

step3
docker logs -f nginx-test

And I got the errors from step3:
docker logs -f nginx-test
Error response from daemon: configured logging driver does not support reading

Expected behavior

I get nginx logs when set log-driver=fluentd
Your Environment
os: centos7
kernerl: 3.10.0-957.21.3.el7.x86_64
fluentd: latest
docker version: 19.03.4

If you use a logging driver which sends logs to a file, an external host, a database, or another logging back-end, docker logs may not show useful information. (https://docs.docker.com/config/containers/logging/)

oh, I learn it


Update ref from 2.x -> 2.3 for OpenSearch component

Signed-off-by: Suraj Singh<EMAIL_ADDRESS>Description
Updates the ref to 2.3 branch in Opensearch
Issues Resolved
https://github.com/opensearch-project/OpenSearch/issues/4357
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #2576 (8d7cb12) into main (bfa7f52) will increase coverage by 5.58%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##               main     #2576      +/-   ##
=============================================
+ Coverage     94.41%   100.00%   +5.58%
=============================================
  Files           219         6     -213
  Lines          4462       105    -4357
  Branches         29        19      -10
=============================================
- Hits           4213       105    -4108
+ Misses          243         0     -243
+ Partials          6         0       -6

Impacted Files
Coverage Δ

tests/jenkins/jobs/Hello_Jenkinsfile

src/assemble_workflow/bundle_file_location.py

src/test_workflow/integ_test/distribution_tar.py

...w/perf_test/perf_test_runner_opensearch_plugins.py

src/test_workflow/perf_test/perf_test_runners.py

...est_workflow/bwc_test/bwc_test_suite_opensearch.py

src/manifests/component_manifest.py

src/assemble_workflow/assemble_args.py

...teg_test/integ_test_suite_opensearch_dashboards.py

...est_workflow/bwc_test/bwc_test_start_properties.py

... and 203 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Mic 105 confirmation

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

Project coverage is 76.01%. Comparing base (9a214cb) to head (b692721).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #66      +/-   ##
==========================================
+ Coverage   75.78%   76.01%   +0.22%
==========================================
  Files         100      102       +2
  Lines        1462     1476      +14
  Branches      232      232
==========================================
+ Hits         1108     1122      +14
  Misses        343      343
  Partials       11       11

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


Plugin will fail when there is space in the file path

Pre-commit run failed when there are files with spaces in the path (not java files).
For instance,
if one of the staged file path is: some/directory/file name with path.txt
will show error like
fatal: pathspec 'some/directory/file' did not match any files
and then the commit is stopped.

Fixed by https://github.com/Cosium/maven-git-code-format/commit/a2d355bf06c6f4cd9ca3f78c385b7a6e32e26090


[wip] Update slonik minor version

Testing CI execution time...

Also, as a side note, we often use draft PRs to signal that a PR is a work-in-progress. GitHub doesn't allow a draft PR to be merged. Sometimes a draft PR isn't ready for review at all and is just a way to show what you've been working on. Other times, it might make sense to review a draft PR (or a certain part of it).

Fascinating! Does this conclusively disprove the hypothesis that non-pooling of connections used with .transaction() has a significant perf impact?
Would be great to edit https://github.com/getodk/central-backend/issues/477#issuecomment-1177588960 to include new information as it's acquired.

Ahh, got it.


Kirkstone

This branch builds for kirkstone.

@RDunkley please take note of the mentioned pull request.
I have faced following building errors for packages vsdbg, aspnet-core and dotnet-core:
Observed and fixed errors:
ERROR: aspnet-core-6.0.8-r0 do_package_qa: QA Issue: /usr/share/dotnet/shared/Microsoft.NETCore.App/6.0.8/libcoreclrtraceptprovider.so contained in package aspnet-core requires liblttng-ust.so.0()(64bit), but no providers found in RDEPENDS:aspnet-core? [file-rdeps]
ERROR: aspnet-core-6.0.8-r0 do_package_qa: Fatal QA errors were found, failing task.

ERROR: dotnet-core-6.0.8-r0 do_package_qa: QA Issue: /usr/share/dotnet/shared/Microsoft.NETCore.App/6.0.8/libcoreclrtraceptprovider.so contained in package dotnet-core requires liblttng-ust.so.0()(64bit), but no providers found in RDEPENDS:dotnet-core? [file-rdeps]
ERROR: dotnet-core-6.0.8-r0 do_package_qa: Fatal QA errors were found, failing task.

 absolute symlink: /root/.vs-debugger/vs2019 -> /root/.vs-debugger/vs2022
 Recognition of file /home/test/yocto/build/tmp/work/cortexa53-crypto-linux/vsdbg/17.2.10518.1-r0/package/root/.vs-debugger/vs2019 failed: mode 120777 broken symbolic link to /root/.vs-debugger/vs2022 (Permission denied)

install: cannot stat '/home/test/yocto/build/tmp/work/cortexa53-crypto-seconorth-linux/vsdbg/17.2.10518.1-r0/vsdbg-17.2.10518.1/vsdbg': No such file or directory


How to use a safe on our chain ?

We want to follow the procedure described it here : https://github.com/safe-global/safe-infrastructure
So we started adding our token to safe-deployment repo and request a bump in the NPM package. Done.
But, other libraries / tools still refer to old versions that does not include the newest safe-deployment package.
So, it seems that the whole stack needs to be bumped
is it right ? or do we miss something ?
Thanks !

Yes, you're correct. Unfortunately, that's out of scope for the repository. Creating an issue directly in the safe-infrastructure repo or the corresponding tools' repos is better.


Add tabs to HTML, and run through deno fmt

having it all collapsed on the left makes it hard to read

LGTM


0.1.0 Roadmap

Convert missing items (icons are related to feather1s repository:

[x] Github Pull Request
[x] archive

Try all the icons on iOS/Android devices to find, if there aren't any outline-overlapse problems.

feel free to comment about other missing icons from origin package

Already merged and released.


Improve Dm3 testing setup

This ticket keeps track of all changes we have to make to improve the DM3 testing and staging setup

Add HTTPS to staging
Rename develop to staging
Rename Testing to develop
Add volume to staging to preserve its state
Make DO_SSH_KEY an environmental secret

Estimation:  1D

create subdomains for testing and staging: staging.app.dm3.network or similar. This leads to the deployment workflows being more unified.


How do you use this property?

The description for this field is ambiguous. What siblings is it talking about: folders? shell? I tried creating sync roots with the same provider ID, but it didn't put the other roots in as groups.
When this property is true, it is not clear what to put in the Path property. Enabling this field seems to add a shell folder named after the root path's parent folder. This behavior does not appear to be documented. Can files be synced to this root along with the groups, or are only other sync roots supposed to be shown?

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

ID: 09ce3047-55b5-701a-fc1b-a08ee301e775
Version Independent ID: e763d5bd-49a7-6a38-08c3-43d1654ceeea
Content: StorageProviderSyncRootInfo.ShowSiblingsAsGroup Property (Windows.Storage.Provider) - Windows UWP applications
Content Source: winrt-api-build/xml/Windows.Storage.Provider/StorageProviderSyncRootInfo.xml
Product: uwp
Technology: winrt-reference
GitHub Login: @lastnameholiu
Microsoft Alias: alholiu

Hello. We apologize for the delay in resolving this issue. As we transition to a new feedback system, we are closing all outstanding issues. Any issues that can be addressed will be tracked using a different internal tool, and we regret that we won't be able to provide further updates on this particular matter. We value your input and assure you that all feedback is reviewed. We recommend visiting the Microsoft Q&A site, where your issue may have already been discussed.


add start and end parameters

Which problem is this PR solving?
Resolves 4150
Short description of the changes
allow optional time parameters when querying trace by id

@pavolloffay @yurishkuro  could u help with this PR?

The Proto file changes that include time stamps have been merged separately. This needs to be rebased.

old PR with no follow-up, closing


Error without https://github.com/bakercp/ofxNetworkUtils

Hello,
Project looks great. I've been trying to compile : the video server camera. It needs ofxNetworkUtils.h to be compiled.
I simply downloaded the dependency and it worked.

Ah, just added that one to the readme.
002da5d9a9974d5a7022193e8fc8102a528aff48
Thanks!


Constant struct

Related to #3
To express constants not $x^0$, Const struct is required.

Merged in #8


[Pods] Update fonts again for OSS consumers #trivial

3.1.1 just is a fix for this - https://github.com/artsy/Artsy-OSSUIFonts/issues/11

Awww, needs conflicts resolved.

its submodule bizniz

this danger message is fixed, so can be ignored

👌


Add demo to repo

What this does?

Adds demo to repo so it is easier to develop
Does some simplifications (I believe) in the library code, inverting some ifs, using early returns and such, please take a close look at this commit

What is missing?
Unfortunately, we can't use symlinks with metro-bundler 😢 So it will make it easy to demo, but not super easy to develop (as we can't test the lib without explicity copying it to demo/node_modules.
From what I've seen, there's no standard way of doing this, open for suggestions 🤷♂ .
Hope to help with this contribution
Note
The demo is just a copy of the demo made by @moaazsidat here

Revisiting/rethinking this, I think it might actually be better to keep the demo as a separate repo. Reason being that we should be able to use the demo as a standalone playground that anyone can clone and run without necessarily have to setup symlinking. The demo serves as an isolated app that can be used to test features of this module.
Curious to hear more thoughts on why including the demo in the repo is a step forward.

Closing as stale, please feel free to reopen if still relevant


Make the used lint version  configurable.

Browsing through the plugin code I saw that it always uses the latest version:
jsLint = require("jslint").load("latest")
In some contexts I'm bound to a particular version. Can this be made configurable?

That's an awesome idea!!!
Will look into this asap
—
Sent from Mailbox
On Thu, Feb 5, 2015 at 3:21 PM, Bertjan Broeksema
<EMAIL_ADDRESS>wrote:

Browsing through the plugin code I saw that it always uses the latest version:
jsLint = require("jslint").load("latest")
In some contexts I'm bound to a particular version. Can this be made configurable?
Reply to this email directly or view it on GitHub:
https://github.com/tcarlsen/atom-jslint/issues/23

Cool, looking forward to it!

added in 1.1.0 but change og jslint version needs a reload of Atom to take effect


Correct summary comment on ApiConventionTypeMatchBehavior

Summary of the changes:

Correct summary comment on ApiConventionTypeMatchBehavior

Addresses #bugnumber (in this specific format)

Thanks for the PR @jklawrence


Typescript version？

Can I create a typescript version and PR?

@kmvan  it's welcome!  and please make sure tests work fine.

Sure.

@kmvan use<EMAIL_ADDRESS>which supports ts

Cool. My code is only half written. Thank you.


⚠ Samsung has degraded performance

In 849d1fc, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2160 ms

Resolved: Samsung performance has improved in c18759f.


[2.4] Update json-schema

https://github.com/open-cluster-management/backlog/issues/18101

/cc @fxiang1


:white_check_mark: (adding jest for unit/integration tests)

Adding jest for unit/integration test support.
This is the first step in order to make the API more stable and reliable before starting to add new functionality (https://github.com/actualbudget/actual/discussions/388).
LMK if you want me to change some things around.

Example PR with the new test CI task passing:
https://github.com/MatissJanis/actual-server/pull/1

Rebased against master branch.


[18.06 backport] remove hot-fix, and apply latest upstream patch for  CVE-2019-5736

The previous fix did not yet have the alternative approach for 3.13 kernels
This removes the old patch, and applies the latest upstream path that should also support 3.13 kernels.
git checkout -b 18.06_backport_runc_cve docker/18.06
git revert -m 1 -s -S a592beb5bc4c4092b1b1bac971afed27687340c5
git cherry-pick -s -S -x 0a8e4117e7f715d5fbeef398405813ce8e88558b

cherry-pick was clean; no conflicts

ping @seemethere @kolyshkin PTAL

perhaps we should update with https://github.com/opencontainers/runc/pull/1984 (either in this PR, or as a follow-up)

Updated; added https://github.com/opencontainers/runc/pull/1982 and https://github.com/opencontainers/runc/pull/1984

LGTM


Dask multiprocessing scheduler much slower than implementation with built-in multiprocessing

Hi,
I was playing around with dask and it's delayed() function. Trying to do some simple benchmarks on parallel operations. I came up with a quick and dirty script to load in some XML, modify it and serialise it.
I tested it on a 4 core laptop, and played around with the number of workers (anywhere from 2-4). My implementation in dask was ~1.8x slower than single threaded, and ~4x slower than using the build-in multiprocessing module.
I first assumed that I was somehow using the wrong scheduler, but then I confirmed that it was forking the correct number of system processes. I did notice though that it never did utilise (percentage wise) them as much as using the built-in multiprocessing module.

Attached file is the code in question:
test-xml.txt

Here's what's happening here:
Pool.map splits the input data into batches, which can be more efficient than sending single elements (but not this much more efficient). However, pickle memoizes objects, so it only sends the same object once, and then references it later. This means that you're only serializing the vast_xml data to each worker process once under multiprocessing.
In contrast, dask ends up serializing the data for every argument, since they are all called separately. This is eating up processing time. I'm not seeing the same disparity you are though (not sure why yet). On my mac the dask time is roughly 1.5 slower than multiprocessing, but still roughly 3x faster than single threaded.
Suggestions:

Perhaps just keep using multiprocessing. For simple, extremely parallel tasks like this that works just as well.

I suspect in your real workflow, you'll be loading data from files. In general, it is advised to let dask do the data loading for you. This reduces worker->worker communication, as you're not sending large chunks of data around, and also allows dask to minimize memory usage, as you're not loading everything into memory at once.

Batch your data, so that each task does more work. This could be as simple as defining:

@delayed(pure=False)
def parse_many(data):
    return [parse_xml(i) for i in data]

and then applying to lists of xml blobs.

Alternatively, dask.bag might be sufficient for your needs. It is designed for working with collections of python objects (such as strings), and doing arbitrary transformations on them. A quick mock up might look like:

import dask.bag as db
files = db.from_sequence(list_of_files)
text = files.map(load_file)
blobs = files.map(file_to_multiple_blobs).concat()
results = blobs.map(parse_xml)
results.compute()

Note that if you pass in a large list of blobs to from_sequence, dask ends up hashing your data to create a deterministic key name, which for large strings might be a bit slow.

Use the distributed scheduler locally. This can be easily setup as follows:

from distributed import Client, LocalCluster
cluster = LocalCluster(n_workers=4, threads_per_worker=1)
client = Client(cluster)
# Upon creation, `Client` registers itself as the default scheduler, so
# all dask computations will use it by default. You can also use it
# explicitly, by passing `client.get` everywhere you would the
# multiprocessing scheduler

For many problems the distributed scheduler will perform better than the multiprocessing scheduler, as it's smarter about data-locality. For a simple map like this though it shouldn't make a huge difference.

Playing around with your code, I created 3 other versions:

One that uses dask.delayed, but batches the operations
One that uses dask.bag
One that uses dask.bag, plus a trick to avoid hashing the data

For the ones where it matters, I separated the graph build time and compute time, so you can see the difference. Results are here: https://gist.github.com/jcrist/b785a193d6c099385f08c8001a88dcb5. In summary, the multiprocessing scheduler has more overhead than a process pool, but it also does more. We see roughly 1.3x overhead in the best case.

Closing. Feel free to reopen if needed.

Thanks for the thorough response. When I get some time I will sit down and play around with this.
Cheers.


free-programming-books-langs.md

Added The C++ Programming Language 4th Edition by 𝐁𝐣𝐚𝐫𝐧𝐞 𝐒𝐭𝐫𝐨𝐮𝐬𝐭𝐫𝐮𝐩 textbook for C++ progamming
What does this PR do?
Add resource(s) | Remove resource(s) | Add info | Improve repo
For resources
Description
Why is this valuable (or not)?
How do we know it's really free?
For book lists, is it a book? For course lists, is it a course? etc.
Checklist:

[x] Read our contributing guidelines.
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction).
[x] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

Added The C++ Programming Language 4th Edition by 𝐁𝐣𝐚𝐫𝐧𝐞 𝐒𝐭𝐫𝐨𝐮𝐬𝐭𝐫𝐮𝐩

FEAT : Hacktoberfest

In general, we do not link to file sharing sites, or file hosting sites such as google docs. or dropbox.


pull request for e2e test at 12/30/2016 13:15:13

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.