Exclude dubs in crunchyroll download

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.11.18. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

[x] I've verified and I assure that I'm running youtube-dl 2018.11.18

Before submitting an issue make sure you have:

[x] At least skimmed through the README, most notably the FAQ and BUGS sections
[x] Searched the bugtracker for similar issues including closed ones
[x] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

[ ] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[x] Question
[ ] Other

Description of your issue, suggested solution and other information
Is there a simple way to exclude dubs (or choose a specific one) from a crunchyroll download?
Durara, for example, has both Japanese and English available, but there is only a single page - so it should be downloading everything in both languages if I point youtube-dl to that url.
Dragon Maid would be even worse without a filter, since it has a total of 5 languages.
I could of course choose each episode I want to download individually (and will if I have to), but I'm looking for something I can add to the command line to do it automatically.

Ah, thanks.

hls-audio-frFR-hardsub-frFR-401   mp4        428x240    [frFR]  401k , avc1.42c015, 23.974fps, mp4a.40.2
hls-audio-frFR-hardsub-frFR-547   mp4        640x360    [frFR]  547k , avc1.4d401e, 23.974fps, mp4a.40.2
hls-audio-frFR-hardsub-frFR-1008  mp4        848x480    [frFR] 1008k , avc1.4d401f, 23.974fps, mp4a.40.2
hls-audio-frFR-hardsub-frFR-2525  mp4        1280x720   [frFR] 2525k , avc1.640028, 23.974fps, mp4a.40.2
hls-audio-frFR-hardsub-frFR-5778  mp4        1920x1080  [frFR] 5778k , avc1.640028, 23.974fps, mp4a.40.2
hls-audio-frFR-401                mp4        428x240    [frFR]  401k , avc1.42c015, 23.974fps, mp4a.40.2
hls-audio-frFR-547                mp4        640x360    [frFR]  547k , avc1.4d401e, 23.974fps, mp4a.40.2
hls-audio-frFR-1009               mp4        848x480    [frFR] 1009k , avc1.4d401f, 23.974fps, mp4a.40.2
hls-audio-frFR-2526               mp4        1280x720   [frFR] 2526k , avc1.640028, 23.974fps, mp4a.40.2
hls-audio-frFR-5781               mp4        1920x1080  [frFR] 5781k , avc1.640028, 23.974fps, mp4a.40.2 (best)

and further down...

...
hls-audio-jaJP-6422-1               mp4        1920x1080  [jaJP] 6422k , avc1.640028, 23.974fps, mp4a.40.2
hls-audio-jaJP-6422-2               mp4        1920x1080  [jaJP] 6422k , avc1.640028, 23.974fps, mp4a.40.2 (best)

So a filter for [format_id*=jaJP] seems to work. Problem is it still goes through every single file and errors if specified format is not available. This means a need for -i and much extra wait time while it goes through each video. It keeps it entirely automated past giving the URL, at least.

A possible solution/workaround might be to use the --playlist-start and --playlist-end parameters.
Since what videos will be shown is depending on your link (country code used) and it seems to always start at the bottom you could just do a little math and figure out what to skip.
Also given the country code in playlists is working (should be fixed soon) you could filter a bit by that.


Create a release workflow on github

This workflow should :

release to pypi
release to conda
deploy documentation

documentation is automatically deployed by readthedocs

Solved :

Continuous version are deployed on merge
stable version are deployed on tag push.


Create a linter rule to disallow disabling certain linter rules inline

A similar ESLint rule: https://mysticatea.github.io/eslint-plugin-eslint-comments/rules/no-restricted-disable.html.

FYI @puicchan Requested by @bmoore-msft for higher priority

I think both are valuable -- it's certainly intuitive to have a "flag" with the rule itself, but also like the idea of a global setting.  Both?

Anthony's suggestion has a true/false for both, I propose we start there. We could always allow the global true/false to be a string pattern or something else later, or extend it some other way.
So, official proposal:
{
    "analyzers": {
        "defaults": {
            "level": "error",
            **"allow-inline-disable": false/true** (defaults to true)
        },
        "core": {
            "rules": {
                "rule-with-warning-override": {
                    "level": "warning",
                    **"allow-inline-disable": false/true** (defaults to true)
                }
            }
        }
    }
}

Question: Can you override this behavior in a bicepconfig.json in a subfolder?
The default behavior of our current configuration code would allow overriding it in subfolders.  I'd have to write additional code to disable that behavior (and nothing else behaves that way).
@bmoore-msft Is it okay to allow overriding in subfolders, or is that a major problem?

re: subfolders - if I wanted to set a config at the root and someone sneaks in a subfolder, how easy would it be to discover that (assuming I'm not familiar with the capability)?  Aside from looking like things are broken w.r.t. config (which we could output to clarify), I don't see any issue with it..
If allow-inline-disable is false I would expect that we would ignore #disable-next-line and throw whatever level is defined for the rule.

It has been 12 months since this was added to the Committed Backlog - which I see is a rough estimate for 6-12 months.
Just wondering if this is still something that is likely to be worked on or if it has been replaced by other priorities. Thanks!

This looks like a stale issue. Can you confirm that this directive works as expected?
#disable-next-line no-unused-params
param foo string

Going to close, but feel free to re-open if I've misunderstood.

The intention of this is to disallow using the #disable-next-line directive for certain rules.  E.g. it could be used in the quickstarts repo by disallowing using #disable-next-line pragmas for specific or al rules.  That keeps the authors honest and allows the repo to enforce authors actually fixing the issues rather than disabling them willy-nilly.  By having this in the bicepconfig.json, if the user tries to change that setting, it's easier for a code reviewer to spot or enforce.
Thus, we don't currently have this.  On the other hand, Brian is the only one I know that asked for it, so I'd say priority is low until we hear other feedback.


Enable static type checking with pytype

This PR adds pytype as a tox environment.
Type checking is only enabled for Python 3.6, due to limitations with the type information available for the libraries in 2.7.

@theacodes Do you have time to take a look at this?


Smooth Scrolling

Is your feature request related to a problem? Please describe.
Nope.
Describe the solution you'd like
I think it would be a nice polish to the fluent design system if the app had smooth scrolling, just like Microsoft Word has.
Describe alternatives you've considered
None.
Additional context
Version <IP_ADDRESS>
Video: https://user-images.githubusercontent.com/76794507/105916687-51e20c00-5fff-11eb-87e3-84f22481ebd2.mp4

@Tech-How Thank you for opening this feature request, I would like to point out that the grid view layouts already have smooth scrolling. The details layout doesn't have smooth scrolling because of some limitations with the DataGrid control used in Files, the good news is that WinUI is going to be building a new DataGrid control. I am linking the proposal here so you can add your request for smooth scrolling, and hopefully increase the priority for Microsoft. https://github.com/microsoft/microsoft-ui-xaml/issues/1500

@Tech-How Thank you for opening this feature request, I would like to point out that the grid view layouts already have smooth scrolling. The details layout doesn't have smooth scrolling because of some limitations with the DataGrid control used in Files, the good news is that WinUI is going to be building a new DataGrid control. I am linking the proposal here so you can add your request for smooth scrolling, and hopefully increase the priority for Microsoft. https://github.com/microsoft/microsoft-ui-xaml/issues/1500


VIH-11200 add posh-acme module version param

JIRA link (if applicable)
https://tools.hmcts.net/jira/browse/VIH-11200
Change description
Enable pinning version of Posh-ACME PowerShell module
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[x] No

Code tested:


Update KafkaLog4jAppender.java adding SaslMechanism as an option

to be able to use kafka with Sasl/Plain  we need to ba able to set saslMechanism from kafka log4j options

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/5853/
Test FAILed (JDK 8 and Scala 2.12).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/5868/
Test FAILed (JDK 7 and Scala 2.11).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/5869/
Test PASSed (JDK 7 and Scala 2.11).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/5854/
Test PASSed (JDK 8 and Scala 2.12).

Considering the age of this PR and that KIP-719 to deprecate the log4j appender has been voted, I'll close this PR.


Move exercism student tools to repo

… example while we sort things out
fixes #17

I'm going to merge this onto master to try and get us a proper baseline to run some simple tests from


chore(master): release 1.1.19

:robot: I have created a release beep boop
1.1.19 (2023-04-22)
Miscellaneous

deps: update dependency phpunit/phpunit to v10.1.2 (c53424e)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/wayofdev/php-cs-fixer-config/releases/tag/v1.1.19 :sunflower:


Some pyparsing refinements: add handling of a op b op c in BinOp ex…

…pressions (by rendering as BinOp(BinOp(a, op, b), op, c); use Keyword instead of Literal to parse "True" and "False" constants; wrap 'and' and 'or' Keyword instead of one_of, and ensure "is" and "in" are only recognized if used as keywords; address backslash warning in regex; add TODO note that '/' operator is not yet fully implemented

@microsoft-github-policy-service agree

Thank you @ptmcg! Any feedback/help on the parsing is much appreciated!

Saw that I had erroneously removed a "one_of" in my previous commit, and made another minor change in the infix_notation operators list (I think as_keyword is not helpful for symbol operators like "<", etc. since it is not illegal for them to be immediately followed by an identifier).

I think that subsequent changes have rendered this obsolete?


Getting IndexOutOfBoundsException even on FAT32 USB while getting device Partitions.

Problem
Getting IndexOutOfBoundsException even on FAT32 USB.
Is there any specific way to format USBs to FAT32 to be able to get partitions access?
The USB works well with other apps and devices as we would expect.
Expected behavior
This HP USB is formatted various times with FAT32 and should be able to access partitions as working on many USBs.
Actual behavior
W/Partition: Unsupported fs on partition
W/System.err: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

Stacktrace of Excpetion
USB Device Detected

2021-11-08 19:20:16.195 30015-30015 I/UsbMassStorageDevice: found usb device: /dev/bus/usb/001/002=UsbDevice[mName=/dev/bus/usb/001/002,mVendorId=1008,mProductId=32064,mClass=0,mSubclass=0,mProtocol=0,mManufacturerName=HP,mProductName=v236w,mVersion=1.00,mSerialNumberReader=android.hardware.usb.IUsbSerialReader$Stub$Proxy@6ce7e46, mHasAudioPlayback=false, mHasAudioCapture=false, mHasMidi=false, mHasVideoCapture=false, mHasVideoPlayback=false, mConfigurations=[
    UsbConfiguration[mId=1,mName=null,mAttributes=128,mMaxPower=100,mInterfaces=[
    UsbInterface[mId=0,mAlternateSetting=0,mName=null,mClass=8,mSubclass=6,mProtocol=80,mEndpoints=[
    UsbEndpoint[mAddress=129,mAttributes=2,mMaxPacketSize=512,mInterval=0]
    UsbEndpoint[mAddress=2,mAttributes=2,mMaxPacketSize=512,mInterval=0]]]]
2021-11-08 19:20:16.195 30015-30015 I/UsbMassStorageDevice: Found usb interface: UsbInterface[mId=0,mAlternateSetting=0,mName=null,mClass=8,mSubclass=6,mProtocol=80,mEndpoints=[
    UsbEndpoint[mAddress=129,mAttributes=2,mMaxPacketSize=512,mInterval=0]
    UsbEndpoint[mAddress=2,mAttributes=2,mMaxPacketSize=512,mInterval=0]]

Exception Event
2021-11-08 19:20:15.517 30015-30015/ I/UsbMassStorageDevice: Found usb endpoint: UsbEndpoint[mAddress=129,mAttributes=2,mMaxPacketSize=512,mInterval=0]
2021-11-08 19:20:15.517 30015-30015/ I/UsbMassStorageDevice: Found usb endpoint: UsbEndpoint[mAddress=2,mAttributes=2,mMaxPacketSize=512,mInterval=0]

2021-11-08 19:20:15.523 30015-30015 I/UsbMassStorageDevice: MAX LUN 0
2021-11-08 19:20:15.524 30015-30015 D/ScsiBlockDevice: inquiry response: ScsiInquiryResponse [peripheralQualifier=0, peripheralDeviceType=0, removableMedia=false, spcVersion=6, responseDataFormat=2]
2021-11-08 19:20:15.528 30015-30015/ I/ScsiBlockDevice: Block size: 512
2021-11-08 19:20:15.528 30015-30015/ I/ScsiBlockDevice: Last block address: 30285823
2021-11-08 19:20:15.530 30015-30015/ D/MasterBootRecord: Unknown partition type-18
2021-11-08 19:20:15.531 30015-30015/ W/Partition: Unsupported fs on partition

2021-11-08 19:20:15.553 30015-30015/ W/System.err: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
2021-11-08 19:20:15.553 30015-30015/ W/System.err:     at java.util.ArrayList.get(ArrayList.java:437)

Code where the problem occurs
 // Only uses the first partition on the device
FileSystem currentFs = device.getPartitions().get(0).getFileSystem();

Getting the same exception on both versions of libaums library.
implementation 'com.github.mjdev:libaums:0.7.4'

implementation 'me.jahnen:libaums:0.8.0'

I had the same issue but my problem was a 256GB SD card exFAT instead of FAT32. Just formatted it to FAT32 and problem was gone.

Are you sure that this is using MBR and not GPT?

Are you sure that this is using MBR and not GPT?
This might be the issue I faced.
The same USB was used to create bootable for Windows a few days back but even after the format to FAT32, it didn't work.
As you rightly pointed I think the issue may be about MBR and GPT.
I didn't know the difference between the two.
It would be better if we can write the difference between MBR and GPT in the documentation somewhere for avoiding confusion for future lib users.
Thanks

I faced the same issue too. I changed the usb GPT to MBR then the problem resolved. I guess it would be better if you find a solution for GPT types or emphasize it in documentation.
Thanks.

GPT is now supported!


Newer version required Swift 5

installing the pod from the repo, first build always ask few changes to newer version
Files
PDFPageView
Line 90 & 107 to
contentView.sendSubviewToBack(backgroundImageView)
decelerationRate = UIScrollView.DecelerationRate.fast
Similarly
PDFViewController
Line 119
  public var scrollDirection: UICollectionView.ScrollDirection = .horizontal {
Please review and update the following line of code for newer versions of swift lang,

FROM:
90 contentView.sendSubview(toBack: backgroundImageView)
TO:
90 contentView.sendSubviewToBack(backgroundImageView)
Error: 'sendSubview(toBack:)' has been renamed to 'sendSubviewToBack(_:)'
FROM:
107.    decelerationRate = UIScrollViewDecelerationRateFast
TO:
107.      decelerationRate = UIScrollView.DecelerationRate.fast
Error : 'UIScrollViewDecelerationRateFast' has been renamed to 'UIScrollView.DecelerationRate.fast'
FROM:
119.         public var scrollDirection: UICollectionViewScrollDirection = .horizontal {
TO:
 119.          public var scrollDirection: UICollectionView.ScrollDirection = .horizontal {
Error:   'UICollectionViewScrollDirection' has been renamed to 'UICollectionView.ScrollDirection'

bitrise is not building thew build

yes please


removed namespace leakage and other minor changes

Mainly making namespace usage more consistent and using structured bindings for readability

Looks good, thanks a lot!


Scarcity: Ammo spawns

Initial work on modifying level spawns at start of level. Focusing on ammo replacement via WorldThingSpawned eventhandler.
Problem: Last time I tried this, ammo in the player's inventory and ammo dropped from monsters was also affected. Need to figure out how and make sure to bypass inventory and drops.

Mag spawn adjustments completed, along with scarcity slider. Working well so far.

Closing, this appears to be working as intended.


Format markdown

Produced via: prettier --write $(find -name '*.md' | grep -v vendor)

@bobcatfish PR comments would be the ultimate goal, but right now the suggested edit feature in Github only supports single-line suggestions, which is why only the typo-bot is running on PRs.  Apparently this is the top ask, so I'm hoping it'll come soon.

Hey sockpuppet, I think you want --proseWrap=always as well for these PRs. (Sorry I didn't get a chance to look until now.)

@evankanderson I'll get it into the build template for the 6am run tomorrow :)


Option[T] not entirely supported

Hi,
Having an implicit body parameter which definition looks like this:
case class SomeDTO(
  name: Option[String],
  aLong: Option[Long],
  aFloat: Option[Float],
  aBoolean: Option[Boolean]
)

And declaration:
@ApiImplicitParams(Array(
    new ApiImplicitParam(value = "xxx", paramType = "body", dataType = "dto.SomeDTO", required = true)
  ))

Result in the following swagger.json file:
"SomeDTO" : {
      "type" : "object",
      "properties" : {
        "name" : {
          "type" : "string"
        },
        "aLong" : {
          "type" : "object"
        },
        "aFloat" : {
          "type" : "object"
        },
        "aBoolean" : {
          "type" : "object"
        }
      }
    },

That is, Option[String] is correctly mapped to string but other Option[Long], Option[Float] and Option[Boolean] are mapped to object which is not correct. They should be mapped to number and boolean.
And then, in the UI, examples for this type are not well presented.
NB: I haven't tested if it's specific to implicit and/or body params or not.

Looks like it's not related to swagger-play but swagger-scala-module: https://github.com/swagger-api/swagger-scala-module/issues/55.


daemon: Call initEnv from start hook to avoid data race

The metrics logging hook was being added from initEnv while the FxLogger (pkg/logging/fx_logger.go) was using the logger to log fx events. This fixes the race by executing initEnv directly in the start hook preventing concurrent use of the logger.
Fixes: #21230
Fixes: 6b7c7b326995 ("daemon: Convert app.go to hive, add dump commands")

/test-race


Polyfills included in build/jodit.js supporting IE are not included in build/jodit.min.js

Jodit Version:  Release 3.2.46
Browser:  ALL
OS:  ALL
Polyfills included in build/jodit.js supporting IE are not included in build/jodit.min.js
Expected behavior:
build/jodit.min.js is the minified/uglified version of build/jodit.js
Actual behavior:
build/jodit.min.js is not just the minified version of build/jodit.js, some code is discarded or innacesible.

build/jodit.es2018.min.js does not have polyfills
but build/jodit.min.js has

Sorry, talking about version 3.2.46 (latest release, link from website)

Fixed thank you https://github.com/xdan/jodit/releases/latest

Thank you, really nice work!


Avoid ndarray to fix fatal error in activity classifier

This only affects Python 3. This causes failure in many of the activity classifier tests.

Actually, this is the issue that is causing this: https://github.com/apple/turicreate/issues/355

... which is fixed by #385, so once that is merged this fix is no longer needed. Closing this.


readme: extends $64 + config file reference

Fixes
Checklist

[x] I have made a change to this repository, be it functionality, testing, documentation, spelling, or grammar.
[ ] I updated my branch with the master branch.
[ ] I have added the necessary testing to prove my fix is effective/my feature works (or I did not modify functionality).
[ ] I have added necessary documentation about the functionality in an appropriate .md file.
[ ] I have appropriately commented any code I have modified

Short description of what this PR does:

Great work, thanks!


Remove sensor data after unclaim

Description:
We will ask user if he wants to delete sensor data from cloud during unclaim

iOS card: https://github.com/ruuvi/com.ruuvi.station.ios/issues/1552

QA passed


This requires applying the annotation context which we probably don't do for the previous?
In any case, it's odd that there is just an empty space here

Got fixed at some point


src directory not idiomatic Go?

Hi,
first of all, I really like your project. I've been searching for a ready-to-use template for go projects for some time and so far have only found cookiecutter-golang but I like yours more.
However, I am a bit puzzled by the generated src folder inside the generated project. That seems to me non-idiomatic go as described here
In my case I would probably delete the src folder after the project has been created.
Can you explain your reasoning behind using such a folder? I'm just trying to understand why you think it's needed.

However, I am a bit puzzled by the generated src folder inside the generated project
[...]
Can you explain your reasoning behind using such a folder?

Tl;dr: To avoid cluttering code files with non-code files.
While generating a project using go-template, if you choose to enable all features - you'll end up with a bunch of non-code files in the home directory - for example, take a look at the initial commit for notsatan/crcgen - one of my side projects generated with go-template.
Trying to look for config.go between CODE_OF_CONDUCT.md and CONTRIBUTING.md just becomes annoying at some point in time. As such, when you start out with a bunch of non-code files and then add your code files at the same place, you'll just end up cluttering them together.

That seems to me non-idiomatic go as described here

True. But the guide itself isn't "official" by any means, as such I won't be using it to define idiomatic Go.
It's very annoying that the repo is named golang-standards/project-layout (which just leads to people following the guide religiously, only to end up in a mess).

I'm just trying to understand why you think it's needed

Developers aiming to create a basic project in Go will stick to go mod init.
On the other hand, for larger projects (>10K LOC), people usually have a detailed idea of a project structure to start out with.
The target audience for go-template would be using it to generate medium-sized projects with multiple modules and files, all of which can be comfortably nested within the src directory - something I usually do for most of my projects. In my experience, having a single "root" directory containing all the code files is really better than multiple code directories, or dumping code files in the base directory - of course, this might not work for large-scale projects.

Which just leads to people following the guide religiously, only to end up in a mess

To expand on this, I wouldn't recommend anyone to strictly follow all the points mentioned in golang-standards/project-layout - more so, I've frequently found myself disagreeing with many of the points they mention.
This, combined with the repo trying to push itself as "golang-standards", is why I decided to skip mentioning it in the resources section of go-template.
As a fun fact, golang/go - the source code for Go programming language - has an src directory containing most (if not all) of the source code for Go :p

Thanks!


Corrected definition of pearsonr for masked arrays

The given formula was incorrect. The t-statistic will only follow a students-t distribution if you ignore each PAIR of values (x_i, y_i) for which at least one of x_i, y_i is masked. This was not done in the denominator, so returning p-values based on that formula is misleading.
Let x' denote the (smaller) array obtained by removing masked values from x, and y' denote y with masked values removed. Further let x'' be x with values removed if they are masked in either x or y, and similarly y''. The old formula, which equated to
( len(x'')  / sqrt(len(x') * len(y')) ) * cov(x'', y'') / (var(x') * var(y')),
does not relate to any other definition of correlation.
This version is simply:
cov(x'', y'') / (std(x'') * std(y'')),
which gives the correctly distributed t-statistic.

My guess is that you are replacing pairwise deletion by listwise deletion, both are appropriate but different. Pandas has both, I think.

We have discussed this issue here: https://github.com/scipy/scipy/issues/3645
(Sorry, I don't have time at the moment to review this PR.)

(and the function says 1-D, but then ravels, i.e. uses axis=None)
I don't have a (preformed) opinion about using the full or the jointly masked variance. Both are possible. My guess is that using a full variance estimate would be more common if we calculate a correlation matrix (for many pairs). But I never checked what pandas or R are doing.
We use all available information for example in calculating the autocorrelation function, variance based on full sample, covariance with lag j has j fewer pairs.

Thanks for the link Warren, I thought it sounded familiar, but didn't remember the context.

The old method used (implicitly) pairwise deletion in the numerator and list-wise deletion in the denominator. This uses pairwise deletion in both.
Having tested, this method agrees with Pandas' method for a 2-column DataFrame. The old one (and the unmasked version) disagreed.

p.s. I do get the argument about using all information - but for calculating a p-value you need things t-distributed, which means using only valid pairs for the whole calculation (rather than just in the numerator).
With more variables each entry in the correlation matrix is calculated as in this pull request - with pairwise deletion in the sense that the ij-th entry is calculated ignoring all invalid ij-pairs for the entirety of the calculation.

p.s. I do get the argument about using all information - but for calculating a p-value you need things t-distributed, which means only using valid pairs for the whole calculation (rather than just in the numerator) the old method overweights the centre (see below).

Code:
def RandomTVals(N):
    # Create random a and b sets
    a, b = np.random.normal(0, 1, [2, 100, N])

    # First 50 values of a are lost
    m = np.array([[True] * N] * 50 + [[False] * N] * 50)
    a = ma.MaskedArray(a, m)
    b = ma.MaskedArray(b, None)

    # Masked copy of b with m is useful
    bm = ma.MaskedArray(b, m)
    df = 50 - 2     # n - 2

    a = a - a.mean()
    b = b - b.mean()
    bm = bm - bm.mean()

    # Old calculation, vectorised for speed
    o_rs = ma.sum(a * b, axis=0) / ma.sqrt(ma.sum(a * a, axis=0) * ma.sum(b * b, axis=0))
    ot_vals = ma.sqrt(df / (1.0 - o_rs ** 2)) * o_rs

    # New calculation, vectorised for speed
    n_rs = ma.sum(a * bm, axis=0) / ma.sqrt(ma.sum(a * a, axis=0) * ma.sum(bm * bm, axis=0))
    nt_vals = ma.sqrt(df / (1.0 - n_rs ** 2)) * n_rs

    return ot_vals, nt_vals

ot_vals, nt_vals = RandomTVals(10000)

plt.hist(ot_vals, normed=True, color='r', label='Old method: t-values from random masked data sets')
plt.hist(nt_vals, normed=True, color='b', label='New method: t-values from random masked data sets')
rv = scipy.stats.t(48)
x = np.linspace(-3, 3, 100)
plt.plot(x, rv.pdf(x), color='k', label='Actual students-t distribution')
plt.legend()
plt.show()

This issue seems to have been fixed by gh-13169.  mstats.pearsonr now ignores "each PAIR of values (x_i, y_i) for which at least one of x_i, y_i is masked".
import numpy as np
from scipy import stats

np.random.seed(0)
x = np.random.rand(100)
y = np.random.rand(100)
m1 = np.random.rand(100) > 0.9
m2 = np.random.rand(100) > 0.9
m = m1 | m2
assert not np.all(m1 == m2)  # arrays are not exactly aligned - passes

xm = np.ma.masked_array(x, m1)
ym = np.ma.masked_array(y, m2)

np.testing.assert_equal(stats.mstats.pearsonr(xm, ym), stats.pearsonr(x[~m], y[~m]))  # passes strict equality check


[BUG] Terraform Harvester Provider for v1.1.0

Describe the bug

[ ] Clusternetwork: not work

[ ] network: blocked by clusternetwork

To Reproduce
Steps to reproduce the behavior:

regression test cases in https://harvester.github.io/tests/manual/_incoming/2261-terraform-import-vlan/

Expected behavior
should import correctly
Environment:

Harvester ISO version: v1.1.0-rc2
Underlying Infrastructure (e.g. Baremetal with Dell PowerEdge R630): qemu/KVM 3 nodes
Terraform Harvester Provider version: v0.5.2

@lanfon72 how do I update the https://harvester.github.io/tests/manual/_incoming/2261-terraform-import-vlan/ docs?

@futuretea you can submit a PR after modify this file, or just add test plan in this issue, we (QA) will update it accordingly.

When updating vlanconfig's name field, encounter error as below:

the config could be updated after apply again.
the error might related to #2987

Verified this bug has been fixed.
Test Information

Environment: qemu/KVM 3 nodes
Harvester Version: master-f96827b2-head
ui-source Option: Auto
Terraform Harvester Provider version: v0.5.3

Verify Steps:

Steps to reproduce in https://github.com/harvester/harvester/issues/2957#issue-1411431956,
relevant regression test cases and https://github.com/harvester/terraform-provider-harvester/pull/54


Consider removing const me = this;

It seems like it's actually worse performance after compression. See here for more details: https://github.com/terser/terser/issues/562#issuecomment-913868800
It's also kind of annoying to maintain.

Good to know that times have changed on this.


EULA Verification

When creating an account, since clicking to edit information at point of verification (before submitting & signing up) requires that you sign EULA once again, perhaps user should sign EULA after verification

i made the change so that when you click back to edit the information or go back a page, the signature should persist


Use UNIX settings for MinGW which is gcc based.

First update for MinGW/MXE builds to use the gcc flags.

Thank you, @t-paul


Voltage assignment issue in process_yc1000()

Hi,
Didn't test myself yet, but In APSystemsECUR.py, in the function process_yc1000(), the voltage variable is assigned 3 times, of which 2 times unused. Doesn't look logical, I think it should be voltages.append() . Also I think it should look for 4 voltages instead of 3.
Original:
    def process_yc1000(self, data, location):

        power = []
        voltages = []

        power.append(self.aps_int(data, location))
        location += 2

        voltage = self.aps_int(data, location)
        location += 2

        power.append(self.aps_int(data, location))
        location += 2

        voltage = self.aps_int(data, location)
        location += 2

        power.append(self.aps_int(data, location))
        location += 2

        voltage = self.aps_int(data, location)
        location += 2

        power.append(self.aps_int(data, location))
        location += 2

        voltages.append(voltage)

        output = {
            "model" : "YC1000",
            "channel_qty" : 4,
            "power" : power,
            "voltage" : voltages
        }

        return (output, location)

Didn't test yet, but it'd make more sense if it looked like this:
    def process_yc1000(self, data, location):

        power = []
        voltages = []

        for i in range(0, 4):
            power.append(self.aps_int(data, location))
            location += 2

            voltages.append(self.aps_int(data, location))
            location += 2

        output = {
            "model": "YC1000",
            "channel_qty": 4,
            "power": power,
            "voltage": voltages
        }

        return output, location

You are correct that doesn't make much sense, and I should be appending those into the voltage array.
I agree it's odd there are only 3 voltages, but I think the YC100 is a 3 phase inverter, so you aren't getting voltage from each channel, but voltage from each AC power phase:
https://usa.apsystems.com/wp-content/uploads/2017/07/APsystems-YC1000-Datasheet-7.20.17.pdf
On my system which all QS1s I only get 1 voltage, which is from the AC side, not the DC voltage of each panel.

Currently the integration only exposes one voltage anyway the first one in that array.
        if self._field == "voltage":
            return self.coordinator.data.get("inverters", {}).get(self._uid, {}).get("voltage", [])[0]

Aha, ok. I looked at the YC600 for comparison. It appends 2 voltages, but it's a one phase inverter. So I figured those voltages must be the voltage per panel, since the YC600 supports 2 panels.. ?

I think they've changed what the report over time, like I said my QS1 only shows one, and it's over 200V all the time, so I'm pretty sure it's not panel voltage.

Ah yes, you're right, I've updated the code to only read 3 voltages.
It lists the first voltage as 0 though, on all 4 YC1000's. Any known issue reading this data, or should I check with my installer to verify that they've correctly connected all 3 phases ?
{'uid': '502000029925',
'online': True,
'unknown': '02',
'frequency': 0.0,
'temperature': 0,
'signal': 0,
'model': 'YC1000',
'channel_qty': 4,
'power': [0, 0, 0, 0],
'voltage': [0, 220, 219]}   # <--- first voltage is 0

I'm not sure about power where you are from.  In the US, we don't use 3 phase power except at larger commercial/industrial buildings.  So if I had a YC1000 on my home I'd see something similar where one phase would be 0.   Do you know if you have 3 phase power where these panels are installed?
I can certainly make the code report multiple voltages for the inverters that support that, but I need to be careful not to break existing implementations (currently it's always just one).  So there might need be sensors like this:
inverter_XXXXX_voltage
inverter_XXXXX_voltage_1
inverter_XXXXX_voltage_2

I wouldn't want to remove or rename inverter_XXXXX_voltage since it already exists for everyone else.

I've got 3 phase connection at home with yc1000 inverters. I will check what I find this weekend.

Thanks for your quick answers. I'm living in the Netherlands, I've got 3 phase power. All 3 phases are working normally, I've got my electrical equipment balanced across those 3 phases and everything is working. I'm also querying each phase from my smart electricity meter, all 3 phases are reporting back the voltage, also looks good. So I'm guessing either something is wrong with the solar installation, or it's a bug in the yc1000 reporting.
What you could do in theory, is to average out the 3 voltages in inverter_XXXXX_voltage , and list them separately in inverter_XXXXX_voltage_1, inverter_XXXXX_voltage_2, inverter_XXXXX_voltage_3. In my case the '0' would be averaged out as well though. Either my installation is faulty and it doesn't matter (good indicator that something is wrong), or there's a bug in the data in which case you could just get the max() instead of the average. I'll check and report back.
Can't find the 3 separate voltages in the ECUAPP unfortunately.. would be a good cross-check. In the ECUAPP > Data > Real Time Data, all 4 YC1000's are showing no data at all, while the script is working perfectly. The ECUAPP doesn't seem to be very reliable.

Now that there's some daylight, I've got 3 voltages. And the ECUAPP is reporting data. Temperature, frequency and signal are reporting back now as well (all reported back 0 yesterday). Possibly the YC1000's go into standby at night, shutting down one phase and not reporting back properly to ECUAPP to save power. This looks good now.
As a consideration, it would be nice if you could add those 3 separate voltages. The existing field could be left as-is, or maybe inverter_XXXXX_voltage = sum(voltage) / len([v for v in voltage if v > 0])
Back to the original issue, my process_yc1000() now looks like this:
    def process_yc1000(self, data, location):
        power = []
        voltages = []

        power.append(self.aps_int(data, location))
        location += 2

        voltages.append(self.aps_int(data, location))
        location += 2

        power.append(self.aps_int(data, location))
        location += 2

        voltages.append(self.aps_int(data, location))
        location += 2

        power.append(self.aps_int(data, location))
        location += 2

        voltages.append(self.aps_int(data, location))
        location += 2

        power.append(self.aps_int(data, location))
        location += 2

        output = {
            "model": "YC1000",
            "channel_qty": 4,
            "power": power,
            "voltage": voltages
        }

        return output, location

Ok, I'll work on an update that handles the voltages better for the yc1000 - thanks for the info.

Here is my code for parsing in C#. I have an ECU-B.
Maybe it helps you.
    private bool Do_APS1100280002_InverterInfo(byte[] bytesData)
    {
        try
        {
            string sSignaturStart = BytePartToString(bytesData, 0, 3);          // APS
            string sCommandGroup = BytePartToString(bytesData, 3, 2);           // 11
            string sChecksum = BytePartToString(bytesData, 5, 4);               // 50
            if (int.Parse(sChecksum) <= 15) return true;
            string sCommandNumber = BytePartToString(bytesData, 9, 4);          // 0002
            if (sCommandNumber != "0002")
            {
                 return false;
            }
            string sMatchStatus = BytePartToString(bytesData, 13, 2);           // 00
            if (sMatchStatus == "00")
            {
                string sEcuModel = BytePartToString(bytesData, 15, 2);              // 01
                string sInverterCount = BytePartToHexadecimal(bytesData, 17, 2);    // 0001
                string sTimestamp = BytePartToHexadecimal(bytesData, 19, 7);        //<PHONE_NUMBER>2441

                int iOffest = 26;
                for (int iInverter = 1; iInverter <= int.Parse(sInverterCount); iInverter++)
                {

                    if (sEcuModel.Equals("01"))
                    {
                        string sInventerID = BytePartToHexadecimal(bytesData, iOffest, 6);
                        string sOnline = BytePartToHexadecimal(bytesData, iOffest + 6, 1);
                        string sInventerType = BytePartToString(bytesData, iOffest + 7, 2);
                        string sInventorModel = "";
                        if (listAPSDeviceYC600.Any(s => sInventerID.Substring(0, 3).Contains(s))) { sInventorModel = "YC600"; }
                        if (listAPSDeviceYC1000.Any(s => sInventerID.Substring(0, 3).Contains(s))) { sInventorModel = "YC1000"; }
                        if (listAPSDeviceQS1.Any(s => sInventerID.Substring(0, 3).Contains(s))) { sInventorModel = "QS1"; }
                        if (listAPSDeviceQS3.Any(s => sInventerID.Substring(0, 3).Contains(s))) { sInventorModel = "QS3"; }

                        if (sInventerType.Equals("01"))
                        {
                            if (1 == (e(bytesData, iOffest + 6, 1) & 1))
                            {
                                string sFrequency = BytePartToDecimalString(bytesData, iOffest + 9, 2);
                                double dFrequency = double.Parse(sFrequency) / 10.0d;
                                string sTemperature = BytePartToDecimalString(bytesData, iOffest + 11, 2);
                                int iTemperature = int.Parse(sTemperature) - 100;
                                string sCh1Power = BytePartToDecimalString(bytesData, iOffest + 13, 2);
                                string sCh1Voltage = BytePartToDecimalString(bytesData, iOffest + 15, 2);
                                string sCh2Power = BytePartToDecimalString(bytesData, iOffest + 17, 2);
                                string sCh2Voltage = BytePartToDecimalString(bytesData, iOffest + 19, 2);
                            }
                            else
                            {
                                // unknown data
                            }
                            iOffest += 21;
                        }
                        if (sInventerType.Equals("02"))
                        {
                            if (1 == (e(bytesData, iOffest + 6, 1) & 1))
                            {
                                string sFrequency = BytePartToDecimalString(bytesData, iOffest + 9, 2);
                                double dFrequency = double.Parse(sFrequency) / 10;
                                string sTemperature = BytePartToDecimalString(bytesData, iOffest + 11, 2);
                                int iTemperature = int.Parse(sTemperature) - 100;
                                string sCh1Power = BytePartToDecimalString(bytesData, iOffest + 13, 2);
                                string sCh1Voltage = BytePartToDecimalString(bytesData, iOffest + 15, 2);
                                string sCh2Power = BytePartToDecimalString(bytesData, iOffest + 17, 2);
                                string sCh2Voltage = BytePartToDecimalString(bytesData, iOffest + 19, 2);
                                string sCh3Power = BytePartToDecimalString(bytesData, iOffest + 21, 2);
                                string sCh3Voltage = BytePartToDecimalString(bytesData, iOffest + 23, 2);
                                string sCh4Power = BytePartToDecimalString(bytesData, iOffest + 25, 2);
                            }
                            else
                            {
                                // no data
                            }
                            iOffest += 27;
                        }
                        if (sInventerType.Equals("03"))
                        {
                            if (1 == (e(bytesData, iOffest + 6, 1) & 1))
                            {
                                string sFrequency = BytePartToDecimalString(bytesData, iOffest + 9, 2);
                                double dFrequency = double.Parse(sFrequency) / 10;
                                string sTemperature = BytePartToDecimalString(bytesData, iOffest + 11, 2);
                                int iTemperature = int.Parse(sTemperature) - 100;
                                string sCh1Power = BytePartToDecimalString(bytesData, iOffest + 13, 2);
                                string sCh1Voltage = BytePartToDecimalString(bytesData, iOffest + 15, 2);
                                string sCh2Power = BytePartToDecimalString(bytesData, iOffest + 17, 2);
                                string sCh3Power = BytePartToDecimalString(bytesData, iOffest + 19, 2);
                                string sCh4Power = BytePartToDecimalString(bytesData, iOffest + 21, 2);
                            }
                            else
                            {
                                // no data
                            }
                            iOffest += 23;
                        }
                        if (sInventerType.Equals("00"))
                        {
                            // no data
                            iOffest += 9;
                        }
                    }
                    if (sEcuModel.Equals("02"))
                    {
                        // EcuModel Reading - Not implemented
                    }
                }
            }
            else if (sMatchStatus == "01")
            {
                // ...
            }
            else if (sMatchStatus == "02")
            {
                // ...
            }
        }
        catch (Exception e)
        {
            return false;
        }

        return true;
    }

@gaardiolor  I think this issue was taken care of some releases ago, is it allright to close it? The Voltages indeed represent the AC voltages on the phases not the individual DC voltages on the panels.


he issue related to the version of Stable Diffusion being used.

Dear author, I am using the v2-1_512-ema-pruned.ckpt version, but I encountered an issue with the error message: KeyError: 'model.diffusion_model.time_embed.0.weight'. Could you kindly let me know which version you are using?

Apologies for the mistake in my previous message. I encountered this issue when loading the coser model during testing: KeyError: 'model.diffusion_model.time_embed.0.weight'. Could you please let me know which version you are using?


fix: change link text html tag from button to a

BREAKING CHANGE: TextLink does not support onClick() anymore, instead a link as string

changes link text from <button> to <a>-tag

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Paste a "private use icon" in idraw

When i'm designing at iDraw it pastes a "private use" icon, is there a way to make it work with iDraw?, my version is 2.5

Sorry, I have no idea.


Docs: Please provide OS X install instructions without HomeBrew

I, like some others, decided to shun HomeBrew since the (questionable) decision to add google analytics with an opt-out option (rather then opt-in, if at all).
Could you provide OS X install instructions that aren't HomeBrew based?
I tried installing from code, but couldn't find the list of libraries I'll need to install (I only got a list of HomeBrew recipes.
I thank you for your time and hope to try Crystal out soon.

You can download the prebuilt binaris for OS X and use them, for example for 0.18.7: https://github.com/crystal-lang/crystal/releases/download/0.18.7/crystal-0.18.7-1.pkg

Thanks @jhass .
I started playing crystal and am quite impressed so far :-)

Like this https://github.com/crystal-lang/crystal/wiki/All-required-libraries?

Yap, this is where I think it should be placed  👍
I'm assuming the libraries are similar to the Ubuntu libraries, but it would be nice if there was a section titled Mac OS X without the HomeBrew.

Note that list is only what's neccessary to compile the compiler, other Crystal programs will only require a subset at most.

@jhass , thanks for the info... does this mean the executable I compile with Crystal will link against these libraries dynamically, or are they staticky linked? In other words, does it mean I have client side requirements when using these libraries?
Which makes me wonder... would there be a stripped down version of crystal (a compiler without any external libraries) that's suitable for embedded systems? Not that I don't love my C, but some things could be so much easier.

Good to know, thanks!

Doing brew link llvm --force is inadvisable.
Xcode CLT provides an Apple fork of clang/llvm which absolutely cannot be overridden unless you enjoy strange, difficult-to-debug errors in other programs and reinstalling everything from scratch.
LLVM executables are installed in /usr/local/opt/llvm/bin.
Extra tools are installed in /usr/local/opt/llvm/share/llvm.
To use the bundled libc++ please add the following LDFLAGS:
  LDFLAGS="-L/usr/local/opt/llvm/lib -Wl,-rpath,/usr/local/opt/llvm/lib"

This formula is keg-only, which means it was not symlinked into /usr/local.

OS X [Xcode CLT, actually] already provides this software and installing another version in
parallel can cause all kinds of trouble.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/llvm/lib
    CPPFLAGS: -I/usr/local/opt/llvm/include

If you need Python to find bindings for this keg-only formula, run:
  echo /usr/local/opt/llvm/lib/python2.7/site-packages >> /usr/local/lib/python2.7/site-packages/llvm.pth

The crystal-lang Homebrew formula needs to be improved to bring in runtime and build deps correctly without requiring dangerous, system-wide modifications.

I've fixed a copy of Homebrew formula, and it should no longer require brew link --force llvm.
Test it out first before going through the Homebrew PR process:
Stable, bottled
brew uninstall crystal-lang; brew install https://gist.githubusercontent.com/steakknife/20861a5884a66ca26e6600768be3e252/raw/97e831985352bb13efba30135065eaa1732fbff8/crystal-lang.cr

Stable, built-from source
brew uninstall crystal-lang; brew install -s https://gist.githubusercontent.com/steakknife/20861a5884a66ca26e6600768be3e252/raw/97e831985352bb13efba30135065eaa1732fbff8/crystal-lang.cr

HEAD
brew uninstall crystal-lang; brew install --HEAD https://gist.githubusercontent.com/steakknife/20861a5884a66ca26e6600768be3e252/raw/97e831985352bb13efba30135065eaa1732fbff8/crystal-lang.cr

These are documented in https://crystal-lang.org/docs/installation/from_a_targz.html and https://crystal-lang.org/docs/installation/from_source_repository.html
Please reopen if those didn't work for you.


trying to execute a second command in vsh fails

Do you have any more details to replicate?  It seems to work for me

Type any command and then type any command again. It will not record the second command or any command after it.

Example
v# echo hi
hi
v# echo hi

After this example is executed it will not run "echo hi" the second time, it just goes to the next line and does not show "v#" prompt. Any commands given to the broken prompt don't run.

It might also be that I am on macOS.

Ok 👍

Tell me when you find the problem.

Confirmed this works for me with: V 0.2.2 8547762.  My HEAD is at 8547762ab.
Welcome to v shell!
v# echo hi
hi
v# echo it works
it works
v# echo something else
something else
v# jacobsalmela:~/vsh (main)$

Time for some bisecting...

jacobsalmela:~/vlang ((no branch, bisect started on master))$ git bisect good
453fb1b08b7bcce8ef86c175aa3b1179f4a01c2e is the first bad commit
commit 453fb1b08b7bcce8ef86c175aa3b1179f4a01c2e
Author: Delyan Angelov<EMAIL_ADDRESS>Date:   Tue May 18 11:59:57 2021 +0300

    term.ui: use os.signal_opt instead of os.signal

 vlib/os/signal.c.v                  | 66 ++++++++++++++++++++-----------------
 vlib/term/ui/consoleapi_windows.c.v |  2 --
 vlib/term/ui/input.v                |  6 ++--
 vlib/term/ui/input_windows.c.v      |  4 +--
 vlib/term/ui/termios_nix.c.v        | 18 ++++++----
 5 files changed, 53 insertions(+), 43 deletions(-)

@spytheman has helped me out before on this repo...maybe he knows quickly what broke it?

Still trying to look at this.

@Ccode-lang that PR above works for this issue if you need an immediate workaround.  Otherwise, I'm sure there's an error in my code somewhere.

Ok thank you. 👍

using this only gives an error message that says:
vsh.v:18:8: warning: module 'io' is imported but never used
   16 | import os { input, exec, user_os, join_path home_dir }
   17 | import term.ui as tui
   18 | import io
      |        ~~
   19 |
   20 | struct Vsh {
vsh.v:275:5: warning: unused variable: `cmd_args`
  273 |                 is_builtin := cmd.split(' ')[0]
  274 |                 // get the rest of the string which will be the args
  275 |                 cmd_args := cmd.split(' ')[1..]
      |                 ~~~~~~~~
  276 |                 match is_builtin {
  277 |                     // only use the first arg since you can't be in two dirs at once
vsh.v:16:20: error: module `os` has no constant or function `exec`
   14 | */
   15 |
   16 | import os { input, exec, user_os, join_path home_dir }
      |                    ~~~~
   17 | import term.ui as tui
   18 | import io
vsh.v:285:19: error: unknown function: os.exec
  283 |                     // run the command the user entered
  284 |                     // TODO: move this all to a function and make it more resilient
  285 |                     output := os.exec(cmd) or {
      |                                  ~~~~~~~~~
  286 |                         buffer.put('\n$err')
  287 |                         buffer.put('v# ')
vsh.v:299:28: error: `void` type has no fields
  297 |
  298 |                     // display it's output
  299 |                     buffer.put('\n$output.output')
      |                                           ~~~~~~
  300 |
  301 |                     // return the prompt so another command can be entered

i'll open pull to fix this

Using your version of v still opens the broken prompt it must be an error in the code somewhere.

It seems like the event() function is not getting executed in a while loop.

Yes, I just tried your PR, #25 and the issue still exists.  Let me play with what you've put together and I'll see if I can track down the issue.

Ok 👍

It seems like the event() function is not getting executed in a loop.

Well, some of the other events in the loop work.  If you press up a bunch, it works fine.  I think the issue is related term.ui and/or os modules.  I have workarounds but not a permanent fix.  I'll push what I have for some unrelated parts though to simply updating the code for the recent v changes.

Ok, I will try it now

the issue is still there but you said there were workarounds. what are they exactly?

Yeah, I know.  I haven't been able to crack it yet.
Workarounds are here:
https://github.com/vlang/v/pull/10569#issuecomment-881912000

You can also use os.system but it's not useful since it only returns a return code...Though this may be the place to look to see why os.execute hangs up

ok thanks!

I found also running v -o vsh.c vsh.v && gcc -o vsh vsh.c worked better than building with v.

how do you kill the run thou. It keeps trying to track my mouse after running

nevermind found it out

found using this file with modified v worked
vsh.txt

I'll open a pull with it to make a temporary fix

It looks like it undoes some functions. Is that ok? The fix is a fork of the 0.11.0 release.

New updates in V made this invalid.  It works now. (I only tested this with the new pull though)

nvm, I tested on mac issue persists.


Bots try to go through the walls for all eternity.

I have a CTF server with reHLDS and have yapb-4.2.637-linux. For some strange reason as time goes on in the game, the bots just try to make their paths through walls anywhere on the map. They can't go through walls but they try and get stuck. The AI is still working fine except for what I explained. I think this has to do with the round being infinite because even if they die, when they respawn they keep trying to go through the walls and this bug does not happens with normal rounds. To fix it I have to kick the stucked bots.
There is another error and that is that the bots do not buy anything but only the first time they appear on the server and even if they die and respawn, they do not buy anything. They should stick around to buy their weapons like they do at the beginning of the map.
These problems should be fixed because it is very annoying that suddenly there is no one on the map and it is because the bots have been bugged on the walls.
Environment details:

OS: [linux]

Engine:
Protocol version 48
Exe version <IP_ADDRESS>/Stdio (cstrike)
ReHLDS version: <IP_ADDRESS>7-dev
Build date: 03:13:55 Oct 25 2021 (2753)
Build from: https://github.com/dreamstalker/rehlds/commit/471158b

GameDLL: [regamedll]

Metamod:
Metamod v1.21p37  2013/05/30 (5:13)
by Will Day
http://www.metamod.org/
Patch: Metamod-P (mm-p) v37
by Jussi Kivilinna
http://metamod-p.sourceforge.net/
compiled: May 30 2013, 11:41:16 EET (optimized)

Bot Version: [4.2.637]

Game mode: [reapi_jctf]

AMXX Plugins:
Currently loaded plugins:
name                    version     author            file             status
[  1] Admin Base              <IP_ADDRESS>94  AMXX Dev Team     admin.amxx       running
[  2] Admin Commands          <IP_ADDRESS>94  AMXX Dev Team     admincmd.amxx    running
[  3] Admin Help              <IP_ADDRESS>94  AMXX Dev Team     adminhelp.amxx   running
[  4] Slots Reservation       <IP_ADDRESS>94  AMXX Dev Team     adminslots.amxx  running
[  5] Multi-Lingual System    <IP_ADDRESS>94  AMXX Dev Team     multilingual.am  running
[  6] Menus Front-End         <IP_ADDRESS>94  AMXX Dev Team     menufront.amxx   running
[  7] Commands Menu           <IP_ADDRESS>94  AMXX Dev Team     cmdmenu.amxx     running
[  8] Players Menu            <IP_ADDRESS>94  AMXX Dev Team     plmenu.amxx      running
[  9] Teleport Menu           <IP_ADDRESS>94  AMXX Dev Team     telemenu.amxx    running
[ 10] Maps Menu               <IP_ADDRESS>94  AMXX Dev Team     mapsmenu.amxx    running
[ 11] Plugin Menu             <IP_ADDRESS>94  AMXX Dev Team     pluginmenu.amxx  running
[ 12] Admin Chat              <IP_ADDRESS>94  AMXX Dev Team     adminchat.amxx   running
[ 13] Anti Flood              <IP_ADDRESS>94  AMXX Dev Team     antiflood.amxx   running
[ 14] Scrolling Message       <IP_ADDRESS>94  AMXX Dev Team     scrollmsg.amxx   running
[ 15] Info. Messages          <IP_ADDRESS>94  AMXX Dev Team     imessage.amxx    running
[ 16] Admin Votes             <IP_ADDRESS>94  AMXX Dev Team     adminvote.amxx   running
[ 17] NextMap                 <IP_ADDRESS>94  AMXX Dev Team     nextmap.amxx     stopped
[ 18] TimeLeft                <IP_ADDRESS>94  AMXX Dev Team     timeleft.amxx    running
[ 19] Pause Plugins           <IP_ADDRESS>94  AMXX Dev Team     pausecfg.amxx    running
[ 20] Stats Configuration     <IP_ADDRESS>94  AMXX Dev Team     statscfg.amxx    running
[ 21] Restrict Weapons        <IP_ADDRESS>94  AMXX Dev Team     restmenu.amxx    running
[ 22] Autoresponder/Advertis  0.5         MaximusBrood      ad_manager.amxx  running
[ 23] Admin Prefixes          4.0         m0skVi4a ;]       AdminPrefixes.a  running
[ 24] Advanced Weapon Tracer  1.3.0       ConnorMcLeod      advanced_weapon  running
[ 25] GasNades                2.0.0       ConnorMcLeod      amx_gasnades.am  running
[ 26] ANTI-SPAM               1.4         Emanuelitop15     anti_spam.amxx   running
[ 27] Team Semiclip           2.0.0       schmurgel1983     API-TeamSemicli  running
[ 28] Automatic Unstuck       1.5         NL)Ramon(NL       auto_unstuck.am  running
[ 29] BIENVENIDA              1.0         Emanuelitop15     Bienvenida_Pres  running
[ 30] BOTS BUY                1.          Emanuelitop15     bots_buy.amxx    running
[ 31] Bullet Damage           2.0         Bboy Grun         bullet_damage.a  running
[ 32] Bullet Whizz            1.4         Cheap_Suit        Bullet_Whizz.am  running
[ 33] Super Bunny Hopper      1.2         Cheesy Peteza     bunnyhop_super.  running
[ 34] TF2: Domination         1.4         Emanuelitop15     ctf_tf2_dominat  running
[ 35] Flashbang Dynamic Ligh  0.21        Avalanche         flashbang_dligh  running
[ 36] Galileo                 v6.0        Brad Jones/Addon  galileo.amxx     running
[ 37] unknown                 unknown     unknown           GHW_connect.amx  bad load
[ 38] Grenade Enhancer        1.2         anakin_cstrike    grenade_enhance  running
[ 39] Loading Music II        1.2.9       Simon Logic       loading_music2.  running
[ 40] Map Spawns Editor       1.0.16      iG_os             Map_Spawns_Edit  running
[ 41] mute menu               1.1         Emanuelitop15     mutemenu.amxx    running
[ 42] NadeModes               11.2        Nomexous & OT     nademodes.amxx   running
[ 43] Ping Faker              1.5a        MeRcyLeZZ         pingfaker.amxx   running
[ 44] Xuber CTF               v1.3.6      XuberAxel y Eman  reapi_jctf.amxx  running
[ 45] ResetScore              1.1         Emanuelitop15     ResetScore.amxx  running
[ 46] Ultra Streak Sounds     1.5 fix     Emanuelitop15     Ultra_Streak_So  running
[ 47] Sniper Spark / Laser D  1.2         Numb              sniper_spark_la  running
[ 48] Speedometer             1.2         AciD              speedometer.amx  running
[ 49] Team Grenade Trail      1.2         Numb              team_grenade_tr  running
[ 50] Vampire                 1.0c        Shalfey           vampire.amxx     running
[ 51] WalkGuard               1.3.2       mogel             walkguard.amxx   running
[ 52] Weapon Menu             1.0         Mattcook & xerob  weaponmenu.amxx  running
[ 53] CTF Menu                v1.11       LA SOMBRA DEMONI  CTFmenu.amxx     running
[ 54] CTF Menu Informativo    v1.1        LA SOMBRA DEMONI  CTFMenuInformat  running
[ 55] CTF Informacion Motd    v1.0        totopizza         CTFInformacionM  running
[ 56] CTF Reglas Motd         v1.0        totopizza         CTFReglasMotd.a  running
( 37) Load fails: Plugin uses an unknown function (name "geoip_country") - check your modules.ini.
56 plugins, 54 running

Please help... And if you can, develop a aim error system for the bots please... Thank you.

Seems you have to edit waypoints manually

I manually edit waypoints of the bots, but they keep getting stuck on the wall. :( I need help!

Please take a look at my edit.
https://github.com/yapb/yapb/actions/runs/3281105238

Which map?

Which map?

Sorry for the delay. This happens in all maps but I can't test it again because I don't have the server anymore. I still have a Windows version of the bots and I can test them there but it should be better with the server. I can't have a server in these moments for now... Maybe some day...


[High Priority]Slack link on the website is broken

The slack link on the first-contributors web-portal is broken.
🐞 Problem
Clicking on the slack option on the top-right corner of the web-page, leads to an error message, No such app .
Current State:

🎯 Goal
Fix the broken link.

i will do this

I have submitted pull request @Roshanjossey

Closing this as this has been resolved in https://github.com/Roshanjossey/first-contributions/pull/4082


[it] localizzazione termine cloud computing

cleanup and reopen another pull with only the commit for the term


add population variance and sample variance

need to add variance from histogram and variance from raw iterable, too


Feature-pass-static-argnums-to-qnode

Context:
Static argnum is not correctly passed through QNode. Currently if we use  @qjit(static_argnums=(1,)) decorator right before @qml.qnode(dev), the static argument will still be traced within the QNode.
Description of the Change:
Passed the static_argnums from the compile options through qnode call() method and then using it in deduce_avals to avoid tracing the static arguments.
Also improved the verification and preparation of static_argnums.
Benefits:
Added ability to use static arguments inside qnodes
Possible Drawbacks:
It can potentially cause confusion for jax users since passing static_argnums through nested calls to jax.jit() is not supported in jax. e.g.
@partial(jax.jit, static_argnums=(1,))
@jax.jit
def foo(x, c):
    print("Inside QNode:", c)
    return x + c

>>> foo(0.5, 0.5)
>>> Inside QNode: Traced<ShapedArray(float64[], weak_type=True)>with<DynamicJaxprTrace(level=2/0)>

which means that parameter c inside foo is still traced.
Related GitHub Issues:
https://github.com/PennyLaneAI/catalyst/issues/902
[sc-67808]

I think there is this other test that I came up which produces an error. I am not sure if we should consider out of scope. May be good to bring @josh146 and @dime10 into the loop:
+    def test_qnode_nested_not_qnode(self, capsys):
+        """Test if QJIT static arguments pass through QNode correctly when parameters are switched."""
+        dev = qml.device("lightning.qubit", wires=1)
+
+        @qjit(static_argnums=(0,))
+        def circuit(c, x):
+            return 2 * c
+
+        @qjit(static_argnums=(1,))
+        def wrapper(x, c):
+            return circuit(c, x)
+
+        wrapper(0.5, 0.5)
+        print(wrapper.mlir)
+

I tried adding static_argnums to a non-qnode function and I get the following error:
E           TypeError: TestStaticArguments.test_qnode_nested_not_qnode.<locals>.circuit() got an unexpected keyword argument 'static_argnums'

I think having this feature work might be out of scope, but I think that we will like it at some point. Other than that, I think it looks good!

I think there is this other test that I came up which produces an error. I am not sure if we should consider out of scope. May be good to bring @josh146 and @dime10 into the loop:
+    def test_qnode_nested_not_qnode(self, capsys):
+        """Test if QJIT static arguments pass through QNode correctly when parameters are switched."""
+        dev = qml.device("lightning.qubit", wires=1)
+
+        @qjit(static_argnums=(0,))
+        def circuit(c, x):
+            return 2 * c
+
+        @qjit(static_argnums=(1,))
+        def wrapper(x, c):
+            return circuit(c, x)
+
+        wrapper(0.5, 0.5)
+        print(wrapper.mlir)
+

I tried adding static_argnums to a non-qnode function and I get the following error:
E           TypeError: TestStaticArguments.test_qnode_nested_not_qnode.<locals>.circuit() got an unexpected keyword argument 'static_argnums'

I think having this feature work might be out of scope, but I think that we will like it at some point. Other than that, I think it looks good!

I think there should be a simple fix for this. Let me check.

@dime10: @josh146, @mehrdad2m and I had a discussion offline. @josh146 says that if it is too difficult he is happy to leave it as out of scope, although @mehrdad2m may have a fix already :)

@dime10: @josh146, @mehrdad2m and I had a discussion offline. @josh146 says that if it is too difficult he is happy to leave it as out of scope, although @mehrdad2m may have a fix already :)

My last commit should fix this issue.

@dime10: @josh146, @mehrdad2m and I had a discussion offline. @josh146 says that if it is too difficult he is happy to leave it as out of scope, although @mehrdad2m may have a fix already :)

My last commit should fix this issue.

Wow nice work! I would have thought since we completely ignore inner qjit decorators the inner static_argnums would be ignored as well, but it seems you managed to make it work :)
There is a bit of a larger issue here about compile options provided in nested qjit functions, I'm guessing for most of them they are generally ignored. The eventual fix for this should be reusing nested compiled functions rather than tracing through them again I think.

Just correcting the test, I think both work, but this is the last change. Thanks!

Ah sorry, forgot to remove them at the end. thanks for catching this.


[SPARK-34939][CORE][2.4] Throw fetch failure exception when unable to deserialize broadcasted map statuses

What changes were proposed in this pull request?

This patch catches IOException, which is possibly thrown due to unable to deserialize map statuses (e.g., broadcasted value is destroyed), when deserilizing map statuses. Once IOException is caught, MetadataFetchFailedException is thrown to let Spark handle it.
This is a backport of #32033 to branch-2.4.
Why are the changes needed?

One customer encountered application error. From the log, it is caused by accessing non-existing broadcasted value. The broadcasted value is map statuses. E.g.,
[info]   Cause: java.io.IOException: org.apache.spark.SparkException: Failed to get broadcast_0_piece0 of broadcast_0
[info]   at org.apache.spark.util.Utils$.tryOrIOException(Utils.scala:1410)
[info]   at org.apache.spark.broadcast.TorrentBroadcast.readBroadcastBlock(TorrentBroadcast.scala:226)
[info]   at org.apache.spark.broadcast.TorrentBroadcast.getValue(TorrentBroadcast.scala:103)
[info]   at org.apache.spark.broadcast.Broadcast.value(Broadcast.scala:70)
[info]   at org.apache.spark.MapOutputTracker$.$anonfun$deserializeMapStatuses$3(MapOutputTracker.scala:967)
[info]   at org.apache.spark.internal.Logging.logInfo(Logging.scala:57)
[info]   at org.apache.spark.internal.Logging.logInfo$(Logging.scala:56)
[info]   at org.apache.spark.MapOutputTracker$.logInfo(MapOutputTracker.scala:887)
[info]   at org.apache.spark.MapOutputTracker$.deserializeMapStatuses(MapOutputTracker.scala:967)

There is a race-condition. After map statuses are broadcasted and the executors obtain serialized broadcasted map statuses. If any fetch failure happens after, Spark scheduler invalidates cached map statuses and destroy broadcasted value of the map statuses. Then any executor trying to deserialize serialized broadcasted map statuses and access broadcasted value, IOException will be thrown. Currently we don't catch it in MapOutputTrackerWorker and above exception will fail the application.
Normally we should throw a fetch failure exception for such case. Spark scheduler will handle this.
Does this PR introduce any user-facing change?

No
How was this patch tested?

Unit test.

Test build #136886 has started for PR 32045 at commit 62ec191.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/41462/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/41462/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/41462/

Thank you @dongjoon-hyun

Test build #136886 has finished for PR 32045 at commit 62ec191.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/136886/

Jenkins passed. Merged to branch-2.4.

Thank you @dongjoon-hyun @HyukjinKwon


0.9.x merge up into 0.10.x

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Warning: This coverage report may be inaccurate.
We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
To ensure accuracy in future PRs, please see these guidelines.
A quick fix for this PR: rebase it; your next report should be accurate.

1 of 2 (50.0%)  changed or added relevant lines in 1 file are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.01%) to 84.207%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/Lib/PhpProcessReader/PhpMemoryReader/MemoryLocationsCollector.php
1
2
50.0%

Files with Coverage Reduction
New Missed Lines
%

src/Lib/PhpProcessReader/PhpZendMemoryManagerChunkFinder.php
1
83.33%

Totals

Change from base Build<PHONE_NUMBER>:
-0.01%

Covered Lines:
4868

Relevant Lines:
5781

💛  - Coveralls


Team3 custom gram length

the user can now specify the gram length of the query.

LTGM. Please go ahead to do the merge.


Active leases not working with mutliple dnsmasq instances

With the recent inclusion of a patch with support for multiple dnsmasq instances (see this), the Active DHCP Leases table on the DHCP and DNS (admin/network/dhcp) no longer works correclty. When defining leasefiles (i.e. option leasefile /tmp/dnsmasq1.leases vs option leasefile /tmp/dnsmasq2.leases), only leases from the first file are displayed. When using the same file for both dnsmasq instances, there seems to be a race condition and only leases of the last instance that writes to this file are displayed.
Hence LUCI needs to be patched, so it supports multiple leasefiles by iterating over all available leasefiles.

@jow- patch for this backported to 17.01 after testing in trunk?

Fixed by https://github.com/openwrt/luci/pull/4308


[11.x] Fixed suggestion for success component

The success methods in two files were accidentally overlooked in #52112 and this PR adds them so it can be suggested by the IDE.
PR #52112 is functioning, it just isn't being picked up by the IDE presently as an option.
This wasn't apparent during initial testing but I wanted to address it as soon as possible.
Thank you.

This is a bit different than that PR.


Parameter Binding Tests: Dynamic parameter is found even if globbed path does not exist

The following test is failing on Ubuntu 20.04 in PS 7.2.0-preview.7:
https://github.com/PowerShell/PowerShell/blob/945a23234170bd5ebdace8b6d10b82754354f68f/test/powershell/engine/ParameterBinding/ParameterBinding.Tests.ps1#L259-L265
The error is:
Expected an exception, with FullyQualifiedErrorId 'ParameterArgumentValidationError' to be thrown, but the FullyQualifiedErrorId was 'NamedParameterNotFound,Microsoft.PowerShell.Commands.CopyItemCommand'. from /home/vsts_azpcontainer/PSPackage/download/Test/test/powershell/engine/ParameterBinding/ParameterBinding.Tests.ps1:264 char:47
+         { Copy-Item "~$guid*" -Destination ~ -ToSession $null } | Sh ?
+                                               ~~~~~~~~~~

I wonder again how out CIs passed this in #15525. Also there was a request to redesign the code with minor breaking change.


Move vibration fitting case

Codecov Report

Merging #18 (96b7dd2) into main (5f577b9) will increase coverage by 1.98%.
The diff coverage is n/a.

Additional details and impacted files


Add ESLint, and GitHub Action to check future pull requests

I believe code is easier to understand when it is all written in a consistent style.
For a clear explanation of why a consistent style matters, see Nikolas Zakas' 2012 article. Similar arguments are often heard from organizations where software is written and maintained by many different programmers. See the introduction to Google's style guides for one example.
One tool to help achieve a consistent style is an automatic linter. For a defense of the use of linters in open-source projects, see this chapter from the book "The Turing Way".
The new module eslint-config-globeletjs is a first draft style guideline for GlobeletJS modules, written as a configuration for ESLint. It starts with the "eslint:recommended" rules, and adds a handful of additional rules that are common to many large projects.
This PR

Adds eslint and eslint-config-globeletjs as dependencies
Adds a lint script to the package.json to check all code in the src directory
Updates the files in src to resolve the problems flagged by ESLint
Updates the dependencies, so that all GlobeletJS modules used by GlobeletJS are conforming to the eslint-config-globeletjs style

For future pull requests to GlobeletJS, this PR also adds a GitHub Action (based on GitHub's recommended workflow for Node.js) to automatically run npm test on every PR that targets the main branch. This will enable reviewers of the pull request to quickly confirm that the coding style of the proposed changes are consistent with the rest of the repository.

If this PR is approved, I think we should bump the version to 0.0.2, and republish to NPM.
Note that we need to run npm version inside the feature branch (where commits are allowed), with the --no-git-tag-version option. Then, after the PR is merged, a repository administrator will need to run git tag and git tag push to the main branch, so that the tag corresponds to the merge commit.
I will work on a CONTRIBUTING.md that explains this flow


Dropdown + data-target documentation

Dropdowns support data-target but it has to reference a parent to both the .dropdown-menu and the trigger – which is not something I understood until I banged my head against it for a while and read through the source, this either needs documenting or changing – maybe it's a bootstrap standard for data-target I missed but I totally assumed it'd have to reference the .dropdown-menu given that's the "perceived default" if you don't supply the target.
The resulting behaviour of getting it wrong is that the dropdown will pretty much work correctly but doesn't close when you click the trigger whilst the dropdown is open.

I've been looking around for a solution to this and rather than documenting what it does currently, would it be worth adding in functionality for data-target to allow targeting a specific .dropdown-menu directly if specified, falling back to SelectorEngine.findOne(Selector.MENU, parent) otherwise?

data-target is really helpful. This would allow to create dropdown-menu with form out of scope of the current container which can be another form.

Not only is this stale, but I don't think this is applicable? We don't use data-target on any of our dropdown docs in v4 or v5. This is tagged as a docs issue and I'm not seeing a docs issue to work out here, so closing it out as a won't fix. If I missed something and this still applies to v4 or v5, please open a new issue with some additional information. Thanks!

Not only is this stale, but I don't think this is applicable? We don't use data-target on any of our dropdown docs in v4 or v5. This is tagged as a docs issue and I'm not seeing a docs issue to work out here, so closing it out as a won't fix. If I missed something and this still applies to v4 or v5, please open a new issue with some additional information. Thanks!


a security issue [sql injection]

Hi,friend
Im Striker, from China
a vulnerability discovered in GeniXCMS 0.0.8
Please respond to<EMAIL_ADDRESS>for more details.
Thanks

hello, i've already sent the email to your email.
thanks for bringing up the issue.

Could you please help me to apply for a CVE-ID?
I really want CVE-ID  @semplon

Hi, thanks for the details. I will update it soon. for getting your own CVE-ID you can get it from mitre.org website. Below are some links how to get CVE-ID
http://cve.mitre.org/cve/request_id.html
It's you who sould ask the ID by sending email to them.
I hope this could help You.
Once again, thanks for the issue.

fixed https://github.com/semplon/GeniXCMS/commit/d885eb20006099262c0278932b9f8aca3c1ac97f


Page Menu: Problem with non english language

Change the icon chooser to use ID instead of TITLE.
Because TITLE only works in english.
Changed the icon 'eye-open' and 'eye-close' for 'eye'.
Changed the icon 'off' for 'power-off'.
Signed-off-by: Josep Rius Font<EMAIL_ADDRESS>

hi!


How could I access to the different items (for example an ImageView) inside of the slides?

I tried with
getPager().findViewById(R.id.myImage);
or
getSlides().get(i).getView().findViewById(R.id.myImage);
I am not able to find the way to access them, and I need to implement different items dynamically.
Thanks in advance and congratulations for your work! :)

If you need to modify a layout dynamically, may I suggest creating your own slides and then referencing your IDs. This would be a cleaner solution (IMO).
As for how to target the library IDs, I haven't tried before so this will be a shot in the dark -- have you tried getting an instance of the fragment and moving from there?

I tried but I didn't know how to do it correctly... It's not so easy as could seems, at least for me. Could you please help me with this?
Thank you!!

I was able to perform programmatically a "next click" by calling
((ViewGroup) getSlides().get(5).getView().getParent().getParent()).findViewById(R.id.next).performClick();
However, this looks awful and is most likely not the right way to do this, but maybe it helps you.

I don't know if this is still relevant, but you should be able to create a custom Fragment similar to the AppIntroCustomLayoutFragment and access the view hierarchy over there:
https://github.com/AppIntro/AppIntro/blob/master/appintro/src/main/java/com/github/appintro/AppIntroCustomLayoutFragment.kt


Travisci to pypi

As discussed, "I have a .travis.yml file that (hopefully) makes Travis-CI automatically deploy to PyPi and TestPyPi. Getting the conditions right to publish all tags matchhing X.X.X-rcX to pypi test, and tags matching X.X.X to pypi is a bit tricky. Time will tell whether it works as expected. I successfully tested it, but only without those exact conditions."

Bummer, wrong branch.


Batch apply_lse_kernel for online=True

As discussed in #20 , this PR fixes online by batching apply_lse_kernel and running the fully-vectorized computation on a batch of shape n * batch_size or m * batch_size (depends of the axis) instead of n * m. Minor inefficiency comes from that this approach computed the kernel application for extra {n,m} % batch_size points, given that result of each iteration of jax.lax.scan must have the same shape.
@LaetitiaPapaxanthos there are 2 points I am unsure how you want to handle:

[x] shall the backward compatibility be retained and allow backward=True? In that case, we'd need to use some default value, that can either be fixed or depend on the number of points (from our benchmarks, value of 1024 seems to work well) UPDATE: online=True is the same as online=1024
[x] currently, the batch size is the same when using axis=0 or axis=1, but this could be done in axis-specific manner UPDATE: kept the same batch size for both axes

TODOs:

[x] add new tests (and depending on the 1st point above, might need to adjust old tests where online=True)
[x] update docs

closes #20

There was a bug which caused the coupling/marginals not to match online=False (neither tests here or running the tutorial notebook caught it for the particular values of online), should be fixed now (added a test for this + 2 more for jitting); locally tests pass (but would be great to enable CI on PRs).
Performance-wise, should even be slightly faster, since apply_lse_kernel doesn't do any extra work (985.29s for a coupling of shape (131072, 65536)). As far as corner-cases, there should be tests for them (batch size of 1, n, m and some prime number).

Thanks a lot Michal! this is fantastic.


source_data at converter init

source_data is a dictionary with NameDataInterfaces as keywords, not a list to be unpacked

I think I'd rather it be defined by the signature of the constructor. What is the advantage of having it this way?


Hello, there is a mistake in the operation code. I would like to ask you for advice.

Run your code, I just change the imported model into my own training.

Then you run this error according to your method. How do I change it, please?

It looks like you're using your own custom model. Swapping out the ImageNet weights is just the first step. You now need to remove the code that decodes the ImageNet predictions and instead returns whatever your own custom predictions are.

@jrosebr1  Thank you very much for your reply. I am a beginner and I am a little childish. So do I need to change this part of the code?

I looked at it, feeling that there was something wrong with this part. I would like to ask you how to change it. Be deeply grateful.

You need to replace imagenet_utils.decode_predictions with whatever function/method you are using to decode the predictions from your model. I assume you've already tested your model on single images and examined the output to ensure it's correct. Do the same thing here only your results need to go into the results dictionary.
Take your time, work slow, and include debug print statements to help you out along the way.

@jrosebr1
Ok, thank you very much. My model is classified into 10, and the label is 0 to 9. Has been tested, input a single image, the prediction is correct.
I still don't know what to change the part of imagenet_utils.decode_predictions.
0.0

I would suggest reading my deep learning blog posts on my blog, pyimagesearch.com. In particular, this one on training your own custom CNN with Keras will help you:
https://www.pyimagesearch.com/2018/04/16/keras-and-convolutional-neural-networks-cnns/
Notice how I am able to predict actual labels and their probabilities. You should be able to do the same with your code. Like I said, take your time, go slow, and debug every step of the way.

Ok, thank you very much

@jrosebr1
Thank you very much for your reply again. I have the complete prediction code, and can successfully execute and predict correctly. The problem is that I don't know how to modify the part of imagenet_utils.decode_predictions you said to fit my model.
My model is a simple number 10 classification, I hope you can tell me more details about this novice.
Thank you very much

Hey @Qsongl, please refer to my previous reply. Be sure to go through my tutorials. They are meant to help you get started, even as a novice. Learn how to make predictions on your own data. If you can make predictions on your own data, you'll see that you don't need the imagenet_utils.decode_predictions.
Again, go through my tutorials and take the time to learn.   Take the time to educate yourself on the steps in between.

@jrosebr1 ，Ok, thank you very much

Hey @jrosebr1 ，I have new puzzles。
If the server is running remotely or on a different machine.How can I run simple_reruest.py on another computer to get the predicted results?
Just modify this code?

Or you want to configure other files and change the code in other places.


CI: Test on Node.js Active LTS v16

Since Node.js v16 is LTS since 2021-10-26 we want to add it to testing.
https://nodejs.org/en/about/releases/

Re: command-line option, it might be easier to set it via an environment variable:
NODE_OPTIONS="--max-old-space-size=2048"

Done in https://github.com/prisma/prisma/pull/10020


add missing features from the original daterange component

I tried to add some missing features form the original date range component. These features were missing:

showWeekNumbers
showISOWeekNumbers
showDropdowns
minYear
maxYear

For the week numbers:
I tried to add translations as best as I could for the European languages. But I have no clue how to derive a single character week indicator for ar, zh_CN and zh_TW. So I leave them out to fallback to English.
For the dropdown:
I added select element styles which look like the standard Filament ones. These are different from the timepicker select elements. I wasn't aware if you follow a style guide for this.
buttonClasses:
I also tried to implement the options for buttonClasses, applyButtonClasses and cancelButtonClasses. Unfortunately, that didn't work so well. I found out that these are overwritten in the plugin.js. It looks like you patched the original JavaScript component at this point. Therefore I have not implemented these three options. They are also not really necessary. There are enough ways to change the appearance of the buttons with mechanisms available in Filament.
Screenshot of the changes:

Thanks !


Story: Create Hunt page

Summary
The Hunt page is the page that the user will be interacting with to complete the hunt.
Initial design thoughts:

Acceptance Criteria

[ ] User able to jump between clues
[ ] Clue Viewer
[ ] Mobile Friendly

I might want to push this back onto the backlog and just stub out something that I can use to get the data flow correct? Designing the UI to be both desktop and mobile friendly might take a bit more work for the MVP.

I might want to push this back onto the backlog and just stub out something that I can use to get the data flow correct? Designing the UI to be both desktop and mobile friendly might take a bit more work for the MVP.


Add opt-in usage of sidebar in NavigationStack/NavigationView

This is a fantastic library and just the thing I was looking for recently.
I am building a macOS app and I'm working on a refactor of Setting to allow the use of the sidebar as the top level, very much like how macOS Ventura's System Settings does:

It started as a small refactor (WIP) of the SettingExample project to use NavigationView with a sidebar instead of TabView:

But then I realized it would be much nicer if the sidebar was actually an opt-in feature of Setting. The reason is that right now, the text search function only searches within the scope of the current top-level item selected, not across all of them at once.
Additionally, in macOS Settings, the search bar is positioned within the sidebar (which doesn't really work on macOS) and its text search filters the sidebar contents during searching.

Good points. The tab bar was supposed to just be for demo purposes — there's 4 tabs that each contain a separate instance of Setting. I was trying to mock up different scenarios where you'd use the library.
Instead, maybe the sidebar should contain the top-level list of settings, like this?

It'll be a master-detail presentation style. This is possible in iOS 16 / macOS Ventura using NavigationSplitView.

I'm trying to maintain current compatibility if possible so I'm avoiding NavigationSplitView for the time being.
I have a workable prototype now. Just polishing a few things and testing.

I'm going to put a pin in this and circle back later - there's other projects needing attention. If you feel inclined to attempt implementing any of this feel free of course. I love the concept of this library and you've done really great work. I think the extra touch of making it truly feel at home on macOS could definitely take it to the next level.

@orchetect can you share the refactoring work you did? Sounds like a great idea, I'm trying to build something with the same UI right now and also finding it difficult to refactor my own fork.
Happy to look at picking up where you left off if you can share a link.

@DanBurkhardt I didn't get very far at the time. Got pulled onto other projects and also ran into some roadblocks that were making it evident that a proper refactor to add macOS look and feel was going to be a lot more work than it seemed.
I don't think there's anything useful in my old fork honestly. It would be best to just fork and start from scratch.

I actually figured it out last night, how to force the thing to present as a Swift UI view with NSHostingController, and properly navigate with a back button / maintaining the navigation stack.
Will link to my fork after I clean
it up and ship it, it's a little hacky and tbh I don't fully understand why it works, but it does.
https://github.com/aheze/Setting/assets/14014682/d42e10d7-3c8d-4965-8cf3-746e38862574


Accessing external data source from inside my dockerized app

I followed the steps and created a dockerized spring boot  app which makes an external webservice call and pushes the response to redis-data store. Any pointers, what other steps i need to do enable my app to insert the data to my redis data store running in my host. I gave the ip address of the host explicitly to see if it works.

Did you look for the IP address that docker assigns to your host (e.g. see here http://stackoverflow.com/questions/17770902/forward-host-port-to-docker-container)?


Level2

not ready yet!

Codecov Report

Merging #204 (d35986c) into master (25011c7) will increase coverage by 0.74%.
The diff coverage is 78.02%.

@@            Coverage Diff             @@
##           master     #204      +/-   ##
==========================================
+ Coverage   85.39%   86.13%   +0.74%
==========================================
  Files          50       55       +5
  Lines        4313     4783     +470
==========================================
+ Hits         3683     4120     +437
- Misses        630      663      +33

Impacted Files
Coverage Δ

stixcore/idb/manager.py
57.53% <ø> (ø)

stixcore/processing/TMTCtoLB.py
61.22% <0.00%> (-1.28%)
:arrow_down:

stixcore/processing/pipeline.py
50.00% <0.00%> (-0.95%)
:arrow_down:

stixcore/products/levelb/binary.py
89.74% <0.00%> (+16.02%)
:arrow_up:

stixcore/processing/LBtoL0.py
65.65% <40.90%> (+14.56%)
:arrow_up:

stixcore/processing/L0toL1.py
68.05% <47.05%> (-2.44%)
:arrow_down:

stixcore/products/level0/quicklookL0.py
84.63% <57.60%> (-9.18%)
:arrow_down:

stixcore/products/common.py
86.59% <63.63%> (-0.76%)
:arrow_down:

stixcore/products/level2/quicklookL2.py
66.66% <66.66%> (ø)

stixcore/processing/sswidl.py
71.64% <71.64%> (ø)

... and 23 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 25011c7...d35986c. Read the comment docs.

I am very excited to see that this library is being developed in Python to process the STIX data. Is this going to become the primary path for STIX or will IDL remain the primary? Are the results here being compared to the IDL processing?

@ehsteve this is not a "public" library that scientists should use to do analyses. This is a processing pipeline that will publish FITS file to the ESA archive.
I guess what you are looking for is this one: https://github.com/samaloney/stixpy
But yes the goal is that it will become maybe not primary but at least equal to IDL.


Next/Previous Getters

~Fix: Have BadiDate nextMonth and previousMonth preserve day~
Fix: Have BadiDate ~nextDay and~ previousDay set day to ~1 and~ 19 (or 4 or 5) ~respectively~ upon overflow
Testing: Improve coverage (LocalBadiDate getters)

~I recognize your nextMonth/previousMonth may have been indeed intended to set the day to 1, but it struck me as counter-intuitive, so offering as a "fix". ~
~If you indeed want it to set the day to 1, I can undo the changes and just provide the tests (after I have a chance to amend), but thought I'd raise the concern.~
~(However, when moving into Ayyám-i-Há, since the day could not be preserved (unless it were 1-5), in that case, it did seem to make sense to set to 1 (though it also seemed like it might make sense to skip Ayyám-i-Há altogether since it's not exactly a month).~

Thanks but yes, setting the date to 1 is indeed intended and required for one of my own use cases

Ok, I've amended, but it still seems in the case of previousDay, that there should be a fix to use day 19 when going back to a previous month, as it seems particularly odd for the day of previousDay to stay at 1.

You're right, that one's my oversight, thanks! It still needs special handling for the case
`(new BadiDate({year: 177, month: 19, day: 1})).previousDay though

I've amended to handle those Ayyám-i-Há cases (4 or 5 days).


Explicitly call out listKind

Codecov Report

Merging #860 (21c09f4) into main (13b37f0) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #860   +/-   ##
=======================================
  Coverage   67.64%   67.64%
=======================================
  Files         113      113
  Lines        5013     5013
=======================================
  Hits         3391     3391
  Misses       1259     1259
  Partials      363      363

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 13b37f0...21c09f4. Read the comment docs.


CM-1278: Prevent mousewheel in input of type number

Jira Ticket:
CM-1278
Description:

Prevent mousewheel in input of type number

Neat. I've never seen anyone use onWheel before


python310Packages.blebox-uniapi: 2.0.2 -> 2.1.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python310Packages.blebox-uniapi is: "Python API for accessing BleBox smart home devices"
meta.homepage for python310Packages.blebox-uniapi is: "https://github.com/blebox/blebox_uniapi"
meta.changelog for python310Packages.blebox-uniapi is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 2.1.0 with grep in /nix/store/n9bs79vh7vcxaknj9q423ad11dz53284-python3.10-blebox-uniapi-2.1.0
found 2.1.0 in filename of file in /nix/store/n9bs79vh7vcxaknj9q423ad11dz53284-python3.10-blebox-uniapi-2.1.0

Rebuild report (if merged into master) (click to expand)

3 total rebuild path(s)

3 package rebuild(s)

First fifty rebuilds by attrpath
home-assistant-component-tests.blebox
python310Packages.blebox-uniapi
python39Packages.blebox-uniapi

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/n9bs79vh7vcxaknj9q423ad11dz53284-python3.10-blebox-uniapi-2.1.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python310Packages.blebox-uniapi https://github.com/r-ryantm/nixpkgs/archive/ded34e3d1014572471690ecaaa2adfd6b1ec19f1.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/n9bs79vh7vcxaknj9q423ad11dz53284-python3.10-blebox-uniapi-2.1.0
ls -la /nix/store/n9bs79vh7vcxaknj9q423ad11dz53284-python3.10-blebox-uniapi-2.1.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package marked as broken and skipped:

home-assistant-component-tests.blebox

2 packages built:

python310Packages.blebox-uniapi
python39Packages.blebox-uniapi

Maintainer pings
cc @dotlambda for testing.

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

1 package marked as broken and skipped:

home-assistant-component-tests.blebox

2 packages built:

python310Packages.blebox-uniapi
python39Packages.blebox-uniapi


Route with query params

Hi,
how can I set up url like
/article?id=23&search=23...
I have to get all query parameters, but I don't know exactly which I will get.
Thanks!

Set them as variables in the url. If you want to check for all you could do something like url: '/article?:params but really you should know what params you are looking for since you will have to use them right?
https://gist.github.com/christopherthielen/b3fc0304b737a4bf8ec9


修改密碼頁面

我把它和 profile edit 放在一起。看起來像是 Bootstrap tabs，但其實不是。修改密碼和 profile 是兩個頁面。

Current coverage is 94.91%

Merging #55 into master will decrease coverage by -0.35% as of a769ee9

@@            master     #55   diff @@
======================================
  Files           25      25
  Stmts          528     531     +3
  Branches         0       0
  Methods          0       0
======================================
+ Hit            503     504     +1
  Partial          0       0
- Missed          25      27     +2

Review entire Coverage Diff as of a769ee9

Powered by Codecov. Updated on successful CI builds.

@uranusjr 要不要改 pull request 到 dashboard-ui，我現在都在這個 branch 整理頁面。


⚠ TorrentLeech has degraded performance

In fd61ec0, TorrentLeech ($TL) experienced degraded performance:

HTTP code: 200
Response time: 2119 ms

Resolved: TorrentLeech performance has improved in ab72a10 after 14 minutes.


Add SOV handler

note: this contract is to be used for paying out SOV rewards to users. Users whould be able to claim their rewards themselves if they can prove that it's approved by sufficient signers.


Fixes #32 - error prone zsh syntax

Fixes #32
The old syntax started erroring with zsh 5.4.1.  This new change is confirmed working.  Note that the chpwd function used does need to be declared (it seems) before the others.

Thanks!