[Bug] Validator can not restart repeating [state sync] request next chunk

Log of node that is failing to start:

D1118 20:27:43.939242<PHONE_NUMBER>64832 state-synchronizer/src/coordinator.rs:544] [state sync] request next chunk. peer_id: 557295fc, known_version: 2279, timeout: 0

https://gist.github.com/4c2b2f4918f7ee312979b4ef03b705d6
First suspect is https://github.com/libra/libra/pull/1743

Transaction size has grown >10x to 6.79KB, so 1000 txns chunk is larger than the 4MB GRPC limit.

The immediate problem is solved with a workaround of reducing the state synchronization chunk size, opened issues for a proper solution.


Upgrade node-sass and qunit-phantomjs-runner

Thanks but we update the dependencies ourselves periodically.
Let alone you are on on macOS and due to a bug in npm you add stuff to package-lock.json that are going to be removed if anyone runs npm i on another platform.

np


Prism instances not detected in Playnite

I gave the path to the folder where my prismlauncher.exe is but nothing shows up, not a single instance. Did I do something wrong?

@hades3729 Have you checked the playnite log? It may give some insight.

Same here, where log ?

Hey, Mines having the same problem.
What exactly did you mean when you say you renamed it? did you rename it to multimc.exe or something?

i may be late to this, but i recently installed Playnite and wanted to a PrismLauncher myself and came to the same Issue as this Github Issue.
now as you did not name the folder you set in playnite i just asume you put it as the Folder where the game instances are located, which is wrong. (instance root folder: C:\Users<User>\AppData\Roaming\PrismLauncher)WRONG
You need to put it to the root of where the prismlauncher.exe is located, standard install location is: C:\Users<User>\AppData\Local\Programs\PrismLauncher

Im having a similar issue with PrismLauncher, it's pulling in instances named with numbers, periods, and no letters, and no spaces, but wont pull in any named instances like Agrarian Skies, or the like, quotes and spaces or lack thereof aren't changing anything, it keeps giving "Input string not in correct format"


Z and ZZ tokens should return Z when UTC mode

Pull request #3098 modified the default format function to return Z as the offset when in UTC mode, pursuant to the ISO8601 specification.
This only occurs when using the default format. As discussed in the pull request itself, it probably makes sense to either change the behavior of the Z and ZZ tokens to work this way as well, or to make a new token that does.

Any progress on this?
We're working with an API that expects dateTimes in ISO8601 format (utc). That is 2016-06-10T16:47:00Z but moment returns 2016-06-10T16:47:00+00:00

+1


client side table shows after manually sort a column

Do you have any idea why the client side table, loads with the manual data. User need to click the sorting to see the data?
I use Promise.

Because you get date after the first $digest loop, the table for performance optimization does not let other data come in.
If you want make it work, I explain it in this page http://zizzamia.com/ng-tasty/directive/table/simple-http,
and you just need add watch-resource="collection".
Let me know if does work.
Have a great weekend.


Request MoveChess to the Taiko Explorer

Title of your project
MoveChess - Brilliant Moves on Taiko
Short (1-2 sentence) description of your project
MoveChess is a chess project currently under development by the MoveLabs team. Its primary goal is to provide a platform for chess enthusiasts within the Taiko community and offer various activities related to NFT rewards on the MoveChess platform.
Link to your project
https://movechess.com
Live on Testnet
No
If your project is live on one of Taiko's testnets, please provide evidence of that here (eg. links, screenshots).
MoveChess is currently deploying its landing page and developing the smart contract. We will provide any necessary evidence for the team and users very soon
Upload a quality logo to your project

Hey @movechess-labor,
When can we expect the app to be deployed?

From MoveChess,
our primary focus is on developing our game engine. In addition to that, we have completed our landing page, which is currently in the staging phase. We plan to deploy the landing page next week.

Hey @movechess-labor,
When can we expect the app to be deployed?

From MoveChess,
our primary focus is on developing our game engine. In addition to that, we have completed our landing page, which is currently in the staging phase. We plan to deploy the landing page next week.


Support exclusion of flavors when conditonally defining assets

Use case
Imagine I have an app with 20 flavors. I want that one file to be included in 19 flavors but not one specific one.
I would need to add all 19, except for 1 in that big list.
# pubspec.yaml
flutter:
  assets:
    - assets/normal-asset.png
    - path: assets/good-tasting.png
      flavors:
        - vanilla
        - strawberry
        - chocolate
        - lemon
        - smurf
        - orange
        - ...more

Proposal
How about handling it like in a .gitignore with "!" so it will be included in all other flavors, excluding the ones marked with "!"
# pubspec.yaml
flutter:
  assets:
    - assets/normal-asset.png
    - path: assets/good-tasting.png
      flavors:
        - !strawberry

Thanks for the feature request! I think something like this makes sense, and I would be willing to review a PR that adds this (especially if the logic wouldn't result in a high maintenance burden and/or this turns out to be a popular feature request). One could look at the PR that introduced flavor-conditional asset bundling to figure out what would need to be modified to implement this feature request.


Update Elastirini with MS MARCO Doc

@eiston Can you take a quick look to confirm? Thanks in advance!

@eiston Can you take a quick look to confirm? Thanks in advance!
Okay 👌

This seems fine, although the output file is inconsistent with the integration test as in the test it is stored in the runs/ folder, however, it is consistent with the rest of the document so I am not sure if it matters. I am currently running indexing to make sure everything is fine. I also noticed the for the msmarco-passage section of this document, for indexing, JsoupGenerator does not exit, changing it to DefaultLuceneDocumentGenerator works.

This seems fine, although the output file is inconsistent with the integration test as in the test it is stored in the runs/ folder, however, it is consistent with the rest of the document so I am not sure if it matters. I am currently running indexing to make sure everything is fine. I also noticed the for the msmarco-passage section of this document, for indexing, JsoupGenerator does not exit, changing it to DefaultLuceneDocumentGenerator works.

Yes, please make the documentation consistent... I don't think anyone has updated these docs in a while (which is precisely why I'm asking for help on these). Yes, please change to DefaultLuceneDocumentGenerator.
Update this PR directly with your patch?

I have updated the documentation, please review

I have updated the documentation, please review

Seems fine to me

Hrm... I ran this:
$ python src/main/python/run_es_regression.py --regression msmarco-doc --input /tuna1/collections/msmarco/doc
...
2020-05-08 14:34:32,376 INFO - [SUCESS] 0.2308 MAP verified as expected!

In the end I got .2308 MAP, but that doesn't actually match the .2310 MAP reported here: https://github.com/castorini/anserini/blob/master/docs/regressions-msmarco-doc.md
I'll merge this for now and file a new issue.


public-firing-range needs updating

The public-firing-range is several versions old and a new version needs to be pushed.  Note for example the difference between what is checked into the repo and what's hosted at public-firing-range.appspot.com/dom - specifically the lack of external script loading toxicdomscripts tests.

Pushed!


Rna improvements

prepare_compliance_data.py was not actually adding the rna data to the main repo.db, but now it is

+1

rebase/merge at will. If you get a +1 from @saupchurch it's mergeable to the topic branch imo.

Roger that.  Merging...


Error when training model

Rasa NLU version (e.g. 0.7.3):
0.11.3
Used backend / pipeline (mitie, spacy_sklearn, ...):
spacy_sklearn
Operating system (windows, osx, ...):
OS X
Issue:
I am trying to train a custom model but it fails instantly when I call the command python -m rasa_nlu.train -c config_spacy.json
File "/Users/Sven/.asdf/installs/python/3.6.4/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/Users/Sven/.asdf/installs/python/3.6.4/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/Sven/.asdf/installs/python/3.6.4/lib/python3.6/site-packages/rasa_nlu/train.py", line 125, in <module>
    do_train(config)
  File "/Users/Sven/.asdf/installs/python/3.6.4/lib/python3.6/site-packages/rasa_nlu/train.py", line 111, in do_train
    trainer = Trainer(config, component_builder)
  File "/Users/Sven/.asdf/installs/python/3.6.4/lib/python3.6/site-packages/rasa_nlu/model.py", line 126, in __init__
    components.validate_requirements(config.pipeline)
  File "/Users/Sven/.asdf/installs/python/3.6.4/lib/python3.6/site-packages/rasa_nlu/components.py", line 58, in validate_requirements
    component_class.required_packages()))
  File "/Users/Sven/.asdf/installs/python/3.6.4/lib/python3.6/site-packages/rasa_nlu/components.py", line 41, in find_unavailable_packages
    importlib.import_module(package)
  File "/Users/Sven/.asdf/installs/python/3.6.4/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/Users/Sven/.asdf/installs/python/3.6.4/lib/python3.6/site-packages/spacy/__init__.py", line 4, in <module>
    from .cli.info import info as cli_info
  File "/Users/Sven/.asdf/installs/python/3.6.4/lib/python3.6/site-packages/spacy/cli/__init__.py", line 1, in <module>
    from .download import download
  File "/Users/Sven/.asdf/installs/python/3.6.4/lib/python3.6/site-packages/spacy/cli/download.py", line 10, in <module>
    from .link import link
  File "/Users/Sven/.asdf/installs/python/3.6.4/lib/python3.6/site-packages/spacy/cli/link.py", line 8, in <module>
    from ..util import prints
  File "/Users/Sven/.asdf/installs/python/3.6.4/lib/python3.6/site-packages/spacy/util.py", line 8, in <module>
    import regex as re
  File "/Users/Sven/.asdf/installs/python/3.6.4/lib/python3.6/site-packages/regex.py", line 683, in <module>
    _pattern_type = type(_compile("", 0, {}))
  File "/Users/Sven/.asdf/installs/python/3.6.4/lib/python3.6/site-packages/regex.py", line 436, in _compile
    pattern_locale = _getlocale()[1]
  File "/Users/Sven/.asdf/installs/python/3.6.4/lib/python3.6/locale.py", line 581, in getlocale
    return _parse_localename(localename)
  File "/Users/Sven/.asdf/installs/python/3.6.4/lib/python3.6/locale.py", line 490, in _parse_localename
    raise ValueError('unknown locale: %s' % localename)
ValueError: unknown locale: UTF-8

Content of configuration file (if used & relevant):
{
    "pipeline": "spacy_sklearn",
    "path": "./projects",
    "data:": "./data"
}

Folder structure:

Looks like it is actually a python error, I added some env variables and it works now


[Chore] Update GitHub org reference

Signed-off-by: leecalcote<EMAIL_ADDRESS>Description
This PR fixes #
Notes for Reviewers
Signed commits

[ ] Yes, I signed my commits.

🚀 Preview for commit d0a6e995a7f8aff7b3d8b599d2ea515042fd5239 at: https://6144eea682275d008c21a4c3--meshery-docs-preview.netlify.app


HasMethod typing is not matching implementation

HasMethod is currently typed very restrictively:
https://github.com/Vincit/objection.js/blob/412bb77b9cf69496e477c38fc10bca679ceca461/typings/objection/index.d.ts#L602-L604
even though the actual implementation supports other types of filters:
https://github.com/Vincit/objection.js/blob/412bb77b9cf69496e477c38fc10bca679ceca461/lib/queryBuilder/QueryBuilderOperationSupport.js#L464-L478
In particular, the following is not valid Typescript even though it's actually valid working code:
query.has((op) => op.name === "select" && op.args[0] === "id")

It matches the public API https://vincit.github.io/objection.js/api/query-builder/other-methods.html#has.
As you know, javascript doesn't have polymorphic methods. That's why objection sometimes has extended functionality for some methods for internal use and only documents a part of it in the public API. I don't want to expose the operation classes to the outside world. Doing that would lock their API and I wouldn't be able toi change it without major version bump.


Issues with uploading fanduel player data

I keep getting this "Incorrect csv format" error, I don't make any changes to the downloaded data from fanduel if someone knows what's going on please help! Thank you.

(warning: noob just trying to be helpful)
Should it be this...instead of load_lineups?
optimizer.load_players_from_CSV("path_to_csv")


feature: replace Goerli with Sepolia

Summary
Goerli Testnet will be shut down till the end of the year. We should move to Sepolia.
Expected behavior / User Story
With did:ethr or did:pkh method selected, users can switch selected networks. Instead of Mainnet and Goerli, there should be Mainnet and Sepolia.

Sepolia has already been added. When the time comes, we just remove Goerli support.


(brew): Remove bottle :uneeded

Per https://github.com/Homebrew/homebrew-core/issues/75943.
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the bwhaley/ssmsh tap (not Homebrew/brew or Homebrew/core):
  /usr/local/Homebrew/Library/Taps/bwhaley/homebrew-ssmsh/ssmsh.rb:10

Thanks for this fix!


Add support to codecov.io

Fixes #42

Add new script to execute tests on Travis gathering all coverage reports in one file.
Update TravisCi file in order to execute this script and send data to codecov.io
Add codecov.io badge to README
Update README regarding code coverage

Current coverage is 100% (diff: 100%)

No coverage report found for master at 82f39de.

Powered by Codecov. Last update 82f39de...7d9f9d4

@fern4lvarez LGTM


Remove log from operation

How to categorize this PR?

/area deployers
/kind enhancement
/priority 3
What this PR does / why we need it:
Removes log from basic operation.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note:

NONE

/test

/test

/test

/test


Mark TestMemoryManager.testResourceOverCommit as flaky

https://github.com/prestosql/presto/issues/4948

Looks good modulo the build issue:
2020-10-29T15:24:45.4897724Z [INFO] --- maven-dependency-plugin:3.1.2:analyze-only (default) @ presto-tests ---
2020-10-29T15:24:45.5758508Z [WARNING] Used undeclared dependencies found:
2020-10-29T15:24:45.5762497Z [WARNING]    io.prestosql:presto-testng-services:jar:346-SNAPSHOT:compile

We can merge this now to unblock the builds, however it seems to me that the underlying issue is a race condition between these two:
SqlTaskManager's updateTask
        // Session property query_max_memory_per_node is used to only decrease memory limit
        if (sessionQueryMaxMemoryPerNode <= queryMaxMemoryPerNode) {
            queryContexts.getUnchecked(taskId.getQueryId()).setMaxUserMemory(sessionQueryMaxMemoryPerNode);
        }

        if (sessionQueryTotalMaxMemoryPerNode <= queryMaxTotalMemoryPerNode) {
            queryContexts.getUnchecked(taskId.getQueryId()).setMaxTotalMemory(sessionQueryTotalMaxMemoryPerNode);
        }

        if (resourceOvercommit(session)) {
            // TODO: This should have been done when the QueryContext was created. However, the session isn't available at that point.
            queryContexts.getUnchecked(taskId.getQueryId()).setResourceOvercommit();
        }

and
QueryContext#updateSystemMemory
if (delta >= 0) {
            enforceTotalMemoryLimit(totalMemory, delta, maxTotalMemory);
            return memoryPool.reserve(queryId, allocationTag, delta);
}

first two if conditions in SqlTaskManager#updateTask bring down the query's local memory limit even when recource overcommit has been set. Then even before  queryContexts.getUnchecked(taskId.getQueryId()).setResourceOvercommit(); is invoked, the query fails because of the check in QueryContext#updateSystemMemory.

Ref: #5741

-> https://github.com/prestosql/presto/pull/5741


[svg] Add Table and grid view icons

Current Behavior

Desired Behavior

Implementation

Acceptance Tests

Mockups

Contributor Guide

🎨 Wireframes and designs for Layer5 site in Figma (open invite)

@sudhanshutech  "Is this issue still open? If it is, could you please guide me on what to do exactly?"


Configuration via an environment variable

Summary

Implementation of #317.
Notes: in the docker-compose file, version is 3.3 and image name refers to latest of twinproduction/gatus (which will need to be changed for testing)
Checklist

[X] Tested and/or added tests to validate that the changes work as intended, if applicable.
[X] Added the documentation in README.md, if applicable.

I know I was originally open to the idea, but I've changed my mind.
I'm really sorry for making you work for nothing, but I don't want to advocate bad practices, and I feel like having an entire configuration in an environment variable is a bad practice. At least, as a platform engineer, if I saw this, I would think so.
Thank you for the contribution regardless!


GPU and CPU parallel

Issue
The computer cost will very large if we extent Peacock.jl to 3D or need a large cutoff. Using parallel technology can significantly reduce the computing time. Can we parallelize the solver?
GPU parallel
First,  We can use CUDA.jl to make computing run on Nvidia GPU. CuSolver is a linear algebra library of CUDA. It is easy to solve dense linear systems of the form Ax = b. We only need to convert Julia Array to CuArray, almost all function of LinearAlgebra.jl can be running on GPU:
# running on CPU
a = rand(2, 2); b = rand(2, 2)
c = a / b
# running on GPU
using CUDA
a_d = CuArray(a); b_d = CuArray(b)
c_d = a_d / b_d

Unfortunately, it may be inefficient to use CUDA to solve the eigenvalue and eigenvector of dense matrix (discourse1 discourse2). I also run  benchmarks :
julia>  a= rand(100,100); b = rand(100,100);
julia> @btime CUDA.CUSOLVER.syevjBatched!('V','U',CuArray(b)/CuArray(a));
  36.093 ms (577 allocations: 11.58 KiB)

julia> @btime eigen(a,b);
  29.361 ms (21 allocations: 428.78 KiB)

It should be note that the function CUDA.eigen of CUDA.jl only can run with Julia Array and just same as LinearAlgebra.eigen of LinearAlgebra.jl. By the wave, syevjBatched! only support Float32/Float64.
But we can still speed up Peacock.jl by using CUDA.jl, since GPU can solve Ax = b efficiently. I focus on the model of square lattice:
using PyPlot
using Peacock
using LinearAlgebra
using SparseArrays
using BenchmarkTools
using CUDA

get_k = Peacock.get_k
DiagonalMatrix = Peacock.DiagonalMatrix

# Permittivity
function epf(x,y)
    # equation of a circle with radius 0.2a
    if x^2+y^2 <= 0.2^2
        # dielectric inside the circle
        return 8.9
    else
        # air outside the circle
        return 1
    end
end

# Permeability is unity everywhere
function muf(x,y)
    return 1
end

a1 = [1, 0]  # first lattice vector
a2 = [0, 1]  # second lattice vector
d1 = 0.01  # resolution along first lattice vector
d2 = 0.01  # resolution along second lattice vector
geometry = Geometry(epf, muf, a1, a2, d1, d2)
fourier_space_cutoff = 17 #greater than tutorials
solver = Solver(geometry, fourier_space_cutoff)
G = BrillouinZoneCoordinate(  0,   0, "Γ")
X = BrillouinZoneCoordinate(1/2,   0, "X")
M = BrillouinZoneCoordinate(1/2, 1/2, "M")
ks = [G,X,M,G]
ks = [typeof(x)==BrillouinZoneCoordinate ? get_k(x,solver.basis) : x for x in ks]

polarisation = TE
k = ks[1]
basis = solver.basis
epc, muc = solver.epc, solver.muc
Kx = DiagonalMatrix(basis.kxs) + k[1]*I
Ky = DiagonalMatrix(basis.kys) + k[2]*I
Kx_d = CuArray(Kx); Ky_d = CuArray(Ky);
epc_d = CuArray(epc); muc_d = CuArray(muc)

and run benchmarks like that:
julia> @btime LHS_d = Kx_d/epc_d*Kx_d + Ky_d/epc_d*Ky_d;
  22.768 ms (20762 allocations: 337.38 KiB)

julia> @btime LHS_d = Kx_d/epc_d*Kx_d + Ky_d/epc_d*Ky_d;
  22.931 ms (18741 allocations: 303.83 KiB)

julia> @btime LHS = Kx/epc*Kx + Ky/epc*Ky;
  2.433 s (20 allocations: 6.96 MiB)

julia> @btime LHS = Kx/epc*Kx + Ky/epc*Ky;
  2.660 s (20 allocations: 6.96 MiB)

julia> size(LHS)
(225, 225)

GPU-based program is about 90 times faster than CPU! The other benchmark is test eigen:
julia> @btime eigen(RHS \ LHS);
  1.362 s (29 allocations: 3.55 MiB)

julia> @btime eigen(LHS, RHS);
  542.625 ms (19 allocations: 2.46 MiB)

julia> @time eigen(Array(RHS_d \ LHS_d));
  0.209265 seconds (17.91 k allocations: 3.053 MiB)

Despite eigen(LHS, RHS) is more efficient  than eigen(RHS \ LHS),  eigen(Array(RHS_d \ LHS_d)) is still the fastest one!
Now, we can change the code of solver.jl. Only one function is added:
function solve(solver::Solver, k::AbstractVector{<:Real}, polarisation::Polarisation, GPU::Int; bands=:)
    basis = solver.basis
    if GPU == 1
        epc, muc = CuArray(solver.epc), CuArray(solver.muc)
        Kx = CuArray(DiagonalMatrix(basis.kxs) + k[1]*I)
        Ky = CuArray(DiagonalMatrix(basis.kys) + k[2]*I)
        if polarisation == TE
            LHS = Kx/epc*Kx + Ky/epc*Ky
            RHS = muc
            label = L"H_z"
        elseif polarisation == TM
            LHS = Kx/muc*Kx + Ky/muc*Ky
            RHS = epc
            label = L"E_z"
        end
        freqs_squared, modes_data = eigen(Array(RHS \ LHS));
    else
        epc, muc = solver.epc, solver.muc
        Kx = DiagonalMatrix(basis.kxs) + k[1]*I
        Ky = DiagonalMatrix(basis.kys) + k[2]*I
        if polarisation == TE
            LHS = Kx/epc*Kx + Ky/epc*Ky
            RHS = muc
            label = L"H_z"
        elseif polarisation == TM
            LHS = Kx/muc*Kx + Ky/muc*Ky
            RHS = epc
            label = L"E_z"
        end
        freqs_squared, modes_data = try
            eigen(LHS, RHS)
        catch
            eigen(RHS \ LHS)
        end
    end

    freqs = sqrt.(freqs_squared)
    # Sort by increasing frequency
    idx = sortperm(freqs, by=real)
    freqs = freqs[idx][bands]
    modes_data = modes_data[:,idx][:,bands]
    # Eigenmodes are weighted by the RHS of the generalised eigenvalue problem
    weighting = RHS
    modes = Mode[]
    for i in 1:length(freqs)
        mode = Mode(k, freqs[i], modes_data[:,i], weighting, basis, label)
        push!(modes, mode)
    end
    return modes
end

The last function of band_diagrams.jl is change to:
function plot_band_diagram(solver::Solver, ks, polarisation::Polarisation, GPU::Int;
            dk=nothing, labels=[], bands=1:10, frequency_scale=1, color="k", markersize=nothing)
    # Convert BrillouinZoneCoordinate to labelled positions in k space
    if labels == []
        labels = [hasproperty(x,:label) ? x.label : "" for x in ks]
    end
    ks = [typeof(x)==BrillouinZoneCoordinate ? get_k(x,solver.basis) : x for x in ks]
    # Wrap all the variables into a single function of k that returns frequencies
    function my_solve(k)
        modes = solve(solver, k, polarisation, GPU)
        return [mode.frequency for mode in modes]
    end
    # Pass on to more general function
    plot_band_diagram(my_solve, ks; dk=dk, labels=labels, bands=bands, frequency_scale=frequency_scale, color=color, markersize=markersize)
end

And we can run the last benchmark -- plot a band diagram, the model is just same as before:
using PyPlot
using Peacock
using CUDA
GPU = 1 # running on GPU

function epf(x,y)
    # equation of a circle with radius 0.2a
    if x^2+y^2 <= 0.2^2
        # dielectric inside the circle
        return 8.9
    else
        # air outside the circle
        return 1
    end
end

# Permeability is unity everywhere
function muf(x,y)
    return 1
end

a1 = [1, 0]  # first lattice vector
a2 = [0, 1]  # second lattice vector
d1 = 0.01  # resolution along first lattice vector
d2 = 0.01  # resolution along second lattice vector
geometry = Geometry(epf, muf, a1, a2, d1, d2)
fourier_space_cutoff = 7
solver = Solver(geometry, fourier_space_cutoff)
G = BrillouinZoneCoordinate(  0,   0, "Γ")
X = BrillouinZoneCoordinate(1/2,   0, "X")
M = BrillouinZoneCoordinate(1/2, 1/2, "M")
ks = [G,X,M,G]

The results when running on terminal:
julia> @time plot_band_diagram(solver, ks, TE, 1, color="red",
                   bands=1:4, dk=0.1, frequency_scale=1/2pi)
  3.792055 seconds (510.63 k allocations: 124.970 MiB, 0.71% gc time, 0.14% compilation time)
(0, 0.9109956614327619)

julia> @time plot_band_diagram(solver, ks, TM, 1, color="red",
                   bands=1:4, dk=0.1, frequency_scale=1/2pi)
  3.321212 seconds (571.62 k allocations: 125.828 MiB, 0.57% gc time)
(0, 0.9109956614327619)

julia> @time plot_band_diagram(solver, ks, TE, 0, color="red",
                   bands=1:4, dk=0.1, frequency_scale=1/2pi)
 29.343061 seconds (296.76 k allocations: 50.585 MiB, 0.03% gc time)
(0, 0.9109956614327619)

julia> @time plot_band_diagram(solver, ks, TM, 0, color="red",
                   bands=1:4, dk=0.1, frequency_scale=1/2pi)
 28.964005 seconds (294.21 k allocations: 50.534 MiB, 0.03% gc time)
(0, 0.9109956614327619)

When running on terminal, the diagram will be displayed in real time at one point by one, which may reduce efficiency. So I also run this benchmarks on Jupyter:
julia> @time plot_band_diagram(solver, ks, TE, 1, color="red",
                   bands=1:4, dk=0.1, frequency_scale=1/2pi)
  1.423407 seconds (549.43 k allocations: 125.620 MiB, 3.38% gc time)
(0, 0.9109956614327619)

julia> @time plot_band_diagram(solver, ks, TM, 1, color="red",
                   bands=1:4, dk=0.1, frequency_scale=1/2pi)
  0.942141 seconds (568.10 k allocations: 125.764 MiB, 2.36% gc time)
(0, 0.9109956614327619)

julia> @time plot_band_diagram(solver, ks, TE, 0, color="red",
                   bands=1:4, dk=0.1, frequency_scale=1/2pi)
 36.569779 seconds (303.74 k allocations: 51.115 MiB, 0.03% gc time, 0.16% compilation time)
(0, 0.9109956614327619)

julia> @time plot_band_diagram(solver, ks, TM, 0, color="red",
                   bands=1:4, dk=0.1, frequency_scale=1/2pi)
 30.940971 seconds (294.82 k allocations: 50.577 MiB, 0.03% gc time, 0.02% compilation time)
(0, 0.9109956614327619)

GPU-based computing is about 30 times faster than CPU-based.
My versioninfo():
Julia Version 1.6.0
Commit f9720dc2eb (2021-03-24 12:55 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, skylake)

CUDA.versioninfo():
CUDA toolkit 10.1.243, artifact installation
CUDA driver 10.1.0
NVIDIA driver 430.50.0

Libraries:
- CUBLAS: 10.2.1
- CURAND: 10.1.1
- CUFFT: 10.1.1
- CUSOLVER: 10.2.0
- CUSPARSE: 10.3.0
- CUPTI: 12.0.0
- NVML: 10.0.0+430.50
- CUDNN: 8.0.4 (for CUDA 10.1.0)
- CUTENSOR: 1.2.2 (for CUDA 10.1.0)

Toolchain:
- Julia: 1.6.0
- LLVM: 11.0.1
- PTX ISA support: 3.2, 4.0, 4.1, 4.2, 4.3, 5.0, 6.0, 6.1, 6.3, 6.4
- Device support: sm_30, sm_32, sm_35, sm_37, sm_50, sm_52, sm_53, sm_60, sm_61, sm_62, sm_70, sm_72, sm_75

1 device:
  0: GeForce MX150 (sm_61, 957.250 MiB / 1.956 GiB available)

CPU Parallel (TODO)
We can also use Multi-Threading (@threads) or Multi-Programming (using Distributed; @distributed) to parallel the for loop like:
for (x,k) in zip(xs,ks)
    frequencies = my_solve(k)
    xs_k = [x for _ in 1:length(frequencies[bands])]
    ys = frequency_scale * frequencies[bands]
    PyPlot.plot(xs_k, real(ys), ".", color=color, alpha=0.5, markersize=markersize)
end

The same computer, but when I switch the operating system to Windows, The CPU running time of plot_ band_ diagram(fourier_space_cutoff = 9)  is also about 1 s. Maybe Ubuntu takes up a lot of my CPU resources😫...

I've also run benchmarks on the Supercomputer.
Array programming

cutoff = 17

julia> @btime eigen(Array(RHS_d \ LHS_d));
  104.002 ms (2240 allocations: 2.81 MiB)

julia> @btime eigen(RHS \ LHS);
  103.319 ms (29 allocations: 3.55 MiB)

julia> @btime eigen(LHS, RHS);
  394.477 ms (19 allocations: 2.46 MiB)

julia> @btime LHS = Kx/epc*Kx + Ky/epc*Ky;
  10.838 ms (20 allocations: 6.96 MiB)

julia> @btime LHS_d = Kx_d/epc_d*Kx_d + Ky_d/epc_d*Ky_d;
  6.892 ms (853 allocations: 17.91 KiB)

julia> @btime LHS = Array(LHS_d);
  228.499 μs (20 allocations: 791.42 KiB)

cutoff = 25

julia> @btime LHS = Kx/epc*Kx + Ky/epc*Ky;
  65.922 ms (20 allocations: 32.85 MiB)

julia> @btime LHS_d = Kx_d/epc_d*Kx_d + Ky_d/epc_d*Ky_d;
  29.820 ms (14319 allocations: 227.62 KiB)

julia> @btime LHS = Array(LHS_d);
  230.458 μs (20 allocations: 791.42 KiB)

julia> @btime eigen(LHS, RHS);
  412.475 ms (19 allocations: 2.46 MiB)

julia> @btime eigen(RHS \ LHS);
  93.000 ms (29 allocations: 3.55 MiB)

julia> @btime eigen(Array(RHS_d \ LHS_d));
  93.729 ms (1535 allocations: 2.80 MiB)

Full function

cutoff = 7

julia> @btime plot_band_diagram(solver, ks, TM, 0, color="blue",
                   bands=1:4, dk=0.1, frequency_scale=1/2pi)
  567.354 ms (294210 allocations: 50.53 MiB)
(0, 0.8)

julia> @btime plot_band_diagram(solver, ks, TM, GPU, color="blue",
                   bands=1:4, dk=0.1, frequency_scale=1/2pi)
  681.321 ms (634653 allocations: 126.81 MiB)
(0, 0.8)

cutoff = 25

# GPU = 0
julia> @time plot_band_diagram(solver, ks, TE, 0, color="red",
                   bands=1:4, dk=0.1, frequency_scale=1/2pi)
490.756746 seconds (53.59 M allocations: 7.541 GiB, 0.31% gc time)
(0, 0.9109956614327619)

julia> @time plot_band_diagram(solver, ks, TE, 0, color="red",
                   bands=1:4, dk=0.1, frequency_scale=1/2pi)
491.378101 seconds (53.59 M allocations: 7.541 GiB, 0.21% gc time)
(0, 0.9109956614327619)

# GPU = 1
julia> @time plot_band_diagram(solver, ks, TE, 1, color="red",
                   bands=1:4, dk=0.1, frequency_scale=1/2pi)
186.098588 seconds (61.87 M allocations: 195.880 GiB, 16.06% gc time)
(0, 0.9109956614327619)

julia> @time plot_band_diagram(solver, ks, TE, 1, color="red",
                   bands=1:4, dk=0.1, frequency_scale=1/2pi)
166.055644 seconds (62.01 M allocations: 195.881 GiB, 16.61% gc time)
(0, 0.9109956614327619)

When the cutoff is large, the GPU is faster than the CPU, which is predictable, because IO (from GPU RAM to RAM) also affects the runtime.
Versioninfo
Julia Version 1.6.0
Commit f9720dc2eb (2021-03-24 12:55 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, broadwell)

CUDA toolkit 10.2.89, artifact installation
CUDA driver 10.2.0
NVIDIA driver 440.31.0

Libraries:
- CUBLAS: 10.2.2
- CURAND: 10.1.2
- CUFFT: 10.1.2
- CUSOLVER: 10.3.0
- CUSPARSE: 10.3.1
- CUPTI: 12.0.0
- NVML: 10.0.0+440.31
- CUDNN: 8.10.0 (for CUDA 10.2.0)
- CUTENSOR: 1.2.1 (for CUDA 10.2.0)

Toolchain:
- Julia: 1.6.0
- LLVM: 11.0.1
- PTX ISA support: 3.2, 4.0, 4.1, 4.2, 4.3, 5.0, 6.0, 6.1, 6.3, 6.4, 6.5
- Device support: sm_30, sm_32, sm_35, sm_37, sm_50, sm_52, sm_53, sm_60, sm_61, sm_62, sm_70, sm_72, sm_75

4 devices:
  0: TITAN Xp (sm_61, 10.964 GiB / 11.910 GiB available)
  1: TITAN Xp (sm_61, 11.003 GiB / 11.910 GiB available)
  2: TITAN Xp (sm_61, 879.562 MiB / 11.910 GiB available)
  3: TITAN Xp (sm_61, 7.211 GiB / 11.910 GiB available)

Hi @kabume, this is super!
I am busy writing my thesis for the next couple of weeks but I will merge this in as soon as possible. I have a CUDA compatible GPU so I'll also try the benchmarks out soon. Amazing contribution and really useful reports, thanks!

Hi @kabume,
I hope you're well. Thanks again for your contributions! I've made some changes that I am ready to merge, if you are happy with them. Here is a comparison of what I changed: https://github.com/kabume/Peacock.jl/compare/master...sp94:kabume-gpu
I looked at the solve function and I realised that if we are calling it repeatedly (eg in plot_band_diagram) then we would be repeatedly moving the matrices solver.epc, solver.muc, etc from the CPU to the GPU. So instead of creating the CUArrays inside of the solve(solver, ..., GPU) function, they are now created when we create the solver itself: solver = Solver(geometry, ..., GPU). That way we only put stuff on the GPU once!
I also reworked your benchmark into a "how to" guide for the online documentation. For that example, I get ~13 seconds on CPU, and ~3 seconds on GPU!
Let me know if these changes are OK with you :)

Hi @sp94. That's good!


Sending MAX_MONEY breaks wallet

I came across this problem in Stronghands, where there is some 90 billion or so coins, and MAX_MONEY is 2 billion.
this is unlikely to ever be a problem for Peercoin :)
i grabbed current Peerunity, modified slightly
MAX_MONEY=10000,
block time 30 seconds,
jumped on the testnet and replicated problem.
What seems to happen is that the tx passes Pre checks, makes it into the wallet.dat, but then fails Post checks,
which means wallet will not load, consistently failing checks.
amounts appreciably over MAX_MONEY will be rejected
error: {"code":-3,"message":"Invalid amount"}
amounts equal to MAX_MONEY will break the wallet.
sendtoaddress mmb1bYm344KTP9D5m6qa1c6cCpXJGMTLu4 10000
error: {"code":-4,"message":"Error: The transaction was rejected.  This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here."}
root@vps:~/.ppcoin/testnet#

************************
EXCEPTION: St13runtime_error
CWallet::GetDebit() : value out of range
ppcoin in ThreadStakeMinter()

terminate called after throwing an instance of 'std::runtime_error'
  what():  CWallet::GetDebit() : value out of range

on subsequent loads, that above runtime error is repeated.

seems the fee is confusing it.
increasing the fee made the wallet bug out, no crash, the client still runs but cant communicate with the wallet
$ ./peerunityd settxfee 1
true

$ ./peerunityd sendtoaddress mxXeyDPTix9KQVcwDnDkSUcPvzskF5xNfS 9999
error: {"code":-4,"message":"Error: The transaction was rejected.  This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here."}

$ ./peerunityd getinfo
error: {"code":-1,"message":"CWallet::GetDebit() : value out of range"}

added some extra output to the error
   int64 GetDebit(const CTransaction& tx) const
    {
        int64 nDebit = 0;
        BOOST_FOREACH(const CTxIn& txin, tx.vin)
        {
            nDebit += GetDebit(txin);
            if (!MoneyRange(nDebit))
                {
                printf(" Value=%llu, Max Money=%llu, Coin=%llu, Cent=%llu unsigned int", nDebit, MAX_MONEY, COIN, CENT);
                throw std::runtime_error("CWallet::GetDebit() : value out of range");
                }
        }
        return nDebit;

what it seems to reveal is that it is checking combined value of all inputs (or outputs) against MAX_MONEY
i set up a wallet with two inputs of 5001 coins with MAX_MONEY of 10000
then sent 5002 coins
# ./peerunityd sendtoaddress mxXeyDPTix9KQVcwDnDkSUcPvzskF5xNfS 5002
error: {"code":-1,"message":"CWallet::GetDebit() : value out of range"}

the extra debug output gave values of
Value=10002000000, Max Money=10000000000, Coin=1000000, Cent=10000


Multiple Haxe processes

In development build (1ddbef48c55c0eed20a14b51ae3de577ea059ee6) I see multiple Haxe processes starting.

when haxedevelop starts, a process is started.
when requesting completion, a new process is started.
when switching haxe sdk, a new process is started.
when requesting completion again, a new process is started.

I just had ~10 Haxe processes running
Using this build 1ddbef48c55c0eed20a14b51ae3de577ea059ee6

Completion Mode: Compiler

WIP

Yes this seems resolved now! 👍


spec: remove proxy piercing

Closes #8

This got affirmative consensus at TC39 today, and will be merged shortly.


Decouple mirror_image role from DCI

SUMMARY
The mirror_image role contained variables from the DCI agent, making the role independent to be consumed by other plays easily.
ISSUE TYPE

Bug, Docs Fix or other nominal change

Tests

[x] TestDallas - ocp-4.16-vanilla - https://www.distributed-ci.io/jobs/546e153e-ec9b-4d02-bb5a-a5cdf0c9f01e
[x] TestDallasWorkload -tnf-test-cnf-green -  https://www.distributed-ci.io/jobs/eca9d472-eb4f-4527-80a4-25485ba97c01
[x] TestDallasWorkload - preflight-green - https://www.distributed-ci.io/jobs/6f41be5d-ffb2-4d39-8680-e82c2ca723c4/jobStates

Test-hints: no-check

My last test failed https://www.distributed-ci.io/jobs/76b7ec54-8f74-4eaa-8def-ba20e0216494
But the failure is unrelated to the change, all the mirror_images tasks completed without issues, but I'll re-run the job with a diff version of OCP

retest


chore(build): link openssl statically

Signed-off-by: Alex Chi<EMAIL_ADDRESS>What's changed and what's your intention?
Statically link openssl.
Need to test if works with s3.
Checklist

[x] I have written necessary docs and comments
[x] I have added necessary unit tests and integration tests
[x] All checks passed in ./risedev check (or alias, ./risedev c)

Refer to a related PR or issue link (optional)
close https://github.com/singularity-data/risingwave/issues/2973

Basically, enabling statically linked openssl is as easy as
openssl = { version = "0.10", features = ["vendored"] }

However, this change involves too many other changes, like enabling cert discovery by ourselves. So I'd close this and see if we really need statically link openssl in the future. Indeed, we can use rustls instead.

~/risingwave$ ldd target/debug/risingwave
        linux-vdso.so.1 (0x00007fff97fae000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fea8225c000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fea8223c000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fea82155000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fea81f2d000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fea8c8ef000)

Tested and works with s3. However, unit test OOM. We should have a flag to enable / disable statically linked openssl...

There're still bugs with cargo-hakari that prevents setting the feature flag. Need to report to upstream 😇

Also a bug with rustc. It seems that compile RisingWave 1. with static-link 2. and then without it will cause linker to panic. Anyway, cargo clean always works.


Implement an "End game" / Surrender button

Task
Detailed Description

Users can click on a button to surrender
Send surrender information to backend

The contract notes that the game is ended
Contract generates GameEnded(gameId, winnerAddress) event (see #49)

The other player is informed about winning the game (listening to the event as in #40)

Associated story
Story: #25
Notes

Merged in 0591730cd0b2866fd79dfb0b8dd3631e608383c6


⚠ Bofrost.be has degraded performance

In e7bf229, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1435 ms

Resolved: Bofrost.be performance has improved in 455de36 after 9 minutes.


This Sample is crashing on launch time

This sample crashes during launch in:
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
    Fabric.with([Digits()])
    return true
}

Terminating app due to uncaught exception 'FABException', reason: '[Fabric] Value of Info.plist key "Fabric" must be a NSDictionary.'
Maybe I should added something to this project, but I do prefer sample to work out of box. So a bit confused as well.

@jonauz Thanks for reaching out on this. It sounds like your app doesn't have a valid API key present. In order for the code sample to work, you need to go through the steps mentioned here: https://github.com/twitterdev/digits-theming-ios#getting-started which includes getting the keys needed.

@mikebonnell @jonauz Its good that you guys are pointing to this. There is an issue with Fabric.app cuz it asks you to add a "Run Script Phase" with the location "${PODS_ROOT}/Fabric/run" but the script actually is in "${PODS_ROOT}/Fabric/Fabric.framework/run". I only managed to succeed after changing the location to the later. Hope this helps someone.

@alqatari that worked for me too. Thanks for the tip!


Add AbstractGraphLayer for layers that accept graphs

Introduce new abstraction for layers that accept graphs such that layer constructors or forward pass could have the same APIs.

It seems suffered from the same issue as #195


README asks to set up gist.username config, looks for gist.user

The README says in two locations to use gist.username but the code itself looks for gist.user.
Otherwise, looks great.

Thanks for opening this issue.  I never would've figured that out on my own.  Perhaps the author can update the readme?


Cannot find module 'metro/src/Server'

When trying to run react-native-vector-image generate, we are no longer able to generate and receive the message below. Relevant packages being used:

react-native: 0.64.2
react-native-vector-image: ^0.3.3
@klarna/react-native-vector-drawable: 0.1.2,

node:internal/modules/cjs/loader:998
  throw err;
  ^

Error: Cannot find module 'metro/src/Server'
Require stack:
- /path/to/node_modules/react-native-vector-image/src/cli/getAssets.js
- /path/to/node_modules/react-native-vector-image/src/cli/generateAssets.js
- /path/to/node_modules/react-native-vector-image/src/cli/index.js
- /path/to/node_modules/react-native-vector-image/bin/react-native-vector-image.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Function.Module._load (node:internal/modules/cjs/loader:841:27)
    at Module.require (node:internal/modules/cjs/loader:1067:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/path/to/node_modules/react-native-vector-image/src/cli/getAssets.js:1:16)
    at Module._compile (node:internal/modules/cjs/loader:1165:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1219:10)
    at Module.load (node:internal/modules/cjs/loader:1043:32)
    at Function.Module._load (node:internal/modules/cjs/loader:878:12)
    at Module.require (node:internal/modules/cjs/loader:1067:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/path/to/node_modules/react-native-vector-image/src/cli/getAssets.js',
    '/path/to/node_modules/react-native-vector-image/src/cli/generateAssets.js',
    '/path/to/node_modules/react-native-vector-image/src/cli/index.js',
    '/path/to/node_modules/react-native-vector-image/bin/react-native-vector-image.js'
  ]
}

I have tried reverting to version 0.3.2 and still get the same error. Is my current version (0.3.3) compatible with RN 64.2? Or is the version not the issue?

Yep, you need to use a more recent version of react native/metro. You should have gotten peer dependency warnings about it (yes i know those warnings are broken/numerous).

So I need to upgrade React Native itself? What version is the minimum supported?

I'm a bit unsure of how the metro version maps to react native. Maybe you can start with telling me what version you have and if maybe you have multiple? Are you using yarn? If so, what does yarn why metro yield?

Looks like we are running metro 0.76.5. We don't have yarn configured, so I couldn't run yarn why

But it looks like from the assets in your release of 0.3.2 that the project just expects metro >=0.58.0

Ok, that's a pretty recent version which afaik should be supported. Are you using plain old npm?

we are

I'm a bit surprised of your metro version being so recent with your react native version being so old. Do you have multiple versions of metro installed by any chance? Maybe this tool can help you https://www.npmjs.com/package/find-duplicate-dependencies

Sorry, we don't have metro listed explicitly, so npx was just getting the latest version. In node_modules/react-native/node_modules/metro/package.json, it looks like metro is 0.64.0

Aha, that seems to be the problem then. You could solve it by adding metro as a dependency to your project, just use the same version as RN uses.

OK. That seems to have fixed the issue with our generate script! But now I am back at where I started. The script succeeds (I think) but with a single error file,
Failed to generate vector assets
src/assets/images/svg/brands/hopper.svg: line 4: Semitransparent mask cannot be represented by a vector drawable

despite the error I now have ~60 new json, xml and pdf files. So it seems to be working except on that one file.
But when I try to use certain icons, I still get an error on the device that says
Error while updating property 'resourceName' of a view managed by RNVectorDetails

null

Unable to find resource location_start_svg_HASH in <namespace>

this was the original error that I got. I assumed I needed to generate for newer icons to be included. Now that generation seems to be working, I still can't use newly-added icons.

I tried rebuilding the app with npx react-native run-android but I didn't clear any cache or anything between generating and running it again. Do you have a suggestion there?

iOS does work actually. It is just an android issue now. I did see the note in the Readme that the files need to be imported somewhere in the project in order to be generated. That also seems to be the case (only imported ones are being generated).
But now the error does seem to be with android specifically

@oblador Thank you so much for your help. I started a new branch and followed this discussion again and it worked the second time around.
I very much appreciate all your responsiveness and support!


Need help with installing lsp server for python.

Describe the bug
autocomplete formatting and other features of lsp don`t work
To Reproduce

Install kickstart from fork.
Run nvim

nvim

Install lsp server by command

:LspInstall ast-grep

Everything installed successfuly

Open test.py file

nvim test.py

autocomplete and autformatting don`t work
:LspInfo return
lspconfig: require("lspconfig.health").check()

LSP configs active in this session (globally) ~
- Configured servers: ast_grep, lua_ls
- OK Deprecated servers: (none)

LSP configs active in this buffer (bufnr: 1) ~
- Language client log: ~\AppData\Local\nvim-data\lsp.log
- Detected filetype: `python`
- 0 client(s) attached to this buffer
- Other clients that match the "python" filetype:
- Config: ast_grep
  filetypes:         c, cpp, rust, go, java, python, javascript, typescript, html, css, kotlin, dart, lua
  cmd:               ~\AppData\Local\nvim-data\mason\bin\ast-grep.CMD lsp
  version:           `?` (Failed to get version) Tried:
  `C:\Users\Cube\AppData\Local\nvim-data\mason\bin\ast-grep.CMD --version`
  `C:\Users\Cube\AppData\Local\nvim-data\mason\bin\ast-grep.CMD -version`
  `C:\Users\Cube\AppData\Local\nvim-data\mason\bin\ast-grep.CMD version`
  `C:\Users\Cube\AppData\Local\nvim-data\mason\bin\ast-grep.CMD --help`

  executable:        true
  autostart:         true
  root directory:    Not found.

Docs for active configs: ~
- ast_grep docs: >markdown

  https://ast-grep.github.io/

  ast-grep(sg) is a fast and polyglot tool for code structural search, lint, rewriting at large scale.
  ast-grep LSP only works in projects that have `sgconfig.y[a]ml` in their root directories.
  ```sh
  npm install [-g] @ast-grep/cli

I did steps mentioned [here #1209] it didn`t help.
I execute ast-grep.CMD in my terminal and it worked!

!❯ C:\Users\Cube\AppData\Local\nvim-data\mason\bin\ast-grep.CMD --version
ast-grep 0.32.2

Desktop

OS: Windows 10
Terminal: cmd

Neovim Version

NVIM v0.10.3                                                                                Build type: Release                                                                                LuaJIT 2.1.1713484068

Hi.
I don't know what LspInstall is, but you can install various LSPs using Mason.
Just type :Mason


Google Colab Notebook Errors

The Insurance Data Colab Notebook you link to at https://colab.research.google.com/github/ogunlao/saint/blob/main/notebooks/Insurance_Dataset.ipynb  gives an error for this part:
from saint.src.config import args
ModuleNotFoundError: No module named 'saint.src.config'
The Income Dataset Colab Notebook gives this error at
https://colab.research.google.com/github/ogunlao/saint/blob/main/notebooks/Income_Dataset.ipynb
ERROR: Could not find a version that satisfies the requirement hydra==1.0.4 (from versions: 1.0, 1.1, 1.2, 2.1, 2.2, 2.3, 2.4, 2.5)
ERROR: No matching distribution found for hydra==1.0.4
and then next at the File Upload part it just hangs waiting for me to upload a file:
from google.colab import files
files.upload()

The notebooks were made with another branch of the saint repo called "saint-orig".  A fix is made


Add chocolatey user as maintainer to juju package

Push ERROR
Failed to process request. 'The specified API key does not provide the authority to push packages. This package may already exist and be owned by a different user. It could also be hidden. Try going directly to https://chocolatey.org/packages/'packageName' to determine maintainers.'.  The remote server returned an error: (403) Forbidden..

cc @AdmiringWorm

I sent the request to add chocolatey as a maintainer when the package was created.

I've updated and pushed the new juju package version

@AdmiringWorm @majkinetor done


Maximum function nesting

Summary of problem or feature request

Hi I am using this https://github.com/spatie/laravel-model-states verson 1.6.1
then the table give us
Maximum function nesting level of '512' reached, aborting!

Code snippet of problem
try to comment this line
https://github.com/spatie/laravel-model-states/blob/1.6.1/src/HasStates.php#L74
then it works, but the spatie/laravel-model-states is not not working because of commented events

System details

Operating System
PHP Version: 7.2.30
Laravel Version: v7.14.1
Laravel-Datatables Version  v9.10.1

Thanks, hope any solution or any idea what is a missing

already found the problem, this is will cause infinite recursion

can we set ignore check on specific column?

already fix added in model
    protected $hidden = [
        'column_name',
    ];

but can we have hide only on datatable?

I think there is ->makeHidden(array) api that you already use for this case.

I think there is ->makeHidden(...) api that you can use for this case.
Found the docs: https://yajrabox.com/docs/laravel-datatables/master/make-hidden

@yajra will try this, thanks

thanks already fixed

makeHidden is not an option if the state object is nested somewhere i think. it's not working for my case.... also using laravel-model-states


No persistent indicator of whether changes have been saved.

if you leave a page before the changes have been saved, the changes can fail to ever be recorded. It is hard to tell whether this is happening, because there is no way to tell whether the current state of the page is what is stored on the server. A "saving" message appears very briefly while saving is actually happening, but there is no persistent indication, so if you miss it you can wait forever for the saving to happen.
I have lost work in the editor, and I believe it was this.

Good point. we should add something.

Now looks like this:


Update dependencies

Update dependencies
Fixes remaining CVEs in #119 that were remaining after recent dependabot merges.
cc @marrobi

Hi @schristoff could you merge this one please?  thanks


fail to open the file“hvg-train-only.h5ad”in scrna-crossspecies

when i try to use anndata to read the file“hvg-train-only.h5ad”in scrna-crossspecies,i failed.
but i successfully read the file 4i-melanoma_cell_lines-8h.h5ad in cl-8h
The error message is as follows
AnnDataReadError: Above error raised while reading key '/layers' of type <class 'h5py._hl.group.Group'> from /.
I don't know why, looking forward to your reply，thanks.

This might be due to the version of scanpy and anndata. Please check to use the latest version.


Adding permission for the sonar-quality-gates plugin

Description

Git repository https://github.com/arkanjoms/sonar-quality-gates-plugin
Resolved issue https://issues.jenkins-ci.org/browse/HOSTING-327

Permissions pull request checklist
Always

[x] Add link to plugin/component Git repository in description above

For a newly hosted plugin only

[x] Add link to resolved HOSTING issue in description above

For a new permissions file only

[x] Make sure the file is created in permissions/ directory
[x] artifactId (pom.xml) is used for name (permissions YAML file).
[x] groupId / artifactId (pom.xml) are correctly represented in path (permissions YAML file)
[x] Check that the file is named plugin-${artifactId}.yml for plugins

When adding new uploaders (this includes newly created permissions files)

[x] Make sure to @mention an existing maintainer to confirm the permissions request, if applicable
[x] Use the Jenkins community (LDAP) account name in the YAML file, not the GitHub account name
[x] All newly added users have logged in to Artifactory at least once

@arkanjoms Please note that you should be using https://github.com/jenkinsci/sonar-quality-gates-plugin


acceptance framework ignores python path problems

$ echo $PYTHONPATH

$ ./acceptance/run br_parent
...
[----------] Test found: br_multi
[  SKIPPED ] br_multi
[----------] Test found: br_parent
setcap bin/braccept [sudo] password for kormat:
[ SETUP    ] br_parent
[  RUN     ] br_parent
[   OK     ] br_parent
[ TEARDOWN ] br_parent
[----------] Test found: br_peer
[  SKIPPED ] br_peer
Traceback (most recent call last):
  File "./acceptance/bs_add_link_acceptance/test", line 29, in <module>
    from acceptance.common.log import LogExec, init_log
ImportError: No module named 'acceptance'
[----------] Test found:
[  SKIPPED ]
[----------] Test found: cert_renewal
[  SKIPPED ] cert_renewal
...
[==========] 1 tests out of 26 tests ran.
[  PASSED  ] 1 tests.
[ SKIPPED  ] 25 tests.

Now that the acceptance suite runs via bazel, this is no longer a problem (or, at a minimum, not the same problem; bazel can still throw python errors as it's not perfectly hermetic). Closing this.

Now that the acceptance suite runs via bazel, this is no longer a problem (or, at a minimum, not the same problem; bazel can still throw python errors as it's not perfectly hermetic). Closing this.


Support workspace settings in multi root environment

This setting cannot be applied now. It will be applied when you open this folder directly

Still actual. related issues: #29456, #28538, #33535, #47995
For example, I have a project (master repo A: backend) with a git submodule (repo B: frontend).
Both have an independent .vscode/settings.json files.
Problem: for instance, any javascript.* settings do not work.
Both A/.vscode/settings.json and A/B/.vscode/settings.json are marked these setting-lines as not effective. See the picture

Picture: felix is a master repo A, front is a nested repo B

VSCode Version: 1.35.1
OS Version: macOS mojave (10.14.5)

Steps to Reproduce:

Create project with a second nested .vscode/settings

VS Code w/o exts: Yes (e.g. javascript.referencesCodeLens.enabled works only in user/workspace/root-project settings and doesn't work, when added in nested project settings only; wait a sec when indexind will be complete)
VS Code insiders: Yes

Why we use submodule?: it's simplier to have a single project for fullstack developers. but for frontend and backend developers we have a separate projects, CIs, linters, government regulations etc.
There are three situations:

Some people just use repo A (felix backend),
Some ones use repo B (front) only,
and a lot of people use A with a B as a submodule.

Why we prefer project-level settings over a user/workspace?: I don't want to explain every new developer where he must take him settings and how he must apply it.

it's the same currently is the vscode multiroot workspace enabled or not.

files.exclude setting in nested project (repo B) is not effective too. But, sadly, vscode event does not highlight it

@a-x- In a Multi root workspace we do not allow customising window settings like themes, colors etc per folder.
Can you please provide the list of settings which you think they should be customisable at folder level in a Multiroot workspace and why?

In a Multi root workspace we do not allow customising window settings like themes, colors etc per folder.

I don't want it too

e.g. javascript.referencesCodeLens.enabled
and whole javascript.* section
hm, almost everything except window, themes, etc global editor settings, I guess

@mjbvz Are not javascript.* settings are resource scoped?

It's a mix. The javascript.format settings are resource scoped but javascript.referencesCodeLens.enabled and javascript.format.enable are window scoped

@a-x- please mention your requirement why you need those settings (javascript.referencesCodeLens.enabled and others) as resource scoped.


Boardwalk on Android 8.0

Hello, I played the application on my tablet (Android 6) and I wonder if I could be a tester of the 2.0 boardwalk, that as I saw supports Android 8.0.
Email<EMAIL_ADDRESS>Discord: ItsBison#8141

Hello, I also was wonder if I could be a tester of the 2.0 boardwalk, that as I saw supports Android 8.0.
Email<EMAIL_ADDRESS>Discord: Timmy76767#8387

@timmy76767 I don't have 2.0 working yet.
Reply to this email directly, view it on GitHub
https://github.com/zhuowei/Boardwalk/issues/344?email_source=notifications&email_token=ACVZ7ZWUIDY27JNB6KMUTTTPW3IOXA5CNFSM4HIF7LTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWC6AYQ#issuecomment-495312994,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACVZ7ZVJJEV6J5UZQ5MNICDPW3IOXANCNFSM4HIF7LTA
.

@spideyroc1 I did.

@khanhduytran0 have u made a version of boardwalk that works with android 8

Oh my bad, I honestly hadn’t looked at the project in a year now (I get
emails), thought you were completely MIA. Good to know it’s open source
On Thu, May 23, 2019 at 12:35 PM zhuowei<EMAIL_ADDRESS>wrote:

@spideyroc1 https://github.com/spideyroc1 I did
https://github.com/zhuowei/Boardwalk/blob/master/LICENSE.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/zhuowei/Boardwalk/issues/344?email_source=notifications&email_token=ACVZ7ZXA62IE5AXU54W4CDTPW3IWLA5CNFSM4HIF7LTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWC6GQA#issuecomment-495313728,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACVZ7ZVZOCRXLMW6LUFTKD3PW3IWLANCNFSM4HIF7LTA
.

@spideyroc i wonder if someone has a version of this that works on android 8

@zhuowei is there away u would continue to work on boardwalk 2.0?

@timmy76767 I don't have current plans right now, but I'll let you know if I do.

@zhuowei thx but you should definitely continue this project LOL

i made a version that does support https://youtu.be/TnzAJ4MYoaU


Download dcos-registry from correct path.

Summary:
The Linux package was loaded from the wrong path. This change should
correct the issue.
JIRA issues: MARATHON-8442

It seems the package is broken. I also think we should not leak the binaries of a private repository.

The test passed. I removed the temporary code for testing in this pull requests. Ready to review.

There is an outstanding todo. We should onlt download the CLI if it does not exists. Like command -v dcos

Hmm should we just make this a part of our ami image?

Yes. Ideally we should. This was a quick fix :/.


Also ignore vim directories in ~/.config

Following this, I have my vim directory at ~/.config/vim: https://github.com/vim/vim/commit/c9df1fb35a1866901c32df37dd39c8b39dbdb64a
This caused me some issues running the tests in https://github.com/vim-ruby/vim-ruby.
I wanted to fully support the XDG_CONFIG_HOME environment variable too but I don't have enough Vim script skills unfortunately.

Good thinking, I didn't think to update once that change happened. Thanks for the fix. I might sit down when I have more time and see if I can do this in a more future-proof way, maybe set the runtimepath directly to $VIMRUNTIME or something.


New release

It would be awesome to have the changes since v1.6.3 released as a new version

Hi @witekio-kwe, I'll get working on this and hopefully launch it later this week with a bunch of other PRs :)

Released v1.6.5 :)


Malware warning Windows 10

I get a malware warning as soon as I try to install 2.0.1.
Are you able to upload .md5 to verify?

  Here is a scan of the latest 2.0.2 version
https://www.virustotal.com/en/file/a9a404f6ad2c918c0b6d4190466b619b4404d3bd1f4d89ed412cfff795bfe610/analysis/1452076453/
The SHA256 hash of the file is there if you want to verify it that way, also literally all the executable I ship are signed with my code signing cert that verifies the files haven't been tampered with.

And here is an MD5 hash of the same file
http://sha1md5checksum.bugaco.com/cryptocalc/index.html

I just got a hash that doesn't match, I'm going to re download.

FYI, that is the hash of the installed file, not the executable.  The executable is technically just a wrapped MSI and therefore should be verified by windows itself.  If you want I could hash the installer?

Please.

Here's a SHA-256:
F7803B4765912DF367C5C772C2FCC76FB2061F40A5A94EC9BB39EC7B996C8D2B
MD5:
CC31C3483E55469D23111B645D8BCC2C

OK, this is the hash of the 2.0.1 release x64 installer
MD5:
cc31c3483e55469d23111b645d8bcc2c

Just finished the redownload I'll do virus check on my end with an uploaded setup.

Anything @Pheoxy ??  Heading off for the night and don't want to leave a fresh update with a potential virus sitting on it

Sorry, I'm back on slow ADSL...
https://www.virustotal.com/en/file/f7803b4765912df367c5c772c2fcc76fb2061f40a5a94ec9bb39ec7b996c8d2b/analysis/

Yea it failed 3/54

Downloading your 2.0.2 update to see if its got anything. I may be getting MITM.

Whats the MD5 and sha-256 of 2.0.2?

Hold up, I just scanned the installer with all my local scanners (Windows Defender, Zone Alarm and Malwarebytes) and it got nothing.  But uploading it to virustotal triggered some hits....
Looks like a whole bunch of false positives

Hmm. why's it trigger them though?

If you look through my issues here I think #11 we had a false positive before that I resolved by changing a JSON library I was using.....  False positives are the bane of small developers like myself because we can't do anything about them.
You can build from source if you want or scan the installed files.  The installers are clean, and just to have a transparent build process they are actually build on appveyor.com and are publicly available.  All I do is download them, sign them and reupload them

Thanks I'll take a look.

Here's the check on 2.0.2 by the way:
https://www.virustotal.com/en/file/cbf8cd373a6d63781f3761ad201a4b8821b6a7bbe557a181b92b0a8b3f7e7e1e/analysis/1452081269/
Might be some changes that are causing it.

I'm running a complete system scan now to ensure nothing is piggy backing onto the installer

I'll do my own scan to check as well.

Sorry for lateness completely forgot about this. My system check was fine, it's probably some of your code when you have keybindings or some other piece. Good luck on finding a way around that when you have the time.

On current GMDP 2.1.0 I'm not getting the malware warning anymore.


Fix for missing link

The proposed change aims to address a link that no longer exists

@ggailey777
Can you review the proposed changes?
Important: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@ggailey777 I do agree we can remove the entire sentence. I have accepted the change

Thanks @ffarinha-msft! #sign-off
This fix will get merged and published after the Ignite freeze.

This PR is ready for merge. Due to the upcoming Ignite conference, all merging and publishing is on hold until the morning of the keynote address.
The PR review team will resume merging on the morning of the keynote address for the regularly scheduled daily publish cycles. You don't need to take further action on this PR; we'll merge it on the day of the keynote address.
Don't add more commits to this reviewed PR. If you need to make additional changes to these files, email techdocprs for guidance about how to proceed.
#label:"missed-content-complete","event-triaged-to-10AM"


missed remove method for IConnectionStateListener

There is no method body to remove subscription for IConnectionStateListener. Looks like incorrect copy-paste.

one more commit - there was no way to know whether device is calibrated in on_tracker_connection_changed or on_screen_state_changed callbacks.

@snakelizzard thx for pointing out these bugs. The missing remove_listener was not a CaP issue, it was simply missing :) Fixes based on your corrective contributions will make it into the next official release of the C++ SDK.

Fixed in the latest release.


Pin dff-lcs, bump ohai, & misc omnibus updates

Pin diff-lcs since 1.4 has changed the output.
Bump Ohai and other deps while here.
Update some omnibus docs and comments to make diffing with workstation better and the docs a bit more accurate.
Bring in the .gitkeep cleanup from Workstation to nuke those files in the install

(clarification for posterity that diff-lcs 1.4.x actually has broken output through 1.4.3 at least)


Are these two lines of code okay? It may cause compilation errors

https://github.com/tensorflow/tensorflow/blob/b61c987109eaad755c2b36ba51a0b233d54d4e57/tensorflow/compiler/mlir/hlo/lib/Dialect/mhlo/transforms/fusion_utils.cc#L203
https://github.com/tensorflow/tensorflow/blob/b61c987109eaad755c2b36ba51a0b233d54d4e57/tensorflow/compiler/mlir/hlo/lib/Dialect/mhlo/transforms/fusion_utils.cc#L204
@wyzero
tensorflow/compiler/mlir/hlo/lib/Dialect/mhlo/transforms/fusion_utils.cc:203:27: error: 'class mlir::Operation' has no member named 'region'
for (Operation& op : op.region().getBlocks().front()) {

@jasonjx-w ,
We see that the issue template has not been filled and also the tensorflow version you are using, could you please do so as it helps us analyse the issue.Thanks!

I have the same problem when i use GCC 5.4.0. Maybe use GCC 7.3.1 can solve this problem.

@crischeng thx！


Error: socket hang up on when testing a geth client inside docker

Hello, firstly thank you for your work. Very useful tool for testing geth.
Now to the problem: Whenever I am trying to send many  EOA transactions ( 10k+ ) to a docker instance running on localhost:8545  the response in "Gathering receipts" is not received. Error is : socket hang up

This works totally fine when docker is not used.
What I have tried so far:
I went through this issue of Axios - https://github.com/axios/axios/issues/2936 and tried various solutions but was not able to remedy this problem.
I tried my changes here and did yarn locally and used the new bin.

Perhaps there is another place I should change?
Thank you.

Hey @Infra1515,
Thank you for opening up the issue 🙏
We essentially use axios in 2 places:

when batching the transactions to the node (doing the actual load testing)
when collecting transaction receipts

The socket seems to hang when you're waiting on the receipts (because it takes a while for a lot of transactions, depending on the network you're testing against, it's dependent on the throughput).
Have you tried applying the fix to the axios request in receipt fetching?

A quick update: After setting up a geth implementation as a systemd process on an AWS EC2 AMI - this behaviour happens again.
The interesting part is that on my local machine - Mac OS Venture, M1 Pro I do not have this problem. It only occurs on linux based OS - Ubuntu in the case of docker and Cent OS in the case of EC2 AMI. This is leading me to think there is something specific about how linux keeps sockets open but alas was not able to find any info on this.

Hey @Infra1515,
Thank you for keeping the issue updated 🙏
I have to look further into it, really curious why it would make a difference on Linux machines.
I will keep you updated here as soon as I have a resolution

Hey @Infra1515,
Sorry for the late reply 🙏
Do you experience this bug when you increase the number of open files on your Linux machines?
ulimit -n 65550
One possible cause I can think of is that you have not configured the batch limit correctly (large enough) on the geth instance, and it's hitting those limits at some point. What is the batch limit on the geth instance you're running, and what did you configure pandora with?

Hello @zivkovicmilos , sorry for the late reply from my side as well.
ulimit -n is set to > 65550 on the AWS machine.
I have come to the conclusion that this error is caused by insufficient resources on the machine hosting the node. The tx's are executed and written but when querying for them - the machine hangs up.
Example 1:  AWS

Once I increased the AWS machine size from t3.xlarge to m5.4xlarge the error stopped popping and the transactions were successfully executed on localhost.
When calling from my machine to the remote machine the error was replaced with  AxiosError: Request failed with status code 502  which I think is related to the CloudFlare/ELB kicking in and preventing too many requests
This error is popping up when using tx above > 10k and batch > 500, otherwise it's good
Example 2: Localhost with docker and systemd
When running a systemd process instead of docker on my own machine, everything was fine. Thus I think that docker is limiting the resources in some way of the program it operates ( unlike systemd). Just to be clear: I have increased docker resources from the UI to the maximum ( CPU,Ram, etc)

About the batch limit on the geth instance - I have not configured that and am not sure what the parameter is. Care to elaborate?
Thank you!

I have tried digging up the config on geth, and sifting through the codebase to find it, but it seems that geth does not support fine-grained HTTP batch support.
The batch-size you configure with pandora is the maximum number of requests that can be placed within a single HTTP request (a batch) - some blockchain nodes have this limitation to prevent DDoS and rate limit users. Pandora does not spam the node with thousands of HTTP requests, because it would hit the OS limits pretty quickly - instead, is optimizes this by sending the transactions (both deploy txs and receipt txs) inside a batch (for ex. if the batch size is 500, and you need to send 1000 transactions, it would only make 2 HTTP requests instead of 1000).
Geth, on the other hand, seems to have only a limit on the maximum request content size, which is validated here, the limit is 5MB.
This means that the batch being parsed by the geth node cannot exceed 5MB in content length (JSON)
https://geth.ethereum.org/docs/interacting-with-geth/rpc/batch

I can possibly add a mode for pandora that accepts the maximum batch size in bytes, instead of number of requests, to circumvent these issues and guessing

Thank you for the explanation. So in theory the issue is coming because with a lot of tx we are exceeding maximum request content size of geth? In this case, as you suggested, a specific flag with byte size will be better.
Another interesting thing is what you mentioned about pandora's batches - so in theory with t = 20k and b = 1k we will have only 20 requests then why is CloudFlare/ELB redirecting me to 502? But this is not relevant to our discussion, I will investigate it further.
Thank you again!


GPU Util 0%

If I don't specify GPU with 'export device=gpu0', There will be the memery of 2 GPU  used.But all the gup util is 0%.
And it will print this while running:
WARNING (theano.sandbox.cuda): The cuda backend is deprecated and will be removed in the next release (v0.10).  Please switch to the gpuarray backend. You can get more information about how to switch at this URL:
 https://github.com/Theano/Theano/wiki/Converting-to-the-new-gpu-back-end%28gpuarray%29

/usr/local/lib/python2.7/dist-packages/skcuda/cublas.py:272: UserWarning: creating CUBLAS context to get version number
  warnings.warn('creating CUBLAS context to get version number')
Using gpu device 0: TITAN X (Pascal) (CNMeM is enabled with initial size: 95.0% of memory, cuDNN 5105)

Hi, I am afraid the error seems to come not from Chainer but from Theano. Could you check if the error   is Chainer's one?

This is exactly what is weird! I didn't use theano at all. I can fix this by uninstalling theano!


Init project(#4)

add commit rule & (beta) general project diagram

This is a review of the picture.

What does the color of each line mean?
Are each server containerized?
It's hard to understand the picture because the lines are twisted.
Can you draw it intuitively and easily?

This is the meaning of colors in each line(legends will be updated)

Green line: management logging process
red:resource update process(codes, tokens, etc)
black straight line: training session logging process
blue line: real inference process
black curved line: manually triggered custom process. will be explained more in meeting

yes. each server must be containerized and in control under management process(airflow, kuber, etc)
If so, each process(each colors, in this image) will be drawn in seperate images. Is that fine?


Ps1 Emulation

Hi, I would like to report an issue. In my device, R36s, Ps1 emulation is very laggy on nfs 3 hot pursuit. Whatever settings I try it is laggy like its 3-5 fps. I use your last updated version 12222023. Someone in YouTube states that on 09292023 update there is no lag in spite of their previous update version. Could you please make a suggestion or a fix to solve this problem? Thanks.

Did you update the core in retroarch32?

I have just tried but the result is the same. Nfs3 hp is so laggy that no
one can play.
31 Ara 2023 Paz 18:18 tarihinde christianhaitian @.***>
şunu yazdı:

Did you update the core in retroarch32?
—
Reply to this email directly, view it on GitHub
https://github.com/christianhaitian/arkos/issues/886#issuecomment-1872973455,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BFA2XW4ZTMENF37BGZ4T7T3YMF623AVCNFSM6AAAAABBIKC4OSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZSHE3TGNBVGU
.
You are receiving this because you authored the thread.Message ID:
@.***>

Then try a different emulator such as duckstation or swanstation and see if the results are better with one of those emulators.

Then try a different emulator such as duckstation or swanstation and see if the results are better with one of those emulators.

Duckstation or swanstation do not even start the game. Screen being black
then returning back to the game selection page.
1 Oca 2024 Pzt 05:05 tarihinde christianhaitian @.***>
şunu yazdı:

Closed #886 https://github.com/christianhaitian/arkos/issues/886 as
completed.
—
Reply to this email directly, view it on GitHub
https://github.com/christianhaitian/arkos/issues/886#event-11363517715,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BFA2XWZWUWYMP32EER4XWMDYMIKVVAVCNFSM6AAAAABBIKC4OSVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGM3DGNJRG43TCNI
.
You are receiving this because you authored the thread.Message ID:
@.***>

Sounds like you’re missing a bios for the ps1 or you have a bad rom


Checkpoint env vars from configmaps/secrets

This could just be done by rewriting the pod spec as it's saved, to pull in the current values of the configmap / secret fields.
(We were trying to use a configmap to add the same set of --feature-gates to all of our self-hosted components, and now our checkpointed pod doesn't work)

One thing we would have to consider is if we do this for secrets, the pod manifest essentially becomes a secret as well -- and needs to be protected (putting your secret data into plain text inline of the manifest).
Not necessarily opposed to this (or maybe scoping down to configMaps). But this could get a bit complex / fragile doing a bunch of pod manifest rewrites (like we already do for secrets/configmap to hostmounts).  Also, depending on timing this might at least be mitigated by upcoming changes (albeit not until v1.7).
The plan moving forward is to move all flag configuration of core components into a configMap, then the components themselves can read a serialization of this from disk (which is populated by the configMap). So our checkpointing / rewriting of the configMap into a hostmount should work out-of-box.
As a side note - when we do finally get around to implementing real kubelet checkpointing, this is making me think we might need the kubelet to know about configMaps/secrets and how to populate them from checkpoints rather than trying to do a bunch of pod manifest translations.

Our main need for this is configmaps, I only added secrets as it seemed very related.
Your point is good though, I'd be happy leaving secrets out.
I think in the interim we'll just hardcode the apiserver one and have it live in two places, or have fun with sed, if we think this is just going to be solved for us in 1.7


Use fully qualified Go module path

With this change a user can blindly run go install github.com/yuzutech/kroki-cli/cmd/kroki@latest to install the package.

It looks good, thanks!

With this change a user can blindly run go install github.com/yuzutech/kroki-cli/cmd/kroki@latest to install the package.

I didn't even know that was possible. Could you please mention that in the README? I think we should add an "Installation" section after "Usage" and mention that we can either download a binary from https://github.com/yuzutech/kroki-cli/releases or run go install ....
Thanks again!

I added the Installation section into the README as suggested.

Thank you 🤗


fix order for player change interior event

Not sure if this breaking change is needed, cuz there is no order policy, some events have old value first and some new values first

The question is whether it is possible to use the same order that the cpp-sdk uses. Then you would have a constant way the parameters are passed through. In the C# module, as far as I know, at least the events I have built in are based on the cpp-sdk


Add engineering.mongodb.com to the showcase

Hi @ashitaka1,
thank you for adding MongoDB's engineering blog to the showcase of Hugo. I've merged your addition as 0667d8a0f5e98a069a069be79821da573f4e14fc (master) and 84f0cf73dce46905233636c80b8b04d8df64030a (v0.15.docs).
The showcase should be updated within the next minutes.
Cheers,
Digitalcraftsman


meta-lxatac-bsp: emmc-image: build smaller images (faster)

This PR does three things:

Revert #62 by @rohieb because it did not achieve quite what we wanted
Remove the partition end workaround that was removed in #62 (but without changing other things like adding fill=true).
Do not place a GPT header at the "end"¹ of the image.
Use the existing rootfs ext4 instead of generating a new one from the .tar.

Things I am not too sure about:

[ ] Should we use some templating magic instead of writing lxatac-core-image-base-lxatac.ext4 in the genimage.config?
[ ] Are all the dependencies automatically set up so that we can rely on lxatac-core-image-base-lxatac.ext4 being present.
[ ] Is the rootfs grown like we want it to.

The last one I can test, for the rest I would be glad about some feedback.

¹ Which is the end of the image but has nothing to do with the end of the device the image is written to, where the header should be.

The seond one you could also check by inspecting the DEPENDS variable in the output of bitbake -e emmc-image.

Seeing the core and base in the image name always irks me a little bit, as it is not very core-y or base-y with all the development tools.
We should define an actual minimal image in the future and derive our full image with all the tools from there.
(But that's not something we should do or discuss here)

As it turns out the rootfs was not resized to match the partition as we wanted it to.
Newer systemd versions ship a systemd-growfs-root.service that can help us here, so I've backported it for now.
Hopefully we can throw away the backport very soon.


Allow precompiled EVM bytecode on contract deployment

Most non-trivial contracts involved multiple solidity files, and cannot simply be in-lined in a YAML/JSON payload. So ethconnect should provide a way to use solc locally, and supply the compiled contract code (along with the simple mechanism for sending the constructor parameters, like we have for SendTransaction).
Today these more sophisticated contracts need to be installed by other code/tools, before sending transactions in with ethconnect.

Does it support now？

Hi @shiqinfeng1,
The API for submitting a compiled contract + ABI to the built-in store is described here:
https://api.kaleido.io/ethconnect.html#tag/Smart-Contract-REST-APIs/paths/~1/post
On the Kaleido platform, we've actually gone quite a bit further an added end to end contract management to manage the ABIs and contract bytecode across all the nodes in your environment:
https://www.kaleido.io/blockchain-blog/smart-contract-management-solution-how-it-works-why-you-need-it
Sorry this issue is stale. Closing it out.


[SPARK] Support gcs reads using vended credentials

PR Checklist

[x] A description of the changes is added to the description of this PR.
[ ] If there is a related issue, make sure it is linked to this PR.
[ ] If you've fixed a bug or added code that should be tested, add tests!
[ ] If you've added or modified a feature, documentation in docs is updated

Description of changes
Updates the spark connector to support vended credentials for google cloud storage buckets.
We use the com.google.cloud.hadoop.util.AccessTokenProvider interface to pass the vended credential properties stored in the hadoop conf -- see google's gcs-connector documentation for more details.
Example spark conf (assumes that the gcs connector jar is included in the spark jars/packages as well):
spark.hadoop.fs.AbstractFileSystem.gs.impl 	com.google.cloud.hadoop.fs.gcs.GoogleHadoopFS
spark.hadoop.fs.gs.auth.type 			ACCESS_TOKEN_PROVIDER
spark.hadoop.fs.gs.auth.access.token.provider 	io.unitycatalog.connectors.spark.GcsVendedTokenProvider

Shall we update CredentialTestFileSystem to test gcs credentials?

Shall we update CredentialTestFileSystem to test gcs credentials?

Added (see 83a3b0bbcb8c5dba701ffcf6dc3188ee3e1495d9)


Auto generate draft of flat

Today I had a burning need to generate a bunch of drawings of flat patterns in a PDF to review some geometry placement on 600+ parts at a time. I got to a very rough but very working implementation today and thought it might be a good candidate to include as a new feature. I know my engineers are going to be over the moon about it. If we think it's a good fit I can start work on it whenever my current project load settles down. Once I get all the C# written for all the features I want, I can translate it to VB if I can get some help with the UI side of things.
I still need to run it through a few more assemblies without the shortcuts I took to ship the product today to weed out any issues. The bones are working though.
using System.Net;
using System.Runtime.InteropServices;
using EdgeSharp;
using EdgeSharp.Extensions;
using SolidEdgeAssembly;
using SolidEdgeDraft;
using SolidEdgeFramework;
using SolidEdgePart;

internal static class Program
{
    // TODO: Get rid of this DllImport garbage and find a more elegant way to get the progID
    [DllImport("ole32.dll", CharSet = CharSet.Unicode, PreserveSig = false)]
    static extern string ProgIDFromCLSID([In()]ref Guid clsid);

    [STAThread]
    private static void Main()
    {

        var app = AppHelper.Connect();

        const ApplicationExtensions.BackgroundOptions backgroundOptions =
            //ApplicationExtensions.BackgroundOptions.Invisible |
            ApplicationExtensions.BackgroundOptions.HideAlerts |
            //ApplicationExtensions.BackgroundOptions.NonInteractive |
            //ApplicationExtensions.BackgroundOptions.NoScreenUpdating |
            //ApplicationExtensions.BackgroundOptions.DelayCompute |
            ApplicationExtensions.BackgroundOptions.None;

       app.SetBackgroundOptions(backgroundOptions);

        var asmDoc = (AssemblyDocument) app.Documents.Open(@"E:\path\to\assembly.asm");

        asmDoc.TraverseAssemblyWithAction((doc) =>
            {
                if (doc.Type == DocumentTypeConstants.igSheetMetalDocument)
                {
                    var sheetMetalDoc = (SheetMetalDocument)doc;
                    // Skip docs with no flat pattern
                    if (File.Exists($"{sheetMetalDoc.Path}/{sheetMetalDoc.Name}.dft")) return;
                    var flatPatternModels = sheetMetalDoc.FlatPatternModels;
                    if (flatPatternModels.Count < 1) return;
                    var flatPatternModel = flatPatternModels.Item(1);
                    var flatPattern = flatPatternModel.FlatPatterns.Item(1);

                    double minX;
                    double minY;
                    double maxX;
                    double maxY;
                    try
                    {
                        // Get range of flat pattern.
                        flatPattern.Range(out minX, out minY, out _, out maxX, out maxY, out _);
                    }
                    catch (NullReferenceException)
                    {
                        // Don't know why this happened.
                        // TODO: Find out what is throwing null exceptions on FlatPattern.Range()
                        return;
                    }

                    // Calculate total height and width of flat pattern X/Y
                    var xRange = maxX - minX;
                    var yRange = maxY - minY;

                    // Convert to inches
                    xRange = xRange * 39.37;
                    yRange = yRange * 39.37;

                    // Calculate X and Y scale required based on max size you would like the drawing view
                    var xScale = 16 / xRange;
                    var yScale = 7 / yRange;
                    // Scale needed is whichever is lower to prevent overflow from desired max window size.
                    // Shrunk by a tiny bit to accommodate drawingviews with weird centroids.
                    var scale = Math.Min(xScale, yScale) * 0.95;

                    // This should be unnecessary. Bake it into EdgeSharp.
                    Guid guid = typeof(DraftDocument).GUID;
                    string progId = ProgIDFromCLSID(ref guid);

                    // Create draft doc and add SheetMetalFlatView in top orientation.
                    var draftDoc = (DraftDocument)app.Documents.Add(progId);
                    var modelLinks = draftDoc.ModelLinks;
                    var modelLink = modelLinks.Add(doc.FullName);
                    var sheets = draftDoc.Sheets;
                    var drawingSheet = sheets.Item(1);
                    var drawingViews = drawingSheet.DrawingViews;
                    // x and y will be where the centroid of the DrawingView is placed relative to x/y 0 of the sheet.
                    // 0.2159 x 0.15 will place the center of the DrawingView at the center point of a default
                    // 11" x 17" size sheet, offset slightly in +Y to compensate for a standard background
                    // bottom header. Find a better way to handle this by finding sheet size API.
                    var sheetMetalDrwaing = drawingViews.AddSheetMetalView(modelLink,
                        ViewOrientationConstants.igTopView, scale, 0.2159, 0.15,
                        SheetMetalDrawingViewTypeConstants.seSheetMetalFlatView);
                    draftDoc.SaveAs($"{sheetMetalDoc.Path}/{sheetMetalDoc.Name}.dft");
                    app.DoIdle();
                    draftDoc.Close();
                    // Stop
                }
            }, true
            );

    }
}

This code does the following:

Walks and assembly recursively, looking for sheet metal parts with flat patterns.
Calculates the height and width of the flat pattern.
Gets the size of the area which you'd like the drawing view to be.
Scales the drawing view to fit within the area.
Places the drawing view at a chosen point on the sheet.

Planned additions:

Better handling of drawing view placement on sheet / handling different size sheets.
Rotate drawing views so longest edge is always on X for landscape sheets.
Handle custom templates, backgrounds, etc. (Can a user make a custom template that notes the default center point of the drawingview to be consumed by the script or better yet, a window?)
Metadata to drawing (how much of this does SE automate? I've barely touched the draft environment before today)
PDF output
Big boy error handling.

That sounds like a useful feature.  I can handle the UI part.  Not sure we need the assembly-traversal or PDF output, as that's already part of Housekeeper and might be confusing.
If it's any easier, once you get it working like you want, you could simply supply the source code and I can do the conversion/integration on my end.

That sounds like a useful feature. I can handle the UI part. Not sure we need the assembly-traversal or PDF output, as that's already part of Housekeeper and might be confusing.
If it's any easier, once you get it working like you want, you could simply supply the source code and I can do the conversion/integration on my end.

Oh yeah I wasn't suggesting the assembly traversal. That's just the prototype code I'm working with for my implementation. I'm going to try to get rotation baked in, as well as an option to do two drawings (a back side and a top side) on the same sheet while scaling it then I'll throw together something more practical for Housekeeper.

I'm going to drop the current C# code here. I won't have time to translate it any time soon but if you end up with some free time, this should get things started. It's getting the flat pattern view drawing, adding it to a sheet, detecting if it's taller in Y than in X and if so rotating 90 degrees, then using the DrawingView range to find the center and place it based on the sheet center.
It should probably better support non-default sheet sizes. It should support .par documents (not implemented in my code yet as all my flat parts are sheet metal). I really need to break it down into more manageable functions before I start expanding the features. PDF output should be optional. Now that scaling and centering is solid using the DrawingView range, it should be fairly trivial to support other view types and orientations. Need to look at the constants available for drawing views and experiment to see what works well.
var sheetMetalDoc = (SheetMetalDocument)doc;
                    Debug.WriteLine($"Generating drawing for {sheetMetalDoc.Name}");
                    // TODO: Detect UpToDateness of drawing before moving on
                    if (File.Exists($"{sheetMetalDoc.Path}/{sheetMetalDoc.Name}.dft"))
                    {
                        Debug.WriteLine("Drawing exists. Skipping.");
                        return;
                    }

                    var flatPatternModels = sheetMetalDoc.FlatPatternModels;
                    if (flatPatternModels.Count < 1)
                    {
                        Debug.WriteLine("No flat models. Skipping.");
                        return;
                    }

                    var flatPatternModel = flatPatternModels.Item(1);
                    var flatPattern = flatPatternModel.FlatPatterns.Item(1);

                    double minX;
                    double minY;
                    double maxX;
                    double maxY;
                    try
                    {
                        // Doesn't take into account tabs. Only measures flat pattern object range.
                        //TODO: Try to get a range which includes tabs on the flat model
                        flatPattern.Range(out minX, out minY, out _, out maxX, out maxY, out _);
                    }
                    catch (NullReferenceException ex)
                    {
                        Debug.WriteLine(ex);
                        using StreamWriter logFile = File.CreateText(@"E:\2687\RTR-Labeled\err.log");
                        logFile.WriteLine($"NullReference while processing {sheetMetalDoc.Name}");
                        logFile.WriteLine(ex);
                        return;
                    }

                    var xRange = maxX - minX;
                    var yRange = maxY - minY;

                    // Check if drawing is taller than it is wide for rotation and scale handling.
                    var tallDrawing = (xRange < yRange);

                    // 16" x 7" will get you good drawing size on a default 11"x17" sheet with a standard style background
                    var xScale = 16 / xRange.MetersToInches();
                    var yScale = 7 / yRange.MetersToInches();

                    // Rotate the scale if flat pattern is taller than it is wide.
                     Bake it into EdgeSharp.
                    Guid guid = typeof(DraftDocument).GUID;
                    string progId = ProgIDFromCLSID(ref guid);

                    // Get draft doc, model link, and sheet
                    var draftDoc = (DraftDocument)app.Documents.Add(progId);
                    var modelLinks = draftDoc.ModelLinks;
                    var modelLink = modelLinks.Add(doc.FullName);
                    var sheets = draftDoc.Sheets;
                    var drawingSheet = sheets.Item(1);

                    // Get sheet height and width to position drawing in center
                    var sheetSetup = drawingSheet.SheetSetup;
                    var sheetHeight = sheetSetup.SheetHeight;
                    var sheetWidth = sheetSetup.SheetWidth;
                    var sheetXMid = sheetWidth / 2;
                    var sheetYMid = sheetHeight / 2;

                    // Add drawing view
                    var drawingViews = drawingSheet.DrawingViews;
                    var sheetMetalDrawing = drawingViews.AddSheetMetalView(modelLink,
                        ViewOrientationConstants.igTopView, scale, sheetXMid, sheetYMid,
                        SheetMetalDrawingViewTypeConstants.seSheetMetalFlatView);
                    app.DoIdle();
                    double drawingViewOriginX;
                    double drawingViewOriginY;
                    sheetMetalDrawing.GetOrigin(out drawingViewOriginX, out drawingViewOriginY);
                    Debug.WriteLine(
                        $"Drawing origin: {drawingViewOriginX.MetersToInches()}, {drawingViewOriginY.MetersToInches()}");
                    if (tallDrawing)
                    {
                        Debug.WriteLine("Tall part detected. Rotating 90 degrees");
                        sheetMetalDrawing.SetRotationAngle(90.0.DegreesToRadians());
                    }

                    // Some flat pattern drawing origins end up in inconsistent places
                    // Get drawing view center to properly place it centered on sheet using offset from sheet center
                    double drawingViewXMin;
                    double drawingViewYMin;
                    double drawingViewXMax;
                    double drawingViewYMax;
                    sheetMetalDrawing.Range(out drawingViewXMin, out drawingViewYMin, out drawingViewXMax,
                        out drawingViewYMax);

                    var drawingViewXMid = (drawingViewXMin + drawingViewXMax) / 2;
                    var drawingViewYMid = (drawingViewYMin + drawingViewYMax) / 2;
                    Debug.WriteLine($"Drawing center: {drawingViewXMid.MetersToInches()}, {drawingViewYMid.MetersToInches()}");

                    drawingViewOriginX += sheetXMid - drawingViewXMid;
                    drawingViewOriginY += sheetYMid - drawingViewYMid;
                    sheetMetalDrawing.SetOrigin(drawingViewOriginX, drawingViewOriginY * 1.1);

                    draftDoc.SaveAs($"{sheetMetalDoc.Path}/{sheetMetalDoc.Name}.dft");
                    app.DoIdle();
                    // Optionally save as PDF?
                    draftDoc.SaveAs($"{sheetMetalDoc.Path}/{sheetMetalDoc.Name}.dft.pdf");
                    app.DoIdle();
                    draftDoc.Close();

Yeah, that's great!  I'll take it from here.  I'll leave this issue open for now, in case I run across something I don't understand.  Thank you!

@ChrisClems
I got something working today.  If you get a chance, please check it out and let me know anything I messed up or left out.

@rmcanany Looks great! Just threw a few dozen parts through it and it hasn't choked up. I added an X/Y offset with #121 but I think it needs some thought and work for unit conversions. I couldn't think of a good way to handle it off the top of my head without some major discussion about how you'd like unit conversions handled.

I added offset unit checkboxes for "in" and "mm".  When you get a chance, check it out and let me know what you think.

Closing as complete.  @ChrisClems Thank you!