Added MovingPictures data set

I made the PR to microbiome/mia - closing this now.

Are you sure about this? I think this will end up in a mess, if this is the git strategy you want to pursue.


Intermediate outputs from stages

Where to save the output from previous stages, so that I can apply it in latter stages?

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

ID: 4266f72c-c774-0046-4593-d01eb775d3c3
Version Independent ID: f20827aa-a6c5-96a8-5969-e576ffbc2e38
Content: Release stages, queuing policies, and options - Azure Pipelines
Content Source: docs/pipelines/release/environments.md
Product: devops
GitHub Login: @alexhomer1
Microsoft Alias: ahomer

Thank you for your feedback. I have passed this on to the product team for advice.

There is no out-of-box support for persisting output from a stage and re-using it in another. As an alternative, you can write to them to a persistent store, for example Azure Storage (upload files using Azure File Copy task) and consume it in later stages

Since there is no easy way to pass output from previous stages to latter stages, I would guess there is no easy way to pass output from previous releases to latter releases.
Please help confirm that this is correct. Thanks.

I noticed that there are custom variables to be set.
Is it possible to set the custom variable in one stage, and later on apply it somewhere else? Or even throughout the whole release pipeline?

@RoopeshNair Thank you for clarifying, can you please add this to the documentation here?


Add timestamp to ice payload.

Add timestamp in order to generate average buffer processing time metric.

Please add a link to the related PR in Membrane ICE Plugin


RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn

when i choose  style_config.json and change dataset as offenseval, then i run the demo_attack.py
it raise runtime error. full information as below:
[2022-11-09 20:27:11,309 INFO] stylebkd_poisoner Begin to transform sentence.
100%|██████████| 28/28 [00:59<00:00,  2.12s/it]
E:\anaconda\envs\open_backdoor\lib\site-packages\transformers-4.23.1-py3.8.egg\transformers\optimization.py:306: FutureWarning: This implementation of AdamW is deprecated and will be removed in a future version. Use the PyTorch implementation torch.optim.AdamW instead, or set no_deprecation_warning=True to disable this warning
warnings.warn(
[2022-11-09 20:28:10,776 INFO] trainer ***** Training *****
[2022-11-09 20:28:10,776 INFO] trainer   Num Epochs = 5
[2022-11-09 20:28:10,776 INFO] trainer   Instantaneous batch size per GPU = 32
[2022-11-09 20:28:10,776 INFO] trainer   Gradient Accumulation steps = 1
[2022-11-09 20:28:10,776 INFO] trainer   Total optimization steps = 1865
Iteration:   0%|          | 0/373 [00:00<?, ?it/s]
Traceback (most recent call last):
File "D:\code\backdoor_experients\github\OpenBackdoor\demo_attack.py", line 60, in
main(config)
File "D:\code\backdoor_experients\github\OpenBackdoor\demo_attack.py", line 41, in main
backdoored_model = attacker.attack(victim, poison_dataset)
File "D:\code\backdoor_experients\github\OpenBackdoor\openbackdoor\attackers\attacker.py", line 62, in attack
backdoored_model = self.train(victim, poison_dataset)
File "D:\code\backdoor_experients\github\OpenBackdoor\openbackdoor\attackers\attacker.py", line 92, in train
return self.poison_trainer.train(victim, dataset, self.metrics)
File "D:\code\backdoor_experients\github\OpenBackdoor\openbackdoor\trainers\trainer.py", line 198, in train
epoch_loss, poison_loss, normal_loss = self.train_one_epoch(epoch, epoch_iterator)
File "D:\code\backdoor_experients\github\OpenBackdoor\openbackdoor\trainers\trainer.py", line 156, in train_one_epoch
loss.backward()
File "E:\anaconda\envs\open_backdoor\lib\site-packages\torch_tensor.py", line 396, in backward
torch.autograd.backward(self, gradient, retain_graph, create_graph, inputs=inputs)
File "E:\anaconda\envs\open_backdoor\lib\site-packages\torch\autograd_init_.py", line 173, in backward
Variable._execution_engine.run_backward(  # Calls into the C++ engine to run the backward pass
RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn

Sorry, I cannot reproduce the error, could you please provide more details?
However, I just found that style poisoner would produce some empty strings, which may be attributed to the style transformation model. I am not sure whether your error was caused by this bug. I have fixed it and you can try again :)


Add clusterID to x ps

Please provide a description of this PR:
https://github.com/istio/istio/issues/36290 adds the id to istioctl ps, and this one adds to x ps
To help us figure out who should review this PR, please put an X in all the areas that this PR affects.

[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[x] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[x] User Experience
[ ] Developer Infrastructure

Please check any characteristics that apply to this pull request.

[ ] Does not have any user-facing changes. This may include CLI changes, API changes, behavior changes, performance improvements, etc.

@hanxiaop: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

release-notes_istio
5a3becfcbb197f7c608b9f0d503e8e578f62c740
link
true
/test release-notes_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hanxiaop: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-pilot-istiodremote-tests_istio
13d26d824983277624265bbd266ab222d4fd232e
link
true
/test integ-pilot-istiodremote-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test integ-pilot-istiodremote-tests_istio

@esnible PTAL.

/test all

not stale

@hanxiaop: PR needs rebase.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@hanxiaop: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

unit-tests_istio
11a8b509993070dc5b10432d87979c07d819d814
link
true
/test unit-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hanxiaop: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

unit-tests_istio
11a8b509993070dc5b10432d87979c07d819d814
link
true
/test unit-tests_istio

gencheck_istio
11a8b509993070dc5b10432d87979c07d819d814
link
true
/test gencheck_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hanxiaop: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

gencheck_istio
11a8b509993070dc5b10432d87979c07d819d814
link
true
/test gencheck_istio

unit-tests_istio
557a6a87a944f76d00003ff72c982e3fe1bb9a93
link
true
/test unit-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hanxiaop: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

unit-tests_istio
557a6a87a944f76d00003ff72c982e3fe1bb9a93
link
true
/test unit-tests_istio

integ-pilot-istiodremote_istio
557a6a87a944f76d00003ff72c982e3fe1bb9a93
link
true
/test integ-pilot-istiodremote_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hanxiaop: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-security-multicluster_istio
b95b6d30f9648a7de594852969dd5105d47d6adb
link
true
/test integ-security-multicluster_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test integ-security-multicluster_istio


Add --data parameter to pass environment variables

Thank you for the pull request, @Nadrieril! My apologies for the late merge! I didn't notice your pull request until now.


quic-go library prints a warning about receive buffer size

Thanks @matzf for the changes in 08ad6182351e3fa33f67869a18818f0022cf70f1, they are actually very helpful for implementing the ISL course.
I noticed that when I use the shttp package, the quic-go dependency is complaining about not being able to set the receive buffer size.
This is not critical, as the HTTP operations still work, but I'm trying to avoid irritating users that would see this message.
Steps to reproduce
make example-shttp-client
./bin/example-shttp-client -s 17-ffaa:0:1107,<IP_ADDRESS>

(no server needed to be running there, it's just a dummy address)
Output
2021/10/01 15:30:07 connection doesn't allow setting of receive buffer size. Not a *net.UDPConn?. See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details.

Additional information
The problem seems to be at this call.

Let me know if there is an easy fix that I can help implement. Unfortunately, I haven't managed to squelch the message, as it's output via the default logger from the log package.

Thanks for reporting this @joelwanner; I had noticed this before, but never took the time to see how we can shut this up.

Looks good, thanks for the quick fix!


computational rounds do not match in zero noise

In the repo/file: QuESTJulia/verification_demonstration.jl We do not run any noise, but the computational results are not the same.
Look at the adaptive basis angle updates for the issue.

# Function to implement
function test_single_qubit_computation_is_verified()
    ϕ = rand(0:7)*π/4
    θ = rand(0:7)*π/4
    r = rand([0,1])
    sx = 0 # only one qubit, no correction ⇒ 0
    sz = 0 # only one qubit, no correction ⇒ 0
    δ = (-1)^sx*ϕ + sz*π
    @test ϕ == δ # no correction ⇒ should be equal
    δ = δ + θ + r*π

    q = 0 # qubit index for c (Julia index starts at 1)
    num_qubits=1

    quantum_env=QuEST.createQuESTEnv()
    #ρ = QuEST.createDensityQureg(num_qubits,quantum_env)
    ρ = QuEST.createQureg(num_qubits,quantum_env)

    QuEST.hadamard(ρ,q)
    QuEST.phaseShift(ρ,q,θ)
    QuEST.rotateZ(ρ,q,-δ)
    QuEST.hadamard(ρ,q)
    b = QuEST.measure(ρ, q)
    QuEST.destroyQureg(ρ, quantum_env)
    mod(sum([b,r]),2) # should be s ⊕ b ⊕ r = 0, no s for single qubit
end

# Run 10,000 times
res = [test_single_qubit_computation_is_verified() for i in 1:10_000]

X = [0,1] # verification can be 0 or 1
Y = map(x->count(y->y==x,res),X ) # count outputs

using CairoMakie
barplot(X,Y)

The result should be all 0's -- unless I am wrong?

The attached pdf details a simple experiment to examine two quantum state with and without blinding.
testing_simple_blind_comp.pdf


Add profiler.

Not sure how useful this will be, in any case, here's some example outputs:

They're supposed to show which parts of the code the programs spends the most time on. E.g., with the above outputs, they show that least 25% of running time was spent on calls to builder::alloc_body so we might want to try to further optimise that part of the code.
It's a bit weird that it only seems to show one path through the code though (I don't see any of the other functions that should be making up the other 75% of the running time). Not sure if that's because my code is whack (this is most likely), or due to some limitation of pprof-rs, or because of the input hovm code I used.
Edit: Ah it seems like uploading to GitHub broke the interactivity of the SVGs. Well anyway, they're also supposed to be interactive...

Can it avoid changing the formatting of unrelated files?

I tried looking for such an option, but I couldn't find one. Should I just make a PR removing the bot for now? I'll look for alternatives in the mean time.

I'm not sure if the profiler should be added on this repo though, shouldn't that be a separate project? Is that usual on Rust projects?

Not sure about that either, but I guess I haven't seen a lot of projects that also include profiling harnesses, so maybe not. I guess it doesn't strictly need to be included in this repo, could just be on a repo of its own.

I think the other functions weren't being displayed because they were being inlined. I'll try and figure out a convenient way to prevent that for all functions when profiling so that the profiling outputs are more useful.

Here are the new outputs after my recent pushes:

They're have a bit more detail now, so hopefully they'll be more useful in determining which functions we should be trying to optimise.

I tried looking for such an option, but I couldn't find one. Should I just make a PR removing the bot for now? I'll look for alternatives in the mean time.

@nothingnesses
You can disable the bot/automation without removing the config:
https://docs.github.com/en/actions/managing-workflow-runs/disabling-and-enabling-a-workflow
in this page, I guess:
https://github.com/nothingnesses/LambdaVM-Rust/actions

I think making the functions public and leaving it for another repo makes more sense, but I'm not sure. @quleuber thoughts?


Scrolling within a div with overflow: scroll/auto

It looks like you can use the Scroll API and pass an element to scroll to its position.
Is it possible to scroll to a specified position within a specific element (that has overflow: scroll or overflow: auto) instead of scrolling $document?

Yes, just replace $document with your angular.element wrapped element. See demo.

Got it, had forgotten to angular.element wrap the element. Thanks for your prompt help! And a huge thank you for sharing this directive :) It's so robust and well thought out.


Remove binutils

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

At least for me this change led to unset LD variables in some builds, tracking it over here: https://github.com/conda-forge/binutils-feedstock/issues/76


Add basic functional S3 tests for standalone NSFS using boto3

Besides the tests that were added in test_s3_bucket_operations.py and test_s3_object_operations.py, a few additional important changes were made:

The account_manager s3_client_factory usage in conftest.py has been changed in a way that we can now use the in the class and session scopes as well. This allows saving time on redundant setups for test suites that don't make any changes to NSFS accounts or service settings, like is the case in test_s3_bucket_operations.py and test_s3_object_operations.py

NSFSAccount.create() changes:

More arguments have been added to the method, allowing more configurable account creation. The need for this came up while testing S3 bucket creation using an account with the allow_buckets_creation property set to false. The required adjustments to existing usage of the method have been made.

The use of account.json and the Templating approach has been replaced using json.dumps. The main reason for this is to avoid JSON schema mistakes, which we already made as it was pointed out by Shira in this BZ comment .

Default value generation options have been added for the account_name, secret_key and prefix_key arguments, and the create method now returns a tuple with these values. Since all of the existing usage so far we had to repeatedly call the generate_unique_resource_name and generate_random_hex util functions to generate the values for these arguments from outside the class, usually with the default arguments of these util functions, moving their usage to the create method itself saves the need for repeated calls while allowing the more customizable approach when needed.

The boolean get_metadata argument has been added to S3Client.list_object to allow changing the output from a list of object names a list of dicts with metadata about each object.

More specific error handling has been added to some of the methods of S3Client

Passing logs link after the latest changes: https://url.corp.redhat.com/a479cd6

Passing logs of all the tests after the latest changes: https://privatebin.corp.redhat.com/?1f528c8ab3c5be6a#958hYXGRgTRt732wSJJjmspKP1ZLsrRtCWZL1ooQajx6

Passing logs after the latest change to test_put_and_get_obj: https://privatebin.corp.redhat.com/?cb300b24d69f3434#HgTMmryVa9EXioY2zz5Lf2fzNZnPwX4a15x24y1ZADBJ


Cannot connect to filesystem on Mac

Describe the bug
The Claude Mac client connects to the SQLite db but cannot connect to the file system.
Here is what the json looks like:
{
"mcpServers": {
"sqlite": {
"command": "uvx",
"args": ["mcp-server-sqlite", "--db-path", "/Users/user/tech-stuff/testing-claude-mcp/test.db"]
},
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/user/folder-1"]
}
}
}
I know a similar  issue on Windows has been reported and closed. Does anyone have any issues with this on Mac or any suggestions how to solve this?

#121

Describe the bug The Claude Mac client connects to the SQLite db but cannot connect to the file system.
Here is what the json looks like:
{ "mcpServers": { "sqlite": { "command": "uvx", "args": ["mcp-server-sqlite", "--db-path", "/Users/user/tech-stuff/testing-claude-mcp/test.db"] }, "filesystem": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/user/folder-1"] } } }
I know a similar issue on Windows has been reported and closed. Does anyone have any issues with this on Mac or any suggestions how to solve this?

Is the name of your user really: user?
The bug around windows is, that it somehow doesn't work using: npx to instantly install and use the node-module to contrary installing ist with: "npm i -g @modelcontextprotocol/server-filesystem" and then using it by referncing the index.js file in the location it landed.
I dont know your system, but the prerequisite is having nodejs installed. if you have it installed you could use the same workaround as for windows and try that.

Describe the bug The Claude Mac client connects to the SQLite db but cannot connect to the file system.
Here is what the json looks like:
{ "mcpServers": { "sqlite": { "command": "uvx", "args": ["mcp-server-sqlite", "--db-path", "/Users/user/tech-stuff/testing-claude-mcp/test.db"] }, "filesystem": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/user/folder-1"] } } }
I know a similar issue on Windows has been reported and closed. Does anyone have any issues with this on Mac or any suggestions how to solve this?

Is the name of your user really: user?
The bug around windows is, that it somehow doesn't work using: npx to instantly install and use the node-module to contrary installing ist with: "npm i -g @modelcontextprotocol/server-filesystem" and then using it by referncing the index.js file in the location it landed.
I dont know your system, but the prerequisite is having nodejs installed. if you have it installed you could use the same workaround as for windows and try that.

yes, npx was indeed the problem. the updated paths I added in response to the #121 work fine.

I am having the same issue as well, using both the filesystem and github MCP sever, this is the conversation i had with the lastest claude-sonnet-3.5:

Hi could you have a look at what folders i have under ~/Projects

I apologize, but I don't have direct access to your local file system or ability to see what folders you have under ~/Projects. I can only interact with files and folders through GitHub using the provided API functions, or help you with information you directly share with me.
If you'd like to explore what's in your Projects directory, you'll need to:
Look at it directly on your computer, or
Share the contents with me in our conversation
Is there something specific you're trying to do with your Projects folder that I can help with?

This is the MCP server config I am using
{
    "mcpServers": {
      "filesystem": {
        "command": "npx",
        "args": ["-y", "@modelcontextprotocol/server-filesystem", "~/Projects/"]
      },
      "github": {
        "command": "npx",
        "args": ["-y", "@modelcontextprotocol/server-github"],
        "env": {
          "GITHUB_PERSONAL_ACCESS_TOKEN": "lalalala" (my token)
        }
      }
    }
  }

I can verify that the github server works perfectly fine, i can fetch my private repos.


Compilation on Linux (Fedora)

I have a repeatable issue when compiling on my Linux distribution, its fresh and I install the prerequisites before cloning repo. Followed instructions and I get this.
[ 66%] Building CXX object Source/CMakeFiles/Osiris.dir/dllmain.cpp.o In file included from /home/ian/Documents/Osiris/Source/GlobalContext/GlobalContext.h:14,                  from /home/ian/Documents/Osiris/Source/dllmain.cpp:4: In member function ‘void DeferredCompleteObject<Partial, Complete>::makeComplete(Args&& ...) [with Args = {PeepEventsHook&, const LinuxDynamicLibrary&, const LinuxDynamicLibrary&, const PatternFinder<PatternNotFoundLogger>&, const PatternFinder<PatternNotFoundLogger>&, const PatternFinder<PatternNotFoundLogger>&, const PatternFinder<PatternNotFoundLogger>&, const FileSystemPatterns&}; Partial = PartialGlobalContext; Complete = FullGlobalContext]’,     inlined from ‘void GlobalContext::initializeCompleteContextFromGameThread()’ at /home/ian/Documents/Osiris/Source/GlobalContext/GlobalContext.h:80:45: /home/ian/Documents/Osiris/Source/GlobalContext/DeferredCompleteObject.h:42:9: warning: ‘*(const PeepEventsHook*)((char*)this + 8).PeepEventsHook::peepEventsPointer’ may be used uninitialized [-Wmaybe-uninitialized]    42 |         new (&completeObject) Complete{std::forward<Args>(args)...};       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/ian/Documents/Osiris/Source/GlobalContext/DeferredCompleteObject.h:42:9: warning: ‘*(const PeepEventsHook*)((char*)this + 8).PeepEventsHook::original’ may be used uninitialized [-Wmaybe-uninitialized] [100%] Linking CXX shared library libOsiris.so
This is the error, here is the full console with packages.
ian@fedora:~/Documents/Osiris$ cmake --build build -j $(nproc --all) [ 66%] Building ASM-ATT object Source/CMakeFiles/Osiris.dir/LinuxEndpoints.s.o [ 66%] Building CXX object Source/CMakeFiles/Osiris.dir/dllmain.cpp.o In file included from /home/ian/Documents/Osiris/Source/GlobalContext/GlobalContext.h:14,                  from /home/ian/Documents/Osiris/Source/dllmain.cpp:4: In member function ‘void DeferredCompleteObject<Partial, Complete>::makeComplete(Args&& ...) [with Args = {PeepEventsHook&, const LinuxDynamicLibrary&, const LinuxDynamicLibrary&, const PatternFinder<PatternNotFoundLogger>&, const PatternFinder<PatternNotFoundLogger>&, const PatternFinder<PatternNotFoundLogger>&, const PatternFinder<PatternNotFoundLogger>&, const FileSystemPatterns&}; Partial = PartialGlobalContext; Complete = FullGlobalContext]’,     inlined from ‘void GlobalContext::initializeCompleteContextFromGameThread()’ at /home/ian/Documents/Osiris/Source/GlobalContext/GlobalContext.h:80:45: /home/ian/Documents/Osiris/Source/GlobalContext/DeferredCompleteObject.h:42:9: warning: ‘*(const PeepEventsHook*)((char*)this + 8).PeepEventsHook::peepEventsPointer’ may be used uninitialized [-Wmaybe-uninitialized]    42 |         new (&completeObject) Complete{std::forward<Args>(args)...};       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/ian/Documents/Osiris/Source/GlobalContext/DeferredCompleteObject.h:42:9: warning: ‘*(const PeepEventsHook*)((char*)this + 8).PeepEventsHook::original’ may be used uninitialized [-Wmaybe-uninitialized] [100%] Linking CXX shared library libOsiris.so [100%] Built target Osiris ian@fedora:~/Documents/Osiris$ sudo cmake --build build -j $(nproc --all) [sudo] password for ian:  [100%] Built target Osiris ian@fedora:~/Documents/Osiris$ ls build  CMakeLists.txt  LICENSE  Osiris.sln  README.md  Source  Tests ian@fedora:~/Documents/Osiris
ian@fedora:~/Documents/Osiris$ sudo dnf install cmake Last metadata expiration check: 0:01:00 ago on Fri 17 May 2024 07:39:28 PM EDT. Package cmake-3.28.2-1.fc40.x86_64 is already installed. Dependencies resolved. Nothing to do. Complete! ian@fedora:~/Documents/Osiris$ sudo dnf install g++ Last metadata expiration check: 0:01:12 ago on Fri 17 May 2024 07:39:28 PM EDT. Package gcc-c++-14.1.1-1.fc40.x86_64 is already installed. Dependencies resolved. Nothing to do. Complete!
if any additional information is required let me know, thank you.
I would also like to add that I have another machine, similar hardware running the exact same system (Fedora 40 Workstation), and I can compile and inject completely fine. Fully functional with no issues. Any help is much appreciated.

sorry I am retarted
for anyone else that has this issue I have to run cmake --build build -j $(nproc --all) as root. Injection as normal.


Return early when there are not replication tasks

What changed?

Return early when reading replication tasks if it is clear that no task will be returned. Return empty response immediately.
When generating task IDs, ensure that replication tasks will get generated last. This will mean that we can later quickly compare the last shard task ID (with GetTransferMaxReadLevel) with lastReadTaskID coming from remote cluster to decide if there are any potential replication tasks to fetch.

Why?
GetReplicationTasks is one of the most intensive DB operations. It is called periodically when remote clusters fetch replication messages (for each shard). It is entirely possible that a shard did not encounter any activity since last call. We can check that and skip DB call.

How did you test it?

Unit test
Tested on staging2. It significantly reduces db calls. Although traffic is low on there. On production it may not be that significant.

Potential risks

Release notes

Documentation Changes

Pull Request Test Coverage Report for Build 0182f3e3-3044-44b0-9035-03b44f404a2d

10 of 12 (83.33%)  changed or added relevant lines in 2 files are covered.
68 unchanged lines in 14 files lost coverage.
Overall coverage increased (+0.08%) to 57.81%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

service/history/shard/context.go
5
7
71.43%

Files with Coverage Reduction
New Missed Lines
%

common/task/weightedRoundRobinTaskScheduler.go
1
89.64%

client/history/client.go
2
38.1%

client/history/metricClient.go
2
45.3%

common/task/fifoTaskScheduler.go
2
87.63%

common/persistence/nosql/nosqlplugin/cassandra/workflow.go
3
56.99%

service/history/queue/timer_gate.go
3
95.83%

service/history/task/fetcher.go
3
91.75%

common/types/history.go
4
46.26%

service/frontend/workflowHandler.go
4
59.98%

service/history/handler.go
4
47.17%

Totals

Change from base Build 0182f37c-6af3-4bb7-9d39-3cb19d0b3779:
0.08%

Covered Lines:
84417

Relevant Lines:
146025

💛  - Coveralls


not all graphs working in version 2.3.4-1

Hi,
I recently found an issue where the bigger pictures of the graphs are not working properly.
When I use icingaweb2 version 2.3.2-1 with icinga2 version 2.4.8-1, everything works fine.
However, with version 2.3.4-1 of icingaweb2 the bigger ones are not getting loaded(see attachment).
The request the same URL and also the config of both is quiet the same.
Cheers,
Mike

Hello! I have the same issue
Is there any progress or solution?

Posted this long ago. I think this was also the solution for me.
Closing issue.


New account testing fixtures

Rename test_account to friend_account to clarify that this account should always be
the sharee of resources in tests, not the primary sharer.
Add a logged_in_account fixture to make it easy to skip a test if not logged in, and also
ensure that the den_tester account is logged in as needed.
Add logged_out context manager for situations where we want to test behavior as if logged out.

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

Current dependencies on/for this PR:

main

PR #294

PR #318

PR #319

PR #320   👈

This stack of pull requests is managed by Graphite.


chore: delete cluster domain for emqx dns config

EMQX dns discovery just support FQDN, so close this PR.


Improved timer implementation

The existing timer implementation provides itself well to giving the user a generic Countdown or Periodic object that can be used for regularly completing tasks, but there is limited control provided to the end-user.
For precision-control interfaces, timers may need to have a known tick rate (prescaler) and period (ARR). This can then be used for e.g. timer capture/compare channels and precise control of the timer peripheral.
I would propose that we extend the existing API for timers to allow for a new interface for construction / modification:
Timer::from_tick_rate_and_period(tick_rate: impl Into<Hertz>, period: u32);
Timer::set_tick_rate_and_period(&mut self, tick_rate: impl Into<Hertz>, period: u32);

Additionally, I would also propose we expand timers to include capture/compare channels as well. This way, capture/compare channels can be used to trigger DMA transfers (example available at https://github.com/quartiq/stabilizer/pull/195/files?file-filters[]=.lock&file-filters[]=.rs&file-filters[]=.toml&hide-deleted-files=true#diff-9cc696374e747d2ed0b0eee3bb74ff5ebe97de41fa24fbe30c1c9dc48cb50939)
struct TimerChannels {
    ch1: Channel1,
    // ...
    chN: ChannelN,
}

Timer::channels(&mut self) -> TimerChannels;

CC: @noppej
This was brought up in https://github.com/stm32-rs/stm32h7xx-hal/pull/172

I'm in favor of those changes.
If we're including timer and capture/compare functionality and integrating with DMA, why not merge it with PWM?
PWM already implements all the GPIO stuff we'd need for input capture. Additionally, I've run across situations in the past where I want to use one timer with one channel of input capture and another channel of PWM. The new advanced PWM PR I just pushed already includes ways to explicitly set prescaler and period instead of just frequency.
I could see something like this:
let (c1, c2, c3) = dp.TIM1.timer(...);
let mut c1 = c1.into_pwm();
let mut c2 = c2.into_timer();
That said, if we wanted to do that, the timer implementation would have to work with a free-running timer, grabbing the current count and doing the math to figure out when it should expire.
I'm interested in input capture (and encoder mode) anyways; I was planning to add triggered injected ADC sequences first, but I could work on this (at my very slow rate of not much free time).

Would love to see input capture mode implemented in the HAL. Has any further work been done on a separate branch?


recover 7/8 NFT block rewar with ubuntu

I only find the  way for window, but How to recover your 7/8 NFT block reward with ubuntu

Please refer the command help document: sit wallet recover_pool_nft -h

have the rpc api?

i run  sit wallet recover_pool_nft --contract-hash *** --launcher-hash *** -f<PHONE_NUMBER>
throw the error

Traceback (most recent call last):
  File "chia/cmds/chia.py", line 135, in <module>
  File "chia/cmds/chia.py", line 131, in main
  File "click/core.py", line 829, in __call__
  File "click/core.py", line 782, in main
  File "click/core.py", line 1259, in invoke
  File "click/core.py", line 1259, in invoke
  File "click/core.py", line 1066, in invoke
  File "click/core.py", line 610, in invoke
  File "chia/cmds/wallet.py", line 265, in recover_pool_nft
  File "nest_asyncio.py", line 32, in run
  File "nest_asyncio.py", line 70, in run_until_complete
  File "asyncio/futures.py", line 178, in result
  File "asyncio/tasks.py", line 280, in __step
  File "chia/cmds/wallet.py", line 224, in do_recover_pool_nft
  File "chia/util/byte_types.py", line 11, in hexstr_to_bytes
ValueError: non-hexadecimal number found in fromhex() arg at position 0
[1559218] Failed to execute script chia

i run sit wallet recover_pool_nft --contract-hash *** --launcher-hash *** -f<PHONE_NUMBER>
throw the error

Traceback (most recent call last):
  File "chia/cmds/chia.py", line 135, in <module>
  File "chia/cmds/chia.py", line 131, in main
  File "click/core.py", line 829, in __call__
  File "click/core.py", line 782, in main
  File "click/core.py", line 1259, in invoke
  File "click/core.py", line 1259, in invoke
  File "click/core.py", line 1066, in invoke
  File "click/core.py", line 610, in invoke
  File "chia/cmds/wallet.py", line 265, in recover_pool_nft
  File "nest_asyncio.py", line 32, in run
  File "nest_asyncio.py", line 70, in run_until_complete
  File "asyncio/futures.py", line 178, in result
  File "asyncio/tasks.py", line 280, in __step
  File "chia/cmds/wallet.py", line 224, in do_recover_pool_nft
  File "chia/util/byte_types.py", line 11, in hexstr_to_bytes
ValueError: non-hexadecimal number found in fromhex() arg at position 0
[1559218] Failed to execute script chia

Can you show me your command? It is safe that no matter who execute this command the missing coin will go to your wallet finally.

Have the rpc api to get the total coins that can recovered ?

Have the rpc api to get the total coins that can recovered  and  total coins not recovered?

Yes, you can use "get_coin_records_by_puzzle_hash" api to get the total coins that can recovered.

ok


Create CONTRIBUTING.md

Create a CONTRIBUTING.md file, with the basic and general steps to contribute to project.

Hi. I'd like to help with this

Thanks for help @waleoyediran :rocket:


Forwarded cout during run to a log file in outputs/logs

SCRC-94 Save log outputs as part of model run.
The solution was to create a new class that acts as a wrapper around an ostream and sends the output to a text file as well as the terminal. This has been added to Utilities.h as logging_stream.
Model.cpp now creates a folder logs in the outputs directory and places log files with the name format:
run_nPars-<no. of parameters>_seedMethod-<seeding method>_ExecAt-<time script was executed>.log

If I have only the output directory as an argument for logging_stream then we will lose the information about the seed etc. Are you sure that is ok? @peter-t-fox

@kzscisoft Okay, I didn't notice that. But that leads me to this question: is there a reason why you want that information in the log file name? Isn't that information is already captured in the contents of the log file itself?

@peter-t-fox It was more for quick external reference but if you think that is not an issue then it makes life easier not including it.

@kzscisoft I think it's okay without it.

@peter-t-fox All those changes should now be in there

This should now be merged after https://github.com/ScottishCovidResponse/Covid19_EERAModel/pull/18


With --io cli option, do not write if cabal file is unchanged.

This helps speed up builds so cabal does not need to reprocess the configuration.

This sounds like a duplicate of #57, which was fixed by #58 and released in version <IP_ADDRESS>. Which version are you using?

<IP_ADDRESS> I'll have to investigate further then thanks.

You are correct thanks.


decentralized escrow

Project Details
How would you describe your project?
A decentralized escrow to store and secure coins without the need of a 3rd party to hold the coins
Users can use this to safely exchange different things, like goods, freelance services... etc
What problem does this project solve?
People need to exchange goods and services, but they can't always trust each other, thus the need for a decentralized escrow
Who is the target market?
Every TNBC user who needs to exchange a service where trust is needed
How will this project benefit the network and/or the community?
It will make it safer to exchange goods and services
How is this project centered around thenewboston?
In everyway
What is the estimated completion date for this project? (rough estimates are acceptable)
1.5 months
Please include a detailed roadmap for your project below. This must include a list of all milestones where payments will be awarded upon completion of each.
Milestone 1 - Basic MPV with the escrow functionality working for 2/2 parties
What is your Discord username?
picko1990#6172
Additional files and documentation including architectural diagrams, wireframes, research documents, visuals, etc… (optional)
Milestone 1 - Minimum Viable Product (MVP) Details
MVP Description
Escrow functionality will be working for 2/2 parties, where the coins will be escrowed in an account which no one owns the signing key for
Coins will be released from escrow to the destination account, where both parties give the signal to release the coins
Objectives for MVP

#
Objective
How can auditors verify milestone?

1
Decentralized Escrow MPV
It will be hosted online, they can visit the website and test

How long do you estimate for the MVP to complete?
20 Days
Project Wallet
b0b0b98f9bd0b9809ac30706363ccfe7294fc5dc06eec9fb916bb17e8d91536e

Hey @picko1990

Escrow functionality will be working for 2/2 parties, where the coins will be escrowed in an account which no one owns the signing key for

When you say no one owns the signin key, does that mean none of the 2 parties or it means not even by the escrow will own it?
If the answer is "escrow will own the signin key" then how this is decentralized?

Technically it will be owned by both parties at the same time.
The escrow won't own the signing key, nor store any data

Hi, it isn't clear to us how payments could be reversed by a third party (escrow) if this project is decentralised.

@Kycermann Let me know if you're available for a call and I'll explain to you


Exception due to missing $GLOBALS['LANG']

Got this recurring issue on staging, not on our dev environment though. Flushing "All Caches" helps momentarily, but later it's popping up again.

@schloram, sorry ;-/ It's happening in the FE.


Int documentation and unit tests

Improve Int.mo:

Documentation
Unit tests

Possible improvement for Int.mo:

Fix typo in function name neq. https://github.com/dfinity/motoko-base/issues/456

Int8, Int16, Int32, and Int64 documentation and test improvements following in a separate PR.


Scroll resets after it jumps to date

@manishsingh08 that line of code i removed to make the scroll null is needed but only after it jumps to the current date so i added a delay. Before it was becoming null before it reached the correct date and just stayed where it was.


New idea for hatched

I wonder if you can make x,y for circular, not always the middle of the art work.
Also CMYK  layer?
Thanks :)

I wonder if you can make x,y for circular, not always the middle of the art work.

I'm not sure what you mean exactly. Can you expand?

Also CMYK layer?

This can already be achieved if you separate your input file with another software (gimp, imagemagick, etc.).
Then:
vpype hatched --layer 1 [...] input_cyan.jpg hatched --layer 2 [...] input_magenta.jpg hatched --layer 3 [...] input_yellow.jpg hatched --layer 4 [...] input_black.jpg show

I wonder if you can make x,y for circular, not always the middle of the art work.

I think what @joker999 meant was to have the center of the circle in an arbitrary position instead of the center of the image.
Thanks for the tip on the cmyk!

I have implemented the changes for the center of the circles locally. Seems quite straightforward. I will open a PR with this.

Implemented in https://github.com/plottertools/hatched/pull/8


Polyglot piranha - usage of "@" character in the replacement query

Hello people,
I wonder if its possible to use a "@" character in the replacement query?
I use the following code:
replace = "\\@SuppresWarnings(\"UnusedPrivateProperty\") @some_var"

Which produces syntactically incorrect code:
\@SuppresWarnings("UnusedPrivateProperty")
If I don't escape the @ character - Piranha hangs.
I would be appreciated for your help.
Thanks.

Do you have the entire rule? I suspect you're just not getting the infinite loop because of the syntax error

Hey just small update:
in the folder demo/find_replace_custom_cleanup there is an example which I guess related to my issue:
there is the rule add_import_statement in the folder java/configurations
which does exactly what I want:
name = "add_import_statement"
query = "(package_declaration (_)@package_name) @package_declaration"
replace_node = "package_declaration"
replace = "@package_declaration\nimport java.util.Collections;\n"

it appends java.util.Collections import after a package declaration. I adjusted this example for Kotlin:
[[rules]]
name = "add_import_statement"
query = "(package_header (_)@package_name) @package_declaration"
replace_node = "package_declaration"
replace = "@package_declaration\nimport java.util.Collections;\n"
groups = ["Cleanup Rule"]

And it appears to have the same problem - it goes to the infinite loop when running this example. This is the full example:
from polyglot_piranha import execute_piranha, PiranhaArguments, Rule, RuleGraph, OutgoingEdges

# Toy code snippet
code = """
package com.test

class Sample(private val test: Int) {
}
"""
r1 = Rule(
    name="add_import_statement",
    query="(package_header (_)@package_name) @package_declaration",
    replace_node="package_declaration",
    replace="@package_declaration\nimport java.util.Collections;\n",
)

# Create Piranha arguments
piranha_arguments = PiranhaArguments(
    code_snippet=code,
    language="kt",
    rule_graph=RuleGraph(rules=[r1], edges=[],)
)

piranha_summary = execute_piranha(piranha_arguments)
print(piranha_summary[0].content)

I think the solution here is to add an enclosing node filter, or you can use tree sitter syntax for node absence to make sure the rule isn’t triggered twice
Negated Fields
You can also constrain a pattern so that it only matches nodes that lack a certain field. To do this, add a field name prefixed by a ! within the parent pattern. For example, this pattern would match a class declaration with no type parameters:

(class_declaration
  name: (identifier) @class_name
  !type_parameters)

Or you can otherwise make sure the modifiers do not include a surpress warning with a regex predicate

Nice idea! I will try to add a regex predicate to not match fields with the @SuppressWarning annotation, thanks!


[$500] Chat - Loading animation not shown when open 1:1 Conversation with uncached attachments

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Found when executing PR: https://github.com/Expensify/App/pull/13036
Version Number: v1.4.9-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal team
Slack conversation: @
Action Performed:
Precondition: user should be signed in

Open the app
Send several type attachments from the other account on main device
Disable internet connection
Open the 1:1 Conversation (attachments should be uncached)

Expected Result:
The attachment previews should be empty with infinite loading indicator because the attachment were uncached and user is offline.
Actual Result:
The attachments should appear in an infinite loading state, indicating they cannot be fetched without an internet connection
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
https://github.com/Expensify/App/assets/115492554/3fee916d-60f1-4717-849f-b78fd185a866

View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01d5ec534790c61159
Upwork Job ID:<PHONE_NUMBER>213059584
Last Price Increase: 2023-12-14

Proposal
Please re-state the problem that we are trying to solve in this issue
The attachments appear as empty containers when offline because they cannot be fetched without an internet connection.
What is the root cause of that problem?
https://github.com/Expensify/App/blob/04457f93ce7407e3a5ab66b395a5e85f5aefa0cd/src/components/AnchorForAttachmentsOnly/BaseAnchorForAttachmentsOnly.js#L43
When the variable isDownloading is set, we don't have any logic that accounts for when there's no internet connection.
isDownloading is passed to shouldShowLoadingSpinnerIcon which determines whether or not to show the loading spinner for an attachment.
What changes do you think we should make in order to solve the problem?
My solution is add an extra check to the IsDownloading using NetworkStore.isOffline in order to show the loading spinner on attachments while we're offline, instead of an empty container for uncached attachments.

Cannot reproduce the issue following the given steps.

Waiting for confirmation of reproduction.

Friendly bump @izarutskaya, is this still reproducible?

Testing @tienifr's proposal

I think we should HOLD this for https://github.com/Expensify/App/issues/13826, looks similar and the expected result is to show an error message. lets hold this and we'll match it.

Still discussing

@getusha I don't think it's the same. On https://github.com/Expensify/App/issues/13826, we expect to show the error when clicking on the image, but this one we just want to show the loading on the thumbnail/preview. Pls correct me if I misunderstand sth. Thanks

I wondered if we want to show an error message for the thumbnail too.

@Expensify/design
When a user is offline & the image fails to load, should we display an infinite loading on the image thumbnail, or should we show an error message instead? https://github.com/Expensify/App/issues/32699#issuecomment-1874327880

My 2c: We should show loading indicator for as long as we're trying to load, but at some point we should have a timeout and show error if we can't fetch data/something went wrong. Keen on designers thoughts here.

That makes sense to me. I don't think we show loading errors for offline though, do we? Like we'd just make sure to show the Offline indicator at the bottom of the screen and like Jon mentioned, stop using a pulsing animation.

☝ That makes sense to me. But do we ever stop trying to load? I feel like this has come up before (maybe for preview thumbnails?) and I remember noting back then that Slack just let's the loader spin forever/until it can actually load it.
I think in the thumbnail preview situation we ended up implementing a fallback icon like this (if I am remembering correctly 😅):

Dang yeah... great point! I guess we don't ever really stop trying, so an infinite skeleton would make sense? Plus the fallback images like you mention.

@shawnborton @dannymcclain this is what it currently looks like.

Show the fallback image
Show the infinite loading indicator
Do nothing, since we might end up implementing lazy loading for images in future?

Hmm okay, I know I am waffling a bit here but... it seems reasonable that we would show the loading spinner on the image thumbnails the same way we would if we actually did have online connectivity, right? Then if a certain about of time goes by and we simply can't load the image, I wonder if we then show the fall back image?
I guess it would also be helpful to know, how do we know when to show the fallback image for the receipt thumbnail?

@shawnborton what do you think about this:
display a fallback image when the image initially fails to load due to an offline status. Once connectivity is restored, show a loading indicator. When offline, we cannot expect the image to load if it is not cached so showing the fallback image makes sense.
the current logic is to set isLoading to false onLoadEnd

Sorry, before I answer, can you explain to me exactly how we decide to display a fallback image for a receipt?

@dannymcclain trying to figure how the thumbnail shows, https://github.com/Expensify/App/issues/32699#issuecomment-1881085107 disabled connection, still not getting it. appreciate any inputs! :)

I think the way to get that to show is to upload a receipt image (with a connection) and then while looking at some other chat, disable your connection, and then go back to the chat with that preview. Other than that, I honestly don't know how to make it appear. (And I will note that I just went through those steps and couldn't seem to get it to show—I just saw a blank space instead of any receipt image or "offline thumbnail".)

Honestly I'm not too sure either. Perhaps ask in Slack for more visibility?

thanks! Started a discussion: https://expensify.slack.com/archives/C01GTK53T8Q/p1706193000670739

@tienifr @getusha I believe this should be purely External, is that right? Or is there something you need from me?

@tienifr @getusha I believe this should be purely External, is that right?

@yuwenmemon yes this should be External, it passed 4 weeks while we were discussing possible outcomes.

PR just merged melvin

@tienifr the PR didn't pass QA, I pinged you multiple times.

Payment summary:

Contributor: $500 @tienifr
Reviewer: $500 @getusha

Contributor: @tienifr due $500 via Upwork
Contributor+: @getusha due $500 via Upwork.
Can you both please accept the job and comment here once you have?
https://www.upwork.com/jobs/~018596a1cbe0c4659c

$500 approved for @getusha

@tienifr you won't be paid via NewDot, correct?

@tienifr you won't be paid via NewDot, correct?

Correct, they were assigned forever ago

yuwenmemon assigned tienifr on Jan 29

You already received the NewDot payment from Jason, right? We'll cancel it out with another issue/job, if so.

Yes

@getusha let's use this $250 one to start, then we'll find another $250 issue with the hire date after your eligibility date, 2024-05-25

This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989

Assigned myself as the owner and bumping to weekly pending when payment due on the below

https://github.com/Expensify/App/issues/45067#issuecomment-2285079694

@mallenexpensify could you end the UW contract? ty!

Done, contract ended @getusha

@mallenexpensify the contract ended but strangely i didn't receive the payment

All set @getusha , sorry about that

Updated the payment post above too.


Clarify that subject references a separate DAG

This is resolving concerns raised in https://github.com/opencontainers/distribution-spec/pull/502 and discussed on today's meeting.

@mikebrow if this isn't enough to resolve your concerns, can you submit a follow up? 🙇❤

@tianon will do.. LGTM


[TwilightPrincessHD] FancyFX causing cobwebs to disappear

Spider webs are not visible with FancyFX enabled.
Screenshot showing where it should be visible, with FancyFX disabled.

Save attached, just go north in the Faron Woods until cave entrance.
00050000.zip

Should be OK with the latest commits, please update gfx pack and close if fixed.
I managed to eff up a copy paste between private an public while experimenting with format conversion. It may be a good idea to check for updates on TPHD the next few days.
On a side note, great report, both screenshot and save state.


Question: is it possible to save space for a view for a specific line?

Suppose I have a dynamic layout/recyclerView, meaning it gets its views programmatically.
On the right side of the first line, I wish to put a view that will take space no matter what, and the views on the left will take space as usual, without overlapping it.
Think of it as a newspaper example: the view on the right is an image, while the rest is text paragraphs.
Is such a thing possible using this library?

If I understand your question correctly, do you expect a layout similar to CSS float?
If so, it's not supported by flexbox.

Didn't know what it is, but searching on Google, yes. That's what I was thinking about.
Can you please consider adding it?
The purpose of the library is to wrap views when not possible anymore to put them, so this can be another rule to add.

Well that's the purpose of what this is:

"available space" is a rule that can be extended. If there is no available space due to something else that takes it...

float is a completely different specification from flexbox. So adding that rule to this library doesn't make sense.
I'd consider clipping a TextView if I'd do that.

Sorry but HTML and CSS are things that I've used ages ago.
By "clipping a TextView" you mean you consider adding this to the library?

No, sorry I'm not adding the float feature to this library.

But do you understand the needs for such a thing?

Maybe you could add a way to put a view on specific place in the layout/RecyclerView, and let all the rest of the views not overlap it?


⚠ Bofrost.at has degraded performance

In f367708, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1721 ms

Resolved: Bofrost.at performance has improved in 3fafa80.


Update README for Finicity Facade

I added a section to the start guide detailing which additional
parameters need to be specified to target the Finicity Facade API
instead of the Intuit CAD API.

@ckuhn - thanks for update README.


Incompatible license in dependency

Hi, I'm getting an incompatible license error on my Open Source validation. This is caused by Newtonsoft.Json.Schema -nuget using AGPL-3.0-only -license. You cannot distribute your nuget with MIT because of this.
I'm trying to clean up my licenses situation, (I'm using fossa.com for this), and I'll either have to stop using your library, or you need to update it to be compliant with MIT

Thanks for your contribution!
I've made some adjustments and added some missing tests (to test that "legacy schema upgrade" which you asked about).
I've bumped versions and have published versions 1.1.1 of the libraries. Please let me know if now it's passing fossa validation.

@Drizin license scan is fine now, and thank you for polishing off my PR 😃


NamedQuery but return *Row instead of *Rows

NamedQuery looks like: func (db *DB) NamedQuery(query string, arg interface{}) (*Rows, error)
The named bindvars are very convenient to work with, but there has been a number of times I have wanted the functionality of NamedQuery, but have it return *Row  instead of *Rows.
I think the addition of a 'NamedQueryRow' which looks like:
func (db *DB) NamedQueryRow(query string, arg interface{}) (*Row, error) could be useful.
Any thoughts on this? I am relatively new to using this library so curious to see what others think.
Thanks!

Hi !
I'm also looking for this feature.
Did you find a solution ?
Thanks!

Hey @gnuletik, sorry for replying so late. But I did not find a solution to this. I just ended up closing the issue because I didn't get any feedback on it. Are you still looking for this feature?

@loganphillips792 Thanks for the reply!
Yes, still looking for this feature :)
That could be a nice improvement I think!

Any chance this feature will be reconsidered? It has been requested for 10 years, and I still would like to see it implemented.

2014: #102
2016: #250
2016: #256
2021: #766 (this issue)
2024: I would like this feature as well.


feat(design): create article component

PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows our guidelines: https://github.com/graycoreio/daffodil/blob/master/CONTRIBUTING.md#commit
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?
There is no component to provide styles to common element selectors used in content pages that should be formatted as articles.
Fixes: #436
What is the new behavior?
Add the DaffArticleComponent to provide styling to common article-type elements.
Does this PR introduce a breaking change?
[ ] Yes
[x] No

Other information

@xelaint I don't fully understand what lead and meta are supposed to be used for. Can you document these classes?

@damienwebdev Updated documentation about lead and meta.

Minor linting problems, but LGTM!

@damienwebdev fixed the linting error


Pipeline effort in this repo (code cov, linters, minimum testing coverage)

[] Add testing coverage report via CodeCov
[] Adds minimum testing coverage in order for a pipeline being accepted (increment gradually)
[] Introduce linter checks => (pylint or flake8 suggested).
[] Workflows wait for Review to run => And if linter checks fail, you have to go a second time on review?
Do workflow expires on GitHub?
NO really, just if you change the workflow file, or workflow files contains vulnerability.
Instead, you let first all green lights by automation (which happens first that a reviewer come here...), and then, you just give the ok;
Otherwise, the dev, can go back to fix his/her PR.

The tests should be run for any new PR.
While, the deployment of the package, when it hits master.
Why are we are running the tests JUST


2D assignment does not reshape correctly

Describe the problem

Seems #318 is broken again.
Source code / logs

import modin.pandas as pd
import numpy as np
df = pd.DataFrame({'a': [1,2], 'b':[3,4]})
df.loc[df['a'] > 1, 'b'] = np.log(df['b'])
print(df)

raises:
Traceback (most recent call last):
  File "c:\foo\modin\pandas\indexing.py", line 407, in _broadcast_item
    return np.broadcast_to(item, to_shape)
  File "<__array_function__ internals>", line 6, in broadcast_to
  File "C:\miniconda3\envs\foo\lib\site-packages\numpy\lib\stride_tricks.py", line 182, in broadcast_to
    return _broadcast_to(array, shape, subok=subok, readonly=True)
  File "C:\miniconda3\envs\foo\lib\site-packages\numpy\lib\stride_tricks.py", line 127, in _broadcast_to
    op_flags=['readonly'], itershape=shape, order='C')
ValueError: operands could not be broadcast together with remapped shapes [original->remapped]: (2,) and requested shape (1,1)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "c:\foo\modin\pandas\indexing.py", line 609, in __setitem__
    row_lookup, col_lookup, row_scaler, col_scaler
  File "c:\foo\modin\pandas\indexing.py", line 360, in __setitem__
    item = self._broadcast_item(row_lookup, col_lookup, item, to_shape)
  File "c:\foo\modin\pandas\indexing.py", line 412, in _broadcast_item
    "{to_shape}".format(from_shape=from_shape, to_shape=to_shape)
ValueError: could not broadcast input array from shape (2,) into shape (1, 1)

Expected output (as Pandas show it):
   a         b
0  1  3.000000
1  2  1.386294

It happens because we're missing modin Series in this isinstance check:
https://github.com/modin-project/modin/blob/1a8cd0a3765df4cd9f76480e9862f522818333b2/modin/pandas/indexing.py#L387-L392
I've changed this check to the following on top of the #2536 and the reproducer above started to work similar to pandas:
if isinstance(item, (pandas.Series, pandas.DataFrame, Series, DataFrame)):
    ...


Enhanced catalog/profile/guidance management

Issue description / feature objectives
Objective - allow an organisation to devolve ownership for the catalog, profile, guidance and SSP to different individuals or groups
This would be done via separate repositories for catalog, profile, guidance, and SSP (or other implementation documentation), storing the content at each level as markdown and using trestle to transform that into markdown into OSCAL json, to pass to the next level in the chain as a pull request to update the content.
The flow of content is as follows:

All controls in the catalog flow to the profile as oscal, where a subset of controls is selected and parameters are assigned, to create a profile. The profile then flows to consumers as Oscar, such as guidance and documentation. When guidance (how to meet a control) is updated, the prose is sent to the documentation (how a control is met) as an issue that the guidance for control or group of controls has been updated, and therefore the documentation for those controls must be reviewed to ensure validity.
For example, a catalog owner updates a control in the catalog:

catalog owner edits markdown of catalog, creates pull request to catalog with proposed changes.
catalog approver reviews and approves the changes to the catalog
trestle CI detects merged changes to markdown, updates OSCAL json catalog with changes to markdown and commits back to the catalog repo.
trestle CI creates a pull request(s) on configured consumers of the catalog (i.e. the profiles repo) requesting the owner of the profiles updates the catalog in the profiles repo.

I think the following functionality is required to enable this:
[ ] - Editable parameters defined in a control in the profile markdown for that control, which are populated into the json profile. For example a list of parameters in AC-1, e.g. ac-1_prm_1, ac-1_prm_2, ac-1_prm_3 in the yaml header for the control, set to the default for that parameter from the catalog, which the profile author can specify, and are then populated into the json profile when profile-assemble is run.
[ ] - Validation that parameters in the profile match the catalog - for example if a control is modified to add an additional parameter, trestle profile validate should populate the profile markdown with the default values from the catalog, and print that new parameters are specified and should be populated by the profile author (which can then be turned into an issue on the profile by the CI/CD). The workflows for create new control in catalog and delete control in catalog will require determination. This is probably part of a wider problem about 'how can we use trestle to validate content and plug in to a CI/CD.
[ ] - The ability to separate guidance from being part of the profile into a separate repo.
Caveats / Assumptions
Completion Criteria

I have opened dependent issue #1004 to provide a mechanism that prevents people from exceeding their allowed scope of editing changes.


Kafka consumer fails to break polling loop when it has to reset the offset, but can't read any new records

If we try to import from a Kafka topic, using CONSUME_ALL_OFFSETS = 'true', that has had messages in it but that were all expired through eg. retention time, we will be stuck in a loop (at least until some new messages appear).
This may sound reasonable (waiting for messages), but in our case we're trying to set up a scheduled import from a pre-production topic, which may or may not get new messages on any given day (or week). We just want the import to bail out after the first poll attempt if there's nothing to be found.
Here's what happens, more or less:

We start with current offset = 0 (start offset), as table in Exasol is empty
We do poll, consumer returns empty records
And meanwhile consumer resets offset to the topic start offset (which is = end offset in this case due to expired records)
Since empty records returned, we compare our current offset with -1 and 0 (start offset) and stay again on 0
And loop back to (2)

Hey @jwarlander,
Thanks for the update! I see how this can be problem when resetting offsets. As discussed I am going to try to setup a test case for offset reset strategy to cover the record expiry.

Great!
The way to fix it, once you've got a failing test, probably looks something like this:
diff --git a/src/main/scala/com/exasol/cloudetl/kafka/consumer/KafkaRecordConsumer.scala b/src/main/scala/com/exasol/cloudetl/kafka/consumer/KafkaRecordConsumer.scala
index ff6cf04..67dedff 100644
--- a/src/main/scala/com/exasol/cloudetl/kafka/consumer/KafkaRecordConsumer.scala
+++ b/src/main/scala/com/exasol/cloudetl/kafka/consumer/KafkaRecordConsumer.scala
@@ -49,7 +49,10 @@ class KafkaRecordConsumer(
         val records = consumer.poll(timeout)
         recordCount = records.count()
         totalRecordCount += recordCount
-        recordOffset = math.max(recordOffset, emitRecords(iterator, records))
+        recordOffset = emitRecords(iterator, records) match {
+          case -1     => getPartitionCurrentOffset()
+          case offset => offset
+        }
         logger.info(
           s"Polled '$recordCount' records, total '$totalRecordCount' records for partition " +
             s"'$partitionId' in node '$nodeId' and vm '$vmId'."
@@ -114,6 +117,13 @@ class KafkaRecordConsumer(
       .isConsumeAllOffsetsEnabled() && recordOffset < partitionEndOffset) ||
       (recordCount >= minRecordsPerRun && totalRecordCount < maxRecordsPerRun)

+  private[this] def getPartitionCurrentOffset(): Long = {
+    val topicPartition = new TopicPartition(topic, partitionId)
+    val currentOffset = consumer.position(topicPartition) - 1
+    logger.info(s"The current record offset for partition '$partitionId' is '$currentOffset'.")
+    currentOffset
+  }
+
   private[this] def getPartitionEndOffset(): Long = {
     val topicPartition = new TopicPartition(topic, partitionId)
     val partitionEndOffsets = consumer.endOffsets(Arrays.asList(topicPartition))

Fixed in #42


Extend wheel ABI support for pypy.

pypy version:
$ pypy
Python 2.7.10 (246c9cf22037b11dc0e8c29ce3f291d3b8c5935a, Mar 10 2016, 18:28:19)
[PyPy 5.0.0 with GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>>

The following command fails:
$ pex --python=pypy psutil
**** Failed to install psutil-4.1.0. stdout:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.10-x86_64-2.7
creating build/lib.macosx-10.10-x86_64-2.7/psutil
copying psutil/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/psutil
copying psutil/_common.py -> build/lib.macosx-10.10-x86_64-2.7/psutil
copying psutil/_compat.py -> build/lib.macosx-10.10-x86_64-2.7/psutil
copying psutil/_psbsd.py -> build/lib.macosx-10.10-x86_64-2.7/psutil
copying psutil/_pslinux.py -> build/lib.macosx-10.10-x86_64-2.7/psutil
copying psutil/_psosx.py -> build/lib.macosx-10.10-x86_64-2.7/psutil
copying psutil/_psposix.py -> build/lib.macosx-10.10-x86_64-2.7/psutil
copying psutil/_pssunos.py -> build/lib.macosx-10.10-x86_64-2.7/psutil
copying psutil/_pswindows.py -> build/lib.macosx-10.10-x86_64-2.7/psutil
creating build/lib.macosx-10.10-x86_64-2.7/psutil/tests
copying psutil/tests/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/psutil/tests
copying psutil/tests/runner.py -> build/lib.macosx-10.10-x86_64-2.7/psutil/tests
copying psutil/tests/test_bsd.py -> build/lib.macosx-10.10-x86_64-2.7/psutil/tests
copying psutil/tests/test_linux.py -> build/lib.macosx-10.10-x86_64-2.7/psutil/tests
copying psutil/tests/test_memory_leaks.py -> build/lib.macosx-10.10-x86_64-2.7/psutil/tests
copying psutil/tests/test_misc.py -> build/lib.macosx-10.10-x86_64-2.7/psutil/tests
copying psutil/tests/test_osx.py -> build/lib.macosx-10.10-x86_64-2.7/psutil/tests
copying psutil/tests/test_posix.py -> build/lib.macosx-10.10-x86_64-2.7/psutil/tests
copying psutil/tests/test_process.py -> build/lib.macosx-10.10-x86_64-2.7/psutil/tests
copying psutil/tests/test_sunos.py -> build/lib.macosx-10.10-x86_64-2.7/psutil/tests
copying psutil/tests/test_system.py -> build/lib.macosx-10.10-x86_64-2.7/psutil/tests
copying psutil/tests/test_windows.py -> build/lib.macosx-10.10-x86_64-2.7/psutil/tests
running build_ext
building 'psutil._psutil_osx' extension
creating build/temp.macosx-10.10-x86_64-2.7
creating build/temp.macosx-10.10-x86_64-2.7/psutil
creating build/temp.macosx-10.10-x86_64-2.7/psutil/arch
creating build/temp.macosx-10.10-x86_64-2.7/psutil/arch/osx
cc -arch x86_64 -O2 -fPIC -Wimplicit -DPSUTIL_VERSION=410 -I/usr/local/Cellar/pypy/5.0.0/libexec/include -c psutil/_psutil_osx.c -o build/temp.macosx-10.10-x86_64-2.7/psutil/_psutil_osx.o
cc -arch x86_64 -O2 -fPIC -Wimplicit -DPSUTIL_VERSION=410 -I/usr/local/Cellar/pypy/5.0.0/libexec/include -c psutil/_psutil_common.c -o build/temp.macosx-10.10-x86_64-2.7/psutil/_psutil_common.o
cc -arch x86_64 -O2 -fPIC -Wimplicit -DPSUTIL_VERSION=410 -I/usr/local/Cellar/pypy/5.0.0/libexec/include -c psutil/arch/osx/process_info.c -o build/temp.macosx-10.10-x86_64-2.7/psutil/arch/osx/process_info.o
cc -shared -undefined dynamic_lookup -arch x86_64 build/temp.macosx-10.10-x86_64-2.7/psutil/_psutil_osx.o build/temp.macosx-10.10-x86_64-2.7/psutil/_psutil_common.o build/temp.macosx-10.10-x86_64-2.7/psutil/arch/osx/process_info.o -o build/lib.macosx-10.10-x86_64-2.7/psutil/_psutil_osx.pypy-41.so -framework CoreFoundation -framework IOKit
building 'psutil._psutil_posix' extension
cc -arch x86_64 -O2 -fPIC -Wimplicit -I/usr/local/Cellar/pypy/5.0.0/libexec/include -c psutil/_psutil_posix.c -o build/temp.macosx-10.10-x86_64-2.7/psutil/_psutil_posix.o
cc -shared -undefined dynamic_lookup -arch x86_64 build/temp.macosx-10.10-x86_64-2.7/psutil/_psutil_posix.o -o build/lib.macosx-10.10-x86_64-2.7/psutil/_psutil_posix.pypy-41.so
installing to build/bdist.macosx-10.10-x86_64/wheel
running install
running install_lib
creating build/bdist.macosx-10.10-x86_64
creating build/bdist.macosx-10.10-x86_64/wheel
creating build/bdist.macosx-10.10-x86_64/wheel/psutil
copying build/lib.macosx-10.10-x86_64-2.7/psutil/__init__.py -> build/bdist.macosx-10.10-x86_64/wheel/psutil
copying build/lib.macosx-10.10-x86_64-2.7/psutil/_common.py -> build/bdist.macosx-10.10-x86_64/wheel/psutil
copying build/lib.macosx-10.10-x86_64-2.7/psutil/_compat.py -> build/bdist.macosx-10.10-x86_64/wheel/psutil
copying build/lib.macosx-10.10-x86_64-2.7/psutil/_psbsd.py -> build/bdist.macosx-10.10-x86_64/wheel/psutil
copying build/lib.macosx-10.10-x86_64-2.7/psutil/_pslinux.py -> build/bdist.macosx-10.10-x86_64/wheel/psutil
copying build/lib.macosx-10.10-x86_64-2.7/psutil/_psosx.py -> build/bdist.macosx-10.10-x86_64/wheel/psutil
copying build/lib.macosx-10.10-x86_64-2.7/psutil/_psposix.py -> build/bdist.macosx-10.10-x86_64/wheel/psutil
copying build/lib.macosx-10.10-x86_64-2.7/psutil/_pssunos.py -> build/bdist.macosx-10.10-x86_64/wheel/psutil
copying build/lib.macosx-10.10-x86_64-2.7/psutil/_psutil_osx.pypy-41.so -> build/bdist.macosx-10.10-x86_64/wheel/psutil
copying build/lib.macosx-10.10-x86_64-2.7/psutil/_psutil_posix.pypy-41.so -> build/bdist.macosx-10.10-x86_64/wheel/psutil
copying build/lib.macosx-10.10-x86_64-2.7/psutil/_pswindows.py -> build/bdist.macosx-10.10-x86_64/wheel/psutil
creating build/bdist.macosx-10.10-x86_64/wheel/psutil/tests
copying build/lib.macosx-10.10-x86_64-2.7/psutil/tests/__init__.py -> build/bdist.macosx-10.10-x86_64/wheel/psutil/tests
copying build/lib.macosx-10.10-x86_64-2.7/psutil/tests/runner.py -> build/bdist.macosx-10.10-x86_64/wheel/psutil/tests
copying build/lib.macosx-10.10-x86_64-2.7/psutil/tests/test_bsd.py -> build/bdist.macosx-10.10-x86_64/wheel/psutil/tests
copying build/lib.macosx-10.10-x86_64-2.7/psutil/tests/test_linux.py -> build/bdist.macosx-10.10-x86_64/wheel/psutil/tests
copying build/lib.macosx-10.10-x86_64-2.7/psutil/tests/test_memory_leaks.py -> build/bdist.macosx-10.10-x86_64/wheel/psutil/tests
copying build/lib.macosx-10.10-x86_64-2.7/psutil/tests/test_misc.py -> build/bdist.macosx-10.10-x86_64/wheel/psutil/tests
copying build/lib.macosx-10.10-x86_64-2.7/psutil/tests/test_osx.py -> build/bdist.macosx-10.10-x86_64/wheel/psutil/tests
copying build/lib.macosx-10.10-x86_64-2.7/psutil/tests/test_posix.py -> build/bdist.macosx-10.10-x86_64/wheel/psutil/tests
copying build/lib.macosx-10.10-x86_64-2.7/psutil/tests/test_process.py -> build/bdist.macosx-10.10-x86_64/wheel/psutil/tests
copying build/lib.macosx-10.10-x86_64-2.7/psutil/tests/test_sunos.py -> build/bdist.macosx-10.10-x86_64/wheel/psutil/tests
copying build/lib.macosx-10.10-x86_64-2.7/psutil/tests/test_system.py -> build/bdist.macosx-10.10-x86_64/wheel/psutil/tests
copying build/lib.macosx-10.10-x86_64-2.7/psutil/tests/test_windows.py -> build/bdist.macosx-10.10-x86_64/wheel/psutil/tests
running install_egg_info
running egg_info
writing psutil.egg-info/PKG-INFO
writing dependency_links to psutil.egg-info/dependency_links.txt
writing top-level names to psutil.egg-info/top_level.txt
reading manifest file 'psutil.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'psutil.egg-info/SOURCES.txt'
Copying psutil.egg-info to build/bdist.macosx-10.10-x86_64/wheel/psutil-4.1.0-py2.7.egg-info
running install_scripts

**** Failed to install psutil-4.1.0. stderr:
warning: no previously-included files matching '*' found under directory 'docs/_build'
Traceback (most recent call last):
  File "<stdin>", line 7, in <module>
  File "setup.py", line 284, in <module>
    main()
  File "setup.py", line 281, in main
    setup(**setup_args)
  File "/usr/local/Cellar/pypy/5.0.0/libexec/lib-python/2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/local/Cellar/pypy/5.0.0/libexec/lib-python/2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/local/Cellar/pypy/5.0.0/libexec/lib-python/2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "build/bdist.macosx-10.10-x86_64/egg/wheel/bdist_wheel.py", line 213, in run
    archive_basename = self.get_archive_basename()
  File "build/bdist.macosx-10.10-x86_64/egg/wheel/bdist_wheel.py", line 161, in get_archive_basename
    impl_tag, abi_tag, plat_tag = self.get_tag()
  File "build/bdist.macosx-10.10-x86_64/egg/wheel/bdist_wheel.py", line 155, in get_tag
    assert tag == supported_tags[0]
AssertionError

Traceback (most recent call last):
  File ".bootstrap/_pex/pex.py", line 315, in execute
  File ".bootstrap/_pex/pex.py", line 250, in _wrap_coverage
  File ".bootstrap/_pex/pex.py", line 282, in _wrap_profiling
  File ".bootstrap/_pex/pex.py", line 358, in _execute
  File ".bootstrap/_pex/pex.py", line 416, in execute_entry
  File ".bootstrap/_pex/pex.py", line 434, in execute_pkg_resources
  File "/Users/shimin/.pex/install/pex-1.0.3-py2.py3-none-any.whl.9b479c2967fcb9866cb8b019740e265c9bc00da2/pex-1.0.3-py2.py3-none-any.whl/pex/bin/pex.py", line 509, in main
    pex_builder = build_pex(reqs, options, resolver_options_builder)
  File "/Users/shimin/.pex/install/pex-1.0.3-py2.py3-none-any.whl.9b479c2967fcb9866cb8b019740e265c9bc00da2/pex-1.0.3-py2.py3-none-any.whl/pex/bin/pex.py", line 471, in build_pex
    resolveds = resolver.resolve(resolvables)
  File "/Users/shimin/.pex/install/pex-1.0.3-py2.py3-none-any.whl.9b479c2967fcb9866cb8b019740e265c9bc00da2/pex-1.0.3-py2.py3-none-any.whl/pex/resolver.py", line 191, in resolve
    dist = self.build(package, resolvable.options)
  File "/Users/shimin/.pex/install/pex-1.0.3-py2.py3-none-any.whl.9b479c2967fcb9866cb8b019740e265c9bc00da2/pex-1.0.3-py2.py3-none-any.whl/pex/resolver.py", line 248, in build
    dist = super(CachingResolver, self).build(package, options)
  File "/Users/shimin/.pex/install/pex-1.0.3-py2.py3-none-any.whl.9b479c2967fcb9866cb8b019740e265c9bc00da2/pex-1.0.3-py2.py3-none-any.whl/pex/resolver.py", line 160, in build
    raise Untranslateable('Package %s is not translateable by %s' % (package, translator))
pex.resolver.Untranslateable: Package SourcePackage(u'file:///Users/shimin/.pex/build/psutil-4.1.0.tar.gz') is not translateable by ChainedTranslator(WheelTranslator, EggTranslator, SourceTranslator)

pex + pypy + native deps has never been proven to be super reliable, but it seems to me that the error message you've pasted is actually coming from the translation phase where pex is mostly removed from the picture - e.g. the equivalent of:
wget $PSUTIL_URL
tar zxvf $PSUTIL_TARBALL
cd $PSUTIL_DIR
pypy setup.py bdist_wheel

if you manually run the setup.py in this fashion, do you hit the same AssertionError?
does it change if opt for eggs only (--no-wheel)?
for pex + pypy users, we also suggest using --not-zip-safe and --always-write-cache due to https://bitbucket.org/pypy/pypy/issues/1686/issue-with-our-zipimporter-module.

I will try these commands when I get in front of a computer, but just fyi,
pip_pypy wheel psutil works.
On Mar 16, 2016 3:45 PM, "Kris Wilson"<EMAIL_ADDRESS>wrote:

pex + pypy + native deps has never been proven to be super reliable, but
it seems to me that the error message you've pasted is actually coming from
the translation phase where pex is mostly removed from the picture - e.g.
the equivalent of:
wget $PSUTIL_URL
tar zxvf $PSUTIL_TARBALL
cd $PSUTIL_DIR
pypy setup.py bdist_wheel
if you manually run the setup.py in this fashion, do you hit the same
AssertionError?
does it change if opt for eggs only (--no-wheel)?
for pex + pypy users, we also suggest using --not-zip-safe and
--always-write-cache due to
https://bitbucket.org/pypy/pypy/issues/1686/issue-with-our-zipimporter-module
.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/pantsbuild/pex/issues/222#issuecomment-197590646

Running setup.py manually works.
pex --python=pypy --no-wheel psutil also works
It also doesn't work if I build the wheel first and then tell pex to use the local wheel.
shimin /tmp$ pip_pypy wheel -w deps psutil
Collecting psutil
  Using cached psutil-4.1.0.tar.gz
Building wheels for collected packages: psutil
  Running setup.py bdist_wheel for psutil ... done
  Stored in directory: /private/tmp/deps
Successfully built psutil

shimin /tmp$ ls deps
psutil-4.1.0-pp250-pypy_41-macosx_10_10_x86_64.whl

shimin /tmp$ pex --python pypy --disable-cache --no-pypi -f ./deps psutil -v -v -v
pex: crawling link i=0 link=Link('file:///private/tmp/deps') follow_links=False
Could not satisfy all requirements for psutil:
    psutil

It seems it's related to #213. Looking at this code: https://github.com/pantsbuild/pex/blob/0b1e5fdd1b6f33bd7ab1828c986c40e384dbb9e9/pex/pep425.py#L128, only 'none' is an accepted abi tag for pypy, but here we have pypy_41.

ah, makes sense. I think this is probably just a quick pypy-specific extension of #213 (which only covered cpython initially).

+1

this should now be vastly improved as of pex 1.4.0 (which adds impl/version/abi targeting), but I don't have a concrete repro to prove that.
you may try kicking the tires with the new version, with tag targeting usage described here: https://github.com/pantsbuild/pex/issues/281#issuecomment-389352166
I'm going to optimistically mark this as closed given much of the underlying resolver logic has changed, but feel free to reopen with a fresh repro if you're still having issues.

This still doesn't quite work, seems like something weird with the platform detection:
$ pex --version
pex 1.4.0
$ pex -vvv -c twistd -o twisted.pex Twisted
…
pex: Validated Twisted-18.4.0.tar.bz2 (sha256=a4cc164a781859c74de47f17f0e85f4bce8a3321a9d0892c015c8f80c4158ad9)
pex: Target package WheelPackage('file:///tmp/tmpgwzUzE/Twisted-18.4.0-pp260-pypy_41-linux_x86_64.whl') is not compatible with [('pp260', 'pp260pypy_41', 'manylinux1_x86_64'), ('pp260', 'pp260pypy_41', 'linux_x86_64'), ('pp260', 'none', 'manylinux1_x86_64'), ('pp260', 'none', 'linux_x86_64'), ('py2', 'none', 'manylinux1_x86_64'), ('py2', 'none', 'linux_x86_64'), ('pp260', 'none', 'any'), ('pp2', 'none', 'any'), ('py260', 'none', 'any'), ('py2', 'none', 'any')]
Traceback (most recent call last):
  File "/home/mithrandi/deployment/virtualenvs/tempenv-054e1965378d4/bin/pex", line 11, in <module>
    sys.exit(main())
  File "/home/mithrandi/deployment/virtualenvs/tempenv-054e1965378d4/site-packages/pex/bin/pex.py", line 694, in main
    pex_builder = build_pex(reqs, options, resolver_options_builder)
  File "/home/mithrandi/deployment/virtualenvs/tempenv-054e1965378d4/site-packages/pex/bin/pex.py", line 624, in build_pex
    for dist in resolveds:
  File "/home/mithrandi/deployment/virtualenvs/tempenv-054e1965378d4/site-packages/pex/resolver.py", line 525, in resolve_multi
    use_manylinux=use_manylinux):
  File "/home/mithrandi/deployment/virtualenvs/tempenv-054e1965378d4/site-packages/pex/resolver.py", line 451, in resolve
    return resolver.resolve(resolvables_from_iterable(requirements, builder))
  File "/home/mithrandi/deployment/virtualenvs/tempenv-054e1965378d4/site-packages/pex/resolver.py", line 248, in resolve
    dist = self.build(package, resolvable.options)
  File "/home/mithrandi/deployment/virtualenvs/tempenv-054e1965378d4/site-packages/pex/resolver.py", line 321, in build
    dist = super(CachingResolver, self).build(package, options)
  File "/home/mithrandi/deployment/virtualenvs/tempenv-054e1965378d4/site-packages/pex/resolver.py", line 206, in build
    raise Untranslateable('Package %s is not translateable by %s' % (package, translator))
Untranslateable: Package SourcePackage(u'file:///home/mithrandi/.pex/build/Twisted-18.4.0.tar.bz2') is not translateable by ChainedTranslator(WheelTranslator, EggTranslator, SourceTranslator)

Seems like pp260 is landing up in ('pp260', 'pp260pypy_41', 'linux_x86_64') twice for some reason.

Aha, the problem is this logic here:
https://github.com/pantsbuild/pex/blob/2208cb0418a4d37831fd688188b0a991efba4f63/pex/platforms.py#L50-L55
Since pypy_41 does not begin with pp260, it gets prefixed with it, which is wrong for PyPy ABIs. If I pass --platform linux_x86_64 explicitly then it works!
$ ./twisted.pex --version
twistd (the Twisted daemon) 18.4.0
Copyright (c) 2001-2018 Twisted Matrix Laboratories.
See LICENSE for details.

nice. I've cut https://github.com/pantsbuild/pex/pull/483 to repair the abi prefixing for pypy.


Cycle Existence in Linked List

Problem: Given a head/root node of a linked list, determine if it contains a cycle. Return true if cycle exists otherwise false.

The predefined Linked List structure is as follows:
class Node{
public:
    int val;
    Node* next;

    Node(int s){
        val = s;
        next = NULL;
    }
};

Follow and Read the Contributing Guidelines.

Only the assigned person is allowed to raise the PR on this Issue.

To get this issue assigned to you comment on this issue, along with your name, branch and year.

Note: Make sure to put the question under the relevant folder structure, and then make another folder having the question name and inside that folder you can write your solution in any preferred language.

Hey @gdscpce please assign me this issue
Name: Varad Jadhav
Branch: CS
year: 4th
I can solve this problem in linear time in C++ in-place!

@VaradJadhav please dont spam your requests in all the issues, this is against the code of conduct.


[ Vanilla JS ] Examples how should be use

The same way you have a section about UI framework, i think should exist a section with vanilla js because  the section astro components > client-side scripts is incomplete or too vague ( https://docs.astro.build/en/core-concepts/astro-components/#client-side-scripts).
In the section about vanilla js should exist clear examples as well as should exist a template for that in the cli and  in astro.new.

Hi @ampmonteiro, thanks for this comment!  I've been writing these Vanilla JS examples for our new tutorial this week, in fact! Once that is in our docs, we can think about where it might make sense to put some examples of things you can build with script tags only, without needing a framework.
I like your idea for a starter template that has some common website features pre-built with vanilla JS, like a theme toggle, navigation show/hide.

hi @sarah11918 ,
i create this issue in sequence of this issue that i create in your astro repo ( https://github.com/withastro/astro/issues/5083),
and because even dont know where you should put you script tags, only in pages or you can put in components? is that best practice? when is bundling into separate file, when is not? And how i config to always bundle into separate file?
I think this are import questions to be answer in the docs, mainly with practical examples.
Beside of examples that you mention, i think should be mention how, p.e, load a json file from public folder without the need to reach to static endpoint ( https://docs.astro.build/en/core-concepts/endpoints/#static-file-endpoints) like i shown in issue i mention ( that also should be in Data Fetching section ( with subtitle vanilla js but also is valid for frameworks since should work the same way).
thanks

Closing this because we now have a page on scripts and event handling! https://docs.astro.build/en/guides/client-side-scripts/ to address the main concern here! :partying_face:
I do still like the idea of "recipes" for creating a theme toggle, nav bar etc. in plain JS. But for now, we do have those in the tutorial.


feat: optimize TS SDK runtime

Reorder steps to not list all entries when configuring modules. Move install dependencies step & corepack init before mounting sources.
Add template after initializing dependencies.
It seems that it really improve the cache hit, putting the TS SDK near Go speed when cache hits.
I updated the sources between the 2 runs and we can see that initialize kept being quick! We need more tests but it looks really promising.

After more small tests on cloud, it looks much faster and I see that the dep install step is cached:

Some run example:

container-echo --string-arg foo: 6.2s (first run)
container-echo --string-arg bar: 4.9s  (no edit, just arg changed)
foo: new function created (14.3s), I see that no dependencies is downloaded, most time is spent to copy files
foo: 12.4s, re executed, no edit, again most step is about coping files

I wonder if I can speedup the process by using WithMountedDirectory instead of WithDirectory but when I try to use that, files are missing so I don't know what I'm missing :/

Keen to have https://github.com/dagger/dagger/pull/8250 merged, and this rebased on top of it, so that:

We get a baseline reading
We are able to see how this improves on that baseline

It seems i'm hitting an issue with some tests, I'm digging to understand what's going on:

https://dagger.cloud/dagger/traces/4004298681fa29da6a7abc811aa9bb65
https://dagger.cloud/dagger/traces/51d6cb0c6498df91a5dc567406942bfc

Ok issue fixed, the sdk dir was overwritten when adding source file because I forget to exclude it.
Tests should pass now


How to start another task after the nodemon server is listening?

I am using grunt task-runner in nodejs application.
I want to run another grunt task only after the server started by nodemon is listening to a port. Please note that i can't run the tasks concurrently (because i don't know in how much time server will start listening), so grunt-concurrent didn't helped.
How could i do that.?
I have the following task config with grunt-nodemon:
nodemon: {
        dev: {
            script: 'server.js',
            options: {
                // options ..
                callback : function(nodemon){
                    nodemon.on('config:update',function(){
                        console.log('reached here .. '); // this get consoled on screen
                        grunt.task.run('mynewtask');
                    });
                },
                // options ...
            }
        },
        exec: {
            options: {
                exec: 'less'
            }
        }
    }
```javascript

But nothing happens after server start listening. mynewtask does not start at all. Not even any error is shown.

+1

Any updates on this? If I put a non-existing task, it fails, but when I put an existing one it doesn't seem to be doing anything.


Framework upload to Amazon's S3 failure

Enhancement Suggestion
[Short description of suggestion]

**Steps which explain the enhancement**

1. run `carthage update --platform ios && rome upload --platform ios`

**Current and suggested behavior**

output：
Copied Alamofire.framework to: /Users/xuemincai/Library/Caches/Rome/Alamofire/iOS/Alamofire.framework-4.4.0.zip
Error uploading Alamofire: Unexpected Error

**Why would the enhancement be useful to most users**

**Rome version: <IP_ADDRESS>
**OS and version: macOS Sierra 10.12.5

Hi, thanks for opening an issue. Does this problem only happen with Alamofire? It seems to be an issue with your S3 bucket. Do you have correct permissions & right credentials? Can you post your Romefile?

All of the framework has a problem.I try to use the aws s3 cp Alamofire.framework.dSYM-4.4.0.zip s3://com.sim.carthage/ is a success.
Romefile
[Cache]
  local = ~/Library/Caches/Rome/
  S3-Bucket = com.sim.carthage

[RepositoryMap]
  Alamofire = Alamofire

Thanks I will look into it as soon as I am home.
Other debug into that might be useful: Do you have .aws/config and .aws/credentials or are you using environment variables? Are you using the [default] profile? On what region is the bucket?
Can you try a different bucket name?
Just a tip: you don't need the entry in the repository map if the framework name follows the organization/framework_name pattern on Github. Alamofire.framwork does follow this pattern since the repo is called Alamofire/Alamofie

@bay2 It's definitely not the . in your bucket name. Can you tell me if you are using credential and config files or environment variables?

@bay2  I have tried with both environment variables and file credentials with a bucket named com.sim2.carthage2 I created on ap-southeast-1 (Singapore)
The bucket policy is the one I pasted above. The ACL for my bucket is Read/Write for Any AWS Authenticated User and I see no problem. If I restrict permissions then the error from Rome is Access denied.
If you have any more that you can share I'll be happy to try to replicate again on my side.

@blender  I'm sorry.I'm a little busy recently didn't see your reply.
My .aws/config and .aws/credentials
 cat .aws/config
[default]
region = ap-northeast-1
output = json

 cat .aws/credentials
[default]
aws_access_key_id = AKIAI5TTW7OKSJIC4DBQ
aws_secret_access_key = C78XMVU+nvYWKqlwcLQn1HLiNTRYIVvE8g2Xfx1n

@bay2 do you mind it I try with those?

Oh, my S3 configuration problem.Thank you for your help.

@blender Now I uploaded successfully,Thanks

@bay2 Great! Can you share your config? Is it any different from what I suggested?

I created a bucket in the ap-southeast-1 (Singapore) is uploaded successfully.
I created a bucket in the ap-northeast-1 (Tokyo) is uploaded failure.
I not idea...


Cuda 10.2

Hi, when will cuda 10.2 will supported by sockeye? Thanks!

Hi @i55code ,
Cuda 10.2 support depends on MXNet. It doesn't seem like they are currently offered: https://mxnet.apache.org/get_started?platform=linux&language=python&processor=gpu&environ=pip&
https://github.com/apache/incubator-mxnet/issues/17058
Closing, as this is not a Sockeye issue.

FYI https://github.com/apache/incubator-mxnet/issues/17058 So there should be support with the next MXNet version.


move to agent v0.0.8

move to agent 0.0.8; provides more unique resource names for those that are the same across multiple servers

@jmazzitelli  can you rebase again so it can be automerged.


Translate to Spanish metainfo for the Endless Key flatpak

Once the metainfo is adapted, provide translations: https://github.com/endlessm/endless-key-flatpak/issues/20

I believe this is a duplicate of #6.

@jprvita I'm reopening as this is not a duplicate, it's a task for me to translate the text and provide translations so #6 can happen. Makes sense?

@jprvita I'm reopening as this is not a duplicate, it's a task for me to translate the text and provide translations so #6 can happen. Makes sense?

Yes, sorry about the confusion.

https://docs.google.com/spreadsheets/d/1yVTilb6AWsyUGVncyoYSjtbOdPAEZA_BarnnTfUDxfg/edit#gid=1177927074

This is for the actual translated text, Ive just prepared the document for Rodrigo to translate

@jofilizola I have reviewed the document already https://docs.google.com/spreadsheets/d/1yVTilb6AWsyUGVncyoYSjtbOdPAEZA_BarnnTfUDxfg/edit#gid=1177927074

Thanks!
Translated screeshots here: https://www.dropbox.com/scl/fo/nxqdtyyvpkatbl0gcgqcq/h?rlkey=l524pdllrbxkkomm89qmw2ujf&dl=0
Translated copy here: https://docs.google.com/spreadsheets/d/1yVTilb6AWsyUGVncyoYSjtbOdPAEZA_BarnnTfUDxfg/edit#gid=1177927074

I created a ticket for applying the translations to the actual listings https://github.com/endlessm/kolibri-explore-plugin/issues/855
Can we close this?

I created a ticket for applying the translations to the actual listings endlessm/kolibri-explore-plugin#855
Can we close this?

Yep. Although I don't think kolibri-explore-plugin is the right target for applying the translations. Metainfo is in this one (endless-key-flatpak).

It's verified passed in the Chrome playstore.


Improve customization. Now icon, title and description are optional

Adjust titleString and descriptionString when return nil for icon, title or description

I'd rather keep icon, title and description mandatory requirements, otherwise this PR needs to handle a new type "TWMessageBarMessageTypeNone" with appropriate documentation, etc.
The library was never intended to support anything less than an icon, title and desc.
Thanks for the PR. Going to pass for now!


ROS2 Ur_Driver include pfads are missing

During installing ros2 UR_Driver for Galactic branch, I get the following error
lifecycle_msgs/msg/state.hpp: No such file or directory | #include "lifecycle_msgs/msg/state.hpp"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
->the package rcl_lifecycle_msgs is properly installed and dependencies in package.xml and Cmakelist are also correct
Does anyone have the same problem?
This may be promoted to an error in a future release of colcon-core.
Starting >>> ur_dashboard_msgs
Starting >>> ur_bringup
Starting >>> ur_description
Starting >>> ur_moveit_config
Finished <<< ur_moveit_config [0.62s]
Finished <<< ur_description [0.68s]
Finished <<< ur_bringup [2.28s]
Finished <<< ur_dashboard_msgs [4.94s]
Starting >>> ur_controllers
Finished <<< ur_controllers [0.75s]
Starting >>> ur_robot_driver
--- stderr: ur_robot_driver
In file included from /root/workspace/ros_ur_driver/src/Universal_Robots_ROS2_Driver/ur_robot_driver/include/ur_robot_driver/hardware_interface.hpp:36,
from /root/workspace/ros_ur_driver/src/Universal_Robots_ROS2_Driver/ur_robot_driver/src/hardware_interface.cpp:36:
/root/workspace/ros_ur_driver/install/hardware_interface/include/hardware_interface/system_interface.hpp:26:10: fatal error: lifecycle_msgs/msg/state.hpp: No such file or directory
26 | #include "lifecycle_msgs/msg/state.hpp"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/ur_robot_driver_plugin.dir/build.make:76: CMakeFiles/ur_robot_driver_plugin.dir/src/hardware_interface.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:164: CMakeFiles/ur_robot_driver_plugin.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:141: all] Error 2
Failed   <<< ur_robot_driver [1.45s, exited with code 2]
Summary: 5 packages finished [7.44s]
1 package failed: ur_robot_driver
1 package had stderr output: ur_robot_driver
1 package not processed

I had this same error when I tried to build the driver on top of ros2 galactic that I built from source. But when I tried building the driver on a docker image based on ros:galactic  the build passed without errors. I guess it is a issue with sourcing maybe? If someone has more insight would be interested to learn what is the issue here.

Hello jonipol:
i solved this problem by doing the following steps
At the first:
I'm reinstall the ros2 galactic and took the installation via Debian.
At the second:
---------->sudo apt install python3-colcon-common-extensions python3-vcstool
---------->export COLCON_WS=~/workspace/ros_ur_driver
---------->mkdir -p $COLCON_WS/src
---------->cd $COLCON_WS
---------->cd src
You should clone this link of the git repository:(over the button "code" copy)
---------->https://github.com/intel/ros2_grasp_library.git   (in your src)
---------->rosdep install --ignore-src --from-paths src -y -r

do not build at the first:
jump to _MoveiT Installation and take the following repository step
-----vcs import src --skip-existing --input src/Universal_Robots_ROS2_Driver/MoveIt_Support.repos.
Then you have to remove the following folder:
---------->rm -rf src/moveit2/
---------->rm -rf src/moveit_msgs/
---------->rm -rf src/geometric_shapes/
and install:
----------> sudo apt-get install ros-galactic-moveit* (in your src) (as descripted on the Movelt2 page)
than:
----------> rosdep update  and rosdep init and sudo apt-get update
and set:
----------> rosdep install --ignore-src --from-paths src -y -r –rosdistro=GALACTIC (if it is not done by ros2 installation )//(just for the case)

then:
----------> colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release
(you should have 37 packesges:)
once the build is successful. Open new terminaln (this is very importante)
jump to ~/workspace/ros_ur_driver$ (and paste). install/setup.bash        //space behind the point
in the same terminal:
----------> ros2 launch ur_bringup ur_control.launch.py ur_type:=ur5e robot_ip:=yyy.yyy.yyy.yyy use_fake_hardware:=true launch_rviz:=true
open an new Terminal: jump to  ~/workspace/ros_ur_driver$ (and paste). install/setup.bash
and put:
----------> ros2 launch ur_bringup ur_moveit.launch.py ur_type:=ur5e robot_ip:="xxx.xxx" use_fake_hardware:=true launch_rviz:=true
i hope, it is helpfull

closing this, since it was more of a workspace setup thing and the correct way to handle this was posted.


fix grandma wolf perk description

As reported by #1268 (but that issue is not fixed yet), fix the description of grandma wolf pet:
New:

Before:

In game: