timeout=false has no effect

Hi @rcarriga,
I'm not sure what changed, but it seems like the option timeout=false isn't respected anymore.
If I open neovim and just execute :lua require'notify'("test", 'info',{timeout=false}) the popup will disappear after a short delay.
Setting the timeout to a numeric value seems to work as expected, just the disabling via =false seems broken.

Thanks for the report! Should be working in latest commit


Include CSS in autoDependency

As well as processing JS files, it could also process CSS files.

@gilesdring Does my fix work? I just tested for ".css" in the dependency. If that doesn't match it behaves as it did before. I'd like to be able to include CSS files as dependencies in oi-lume-charts.

@gilesdring Just bumping this. My potential fix is on the "Add CSS" branch.

@gilesdring I don't really know how to test my changes so I haven't merged the branch. I also don't know if something special needs to be done for oi-lume-charts to have access to updates of this.

I shall take a look

I've made a couple of tweaks that I'm just testing on the oi-lume-charts example site.
I've updated the import in _config.js to point to the file on my local repo.
import autoDependency from '../../oi-lume-utils/processors/auto-dependency.ts';


[TwitCasting] Some archive downloads only the first hour of it

Checklist

[ ] I'm reporting a broken site support
[x] I've verified that I'm running yt-dlp version 2021.06.01
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar issues including closed ones

Verbose log

WIP

Description/Background
For some TwitCasting archive, it sometimes split the archive 1 hour each.
This especially happens when the video is longer than an hour, with high bitrate.
Here's an example video: https://twitcasting.tv/loft_heaven/movie/685979292
With current yt-dlp, it can only download the first split(=hour). But there's more big problem:

TC allows downloading only one stream simultaneously. Failing to follow this causes all playlists to expire.

Some ffmpeg hack like ffmpeg -i STREAM1.m3u8 -i STREAM2.m3u8 -filter_complex "blablabla" -map [v] -map [a] outpur.mp4.part don't work because of this.
It seems we have to request the next playlist after we download last segment of previous playlist.
(More to say, it should be realtime. Download breaks sometimes)

Current youtube-dl/yt-dlp architecture doesn't support such videos.

I think it's okay to ask users to download these splits manually, but who likes it?
They do not have a proper method to download multiple videos separately and combine later.

I'm also trying to work better with these problems, but I want to hear idea from you.
Thanks.

TC allows downloading only one stream simultaneously.

But then, how does the browser play the video + audio?

TC allows downloading only one stream simultaneously.

But then, how does the browser play the video + audio?

They do not deliver audio and video separately. On browser, when the first split reaches to the end, player replaced by new split and start from zero seconds.

Seems I misunderstood your issue. If the streams are split in time, the general approach is to implement it as a multi_video. There is currently no support for concatting the parts together though. However, something like https://github.com/ytdl-org/youtube-dl/pull/28153 can be implemented for it using the concat demuxer of #360

It seems we have to request the next playlist after we download last segment of previous playlist.

This is still an issue though 🤔

If the streams are split in time, the general approach is to implement it as a multi_video.

Wow, multi_video looks good for such purpose. My bad.
It's better if we're able to complete downloading and joining multiple video as a format. This behavior makes newbies happy.

It seems we have to request the next playlist after we download last segment of previous playlist.

This is still an issue though thinking

This means that we must not download two or more streams in parallel. Don't think it too difficult.

This means that we must not download two or more streams in parallel. Don't think it too difficult.

Again, I seem to have misunderstood. I thought you have to fetch the second stream's URL after the download of first stream is finished. Due to the strict separation of extraction and downloading in youtube-dl, this is difficult to achieve without creating a custom downloader like for niconico

Yes, we probably need new FD. But to confirm, all m3u8 playlists needed to download all splits are all provided in the webpage. We don't have to make a request for each splits every time.

Yes, we probably need new FD

Why?

Yes, we probably need new FD

Why?

Oh, maybe not. When multi_video supports joining after downloading, we don't need it at all.

Does #399 close this?

Does #399 close this?

No. Unrelated PR.


Update osx cookbook location to allow chef to run

@codeword @wendorf looks like we might also need an updated url for keycastr. cheffiles.pivotallabs.com is no longer online.
This means this cookbook has probably been broken for a few months and nobody has noticed. Makes me question the value of continuing to maintain it.

Looks like brew has this now, I recommend we kill this cookbook:
brew cask search keycastr
==> Exact match
keycastr

Just tested installing it via cask, and it has pretty sane defaults. Everything we have recipes for is configurable via the UI. It wouldn't be too hard to maintain this cookbook, but I agree that the value is pretty low.

This cookbook has been deprecated. Closing this PR.


[Data Collection] Add support for persisting geometry data in local and remote db

Towards https://github.com/google/ground-android/issues/1351

The main goal of this PR is to fix data collection flow for point and polygon type tasks. This requires persisting the geometry as a mutation before it can be synced to firestore. As a bonus, this also adds support for creating polygons in the suggest LOI flow.
List of all things done in this PR:

Adds a common wrapper class GeometryData for geometry tasks
Replaces usage of DropAPinTaskData with GeometryData
Save geometry created in DrawPolygon task to response map
Adds support for creating polygon type LOIs in SuggestLoi flow
Persist geometry in response to local db and remote firestore db
Add unit tests

Verified the changes by creating a submission which contains "drop a pin" and "draw polygon" tasks and checking the results in firebase. Also, the submission counter in the mobile gets incremented afterwards which means that the entire roundtrip flow is working as expected.

@JSunde @gino-m  PTAL?

/gcbrun

/gcbrun


Missing GTMOAuth2ViewTouch.nib when built at framework

When building the project as a framework, for instance by include use_frameworks! in the Podfile, using the library will result in a black screen and an error like:
MyApp[123:456]: missing GTMOAuth2ViewTouch.nib

The root of the problem seems to be that the code is looking for the nib/xib in the main bundle, which isn't correctly when the library is included as a framework. As per the Cocoapods documentation on frameworks, the library should use NSBundle bundleForClass instead of NSBundle mainBundle when looking for the resources, to ensure it works correctly whether built as a static library or a framework.

@erickoledadevrel Appreciate the PR! Do you think you'll be able to sign the CLA?

I work at Google, so I didn't think it was required.
On Apr 20, 2016 9:53 PM, "Jonathan MacMillan"<EMAIL_ADDRESS>wrote:

@erickoledadevrel https://github.com/erickoledadevrel Appreciate the
PR! Do you think you'll be able to sign the CLA?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/google/gtm-oauth2/issues/63#issuecomment-212692512

I fixed my email address on the commit, so CLABot is happy :-)

We're still seeing this on 1.1.4 after migrating to use_frameworks! on CocoaPods.

The problem was that we had subclassed GTMOAuth2ViewControllerTouch. In that case [NSBundle bundleForClass:[self class]] will give you the main bundle.
Inserting the following in the child class solved the problem, but there might be a more elegant solution.
+ (NSBundle *)authNibBundle {
   // subclasses may override this to specify a custom nib bundle
   return [NSBundle bundleForClass:[GTMOAuth2ViewControllerTouch class]];
}


fix(ingestion/lookml): resolve CLL issue caused by column name casing.

we should be using the schema resolver to fix things automatically, instead of just having an additional config

Ok


Add modem shell support to the modem cellular driver

Is your enhancement proposal related to a problem? Please describe.
Some of the modem drivers support the interaction with the device at runtime using the modem shell. The generic modem cellular driver currently lacks this feature.
Describe the solution you'd like
Register a modem context and implement the neccessary api within the modem cellular driver so that the modem shell commands (list, send, ...) work at runtime.
Describe alternatives you've considered
None.
Additional context
After looking into the code of the modem subsystem and drivers I have some questions:

The modem shell needs either a "modem context" or a "modem receiver". Which one is recommended? Is the "modem context" the successor of the "modem receiver"?
What would be the best way to implement the neccessary changes? Do we have to rewrite the communication logic to make it thread safe or can we use the modem_pipe as another backend?

If I understand more about the underlying architecture I could work on implementing this.
I'm mentioning @bjarki-trackunit as the main developer of the modem cellular driver. Maybe you can point me to the right direction ;)

Hi, the modem_cellular.c supports the at_shell.c selected with CONFIG_MODEM_AT_SHELL=y :) Its used like
at AT
OK

first at being the shell command, second at being the command to send, and an optional third command being an expected response:
at AT OK
OK

I see this comment is quite old, the AT shell was added a few months back, utilizing a newer feature modem_pipelink to connect a shell module (or anything really) to a free CMUX channel :)


How to customize the FeatureParser ?

I am trying to generate the my custom FeatureParser because the default FeatureParser provided is not accepting all the url types. I need the parser to support special chars/AlphaNumeric.
Please suggest.

we don't support this, but you can see the code here to figure it out on your own: https://github.com/intuit/karate/tree/master/karate-core/src/main/antlr4/com/intuit/karate/core

Does karate support ipv6 url type ?

@subratds69 no


[VS Incentives] feat: implement even splitting policy for group gauge

Background
At launch, we decided to support volume splitting and even splitting policies for the groups.
This issue will act as a tracking issue of what exactly we will need to update to seamlessly enable the even splitting policy.
Suggested Design
Implement the even splitting policy.
Acceptance Criteria

Update syncGroupWeights to implement a method for the even splitting policy. Test both syncGroupWeights and syncEvenSplitGauge
Update TestAllocateAcrossGauges to distribute according to the even policy

Moving this out of scope of volume splitting feature. Instead, tracking this in the ice-box for future considerations
There is no product requirement for this. In reviews, agreed to remove this from codebase completely to limit the scope
ref: https://github.com/osmosis-labs/osmosis/issues/6500


Several fixes

Closes #76
Closes #70
Removed the necessity to exactly match line numbers when constructing webview content.
Also adds custom uniforms, though they can't be controlled yet. Everything should be there though, the only thing that needs to be done is to generate the code for the user interaction/interface. This is something I know very little about and I was hoping you could do this @stevensona, if not I will probably manage some time down the line.

Hey this looks good. Thanks for all this work.
I recently started a new role, so I apologize for not having much bandwidth for feature dev at the moment.
My gut tells me we're better off implementing the UI components right in the GL view using something like https://github.com/flyover/imgui-js as opposed to trying to bolt this onto the VSCode UI or mess with HTML. The UI would read/write to the workspace settings json file (things like uniform name, type, min/max values, etc).
Any ideas/concerns/thoughts on that approach before I take a stab at it?

Congrats on the new job!
I would very much like to not do this in html/css, I don't know about the performance of imgui vs "native" gui. But I think it's worth a try to use imgui, that's something I'm also familiar with at least  :D
If you're short on time I'd be perfectly happy to try implementing this for a bit. Honestly I didn't even think of using a js solution, so I'm happy you bring it up  :)


Dependency "crypto": no matching module rules

Got an error when running my project which uses the Crypto API.
Any ideas how to resolve?
[mf:inf] Build succeeded
[mf:err] MiniflareError: Unable to resolve "dist\index.mjs" dependency "crypto": no matching module rules

@benycodes did you solve your problem? I am running into the same problem. I bundle with Rollup and if I try to import * as jose from 'jose'; using the https://github.com/panva/jose package, then I get the same error:
[mf:inf] Build succeeded
[mf:dbg] Reloading worker...
[mf:err] VMScriptRunnerError [ERR_MODULE_RULE]: Unable to resolve "dist\index.mjs" dependency "crypto": no matching module rules

any luck on this issue? @leviwolfe and @benycodes ?

@faisalil For my specific issue, I actually don't believe it was a Miniflare issue, just Miniflare telling me the problem. The error indicated that code was trying to load a "crypto" module. This was because Rollup was grabbing the Node export from jose rather than the browser one. For Cloudflare Workers, we need to be using the Web Crypto API (crypto.subtle) not the Node.js crypto module. When I added browser conditions to nodeResolve in my rollup.config.js like this, the correct export was grabbed and I was able to use https://github.com/panva/jose:
plugins: [
	commonjs(),
	json(),
	nodeResolve({ browser: true, exportConditions: ['browser', 'worker'] }),
	terser(),
],


Custom merger equality

When a custom merger returns a result that is the same as in the currentObj we can aboirt addToResult since there are nothing more we have to do. And we don't have to flag that any changes have been done.
This is a partial fix to #40. With this addition a custom merger can be used to fullfill the requirements. Check the issue for the details.
In the if we check the merger to abort early, then we need to check if there is a mergeResult otherwise the last part, mergerResult === currentObj[key], would be true when the custom merger returns undefined and it is a value that is only available in otherObj and not currentObj.

Looks good! A nice first step.


btrfs subvolume result in wrong disk calculation

My VPS only has 20G disk
Device     Start      End  Sectors Size Type
/dev/vda1   2048     4095     2048   1M BIOS boot
/dev/vda2   4096 41943006 41938911  20G Linux filesystem

But yabs.sh said I got 60G
Disk       : 60.0 GiB

# df -t simfs -t ext2 -t ext3 -t ext4 -t btrfs -t xfs -t vfat -t ntfs -t swap --total 2>/dev/null
Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/vda2       20969452 12098376   7625576  62% /nix
/dev/vda2       20969452 12098376   7625576  62% /persist
/dev/vda2       20969452 12098376   7625576  62% /boot
total           62908356 36295128  22876728  62% -

# mount | fgrep vda2
/dev/vda2 on /nix type btrfs (rw,relatime,compress-force=zstd:3,space_cache=v2,subvolid=259,subvol=/@nix)
/dev/vda2 on /persist type btrfs (rw,relatime,compress-force=zstd:3,space_cache=v2,subvolid=260,subvol=/@persist)
/dev/vda2 on /boot type btrfs (rw,relatime,compress-force=zstd:3,space_cache=v2,subvolid=258,subvol=/@boot)

This is a known issue affecting certain filesystem types during the size calculation when using df. ZFS is another filesystem that this also affects (see #35). I don't currently have a good way currently of fixing this issue without overly complex logic to handle all the different fs types and edge cases, so for now this will left as a known bug without resolution. Appreciate the bug report!


Document Keycloak redirects action

See https://app.zenhub.com/workspaces/fsa-fingerprint-61f04f08304d3e001a4f2578/issues/bcgov/nr-fom/32
-make sure people can find and use Kevin's work

Deprecated.


Per-dojo write up policy

Public dojo authors might want to encourage writeups (for example, someone could conceptually host a CTF in a pwncollege dojo). Our writeup policy currently forbids this. We might want to make it explicit per dojo, rather than globally

Potential hiccup with our current implementation of dojos.

I create "Rob's sweet CTF dojo"
I import all of pwn.college
I specify all the writeups are fair game
????
PROFIT!


feat: support more target framworks

EF-Adapter target frameworks
net45;net461;netstandard2.1
EF-Adapter.UnitTest target frameworks
net452;net461;netcoreapp3.1
Request for this change

@Sagilio

Replaced by: https://github.com/casbin-net/EF-Adapter/pull/4


Pickle Serialization for UnivariateFitter models

Essentially I kept with the original design with minor changes. Instead of using factory functions to build the predict/subtract/divide/plot methods, I converted them to base class methods and update the docstrings after fitting. The methods are always present, but raise an exception if fit hasn't been called. Shuffled things around slightly and added a very simple unit test to make sure serialization is working with pickle. Tested on python version 3.6.4, linux.
fixes #524 and #188

It passes all tests except a test that simply says "assert false", so I don't think that one is my fault. :)

First look: really clear pattern, and a nice generalisation of the univariate fitters.

All except test_robust_errors_with_strata_doesnt_break.
https://github.com/CamDavidsonPilon/lifelines/blob/0af75fee3a07208137ab418cc2ea60298ba2538b/tests/test_estimation.py#L1702

Awesome. I needed this, so I hope this works out for everyone else as well!

FYI I'm hoping to release 0.15 mid-December at the latest, but maybe sooner. Feel free to rip the latest though with pip install<EMAIL_ADDRESS>(maybe target your commit, incase I break that branch).
Lots of nice changes https://github.com/CamDavidsonPilon/lifelines/blob/17b2931f8e58fc2e4715e3bbcdac00b449bceba9/CHANGELOG.md#0150


Fix named ports + kubeadm: support duplicate named port names (seen in the wild)

We have validation that prevents duplicate port names on a workload, but, despite its docs, k8s does seem to support that and we've seen it in the wild (kubeadm uses duplicate metrics ports on its pods, for example).

@fasaxc I believe this has been fixed?


problems

Issue Type: Bug
Extension Name: dotnet-interactive-vscode
Extension Version: 1.0.2357010
OS Version: Windows_NT ia32 10.0.19042
VS Code version: 1.58.2

:warning: We have written the needed data into your clipboard. Please paste! :warning:

Are you still able to repro this? If so, please include some additional details and reopen the issue.
Thanks.


Floating point calculation error

tensorflow2.0 and python3.7
when i wanto calculate 165 * 3.1 or 165 * 2.1, i got a fake answer.
Like this:
tf.cast(165, tf.float32) * 2.1
Out: <tf.Tensor: id=43186, shape=(), dtype=float32, numpy=346.49997>
tf.cast(165, tf.float32) * 3.1
Out: <tf.Tensor: id=43261, shape=(), dtype=float32, numpy=511.49997>
i make sure its a error, but i wanto know why.

Hey, @JanMCHEN  you're getting this type of answer because you're multiplying a tensor with the floating number.
please see the gist for doing this: https://colab.research.google.com/drive/1HD7ScmyvOSuoXz7z7iGW7fLk-S95itGe#scrollTo=GkHs7h9l32un
And If it doesn't solve your query, then feel free to reach out to us.

Hey, @JanMCHEN you're getting this type of answer because you're multiplying a tensor with the floating number.
please see the gist for doing this: https://colab.research.google.com/drive/1HD7ScmyvOSuoXz7z7iGW7fLk-S95itGe#scrollTo=GkHs7h9l32un
And If it doesn't solve your query, then feel free to reach out to us.

Thanks, i just hope to get a correct answer when i calculated 165 * 2.1,it should be 346.5. I solved it through 165 * 2 * 2.1 / 2, it worked but it is means that i will get a wrong answer sometimes when i calculated the float number as a common way.
我母语是汉语，可能表示的不是很清楚，我想说的是这是不是意味着我用tensorflow做浮点运算时我应该时刻注意它的输出，因为其有可能不是正确的答案，或者这背后涉及到数据类型转换，我对C Language 了解一点，但还是不明白这个浮点运算为什么会出错。谢谢解答

@abhinavsp0730 You multiplyied the tensor with the tensor, but it still not the right answer of calculating the two floating numbers.

@abhinavsp0730 You multiplyied the tensor with the tensor, but it still not the right answer of calculating the two floating numbers.

Would you please be more specific what you're referring for the right answer?
I don't used tf.math.multiply because, i think you're dealing with scalar.

@abhinavsp0730 When i wanto get a images'shape, it is expressed in tensors.Now i want to calculate its shape after expanding scale times.Usually i can get the shape by calulating "img.shape * scale", but you see when the shape is like(165,    ),scale equals to 2.1, i will get a confused anwser.
165 times to 2.1 should be 346.5 but i got 346.4999,then i fall into a bug. I'm training a
Super resolution network with a floating times， and i can't calulate it through scalar.


Fix BlockStoreQueue race condition

Fixes #2162.
Removing the queue that was the source of the race condition seemed like the most straightforward approach.
This impacted the loop that was previously responsible for both dequeuing blocks & checking whether the 37 second timer elapsed. It now only needs to check the timer in addition to the (existing) batch size & consensus tip checks.
This change necessitated altering how the batch gets cleared. Previously blocks would be in the batch, a save condition would be triggered, and the chain without reorged blocks would be determined & written to the repository. The batch would then be cleared.
Since the batch now gets directly added to, the saved elements have to be removed from the batch under a lock. The save method therefore returns a list of blocks that got saved to facilitate this. Note that we do not perform the actual save under a lock, as this would stop consensus while it waits to acquire the lock in the AddToPending method.
The removal of reorged blocks also needs to be done more carefully - previously the code relied on the batch being cleared to ensure that the reorged blocks were removed from the batch. We now do this more explicitly by replacing the batch with the cleaned version.
Some minor changes to the block store tests were necessary, as they were originally written with a queue in mind.

will review tmr

I suggest this flow, we only need to hold the lock inside the mthod bla
So you can do this
   private List<ChainedHeaderBlock> GetBatchWithoutReorgedBlocks()
        {
            this.logger.LogTrace("()");

 lock() - just lock here
 {
            // Initialize current with highest block from the batch.
            ChainedHeaderBlock current = this.batch.Last();

            // List of consecutive blocks. It's a cleaned out version of batch that doesn't have blocks that were reorged.
            var batchCleared = new List<ChainedHeaderBlock>(this.batch.Count) { current };

            // Select only those blocks that were not reorged away.
            for (int i = this.batch.Count - 2; i >= 0; i--)
            {
                if (this.batch[i].ChainedHeader.HashBlock != current.ChainedHeader.Previous.HashBlock)
                {
                    this.logger.LogDebug("Block '{0}' removed from the batch because it was reorged.", this.batch[i].ChainedHeader);
                    continue;
                }

                batchCleared.Add(this.batch[i]);
                current = this.batch[i];
            }
this.batch.Clear()
}
            batchCleared.Reverse();

            this.logger.LogTrace("(-):*.{0}={1}", nameof(batchCleared.Count), batchCleared.Count);
            return batchCleared;
        }

Then you can remove the lock from the outside method

pls no

Why not? what's the reason behind not using a loop?

active waiting is not a way to go, we try to remove it everywhere and now you suggest to introduce it again? this is supposed to be event driven - someone adds to a queue, something happens, timer expires, something happens, there is no loop

If you have a timer then you have active waiting either way.

we try to remove it everywhere and now you suggest to introduce it again?
I was not aware if that 🤔

If we want this logic to be evenet driven then we need to bring back the AsyncQueue but we will still need a timer regardless (so then you end up with some weird hack of waiting on a task completion to achieve a time etc...)
If we dont have an AsyncTimerQueue (wich we plan to implemet) then use an AsyncQueue and an AsyncLoop together and not do weired hacks.
What if we create an AsymcQueue that can be triggered with two types of messages (a block or a timer ping) then you still get a no-lock approach and the code is way simpler.
The result of the AsyncQueue will always push to the batch.
We still need a lock though arount he batch because of peers asking for pending blocks.

This looks much better, all integration tests passing?

There are a handful failing, but they do not seem to be related to this PR.

@zeptin after you apply changes please confirm that unit and integration tests are passing.

@zeptin checked again. Looks really good, just fix this:
// TODO: check if we need to add support for "not found"
ChainedHeaderBlock chainedHeaderBlock = await this.consensusManager.GetBlockDataAsync(item.Hash).ConfigureAwait(false);

if (chainedHeaderBlock.Block != null)

I think there is a problem with the logic here please do not merge yet

ok the problem was a known bug in master this is good to go in


Traversal of 2D, 3D, ND arrays, and declaring/available functions within kernel

Hi! I have been looking into this package and trying to implement simple image processing filters, like median filter, by writing the kernel for it. This is a test function for looping over the 2D array, it's not fully implemented median filter (the kernel parameter is ignored):
import cupy as cp
def loop2d(data, kernel=3):
    """
    This should be doing a row-major traversal.
    The data is broadcast into a 1D array when transferred to the device.
    """
    # allocate memory for the output parameter
    data_out = cp.zeros(data.shape, dtype=data.dtype)
    f = cp.ElementwiseKernel(
        in_params='raw T in, int32 width, int32 kernel, int32 kernel_width',
        out_params='raw T out',
        preamble=r"""
        #include <stdio.h> // for debug
        """,
        operation=r"""
        printf("index: %d\n", i);
        for(int j = 0; j < width; ++j){
            int pos = i * width + j;
            printf("value at %d: %d\n", pos, in[pos]);
            out[pos] = in[pos] + 3; // apply some operation
        }
        """,
        name='loop2d',
        options=('-std=c++11',),
        reduce_dims=False
    )
    if kernel <= 1:
        return data

    kernel_width = (kernel - 1) / 2
    # this is for the outer for loop, looping over the rows
    data_height = data.shape[1]
    # this is for the inner loop, looping over the columns
    data_width = data.shape[0]
    # we pass in data_out as the output parameter
    return f(data, data_width, kernel, kernel_width, data_out, size=data_height)

some_data = cp.full((10,10), 1, dtype=cp.int32)
loop2d(some_data)

I feel this is abusing the ElementwiseKernel, because it's operating row-wise, not element wise.

I am curious to know if my traversal approach is correct? Is there another way to traverse a 2D array, without manually calculating the current position after being broadcast?

Do you have any examples in the source code of having to do this?
Something else to consider - I will be looking to extend this to a 3D array traversal/processing.

How can I find what functions I can use within the CUDA kernel declaration? I have been looking around random files in the source code that use kernels, and functions like atomicAdd that have been used in some of them can only be found within the source files.

Expanding on the previous Is there a way to define our own functions? A hack that works is to define the function within the preamble='void myfunc(){};', but maybe there's a way to add it into cupy in a different way

Thank you very much for your time! I am very impressed with the work that you all have done on this package, so I can only say, keep up the good work!

I will answer to some of your questions.

I am curious to know if my traversal approach is correct?

I briefly looked at your code, and pos = i * width + j looks fine.

Is there another way to traverse a 2D array, without manually calculating the current position after being broadcast?

Basically, ElemenwiseKernel calls cupy.cuda.Function.linear_launch inside (https://github.com/cupy/cupy/blob/master/cupy/cuda/function.pyx#L134).
If you want to use CUDA's 2D or 3D block/grid configuration, you need to callcupy.cuda.Function.__call__.
To give you an example, here is a code where I used this functionality from CuPy when I wrote a kernel for non-maximum suppression of bounding boxes.
https://github.com/chainer/chainercv/blob/master/chainercv/utils/bbox/non_maximum_suppression.py#L124
By the way, I am not sure if this is the recommended style of writing kernels, so I would like to hear back from core dev team.

I wrote a SGEMM example. It might be helpful to you.
https://github.com/cupy/cupy/pull/114

I think you PR answers all of the questions I had, so I'll go ahead and close the issue. Thank you very much!


Update how-to-connect-health-agent-install.md

@AJM20202021 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#label:"aq-pr-triaged"


Add trueberryless contributor list

Care to come leave a review, @trueberryless-org ??

Hey @trueberryless ! I did not use deno? 😅 I figured that the cache is because there are images now? I'll ask @delucis to take a look!


teamspeak_client: add alternative url for pluginsdk

Description of changes
The old url was not reachable for me. I don't know if it's permanent, so I kept it and just added an alternative archive.org url.
Fixes https://github.com/NixOS/nixpkgs/issues/344885

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Thanks for the review, I can undo the formatting after the weekend.
For me the build was broken because oft the unreachable download and I saw IA used in other places. What do you recommend to do instead?

I don't have an alternative, hence the approval.
What I'm mainly concerned with is your broken git user. Please correct that and we're good.
You can keep the reformat but I'd like the permission email to be moved to a separate non-nix file.

Can't we use that as source? https://github.com/teamspeak/ts3client-pluginsdk
It's the link on their website for the pluginsdk (it's quite new linked there)

Note: I only tested the build so far ad did not install/run the application yet.
NIXPKGS_ALLOW_UNFREE=1 nix build --impure .#pkgs.teamspeak_client

@ofBorg eval

Result of nixpkgs-review pr 344608 run on x86_64-linux 1

1 package built:

teamspeak_client


runtime(r,rhelp,rmd,rnoweb,rrst): Update ftplugin, browsefilter labels

Update browsefilter labels to use the standard format:
File Description (*.ext1, *.ext2, *.ext3)
@chrisbra, I removed the list of changes attributed to "Vim Project".  They were primarily intended to notify temporarily absent maintainers and probably don't make much sense for unmaintained files.  I'll re-add them if you prefer.

Thanks I think this is fine


.Net client

does this .NET Core SignalR support client from normal winform/wpf programs? I think it only support connect from js and have not see any document for a normal program. in .Net SignalR we can connect from any client either broswer or winform/wpf.

文档详细信息
⚠ 请勿编辑此部分。 docs.microsoft.com ➟ GitHub 问题链接必须具有此部分。

ID: edc76539-dcd8-8271-b876-f2b492af9b49
Version Independent ID: d0106767-c04e-39a8-fe1d-a40352552c62
Content: ASP.NET Core SignalR supported platforms
Content Source: aspnetcore/signalr/supported-platforms.md
Service: unspecified
Product: aspnet-core
GitHub Login: @rachelappel
Microsoft Alias: rachelap

It's not working for Xamarin iOS right now. I get this error System.TypeLoadException: Could not resolve the signature of a virtual method

@anurse Is there someone on the team who knows Xamarin for iOS who might be able to help out with this one?

As per https://github.com/aspnet/Announcements/issues/305, Xamarin.iOS is currently not working, but will be fixed in the next preview release of Visual Studio (15.8 Preview 3)


error in 64-bit msi

Description
in sam.cmd, call to SetPythonExe is not made.
Steps to reproduce
download and run AWS_SAM_CLI_64_PY3.msi, revision {CD191EEB-C1EE-40D5-8E34-EA6A49B55697}
Observed result
the PythonExe variable remains an empty string
Expected result
the PythonExe variable should be set to "%~dp0/../runtime/python.exe"
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

OS: Win64
sam --version: SAM CLI, version 0.7.0

Thanks for this bug report! This will be on the radar on the next thing to fix.

This should be fixed with the latest version of the SAM CLI release.


Fixed URL redirect for temporary webpage

@JoniVR @the0neyouseek can any of you please approve this? Since the experimental branch is no more, the temporary GitHub pages redirect is not working anymore. :)


Development notes regarding bulk_extractor versions > 1.4.0

Testing on:

https://github.com/simsong/bulk_extractor (0328eb4af965d019d74a6bc38a9e00271487fdef)
http://digitalcorpora.org/downloads/bulk_extractor/bulk_extractor-1.5.5.tar.gz

Notes thus far:
Scan demo error (as stated at https://github.com/simsong/bulk_extractor/issues/68)

Issue closed. It seems the automated histogram generation was causing both this scan_ird and scan_flexdemo to crash bulk_extractor when loaded from the plugins directory. This line is causing the problem:
sp.info->histogram_defs.insert(histogram_def("ird","","histogram"));
Current solution: commented out the above line, which disables automatic histogram generation. This is not the desired outcome. But allows use in modern versions of bulk_extractor (> 1.4.0). Further investigation to re-enable histogram generation is needed in the future, as it is a very useful feature.


Question - About reward mapping in HighwayEnv

Hi Edouard!
Can you explain more about the utils.remap() function? in HighwayEnv's reward method, It seems that it is mapping reward to a line segment. Why is it necessary?

I think this is answered in #41, sorry for the duplication.

Although I suggest refactoring the function like this:
def lmap(v: float, x: Interval, y: Interval) -> float:
    """Maps value v with range x to desired range y"""
    return y[0] + (v-x[0])*(y[1]-y[0])/(x[1]-x[0])

I would like to add that the assumption that rewards are bounded is not only practical for deep rl purpose, it is also required in the theory of the exploration-exploitation dilemma (it is exploited in monte-carlo tree search algorithms, for instance). And then, using the range [0, 1] instead of [R_min, R_max] is just a convention.


Explorer viewlet contributions render title twice

@sandy081 assigning to you since all of them render the title twice.

I already have the issue. But you are first to win :)

Sorry about this @sandy081
I even had that issue for myself: #35100


package repository dont get updates anymore?

Lates updates are sstill not available via repositories
__Expected behavior: InfluxDB 1.5.1 is available via repositories
__Actual behavior: still 1.5.0 is latest version from repositories
Thanks in advance

InfluxDB 1.5.1 is now uploaded to the repository.


Errors are just logged as "Instance of 'ApiError'

We use sentry in our flutter app to track crashes and we see these kind of reports, making it impossible for us to know what went wrong:

I am not 100% sure how to resolve this. Maybe implementing toString() would help?

Tagging @matgar26 as you fixed our previous issue. A simple toString() would probably do the trick but you guys know your error objects the best! :)

@flodaniel thanks for brining this to my attention. I will look into this now and should have a fix today.

@flodaniel I pushed out a fix for this in v0.1.6
Could you let me know whether or not this solves the issue?

Hi @matgar26,
we now have 0.1.6 in production and we get better errors. E.g.:
ApiError: ApiResponse(status: 500, statusCode: StatusCode.error, body: null, error: ClientException with SocketException: Connection reset by peer (OS Error: Connection reset by peer, errno = 54), address = api.knock.app, port = 61246,

Thank you!

One more thing.
If you could also export your ApiResponse and ApiError classes that would be great. Right now I have to import them like this:
// ignore: implementation_imports
import 'package:knock_flutter/src/model/api_response.dart';


Syntax Highlighting is not working in Edge Browser

The error message shows something like 'InfolinkClient' is undefined in searchQuery (1,492).

Syntax highlighing is also not working on my Samsung tablet here. Can someone confirm that?

'InfolinkClient' is undefined is due to me working on the JS client. This is to be expected.
Nonetheless, it should work on phones, we need to test that.

Works on Android for me

Okay, I tested again in it seems fine now on the Tablet and also in Edge browser on Win 10.


Adding thoughts around lula required or important foundation

Adding foundation thoughts for considerations when determining future architecture decisions.

"- There are spaces with which Lula should not look to compete - IE policy enforcement engines - But there is a lot of alignment opportunity - how?" If there is a lot of alignment with policy enforcement, should that be an add-on or another function of the tool? By that I mean, if we are doing 60-70% policy enforcement how much more does it take for it to be 100%. The numbers are not correct just for representation, still going through the tool and learning it.

Great question @Alvin-zzz - Current thoughts are certainly to integrate - but not replicate enforcement. IE if we can enforce compliance validation through a policy enforcement engine - we should attempt to do so. But we do not want to mimic or replicate a policy enforcement engine as the market has mature offerings already available.

"- There are spaces with which Lula should not look to compete - IE policy enforcement engines - But there is a lot of alignment opportunity - how?" If there is a lot of alignment with policy enforcement, should that be an add-on or another function of the tool? By that I mean, if we are doing 60-70% policy enforcement how much more does it take for it to be 100%. The numbers are not correct just for representation, still going through the tool and learning it.

Great question @Alvin-zzz - Current thoughts are certainly to integrate - but not replicate enforcement. IE if we can enforce compliance validation through a policy enforcement engine - we should attempt to do so. But we do not want to mimic or replicate a policy enforcement engine as the market has mature offerings already available.

I understand, I'll research an open source policy enforcement engine that would be a good fit or a similar tool that we can integrate or add to Lula.

"- There are spaces with which Lula should not look to compete - IE policy enforcement engines - But there is a lot of alignment opportunity - how?" If there is a lot of alignment with policy enforcement, should that be an add-on or another function of the tool? By that I mean, if we are doing 60-70% policy enforcement how much more does it take for it to be 100%. The numbers are not correct just for representation, still going through the tool and learning it.

Great question @Alvin-zzz - Current thoughts are certainly to integrate - but not replicate enforcement. IE if we can enforce compliance validation through a policy enforcement engine - we should attempt to do so. But we do not want to mimic or replicate a policy enforcement engine as the market has mature offerings already available.

I understand, I'll research an open source policy enforcement engine that would be a good fit or a similar tool that we can integrate or add to Lula.

In order to provide more insight - the current execution of Lula leverages Kyverno as a library for performing validation against Kubernetes configuration. Kyverno is one of the primary Kubernetes Policy Enforcement Engines (it's being targeted as the default engine for Big Bang 2.0).

so is the overall goal to generate OSCAL SDK for golang so you can embed it into golang apps?
does  gocomply oscalkit (ie generated from their metaschema golang) not satisfy that need? or is the goal to restart since gocomply oscalkit is 2 years old and seemingly not maintained, ie is the start-from-clean-slate the most important goal (since presumably lots of design forces have changed in the past years)? or is there interest in just refreshing gocomply's golang and maintaining it?

The relationship between components and platforms (and how an end-user would leverage component models for an SSP)

Isn't this defined in OSCAL itself?  ie components are defined in CDefs and provide system functionality, and in the SSP model included as providing "implemented-by" security capabilities?
the definition of "platforms" may not be well defined - other than grouping of components.  this reminds me of a NIST repo thread about whether SSHD is a component or a system. seems like similar (nuanced and often disagreed on by equally knowledgeable practitioners) discussion. (I could argue contrasting approaches of equal merit.)

The value that a single application (optimally open source) could benefit by collaborating/producing OSCAL

ignoring the above (ie what in fact is an "application", is it a system, a component, etc) ... the benefits of collaboration by a team of devs creating or generating from some metadata an OSCAL artifact would be

greater understanding of their own security and compliance wrt. a very comprehensive catalog of controls, which arguably is 99% of the value, likely to stimulate a lot of good discussion and possibly some proactive bug fixes and security enhancements; the mere fact it is OSCAL output vs. chickn scratch on a napkin is irrelevant (but handly for...)

having that OSCAL artifact opens the project up to greater reuse by OSCAL-aware teams, GRC tools, CSPs, and agencies who can reuse that artifact in part or wholesale.  Given the choice of 2 projects, let's say for example OPA vs Kyverno, if one has OSCAL artifacts and the other doesn't, I might be much more inclined to find a reason to use the one WITH vs the one without.  Not the only reason to adopt or reject some open source tool, but a thumb on the scale for some.

The value to end-users for inheritable controls with continuous-compliance validation

depends on which end-users you mean - auditors may love it (or hate it if it means they have to change how they do their job using code instead of word docs and they don't like coding); devops will probably be indifferent insofar as they will see the value of easy to understand yaml based and SDK supported controls, but that is probably offset by having less room for discussion and interpretation and more check-the-box work for them to do and more security related tooling to learn and manage instead of adding new features; project managers will likely like it because they can check off some high level "compliance" checkbox quickly.
A security architect could start building more logic around how controls are implemented and be able to overlay threat intel and other annotations to measure the effectiveness of controls. in short - "shifting" controls left opens up a whole new approach of defensive capability engineering in code that can be reused and recycled across different applications and systems.
Vendors may not like this since it makes it harder to justify expensive single solution tools, and easier to replace one component with another if the capabilities are standardized and commoditized.

Overlap between compliance and policy is quite heavy - leveraging policy to perform compliance-validation potentially improves both

I'd argue that these are actually not actually very overlapping - once you arbitrarily redefine terms :)  Elsewhere others have referred to this as big-P "Policy" and little-p policy - Policy is a human readable artifact used for compliance activities; policy is a machine readable artifact used for configuration managment.
in a similar vein, big-C Compliance is the  1) mapping of regulation to specific documentation 2) the mapping and implementation of some process (automated or manual) of doing what you say in that documentation, and 3) the CRUD of  documentation artifacts, inclusive of evidence and reviews, etc.
Little-c compliance is simply diffing actual vs. expected of a particular technical knob or lever set.
therefore whether my K8s Volumes are encrypted or not in my definition is not a "Compliance" issue. but is a "compliance" failure.
The C-ompliance issues are: a) did I define somewhere that I am using K8s volumes and they need to be encrypted based on some risk model b) did I track that in some Jira card to show that the application or infra was reviewed against that requirement and not allowed to be deployed in IaC until that was true, and c) did I examine or test that the encryption works as advertised (or inherit some documentation from say a FIPS 140 cert that proves it should).  None of these overlap with what I would call K8s configuration and configuration "p"olicy management.
The c-ompliance issues are did I have my admission controller check for volume encryption? do I see runtime resources with those settings?  can I query and report on those? Can anyone manually touch prod to drift things?
so in short I would restate your generally true proposition slightly more precisely:
Linking C-ompliance controls to P-olicy definitions and then forward engineering specific and fully enumerated configuration requirements corresponding to each P-olicy requirement so that one can create a complete bundle of logic check snippets aka p-olicy which exhaustively cover (as in code coverage) all specified system configuration values at 1) definition time, 2) deployment time 3) ongoing runtime 4) report or diff time....to perform compliance-validation-as-configuration-diff-checks which then can map back to the defined P-olicy and thus the C-ompliance controls.
yes, as Martha Stewart might say, this would be a Good Thing!

policy engine to perform configuration queries provides an interfacing language (rego etc) to utilize in OSCAL validation rules

Agree, p-olicy engine should perform config queries
Also agree (and showed a stupid simple artificial example in the mini-workshop) using Rego to do OSCAL rules could be useful. that said, precisely how you use Rego (or any other language) is where the devil's in the details.  if it just doing a lookup then arguably it's not useful and less maintainable and harder to teach others than just hardcoding specific test definition IDs in a JSON map and maintaining the json map in github. Or using CQL.  There has to be a specific reason to use Rego vs simpler static mapping expressions. I myself might use simple json maps in some cases, Rego in some cases, and a solver or proof system in others.

Should this be application source or orchestration

I predict it will evolve to be both simultaneously. but initially in the source repo makes more sense as we crawl, before walking...

build out some examples that provide exposing compliance information via REST/gRPC

someone was doing REST...forget who (something "dynamics" maybe - might have been a mini-workshop).  but yes lots and lots of examples. The Policy WG will be contributing OSCAL examples soon - maybe a REST if folks want one.

Kubernetes Native resources may provide one solution for deployment of the compliance data

The Policy WG clearly thought that having PolicyReports was useful. And of course Gatekeeper has its own resources. I myself am not so sure in the long term vs. streaming out data into some better system, which might explain the bifurcation of adoption of the Report CR.  I think for small data sets, the CR makes sense. For larger domains, with richer, complex data, not so much. Probably so many use cases that both are useful to someone.

perform validation of the Infrastructure that it has connectivity-to
I presume you have seen CloudCustodian?

IaC will use a component-definition OSCAL much like Kubernetes

I think having OSCAL <-> AWS CDK for example would be great! presumably this can already be done via cdk <-> golang/python/nodejs <-> OSCAL in some janky hack or another?

Hey @sunstonesecure-robert ! Appreciate the time you spent running through these notes and providing feedback. Much of the current understanding still needs maturation from expertise such as yourself to help guide development towards valid execution.
Many notes to digest here - I'll start with the first and make my way through questions and the statements provided.

does gocomply oscalkit (ie generated from their metaschema golang) not satisfy that need? or is the goal to restart since gocomply oscalkit is 2 years old and seemingly not maintained, ie is the start-from-clean-slate the most important goal (since presumably lots of design forces have changed in the past years)? or is there interest in just refreshing gocomply's golang and maintaining it?

oscalkit would have some definitive overlap at certain layers of the code. The current problem is - as noted - the GoComply devs have indicated that both that SDK and related tooling are unsupported and out-of-date. The modifications required would require more investigation than we have done for Metaschema to date - and the related material for Metaschema language support still requires some maturation as well.
We'd like to assist NIST with that endeavor while building out more logic towards Kubernetes and other domain validation. Current thought is to mimic methods to establishing datatypes similar to Trestle to provide a baseline - then commit development cycles to Metaschema and the experimentation with contributing to GoComply if possible.
I believe the other half to this question lies in the difference between oscalkit and Lula - primarily being that we would like to see this as a continuous compliance engine - starting with Kubernetes. A controller/operator runtime that is deployed to the environment to perform validation and report generation to GRC tooling. Positioned uniquely from the perspective of portable units of compliance information that can be aggregated and validated for GRC tooling visualization.
There would be ties to Lula as a CLI - I believe there is an inherent value statement to the ability to perform validation prior to introduction to a regulated environment - so if the components delivered to an environment were immutable - then there would be workflows worth pursuing.
as always - would love to bounce ideas back and forth!

@sunstonesecure-robert After digesting your comment more, I think the information you provided helped in my understandings of some concepts that I have heard being discussed in the Policy-WG meetings. Big-P little-p policy and Big C little c Compliance are some perspectives I'm going to chew on further.
Largely I don't have any points of disagreement for what you are saying (it actually helped me learn and solidify some other concepts along the way). As we set-out to define Lula runtime and integration of components - i'd love to get your perspectives on the choices and stances that the tool takes on issues surrounding Policy/Compliance (in all forms). I imagine your experience could help reduce potential pit-falls as we make major architectural decisions - which will be introduce through ADR's for review.
Just to answer the remaining question:

I presume you have seen CloudCustodian?

Yes! it's on the radar as (at a minimum) a learning objective for looking to see how this might be replicated for detecting when something has changed or drifted.

I think having OSCAL <-> AWS CDK for example would be great! presumably this can already be done via cdk <-> golang/python/nodejs <-> OSCAL in some janky hack or another?

Hopefully not too-janky :wink: - but I don't disagree. I need to write a summary around the stance that Lula takes in performing validation for compliance purposes. As long as Lula can be built to allow the user to develop complex (when required) validation - then Lula should care less about the validity of those statements and focus more on the accuracy of validating said configurations. Establishing provenance for a given ruleset that validation is to be performed against is another area that needs to be discussed.
This needs to be put more succinctly - so I will work on that. I'm going to merge this in - but would love to chat more. Feel free to drop changes in PR's and/or just filing issues to establish traceable conversations toward refining the vision.


Update Calico add-on link

The Calico add-on documentation has moved.  This PR updates the link to the new location.

This change is

/lgtm


Improve the Donation Page of the Application

Description :
Give the User Freedom to pay with paypal or any other payment method

Hi @N-45div can I take up this issue please. Can you please assign this to me.

Yes @DeexithParand2k2 you can take up this issue buddy and start doing it...

Sure I'll work on it and let you know once I complete it.

Hi @N-45div until now I've added new components and separated donation into two components (one for gift donations and another for monetary donations ). Now for the payment gateway issue, some of the payment gateway integration require backend also, so is it fine if I add node.js backend to handle the payment part alone.

Hi @N-45div until now I've added new components and separated donation into two components (one for gift donations and another for monetary donations ). Now for the payment gateway issue, some of the payment gateway integration require backend also, so is it fine if I add node.js backend to handle the payment part alone.

While integrating the backend take care that other components/pages don't get disturbed that's it :) ...Well done ahead...


Input length smaller than 16

It seems that this library currently doesn't support input signals whose length is smaller that 16 elements.
As far as I can see, this might be due to the use of ArrayPool here:
https://github.com/swharden/FftSharp/blob/8015e0dc504edd01c02ae6b9c9d334dc33d9bda5/src/FftSharp/Transform.cs#L261
which allocates arrays of lengths: 16, 32, 64, 128, 256, 512, 1,024, 2,048, 4,096, 8,192, 16,384, 3,2768, 65,536, 131,072, 262,144, 524,288 and 1,048,576 elements.
Signal inputs for FFT are usually greater than 16 in length, but there might be still some use cases (ie: for testing or educational purposes) where smaller inputs are FFT-ed.
I believe this could be easily incorporated by adding the following line after the previous one:
Span<Complex> buffer = temp.AsSpan(0, input.Length);

Should the above suggestion be considered, it would also be necessary to modify the 16-element-length check here:
https://github.com/swharden/FftSharp/blob/8015e0dc504edd01c02ae6b9c9d334dc33d9bda5/src/FftSharp/Transform.cs#L309-L312
Maybe something like this?
if (input.Length < 2)
    throw new ArgumentException("Input should have 2 points at least");

Would like to hearing your thoughts before attempting any PR, @swharden.

I'd be happy to add support for small FFTs! I'm fine with any implementation you think as best, as long as some tests are added to confirm the FFT output of some sample data matches the numbers generated with Python
I think there are some notes in the existing tests or maybe this repo's top level folder that help generate numbers for those tests.
Thanks for this suggestion! I can review a PR if you make one, or I'll implement this myself eventually

I'll make the PR. However, I can only help with providing input data for the tests, since I don't use/code with Python. Would that help to do the tests? (I've attached two files: a 4-point 1 Hz sinus and an 8-point 1 Hz sinus).
Sine wave - 1 Hz - 4 pt.txt
Sine wave - 1 Hz - 8 pt.txt

Sure thing! I see the PR (thanks!) and I'll do the Python stuff and add those tests.
I anticipate being able to finish this and release a new package this evening 🚀

Thank you!

Note to self, here's some python:
import numpy as np

values = [0.33, 2.15, 1.44, 1.37, 0.24, 2.6, 3.51, 1.98]

N = len(values)
fft = np.fft.fft(values)
fftReal = np.fft.rfft(values)
fftMag = np.abs(fftReal) * 2 / N
fftMag[0] = np.abs(fftReal[0]) / N  # special case for DC
print(fftMag)

[1.7025     0.70671034 1.14957601 0.33016737 0.645     ]

resolved by #63


Error.

=> Enter the persons name to find on FB: B**** L****
==> How many jitters, higher is better [max 100] (default=70): 100
==> Opening Webdriver
-> Collecting Image URLs...(Page 1)
:: Starting Face Recognition
==> Loading known faces
-> Loading FB_IMG_1587794265218.jpg
-> Loading FB_IMG_1587794219598.jpg
-> Loading FB_IMG_1587793965099.jpg
-> Loading FB_IMG_1587793774054.jpg
-> Loading FB_IMG_1587793830202.jpg
:: Analyzing
==> Storing Image in /tmp/user/0/PEQ936.jpg
==> Analyzing https://scontent-lax3-2.xx.fbcdn.net/v/t1.0-1/cp0/c<IP_ADDRESS>a/p74x74/32378551_127006884840...
==> Analyzing https://scontent-lax3-2.xx.fbcdn.net/v/t1.30497-1/cp0/c<IP_ADDRESS>a/p74x74/84241059_1891321...
==> Analyzing https://scontent-lax3-2.xx.fbcdn.net/v/t1.30497-1/cp0/c<IP_ADDRESS>a/p74x74/84241059_1891321...
==> Analyzing https://scontent-lax3-1.xx.fbcdn.net/v/t1.0-1/cp0/p74x74/11350406_1102410083119203_6319370...
==> Removing /tmp/user/0/PEQ936.jpg
:: Result
==> Found the following Profiles:
:: Google Reverse Image Search
==> Opening Webdriver
:: Uploading Local Known Images
Traceback (most recent call last):
File "./eagle-eye.py", line 228, in
main(skipFB=args.skipfb, FBUrls=[], jsonRep=jsonRepFile, dockerMode=aDocker, dockerName=aName)
File "./eagle-eye.py", line 130, in main
g.collectLinksLocal()
File "/root/EagleEye/grabber/google.py", line 135, in collectLinksLocal
elems.click()
File "/usr/local/lib/python3.7/site-packages/selenium/webdriver/remote/webelement.py", line 80, in click
self._execute(Command.CLICK_ELEMENT)
File "/usr/local/lib/python3.7/site-packages/selenium/webdriver/remote/webelement.py", line 633, in _execute
return self._parent.execute(command, params)
File "/usr/local/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementNotInteractableException: Message: Element  could not be scrolled into view

Fixed in latest commit.


Query cost in graphql spans tracing

I want to merge this change because it adds a new tag to graphql tracing span - graphql.query_cost.

Impact

[ ] New migrations
[ ] New/Updated API fields or mutations
[ ] Deprecated API fields or mutations
[ ] Removed API types, fields, or mutations
[ ] Documentation needs to be updated

Pull Request Checklist

[ ] Privileged queries and mutations are guarded by proper permission checks
[ ] Database queries are optimized and the number of queries is constant
[ ] Database migration files are up to date
[ ] The changes are tested
[ ] GraphQL schema and type definitions are up to date
[ ] Changes are mentioned in the changelog

Task linked: SALEOR-5060 Add Query Cost to to GraphQL span


Pylint doesn't detect capitalization changes to a file name

Environment data

VS Code version: 1.54.2
Extension version (available under the Extensions sidebar): v2021.2.636928669
OS and version: macOS Big Sur 11.2.2
Python version (& distribution if applicable, e.g. Anaconda): Python 3.8.7
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv and pyenv
Relevant/affected Python packages and their versions: pylint 2.7.2
Relevant/affected Python-related VS Code extensions and their versions: N/A
Value of the python.languageServer setting: Pylance

Expected behaviour
With the pylint checking module names to ensure snake_case naming style is being used, changing an uppercase python script name to a lower case should remove the pylint warning.
Actual behaviour
Pylint seems to not realize the name has changed cases from upper to lower. This continues to show the invalid-name warning, claiming the file doesn't conform to snake_case naming style. Clicking on the error will change the title of the tab to the uppercase while double clicking the file in the explorer will change the file back to lowercase.
Note that running pylint on the command line will not show this error, as the file name really did change. I suppose it could be some cacheing problem.
Steps to reproduce:

Create new folder.
Open folder in VSCode
Create new .pylintrc file in the folder with the content

[BASIC]

module-naming-style=snake_case

Create a new python file in the same folder called Test.py
Open the file and ensure pylint is running. The warning invalid-name for the Module name not following snake_case should appear (as well as a missing-module-docstring)
In VSCode, edit the file name to test.py
Click into the file and save it (Cmd/Ctrl + S)
The invalid-name warning will still be there. Click on the warning. The tab name will switch to the uppercase version. Double clicking the file to open it from the explorer will change the name of the file back to the lowercase version.

Logs

Output for Python in the Output panel. Note that this log shows the file hello.py rather than test.py as I've done the test twice.

User belongs to experiment group 'pythonaacf'
User belongs to experiment group 'pythonSendEntireLineToREPL'
User belongs to experiment group 'pythonNotDisplayLinterPrompt'
User belongs to experiment group 'CollectLSRequestTiming - control'
> conda --version
> conda info --json
> pyenv root
> python3.7 ~/.vscode/extensions/ms-python.python-2021.2.636928669/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python3.6 ~/.vscode/extensions/ms-python.python-2021.2.636928669/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python3 ~/.vscode/extensions/ms-python.python-2021.2.636928669/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python2 ~/.vscode/extensions/ms-python.python-2021.2.636928669/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.2.636928669/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> ~/.pyenv/versions/3.8.7/bin/python ~/.vscode/extensions/ms-python.python-2021.2.636928669/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
Error 2021-03-12 10:20:34: Failed to get interpreter information for '/usr/bin/python3' [Error: Command failed: "/usr/bin/python3" "/Users/christopherallis/.vscode/extensions/ms-python.python-2021.2.636928669/pythonFiles/pyvsc-run-isolated.py" "/Users/christopherallis/.vscode/extensions/ms-python.python-2021.2.636928669/pythonFiles/interpreterInfo.py"
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

	at ChildProcess.exithandler (child_process.js:312:12)
	at ChildProcess.emit (events.js:315:20)
	at maybeClose (internal/child_process.js:1021:16)
	at Socket.<anonymous> (internal/child_process.js:443:11)
	at Socket.emit (events.js:315:20)
	at Pipe.<anonymous> (net.js:674:12)] {
  killed: false,
  code: 1,
  signal: null,
  cmd: '"/usr/bin/python3" "/Users/christopherallis/.vscode/extensions/ms-python.python-2021.2.636928669/pythonFiles/pyvsc-run-isolated.py" "/Users/christopherallis/.vscode/extensions/ms-python.python-2021.2.636928669/pythonFiles/interpreterInfo.py"'
}
Error 2021-03-12 10:20:34: Failed to get interpreter information for '/usr/bin/python3' [Error: Command failed: "/usr/bin/python3" "/Users/christopherallis/.vscode/extensions/ms-python.python-2021.2.636928669/pythonFiles/pyvsc-run-isolated.py" "/Users/christopherallis/.vscode/extensions/ms-python.python-2021.2.636928669/pythonFiles/interpreterInfo.py"
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

	at ChildProcess.exithandler (child_process.js:312:12)
	at ChildProcess.emit (events.js:315:20)
	at maybeClose (internal/child_process.js:1021:16)
	at Socket.<anonymous> (internal/child_process.js:443:11)
	at Socket.emit (events.js:315:20)
	at Pipe.<anonymous> (net.js:674:12)] {
  killed: false,
  code: 1,
  signal: null,
  cmd: '"/usr/bin/python3" "/Users/christopherallis/.vscode/extensions/ms-python.python-2021.2.636928669/pythonFiles/pyvsc-run-isolated.py" "/Users/christopherallis/.vscode/extensions/ms-python.python-2021.2.636928669/pythonFiles/interpreterInfo.py"'
}
> pyenv root
> pyenv root
> pyenv root
Python interpreter path: ~/.pyenv/versions/3.8.7/bin/python
Starting Pylance language server.
> conda --version
> ~/.pyenv/versions/3.8.7/bin/python ~/.vscode/extensions/ms-python.python-2021.2.636928669/pythonFiles/pyvsc-run-isolated.py pylint --rcfile=/Users/christopherallis/dev/Testing/.pylintrc --msg-template='{line},{column},{category},{symbol}:{msg}' --reports=n --output-format=text ~/dev/Testing/Hello.py
cwd: ~/dev/Testing
> ~/.pyenv/versions/3.8.7/bin/python ~/.vscode/extensions/ms-python.python-2021.2.636928669/pythonFiles/pyvsc-run-isolated.py pylint --rcfile=/Users/christopherallis/dev/Testing/.pylintrc --msg-template='{line},{column},{category},{symbol}:{msg}' --reports=n --output-format=text ~/dev/Testing/Hello.py
cwd: ~/dev/Testing
##########Linting Output - pylint##########
************* Module Hello
1,0,convention,invalid-name:Module name "Hello" doesn't conform to snake_case naming style
1,0,convention,missing-module-docstring:Missing module docstring

----------------------------------------------------------------------
Your code has been rated at -10.00/10 (previous run: -10.00/10, +0.00)

Thanks for the bug report! We just wanted to quickly acknowledge we received it and we will triage this as soon as we can.

@christopherallis Can you try with this extension and see if it helps? https://marketplace.visualstudio.com/items?itemName=ms-python.pylint

Closing this issue since we have not heard back. Please try the pylint extension, we are migrating users to the https://marketplace.visualstudio.com/items?itemName=ms-python.pylint extension.


Implement CupertinoPicker

https://developer.apple.com/ios/human-interface-guidelines/ui-controls/pickers/

Gonna start with something easy first #8352

This is now at https://developer.apple.com/ios/human-interface-guidelines/controls/pickers/.

Will need to do #13710 at some point before


Set up continuous integration

Run linting checks and tests on PRs. This is to be done be making a GH Actions workflow.

We now use pre-commit.ci to run linting checks and @anand2312 has also written a GitHub workflow for running tests.


Update psr/log dependency

Для корректной установки на laravel 9.x

Codecov Report
Base: 100.00% // Head: 100.00% // No change to project coverage :thumbsup:

Coverage data is based on head (70a023d) compared to base (e6adaa1).
Patch has no changes to coverable lines.

Additional details and impacted files
@@             Coverage Diff             @@
##              master        #5   +/-   ##
===========================================
  Coverage     100.00%   100.00%
  Complexity        77        77
===========================================
  Files              4         4
  Lines            197       197
===========================================
  Hits             197       197

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

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

Fixed in v0.4.0


The alt field for references is not being used

Description
The schema definition has provisions for references. The intention (as per description in the schema definition) is that the alt property is the display name and the url property the actual link.
Currently the alt property does not appear to be used.
Expected Behaviour
If a alt property exists for a reference than this should be the displayed value in the html, otherwise the value for the html link itself will be displayed.

Investigated this and. it turns out that the source input (csv files) has an incorrect format.

Source document (xls) has been updated, required format documented in xls file.


Fixes to the russian translation

Changed some translations, fixed mistakes, made it more consistant with the vanilla translations

Thank you for this


Added the hasOwnProperty() check to the for ... in loop

Added a check for possibly inherited extension functions added to the Object prototype that breaks the library functionality.
for ... in should allows used alongside hasOwnProperty().
https://discourse.nodered.org/t/crashes-after-adding-an-external-module/14891/2
https://github.com/googleapis/google-api-nodejs-client/issues/2070

Sorry for not responding to this.   I ended up fixing this problem by using Object.entries.


Added ability to ignore high status codes (issue 859)...

When making client AJAX requests that are intended to fail, the default behavior (stopping the world and throwing an error on anything with a status code higher than 400) prevents testing of client-side error handling code.  This pull request adds the ability to turn off this behavior if needed.
See issue 859 for details.

3.0 will no longer stop with an error when XHR requests return a status code, this should indeed be handled by client-side error handling.

HI, @assaf.  For the time being I cannot use Zombie without this functionality, as I am explicitly testing handling of XHR errors in client-side code.  When is 3.0 due to be released?

The current version is available via npm as pre-release, you can also install directly form your Github fork.


python extract_scene.py example_scenes.py SquareToCircle -pl   cant srun

met a problem  at first step, I at first thought this may be the enviroment problem.
but I finally cant fix it .
and this might not be friendly to newer.
what I met as flow:

Traceback (most recent call last):
  File "extract_scene.py", line 289, in main
    handle_scene(SceneClass(**scene_kwargs), **config)
  File "D:\pycairo\py\manim\scene\scene.py", line 71, in __init__
    self.construct(*self.construct_args)
  File "D:\pycairo\py\manim\example_scenes.py", line 22, in construct
    self.play(ShowCreation(square))
  File "D:\***\py\manim\scene\scene.py", line 481, in play
    self.add_frames(self.get_frame())
  File "D:\pycairo\py\manim\scene\scene.py", line 553, in add_frames
    self.writing_process.stdin.write(frame.tostring())
BrokenPipeError: [Errno 32] Broken pipe

my enviroment is win10 anaconda --py37
lib I install is

ffmpeg
latex
sox
and I also run pip install -r requirements.txt

Something seems to be wrong with your version of ffmpeg. Maybe reinstalling will help? It might also be informative to run ffmpeg -y -f rawvideo -s 854x480 -pix_fmt rgba -r 15 -i - -an -loglevel error -vcodec libx264 -pix_fmt yuv420p <your media directory here>/animations/example_scenes/480p15/SquareToCircleTemp.mp4 from the command line, since this is exactly the command manim is attempting to write to when it gets the error.

oh，thank for the hint, I found my mistake. I pip install ffmpeg
that is so wrong .I am sorry and thank you .
I download the zip in ffmpeg and latex and sox,
so far. it run well !

C:\Users\00lim\Downloads\manim-master\manim-master>python extract_scene.py -p example_scenes.py SquareToCircle
Traceback (most recent call last):
File "extract_scene.py", line 299, in
main()
File "extract_scene.py", line 259, in main
module = get_module(config["file"])
File "extract_scene.py", line 254, in get_module
return importlib.import_module(module_name)
File "C:\Users\00lim\Downloads\python3.7\lib\importlib_init_.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in call_with_frames_removed
File "C:\Users\00lim\Downloads\manim-master\manim-master\example_scenes.py", line 3, in
from big_ol_pile_of_manim_imports import *
File "C:\Users\00lim\Downloads\manim-master\manim-master\big_ol_pile_of_manim_imports.py", line 80, in
from scene.scene_from_video import *
File "C:\Users\00lim\Downloads\manim-master\manim-master\scene\scene_from_video.py", line 4, in
import cv2
File "C:\Users\00lim\Downloads\python3.7\lib\site-packages\cv2_init.py", line 3, in
from .cv2 import *
ImportError: DLL load failed: 找不到指定的模块。
C:\Users\00lim\Downloads\manim-master\manim-master>

thank you

My envirnoment is py37 on windows 7, the version of ffmpeg is 1.18.0, and I run pip install -r requirements.txt, all is ok. But  error occurs when running the example!
C:\Program Files\Git\manim>python extract_scene.py -w example_scenes.py Square
ToCircle
Traceback (most recent call last):
File "extract_scene.py", line 15, in
from scene.scene import Scene
File "C:\Program Files\Git\manim\scene\scene.py", line 22, in
from camera.camera import Camera
File "C:\Program Files\Git\manim\camera\camera.py", line 9, in
from scipy.spatial.distance import pdist
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\lib\sit
e-packages\scipy\spatial_init_.py", line 94, in
from .kdtree import *
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\lib\sit
e-packages\scipy\spatial\kdtree.py", line 8, in
import scipy.sparse
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\lib\sit
e-packages\scipy\sparse_init_.py", line 229, in
from .csr import *
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\lib\sit
e-packages\scipy\sparse\csr.py", line 15, in
from ._sparsetools import csr_tocsc, csr_tobsr, csr_count_blocks,
ImportError: DLL load failed: %1 不是有效的 Win32 应用程序。
C:\Program Files\Git\manim>

I had the same problem.
I added a debug print in scene_file_write.py:
diff --git a/manimlib/scene/scene_file_writer.py b/manimlib/scene/scene_file_writer.py
index a6aaa72..46b4b12 100644
--- a/manimlib/scene/scene_file_writer.py
+++ b/manimlib/scene/scene_file_writer.py
@@ -241,6 +241,7 @@ class SceneFileWriter(object):
                 command += [STREAMING_PROTOCOL + '://' + STREAMING_IP + ':' + STREAMING_PORT]
         else:
             command += [temp_file_path]
+        print('### DEBUG', command)
         self.writing_process = subprocess.Popen(command, stdin=subprocess.PIPE)

     def close_movie_pipe(self):

Then run the tutorial: (and got error 'Unknown encoder 'libx264'')
 $ python3 -m manim example_scenes.py SquareToCircle -pl
Media will be stored in media/. You can change this behavior by writing a different directory to media_dir.txt.
/anaconda3/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  return f(*args, **kwds)
### DEBUG ['ffmpeg', '-y', '-f', 'rawvideo', '-s', '854x480', '-pix_fmt', 'rgba', '-r', '15', '-i', '-', '-c:v', 'h264_nvenc', '-an', '-loglevel', 'error', '-vcodec', 'libx264', '-pix_fmt', 'yuv420p', '/Users/orange-22/Documents/1-技术积累/manim/media/videos/example_scenes/480p15/partial_movie_files/SquareToCircle/00000_temp.mp4']
Animation 0: ShowCreationSquare:   0%|                                                                                | 0/15 [00:00<?, ?it/s]Unknown encoder 'libx264'

Traceback (most recent call last):
  File "/Users/orange-22/Documents/1-技术积累/manim/manimlib/extract_scene.py", line 153, in main
    scene = SceneClass(**scene_kwargs)
  File "/Users/orange-22/Documents/1-技术积累/manim/manimlib/scene/scene.py", line 52, in __init__
    self.construct()
  File "example_scenes.py", line 81, in construct
    self.play(ShowCreation(square))
  File "/Users/orange-22/Documents/1-技术积累/manim/manimlib/scene/scene.py", line 404, in wrapper
    func(self, *args, **kwargs)
  File "/Users/orange-22/Documents/1-技术积累/manim/manimlib/scene/scene.py", line 461, in play
    self.progress_through_animations(animations)
  File "/Users/orange-22/Documents/1-技术积累/manim/manimlib/scene/scene.py", line 437, in progress_through_animations
    self.add_frames(self.get_frame())
  File "/Users/orange-22/Documents/1-技术积累/manim/manimlib/scene/scene.py", line 538, in add_frames
    self.file_writer.write_frame(frame)
  File "/Users/orange-22/Documents/1-技术积累/manim/manimlib/scene/scene_file_writer.py", line 171, in write_frame
    self.writing_process.stdin.write(frame.tostring())
BrokenPipeError: [Errno 32] Broken pipe

I tried to run the raw command wit log level trace and got this:
 $ ffmpeg -y -f rawvideo -s 854x480 -pix_fmt rgba -r 15 -c:v h264_nvenc -an -loglevel trace -vcodec libx264 -pix_fmt yuv420p -i - media/videos/example_scenes/480p15/partial_movie_files/SquareToCircle/00000_temp.mp4
ffmpeg version N-81494-ga0a5707 Copyright (c) 2000-2016 the FFmpeg developers
  built with Apple LLVM version 7.0.2 (clang-700.1.81)
  configuration:
  libavutil      55. 29.100 / 55. 29.100
  libavcodec     57. 54.101 / 57. 54.101
  libavformat    57. 48.101 / 57. 48.101
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 58.100 /  6. 58.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
Splitting the commandline.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'rawvideo'.
Reading option '-s' ... matched as option 's' (set frame size (WxH or abbreviation)) with argument '854x480'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'rgba'.
Reading option '-r' ... matched as option 'r' (set frame rate (Hz value, fraction or abbreviation)) with argument '15'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'h264_nvenc'.
Reading option '-an' ... matched as option 'an' (disable audio) with argument '1'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'trace'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'libx264'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'yuv420p'.
Reading option '-i' ... matched as input file with argument '-'.
Reading option 'media/videos/example_scenes/480p15/partial_movie_files/SquareToCircle/00000_temp.mp4' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option y (overwrite output files) with argument 1.
Applying option loglevel (set logging level) with argument trace.
Successfully parsed a group of options.
Parsing a group of options: input file -.
Applying option f (force format) with argument rawvideo.
Applying option s (set frame size (WxH or abbreviation)) with argument 854x480.
Applying option pix_fmt (set pixel format) with argument rgba.
Applying option r (set frame rate (Hz value, fraction or abbreviation)) with argument 15.
Applying option c:v (codec name) with argument h264_nvenc.
Applying option an (disable audio) with argument 1.
Applying option vcodec (force video codec ('copy' to copy stream)) with argument libx264.
Applying option pix_fmt (set pixel format) with argument yuv420p.
Successfully parsed a group of options.
Opening an input file: -.
Unknown decoder 'libx264'

My ffmpeg are installed from Homebrew:
 $ brew info ffmpeg
ffmpeg: stable 4.1.1 (bottled), HEAD
Play, record, convert, and stream audio and video
https://ffmpeg.org/
/usr/local/Cellar/ffmpeg/4.1.1 (282 files, 58.6MB)
  Poured from bottle on 2019-03-20 at 21:56:47
From: https://mirrors.ustc.edu.cn/homebrew-core.git/Formula/ffmpeg.rb
==> Dependencies
Build: nasm ✘, pkg-config ✔, texi2html ✘
Required: aom ✔, fontconfig ✔, freetype ✔, frei0r ✔, gnutls ✔, lame ✔, libass ✔, libbluray ✔, libsoxr ✔, libvorbis ✔, libvpx ✔, opencore-amr ✔, openjpeg ✔, opus ✔, rtmpdump ✔, rubberband ✔, sdl2 ✔, snappy ✔, speex ✔, tesseract ✔, theora ✔, x264 ✔, x265 ✔, xvid ✔, xz ✔
==> Options
--HEAD
	Install HEAD version

I'm not familiar with ffmpeg's arguments and compile options, and could not spot any problems.
Is there someone that could help?

 $ brew info ffmpeg
ffmpeg: stable 4.1.1 (bottled), HEAD
Play, record, convert, and stream audio and video
https://ffmpeg.org/
/usr/local/Cellar/ffmpeg/4.1.1 (282 files, 58.6MB)
  Poured from bottle on 2019-03-20 at 21:56:47
From: https://mirrors.ustc.edu.cn/homebrew-core.git/Formula/ffmpeg.rb
==> Dependencies
Build: nasm ✘, pkg-config ✔, texi2html ✘
Required: aom ✔, fontconfig ✔, freetype ✔, frei0r ✔, gnutls ✔, lame ✔, libass ✔, libbluray ✔, libsoxr ✔, libvorbis ✔, libvpx ✔, opencore-amr ✔, openjpeg ✔, opus ✔, rtmpdump ✔, rubberband ✔, sdl2 ✔, snappy ✔, speex ✔, tesseract ✔, theora ✔, x264 ✔, x265 ✔, xvid ✔, xz ✔
==> Options
--HEAD
	Install HEAD version

I'm not familiar with ffmpeg's arguments and compile options, and could not spot any problems.
Is there someone that could help?

Update:
I abandoned homebrew's FFmpeg and used the MacOS prebuilt binary, which solved the problem.
So I'm guessing the homebrew version of FFmpeg lacks some compile option for codec libx264. Wish there's a way to configure it and rebuild via homebrew. But anyway now I'm happy with the prebuilt one.
Thanks guys.


Use fedcloud secrets

Summary
Change the approach for managing records, avoiding sending the long lived ones in cloud-init. At the same time move the ansible role to this repository instead of relying on a external role (EGI-Federation/ansible-role-fedcloud-ops) that makes no sense as an independent thing.

Related issue : 341

Lots of testing happened here: #344


HResult is missing a method to get an exception from it

We already have ThrowOnFailure calling Marshal.ThrowExceptionForHR but don't have any equivalent to Marshal.GetExceptionForHR.
Foo Function()
{
    Foo result;
    HResult hr = SomePInvoke(out result);
    if (hr.Succeeded)
    {
        return result;
    }
    else
    {
        if (hr == /*Some value*/)
        {
            throw MyError();
        }
        throw hr.GetException();
    }
}
```

It's often possible to do without but it's sometimes preferable to have explicit `throw` for control-flow and it ease porting code using the `Mashal` class

What's wrong with simply calling Marshal.GetExceptionForHR(int) passing in the HResult?
Will fixing this issue unblock someone, or simply make it a bit more convenient by offering it on the class itself?

What's wrong with simply calling Marshal.GetExceptionForHR(int) passing in the HResult?

Nothing it's just harder to discover (always the problem with implicit casts)

Will fixing this issue unblock someone, or simply make it a bit more convenient by offering it on the class itself?
Just for convenience :)


Normalize the labels of diagnosis terms

ID
Label

EUPATH:0000321
diagnosis at discharge

EUPATH:0000638
diagnosis at hospitalization

EUPATH:0000089
diagnosis of asymptomatic microscopic parasitemia

EUPATH:0000484
diagnosis of asymptomatic parasitemia

EUPATH:0000317
diagnosis of disease other than malaria

EUPATH:0000485
diagnosis of submicroscopic parasitemia

EUPATH:0000090
diagnosis of symptomatic malaria

EUPATH:0010393
diagnosis previous to two month follow-up

EUPATH:0000036
malaria-related diagnosis

EUPATH:0021032
Plasmodium falciparum diagnosis within past year

EUPATH:0021034
Plasmodium malariae diagnosis within past year

EUPATH:0021033
Plasmodium vivax diagnosis within past year

EUPATH:0000042
diagnoses of complicated malaria with danger signs

EUPATH:0000043
diagnosis of severe malaria

EUPATH:0000088
diagnosis of uncomplicated malaria in the 1st trimester of   pregnancy

For 'Plasmodium [species] diagnosis within past year' terms, these should be moved under clinical history since these are remembering about the diagnosis not the output of a diagnosis process. Also should consider whether to keep this specific to 'participant under investigation' or more general. Won't decide here but will look at more generally.

I think the labels should be 'memory of Plasmodium [species] diagnosis within past year' or similar. I could also change the axiom from
mentions some [species]
to
mentions some (diagnosis and mentions some [species])

For the other diagnosis terms that haven't been deprecated:

ID
Label

EUPATH:0000036
diagnosis related to malaria

EUPATH:0021032
diagnosis of Plasmodium falciparum diagnosis

EUPATH:0021034
diagnosis of Plasmodium malariae within past year

EUPATH:0021033
diagnosis of Plasmodium vivax within past year

EUPATH:0000043
diagnosis of severe malaria

I think 'malaria-related diagnosis' (which is also currently the ICEMR display label) should be 'diagnosis of malaria or parasitemia', based on its definition. Making this change and the changes proposed in the last comment would bring all diagnosis terms under labels beginning with "diagnosis".

start with 'diagnosis' or 'diagnosis of' + specific_disease/diagnosis + diagnosis time ?
https://github.com/VEuPathDB-ontology/VEuPathDB-ontology/wiki/Naming-conventions


fix_function_room.member_#173

#173
#104

change parseNickMap, add remark value
add contact.ready() to get full contact, and get contact's remark

Sorry， I found I fix what I need, but bring in other bug, so please wait until I fix all

this commit can help to find member in room by nick/display/remark

add following type:

type MemberQueryFilter = {
  nick?: string
  remark?: string
  display?: string
}

add following Map:

nickMap,
remarkMap,
displayMap,

add following Functions：

parseNickMap()
parseRemarkMap()
parseDisplayMap()

change the parameter in function room.member(name: string) from public member(quaryArg: MemberQueryFilter)
we can find member by nick, display, remark, code as follows:

room.member({nick: '李佳芮'})
room.member({remark: '哈哈哈'})
room.member({display: '土'})

@zixia
I have tested it, it works well with the following function:
async function RoomTest() {
  let room = await Room.find({topic: 'test'})
  await room.ready()
  console.log('member1: ===========')
  console.log(room.member({nick: '李佳芮'}))
  console.log('member2: ')
  console.log(room.member({remark: '哈哈哈'}))
  console.log('member3: ')
  console.log(room.member({display: '土'}))
}

I didn't modify getContact and related functions, but test shows:

test » room » Room smoking test Error: Cannot read property 'getContact' of undefined

Could you help me to fix? Thanks.

@zixia  done for what you request

@zixia  done as what you said.
function room.member() use the order : remark> display>nick

@zixia  Thanks for you advice, and I have done what you said.
I'm sorry for not passing  CI tests, I didn't use function getContact and I found it is used in function room.ready() in the following function:
    if (!contactGetter) {
      contactGetter = Config.puppetInstance()
                            .getContact.bind(Config.puppetInstance())
    }

Could you help me? Thanks!

the following bug is caused by room.nick(contact: Contact), you have defined its return value is displayName before, but after I changed the code, its return value is nickName.
 1. test » room » Room smoking test
  AssertionError: should get nick1 from DisplayName
    ""              "田美坤"
        test/room.spec.ts:104:5

And I changed as you designed before,  function room.nick() return displayName, although I think it looks a bit weird。。。。

it still has an error:
✖ test › room › Room smoking test should get nick2 from NickName because there is no DisplayName,
  t.is(nick2, EXPECTED.memberNick2, 'should get nick2 from NickName because there is no DisplayName, ')
       |               |
       ""              "李竹～英诺天使（此号已满）"

Actually, I have tested, using function room.nick() if one doesn't have a displayName in the room, it will return nickName correctly. But it failed this test.
I thought maybe I changed some structure of the member obj, so the test data maybe outdated...
@zixia  need your help, thanks.

After you fixed this, I believe this PR could be ready for merging.

Finally, I found the reason for not passing the test....
I added contact.ready() in new PR, because the contact data in Class Contact is not the same as the the member in room, so contact.ready() cannot get the full contact data, then it cannot get the correct nickMap and remarkMap...
Maybe you should mock some contact data corresponding the room member,  then it can get the full contact data, and get the nickMap, then pass the test...

Great. Could you modify the mock data in the unit test to add support for your new code?

Done as what you said, but I'm a little bit confused by the following code:
  const mockContactGetter = function (id) {
    return new Promise((resolve, reject) => {
      // if (id !== EXPECTED.id && !(id in CONTACT_LIST)) return resolve({})
      if (id === EXPECTED.id) {
        setTimeout(() => {
          return resolve(RAW_OBJ)
        }, 10)
      }
      if (id in CONTACT_LIST) {
        setTimeout(() => {
          return resolve(CONTACT_LIST[id])
        }, 10)
      }
      return resolve({})
    })
  }

it gets the following error:
✖ Room smoking test Error: Cannot read property 'Symbol(Symbol.iterator)' of undefined

But when I change the code to the following:
  const mockContactGetter = function (id) {
    return new Promise((resolve, reject) => {
      if (id !== EXPECTED.id && !(id in CONTACT_LIST)) return resolve({})
      if (id === EXPECTED.id) {
        setTimeout(() => {
          return resolve(RAW_OBJ)
        }, 10)
      }
      if (id in CONTACT_LIST) {
        setTimeout(() => {
          return resolve(CONTACT_LIST[id])
        }, 10)
      }
    })
  }

all works well.
What I change is just adjust  return resolve({}) order.
I googled the error and find this: this

Initialize items to an empty array.

But I still fell confused..

Great work!
It is not perfect, but I think it mergeable now.
BTW:

You will only feel confusing when you know you do not know.
You will never feel confusing when you do not know you do not know.


Examples of user operation uopool memory/database

Have examples that show how to use memory and database mempool implementations.

I have created a version that's running on in memory memppol
The problem is how to present this as an example.

We could some simple examples, like this (https://github.com/paradigmxyz/reth/blob/main/examples/network-txpool.rs#L26), to just showcase how you can define database and memory uopool - basically two short files without other bundler components.


fix(deps): update module github.com/charmbracelet/lipgloss to v1

This PR contains the following updates:

Package
Type
Update
Change

github.com/charmbracelet/lipgloss
require
major
v0.13.0 -> v1.0.0

Release Notes

charmbracelet/lipgloss (github.com/charmbracelet/lipgloss)
v1.0.0
Compare Source
At last: v1.0.0

This is an honorary release indicating that Lip Gloss is now stable. Thank you, open source community, for all your love, support, contributions, and great style.
Stay tuned for a v2 alpha!
v0.13.1
Compare Source
Table improvements, on stream
@bashbunni went to town in this release and fixed a bunch of bugs, mostly around table. Best of all, she did most of it on stream.
Changelog
Table

fix(table): use table height by @Broderick-Westrope in https://github.com/charmbracelet/lipgloss/pull/358
fix(table): unset data rows without causing nil pointer err by @bashbunni in https://github.com/charmbracelet/lipgloss/pull/372
fix(table): shared indices for first row of data and headers (StyleFunc bug) by @bashbunni in https://github.com/charmbracelet/lipgloss/pull/377
fix(table): do not shrink table with offset by @bashbunni in https://github.com/charmbracelet/lipgloss/pull/373
fix(table): include margins for cell width by @bashbunni in https://github.com/charmbracelet/lipgloss/pull/401

Other Stuff

fix(render): strip carriage returns from strings by @bashbunni in https://github.com/charmbracelet/lipgloss/pull/386

Bonus

docs(example): rainbow string by @caarlos0 in https://github.com/charmbracelet/lipgloss/pull/96

New Contributors

@Broderick-Westrope made their first contribution in https://github.com/charmbracelet/lipgloss/pull/358
@swrenn made their first contribution in https://github.com/charmbracelet/lipgloss/pull/364

Full Changelog: https://github.com/charmbracelet/lipgloss/compare/v0.13.0...v0.13.1

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

⚠ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

any of the package files in this branch needs updating, or
the branch becomes conflicted, or
you click the rebase/retry checkbox if found above, or
you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:
File name: services/backend/go.sum
Command failed: go get -d -t ./...
go: -d flag is deprecated. -d=true is a no-op
go: downloading github.com/charmbracelet/lipgloss v1.0.0
go: downloading github.com/charmbracelet/x/ansi v0.4.2
go: github.com/uvulpos/golang-sveltekit-template/src imports
	github.com/uvulpos/golang-sveltekit-template/swagger-docs: cannot find module providing package github.com/uvulpos/golang-sveltekit-template/swagger-docs


telescope.media_files: init

Just sharing my initial work on telescope media_files extension.
The only problem with this is that the plugin does not exist in nixpkgs yes, so we can either wait for that or depend on https://github.com/m15a/nixpkgs-vim-extra-plugins
But I am marking it as draft until it is added in nixpkgs or we decide to depend on vim-extra-plugins.
A word of appreciation:
A nice thing about nixvim is that we can directly add dependencies such as überzug which makes it much easier for the user to configure and not have to manually add it to their list of packages.
Issue in nixpkgs:
NixOS/nixpkgs#182734

Hey, this plugin is now in nixpkgs, so feel free to get back on this!


Sending message to specific channel or room

How can i send a message to a specific room or channel
In the docs, you only have this
    await websocket.send(greeting)
I want to send to specific channel and subscribe to that channel on the client side.

See #481.

I'm going to reopen this as a documentation issue. This is a reasonable question; we should address it in the docs.

Closing in favor of  #621.