text:
resample raw data

Last week we removed this function. That's because I tought it was resampling directly the SH, which is now straightforward with scilpy's upcoming function, you just have to give a different sphere.
But this function actually resamples RAW data, but uses the SH for the resampling. My bad. So I'm adding this back. I didn't check the last maths (last two lines). Can you confirm they are correct?
Thanks!

Hello @EmmaRenauld! Thanks for opening this PR.

In the file dwi_ml/data/processing/dwi/dwi.py:

Line 110:11: E741 ambiguous variable name 'l'
Line 113:26: W292 no newline at end of file

Do see the PEP 8 -- Style Guide for Python Code

I might not be understanding the code well, but to me this looks like it resamples the SH, not the raw signal ?

Thanks Max. @ppoulin91 I am letting you decide how to answer to Maxime's comment that is is dangerous. Were you still using this?
I don't quite know how to test this, also.

There is no response function involved, SH are fitted to the raw signal, then new directions are sampled using the provided sphere.
@mdesco I don't think I understand your comment, can you clarify what you meant?
Sidenote: @AntoineTheb, in my understanding, the raw signal is composed of values on the sphere, so it's a (discretized) Spherical Function (because it's a single-shell signal). We use SH to go into a continuous space, then sample in another SF "space" (new directions on the sphere).

@ppoulin91 I'm not talking about response functions. I'm talking about the SH basis and deciding to fix tournier versus descoteaux.  My initial point was that:

everywhere the default is descoteaux, so maybe safest to keep it as this
descoteaux basis is better conditioned than Tournier's basis (mathy/geaky discussion in my thesis).

All that to say, I would recommend using Descoteaux and initially, I thought you could receive sh coefficients but, in fact, this is my mistake. You are only using DWI signal on the sphere... so, using descoteaux or tournier would be identical in theory. But not, in practice. I would use Descoteaux. (I'm biased but that's ok)

Ah ok, I get it. Yeah, I remember choosing tournier just for vizu in mrtrix at the time, and didn't change it back. Had forgotten about the better conditioning, so it would be better to go back to descoteaux and keep it that way.


text:
request for help

i am a beginner，My original question is：
subto c3:forall in C2 :             vif sum in C1:a[j]*b[i]*z[j,i] == 0               then C[i] == 0 else C[i] >=0 end;
I want to translate it into a question written in python language：
for i in C2:
expr = quicksum(a[j] * b[i] * z[(j, i)] for j in C1 if z[(j, i)] == 1)
if model.isEQ(expr,0):
model.addCons(C[i] == 0, "c4[%d]" % i)
else:
model.addCons(C[i] >= 0, "c4[%d]" % i)
compiler error：
if model.isEQ(expr,0):
File "src/pyscipopt/scip.pyx", line 1178, in pyscipopt.scip.Model.isEQ
TypeError: must be real number, not pyscipopt.scip.Expr
how to save this question？？？？

Is this question related to pyscipopt?

Issue closed due to inactivity.

source: gharchive/issue

repo: scipopt/PyGCGOpt

license: MIT

license_type: permissive

license_source: github-api


text:
Test NeXus workflow

LoadNeXusWorkflow is currently untested. We should change that!

Most of the components are tested in https://github.com/scipp/essreduce/blob/main/tests/nexus/generic_workflow_test.py and https://github.com/scipp/essreduce/blob/main/tests/nexus/workflow_test.py. LoadNeXusWorkflow itself is a helper that is currently not (and may never) be used by anything. It is meant as a quick helper to work with unknown files, so it is unclear what its future will be.

authors: SimonHeybrock jl-wynen

repo: scipp/essreduce


text:
griddata/qhull fails on huge datasets

scipy.interpolate.griddata is not working if the amount of data is large (number of points ~10000000) and when some of them are located as on regular grid.
Similar problem cannot be found in Matlab, where griddata is working with the same data.

@gvali can you please add code to reproduce your issue? right now this isn't actionable

Please find the script in the attachments. It takes Matlab about 50 seconds to solve the problem with theirs griddata function, while Scipy is giving warnings and is killed eventually.
testdata.tar.gz

The issue is that qhull fails to triangulate the data. Matlab uses qhull, but I'm not sure if they had specialized 2d triangulator.
It may be possible to make qhull work by passing it the correct options, e.g. "QJ" like so:
tri = Delaunay(np.c_[xin, yin], qhull_options="QJ")
ip = LinearNDInterpolator(tri, zin)
zout = ip(xout.ravel(), yout.ravel()).reshape(xout.shape)

This takes less memory but I'm not sure if it terminates.

If I use the method as described by @pv , I get QHull error. Following text is written at screen:
QH6229 qhull precision error: 101 attempts to construct a convex hull
with joggled input.  Increase joggle above 'QJ0.25'
or modify qh_JOGGLE... parameters in user.h
While executing:  | qhull d QJ
Options selected for Qhull 2012.1 2012/02/18:
run-id 1211065760  delaunay  Qbbound-last-qj  Pgood
_run 101  QJoggle 0.25  _joggle-seed 1633092583  _max-width 25
Error-roundoff 9.2e-14  Width-outside 1.8e-13  _wide-facet 5.5e-13
Last point added to hull was p3926478.
At error exit:
At a premature exit due to 'TVn', 'TCn', 'TRn', or precision error with 'QJn'.
Delaunay triangulation by the convex hull of 9260496 points in 3-d:
Number of input sites: 1295835
Total number of nearly incident points: 7964661
Number of Delaunay regions: 0
Statistics for:  | qhull d QJ
Number of points processed: 1295835
Number of hyperplanes created: 626944998
Number of facets in hull: 2591665
Number of distance tests for qhull: 88280278
After 101 retries, input joggled by: 0.25

So the issue is that qhull fails to triangulate data with 9M points :
In [6]: xin.shape
Out[6]: (9260496,)

Quick checks with smaller number of points work fine, e.g.
tri = Delaunay(np.c_[xin[:1_000_000], yin[:1_000_000]], qhull_options="QJ")

but with the full data from https://github.com/scipy/scipy/issues/6257#issuecomment-225698318, qhull chokes and fails eventually. Maybe indeed there is a set of qhull options which make it work, my quick tries did not bring anything, but I'm fairly ignorant on QHull.
At any rate, relabelling this as a scipy.spatial issue,  there is not much scipy.interpolate can do here.

authors: ev-br gvali pv rgommers

repo: scipy/scipy


text:
ENH: stats.Covariance: specifying covariance matrix by its eigendecomposition

Reference issue
Followup to gh-16002
Addresses part of gh-15675
What does this implement/fix?
gh-16002 added the ability to specify a covariance matrix via its inverse.
This PR adds the ability to specify a diagonal covariance matrix via its eigendecomposition.
Additional information
It might make sense to take a look at the three commits separately.

The first adds the eigendecomposition functionality
The second adds tests that I forgot to add in previous PRs
The third adds docstring examples I should have added in previous PRs

I can move the second and third commits to a separate PR if desired.

OK @tupui I committed all your suggestions and applied Tirth's comment as appropriate, too.

Thanks @tupui @mdhaber!

source: gharchive/pull-request

authors: mdhaber tirthasheshpatel


text:
STY: special: use indent width of 4 in clang-format

Reference issue
https://github.com/scipy/scipy/pull/19613#issuecomment-1836503053
https://github.com/scipy/scipy/pull/19613#issuecomment-1837120479
What does this implement/fix?

Changes from indent width 2 to 4 in the clang-format of scipy/special/special
Adds git blame ignores for the style only changes

Additional information

Thanks @lucascolley. While were at it, @izaid, is it cool if we set the ColumnLimit to something smaller like 90? I like to code with two windows open side by side.

Thanks @lucascolley! That's actually really helpful!
I'm less keen on changing the columnwidth.

I'm less keen on changing the columnwidth

Yeah. I’m working on porting cephes stuff now and saw the shorter column width isn’t working out.

authors: izaid lucascolley steppi


text:
BUG: Fix linear_sum_assignment hanging on an undefined matrix

Fixes issues #6370, #7005 by checking if the matrix contains inf or nan. Also added additional checks for non-numeric data types. Related: #6900

LGTM, thanks @evanlimanto

cost_matrix.dtype is np.dtype(np.bool) should use == instead of
is. Dtypes should not be assumed to be singletons (this is not true
for all types) --- if they sometimes are, this probably should be
considered is an implementation detail.

Dtypes should not be assumed to be singletons (this is not true for all types)

Thanks @pv, didn't know that. Will send a follow-up PR now.

authors: evanlimanto pv rgommers


text:
DOC: correct structure description in ndimage.label docstring

Change symmetric requirement to say centrosymmetric and add
Notes section to the docstring to explain this requirement.
Closes #9869.

LGTM, merged. Thanks @lhilt

authors: lhilt rgommers


text:
Deprecate CentOS 7 Testing Farm

The team has decided to deprecate CentOS 7.
This pull request deprecate it.

[test]

[test]

The failure of 'CentOS 7' is expected. The playbook does not exist at all.

repo: sclorg/sclorg-testing-farm


text:
Add GitLab support to secman

secman works with github, so why we don't add gitlab support to secman, I think it's a good idea ?

I think it's an awesome idea

it's bad, there well be many errors and problems

authors: Timothee-Cardoso abdfnx

repo: scmn-dev/secman


text:
[FEATURE]

add fucking faceit auto accept noob

Next update should include the Faceit autoaccept

okay but who asked

authors: klimostroj scogliera

repo: scogliera/csgo-autoaccept


text:
implement a bunch of sorted set commands, first pass.

There are still quite a few commands left to be implemented but they are less commonly used. I will take them on in a subsequent MR. This one is already getting pretty big.

This addresses about half of the work mentioned in #31

repo: scoquelin/arugula


text:
Entire mini.nvim, vim-fugitive and fzf-lua support

Question or Suggestion
Can support for entire mini.nvim suite and fzf-lua be added. Currently this theme doesn't support mini.statusline, mini.indentscope afaik.

Hi @231tr0n!
Thanks for raising the issue. I'll be adding support for fzf-lua very soon :)

Hello @echasnovski!
Hope I'm not being too cheeky asking this of you, but I can see you've made contributions to several other colorschemes just in the last day. I thought I'd jump on the opportunity to see if you'd be interested in adding Offical Mini Support™ to cyberdream.nvim as well. Would love input from the original author!

@231tr0n I've added a borderless theme for fzf-lua that looks like this:

This mimics the default telescope theme quite closely. For it to look correct, you need to set fzf_colors to true in your fzf config. E.g.
return {
    "ibhagwan/fzf-lua",
    dependencies = { "nvim-tree/nvim-web-devicons" },
    config = function()
        require("fzf-lua").setup({
            fzf_colors = true,
        })
    end,
}

@scottmckendry, Is support for vim-fugitive possible. I did not want to create a new defect. So I modified the existing one.

Hello @echasnovski!
Hope I'm not being too cheeky asking this of you, but I can see you've made contributions to several other colorschemes just in the last day. I thought I'd jump on the opportunity to see if you'd be interested in adding Offical Mini Support™ to cyberdream.nvim as well. Would love input from the original author!

Hi @scottmckendry!
Since you are the first one to ask this (and nicely so), here you go. I'd like to explicitly stress though, that this is not an Offical Mini Support™, but my attempt to make 'mini.nvim' experience more pleasant for users. I'd much rather enjoy seeing that color scheme authors or their users add this kind of support on their own (it is explicitly stated as a welcome way to contribute to 'mini.nvim' with an explicit list of highlight groups needed for full support).

I would also like to give some feedback for issues that were apparent when adding 'mini.nvim' support:

The Visual highlight group defines both foreground and background. This is generally ok (although I prefer background only), but the result has way too low contrast ratio (1.71, to be exact). To the point that text is barely readable.
Having Diff* highlight only through foreground is rarely a good choice for usability. Mostly because they are used to highlight already highlighted text. Using background highlighting is usually a better choice. I'd prefer something like what is used for MiniDiffOverXxx highlight groups in PR.
The CursorLine and CursorColumn highlight groups define lines used to quickly locate cursor on screen. As cursor can be used in floating windows, it is reasonable to have those two groups be such that they are visible both in normal and floating windows. Hence I am not really sure what the purpose of custom MiniFilesCursorLine is.
I'd personally create all shades with appropriate names beforehand instead of using util.blend() in the highlight group definitions. This allows for a more coherent future definitions in plugin extensions.

Hope this helps.

You're a ⭐ @echasnovski! Thanks for the excellent feedback. Especially around useability and contrast. I want the colorscheme to be as friendly as possible for users and contributors alike.
Appreciate all your hard work on neovim and mini! It's people like you that make the neovim community such a pleasure to be a part of 💚

@231tr0n I've fixed the highlights for vim-fugitive's :Git diff command in the latest commit. As far as I can tell, everything else looks pretty good out of the box. If you spot anything else, let me know 🙂

@scottmckendry The mini.statusline and MiniHiPatterns dont look properly with the latest changes.
MiniHipatternsNote
MiniHipatternsTodo
MiniHipatternsHack
MiniHipatternsHack
MiniStatuslineModeReplace
MiniStatuslineModeCommand
MiniStatuslineModeInsert
MiniStatuslineModeVisual
MiniStatuslineModeNormal
MiniStatuslineModeOther
are the related highlight groups afaik.

Should be resolved now. Pretty sure this would only be an issue when transparency is enabled - due to the bg color being set to "NONE". Let me know if the most recent change fixes it 👍🏻

Should be resolved now. Pretty sure this would only be an issue when transparency is enabled - due to the bg color being set to "NONE". Let me know if the most recent change fixes it 👍🏻

@scottmckendry yup it fixes it. One last addon, currently if we open buffers horizontally using :split command, there is visually no seperator spearating the two buffers horizontally. Vertically there is a line but my doubt was can something be done about this horizontally.

Oh, that's an easy one! Just set hide_fillchars to false (or remove the option entirely since this is the default) in your config and the separators will reappear 🙂

Oh, that's an easy one! Just set hide_fillchars to false (or remove the option entirely since this is the default) in your config and the separators will reappear 🙂

It is false in my case but still i dont see any separators horizontally.

Hmmm... I'm not 100% sure what that could be then. Could you try defining the fillchar manually in your config?
This line here, update it to vim.o.fillchars = [[eob: ,fold: ,foldopen:,foldsep: ,foldclose:,horiz:─]] to see if there's any change.
If not, it might be getting overridden somewhere else.

Hmmm... I'm not 100% sure what that could be then. Could you try defining the fillchar manually in your config? This line here, update it to vim.o.fillchars = [[eob: ,fold: ,foldopen:,foldsep: ,foldclose:,horiz:─]] to see if there's any change.
If not, it might be getting overridden somewhere else.

It is still the same even after the change you suggested.The thing is vertical line is coming, only horizontal is the issue.

Looks like it might be a global statusline thing. If you run :set laststatus=3 does that fix it?

Looks like it might be a global statusline thing. If you run :set laststatus=3 does that fix it?

Yup this fixes it. Thank you soo much @scottmckendry.

CLosing this issue.

You're a ⭐ @echasnovski! Thanks for the excellent feedback. Especially around useability and contrast. I want the colorscheme to be as friendly as possible for users and contributors alike.
Appreciate all your hard work on neovim and mini! It's people like you that make the neovim community such a pleasure to be a part of 💚

You're welcome! Best of luck keeping up with the not-always-easy burden of maintaining a color scheme.

Having Diff* highlight only through foreground is rarely a good choice for usability. Mostly because they are used to highlight already highlighted text. Using background highlighting is usually a better choice. I'd prefer something like what is used for MiniDiffOverXxx highlight groups in PR.

I've remembered the other (probably more prominent) reason why Diff* highlight groups usually have distinctive background. DiffAdd, DiffChange, and DiffDelete are used to highlight whole lines, meaning the part after end of line is also highlighted. If there is no background attribute in those highlight groups, this is not visible. And there is also an issue of highlighting whitespace with these groups.

I've just added a fix for this in the latest commit. Gave it a spin with diffview.nvim and it looks SOO much better! Thank you again 🙂

authors: 231tr0n echasnovski scottmckendry


text:
Reading DS1202CA files  failed

Attempted to convert a WFM file of DS1202CA to CSV but it failed :
$ python --version
Python 3.8.5
$ wfmconvert C csv NewFile6.wfm
Traceback (most recent call last):
File "/home/ben/Downloads/wfm/bin/wfmconvert", line 8, in
sys.exit(main())
File "/home/ben/Downloads/wfm/lib/python3.8/site-packages/RigolWFM/wfmconvert.py", line 125, in main
scope_data = rigol.Wfm.from_file(filename, args.model)
File "/home/ben/Downloads/wfm/lib/python3.8/site-packages/RigolWFM/wfm.py", line 180, in from_file
ch = RigolWFM.channel.Channel(w, ch_number, pname, enabled_channels)
File "/home/ben/Downloads/wfm/lib/python3.8/site-packages/RigolWFM/channel.py", line 132, in init
self.seconds_per_point = w.header.seconds_per_point
File "/home/ben/Downloads/wfm/lib/python3.8/site-packages/RigolWFM/wfm1000c.py", line 203, in header
self._m_header = self._root.Header(self._io, self, self._root)
File "/home/ben/Downloads/wfm/lib/python3.8/site-packages/RigolWFM/wfm1000c.py", line 59, in init
self._read()
File "/home/ben/Downloads/wfm/lib/python3.8/site-packages/RigolWFM/wfm1000c.py", line 62, in _read
self.magic = self._io.ensure_fixed_contents(b"\xA5\xA5\x00\x00")
File "/home/ben/Downloads/wfm/lib/python3.8/site-packages/kaitaistruct.py", line 323, in ensure_fixed_contents
raise Exception(
Exception: unexpected fixed contents: got b'\xa1\xa5\x00\x00', was waiting for b'\xa5\xa5\x00\x00'
The wfm file is  attached.
NewFile6.wfm.gz

Thanks for the test file.  This is the first 1000C version file that the code has been tested against.
Several minor changes were needed to get things working.  I have uploaded these to github.
I am not sure if everything is working exactly as it should.  Everything looks reasonable, but it would be nice to verify that voltages and times are exactly right.
Please test the latest version on github.  If you find errors, then please upload both the .wfm files and .csv or .bmp files so I can figure out what is going wrong.

Hi Scott,
Already many thanks for your effort!
I did a first conversion of two other files. As this is something of my son studying physics he'll check the output CSV files later on. And then I'll let you know if your files work correctly.
Cheers, Ben
On 13 Feb 2021, 23:40, at 23:40, Scott Prahl notifications@github.com wrote:

Thanks for the test file.  This is the first 1000C version file that
the code has been tested against.
Several minor changes were needed to get things working.  I have
uploaded these to github.
I am not sure if everything is working exactly as it should.
Everything looks reasonable, but it would be nice to verify that
voltages and times are exactly right.
Please test the latest version on github.  If you find errors, then
please upload both the .wfm files and .csv or .bmp files so I can
figure out what is going wrong.
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
https://github.com/scottprahl/RigolWFM/issues/15#issuecomment-778688211

I converted now 19 files to CSV. They were checked and it seems voltages and timing are as expected ! Cool !
You can spin a new release !  ;)
Many thanks !
Cheers, Ben

Great news!  I released version 0.7.  Thanks for your contribution.

authors: benvanloock scottprahl

repo: scottprahl/RigolWFM


text:
New iAPS Release Available: v5.8.0

Hi @bjornoleh,
The Artificial Pancreas ( iAPS ) project just released v5.8.0.
If you are receiving this message, your current code base is out of sync
with the main repository, and should be updated.
To do this, go to your Github fork, and you will notice a line that says
something like:

This branch is N commits behind ...

Click the 'Sync fork' drop down to the right of that line and choose:

Update Branch

Note that v5.2.0 introduced a new GitHub Action to eliminate the need to
manually sync your repo with the main one, and it is highly recommended
that this is enabled.
Please see the v5.2.0 Release Notes for instructions.
If you have any questions, or issues, please feel free to ask, or check out
our various support channels linked to from our iAPS Portal

Please stop spamming, this is getting ridiculous.

authors: bjornoleh scrappy

repo: scrappy/iAPS


text:
What modules are you seeing the problem on?
ScriptHookVDotNet.asi (runtime)
SHVDN Version
ddae3ca
Game Version
v1.0.3285.0
Bug Description
One of my scripts is occasionally crashing due to a conflict with another script. It happens when each script tries to run two specific natives at the same time (possible race condition?) . One native is REPORT_POLICE_SPOTTED_PLAYER and other is GET_BLIP_SPRITE. These two do completely different things and yet somehow they throw a LockRecursionException. This problem didn't happen on the non-nightly version of SHVDN 3.6.0.
Here is the stacktrace for the exception:
System.Threading.LockRecursionException: Recursive read lock acquisitions not allowed in this mode.
at System.Threading.ReaderWriterLockSlim.TryEnterReadLockCore(TimeoutTracker timeout)
at System.Threading.ReaderWriterLockSlim.TryEnterReadLock(TimeoutTracker timeout)
at SHVDN.ScriptDomain.ExecuteTaskWithGameThreadTlsContext(IScriptTask task)
at SHVDN.NativeFunc.Invoke(UInt64 hash, UInt64* argPtr, Int32 argCount)
at GTA.Native.Function.Call[T](Hash hash, InputArgument argument)
at PoliceBehaviour.BlipManager.FlashBlip(BlippedEntity blipData, Int64 dt)
at PoliceBehaviour.BlipManager.FlashBlips()
at SHVDN.NativeFunc.NativeCall()
at SHVDN.NativeFunc.InvokeInternal(UInt64 hash, UInt64* argPtr, Int32 argCount)
at SHVDN.NativeFunc.NativeTaskPtrArgs.Run()
at SHVDN.ScriptDomain.ExecuteTaskWithGameThreadTlsContext(IScriptTask task)
at SHVDN.NativeFunc.Invoke(UInt64 hash, UInt64* argPtr, Int32 argCount)
at GTA.Native.Function.Call(Hash hash, InputArgument[] arguments)
at NativeCaller.Call(Hash hash, InputArgument[] inputargs)
at PoliceDogAI.Main.UpdatePlayerLastSeenLocation(Ped dog, Boolean seenFromDog, Boolean dogSittingInVehicle, Ped owner, Boolean ownerInCombat)
at PoliceDogAI.Main.EvaluateTarget(Ped dog, Vector3 dogPosition, Ped owner)
at PoliceDogAI.Main.UpdateDogAI(Ped dog, Ped owner)
at PoliceDogAI.Main.OnTick(Object sender, EventArgs e)
at SHVDN.Script.DoTick()
Steps To Reproduce

Run two script threads.
Have one of them run REPORT_POLICE_SPOTTED_PLAYER and the other GET_BLIP_SPRITE.
Wait to have both of them run in the same frame.
Script crash.

Link To Code Example
No response
The Current Behavior
Script crashes when calling REPORT_POLICE_SPOTTED_PLAYER and GET_BLIP_SPRITE in the same frame by two different scripts.
The Expected Behavior
Script shouldn't crash when calling these two.

at PoliceBehaviour.BlipManager.FlashBlips()
at SHVDN.NativeFunc.NativeCall()

That is sus part of the stack trace you reported. NativeFunc.NativeCall just calls SHV's nativeCall but the stacktrace says there's more inner managed calls in NativeFunc.NativeCall, which is not supposed to happen. Can I see subsets of your PoliceDogAI and PoliceBehaviour so I can guess the causes more accurately?

This is the part from PoliceDogAI :
`
private void UpdatePlayerLastSeenLocation(Ped dog, bool seenFromDog, bool dogSittingInVehicle, Ped owner = null, bool ownerInCombat = false)
{
TaskState dogTask = dogInfoList[dog.Handle].Task;
if (seenFromDog || dogTask == TaskState.TauntingPlayer)
{
// If the player is seen, update the timer after which the player can be considered lost.
dogInfoList[dog.Handle].GameTimeBeforeCanIgnoreTargetNotSeen = gameTime + targetNotSeenIgnoreTime * 1000;
}
if (gameTime <= dogInfoList[dog.Handle].GameTimeBeforeCanIgnoreTargetNotSeen)
{
    // If the dog has recently seen the player, update last seen position.
    dogInfoList[dog.Handle].PlayerLastSeenLocation = playerPosition;

    // If the dog has recently entered a vehicle, keep updating this for a little while.
    if (gameTime <= dogInfoList[dog.Handle].GameTimeBeforeCanLeaveVehicleForSearch || !dogSittingInVehicle)
    {
        if (seenFromDog)
        {
            if (DoesTaskRequireBlockOfPermanentEvents(dogTask))
            {
                // If the dog is blocking permanent events, he won't automatically communicate the player's position to his friendlies.
                // So we need to manually alert either the owner (if alive) or the cop cached.
                Ped alertCop = owner ?? copToAlert;
                bool alertCopInCombat = owner != null ? ownerInCombat : copToAlertInCombat;

                if (alertCop != null)
                {
                    if (alertCopInCombat)
                    {
                        // Register the threat again to reset the internal "target lost" timer of this ped.
                        NativeCaller.Call(Hash.REGISTER_TARGET, alertCop.Handle, playerPed.Handle);
                    }
                    else
                    {
                        // Reassign the combat task.
                        int combatFlags = playerWantedLvl == 1 ? 65536 : 0;
                        NativeCaller.Call(Hash.TASK_COMBAT_PED, alertCop.Handle, playerPed.Handle, combatFlags, 0);

                        if (alertCop == copToAlert)
                        {
                            copToAlertInCombat = true;
                        }
                    }
                }
            }

            // Make the radar flash red and blue and update the last seen position stored by the game.
            Fx.ReportPoliceSpottedPlayer(player);
            // Store the new last seen position.
            playerWantedPosition = player.WantedCenterPosition;
            return;
        }
        // Keep resetting the hidden evasion timer while the dog is still aggro-ing the player.
        NativeCaller.Call(Hash.SUPPRESS_LOSING_WANTED_LEVEL_IF_HIDDEN_THIS_FRAME, player.Handle);
    }
    return;
}

`
The part from PoliceBehaviour is actually from another script not made by me, here is the decompiled code:
`
private void FlashBlip(BlippedEntity blipData, long dt)
{
if (blipData == null)
{
return;
}
if (blipData.entity != null && blipData.address != IntPtr.Zero)
{
    SuppressBlipsForPointer(blipData.address);
}

blipData.FlashTime += dt;
if (blipData.FlashTime <= 500)
{
    return;
}

blipData.FlashTime %= 500L;
blipData.IsColor2 = !blipData.IsColor2;

// I assumed it crashes on blip.currentBlip.Sprite since it's the only part where it goes to read stuff
if (!(blipData.currentBlip == null) && blipData.IsFlashing && !IsSpriteFixedColor(blipData.currentBlip.Sprite))
{
    Blip currentBlip = blipData.currentBlip;
    if (blipData.IsColor2)
    {
        currentBlip.Color = blipData.Color2;
    }
    else
    {
        currentBlip.Color = blipData.Color1;
    }

    if (!string.IsNullOrEmpty(blipData.blipInfo?.Text))
    {
        currentBlip.Name = blipData.blipInfo.Text;
    }
    else
    {
        currentBlip.Name = "";
    }
}

}
`

This is the part from 'PoliceDogAI':
private void UpdatePlayerLastSeenLocation(Ped dog, bool seenFromDog, bool dogSittingInVehicle, Ped owner = null, bool ownerInCombat = false)
{
    TaskState dogTask = dogInfoList[dog.Handle].Task;
    if (seenFromDog || dogTask == TaskState.TauntingPlayer)
    {
        // If the player is seen, update the timer after which the player can be considered lost.
        dogInfoList[dog.Handle].GameTimeBeforeCanIgnoreTargetNotSeen = gameTime + targetNotSeenIgnoreTime * 1000;
    }

    if (gameTime <= dogInfoList[dog.Handle].GameTimeBeforeCanIgnoreTargetNotSeen)
    {
        // If the dog has recently seen the player, update last seen position.
        dogInfoList[dog.Handle].PlayerLastSeenLocation = playerPosition;

        // If the dog has recently entered a vehicle, keep updating this for a little while.
        if (gameTime <= dogInfoList[dog.Handle].GameTimeBeforeCanLeaveVehicleForSearch || !dogSittingInVehicle)
        {
            if (seenFromDog)
            {
                if (DoesTaskRequireBlockOfPermanentEvents(dogTask))
                {
                    // If the dog is blocking permanent events, he won't automatically communicate the player's position to his friendlies.
                    // So we need to manually alert either the owner (if alive) or the cop cached.
                    Ped alertCop = owner ?? copToAlert;
                    bool alertCopInCombat = owner != null ? ownerInCombat : copToAlertInCombat;

                    if (alertCop != null)
                    {
                        if (alertCopInCombat)
                        {
                            // Register the threat again to reset the internal "target lost" timer of this ped.
                            NativeCaller.Call(Hash.REGISTER_TARGET, alertCop.Handle, playerPed.Handle);
                        }
                        else
                        {
                            // Reassign the combat task.
                            int combatFlags = playerWantedLvl == 1 ? 65536 : 0;
                            NativeCaller.Call(Hash.TASK_COMBAT_PED, alertCop.Handle, playerPed.Handle, combatFlags, 0);

                            if (alertCop == copToAlert)
                            {
                                copToAlertInCombat = true;
                            }
                        }
                    }
                }

                // Make the radar flash red and blue and update the last seen position stored by the game.
                Fx.ReportPoliceSpottedPlayer(player);
                // Store the new last seen position.
                playerWantedPosition = player.WantedCenterPosition;
                return;
            }
            // Keep resetting the hidden evasion timer while the dog is still aggro-ing the player.
            NativeCaller.Call(Hash.SUPPRESS_LOSING_WANTED_LEVEL_IF_HIDDEN_THIS_FRAME, player.Handle);
        }
        return;
    }

    if (dogInfoList[dog.Handle].PlayerLastSeenLocation != Vector3.Zero)
    {
        // Reset the stored last seen location if the wanted center is closer.
        float distanceFromWantedCenter = playerPosition.DistanceTo(playerWantedPosition);
        float distanceFromLastSeenPosition = playerPosition.DistanceTo(dogInfoList[dog.Handle].PlayerLastSeenLocation);
        if (distanceFromWantedCenter < distanceFromLastSeenPosition)
        {
            dogInfoList[dog.Handle].PlayerLastSeenLocation = Vector3.Zero;
        }
    }
}

The part from PoliceBehaviour is actually not made my me, here is the decompiled code:
private void FlashBlip(BlippedEntity blipData, long dt)
{
    if (blipData == null)
    {
        return;
    }

    if (blipData.entity != null && blipData.address != IntPtr.Zero)
    {
        SuppressBlipsForPointer(blipData.address);
    }

    blipData.FlashTime += dt;
    if (blipData.FlashTime <= 500)
    {
        return;
    }

    blipData.FlashTime %= 500L;
    blipData.IsColor2 = !blipData.IsColor2;
    // I assumed it crashes on blipData.currentBlip.Sprite since it's the only part where it goes to read stuff.
    if (!(blipData.currentBlip == null) && blipData.IsFlashing && !IsSpriteFixedColor(blipData.currentBlip.Sprite))
    {
        Blip currentBlip = blipData.currentBlip;
        if (blipData.IsColor2)
        {
            currentBlip.Color = blipData.Color2;
        }
        else
        {
            currentBlip.Color = blipData.Color1;
        }

        if (!string.IsNullOrEmpty(blipData.blipInfo?.Text))
        {
            currentBlip.Name = blipData.blipInfo.Text;
        }
        else
        {
            currentBlip.Name = "";
        }
    }
}

Hello, I recently did a test with nightly 118 and the issue still persists.

Well, the commit above automatically closed the issue, but I think it should be tested with nightly.119 as e219d506b32a2ba9a6676c6eae5d99208a22bff8 fixes a relevant crashing issue. Could you test if the issue still persists with the new build? I would test whether the test still persists if I had an reproducible example myself, but unfortunately I don't have one.

Alright, I tested my script for around 10 minutes trying to reproduce this and got no crashes. I'd say the issue has been fixed, thanks.

authors: kagikn tp-mods

repo: scripthookvdotnet/scripthookvdotnet

license: Zlib


text:
Fixed small mistake

Patch for this error :

very hard to review because of the whitespace changes. What really changed can be seen by disabling the whitespace: https://github.com/scrivo/highlight.php/pull/6/files?w=0

thanks @cebe

Not very critical indeed, but codewise a big glitch. Thanks!

BTW pana1990 and cebe, I'll get rid of the trailing spaces for you in the next (pending) release ;)

@scrivo ok, thanks!

authors: cebe pana1990 scrivo

license_source: bigquery


text:
Add script to convert JIM-based ROI file into NIfTI

@charleygros can you please add a link to this script? thanks!

@jcohenadad : Sure, I'm happy to help with that if I can. Would you be able to help me with some background information? Not sure what we are looking for here. Cheers

@dpfyffer did the ground truth lesion segmentations using JIM. The outputs are .roi files. So we need to convert these .roi files into NIfTI files. IIRC @charleygros a few years ago you compared JIM and deepseg segmentations, and for that purpose you developed a script to convert JIM's roi files into NIfTI.

Thanks for the background info @jcohenadad!
I first had a look in the SCT repo', here some code lines that may be useful to convert a Nifti to ROI: here.
Related PRs: PR1377  and PR1344.
Sadly this is not what you asked (ie ROI --> Nifti): I will dive into old scripts when I get to work today and follow-up on this.
And yes, if @dpfyffer could share a .roi file, that would be fantastic and really appreciated.

I just sent an email to the developer of JIM (Mark Horsfield), let's see if he has an easier solution.

I just sent an email to the developer of JIM (Mark Horsfield), let's see if he has an easier solution.

As far as I remember, "ROI --> Nifti" was not too much of an issue, and maybe straightforward with sct_convert. Happy to try with @dpfyffer file.

@dpfyffer did the ground truth lesion segmentations using JIM. The outputs are .roi files. So we need to convert these .roi files into NIfTI files. IIRC @charleygros a few years ago you compared JIM and deepseg segmentations, and for that purpose you developed a script to convert JIM's roi files into NIfTI.
To help us with the task, @dpfyffer could you please upload an .roi file here, along with a NIfTI file associated with the segmentation (upload as a ZIP package).

Thank you @jcohenadad and @charleygros for the updates.
I am more than happy to send you an example file. Let me just anonymize it before I'll upload.
Also, by the end of the week you should have a first BIDSified batch of NIfTI's with corresponding lesion segmentation ROI's.

Dear both, please find attached the ZIP containing the NIfTI file with the associated ROI file.
Please let me know if you need anything else or if something is not working.
1.zip

Answer from Mark Horsfield:

Jim has a tool to do this (Masker). It takes an image and an ROI file,
and uses the ROIs to mask out those parts of the image outside (or
inside) the ROIs, creating a new image as output.
http://www.xinapse.com/Manual/
Chapter 13. Particle analysis and masking
Section 7. Masking images

@dpfyffer could you please try this on your end? Thanks

Thank you for the update @jcohenadad
This works very well and is quite simple to do.
Please find attached an updated .zip folder containing

the original NIfTI file,
the ROI file, and
the masked NIfTI file (basically only the lesion), created using soft masking

Is this the way you want me to process all the files we are going to send you over?
1_masked.zip

@dpfyffer i think you used the actual image to get the soft mask. Consequently the mask is not weighted correctly:

What you need to do is get all ones in your image, and then export the soft mask, as explained in https://github.com/sct-pipeline/sci-lesion-segmentation/issues/1#issuecomment-828452351.
One way to have your image with all ones is to do:
sct_maths -i 1.nii -mul 0 -o 1_all1.nii
sct_maths -i 1_all1.nii -add 1 -o 1_all1.nii

Thanks for clarification @jcohenadad, I gave it another try.
I hope I understood correctly, please find attached the new zip file.
Please let me know if this is what you had in mind.
1_all1_masked.zip

Yes, this is perfect! as you can see partial volume is encoded at the periphery of the lesion:

if you can please process all data like that, it would be awesome-- but before doing so, please send us 1-2 subjects that are organized as BIDS so we can validate with you that everything is OK before you do 150 subjects-- thanks!!

Nice, good to hear!
I'll do so; you will get that first data tomorrow.

Hi @jcohenadad
I've uploaded the data of 3 subjects in a zip folder here:
https://drive.google.com/drive/folders/1QmIsQzVLFVGPlK-o1c8LJcw8U8_fxfol?usp=sharing
Please le me know if it looks good like this

@dpfyffer The data are excellent, great job!
Could you please also add a JSON file alongside the segmentation? This will be useful in the futur, when we will have different expert raters creating manual labels (eg: compute inter-rater variability, etc.). Here is the convention for the file:
Name: same as the segmentation, but with .json extension. Example: sub-zh01_ses-01_acq-sag_T2w_lesion-manual.json
Content:
{
    "Author": "Bob Dylan",
    "Date": "2020-07-29 21:25:37"
}

Note: the field "Date" is optional.

@dpfyffer the latest uploaded dataset looks perfect!

authors: charleygros dpfyffer jcohenadad

repo: sct-pipeline/sci-lesion-segmentation


text:
Flash Prevention Plugin defaultPostRenderers rather than postRenderers in scully.config

🗄 Docs report
Description
The README says to add the plugin to the postRenderers property in scully.config.
In the context of scully.config, the property is defaultPostRenderers.
What's the affected URL?**
https://github.com/scullyio/scully/tree/master/plugins/scully-plugin-flash-prevention

The flash prevention should only be on routes that need it. The documentation is lacking this insight indeed.
We don't encourage to put is on the defaultpostRenderers. It is a helper to prevent big flashes on routes where there is no way to create a proper solution.

@SanderElias Makes sense. Does the PR now better explain where to add the plugin?

I saw a PR for this and is merged... Can i close this?

As mentioned in https://github.com/scullyio/scully/pull/507#issuecomment-850931982, the fix for this appears to have gotten lost in the move of the plugins folder.

authors: SanderElias Splaktar jorgeucano mtopping

repo: scullyio/scully


text:
Invalid OBS or Var name in my gene matrix in CellAssign

Trying to run the cell filtration step on my Anndata using markers from a marker binary matrix. I get a keyError

adata = sc.read("data/GSM4848456.h5ad")
adata.obs.index = adata.obs.index.astype('str')
adata.var.index = adata.var.index.astype('str')
marker_gene_mat = pd.read_csv('data/cellType_mtx_GSM4848456.csv', index_col=0)
adata.obs_names_make_unique()
adata.var_names_make_unique()
print(marker_gene_mat)
bdata = adata[:, marker_gene_mat.index].copy()
lib_size = adata.X.sum(1)
bdata.obs['size_factor'] = lib_size/np.mean(lib_size)
scvi.external.CellAssign.setup_anndata(bdata, size_factor_key="size_factor")
model = CellAssign(bdata, marker_gene_mat)
model.train()

KeyError: "Values ['TMSB4Y'], from ['ACTA2', 'ADAM12', 'ADGRB3', 'ARHGAP15', 'ARHGAP31', 'CPED1', 'CSMD1', 'DGKB', 'DMD', 'EBF1', 'FLT1', 'HTR2C', 'IGFBP7', 'LDB2', 'LSAMP', 'MGP', 'MYH11', 'NLGN1', 'NRXN1', 'NTM', 'OTX2-AS1', 'PCDH9', 'PLCB1', 'PRKCB', 'PRKG1', 'SLC8A1', 'TMCC3', 'TMEM108', 'TMSB4X', 'TMSB4Y', 'TRPM3', 'WDR17', 'ZEB2'], are not valid obs/ var names or indices."

Versions:

1.0.0

Hi. It looks like your marker_gene_mat contains genes that are not in bdata (in this case TMSB4Y). The reason could be that you call adata.var_names_make_unique() but it's hard to diagnose. You can downsample marker_gene_mat to bdata.var_names.

repo: scverse/scvi-tools


text:
android 4.4  uc下返回不了...

没反应

不知道为什么，这个bug提了很多次，一直没解决也没答复。其实不是后退没反应，是第一次返回没反应，再点一次返回就有反应了，但是会后退两个页面。

是啊，我现在转light7了。

authors: leonlau81 sunkenv yangbys

repo: sdc-alibaba/SUI-Mobile

license: mit


text:
[bug]iphone 4s 打开picker无法滑动选择

[bug]iphone 4s ,ios系统版本 6.1.3 .webview  打开picker无法滑动选择

您好，请问你的问题怎么解决了？现在我遇到内联日期那部分无法滚动

authors: Mr-Luo OneOfTheTwentyThousand


text:
新页面的动态脚本不起作用

本人刚学习，请教个问题：
订单清单页面A，点击其中某个订单，打开订单详细页B。怕用户手动输入订单id而打开页面B，在B上需要校验id正确否，不正确时弹出对话框。
如果直接打开B做测试，是能正确弹出对话框的；但是从A这边点过来，再打开B时就不会弹出对话框；如果刷新一下，就能弹出来。
是和Router有关吗？该如何解决呢？
另外，如果页面上的Submit按钮是ASP:Button，也需要刷新，点击后才会执行后台代码。也是上面的原因吗？

同问，出现一样的问题！！


text:
Use mounted volume rather than checking out from GitHub's master

Having Docker check out from master means if you make any local changes, you can't test them locally in Docker. Using a mounted VOLUME means you can do local development through Docker.
The Docker wiki instructions will have to be updated to include --volume/-v:
docker run -p 5000:5000 -v .:/lets-chat --link db:db lets-chat

I reverted this change - it wouldn't work for me. Docker wouldn't mount the volume, complaining it needed an absolute path. I'll come back to this later.

authors: RobLoach sibartlett

repo: sdelements/lets-chat


text:
PyPA is seeking for a paid contractor for dependency resolution

I just wanted to let you know that PyPA is looking for someone to do similar work.
This is paid (important) work.
In case you haven't heard about this, it's here: http://pyfound.blogspot.com/2019/11/seeking-developers-for-paid-contract.html
BTW, after having use poetry a little bit, I really like it.
Et puisque tu es visiblement français, sache que poetry me sert pour https://github.com/vpoulailleau/padpo qui sert à la traduction en français de la doc officielle de Python.

https://github.com/pypa/pip/issues/988#issuecomment-565757071

[…] Poetry's author has pitched in himself […]

@ddelange Thanks for the answer.

authors: ddelange vpoulailleau

repo: sdispater/mixology


text:
Improvise CONTRIBUTING.md

In the spirit of getting more contributors for this project during the Hacktoberfest, detailed steps to contribute for beginners written in CONTRIBUTING.md file would be highly appreciated and would prove to be a good guide for new comers to open source.

Hey @sdmg15, may I work on this issue?

hey there may i work on the issue

Hi , can I work on given issue?

Yes you can, it should be noted inside that only one link or max two per pull requests.

Hi, I would like to contribute.

authors: HarmanBhutani oshyam rAwsam sdmg15 yugrajani


text:
Don't use : to join host and port, use net.JoinHostAndPort, cause IPv6

What happen?

Relevant log output?
No response
What you expected to happen?
No response
How to reproduce it (as minimally and precisely as possible)?
No response
Anything else we need to know?
No response
What is the version of Sealer you using?
No response
What is your OS environment?
No response
What is the Kernel version?
No response
Other environment you want to tell us?

Cloud provider or hardware configuration:
Install tools:
Others:

https://github.com/sealerio/sealer/pull/1924 fixed this issue

repo: sealerio/sealer


text:
Update build configuration

The build configuration of this project is outdated and may no longer work.
This pull request will be merged automatically if there are no conflicts.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

repo: sealsystems/node-mongo


text:
Batch issue

What's the difference between, I suppose the batch should only make 1 call to the DB but turns out it doesn't
Upsert.batch(connection, table_name) do |upsert|
  #N rows
  upsert.row({}, {})
end

and
upsert = Upsert.new(connection, table_name)
#N rows
upsert.row({}, {})

@nqtien310 There is no functional difference between those two at the time being.  If it's possible for them to be bulk-optimized (better than just sending all the SQL commands at once, vs. one at a time) then those improvements will show up in the batch form :)

repo: seamusabshere/upsert


text:
Allow documents to be selected on a page

In lieu of direct file upload, let's store references to documents in the library and allow them to be picked from the page form.

Failed to mention in this, this, and this.

repo: seancdavis/cambium


text:
Consider decoupling API from implementation?

I'm in a position where I need an ergonomic Rust HTTP client embedded in a WebAssembly plugin.  This plugin, however, runs inside of a host that provides its own custom outbound HTTP API.  Being a fan of the reqwest interface, I would like to use it as the client I use, but I can't use the existing hyper- or wasm-bindgen-based backends.
Would this project be open to making the HTTP request fulfillment backend "pluggable"?  This seems especially relevant given that A) Wasm has a somewhat fragmented way of interfacing with the outside world (see wasm-bindgen's wholly custom way of interfacing with the browser, WASI Preview 2, WASIX, WebAssembly Components-based WASI (coming soon), any number of custom plugin interfaces for wasm32-uknown-unknown compiled modules, etc.), B) there's currently no easy way to test Reqwest-based code without access to open a port and host a server, and C) any number of crazy ways someone might want to use an HTTP client I can't imagine.
There's some precedent for this type of API decoupling in the Python ecosystem with Requests via the Transport Adapter paradigm.
This could push demands like adding a particular WASI HTTP implementation to a separate crate that can be composed instead of maintaining it herein.
It would also open the door to an HTTP testing library which wouldn't require spinning up a local web server in a test if it didn't make sense for that usage.
If this is a thing you would be open to, I'd be happy to write up a proposal / provide a strawman PR.

This actually drives pretty close to something I want of reqwest: refactor reqwest so that each of its features are just tower middleware. I couldn't find an issue describing this, just a few sentences in this blog post:

I’ve also kicked around the idea loosely about cracking open the reqwest crate, and turning its various features into tower middleware. Then, reqwest is just a single opinionated way to build up a client stack. The community would be more empowered to customize the order of layers, adding or removing or swapping, and still have the power that they come to expect from using reqwest.

I think this would be a larger undertaking, but would eventually be a nice benefit for the community at-large.

So, at a high level, were you thinking of the reqwest Client eventually become a wrapper around some form of tower::Service<http::Request, Response=http::Response, ...> with a default implementation using hyper?
I'm trying to wrap my head around where/how things might be wired in this world... so bear with me :).
If that's the case, would it make sense for reqwest::ClientBuilder to be split into a hyper "configurator"-side which returns a tower::Service with the connection/transport layer bits bound, and a separate builder for managing the default population of the http::Request object?  I'd naively imagine that this new (simpler) reqwest::ClientBuilder would take the tower::Service provided by that now-separate builder.  The default in this world could be this new hyper-based builder, but allow the library user to inject whatever tower::Service they want which maps from http::Request to http::Response.  Maybe the hyper impl could move out to a reqwest-hyper crate or something?
Is that inline with your thoughts?  What am I missing?  What should I go read to be better educated on the subject?

I totally agree with the sentiment expressed by @akesling. We are working on a framework for a particular WASM ABI that does not rely on WASI or the browser. We have an async ad-hoc HttpClient based on this ABI that largely mimics what the reqwest API does, because we can't depend on reqwest itself. We have to provide this framework to our customers and we have to work hard to maintain and document an API that could be provided by reqwest.

I'm working on a framework for a particular WASM ABI that does not rely on WASI or the browser. We have an async ad-hoc HttpClient based on this ABI that largely mimics what the reqwest API does, because we can't depend on reqwest itself. We have to provide this framework to our customers and we have to work hard to maintain and document an API. It would be great if we can onboard reqwest. Looking forward for these new ideas landing on this great library.

This would also be very useful for me. As I've been learning WASM, I've run into multiple projects that use reqwest internally, but won't work in WASM with reqwest.
One interesting example is openidconnect-rs. In addition to using reqwest, you can also provide your own basic HTTP client, which is simply a function that conforms to this interface:
FnOnce(HttpRequest) -> Result<HttpResponse, RE>
    where RE: std::error::Error + 'static

where
pub struct HttpRequest {
    pub url: Url,
    pub method: http::method::Method,
    pub headers: HeaderMap,
    pub body: Vec<u8>,
}

pub struct HttpResponse {
    pub status_code: http::status::StatusCode,
    pub headers: HeaderMap,
    pub body: Vec<u8>,
}

If such an option were built in to reqwest, it could solve this problem for all libraries that use it under the hood.

authors: akesling anderspitman andytesti seanmonstar

repo: seanmonstar/reqwest


text:
Designate support contact

Currently, the "Contact support" button on every project is linked to will@ucsb.edu. I would like to be able to designate one or more individuals who should be contacted instead or in addition to me. For example, in the Azores project, I would like to designate Adriano Quintela (aquintela@blueazores.org) and, perhaps, myself (will@ucsb.edu). This is particularly important for unsupported projects and those that I have no affiliation with.

This should be an easy fix. Contacts are automatically assigned to the
project creator (not you specifically). There’s no UI for changing it atm
but the api supports that.
On Thu, Aug 17, 2023 at 10:28 AM Will McClintock @.***>
wrote:

Assigned #633 https://github.com/seasketch/next/issues/633 to
@underbluewaters https://github.com/underbluewaters.
—
Reply to this email directly, view it on GitHub
https://github.com/seasketch/next/issues/633#event-10122040866, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAD4YV2LER32KPRXTWKEWC3XVZIDTANCNFSM6AAAAAA3UMYW7M
.
You are receiving this because you were assigned.Message ID:
@.***>

authors: underbluewaters wmcclin

repo: seasketch/next


text:
优化 Global lock acquire failed 异常打印 optimize Global lock acquire failed Exception print in log

Why you need it?
to make Global lock acquire failed Exception look better.
help user understand this Exception more easily
How it could be?
A clear and concise description of what you want to happen. You can explain more about input of the feature, and output of it.
17:30:58.573 ERROR --- [verHandlerThread_1_28_500] i.s.c.e.AbstractExceptionHandler         : Catch TransactionException while do RPC, request: xid=192.168.61.1:8091:6611486226665984442,branchType=AT,resourceId=jdbc:mysql://127.0.0.1:3306/seata_test,lockKey=t_stock:1
==>
io.seata.core.exception.BranchTransactionException: Global lock acquire failed xid = 192.168.61.1:8091:6611486226665984442 branchId = 6611486226665984460
	at io.seata.server.transaction.at.ATCore.branchSessionLock(ATCore.java:48) ~[classes/:na]
	at io.seata.server.coordinator.AbstractCore.lambda$branchRegister$0(AbstractCore.java:83) ~[classes/:na]
	at io.seata.server.storage.db.session.DataBaseSessionManager.lockAndExecute(DataBaseSessionManager.java:194) ~[classes/:na]
	at io.seata.server.session.SessionHolder.lockAndExecute(SessionHolder.java:345) ~[classes/:na]
	at io.seata.server.coordinator.AbstractCore.branchRegister(AbstractCore.java:77) ~[classes/:na]
	at io.seata.server.coordinator.DefaultCore.branchRegister(DefaultCore.java:100) ~[classes/:na]
	at io.seata.server.coordinator.DefaultCoordinator.doBranchRegister(DefaultCoordinator.java:219) [classes/:na]
	at io.seata.server.AbstractTCInboundHandler$4.execute(AbstractTCInboundHandler.java:184) ~[classes/:na]
	at io.seata.server.AbstractTCInboundHandler$4.execute(AbstractTCInboundHandler.java:179) ~[classes/:na]
	at io.seata.core.exception.AbstractExceptionHandler.exceptionHandleTemplate(AbstractExceptionHandler.java:124) ~[classes/:na]
	at io.seata.server.AbstractTCInboundHandler.handle(AbstractTCInboundHandler.java:179) [classes/:na]
	at io.seata.core.protocol.transaction.BranchRegisterRequest.handle(BranchRegisterRequest.java:136) [classes/:na]
	at io.seata.server.coordinator.DefaultCoordinator.onRequest(DefaultCoordinator.java:435) [classes/:na]
	at io.seata.core.rpc.processor.server.ServerOnRequestProcessor.onRequestMessage(ServerOnRequestProcessor.java:116) [classes/:na]
	at io.seata.core.rpc.processor.server.ServerOnRequestProcessor.process(ServerOnRequestProcessor.java:77) [classes/:na]
	at io.seata.core.rpc.netty.AbstractNettyRemoting.lambda$processMessage$2(AbstractNettyRemoting.java:281) [classes/:na]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_151]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_151]
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-all-4.1.63.Final.jar:4.1.63.Final]
	at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_151]
<==

Other related information
no

assign to Me
但我还没想好，tc端打印一句怎么样的 info 日志合适

assign to Me
但我还没想好，tc端打印一句怎么样的 info 日志合适

建议直接改成debug，或者打印msg即可

因为rm一定会打印，tc就不是很重要了

repo: seata/seata


text:
optimize: datasource auto proxy

Ⅰ. Describe what this PR did
Simplify the logic of datasource auto proxy, reduce redundant code by merging them into one processor.
Ⅲ. Why don't you add test cases (unit test/integration test)?
Added an integration test which simulates 3 major ways how user would register their DataSource bean.
Ⅳ. Describe how to verify it
Add project's spring boot starter to your project dependency, register Datasource bean in the way you like, test GlobalLock or GlobalTransaction to see whether it works. Or just run the new integration test to verify it.

Codecov Report

Merging #3588 (4515c79) into develop (b55d24b) will increase coverage by 0.24%.
The diff coverage is 70.37%.

:exclamation: Current head 4515c79 differs from pull request most recent head 0ba238b. Consider uploading reports for the commit 0ba238b to get more accurate results

@@              Coverage Diff              @@
##             develop    #3588      +/-   ##
=============================================
+ Coverage      52.15%   52.39%   +0.24%
- Complexity      3509     3521      +12
=============================================
  Files            638      637       -1
  Lines          21108    21096      -12
  Branches        2613     2608       -5
=============================================
+ Hits           11009    11054      +45
+ Misses          9014     8953      -61
- Partials        1085     1089       +4

Impacted Files
Coverage Δ
Complexity Δ

...utoconfigure/SeataDataSourceAutoConfiguration.java
0.00% <ø> (ø)
0.00 <0.00> (ø)

...ation/datasource/AutoDataSourceProxyRegistrar.java
0.00% <ø> (ø)
0.00 <0.00> (ø)

...ion/datasource/SeataAutoDataSourceProxyAdvice.java
70.83% <66.66%> (+70.83%)
3.00 <3.00> (+3.00)

...on/datasource/SeataAutoDataSourceProxyCreator.java
69.44% <69.69%> (+69.44%)
8.00 <6.00> (+8.00)

...g/annotation/datasource/DataSourceProxyHolder.java
75.00% <100.00%> (+75.00%)
3.00 <3.00> (+3.00)

authors: codecov-commenter selfishlover


text:
An error occurred building android apk with gradle, When I use feaweedfs for storage

Repetition steps:

system linux centos or ubuntu
environment prepare
a) install jdk1.8, ndk18, Android SDK 29
b) add environment variables
mount seaweed dir & cd
wget https://github.com/wildfirechat/android-chat/archive/refs/heads/master.zip & unzip master.zip
cd android-chat-master & ./gradlew build assembleDebug --info --stacktrace
i got the error

Execution failed for task ':chat:packageDebug'.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
java.util.zip.ZipException: invalid code lengths set

this is worked fine on local disk or NFS
thanks for any help

2. environment prepare
a) install jdk1.8, ndk18, Android SDK 29
b) add environment variables

Please add exact scripts.

what is the SeaweedFS version?

what is the SeaweedFS version?

please upgrade first.

Updates?

my colleagues are working on it
but i donot think the version is the problem, it is possible there is no impletemented about the system filelock on seaweedfs mount...

please try the new version. it has a lot of good fixes.

authors: chrislusf zmysysz

repo: seaweedfs/seaweedfs


text:
🛑 Google is down

In 7cb8fb5, Google (https://www.google.com) was down:

HTTP code: 429
Response time: 452 ms

Resolved: Google is back up in 1fd1799.


text:
Get default network gateway  on mac OS with an active VPN

When mac OS is connected to a VPN the current command to get the default network gateway cannot get the gateway IP address

So this PR use this command netstat -rn | awk \'/default/ {print $2}\' as fallback.
Tested in:

macOS 10.13.6 (High Sierra)
macOS 11.3 (Big Sur)

@MariaCamilaCubides Thank you! Looks good. Successfully tested also on my side.

@MariaCamilaCubides Version 5.6.14 just published. Mentioned you as a contributor.

authors: MariaCamilaCubides sebhildebrandt

repo: sebhildebrandt/systeminformation


text:
Character encodings not correctly supported

After @teromene 's PR #197, some bridges return wrongly encoded text.
Seen for:

Numerama
Se coucher moins bête
Sexactu

Tarantino avait dÃ©jÃ  confirmÃ© certains Ã©lÃ©ments.

It seems that those bridges are not encoding the text properly (meaning that they may use something else than UTF-8), making the re-conversion returning wrong char. I'll take a look.

i have just submitted a pull request #203 to fix the problem

Nice, thanks :+1:

authors: mitsukarenai polo2ro teromene

repo: sebsauvage/rss-bridge

license: unlicense


text:
执行查询后，返回错误码320，异常std::exception=getrandom

两方（参与方code：9999和10000）测试，给两方全部字段最大ccl权限（PLAINTEXT），如下：

然后执行查询：
SELECT alice.credit_rank, COUNT(*) as cnt, AVG(alice.income) as avg_income, AVG(bob.order_amount) as avg_amount FROM alice INNER JOIN bob ON alice.ID = bob.ID WHERE alice.age >= 20 AND alice.age <= 30 AND bob.is_active=1 GROUP BY alice.credit_rank;
返回：
(code=320, message=RunExecutionPlan run jobs(ae170e1a-0386-11ef-9962-0242ac140017) failed, catch std::exception=getrandom , details=[]), invitations=null, scdbSessionId=null, affectedRows=0, outColumns=[], costTimeS=0.0, jobId=null)

能看下你的 linux kernel 的版本么？

能看下你的 linux kernel 的版本么？

uname -r 3.10.0-514.el7.x86_64
btw，我的私钥证书是从符合条件的openssl机器拷贝到服务器的，不知是否有影响。
btw，单表查询ok。

能看下你的 linux kernel 的版本么？

uname -r 3.10.0-514.el7.x86_64
btw，我的私钥证书是从符合条件的openssl机器拷贝到服务器的，不知是否有影响。 btw，单表查询ok。

你可能需要升级下 kernel 版本，getrandom 这个系统调用实在 3.17 之后的版本才支持的。

能看下你的 linux kernel 的版本么？

uname -r 3.10.0-514.el7.x86_64
btw，我的私钥证书是从符合条件的openssl机器拷贝到服务器的，不知是否有影响。 btw，单表查询ok。

你可能需要升级下 kernel 版本，getrandom 这个系统调用实在 3.17 之后的版本才支持的。

请问这个系统调用是什么环节需要使用的？

这个问题我们之前也是在执行 psi 求交的时候发现的，单表的话，不会走到求交的流程，所以不会触发这个问题

这个问题我们之前也是在执行 psi 求交的时候发现的，单表的话，不会走到求交的流程，所以不会触发这个问题

在我的另外两台机器（也是3.10.0-514.el7.x86_64内核版本），却可以联合查询成功：
{     "project_id": "proj_001",     "query": "SELECT ta.credit_rank, COUNT(*) as cnt, AVG(ta.income) as avg_income, AVG(tb.order_amount) as avg_amount FROM ta INNER JOIN tb ON ta.ID = tb.ID WHERE ta.age >= 20 AND ta.age <= 30 AND tb.is_active=1 GROUP BY ta.credit_rank" }
结果：
{     "status": {         "code": 0,         "message": "",         "details": []     },     "affected_rows": "0",     "warnings": [         {             "reason": "for safety, we filter the results for groups which contain less than 4 items."         }     ],     "cost_time_s": 1.091829143,     "out_columns": [         {             "name": "credit_rank",             "shape": {                 "dim": [                     {                         "dim_value": "2"                     },                     {                         "dim_value": "1"                     }                 ]             },             "elem_type": "INT64",             "option": "VALUE",             "annotation": {                 "status": "TENSORSTATUS_UNKNOWN"             },             "int32_data": [],             "int64_data": [                 "5",                 "6"             ],             "float_data": [],             "double_data": [],             "bool_data": [],             "string_data": [],             "ref_num": 0         },         {             "name": "cnt",             "shape": {                 "dim": [                     {                         "dim_value": "2"                     },                     {                         "dim_value": "1"                     }                 ]             },             "elem_type": "INT64",             "option": "VALUE",             "annotation": {                 "status": "TENSORSTATUS_UNKNOWN"             },             "int32_data": [],             "int64_data": [                 "6",                 "4"             ],             "float_data": [],             "double_data": [],             "bool_data": [],             "string_data": [],             "ref_num": 0         },         {             "name": "avg_income",             "shape": {                 "dim": [                     {                         "dim_value": "2"                     },                     {                         "dim_value": "1"                     }                 ]             },             "elem_type": "FLOAT64",             "option": "VALUE",             "annotation": {                 "status": "TENSORSTATUS_UNKNOWN"             },             "int32_data": [],             "int64_data": [],             "float_data": [],             "double_data": [                 18070,                 336017.5             ],             "bool_data": [],             "string_data": [],             "ref_num": 0         },         {             "name": "avg_amount",             "shape": {                 "dim": [                     {                         "dim_value": "2"                     },                     {                         "dim_value": "1"                     }                 ]             },             "elem_type": "FLOAT64",             "option": "VALUE",             "annotation": {                 "status": "TENSORSTATUS_UNKNOWN"             },             "int32_data": [],             "int64_data": [],             "float_data": [],             "double_data": [                 7743.466796875,                 5499.425048828125             ],             "bool_data": [],             "string_data": [],             "ref_num": 0         }     ] }

我们后续会继续看下这个问题，现在能确认高版本的 linux kernel 不会有这个问题

帮忙看下两台机器上 glibc 的版本

帮忙看下两台机器上 glibc 的版本

都是2.17

你们是自己编的版本还是用的我们的镜像
详细看了一下，如果编译的环境的 glibc 的版本小于等于 2.25，就会调用 syscall getrandom。如果这个时候 linux kernel 的版本低于 3.17 就会导致这个异常，所以可能要看下你们属于哪些情况
BTW：在比较低的 linux kernel 上我们没有做过很充分的验证，希望你们还是在高一点的 linux kernel 上进行验证

你们是自己编的版本还是用的我们的镜像
详细看了一下，如果编译的环境的 glibc 的版本小于等于 2.25，就会调用 syscall getrandom。如果这个时候 linux kernel 的版本低于 3.17 就会导致这个异常，所以可能要看下你们属于哪些情况
BTW：在比较低的 linux kernel 上我们没有做过很充分的验证，希望你们还是在高一点的 linux kernel 上进行验证

用的是隐语提供的镜像里面的文件，我们没做单独编译

如果两个环境用的版本都是隐语编译好的，那理论上现象应该是一样的才对。我再继续跟踪下这个问题，多谢提供信息

如果两个环境用的版本都是隐语编译好的，那理论上现象应该是一样的才对。我再继续跟踪下这个问题，多谢提供信息

辛苦

我们后续会继续看下这个问题，现在能确认高版本的 linux kernel 不会有这个问题

内核升级到6.8.7-1.el7.elrepo.x86_64，已无此问题

这个问题我们之前也是在执行 psi 求交的时候发现的，单表的话，不会走到求交的流程，所以不会触发这个问题

在我的另外两台机器（也是3.10.0-514.el7.x86_64内核版本），却可以联合查询成功： { "project_id": "proj_001", "query": "SELECT ta.credit_rank, COUNT(*) as cnt, AVG(ta.income) as avg_income, AVG(tb.order_amount) as avg_amount FROM ta INNER JOIN tb ON ta.ID = tb.ID WHERE ta.age >= 20 AND ta.age <= 30 AND tb.is_active=1 GROUP BY ta.credit_rank" } 结果： { "status": { "code": 0, "message": "", "details": [] }, "affected_rows": "0", "warnings": [ { "reason": "for safety, we filter the results for groups which contain less than 4 items." } ], "cost_time_s": 1.091829143, "out_columns": [ { "name": "credit_rank", "shape": { "dim": [ { "dim_value": "2" }, { "dim_value": "1" } ] }, "elem_type": "INT64", "option": "VALUE", "annotation": { "status": "TENSORSTATUS_UNKNOWN" }, "int32_data": [], "int64_data": [ "5", "6" ], "float_data": [], "double_data": [], "bool_data": [], "string_data": [], "ref_num": 0 }, { "name": "cnt", "shape": { "dim": [ { "dim_value": "2" }, { "dim_value": "1" } ] }, "elem_type": "INT64", "option": "VALUE", "annotation": { "status": "TENSORSTATUS_UNKNOWN" }, "int32_data": [], "int64_data": [ "6", "4" ], "float_data": [], "double_data": [], "bool_data": [], "string_data": [], "ref_num": 0 }, { "name": "avg_income", "shape": { "dim": [ { "dim_value": "2" }, { "dim_value": "1" } ] }, "elem_type": "FLOAT64", "option": "VALUE", "annotation": { "status": "TENSORSTATUS_UNKNOWN" }, "int32_data": [], "int64_data": [], "float_data": [], "double_data": [ 18070, 336017.5 ], "bool_data": [], "string_data": [], "ref_num": 0 }, { "name": "avg_amount", "shape": { "dim": [ { "dim_value": "2" }, { "dim_value": "1" } ] }, "elem_type": "FLOAT64", "option": "VALUE", "annotation": { "status": "TENSORSTATUS_UNKNOWN" }, "int32_data": [], "int64_data": [], "float_data": [], "double_data": [ 7743.466796875, 5499.425048828125 ], "bool_data": [], "string_data": [], "ref_num": 0 } ] }

请帮忙再确认下成功的这个环境的 linux kernel version。linux 在 kernel-3.10.0-544.el7 版本增加了 patch 支持 getrandom，所以理论上 kernel-3.10.0-514.el7 不应该成功的
ref: https://bugzilla.redhat.com/show_bug.cgi?id=1330000#:~:text=Patch(es) available on kernel-3.10.0-544.el7

这个问题我们之前也是在执行 psi 求交的时候发现的，单表的话，不会走到求交的流程，所以不会触发这个问题

在我的另外两台机器（也是3.10.0-514.el7.x86_64内核版本），却可以联合查询成功： { "project_id": "proj_001", "query": "SELECT ta.credit_rank, COUNT(*) as cnt, AVG(ta.income) as avg_income, AVG(tb.order_amount) as avg_amount FROM ta INNER JOIN tb ON ta.ID = tb.ID WHERE ta.age >= 20 AND ta.age <= 30 AND tb.is_active=1 GROUP BY ta.credit_rank" } 结果： { "status": { "code": 0, "message": "", "details": [] }, "affected_rows": "0", "warnings": [ { "reason": "for safety, we filter the results for groups which contain less than 4 items." } ], "cost_time_s": 1.091829143, "out_columns": [ { "name": "credit_rank", "shape": { "dim": [ { "dim_value": "2" }, { "dim_value": "1" } ] }, "elem_type": "INT64", "option": "VALUE", "annotation": { "status": "TENSORSTATUS_UNKNOWN" }, "int32_data": [], "int64_data": [ "5", "6" ], "float_data": [], "double_data": [], "bool_data": [], "string_data": [], "ref_num": 0 }, { "name": "cnt", "shape": { "dim": [ { "dim_value": "2" }, { "dim_value": "1" } ] }, "elem_type": "INT64", "option": "VALUE", "annotation": { "status": "TENSORSTATUS_UNKNOWN" }, "int32_data": [], "int64_data": [ "6", "4" ], "float_data": [], "double_data": [], "bool_data": [], "string_data": [], "ref_num": 0 }, { "name": "avg_income", "shape": { "dim": [ { "dim_value": "2" }, { "dim_value": "1" } ] }, "elem_type": "FLOAT64", "option": "VALUE", "annotation": { "status": "TENSORSTATUS_UNKNOWN" }, "int32_data": [], "int64_data": [], "float_data": [], "double_data": [ 18070, 336017.5 ], "bool_data": [], "string_data": [], "ref_num": 0 }, { "name": "avg_amount", "shape": { "dim": [ { "dim_value": "2" }, { "dim_value": "1" } ] }, "elem_type": "FLOAT64", "option": "VALUE", "annotation": { "status": "TENSORSTATUS_UNKNOWN" }, "int32_data": [], "int64_data": [], "float_data": [], "double_data": [ 7743.466796875, 5499.425048828125 ], "bool_data": [], "string_data": [], "ref_num": 0 } ] }

请帮忙再确认下成功的这个环境的 linux kernel version。linux 在 kernel-3.10.0-544.el7 版本增加了 patch 支持 getrandom，所以理论上 kernel-3.10.0-514.el7 不应该成功的 ref: https://bugzilla.redhat.com/show_bug.cgi?id=1330000#:~:text=Patch(es) available on kernel-3.10.0-544.el7

已确认也是3.10.0-514.el7.x86_64。

authors: oaHeZgnoS tyrone-yu

repo: secretflow/scql


text:
隐私求交组件报错

Issue Type
Bug
Source
binary
Secretflow Version
Secretflow 1.6.1b0
OS Platform and Distribution
Ubuntu 20.04
Python version
3.10.14
Bazel version
6.5.0
GCC/Compiler version
No response
What happend and What you expected to happen.
kuscia:0.8.0b0
secretpad:0.7.1b0

打包镜像（secretflow未做任何修改）后，按照教程实现注册流程，全部执行成功。在SecretPad中创建项目并执行联合圈人模板时，隐私求交组件报错，报错具体内容如下。

Reproduction code to reproduce the issue.
2024-06-26 16:23:18 INFO the jobId=ozfz, taskId=ozfz-tbdzffvp-node-3 start ...
2024-06-26 16:23:30 INFO the jobId=ozfz, taskId=ozfz-tbdzffvp-node-3 failed: party bob failed msg: container[secretflow] terminated state reason "Error", message: "o alice, error: \x1b[36mray::SenderReceiverProxyActor.send()\x1b[39m (pid=1559, ip=ozfz-tbdzffvp-node-3-0-global.bob.svc, actor_id=9f662705f3e73217c3df6ca001000000, repr=<fed.proxy.barriers.SenderReceiverProxyActor object at 0x7f327c507b20>)
  At least one of the input arguments for this task could not be computed:
ray.exceptions.RayTaskError: \x1b[36mray::_run()\x1b[39m (pid=454, ip=ozfz-tbdzffvp-node-3-0-global.bob.svc)
  At least one of the input arguments for this task could not be computed:
ray.exceptions.RayTaskError: \x1b[36mray::_run()\x1b[39m (pid=454, ip=ozfz-tbdzffvp-node-3-0-global.bob.svc)
  File \"/usr/local/lib/python3.10/site-packages/secretflow/device/device/pyu.py\", line 156, in _run
    return fn(*args, **kwargs)
  File \"/usr/local/lib/python3.10/site-packages/secretflow/component/data_utils.py\", line 839, in download_file
    comp_storage.download_file(uri, output_path)
  File \"/usr/local/lib/python3.10/site-packages/secretflow/component/storage/storage.py\", line 32, in download_file
    impl.download_file(remote_fn, local_fn)
  File \"/usr/local/lib/python3.10/site-packages/secretflow/component/storage/impl/storage_impl.py\", line 171, in download_file
    assert os.path.exists(full_remote_fn)
AssertionError,upstream_seq_id: 7#0, downstream_seq_id: 9.
2024-06-26 08:23:28.003 INFO cleanup.py:161 [bob] -- [Anonymous_job] Sending error  to alice.
Exception in thread DataSendingQueueThread:
Traceback (most recent call last):
  File \"/usr/local/lib/python3.10/site-packages/fed/cleanup.py\", line 152, in _process_data_sending_task_return
    res = ray.get(obj_ref)
  File \"/usr/local/lib/python3.10/site-packages/ray/_private/auto_init_hook.py\", line 22, in auto_init_wrapper
    return fn(*args, **kwargs)
  File \"/usr/local/lib/python3.10/site-packages/ray/_private/client_mode_hook.py\", line 103, in wrapper
    return func(*args, **kwargs)
  File \"/usr/local/lib/python3.10/site-packages/ray/_private/worker.py\", line 2624, in get
    raise value.as_instanceof_cause()
ray.exceptions.RayTaskError(AssertionError): \x1b[36mray::SenderReceiverProxyActor.send()\x1b[39m (pid=1559, ip=ozfz-tbdzffvp-node-3-0-global.bob.svc, actor_id=9f662705f3e73217c3df6ca001000000, repr=<fed.proxy.barriers.SenderReceiverProxyActor object at 0x7f327c507b20>)
  At least one of the input arguments for this task could not be computed:
ray.exceptions.RayTaskError: \x1b[36mray::_run()\x1b[39m (pid=454, ip=ozfz-tbdzffvp-node-3-0-global.bob.svc)
  At least one of the input arguments for this task could not be computed:
ray.exceptions.RayTaskError: \x1b[36mray::_run()\x1b[39m (pid=454, ip=ozfz-tbdzffvp-node-3-0-global.bob.svc)
  File \"/usr/local/lib/python3.10/site-packages/secretflow/device/device/pyu.py\", line 156, in _run
    return fn(*args, **kwargs)
  File \"/usr/local/lib/python3.10/site-packages/secretflow/component/data_utils.py\", line 839, in download_file
    comp_storage.download_file(uri, output_path)
  File \"/usr/local/lib/python3.10/site-packages/secretflow/component/storage/storage.py\", line 32, in download_file
    impl.download_file(remote_fn, local_fn)
  File \"/usr/local/lib/python3.10/site-packages/secretflow/component/storage/impl/storage_impl.py\", line 171, in download_file
    assert os.path.exists(full_remote_fn)
AssertionError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File \"/usr/local/lib/python3.10/threading.py\", line 1016, in _bootstrap_inner
    self.run()
  File \"/usr/local/lib/python3.10/threading.py\", line 953, in run
    self._target(*self._args, **self._kwargs)
  File \"/usr/local/lib/python3.10/site-packages/fed/_private/message_queue.py\", line 51, in _loop
    res = self._msg_handler(message)
  File \"/usr/local/lib/python3.10/site-packages/fed/cleanup.py\", line 47, in <lambda>
    lambda msg: self._process_data_sending_task_return(msg),
  File \"/usr/local/lib/python3.10/site-packages/fed/cleanup.py\", line 166, in _process_data_sending_task_return
    send(
  File \"/usr/local/lib/python3.10/site-packages/fed/proxy/barriers.py\", line 502, in send
    get_global_context().get_cleanup_manager().push_to_sending(
AttributeError: 'NoneType' object has no attribute 'get_cleanup_manager'
\x1b[33m(raylet)\x1b[0m [2024-06-26 08:23:26,935 I 1668 1668] logging.cc:230: Set ray log level from environment variable RAY_BACKEND_LOG_LEVEL to -1\x1b[32m [repeated 2x across cluster] (Ray deduplicates logs by default. Set RAY_DEDUP_LOGS=0 to disable log deduplication, or see https://docs.ray.io/en/master/ray-observability/ray-logging.html#log-deduplication for more options.)\x1b[0m
Traceback (most recent call last):
  File \"/usr/local/lib/python3.10/runpy.py\", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File \"/usr/local/lib/python3.10/runpy.py\", line 86, in _run_code
    exec(code, run_globals)
  File \"/usr/local/lib/python3.10/site-packages/secretflow/kuscia/entry.py\", line 547, in <module>
    main()
  File \"/usr/local/lib/python3.10/site-packages/click/core.py\", line 1157, in __call__
    return self.main(*args, **kwargs)
  File \"/usr/local/lib/python3.10/site-packages/click/core.py\", line 1078, in main
    rv = self.invoke(ctx)
  File \"/usr/local/lib/python3.10/site-packages/click/core.py\", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File \"/usr/local/lib/python3.10/site-packages/click/core.py\", line 783, in invoke
    return __callback(*args, **kwargs)
  File \"/usr/local/lib/python3.10/site-packages/secretflow/kuscia/entry.py\", line 527, in main
    res = comp_eval(sf_node_eval_param, storage_config, sf_cluster_config)
  File \"/usr/local/lib/python3.10/site-packages/secretflow/component/entry.py\", line 170, in comp_eval
    res = comp.eval(
  File \"/usr/local/lib/python3.10/site-packages/secretflow/component/component.py\", line 1132, in eval
    raise e from None
  File \"/usr/local/lib/python3.10/site-packages/secretflow/component/component.py\", line 1127, in eval
    ret = self.__eval_callback(ctx=ctx, **kwargs)
  File \"/usr/local/lib/python3.10/site-packages/secretflow/component/preprocessing/data_prep/psi.py\", line 368, in two_party_balanced_psi_eval_fn
    download_files(ctx, uri, input_path)
  File \"/usr/local/lib/python3.10/site-packages/secretflow/component/data_utils.py\", line 847, in download_files
    wait(waits)
  File \"/usr/local/lib/python3.10/site-packages/secretflow/device/driver.py\", line 213, in wait
    reveal([o.device(lambda o: None)(o) for o in objs])
  File \"/usr/local/lib/python3.10/site-packages/secretflow/device/driver.py\", line 162, in reveal
    all_object = sfd.get(all_object_refs)
  File \"/usr/local/lib/python3.10/site-packages/secretflow/distributed/primitive.py\", line 156, in get
    return fed.get(object_refs)
  File \"/usr/local/lib/python3.10/site-packages/fed/api.py\", line 621, in get
    values = ray.get(ray_refs)
  File \"/usr/local/lib/python3.10/site-packages/ray/_private/auto_init_hook.py\", line 22, in auto_init_wrapper
    return fn(*args, **kwargs)
  File \"/usr/local/lib/python3.10/site-packages/ray/_private/client_mode_hook.py\", line 103, in wrapper
    return func(*args, **kwargs)
  File \"/usr/local/lib/python3.10/site-packages/ray/_private/worker.py\", line 2624, in get
    raise value.as_instanceof_cause()
ray.exceptions.RayTaskError(AssertionError): \x1b[36mray::_run()\x1b[39m (pid=454, ip=ozfz-tbdzffvp-node-3-0-global.bob.svc)
  At least one of the input arguments for this task could not be computed:
ray.exceptions.RayTaskError: \x1b[36mray::_run()\x1b[39m (pid=454, ip=ozfz-tbdzffvp-node-3-0-global.bob.svc)
  File \"/usr/local/lib/python3.10/site-packages/secretflow/device/device/pyu.py\", line 156, in _run
    return fn(*args, **kwargs)
  File \"/usr/local/lib/python3.10/site-packages/secretflow/component/data_utils.py\", line 839, in download_file
    comp_storage.download_file(uri, output_path)
  File \"/usr/local/lib/python3.10/site-packages/secretflow/component/storage/storage.py\", line 32, in download_file
    impl.download_file(remote_fn, local_fn)
  File \"/usr/local/lib/python3.10/site-packages/secretflow/component/storage/impl/storage_impl.py\", line 171, in download_file
    assert os.path.exists(full_remote_fn)
AssertionError
"

@sunrh0 hi，请问是如何解决的？ 我遇到了相同的问题。Thanks

@sunrh0 hi，请问是如何解决的？ 我遇到了相同的问题。Thanks
可能是id列没选对导致的

authors: aokaokd gxcuit sunrh0

repo: secretflow/secretflow


text:
libpsi_kkrt_bench.cc文件的作用是什么，没看到哪里调用了

Issue Type
Support
Modules Involved
PSI
Have you reproduced the bug with SPU HEAD?
Yes
Installation Kind
source
SPU Version
main
OS Platform and Distribution
No response
Python Version
No response
Compiler Version
No response
Current Behavior?
libpsi_kkrt_bench.cc和kkrt_psi.cc这两种方法，为什么没有选择libpsi_kkrt_bench.cc而是选择kkrt_psi.cc
Standalone code to reproduce the issue
print("A bug")

Relevant log output
No response

libpsi_kkrt_bench.cc 用来对https://github.com/osu-crypto/libPSI中的kkrt协议进行性能测试的脚本
开发kkrt过程中用来做性能对比的，在当前代码中被用到，后续我们会删掉

那性能对比结果能分享一下吗，哪个更快呢，有必要替换成https://github.com/osu-crypto/libPSI 这个吗

那性能对比结果能分享一下吗，哪个更快呢，有必要替换成https://github.com/osu-crypto/libPSI 这个吗

有些历史数据，暂时先不分享了， @nvxliukai 如果感兴趣可以对比测一下

所以替换成https://github.com/osu-crypto/libPSI 是有必要的对吧

隐语spu psi提供了ecdh、kkrt等多种协议的实现，大多数协议是自主开发，有些协议也引用或依赖了其它开源库
libPSI也PSI方面比较著名的开源库，spu暂时还没有计划引用或依赖libPSI

repo: secretflow/spu


text:
Error while signing a PSBT

I am following the tutorial at link
And I am at the point where using a script like this:
    const locking_script = script.compile([
    opcodes.OP_DUP,
    opcodes.OP_HASH160,
    crypto.hash160("028f5ced5649da371758f280635f94a558c68eee2ac4c7f07034425e97c60352bd"),
    opcodes.OP_EQUALVERIFY,
    opcodes.OP_CHECKSIG
  ])

I got the address bc1qq3r80lygdgl3wmpa5rt9l57xfepr9hkf7728q090z75k38magfvqzdadt7
However in order to redeem I need to pass the sig in the witness therefore my first try was to sign the psbts that I get:
cHNidP8BAFMCAAAAAcZjU/fLSzKbXfUah9mtfhp6DDjrK3mcY6Ea9I9il9/JAAAAAAD/////AWhCAAAAAAAAF6kUFMjwOBiDWXNvb7+ZpflEjRmAg0aHAAAAAAABASsgTgAAAAAAACIAIARGd/yIaj8XbD2g1l/Txk5CMt7J95RwPK8XqWiffUJYAQUZdqkUGzRXtbBbTTEngIq2QOEl/N8T6NeIrAAA
however this error pops up and I can't proceed, probably I am missing something

I'll need a bit more info on this. From the looks of things, there is a mismatch between the public keys you're using in the script and the public key of the address you are signing with.
Also, the flow seems a bit off. If you want to create a p2sh/p2wsh address to spend from, you need to send funds to that address and spend from there. I would suggest testing this out in Testnet so that you don't waste real btc on failed attempts 😋

Thanks!
So yes I created the p2wsh address and sent funds there in this transaction c9df97628ff41aa1639c792beb380c7a1a7eadd9871af55d9b324bcbf75363c6
So I am trying to spend the funds from
c9df97628ff41aa1639c792beb380c7a1a7eadd9871af55d9b324bcbf75363c6 with index 0
The pubkey of the script showing in the popup is the bytecode of the script:
   opcodes.OP_DUP,
    opcodes.OP_HASH160,
    crypto.hash160("028f5ced5649da371758f280635f94a558c68eee2ac4c7f07034425e97c60352bd"),
    opcodes.OP_EQUALVERIFY,
    opcodes.OP_CHECKSIG

So I don't really have that pubkey because it's a script one
Maybe I should use nonWitnessUtxo for this and sign?
I need to sign because the witnessRedeem needs the signature as parameter to finish the psbts
Thanks in advance @victorkirov

I think you might have a bug in the script. crypto.hash160 takes in a Buffer, not a string.
Try use crypto.hash160(Buffer.from("028f5ced5649da371758f280635f94a558c68eee2ac4c7f07034425e97c60352bd", "hex")) instead. I'm not sure why they don't validate the input in that function since it silently works with a string input 😅

Just to note, that is the public key you got back from the getAddress function from sats-connect, right? If so, then the above fix should work, but the funds you sent to the other address won't be recoverable.
I strongly suggest you test this out on testnet before committing to it on mainnet.

@victorkirov Thanks a lot, that made the thing
I switched to testnet now for further testes, thanks again
Now I can unlock funds from script addresses

Awesome 😎 Glad it's working. I'm gonna close the ticket, feel free to reopen if needed.

authors: elRaulito victorkirov

repo: secretkeylabs/sats-connect


text:
Simulating the Lorenz system in Matlab

We ask that you please be patient as our team works through approving and publishing all articles/tutorials in a timely manner. Allow 1-3 days for a topic to be reviewed and/or approved - allow 3-7 days for an articles to be reviewed and/or published.
Be sure to visit our Resources Page for tools, resources, and example articles to go over.
NOTE: (Please ensure that you have only one open issue + linked pull request at a time. This will ensure that we complete the article in a timely manner from inception to publishing.)
NOTE: We tend to stray away or tend not to publish reviews/comparisons of commercial product offerings.
We're looking for the first 2-3 paragraphs of the article that appropriately summarize what your article will be about.
Simulating the Lorenz system in Matlab
Introduction:
The Lorenz system describes the motion of a fluid between two layers at different temperatures.  Specifically, the fluid is heated uniformly from below and cooled uniformly from above. By rising the temperature difference between the two surfaces , we observe initially a linear temperature gradient, and then the formation of the convection cells. This system uses a Lorenz Attractor which defines a 3-dimensional trajectory by the differential equation.
The Lorenz system is deterministic, which means that if you know the exact starting values of your variables then in theory you can determine their future values as they change with time. Lorenz demonstrated that if you begin this model by choosing some values for x, y, and z, and then do it again with just slightly different values, then you will quickly arrive at fundamentally different results. In real life you can never know the exact value of any physical measurement, although you can get close
Key takeaways:

Basic understanding of the Lorenz system.
Matlab code for simulating Lorenz system.
Applications of the Lorenz system.

References:
Please list links to any published content/research that you intend to use to support/guide this article.
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

Good afternoon and thank you for submitting your topic suggestion. @florenceakinyi
Your topic form has been entered into our queue and should be reviewed (for approval) as soon as a content moderator is finished reviewing the ones in the queue before it.

🤔
@florenceakinyi
Thank you for the topic suggestion, however I believe this topic may be a bit outside of our preferred topic areas.
We're more interested in original, practitioner-focused content that takes a deeper dive into programming-centric concepts.
Please feel free to suggest an alternate topic to explore. 🚀


text:
How to forecast time series data using Neural Network toolbox in Matlab

Article checklist
Attention
Our Peer Reviewer and Content Moderator teams do NOT provide any revisions services. All revisions and edits should be completed on your own forked repo (as to not take up room in the queue) in order for our team to review them all in a timely manner.
ANY ARTICLE SUBMITTED WITH GLARING ERRORS WILL BE IMMEDIATELY CLOSED.

As a rule of thumb - please be sure to only submit articles (pull requests) that are fully polished and ready to be published. Be sure to go through our resources documents for extra and 3rd party (vetted) resources to help improve overall technical writing.

Pre-submission checks

Please ensure that you have only one open topic suggestion (issue) + in-review article (linked pull request) at a time. This will ensure that we complete the review process in a timely manner from inception to publishing

If you have not already, please go over our Resources Page for more tips and tricks on how to improve your overall technical writing so reviews are swifter, increase the chance of a payout and provide more value to our readers.

For first-time contributors and for more details on our submission guidelines, see our Contributing Guidelines.

Formatting and structure checks

[x] Have you used the correct folder and file structure? - see Contribution Guidelines

[x] Is your article properly formatted in Markdown? - see Github Markdown guide

[x] Have you used our preferred heading structure? - H3 (###) and up

[x] Does your article follow any of the suggested structure formats? - see example formats

[x] Is your article over 750 words? - Tool: Wordcounter.net

[x] Is the article you are submitting an in-depth and unique article? Does it go beyond what is in the official docs and what is covered in other blog sites. See these articles as examples.

[x] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.

[x] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.

[x] Have you included a hero image that is 600x400 pixels, under 300KB in size, and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images

Grammar & plagiarism checks

[x] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid - Grammarly
[x] Please place your article through a 3rd party plagiarism checker. We suggest using Quetext, this tool is free and has a daily limit. We typically accept articles with 10% or less.
[x] Have you checked your article for readability? - Tool: Hemmingway
[x] Have you added sources for quotes and images that aren't yours?

Technical checks

[x] Are your code snippets properly formatted for syntax highlighting - see Syntax guide
[x] Have you checked your code runs correctly and you've highlighted all necessary dependencies for installation?
[x] Are the software programs and packages you're highlighting in your article up to date, using current versions and not deprecated?

Topic suggestion this closes

Remove the backticks and add the issue number below to link and close your Topic Suggestion (issue) when your article has been published (PR has been merged). See this video for more details.

This closes #6910

Finally, delete the article checklist notes in blockquotes and submit your PR. We look forward to reviewing your article.

@lalith1403 this is a duplicate of #7107

If you could look over the edits made - if any other revisions are needed - we will be closing the PR 👍
@lalith1403
cc @linetachieng

@lalith1403
Just wondering if this PR is ready for a final review or if it still needed some edits.

Merged #7447 into master

authors: WanjaMIKE hectorkambow linetachieng


text:
Allow signature-less envelopes.

This supports cases where the consumer is not expected to verify anything, so the producer doesn't need to use a dummy signature.
Note to reviewers: Does this leave too much room for people to shoot themselves in the foot? On the one hand, this seems like it might encourage alg=none-type vulnerabilities. On the other, we have an actual use case for unauthenticated in-toto attestations (SLSA 1); publishing the raw payload also doesn't seem super desirable.
@dlorenc @msuozzo @loosebazooka FYI

On the other, we have an actual use case for unauthenticated in-toto attestations (SLSA 1); publishing the raw payload also doesn't seem super desirable.

Would you elaborate on this?
Also, what about the suggestion from here?

Even for an initially unsigned payload that needs to be signed in turn by multiple people, someone can start by signing it first, turning it into a signed payload, then pass it around to attach more signatures.

From discussing with others, it sounds like this isn't a good idea so I'll drop it. But for the record, I'll answer below.Thanks for responding so quickly, @trishankatdatadog!

On the other, we have an actual use case for unauthenticated in-toto attestations (SLSA 1); publishing the raw payload also doesn't seem super desirable.

Would you elaborate on this?

SLSA is a framework for supply chain integrity, arranges into a series of levels of increasing security guarantees. At the first level (SLSA 1), we don't require signing of the provenance because key management is a headache and we want to make SLSA 1 as easy as possible. Of course, the security guarantees are also basically zero, but giving users an easy onramp allows them to make incremental progress, which is super useful. It also serves as good documentation for when you want to go through and actually lock down your dependencies. (This is something we have found useful at Google.)

Also, what about the suggestion from here?

Even for an initially unsigned payload that needs to be signed in turn by multiple people, someone can start by signing it first, turning it into a signed payload, then pass it around to attach more signatures.

Agreed.

authors: MarkLodato trishankatdatadog

repo: secure-systems-lab/signing-spec


text:
Application crash when using vitejs

I am traying to migrate react app to use vitejs .
after migration I am getting an error
"Uncaught ReferenceError: cptable is not defined"
link to reduce
https://stackblitz.com/edit/vitejs-vite-u84ldu?file=package.json,src%2FApp.jsx&terminal=dev

Did u solve this issue?

I replaced this package by excelje

authors: ThangBuiDuc aviyi

repo: securedeveloper/react-data-export


text:
[FEATURE] Supports changing playback speed

It would be nice to have support for changing the playback speed for the track being played, like on YT.

natan's lavadsp lib can achieve that

Closing since already possible.

authors: SKProCH caneleex sedmelluq

repo: sedmelluq/lavaplayer


text:
Cant Play YouTube Videos

Hi, if i try to play a youtube video it doesnt works anymore. It worked a few weeks and scince a days it show's following error:
https://haste.scolasti.co/upoyuvaqaf.pl
My Source Code:
https://github.com/scolastico/disc0rd.exe/blob/hotfix-music-player/src/main/java/com/scolastico/discord_exe/etc/musicplayer/MusicPlayer.java
I allready tryd to update the player but nothing changed on the error.

Are you on the newest version? Cause that fixed it for me, I think.

Yes im on 1.3.55
        <dependency>
            <groupId>com.sedmelluq</groupId>
            <artifactId>lavaplayer</artifactId>
            <version>1.3.55</version>
        </dependency>

Oh i found the problem: IntelliJ didn't updated it properly. I needed to delete the cache and reinstall the maven dependencies...

authors: Portagoras scolastico


text:
fix: The folder staticfiles is automatically created to avoid the war…

Description

This PR fixes a small bug. A warning about missing a folder called staticfiles when running tests

Related Issues
Closes #253
Testing

[X] Yes
[ ] No, not needed (give a reason below)
[ ] No, I need help writing them

Reviewer Focus
This PR only needs a quick review.
Checklist
For all PRs that are not general documentation

[X] Tests accompany or reflect changes to the code
[X] Tests ran and passed locally
[X] Ran the linter and formatter
[X] Build has passed locally
[X] Relevant documentation has been updated

The title of this PR is so fucking amazing 😆 🤣

repo: seedcase-project/seedcase-sprout


text:
What is the best approach to identify the Schedule ?

Hey,
i would like to identify the details of an schedule. e.g:
i have the schedule for an event: event.schedule
"Every 3 months on the 10th day of the month"

represented by the hash:
  {
   :start_date=>2012-02-06 10:37:04 +0100,
   :rrules=>[{
     :validations=>{
       :day_of_month=>[10]},
       :rule_type=>"IceCube::MonthlyRule",
       :interval=>3
    }],
    :exrules=>[], :rdates=>[], :exdates=>[]
  }

to set the specific form elements (dropdown, checkbox) i need to evaluate the specific rules. e.g. for
  event.schedule.interval

i would expect
  IceCube::MonthlyRule

i did not found any methods in the source, does somebody did sth. similar ? My approach would be to parse the hash and extract every rule...
kind of a double post: http://stackoverflow.com/questions/9158421/identify-the-ice-cube-schedule

You should be able to just look at the class for that information, but it is at the rule level, not the schedule level:
event.schedule.rrules.each do |rule|
  rule.class.name
end

There are a few projects around integrating IceCube with Rails.  I'd definitely check them out

authors: fluxsaas seejohnrun


text:
support ecom spec v2

support ecom spec v2 while maintaining backwards compat with v1
@f2prateek

LGTM, does this need a require statement like https://github.com/segment-integrations/integration-facebook-app-events/pull/8/files?

@f2prateek already there on line 7 ;)

repo: segment-integrations/integration-criteo


text:
Batched dispatcher fixes and enhancements

Fixes event delivery issue when analytics.track is called right before
an action that causes page to unload, for example clicking a link or closing
a tab. The problem was caused by beforeunload handler being called before
dispatch which actually pushes the event to the buffer, since latter is part
of an async pipeline, unlike beforeunload sequence which is synchronous. The
issue is fixed by adding a pageUnloaded flag which gets set to true in the
beforeunload handler, so if dispatch gets called any time after that, it'd
know to send the event right away since there's no time to waste as page is about
to be unloaded.
Enhancements:

Removed the flushing flag. It's value is changed from true to false synchronously
inside flush, so effectively the value of flushing is always false therefore serving
no actual purpose.

Simplified the buffer type. The first member of the inner array serves no purpose, so
it's been flattened to simple 1D array.

De-duplicated fetch calls into a common sendBatch function.

Flush scheduler is now self-contained. Previoulsy the timer ID was managed by callers,
which means there was a potential for a caller to not check if flush has already been
scheduled. This could've led to "phantom" timers if scheduleFlush had been called multiple
times without checking.

Window unload tests are now more realistic as they trigger the beforeunload event instead
calling the handler directly.

Fixes #361
We'll merge this once we get a greenlight from @mlstubblefield

Tested by the customer and ready to be merged.
cc @chrisradek @pooyaj
https://github.com/segmentio/analytics-next/issues/361#issuecomment-1053855542

repo: segmentio/analytics-next


text:
rds: Allow use of CIDR blocks for ingress rules.

This commit also clarifies the variable names for the security group
ingress rules and makes them optional.

Does this pass validation if CIDR blocks is empty? No idea, but a lot of times AWS will validate on that sort of thing.

Yeah, it'll pass. I was able to create a security group with nested security groups but no CIDR blocks without problems.

Sgtm!
On Wed, Feb 8, 2017 at 10:07 AM Tyson Mote notifications@github.com wrote:

Yeah, it'll pass. I was able to create a security group with nested
security groups but no CIDR blocks without problems.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/segmentio/stack/pull/93#issuecomment-278412607, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAdwc9Dd8YF2G7uACorOx-8EJIC030r1ks5ragR7gaJpZM4L6ZeY
.

authors: calvinfo tysonmote

repo: segmentio/stack