Included section doesn't contain all records when used with nested tree

This issue is a (choose one):

[x] Problem/bug report.
[ ] Feature request.
[ ] Request for support. Note: Please try to avoid submitting issues for support requests. Use Gitter instead.

Checklist before submitting:

[x] I've searched for an existing issue.
[ ] I've asked my question on Gitter and have not received a satisfactory answer.
[ ] I've included a complete bug report template. This step helps us and allows us to see the bug without trying to reproduce the problem from your description. It helps you because you will frequently detect if it's a problem specific to your project.
[x] The feature I'm asking for is compliant with the JSON:API spec.

Description
Hi. I've a model with nested tree structure (the model has a children has_many relation to itself) named transports in the example below and a parent model locations that has many transports. I'm trying to get a list of locations with transports and all it's descendands in one request.
module Api::V2
  class LocalityResource < JSONAPI::Resource
    immutable
    attributes(*%i(name type extra))
    has_many :transports

    def records_for_transports(options)
      includes = options[:include_directives]
      related = includes ? includes.include_directives[:include_related] : {}
      return [] unless related.has_key?(:children)
      # Load transports with all descendants
      t = Transport.arel_table
      ref = t.alias('ref_t')
      q = t.project(ref[Arel.star])
           .join(ref, Arel::Nodes::OuterJoin)
           .on(ref[:lft].gteq(t[:lft]).and(ref[:rgt].lteq(t[:rgt])))
           .where(t[:locality_id].eq(@model.id))
      r = Transport.find_by_sql(q.to_sql)
      # Make sure that all parent and child relations are loaded from fetched data
      Transport.associate_parents(r).reduce([]) do |children, transport|
        assoc = transport.association(:children)
        if !assoc.loaded?
          assoc.target = []
          assoc.loaded!
        end
        children.push(transport) if transport.locality_id == @model.id
        children
      end
    end
  end

  class TransportResource < JSONAPI::Resource
    immutable
    attributes(*%i(name type extra has_children))
    has_many :children, always_include_linkage_data: true

    def has_children
      return nil unless @model.association(:children).loaded?
      @model.children.size > 0
    end
  end
end

With this code I get a well-formed data section in response with full tree structure (all children realtionships at all levels filled with correct {id, type} items). And I've checked that all associations of descendands has a loaded? == true.
The problem is: in included section I get only records that are directly related to localities and its direct children - but not a records of third and deeper levels.
And the question is: is there any way to add records to included manually as a workaround?
Thanks in advance!

After a lot of digging in sources I've solved this problem by creating a custom Processor for tree resources and overriding get_related method that makes custom logic for tree-like relationships. The code is huge so I don't place it here. I think that this issue can be closed. Thanks!


[8.74.0] Factory sequence not reset for sub factories using has

Laravel Version: 8.74.0
PHP Version: 8.1
Database Driver & Version: MySQL 8.0

Description:
Reading the documentation on sequences and relationships i'd have expected the below code to reset the $sequence->index within the report factory after each user was created, however it persists for all users.
The intended effect should be each user has 90 days of reports from now, however the increment keeps growing meaning in the end the last user reports end 900 days ago (not 90).
Steps To Reproduce:
In my example below it means that the parent counts correct from 1-10 but the child counts from 1-900 rather than to 90 and reset. This seems like a bug to me, or at least behaviour that needs documenting as it’s unexpected
<?php
\App\Models\Recipient::factory(10)
            ->sequence(fn ($sequence) => [
                'player_id' => $playerIds[$sequence->index]
            ])
            ->has(
                \App\Models\Report::factory(90)
                    ->sequence(fn ($sequence) => [
                        'created_at' => now()->subDay($sequence->index)
                    ])
                    ->state(fn (array $attributes, \App\Models\Recipient $recipient) => [
                        'player_id' => $recipient->player_id,
                        'user_id' => $recipient->user_id
                    ])
            )
            ->create([
                'user_id' => 34
            ]);

Hey there,
Can you first please try one of the support channels below? If you can actually identify this as a bug, feel free to open up a new issue with a link to the original one and we'll gladly help you out.

Laracasts Forums
Laravel.io Forums
StackOverflow
Discord
Larachat
IRC

Thanks!

Hey @driesvints,
This has been raised on Slack and Discord, another user has replicated the issue on Discord and it does appear to be a bug. What more do you need from me to flag it as a bug? I'm a bit confused as to what more I can provide other than a working example of the bug
Cheers

Please link to the conversations.

@driesvints https://larachat.slack.com/archives/C03ALD0QD/p1642685764025100?thread_ts=1642496273.006400&cid=C03ALD0QD

Hi @DeanWhitehouse, did you got a chance to find a fix for this? I'm also having the same issue.

Hi @DeanWhitehouse, did you got a chance to find a fix for this? I'm also having the same issue.

Unfortunately not yet, and with it being marked as closed on here I doubt anyone else will be looking into it - send me a direct message if you wish to try collaborate on resolving it.
A quick fix is to create your own loop rather than use a sequence, not ideal though

@DeanWhitehouse you're right, i think this won't be resolved anytime soon or it might not be an issue for them. anyway, I'll let you know if I can make some time for this but I'm currently stuffed on work right now so I'll just create my own loop like you said. thanks!


After unpinning the item quickstart does not show a new screen with instructions for removing items from history.

Created separate ticket for bullet 3 of #199.

@risbov I can't reproduce this. Can you retest this and show me what you're doing that isn't working?


406 Not Acceptable

Please confirm the following:

[ x ] I have read the README entirely
[ x ] I have verified in the issues that my problem hasn't already been resolved

Setup

Please provide the following details, the more info you can provide the
better.

Operating System: Linux
PHP Version: 7.4
web-push-php Version: 6.0.5

Please check that you have installed and enabled these PHP extensions :

[ x ] gmp
[ x ] mbstring
[ x ] curl
[ x ] openssl

Problem

Please explain what behaviour you are seeing.

I'm sending push notification with web-push-php lib for a while now (about 1 year) and I'm starting having some errors on flush. I'm getting 406 Not Acceptable.
The getReason method of MessageSentReport returned by flush call give this :
Client error: POST https://par02p.notify.windows.com/w/?token=xxxxxxxxxx resulted in a 406 Not Acceptable response
This started yesterday (July 18 2021) at 9:00.
All errors occurs on endpoints like "https://xxxx.notify.windows.com/xxxx"
Expected

Please explain what you expected to happen

No error.
Features Used

[ x ] VAPID Support
[ x ] Sending with Payload

Microsoft have fixed it

@raulfdeztdo I have the same issue too, firefox and chrome works fine, but for edge, i get 406 error. Have you found a solution?
When I inspect the header, I see these values
'x-wns-notificationstatus': 'appthrottled',
'x-wns-status': 'appthrottled',

Not sure why there is throttling involved...

https://learn.microsoft.com/en-us/answers/questions/940324/406-not-acceptable-may-be-returned-when-sending-a.html

I have the same problem since yesterday, after sending 8 notifications.. that's a lot?


Fix/4inches phone adjustments

I would like to see some pictures of the 4'' results and also some from another screen with bigger size.

They are in our slack channel. Do you want me to upload here as well?
On Mon, Jun 14, 2021 at 9:10 AM Bernardo Vieira @.***>
wrote:

I would like to see some pictures of the 4'' results and also some from
another screen with bigger size.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/impactMarket/mobile-app/pull/102#issuecomment-860481485,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKU4GNLYMEC2VA3VASMD5ULTSW2QZANCNFSM46RB4MCQ
.

Ahh right :facepalm:
no need.


My code returns the correct answer but does not give credit

Challenge Bonfire: Return Largest Numbers in Arrays has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
var finalArray = [];
function largestOfFour(arr) {
  for (var i=0;i < 4; i++) {
    finalArray.push(Math.max.apply(Math, arr[i]));
  }
  return finalArray;
}

largestOfFour([[13, 27, 18, 26],[4, 5, 1, 3], [32, 35, 37, 39], [1000, 1001, 857, 1]]);

You are initializing finalArray globally, so after the first time your function runs the array is not empty and the result returned will be incorrect. Variables should be initialized within the context of the scope they are used (in this case the largestOfFour function).
In the future please ask for help in the Help Chat before filing a bug.
Thanks and happy coding!


Add workflow dispatch button for tests

This should add a button to the GitHub actions UI for us to manually trigger CI runs on main

Thanks for adding this @jrbourbeau and patching the error introduced by not having grpcio-status. This goes in 🎉


client demand and facility capacity is transposed in LSCP.from_geodataframe()

In the from_cost_method() function definition, demand weight comes first:
https://github.com/pysal/spopt/blob/main/spopt/locate/coverage.py#L126
However, from_geodataframe() passes the facility capacities first:
https://github.com/pysal/spopt/blob/main/spopt/locate/coverage.py#L455
This makes it hard to use the capacities, since any situation where capacity is bigger than the demand will get rejected erroneously as if capacity were smaller than the demand.
A fix is both easy and immediate. I can make this change, and would really appreciate a bug fix release this week before teaching the module in Tartu?

Resolved via #411 – will close issue following release.


Fix hiding tabs

Changes:

Fix JS to stop tabs disappearing when elements nested inside the button are clicked.
Add outline offset when tabs are focused to prevent resizing when changing tab.

Closes #105

Should a test get verified that a tab gets hidden and unhidden properly?

Yeah, we don't have any JS tests so this might be a good opportunity to get at least one in... Any experience with writing tests for JS? I'm yet to give it a try.
Also, looks like pygments has changed something so one of the regression tests is failing. Shall check if that affects appearance in any way.

My attempt at testing the simplest function in the module is failing. Not sure if you have experience testing JS using jest @Daltz333?
I must be using this incorrectly, as the selectTab function has no effect on the button or panel:
const tabs = require('../tabs')

describe("Selecting a tab", () => {
    test("tab become selected", () => {
        // Set up our document body
        document.body.innerHTML =
        '
' +
        '  <button id="test-button" aria-controls="panel-id" aria-selected="false">Test</button>' +
        '
Test
' +
        '
';

        let button = document.getElementById('test-button');
        let panel = document.getElementById('panel-id');
        expect(button.getAttribute('aria-selected')).toEqual('false')
        expect(panel.getAttribute('hidden')).toEqual("true")

        tabs.selectTab(button)

        expect(button.getAttribute('aria-selected')).toEqual('true')
        expect(panel.getAttribute('hidden')).toEqual("false")
    })
})

I'm not familiar with Javascript beyond a basic extent. Mostly a python developer and documentation writer myself. If tests are blocking, we can always merge now and test properly later.


Create Blog “2023-03-11-hhkj”

Automatically generated by Netlify CMS

👷 Deploy Preview for gleaming-chimera-a41975 processing.

Name
Link

🔨 Latest commit
6ffcae936f44db739f5a407298a71f2d25ac6e80

🔍 Latest deploy log
https://app.netlify.com/sites/gleaming-chimera-a41975/deploys/640c3245f552fe000851b27d


ERC20 Asset blacklist

Currently the app will display any ERC20 asset with a balance in your portfolio if it is on the asset list, and soon even assets not on the asset will be displayed too. There are a handful of known scam tokens that have been airdropped to many users' wallets and display misleading fiat values (ie. KICK and Minereum). As app maintainers, we want to be able to prevent known scam tokens from appearing in users' wallets and portfolios. Contributors should be able to make pull requests to an open source repo to add new known scam tokens to the blacklist.
AC:

The following assets no longer display in v2, even if users have a balance in their wallet:
KICK (0x426CA1eA2406c07d75Db9585F22781c096e3d0E0)
Minereum (0x426CA1eA2406c07d75Db9585F22781c096e3d0E0)
UNIH (0x4bf5dc91e2555449293d7824028eb8fe5879b689)
0x7761c09EA2DE3F7205Dba784Fd87Fd196E019D2A
0x6f0371247d21d7afad6e624f6e8dbb3bff0455c2
0xF9d25EB4C75ed744596392cf89074aFaA43614a8
0x0f8b6440a1f7be3354fe072638a5c0f500b044be
0x1412ECa9dc7daEf60451e3155bB8Dbf9DA349933
0x34278F6f40079eae344cbaC61a764Bcf85AfC949
Contributors can make a pull request to add a token to the blacklist, and there are some instructions in the repo on how to do this
Any erc20s that are marked as Spam or Unsafe by Etherscan are added to the blacklist (https://info.etherscan.com/etherscan-token-reputation/)

closing and reopened in lib https://github.com/shapeshift/lib/issues/353


Address review Suggestions

Purpose

$title.

Fixes #39881
Approach

Describe how you are implementing the solutions along with the design details.

Samples

Provide high-level details about the samples related to this feature.

Remarks

List any other known issues, related PRs, TODO items, or any other notes related to the PR.

Check List

[ ] Read the Contributing Guide
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[ ] Added necessary tests

[ ] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

@chiranSachintha there are test failures.


Coupon-based Grant System

Coupon
Grant category

Developer tools / services

Description
I would like to make a smart contract that allows entities to send tokens (like $FLOW) to a specific project/DApp that are only able to be used inside of that DApp. Here is an example:
The Dapper team wants to give a grant to Flovatar community members, but wants to make sure that the grant given to those community members is only spent within that community.
Problem statement

Target audience
The target audience is actually larger entities like Dapper and Flow who give grants to communities for whatever purpose they desire. However, this could easily be used by any project to give grants or funding to other communities/DApps. It could also be used for simple donations to community members.

Evidence for the need
Right now there is no way to ensure grants are spent in a correct manner. This would fix that problem. In addition, creating a coupon system may increase user acquisition to dapps, and further encourage developers to build products on Flow if they have a mechanism of attracting users with a controlled financial incentive.

Proposed solution
My proposed solution is a contract that allows communities/DApps to set up a “Vault”. This Vault will have a system that tracks token balances per each user in that community. For example:
Emerald City sets up a Vault in their account that looks like:
Jacob Tucker -> $FLOW -> 10.0
-> $STARLY -> 50.0
Person 2 -> $FLOW -> 5.0
-> $STARLY -> 0.0

Then, when Emerald City sets up a DApp that requires users to purchase something, we will embed a call to this contract inside of our transaction that will handle purchases automatically. So instead of simply withdrawing X amount from a user’s vault and depositing it to our community’s Vault, it will:

Go through the coupon Vault
Check to see if the user has any available coupons for the token in question
Use whatever coupons available
Continue the purchase normally

Impact

In what ways does this benefit the broader Flow developer ecosystem?
It will make it much easier for Dapper, Flow, and other grant-giving entities to ensure that grant $ is spent in a way that is intended, rather than transferring tons of $ to a community and risking it being used elsewhere. The tool will be used to increase revenue to Flow dapps, with the potential to increase daily transacting users and transaction volume on Flow. If we can offer this tool to developers outside of the ecosystem, we may be able to attract them to Flow.

Milestones and funding

Milestone
Deliverables
Timeline
Risks
USD proposal

1 - MVP
Smart Contract, Transactions and Scripts
2 weeks
-
10,000

2 - Adoption
Creating tutorials (written/video) for Dapper to give coupons to communities, and tutorials (written/video) for projects to integrate the coupon system
1 week
-
1,500

3 - Maintenance
This is to maintain the contract in a proper manner given frequent Cadence updates
Indefinitely
-
1,000

4 - TBD Website
(Only if found beneficial) This would be to create a website to allow users to view their coupon balances across different projects, and also allow communities/DApps to view their users' balances in their community. This funding would go to the Emerald City developer community to build the website and get developers involved in real-world DApp building.
3 weeks
-
10,000

Team

Name
Role
Bio
Contact

Jacob Tucker
Smart Contract Developer
...
<EMAIL_ADDRESS>

thanks for the submission @jacob-tucker, we'll review and get back to you soon

Hi @jacob-tucker!  Just wanted to send a quick update that we're still working through the review of this proposal - apologies for the long lead time on this one and aiming to have an update for you soon.

No worries @chrisackermann - thank you for keeping me in the loop :)

Hi there @chrisackermann ! Just wanted to check if the team still had interest in this proposal. Thank you, and happy holidays 🥳

This is extremely necessary.

Would still love to make it @Itahand , wondering if there is still a need on Flow side

I know from first hand experience that there is. I don't know if this solution exactly, but there's definitely a need to make sure/verify that grants are used in the most ethical/efficient way.

We appreciate your proposal and taking the time to fill it out. Given the time since this has been submitted I'm closing this down, especially because it seems like it was already incorporated in Toucans. Please reach out to me if you feel this was a mistake :)


error when running 5G Wizard

🔍 Before submitting the issue

[X] I have searched among the existing issues
[X] I am using a Python virtual environment

🐞 Description of the bug
Hello dear
When trying to run the 5G Wizard script, some errors are appearing. Could you tell me what could be happening?
I'm using version 2024.1 and my PyAEDT is 0.9.1.
The error is shown below:
File "C:\Users\vraupp\Python\Lib\site-packages\pyaedt\generic\grpc_plugin.py", line 120, in Invoke
return _retry_ntimes(
^^^^^^^^^^^^^^
File "C:\Users\vraupp\Python\Lib\site-packages\pyaedt\generic\general_methods.py", line 825, in _retry_ntimes
raise AttributeError("Error in Executing Method {}.".format(function.name))
AttributeError: Error in Executing Method InvokeAedtObjMethod.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "d:\vraupp\Estudo\gihub_\5G-Wizard-main\5G_Wizard.py", line 456, in
myApp = MainWindow(aedtapp)
^^^^^^^^^^^^^^^^^^^
File "d:\vraupp\Estudo\gihub_\5G-Wizard-main\5G_Wizard.py", line 41, in init
self.initGUI()
File "d:\vraupp\Estudo\gihub_\5G-Wizard-main\5G_Wizard.py", line 48, in initGUI
project_names = self.gui_params.get_project_names()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "d:\vraupp\Estudo\gihub_\5G-Wizard-main\Lib\Populate_GUI.py", line 15, in get_project_names
return list(self.aedtapp.odesktop.GetProjectList())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\vraupp\Python\Lib\site-packages\pyaedt\generic\grpc_plugin.py", line 133, in DynamicFunc
return self.Invoke(funcName, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\vraupp\Python\Lib\site-packages\pyaedt\generic\grpc_plugin.py", line 124, in Invoke
raise GrpcApiError("Failed to execute grpc AEDT command: {}".format(funcName))
pyaedt.generic.general_methods.GrpcApiError: Failed to execute grpc AEDT command: GetProjectList
PS C:\Users\vraupp>
📝 Steps to reproduce
I run the 5G Wizard code in VS Code and the errors appeared instantly.
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
2024.1
🐍 Which Python version are you using?
3.12
📦 Installed packages
annotated-types==0.7.0
ansys-pythonnet==3.1.0rc3
anyio==4.2.0
argon2-cffi==23.1.0
argon2-cffi-bindings==21.2.0
arrow==1.3.0
asttokens==2.4.1
async-lru==2.0.4
attrs==23.2.0
Babel==2.14.0
beautifulsoup4==4.12.3
bleach==6.1.0
certifi==2023.11.17
cffi==1.16.0
charset-normalizer==3.3.2
clr-loader==0.2.6
colorama==0.4.6
comm==0.2.1
contourpy==1.2.1
cycler==0.12.1
debugpy==1.8.0
decorator==5.1.1
defusedxml==0.7.1
exceptiongroup==1.2.0
executing==2.0.1
fastjsonschema==2.19.1
fonttools==4.52.1
fpdf2==2.7.9
fqdn==1.5.1
h11==0.14.0
h5py==3.11.0
httpcore==1.0.5
httpx==0.27.0
idna==3.6
importlib-metadata==7.0.1
ipykernel==6.29.0
ipython==8.21.0
ipywidgets==8.1.2
isoduration==20.11.0
jedi==0.19.1
Jinja2==3.1.3
json5==0.9.14
jsonpointer==2.4
jsonschema==4.21.1
jsonschema-specifications==2023.12.1
jupyter==1.0.0
jupyter-console==6.6.3
jupyter-events==0.9.0
jupyter-lsp==2.2.2
jupyter_client==8.6.0
jupyter_core==5.7.1
jupyter_server==2.12.5
jupyter_server_terminals==0.5.2
jupyterlab==4.2.1
jupyterlab_pygments==0.3.0
jupyterlab_server==2.27.2
jupyterlab_widgets==3.0.10
kiwisolver==1.4.5
MarkupSafe==2.1.4
matplotlib==3.9.0
matplotlib-inline==0.1.6
mistune==3.0.2
nbclient==0.9.0
nbconvert==7.14.2
nbformat==5.9.2
nest-asyncio==1.6.0
notebook==7.2.0
notebook_shim==0.2.3
numpy==2.0.0
overrides==7.7.0
packaging==23.2
pandocfilters==1.5.1
parso==0.8.3
pillow==10.3.0
platformdirs==4.2.0
plumbum==1.8.3
pooch==1.8.2
prometheus-client==0.19.0
prompt-toolkit==3.0.43
psutil==5.9.8
pure-eval==0.2.2
pyaedt==0.9.1
pycparser==2.21
pydantic==2.7.1
pydantic_core==2.18.2
pyedb==0.11.2
Pygments==2.17.2
pyparsing==3.1.2
PySide6==6.7.2
PySide6_Addons==6.7.2
PySide6_Essentials==6.7.2
python-dateutil==2.8.2
python-json-logger==2.0.7
pyvista==0.43.10
pywin32==306
pywinpty==2.0.12
PyYAML==6.0.1
pyzmq==25.1.2
qtconsole==5.5.2
QtPy==2.4.1
referencing==0.33.0
requests==2.31.0
rfc3339-validator==0.1.4
rfc3986-validator==0.1.1
rpds-py==0.17.1
rpyc==6.0.0
Rtree==1.2.0
scipy==1.14.0
scooby==0.10.0
Send2Trash==1.8.2
setuptools==65.5.0
shiboken6==6.7.2
six==1.16.0
sniffio==1.3.0
soupsieve==2.5
stack-data==0.6.3
terminado==0.18.0
tinycss2==1.2.1
toml==0.10.2
tomli==2.0.1
tornado==6.4
traitlets==5.14.1
types-python-dateutil==<IP_ADDRESS>40106
typing_extensions==4.9.0
uri-template==1.3.0
urllib3==2.2.0
vtk==9.3.0
wcwidth==0.2.13
webcolors==1.13
webencodings==0.5.1
websocket-client==1.7.0
widgetsnbextension==4.0.10
zipp==3.17.0

@rauppvictor I will need to test this in the current version of pyAEDT and AEDT. This toolkit was built and tested using a much older version of pyAEDT and AEDT

Thanks for the quick response @ariensligar.
We are with a customer trying to use a toolkit and he is having problems.
Please let me know if you have any news.
Thanks again

@rauppvictor I have made some changes, if you can try the current version. I wasn't able to re-create the exact issue you were having but I did update to more recent version of pyAEDT and tested using AEDT 2024R1.

Hello @ariensligar
I'm going to do some tests.
The customer would like to get the worst case Power Density graphically considering the different Codebook beams. Is this possible using a script?
He was using the Toolkit tool, but apparently the Power Density graph generated by the tool doesn't show the worst case.
Thanks.

Hello @ariensligar
I'm have a issue when use the 5G Wizard Toolkit with Codebook using the Paired Beams. Using the attached Codebook file the "PD_Total" graph <fig1.png> is generated. However, the maximum value in this graph does not correspond to the peak power density presented in the "Summary" report.
If the graph does not represent the worst-case maximum PD, what is being considered in this graph?
I used the AEDT 2024.1 and Array_4_1 simulation example in these testes.
CodebookExample.csv
PowerDensitySummary_AllBeams_on_5mm_Surface.csv

These results are not from this toolkit


Compile error: cannot find cuda_bf16.h

Dear all,
I'm new to CUDA and trying to learn CUB for my applications. I try to compile examples (example_block_radix_sort.cu) with: nvcc -arch=sm_75 example_block_radix_sort.cu -I../.. -lcudart -O3, somehow, get a error: cuda_bf16.h: No such file or directory. After searching, seems issues #478 is related, but I cannot find a solution as a beginner. Thanks for your help!
I use WSL2 (ubuntu20.04) and cub1.16.0 with an RTX 3060 ti.

Hello @peizhang-cn and thank you for the interest to our project!
I was unable to reproduce your issue with CUB 1.16.0. Is there any chance you could try more recent version? Also, which version of CUDA are you using (nvcc --version)? In general, it's better to reuse our CMake infrastructure to build examples:
cmake -DThrust_DIR=/src/thrust/thrust/cmake \
      -DCUB_DISABLE_ARCH_BY_DEFAULT=YES \
      -DCUB_ENABLUE_COMPUTE_75=YES \
      -GNinja \
      ..
ninja cub.cpp14.example.block.radix_sort

Hi @senior-zero many thanks for the reply, I reinstalled Thrust and updated Cub to the newest version, and compiled Thrust with cmake -DTHRUST_INCLUDE_CUB_CMAKE=ON .. , it seems to work, but got the following errors after make:
nvcc fatal   : Unknown option 'include/home/pzhang/thrust/testing/fix_clang_nvcc_11.5.h'
make[2]: *** [CMakeFiles/thrust.headers.dir/build.make:76: CMakeFiles/thrust.headers.dir/headers/thrust/addressof.h.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1846: CMakeFiles/thrust.headers.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

the cuda version is 10.1.243.

@peizhang-cn the minimal required CUDA version for Thrust/CUB is 11.1. I'd suggest installing the latest CUDA, which is 12.1 at the moment.


Design New crypto logic using the newer JWE format defined in Aries RFC-0335

In order to make the Packer work with JWE envelopes that are FIPS/NIST compliant, a new format was introduced in RFC-0355
On top of this new format, the JWE packer should call crypto operations and working with keys securely with pluggable KMS. For this reason, there's a need to use a tried and tested framework that can manage these operations for the Packer. One strong candidate is Tink.
A new design document is needed to lay down the work needed for implementing the above topics.

As mentioned in a followup comment, we must also add support for P-256 curves in addition to X25519.


Saving tig10 events

Greg recently highlighted an issue with the event sorting of midas events from the tigsort.c code.
Can someone who is already familiar with the midas parsing comment on the content of https://elog.triumf.ca/Tigress/TIGRESS/17913 and whether this code was inherited and if GRSISort avoids this problem?
@pcbend this seems like a question you might know the answer to without looking.

Looking at the data parser, it seems that GRSISort (after reading two words with trigger ID and timestamp) loops over all words, and checks the high nibble. If the high nibble is 0x5 it set's the charge, so having two words with charge would just overwrite the charge with the value from the last word. The same is true for all other words, except those that have a high nibble of 0x4.
For those the value is used to set the CFD and LED, and then the next word is checked to see if it is a trailer (high nibble 0xe). If it is a trailer the number of fragments found so far is returned, otherwise the midas timestamp, midas ID, trigger ID, and time stamp are copied to another fragment which is used to continue to read data.
In both cases the fragment just read is pushed onto the good output queue.
So if there are two CFD words followed by a trailer, the first one causes the fragment to be written to the queue and the midas timestamp, midas ID, trigger ID, and time stamp to be copied to another fragment. Reading the second CFD word causes that fragment to be written (again) and the number of fragments found is returned.
So it seems to me that having words in twice causes no problem, unless it's the CFD word, in which case the fragment is written twice to the output queue. Maybe someone can parse a small file which has these issues and check the fragments written.

Nothing from tigsort.c was inherited in the creation of the code.  I spent sometime some years ago look at all the various loop holes and oddities that come with irregular data that is the tigress daq.  While I will not claim I got them all, I do trust the counter which outputs (use to?) at the end of a sort and states the number of fragments which made it into the FragmentTree.  For tigress this was routinely 99.9%, if this counter is substantial lower, we should start worrying.
On a side note, a 99.9% counter doesn't guarantee success - just that the data is in the tree.  In general, when doubts arise, one should check the data in the tree and make sure it is sane.

Cheers

You should check whether you see fragment being written twice to disk if there is a double CFD word (seems to me like they would). This might not be an issue in the analysis, depending on how the fragments are used, but it could artificially increase the number of fragments that passed the parser.


chore(no-release): initial project setup

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Added burn transactions to history, fixes #69

This probably still needs some work. I'm not a dev.

Does anyone have a "nice" burn icon? Right now I just put X as a placeholder

.

Thanks!!
I'll have a look today

On it!
I poked the hicathon team in case they have a proper icon. It's already working well, the only issue I see is name resolution is done using tzkt's API (thus their verification system) and not SUBJKT's

I'm sorry @Zir0h I did not realise it would overwrite the branch in your PR 😅 .

Thank you for the help! Looking good!

I need to add a graphql query to try to translate the tz addresses to the pretty names via the holder table?

Exactly! after gathering all the 'burn transfers' to make only one call. There is already a utility function for that QL query, something like fetch_profile but don't worry too much this will all be refactored
I can look at it this afternoon!

As I already messed up by recommiting all your commits as mine 🙈, I will reopen this PR so we can have a preview staging url


Allow multiple PR reviews to be dismissed simultaneously with the same message

Description
When changes are requested on a PR, you may wish to dismiss them after fulfilling each change request for clarity when viewing from the PR summary page.
However, if multiple users have requested changes, you must dismiss them individually, typing in the message each time.
It would be great if Refined GitHub could offer a facility to dismiss all/multiple reviews simultaneously with the same message.
Example URLs
https://github.com/[organisation]/[repo]/pull/[pr_id]

Include a REAL URL where the feature should appear. e.g. Do you want a feature to appear on the main page of a repo? Paste a link to a repo

typing in the message each time

This doesn't seem necessary. GitHub already provides the "Resolve" button to target each review individually. If the closing message is the same for everyone, then it should just be added to the main conversation.
Doing both probably already achieves what you're trying to do.
As for this specific feature, we had other requests for "batch action on comments" and figured it was too complex to integrate in Refined GitHub.

#2988

Also:

Include a REAL URL where the feature should appear. e.g. Do you want a feature to appear on the main page of a repo? Paste a link to a repo


Extending to the bootstraap table  functionality

Hi @AllenFang,
I want to use react-bootstrap-table for the below listed image.
How ever i have concern regarding few things.

There is a video preview button in each row. How to handle that click ?
When i select all i should get only the rows from that page. Not all the records.
After selecting a particular item i will have save button replacing my rename button when click on that i need to save that row. how do i do that.

Please refer the image below.

HI @amitkumarsingh,
1)
class ButtonFormatter extends React.Component {

  handleBtnClick = () => {
    //....
  }

  render() {
    return (
      <button onClick={ this.handleBtnClick }>click me</button>
    );
  }
}

function activeFormatter(cell, row) {
  return (
    <ButtonFormatter />
  );
}

export default class ReactColumnFormatTable extends React.Component {
  render() {
    return (
      <BootstrapTable data={ jobs }>
          <TableHeaderColumn dataField='id' isKey={ true }>Job ID</TableHeaderColumn>
          <TableHeaderColumn dataField='name'>Job Name</TableHeaderColumn>
          <TableHeaderColumn dataField='active' dataFormat={ activeFormatter }>Active</TableHeaderColumn>
      </BootstrapTable>
    );
  }
}

How did you get selected row?

You said you click the save button, you want to apply the updated row into table?  I think you can just update state on the table after save button click

Feel free to discuss with me. Thanks :)

i try to use image on cells. But idk how.
this my code below
export default function imageFormatter(cell) {     return  }
import imageFormatter from './imageFormatter'
<BootstrapTable data={ this.state.pokemons } borderd = {true}>                 <TableHeaderColumn dataField='id' isKey>#</TableHeaderColumn>                 <TableHeaderColumn dataField='name'>Name</TableHeaderColumn>                 <TableHeaderColumn dataField='avatar'>Avatar</TableHeaderColumn>                 <TableHeaderColumn dataField='type'>Type</TableHeaderColumn>                 <TableHeaderColumn dataField='abilities' dataFormat={imageFormatter}>Abilities</TableHeaderColumn>             </BootstrapTable>


Make external depencencies' version align to spring-boot 2.6.3

spring-boot:2.6.3 released: https://github.com/spring-projects/spring-boot/releases/tag/v2.6.3
spring-boot-dependencies: https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-dependencies/2.6.3/spring-boot-dependencies-2.6.3.pom

/azp run java - spring - tests

/azp run java - keyvault - tests

/azp run java - cosmos - tests

@Netyyyy Please merge it after SpringCloudAzure:3.14.0 released.
To make sure SpringCloudAzure and SDK share the same external dependencies'version.
Related PR: https://github.com/Azure/azure-sdk-for-java/pull/27141

Due to Spring cloud having new version:2021.0.1, need to update

/azp run java - spring - tests

/azp run java - cosmos - tests

/azp run java - keyvault - tests

Hi @vcolin7 , @g2vinay while spring-cloud updating to 2021.0.1, KeyVaultBackupClientTest failed

, please help to fix it asap, thanks so much.

/azp run java - spring - tests

/azp run java - cosmos - tests

/azp run java - keyvault - tests

/azp run java - spring - tests

/azp run java - keyvault - tests

/azp run java - cosmos - tests

Hi, @Netyyyy
Since this PR is not merged yet, how about upgrading to 2.6.4 directly?
Here is related issue: https://github.com/Azure/azure-sdk-for-java/issues/27304

/azp run java - spring - tests

/azp run java - cosmos - tests

/azp run java - keyvault - tests

/check-enforcer override

/azp run java - cosmos - ci

@Netyyyy / @chenrujun - this broke Rev API in spring data Cosmos, because of some changes in ParameterAccessor interface in spring framework new version - https://dev.azure.com/azure-sdk/public/_build/results?buildId=1404014&view=logs&j=b70e5e73-bbb6-5567-0939-8415943fadb9&t=ba3cf43a-b2bf-50f9-f95f-93049ca44ad1
This is the pipeline that is failing for Cosmos - which will also block our releases, and any PR merges.
Please help!
cc @alzimmermsft  / @srnagar  - does Rev API makes sense on spring cosmos SDK ?
It is also being done on other spring SDKs / connectors in our repo? If yes, why was this not caught in their CIs ?

@kushagraThapar It would be better to have RevApi enabled for the Spring Data Cosmos library as a safety net to not accidentally ship a backward breaking change. When it complains (which doesn't happen very frequently), it's good to review it manually and suppress those specific false positives.
Regarding the failure above, this PR may have caused this and looking at the CI pipelines that ran, it doesn't seem like the Cosmos CI was included. This could be because the only change was to the pom file which skips CI builds. Ideally, when external dependencies are updated, the PR should trigger CIs for all services using that dependency. While I discuss this issue with the EngSys team, you can go ahead and suppress this RevApi error and continue with the PR/release process for Cosmos.

@Netyyyy / @chenrujun - this broke Rev API in spring data Cosmos, because of some changes in ParameterAccessor interface in spring framework new version - https://dev.azure.com/azure-sdk/public/_build/results?buildId=1404014&view=logs&j=b70e5e73-bbb6-5567-0939-8415943fadb9&t=ba3cf43a-b2bf-50f9-f95f-93049ca44ad1 This is the pipeline that is failing for Cosmos - which will also block our releases, and any PR merges.
Please help! cc @alzimmermsft / @srnagar - does Rev API makes sense on spring cosmos SDK ? It is also being done on other spring SDKs / connectors in our repo? If yes, why was this not caught in their CIs ?

@kushagraThapar This PR, https://github.com/Azure/azure-sdk-for-java/pull/27416 may help fix the pipeline, please review and merge, thanks.


RU localization - long phrases

If translated text is longer than EN place "..." only in the end of phrase, not in the middle

Example: " Cоздать метку".
In wallet it looks like "Созд...етку"
Should be: "Создать мет..." or replace with "Метка" (only in this case)

Same issue on "Lock screen". Should be "Блокировать экр..."

"Owner screen" --- should be "Показать ключ..."

"Edit address"  -  just "Редактировать"

checked


26748

This will add custom ellipsis to textoverflow. This add an option custom to TextOverflow enum and accepts an customOverflowEllipsis to display when the overflow type is TextOverflow.Custom
Fix the issue mentioned in (https://github.com/flutter/flutter/issues/26748)
If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.
Pre-launch Checklist

[ ] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[ ] I read the Tree Hygiene wiki page, which explains my responsibilities.
[ ] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[ ] I signed the CLA.
[ ] I listed at least one issue that this PR fixes in the description above.
[ ] I updated/added relevant documentation (doc comments with ///).
[ ] I added new tests to check the change I am making, or this PR is test-exempt.
[ ] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

This PR looks like it was branched off of a different branch from master, resulting in a large diff and meaning it will not be mergeable. Please see tree hygiene for more details about how to open pull requests to Flutter repositories.
Feel free to create a new pull request with these same changes branched off of master, and thanks for contributing!


Flutter Android keyboard dismisses on notification panel pull down

Steps to reproduce
Youtube demonstration
As shown in the video, in my Flutter Android application running on a device, I tap on a text field, and it gains focus, but when I pull down the notification center and then close the notification center, the input focus gets lost, and the keyboard goes away. I don't want this behavior; instead, I want the keyboard to stay up and focus to remain unchanged, as it does in all other non-Flutter apps I tested. Anyone know how to achieve this?
Code sample
Code sample
TextField()

What target platforms are you seeing this bug on?
Android
OS/Browser name and version | Device information
Any android device
Does the problem occur on emulator/simulator as well as on physical devices?
Unknown
Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.19.6, on Microsoft Windows [Version 10.0.22631.3527], locale en-US)
[✓] Windows Version (Installed version of Windows is version 10 or higher)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0-rc2)
[✓] Chrome - develop for the web
[✓] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.6.0)
[✓] Android Studio (version 2022.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2024.1)
[✓] Connected device (4 available)
[✓] Network resources

• No issues found!

@ramsayamarin
Check if your issue is same as https://github.com/flutter/flutter/issues/52599 or not.

@darshankawar Yes, I now believe the root cause is not the notification panel since it does trigger lifecycle events, so it is indeed the same issue. However, that issue has been stale for years, so I think it is worth raising attention to it once more. Can you please advise on why it has been unresolved for years? Thank you.

Thanks for the update. I suggest you to follow up in that issue for further updates. You may share your findings in it for better tracking. Closing this as a duplicate.


⚠ SECURITY ISSUE: using ipset breaks persistance

This ticket is a bug report for an issue where this ansible role will render a server to have no firewall rules on boot if a user happens to add a rule with ipset to its firewall rules on Debian.

⚠ WARNING: Currently, if a user adds a firewall rule to this ansible role's config (firewall_v4_default_rules or firewall_v6_default_rules, etc), that uses the -m set module then on the next server reboot, the server will come-up without any firewall rules, leaving the server very exposed and at-risk!

Problem
This module installs iptables-persistent but not ipset-persistent. As a result, when a system whose firewall is managed by this ansible role) reboots, the iptables.v4.generated script will exit with an error if a user uses this ansible role to define an iptables rule using the -m set module:
iptables vA.B.C (legacy): Set example.com doesn't exist.

The result is that the firewall table will be completely empty on-boot, leaving the server very exposed and at-risk!
ipset what?
What is the ipset module? I'll quote from their website:

IP sets are a framework inside the Linux kernel, which can be administered by the ipset utility. Depending on the type, an IP set may store IP addresses, networks, (TCP/UDP) port numbers, MAC addresses, interface names or combinations of them in a way, which ensures lightning speed when matching an entry against a set.
If you want to

store multiple IP addresses or port numbers and match against the collection by iptables at one swoop;
* dynamically update iptables rules against IP addresses or ports without performance penalty;
* express complex IP address and ports based rulesets with one single iptables rule and benefit from the speed of IP sets

then ipset may be the proper tool for you.

Using ipset is very useful to be able to create iptables rules that match against DNS addresses, for example.
steps to reproduce
To reproduce this issue, first install ipset and create a simple ipset.
# install prereqs
apt install ipset dnsutils

ipset create ipv4-github.com hash:ip family inet
ips=$(dig -t A +short "github.com" | grep -v '\.$')
ipset add ipv4-github.com "${ips}"

# verify
ipset list ipv4-github.com

Update your ansible role variables
firewall_v4_default_rules:
  001 default policies:
    - -P INPUT ACCEPT
    - -P OUTPUT ACCEPT
    - -P FORWARD DROP
  002 allow loopback:
    - -A INPUT -i lo -s <IP_ADDRESS>/8 -d <IP_ADDRESS>/8 -j ACCEPT
  003 block github
    - -A INPUT -m set --match-set ipv4-github.com  -j DROP

Reboot
reboot

The system will come-up without any iptables rules :(
Solution
The solution to this problem appears to be very simple: just ensure ipset-persistent is installed.

See also:

https://stackoverflow.com/questions/35873976/rules-with-ipset-after-restart
https://dhtar.com/make-ipset-and-iptables-configurations-persistent-in-debianubuntu.html

I've created a PR to fix this

https://github.com/mikegleasonjr/ansible-role-firewall/pull/44


Error in "_merge_no_wait": The config isn't consistent between chunks. This shouldn't have happened.

Hello,
I am pretraining Tinyllama on Lightning AI studio on my custom dataset. I am using prepare_starcoder.py to convert the parquet files because my data has one folder of parquet files. After it writes .bin files it raises an error in the commented section below.
Error:
raise Exception("The config isn't consistent between chunks. This shouldn't have happened."

File location:
/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/lightning/data/streaming/writer.py

I could not resolve the problem, commented it out, and trained the model. But, I want to ensure it does not affect anything bad. I would appreciate it if you could address the issue.
    def _merge_no_wait(self, node_rank: Optional[int] = None) -> None:
        """Once all the workers have written their own index, the merge function is responsible to read and merge them
        into a single index."""
        files = os.listdir(self._cache_dir)
        index_files = [f for f in files if f.endswith(_INDEX_FILENAME)]

        chunks_info = []
        config = None
        for index_filename in sorted(index_files):
            chunk_path = os.path.join(self._cache_dir, index_filename)
            with open(chunk_path) as f:
                data = json.load(f)

                if config is None:
                    config = data["config"]

                #elif config != data["config"]:

                   # print(config)
                   # print("\n\n\n")
                   # print(data['config'])

                   # breakpoint()
                    #raise Exception("The config isn't consistent between chunks. This shouldn't have happened.")

                chunks_info.extend(data["chunks"])

            os.remove(chunk_path)

        if node_rank is None:
            with open(os.path.join(self._cache_dir, _INDEX_FILENAME), "w") as f:
                json.dump({"chunks": chunks_info, "config": config}, f, sort_keys=True)
        else:
            with open(os.path.join(self._cache_dir, f"{node_rank}-{_INDEX_FILENAME}"), "w") as f:
                json.dump({"chunks": chunks_info, "config": config}, f, sort_keys=True)

cc @tchaton or @awaelchli

@eljanmahammadli Are you using one of our Studio templates for this? Would you mind sharing your prepare_starcoder.py implementation?

Hey @eljanmahammadli, did you use the LitData App to prepare your data ? This happens if the type of your data isn't deterministic among workers.

@awaelchli I am using the "Pretrain LLMs - TinyLlama 1.1B" template from the studio. Below is the code with minimal changes. I have changed the column name. And my data is just one .parquet file.
import os
import sys
import time
import traceback
from pathlib import Path

import pyarrow.parquet as pq
from lightning.data.streaming import DataChunkRecipe, DataProcessor

# support running without installing as a package
wd = Path(__file__).parent.parent.resolve()
sys.path.append(str(wd))

from lit_gpt import Tokenizer

class StarcoderDataRecipe(DataChunkRecipe):
    def __init__(self, tokenizer: Tokenizer, chunk_size: int):
        super().__init__(chunk_size)
        self.tokenizer = tokenizer

    def prepare_structure(self, input_dir):
        files = Path(input_dir).rglob("*.parquet")
        print(files)
        return [str(file) for file in files]

    def prepare_item(self, item_metadata):
        filepath = item_metadata
        start = time.time()

        try:
            parquet_file = pq.ParquetFile(filepath)
            # reduce RAM usage
            for batch in parquet_file.iter_batches(batch_size=8192, columns=["text"]):
                for text in batch.to_pandas()["text"]:
                    yield self.tokenizer.encode(text, bos=False, eos=True)

        except Exception:
            print(traceback.format_exc())
            print(f"Error reading {filepath}")
            return

        parquet_file.close()
        end = time.time()
        print(f"Took {end - start:.2f} seconds total", filepath)

def prepare(
    input_dir: Path = Path("data/starcoderdata"),
    output_dir: Path = Path("data/starcoder"),
    tokenizer_path: Path = Path("checkpoints/Llama-2-7b-hf/"),
    chunk_size: int = (2049 * 8192),
    fast_dev_run: bool = False,
) -> None:
    tokenizer = Tokenizer(tokenizer_path)
    data_recipe = StarcoderDataRecipe(tokenizer=tokenizer, chunk_size=chunk_size)
    data_processor = DataProcessor(
        input_dir=str(input_dir),
        output_dir=str(output_dir),
        fast_dev_run=fast_dev_run,
        num_workers=os.cpu_count(),
        num_downloaders=1,
    )

    start_time = time.time()
    data_processor.run(data_recipe)
    elapsed_time = time.time() - start_time
    print(f"Time taken: {elapsed_time:.2f} seconds")

if __name__ == "__main__":
    from jsonargparse import CLI

    CLI(prepare)

Beside, I am using my own tokenizer which I have used below code to trained following HuggingFace tutorial.
def get_training_corpus():
    dataset = raw_datasets["train"]
    for start_idx in range(0, len(dataset), 1000):
        samples = dataset[start_idx : start_idx + 1000]
        yield samples["text"]

training_corpus = get_training_corpus()
tokenizer = old_tokenizer.train_new_from_iterator(training_corpus, 32000)

@eljanmahammadli Do you think you could provide a full reproducible script with synthetic data, so I can debug it ?

I am in the "Pretrain LLMs - TinyLlama 1.1B" on Lightning AI Studios.
First we get custom tokenizer:
python lit-gpt/scripts/download.py \
   --repo_id eljanmahammadli/simhash_dedup_tokenizer_1_5M \
   --access_token HF_TOKEN_HERE \
   --tokenizer_only true

Then clone the data:
git clone https://huggingface.co/datasets/eljanmahammadli/sample_data data/sample-raw

You have to change the column name to the "text" on the line below in the "lit-gpt/scripts/prepare_starcoder.py":
for batch in parquet_file.iter_batches(batch_size=8192, columns=["text"]):

Finally using "prepare_starcoder.py" converting parquet files to bins. But
python lit-gpt/scripts/prepare_starcoder.py \
  --input_dir data/sample-raw/data \
  --output_dir data/sample \
  --tokenizer_path checkpoints/simhash_dedup_tokenizer_1_5M

I want to know what kind of effect does this error has in the training the model as @tchaton pointed out the inconsistency between data types .

Hey @eljanmahammadli,
This error indicates the StreamingDataset won't know what de-serializers to use during training and would fail at some point when reaching the outlier samples.
The optimize script print the inferred types when starting processing. Did you see any anomalies ?
Do you think you could invite me (thomasgridai) to your teamspace, so I can duplicate your Studio and try to figure out the source of the bug ?
Best,
T.C

Hey @eljanmahammadli
https://www.loom.com/share/cafc6900325c4fdd9bcf19b73eb911fe

Hey @tchaton. On this quote "would fail at some point when reaching the outlier samples". Until you spot any bugs, am I good to go ahead and train the model if it does not fail?


Lazy-load CLI scripts to reduce script execution time

Note: This issue has been created to document an old WIP pull request that had become stale. No issue had been opened for that PR, so this issue is to discuss whether it's worth starting fresh and continuing that work.

Before it was closed, PR #1913 had aimed to reduce script execution time by lazy-loading modules (i.e. by importing them in the middle of the script, rather than at the top).
(That PR also included some refactoring that turned some scripts into API modules, but I don't quite understand why those changes were included given the purpose of that PR.)
Is this an idea worth pursuing again?

Is this an idea worth pursuing again?

I don't know... @zougloub @kousu @Drulex any insights?

It sounds like a nice idea. But would you be up to running profiling on it before diving in?
https://docs.python.org/3/library/profile.html#instant-user-s-manual
python -m cProfile -s cumulative scripts/sct_run_whatever.py

This line might not work as-is because of the weird way we install and import certain parts but I think you can probably get around that.
My rule of thumb is that python startup time is dominated by

the interpreter itself
large extension modules like matplotlib and scipy

Relevant: https://github.com/ivadomed/ivadomed/issues/510


Emptying revolver while it's in storage lets you overflow the max size allotment now

as reported here on discord:
https://discord.com/channels/310555209753690112/675078881425752124/1170987075122757683
steps to repro:

place fully loaded revolver in bag or storage container of some kind
eject rounds from the weapon
boolet overflows into bag instead of onto floor

this can presumably be done with any gun that has a cycling mechanism activated through context menu/right click, and if gun can be reloaded while in the bag it effectively makes the ammo storage side of things "infinite" (actual infinite storage needs testing, but theoretically you're still storing way more than you should be able to)

for context, step by step instructions specifically mention revolver because initial screenshot report had a revolver, but this works with any gun that can cycle rounds from its internal storage

this is fixed, revolvers will try to fill the inventory then dump onto the floor if it is full


Release 2.9.0 for Windows & MacOs

Replacing Noise Cancelling Sound • 1 Hour with Speech Masking Noise Blocker 2000 Hz • Removes Background Noise.

https://github.com/kkamara/kelvinkamara/releases

This works well with Great sound of rain in a tin roof (already part of the KelvinKamara sound app).


add-gcp-broker authentication configuration fails

I was following the tutorial to get the service catalog set up, but it failed at the add-gcp-broker step with ErrorGettingAuthCredentials. Here's the output:
[shosti@drogo:~]$ kubectl describe clusterservicebrokers/gcp-broker
Name:         gcp-broker
Namespace:
Labels:       <none>
Annotations:  kubectl.kubernetes.io/last-applied-configuration={"apiVersion":"servicecatalog.k8s.io/v1beta1","kind":"ClusterServiceBroker","metadata":{"annotations":{},"name":"gcp-broker","namespace":""},"spec":{"a...
API Version:  servicecatalog.k8s.io/v1beta1
Kind:         ClusterServiceBroker
Metadata:
  Creation Timestamp:  2018-05-17T20:04:49Z
  Finalizers:
    kubernetes-incubator/service-catalog
  Generation:        1
  Resource Version:  25
  Self Link:         /apis/servicecatalog.k8s.io/v1beta1/clusterservicebrokers/gcp-broker
  UID:               8e0bf830-5a0d-11e8-98a9-0a580a340013
Spec:
  Auth Info:
    Bearer:
      Secret Ref:
        Name:       gcp-svc-account-secret
        Namespace:  google-oauth
  Relist Behavior:  Duration
  Relist Duration:  15m0s
  Relist Requests:  0
  URL:              https://servicebroker.googleapis.com/v1beta1/projects/myproject/brokers/default
Status:
  Conditions:
    Last Transition Time:  2018-05-17T20:04:49Z
    Message:               Error fetching catalog. Error getting broker auth credentials: secrets "gcp-svc-account-secret" not found
    Reason:                ErrorFetchingCatalog
    Status:                False
    Type:                  Ready
  Reconciled Generation:   0
Events:
  Type     Reason                       Age               From                                Message
  ----     ------                       ----              ----                                -------
  Warning  ErrorGettingAuthCredentials  1m (x26 over 7m)  service-catalog-controller-manager  Error getting broker auth credentials: secrets "gcp-svc-account-secret" not found

Listing the relevant secrets:
[shosti@drogo:~]$ kubectl get secrets -n google-oauth
NAME                       TYPE                                  DATA      AGE
default-token-kvn6d        kubernetes.io/service-account-token   3         14m
google-oauth-token-svfdx   kubernetes.io/service-account-token   3         14m
oauth                      Opaque                                4         14m

(It seems oauth has a secretName of gcp-svc-account-secret--I'm assuming that that's the correct credential.)
More possibly relevant information:
[shosti@drogo:~]$ kubectl version
Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.1", GitCommit:"3a1c9449a956b6026f075fa3134ff92f7d55f812", GitTreeState:"archive", BuildDate:"1970-01-01T00:00:01Z", GoVersion:"go1.9.4", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"9+", GitVersion:"v1.9.7-gke.0", GitCommit:"1883ce4eb0e057cfc2439ebeb9822da0a9d40405", GitTreeState:"clean", BuildDate:"2018-04-19T17:08:34Z", GoVersion:"go1.9.3b4", Compiler:"gc", Platform:"linux/amd64"}

[shosti@drogo:~]$ sc version
sc version 0.1.1 linux/amd64

(sc was built from rev v1.0.0-beta.3)

@shosti Could you see what the logs for the google-oauth-XXXXXXXX-XXXXX pod in the google-oauth namespace say, or if it even came up successfully? It should have generated the gcp-svc-account-secret, but apparently never did. The expected log output is:
I0502 21:06:33.452666       1 main.go:68] Secret google-oauth/oauth: checking for Service Catalog authentication extension contract...
I0502 21:06:33.538285       1 round_trippers.go:405] GET https://<IP_ADDRESS>:443/api/v1/namespaces/google-oauth/secrets?resourceVersion=137839&timeoutSeconds=481&watch=true 200 OK in 85 milliseconds
I0502 21:06:34.383033       1 round_trippers.go:405] GET https://<IP_ADDRESS>:443/api/v1/namespaces/google-oauth/secrets/gcp-svc-account-secret 200 OK in 3 milliseconds
I0502 21:06:34.388474       1 round_trippers.go:405] PUT https://<IP_ADDRESS>:443/api/v1/namespaces/google-oauth/secrets/gcp-svc-account-secret 200 OK in 4 milliseconds
I0502 21:06:34.389170       1 google_oauth.go:167] Successfully wrote an OAuth access token into secret google-oauth/gcp-svc-account-secret

:man_facepalming: that pod hadn't gotten scheduled because I ran out of space on the cluster. Sorry for bothering you with this!


Fix completion item filtering condition

I try to setup your LSP plugin for Rust using rust-analyzer, and I noticed that more results were shown in the completion menu. After diving into your code, I noticed that the following condition was not aligned with the comment just below. By removing the negation, it somehow filters properly the items. I am not sure about the consequences of such a change, but after the change it works as it was initially supposed to be.

The provided information by the Rust language server is not straightforward, see also here "Completion response says "isIncomplete": true even when the total number of completion items is two #7649"
According to the language server protocol specification CompletionList.isIncomplete
         /**
	 * This list is not complete. Further typing should result in recomputing
	 * this list.
	 *
	 * Recomputed lists have all their items replaced (not appended) in the
	 * incomplete completion sessions.
	 */
	isIncomplete: boolean;

shall provide a hint to the client that the provided completion list is only temporarily and will be soon replaced by another list so it is not necessary to apply any filtering to this completion list, because it will be lost anyway.
Unfortunately the Rust language server rust-analyzer does always set this flag CompletionList.isIncomplete to true. See also the link to the according github issue above.


The mentioned code must be in english

https://github.com/desenvolvedor-io/dev-store/blob/343c18ca46178c90b501f435dfe2dac2060c9eba/src/services/DevStore.Customers.API/Controllers/CustomerController.cs#L34

Yes. All code must be in English. Some pieces of code were forgotten during the translation.

i got to the issue here, but i did see there was quite a bit more code not in english? let me know if you want some more help with going through the code for translations

@jmoldyvan this was a project originally written in portuguese, but we decided to translate to english to be a global project. Some parts of code have been forgotten and need an english translation.

Fixed in #17


Unsynchronized grippers when playing back

This issue was originally reported on the brr-users forum:
https://groups.google.com/a/rethinkrobotics.com/d/msg/brr-users/mloGg2SMj1o/Ae19tnl_484J
When using record-playback of joint_recorder.py and joint_trajectory_file_playback.py, the gripper playback is out of sync with the arm playback. Specifically, the grippers start as soon as the script runs, and the joint_trajectory_action_server begins playback a few seconds later. The source of this delay is computing all of the thousands of points in the Bezier curve. Roughly 1 second of planning time is required per 1,000 points.
One possible solution to this issue: hold back gripper playback until the JTAS starts executing the trajectory. This can be done by listening for feedback on the JTAS' feedback topic, and beginning execution of gripper playback at that point.

Closed by #39 Resolves gripper out of sync with arm motion


WIP: add  scripts and call e2e in ci

Description
Motivation
Closes: #Issue-number

close for now


Need Typescript type definitions

As noted in the subject, the Typescript type definitions for the library are yet to be done.

i create a Typescript type definition
example code is here

import { h, app, View, ActionsType } from "hyperapp";
import {
  Link,
  Route,
  RenderProps,
  location,
  LocationActions,
  LocationState
} from "@hyperapp/router";

const Home = () =>
Home
;
const About = () =>
About
;
const Topic = ({ match }: RenderProps<{ topicId: string }>) => (

{match.params.topicId}

);
const TopicsView = ({ match }: RenderProps<{ topicId: string }>) => (

Topics

        <Link to={`${match.url}/components`}>Components</Link>

        <Link to={`${match.url}/single-state-tree`}>Single State Tree</Link>

        <Link to={`${match.url}/routing`}>Routing</Link>

    {match.isExact &&
Please select a topic.
}

    <Route parent path={`${match.path}/:topicId`} render={Topic} />

);

interface RouteState {
  location: LocationState;
}
const state: RouteState = {
  location: location.state
};

interface RouteActions {
  location: LocationActions;
}

const routeActions: ActionsType<RouteState, RouteActions> = {
  location: location.actions
};
const view: View<RouteState, RouteActions> = (state: RouteState) => (

        <Link to="/">Home</Link>

        <Link to="/about">About</Link>

        <Link to="/topics">Topics</Link>

    <Route path="/" render={Home} />
    <Route path="/about" render={About} />
    <Route parent path="/topics" render={TopicsView} />

);

const main = app(state, routeActions, view, document.body);

const unsubscribe = location.subscribe(main.location);


WELCOME.md: warn new users against copy/pasting CC lists

Copy/pasting Markdown-formatted CC lists from one GGG PR to another can result in a broken CC list which needs manual fixing from the maintainer. So warn users about this issue early on for all first-time contributors.
See [1] for a discussion of some of the ways the community would like to mitigate this issue (one of which is the motivation for this change).
[1]<EMAIL_ADDRESS>

An even better solution would be to detect the faulty Cc: lines and refuse to send the mail(s), with a helpful error message to guide the user out of the situation.

Fully agree. Any takers?

Having said that, I'll gladly take this PR because it helps right now.

Thanks.

An even better solution would be to detect the faulty Cc: lines and refuse to send the mail(s), with a helpful error message to guide the user out of the situation.

Fully agree. Any takers?

I always love to work on such things, but cannot afford any nerdsnipes at the moment.
Having said that, I will add a few pointers to https://github.com/gitgitgadget/gitgitgadget/issues/1645 to help any volunteer along.


nssm hash update

nssm hash update

The ! at the end of the hash won't work. You can test these before committing by running scoop install /path/to/manifest.json

@luiscoms how can i add valid hash ?

One way to get a hash is to create your manifest without hashes, install it with scoop, and copy the hashes from the warnings that scoop gives you. Hashes are numbers and letters—don't include the ! at the end of the message.
You can also scoop install shasum and the run shasum path\to\download\file.zip to get a SHA256 hash manually.
Busybox and gow (available as scoop packages) also contain a sha1sum tool.
Whichever way you choose, you should always test the install locally using scoop install path\to\your\manifest.json to make sure it works before submitting a pull request.

actually i tried this method but when i tried installing i got error hash miss match, so i removed it. Will try with shasum.
Thank you.
what you think about adding phar to windows executable
example -
if user wants to install php-cs-fixer.phar they can run
scoop install php-cs-fixer
and internally scoop will save phar file in shims directory and run
echo @php "%~dp0php-cs-fixer.phar" %* > php-cs-fixer.cmd
to create executable file.
this will save lots of time to search - how to run phar file and use inside app like phpstrom

I'm not sure about this Phar thing. It might be best to create a private bucket for yourself if you want to do something like this. If it's a well-known or well-defined program that would be different, but it sounds more like a helper script.

Phar program is a php executable file

I think I roughly understand how it works.
It sounds like you're mainly interested in using the shimming capabilities of Scoop to create an .exe that calls php and passes it the .phar file, is that right?
I'd be happy to accept a pull request for something like this to scoop-extras, so the process for installing it would be something like:
scoop bucket add extras
scoop install php-cs-fixer


⚠ Bofrost.at has degraded performance

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

HTTP code: 200
Response time: 1674 ms

Resolved: Bofrost.at performance has improved in a88ad8e.


Sha256sum mismatch for vcredist_x86

Expected Behavior
Installation should finish successfully
Current Behavior
Installation breaks when trying to install vcredist_x86.exe
Detailed Description
Cloned the repo, run the sh file and got the following error while installing
sha256sum mismatch! Rename /home/javo/.cache/winetricks/vcrun2010/vcredist_x86.exe and try again.
I have renamed the file but got the same output.
PS thank you for this, it's amazing indeed!

Thank you. Yes, I noticed that as well in the test runs.
Which winetrick --version do you have?. Could you try a winetricks --self-update?
I am also adding that to the test runs to see if that fixes the problem.

Sorry about that, forgot to add the version. I've run the self-update command and now I have 20210206-next. With that version the script finishes succesfully, although AFV is crashing when it starts but I think you have already reported this in VATSIM's forum so I'm ok to close this issue.

If it helps I'm getting Unhandled Exception: System.Runtime.InteropServices.COMException: Exception from  HRESULT: 0x8000FFFF (E_UNEXPECTED) when starting AFV

Yes, that's what I am seeing too unfortunately since a week :(
I have tried multiple wine versions with the help of https://lutris.net/ but can't get AfV working any more :(
https://lutris.net/ might be a way to provide a recipe that comes together with a wine version by the way. In the long run if we continue to have problems with a simple script this might be more viable.

I managed to get it working a few weeks ago, I'll try to get that state back and let you know. Although AFV was starting, it wouldn't connect to VATSIM because of a network issue that I wasn't able to workaround. Let me know if you would like to continue this conversation offline!

Thank you. I am on the Swift discord regularly. We could use voice there or I am happy to join you somewhere else. Or offline if you like of course, but I am in Stuttgart (Southern Germany) :)

What is your discord username?

flightwusel#6332


Artifacts from double line-breaking

Describe the issue
In some cases, the renderer line-breaks some text to an imaginary width; the text renderer then again line-breaks the result of that to the actual width, while the HTML renderer generates HTML with unnecessarily pre-broken lines (and line-broken to the incorrect imaginary width)
.
In the text rendering this leads to introducing spaces at break points in the middle of the line.
This can be seen in www.open- std.org (note the spurious space) in the [C] reference in 0txt.
The HTML has an unnecessarily early line-break 0html.
(A likely related problem can be seen with the datatracker-specific rendering, e.g. at 1.)
The PDF rendering obtained from the author tools looks right, though; this could be a coincidence.
Code of Conduct

[X] I agree to follow the IETF's Code of Conduct

@cabo I don't think the issue with space in text output is fixed since v3.20.0.
   [C]        International Organization for Standardization,
              "Information technology — Programming languages — C",
              Fourth Edition, ISO/IEC 9899:2018, June 2018,
              <https://www.iso.org/standard/74528.html>.  Technically
              equivalent specification text is available at
              https://web.archive.org/web/20181230041359if_/
              http://www.open-std.org/jtc1/sc22/wg14/www/abq/
              c17_updated_proposed_fdis.pdf
              (https://web.archive.org/web/20181230041359if_/
              http://www.open-std.org/jtc1/sc22/wg14/www/abq/
              c17_updated_proposed_fdis.pdf)

Can you explain the unnecessary early line breaks in HTML? Because I'm not seeing any.
Maybe the whole URL could have moved to the next line.

@cabo I think the issue with spaces in breakpoints of text output has been fixed since v3.20.0.
   [C]        International Organization for Standardization,
              "Information technology — Programming languages — C",
              Fourth Edition, ISO/IEC 9899:2018, June 2018,
              <https://www.iso.org/standard/74528.html>.  Technically
              equivalent specification text is available at
              https://web.archive.org/web/20181230041359if_/
              http://www.open-std.org/jtc1/sc22/wg14/www/abq/
              c17_updated_proposed_fdis.pdf
              (https://web.archive.org/web/20181230041359if_/
              http://www.open-std.org/jtc1/sc22/wg14/www/abq/
              c17_updated_proposed_fdis.pdf)

But that's what I'm seeing now:

Can you explain the unnecessary early line breaks in HTML? Because I'm not seeing any. Maybe the whole URL could have moved to the next line.

And this is a screenshot from the HTML:

You can clearly see the early line break after open-

The -04 renderings linked above apparently were made with 3.20.1, while the -03 ones (which also exhibit these weirdnesses) were made with 3.20.0.

This is how https://www.ietf.org/archive/id/draft-ietf-cbor-cddl-more-control-04.html#C
looks like in Safari Version 17.4.1 (196<IP_ADDRESS>.14):

Looks similar.  Maybe this is indeed an artifact of browser line breaking preferring line-breaking after the hyphen; let's focus on the .TXT weirdness then.

(This is what I get in Safari with a narrow window.  Weird.)


Bugfix to handle broker resource state transitions to offline or dropped

Iterate over correct data structures to remove table while handling broker resource
state transition from online to offline/dropped state

Original code was iterating over wrong data structures. It iterated over brokerRoutingTable which is keyed by tableName to find an entry in tableForInstance which is keyed by instance name. And then, it accessed the returned value without null check. That throws NPE.
There are no existing tests. I won't have time to start a new one for this complex piece. It should've been added when this code was redone.

Isn't there an issue in BrokerResourceOnlineOfflineStateModel as well?
In the method onBecomeOnlineFromOffline() it seems we are using the broker resource name as table name?

As @mcvsubbu mentioned, the onBecomeOfflineFromOnline (and the dropped transitions) pass the resource name ("brokerResource") incorrectly, they should also pass the partition name (as is done correctly in onBecomeOnlineFromOffline).

Current coverage is 66.64% (diff: 0.00%)

No coverage report found for master at 0636938.

Powered by Codecov. Last update 0636938...05a1a02

@jfim You should address the issue with onBecomeOfflineFromOnline in separate PR


QuBase independent and sparse support.

Most of the current functionality gets broken. Specially the ODE solvers. Sparse support is aimed at and QuBase arrays are replaced by AbstractVector, AbstractMatrix, SparseVector, SparseMatrixCSC as required with creation of new types.

Tests, Docs and QuTiP functions are WIP.


Readme doesn't show how this helps

It would be useful for it to show example suggestions.

We have a couple of examples linked in the README now, so I guess that should be enough. If you have a suggestion for more, please open a new issue.


transition

merge the transition branch (NPM transition) to the dev branch (changes branch)

package.json: remove @unifiton/
package-lock.json: deleted
README.md: add badge + remove @unifiton/


WebClient Refresh Issue : On Sales Order, Sales Lines not refreshing on open.

Issue Description :-
I'm using NAV 2018, I have created few custom fields on Customer table.
Added a Card page to take input for Customer's custom fields.
I've added code to open custom page on Sales Order onopenpage trigger with RunModal.
The things are working fine in RTC, but in Web Client Sales lines not refreshed, once i click on any action then only lines showing.
I tried to place the code in Onaftergetrecord trigger, then the caption not render for some fields in Web Client.
Application : Dynamics NAV 2018
Version : GB Dynamics NAV 11.0
BUILD : 11.0.49345.0
Sample Code :
IF ( lCustomer.GET("Sell-to Customer No.")) AND (NOT lCustomer.Complete) THEN BEGIN
CustomerAdditionalInfo.LOOKUPMODE(TRUE);
CustomerAdditionalInfo.SETRECORD(lCustomer);
CustomerAdditionalInfo.RUNMODAL;
END;


More consistent errors

always throw error on ‘use after destroy’
early return after destroy in the case of internal ‘use after
destroy’ instead of throwing an exception

cc @ralphtheninja

:+1:


Libreoffice + Langtool plugin: java.lang.NoClassDefFoundError: java/util/logging/Logger

Describe the bug
When using libreoffice-fresh with the Languagetool plugin I get the following error.

I'm assuming this is caused by the following code. Since it doesn't include the java.logging module.
https://github.com/NixOS/nixpkgs/blob/a03ae0e6d078cfdbb8404c3bff3622bd4e2f1c57/pkgs/applications/office/libreoffice/default.nix#L27-L29
Steps To Reproduce
Steps to reproduce the behavior:

Install libreoffice-fresh
Install the Languagetool plugin
Try to open Libreoffice Writer

Expected behavior
The Languagetool plugin doesn't cause a runtime error.
Notify maintainers
@Ma27
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
❯ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.10.99, NixOS, 21.11 (Porcupine)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.5.0pre20211206_d1aaa7e`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

I'm assuming this is caused by the following code.
https://github.com/NixOS/nixpkgs/blob/a03ae0e6d078cfdbb8404c3bff3622bd4e2f1c57/pkgs/applications/office/libreoffice/default.nix#L27-L29

Hm, jre_minimal tests seem to confirm it; does adding "java.logging" there help?

Happy to take a look by the end of the week :)

@Ma27 That'd be great if you could do that. I tried building it on my laptop. But it was still building after ~3 hours. :)


Tuple checks fail to compile with noUncheckedIndexedAccess

📝 Summary
Write a short summary of the bug in here.

Typia Version: 4.1.11, 5.0.1-dev.20230831
Expected behavior: Tuple checks compile with noUncheckedIndexedAccess enabled
Actual behavior: Receives syntax error on tsc evaluation.

Write detailed description in here.
When trying to write a validator that accepts tuples (with noUncheckedIndexedAccess enabled) I receive the following errors:
src/types_gen/dialogueTypes.ts:39:21 - error TS2532: Object is possibly 'undefined'.
 39                 if (pred[0](array))

... more of the same...

I believe the fix is simply to change the compiled code to be if (pred[0]!(array)) as it looks overall a safe lookup. I believe this can be accomplished by adding the exclamation marks to the createIdentifier lines on 136 and 142 (but not familiar enough with the code to be sure): https://github.com/samchon/typia/blob/b0005b7516d58dadcda9f2afbaf645cc42a165e1/src/programmers/internal/check_union_array_like.ts#L136C9-L142C67
⏯ Playground Link
https://typia.io/playground/?script=JYWwDg9gTgLgBDAnmYBDANHA3g1BzAZzgF84AzKCEOAIiRVRoG4AoF4AOxgFMozUAxtzgAxCBGxwpcFlIBGqKAC44AbQ4BXEHN6YAdAc3beqgLqmAPqoIwonPPoM27HPGdMtibAPTeAtAF+LL5wAGoAggAyAJIAIuEAKtEA8gBywf6BLPRoegJQ3Kg80QQAPGIQAHwAFACUrBmBQSEASuGpsckAso1ZOah5BUXcLagcACZU5eI19T6ZARlwAFIAymm9i-16AFYEEByDhTyrtvbAZIjTVXUNIb5NSyEACi3JCckAwsmRcABCAFURCIAKItJ4LZreBDIXJgSgwCByDRkI7DEEcAQQcbca6zVhAA
💻 Code occuring the bug
import typia from "typia";

interface Foo {
  bar: [number, ...number[]]|[string, ...string[]]
}

const test = typia.createValidateEquals<Foo>();

Upgrade to v5.0.2, then it would be fixed.

Woah, was not expecting a fix this fast!
Confirmed on my end, and now I can delete ~30 lines of validation code.
Thanks so much!!!


Instruction to create a mapping file

Hello,
I wanted to write a mapping file, can you share the step by step instructions for writing a mapping file.
Regards,

Hi,
To help me understand, what it the exact difficulty you are facing? Do you have a source database and a target rdf schema? Could you please provide an example of a source table and a target rdf triple?
What have you tried so far?
Best,
Nikos

Hello,
Thank you.
I have complied the repository and test example is running successfully.
I wanted to use it for my data but I am don't understand where do I need to
make changes.
Can you please let me know what do I need to do to run different data and
RDF schema?
Regards,
On Tue, Jul 28, 2020 at 4:33 PM Nikolaos Konstantinou <
<EMAIL_ADDRESS>wrote:

Hi,
To help me understand, what it the exact difficulty you are facing? Do you
have a source database and a target rdf schema? Could you please provide an
example of a source table and a target rdf triple?
What have you tried so far?
Best,
Nikos
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/nkons/r2rml-parser/issues/41#issuecomment-665076579,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA6IKFSHNS4ES6OCOEUO26DR53OSTANCNFSM4PFXGGMQ
.

--
Gautam Kishore Shahi,


fix(linter): eprintln unmatched rules warning

We can make this a hard error and bail early once stable.

Merge activity

Oct 26, 4:58 AM EDT: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.


Inspect all transitive dependencies of an integration

Release Note
kind/feature

This patch adds more functionality to the kamel inspect subcommand. The default behavior of this command consists of outputting the top level dependencies. In this patch we enable the saving of the transitive dependencies for an integration in a specific location on the file system local to where the kamel inspect command was invoked. The transitive dependencies consists of all the jar files required for successfully running the integration.

@lburgazzoli I think I have addressed all the comments. Please let me know what you think. I've made some changes to where the functions that compute the integration dependencies and their sanitization are defined. Let me know if you agree with the move.

@lburgazzoli I have modified the patch to only print transitive dependencies. Please let me know if you have any further comments.

That's cool @doru1004 .
The only thing strange I see is that the output looks like:
[nferraro@localhost camel-k]$ kamel inspect examples/simple.groovy --all-dependencies --output=yaml
[INFO] Scanning for projects...
[INFO]
[INFO] ---------< org.apache.camel.k.integration:camel-k-integration >---------
[INFO] Building camel-k-integration 1.3.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- camel-k-maven-plugin:1.5.0:generate-dependency-list (default-cli) @ camel-k-integration ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.856 s
[INFO] Finished at: 2020-11-05T15:24:46+01:00
[INFO] ------------------------------------------------------------------------
dependencies:
- /home/nferraro/.m2/repository/org/apache/camel/k/camel-k-loader-groovy/1.5.0/camel-k-loader-groovy-1.5.0.jar
- /home/nferraro/.m2/repository/org/apache/camel/k/camel-k-runtime-core/1.5.0/camel-k-runtime-core-1.5.0.jar

I.e. the maven part should be probably removed from the output. Wdyt?

Or at least shown only when there's an error

I.e. the maven part should be probably removed from the output. Wdyt?

The maven needs to be run to fetch the dependencies. I'm guessing your concern is regarding whether the output of that command is shown or not. Is that correct?

I.e. the maven part should be probably removed from the output. Wdyt?

The maven needs to be run to fetch the dependencies. I'm guessing your concern is regarding whether the output of that command is shown or not. Is that correct?

Yes, it's only about the output. I imagine that external tools that are going to process the output of that command may get confused.

After changing to use quarkus I'm getting this type errors when inspecting a simple integration:
[ERROR] 'dependencies.dependency.version' for org.apache.camel.quarkus:camel-quarkus-core:jar is missing. @ line 37, column 17
[ERROR] 'dependencies.dependency.version' for org.apache.camel.quarkus:camel-quarkus-kafka:jar is missing. @ line 41, column 17
[ERROR] 'dependencies.dependency.version' for org.apache.camel.quarkus:camel-quarkus-slack:jar is missing. @ line 45, column 17

Any thoughts?

After changing to use quarkus I'm getting this type errors when inspecting a simple integration:
[ERROR] 'dependencies.dependency.version' for org.apache.camel.quarkus:camel-quarkus-core:jar is missing. @ line 37, column 17
[ERROR] 'dependencies.dependency.version' for org.apache.camel.quarkus:camel-quarkus-kafka:jar is missing. @ line 41, column 17
[ERROR] 'dependencies.dependency.version' for org.apache.camel.quarkus:camel-quarkus-slack:jar is missing. @ line 45, column 17

Any thoughts?

I think you need to add the quarkus bom as it's done in the builder

@nicolaferraro I resolved the error. The change involves moving to running with Quarkus specific project building and dependency resolution routines.

I managed to prevent the output of the mvn command from being emitted. This is still an issue with one of the warning being emitted:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/dorubercea/.m2/repository/org/jboss/slf4j/slf4j-jboss-logging/1.2.0.Final/slf4j-jboss-logging-1.2.0.Final.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/dorubercea/.m2/repository/org/apache/logging/log4j/log4j-slf4j-impl/2.13.3/log4j-slf4j-impl-2.13.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.jboss.slf4j.JBossLoggerFactory]

I'm not sure how to get rid of this one.

@nicolaferraro I briefly had another error where a warning would be printed when running the maven command. It turned out to be an error on my side as I was using the wrong runtime dependency. Can confirm that no other output than the list of dependencies is being printed.


Error while compile

Describe your bug here.
so i was compiling and there was an error and it says this
source/psychlua/CallbackHandler.hx:48: characters 18-33 : Class<llua.Lua_helper> has no field sendErrorsToLua
source/psychlua/CallbackHandler.hx:48: characters 41-46 : Class<llua.LuaL> has no field error
source/psychlua/FunkinLua.hx:273: lines 273-276 : Int should be Bool
source/psychlua/FunkinLua.hx:273: lines 273-276 : ... For function argument 'f'
Command Prompt/Terminal logs (if existing)
No response
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
no

bro how you solved it?


Can't configure integration / connect to GitHub organization

Can't configure integration / connect to GitHub organization.
Error message:
"Looks like something went wrong!
Session information missing - please enable all cookies in your browser settings.
We track these errors automatically, but if the problem persists feel free to contact us. In the meantime, try adding an organization again in Jira."
Activated all cookies and even tried in different browsers, still not working.

Hey @fc-reus. Just to give you an update on this: one of my team members has an open PR to try and resolve this issue. It's currently going through the review process and should hopefully be merged this coming week. Thanks for your patience on this.

Hi @rachellerathbone, we're having the same issue as @fc-reus, however we've just seen that the PR has been closed. We're currently unable to link Jira and GitHub, is there a workaround to this issue?

It seems the issue was cookie related and we've now connected it correctly.

How did you manage to connect it?

@fc-reus it'll work if you enable 3rd party cookies and refresh the landing page.  There was a security flaw that was fixed but made it that the user needs to have those cookies enabled for it to work until we get the proper solution out. We have one in the works, but as a workaround your just need to enable that setting in your browser.

@fc-reus We've had a fix for the blocked 3rd party cookies that just went out.  You can now re-enable your cookie security policy as it was before.  Let me know if this is still affecting you or you can please close this issue if you're satisfied.  Thanks.

Unfortunately I already used the workaround to connect it, so I can't test it anymore

I'm going to close this issue in that case.  Open it again if you ever have more issues surrounding this.  Thanks!


datasets

I have downloaded all the datasets but it is not specified how where to extract them
in order for the bot to gain this knowledge
https://github.com/facebookresearch/craftassist#datasets

Hi @scatterp3 ,
Does the above answer your question ?

yes thank you also for your information I read  paper that confirmed feeding baritone data works very well if you want more data that is (tested on mineml)

Great! thanks a lot.
Closing this issue for now but feel free to reopen / create a new issue if there are any followup questions.


[PE-D][Tester A] User story not matching

In the user story shown, knowing the types of tags does not match with keeping track of client preferences. A better function could be similar to being able to add tags to the contacts.

Labels: severity.Low type.DocumentationBug
original: DesSnowy/ped#17

I feel we can close this as it is classified under good to have

Since it's labelled good to have, we will just leave it there. Not a bug.


[Hotfix] Display correct error message for invalid Figshare credentials [OSF-8004]

Purpose
Display correct error message for invalid Figshare credentials
Changes

Except a 403 in before_page_load

Side effects
None expected
Ticket
[OSF-8004]

Looks correct. Good to merge when tests are passing.


compact actor in outgoing activities?

Multiple other servers choke on our activities that have expanded actor/author/attributedTo objects instead of compacted ids. These expanded actors comply with the AS2/AP specs, but still. Some other implementations are deliberately choosing not to support expanded objects, eg https://github.com/LemmyNet/lemmy/issues/2665#issuecomment-1740918206 . Should we compact our actors in outgoing activities for interop?

This may fix #580, #531, #375, #374, #372, #39, #12, #9, #8.


Is it necessary to make this package so big?

I have a small host which counts 100MB. I need your lib to log in. This lib has 26MB. Its few times bigger than other libs including whole framework. It is not possible to decrease the size or divide it to more than one package? I dont need tests nor games libs .....

If you are using this client for authentication only, you may be able to accomplish your goals using the google/auth library.
If you're not using any APIs in google/apiclient-services, you can prevent it from being installed by adding the following to your root composer.json file:
{
	"replace": {
		"google/apiclient-services": "self.version"
	}
}

If you're using the downloadable package, or need some but not all of the included clients, you could simply delete the unnecessary files and directories from vendor/google/apiclient-services/src.

To use the google/auth package to retrieve an access token for a user, you can do the following:
// Create the auth client
$credenitalsFile = '/path/to/client-credentials.json';
$credentials = json_decode(file_get_contents($credentialsFile), true);
$oauth2 = new Google\Auth\OAuth2([
    'client_id' => $credentialsFile['client_id'],
    'client_secret' => $credentialsFile['client_secret'],
    'scope' => 'https://www.googleapis.com/auth/drive',
]);

// Rudimentary filecache
$accessTokenFile = '/path/to/access-token.json';

if (isset($_GET['code'])) {
    $oauth2->setCode($_GET['code']);
    // If we have a code back from the OAuth 2.0 flow, exchange that for an access token.
    file_put_contents($accessTokenFile, json_encode($oauth->fetchAuthToken()));
}

if (file_exists($accessTokenFile)) {
    // $accessToken has a refresh token because "access_type" is set to "offline"
    $accessToken = json_decode(file_get_contents($accessTokenFile));
    $oauth->updateToken($accessToken);
} else {
    // Redirect the user back to this page after authorization
    $redirectUri = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
    $authUri = $oauth->buildFullAuthorizationUri(['redirect_uri' => $redirectUri]);
    // Redirect the user to the authorization URI
    header('Location: ' . $authUri);
    return;
}

// Make the call with the access token
$middleware = new Google\Auth\Middleware\AuthTokenMiddleware($oauth2);
$stack = GuzzleHttp\HandlerStack::create();
$stack->push($middleware);
$client = new GuzzleHttp\Client([
    'handler' => $stack,
    'auth' => 'google_auth'
]);

$response = $client->get('https://www.googleapis.com/drive/v3/files');

You can now specify only the services you want in your composer.json! See https://github.com/googleapis/google-api-php-client#cleaning-up-unused-services
This will be released in v2.7 later today


Not allowed more than one execution for a notebook cell

Version: 1.58.0-insider (user setup)
Commit: 1fc68f3cf274141942b424894645a4f7096ec1f1
Date: 2021-07-01T09:30:57.217Z
Electron: 12.0.13
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.19043
I recently implemented execution syncing for Live Share notebooks. When working on this I realized that you Cannot call start again on a CellExecution. I assumed this meant that you could not call start twice, and that each task was single-use. I confirmed this with a sample repro extension this morning.

To sync outputs and execution states between the host and guest, I need to update the guest notebook both when the host's execution state changes and also when the output changes. However, these events are not guaranteed to happen in a specific order and also there are situations in where the cell output does not change for a given action. My approach was to create a new execution task to deal with outputs, and also create a new execution task to deal with execution state changes. This approach worked last week - execution states and outputs were syncing as expected.
However, these changes no longer work. Execution syncing is broke and the following error is shown when trying to run a cell.

Based on this,  is there a new requirement that there cannot be more than one execution task per cell? How can you run a cell more than once if you can:

only start an execution task once and
only have one execution task per cell

NotebookCellExecution is not disposable, so I'm not sure how I can dispose of executions in order to create more?
cc @rebornix @jrieken

Hey @roblourens, any updates here?

There isn't a new change here, so I'm not sure why it would have worked before. I don't think it makes sense to say that one cell is involved in two executions at the same time. I would suggest having one execution object in some map, and when you have to do an output update, first check whether there is an active execution for that cell.

And make sure that you call end() on an execution to complete it.

I didn't change anything in Live Share's code and the above errors are no longer displayed when executing cells. I am not sure what happened, but it doesn't seem to be a problem any longer. I'll close the issue.


Feature request: Include gdb (with python support)

>Scripting in the "Python" language is not supported in this copy of GDB.

Would be great if gdb were compiled with python. Now sure how involved this would be.

Hey,
What I recommend is to use gdb-server and then using gdb-multiarch to connect to the target.
This way you have all the python you want without getting a lot of complication inside the VM.
Check out the port forwarding option:
https://github.com/nongiach/arm_now/wiki/2.2-Network:-Internet-and-port-forwarding

Yeah fair enough, but then my request would be to include gdbserver :)

Yep, that's right. It's in coming.


Create Project TouCans straight keyer

Create a straight keyer for Project TouCans that can be controlled via a web page interface.
The project should use three relays, one for each input to the Project TouCans keyer.
First steps: high priority;
Steps:

Demonstrate the Pico W can serve web pages on a local network
Demonstrate the web page causing a relay to close
Demonstrate the web page keying the Project TouCans straight key

Deferred and low priority;
Steps
Eventually this will be deployed inside Project TouCans. For that, we'll first need to establish if the Pico W can serve web pages while the radio is in transmit operation.

The trick so far has been to have the Pico not serve the web page. keyflex.html is now setup to make a side tone.

OK! We don't need a separate command interface for an iambic keyer. Just send multiple 't's and 'e's.

This talks about how to setup a side tone

Working on adding the cw player to the Pico-W's keyer program.
Messages sent to the device are formatted like
cq+de+kd0fnr%2F6+k
in mancwmsg.py
The Pico-W server code converts the '+' characters to ' '.
So, the way we're recording the length of key down and key up is already ok, (we send numbers in units of milliseconds with '+' characters between them.) Here's an example:
275+153+107+118+267+110+103+296+292+116+320+122+86+118+389+
denoting a cq.
Transcript for parsing the above.
Python 3.11.8 (tags/v3.11.8:db85d51, Feb  6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> test = "275+153+107+118+267+110+103+296+292+116+320+122+86+118+389+"
>>> keys = test.split("+")
>>> keys.len()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'list' object has no attribute 'len'
>>> len(test)
59
>>> len(keys)
16
>>> test = "275+153+107+118+267+110+103+296+292+116+320+122+86+118+389"
>>> keys = test.split("+")
>>> len(keys)
15

Next: add code to the server loop to detect a new command: 'sk'.


Improve default tests

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

Comparison is base (4869f4e) 100.00% compared to head (a703662) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #418   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           73        73
  Lines         2568      2568
  Branches       415       415
=========================================
  Hits          2568      2568

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