Setup Layout/MultilineMethodCallBraceLayout

Is your feature request related to a problem? Please describe.
Allow to move closer brace in the new line
Now we can do it only via this approach
  let(:xero_api) do
    instance_double(ThirdPartyApplication::Xero::AccountingApi,
      tenant_uid: tenant_uid,
      api_client: api_client)
  end

BBut I wan to see
  let(:xero_api) do
    instance_double(ThirdPartyApplication::Xero::AccountingApi,
      tenant_uid: tenant_uid,
      api_client: api_client
    )
  end

Guys, what do you think about this cop? (Link: https://docs.rubocop.org/en/latest/cops_layout/#layoutmultilinemethodcallbracelayout )
By default, we use symmetrical style so this variant is correct
  let(:xero_api) do
    instance_double(ThirdPartyApplication::Xero::AccountingApi,
      tenant_uid: tenant_uid,
      api_client: api_client)
  end

For adding, brace on new line we should write something like this
  let(:xero_api) do
    instance_double(
      ThirdPartyApplication::Xero::AccountingApi,
      tenant_uid: tenant_uid,
      api_client: api_client
    )
  end

In new_line style, we'll add brace in new line each time, and in this case too
params.require(:post).permit(:title, :description,
  :image_url, :tags
)

I still prefer a new_line style but both variants look good to me

new link

Let's continue with the default value (5 votes vs 2 votes)


ImportError: No module named nflgame

Alright, so I've installed using
pip install nflgame
Just to make sure I was using the right version of python when I issue python --version I get Python 2.7.11
However I'm getting the ImportError: No module named nflgame error. Both when I create a .py file, and if I try to just run it in python.
root:~# python
Python 2.7.11 (default, Sep  7 2016, 22:22:41)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import nflgame
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named nflgame

Similarly if I try to just do nflgame-update-players I get nflgame requires Python 2.6+ and does not yet work with Python 3 You are running Python version 3.5 But by looking in my /bin/ folder I can see that python is an alias for python2 which is an alias for python2.7
Any suggestions?

That error message is definitive and means your environment is doing something you don't expect. That error message is produced from this code:
if sys.version_info[0] != 2 or sys.version_info[1] < 6:
    print("nflgame requires Python 2.6+ and does not yet work with Python 3")
    print("You are running Python version {}.{}".format(
        sys.version_info.major, sys.version_info.minor))
    sys.exit(1)

I don't know what's wrong with your setup, but it appears you installed nflgame using Python 3.5. Perhaps you use pip instead of pip2.7 or pip2? I don't know.

While I do not doubt that python does in fact appear to be aliased to python2/python27, I suspect plain old pip is not aliasing to what you think it's pointing to.
pip --version should tell you all you need to know (at least it does for me in Windows)
C:\Users\User>pip --version
pip 8.1.2 from d:\python27\lib\site-packages (python 2.7)

@ochawkeye, @BurntSushi  Good call, looks like it is an issue with pip, I'll give it a try with pip2.7.
Is there a way to uninstall what I've got currently? And do I even need to?

pip uninstall nflgame

Maybe this is stupid, what should I do to change which pip install I have? I can see in usr/local/bin/ I have a pip, pip3, and pip3.5 All of which give the same information when I run a version.
However if I go through the normal pip install and issue python get-pip.py (where python aliases to python2.7) I get:
Traceback (most recent call last):
  File "get-pip.py", line 19177, in <module>
    main()
  File "get-pip.py", line 194, in main
    bootstrap(tmpdir=tmpdir)
  File "get-pip.py", line 82, in bootstrap
    import pip
zipimport.ZipImportError: can't decompress data; zlib not available

Did you compile that version of Python 2.7 yourself? It sounds like it's missing zlib because it's custom: https://github.com/pypa/pip/issues/1919

Installed zlib following the commands suggested in that issue, still getting the same error.

Solved the issue. Also had to install HTTPSHandler.


Tuple Elements Inverting in Order

Aim
If t = (a, b), then t.0 should be able to access a, and t.1 should be able to access b.
But it seems the opposite is happening after we updated to 0.9.0, where t.0 is accessing b.
Expected Behavior
t.0 should still get a.
t.1 should still get b
Bug
As mentioned above, the reverse is happening for the types/fraction repository.
To Reproduce

clone this
cd types/fraction
look at the test_split and test_split2 test cases (the only ones not commented out for now)
they are calling the split_approx method from fraction.nr which returns (integer_part, fractional_part)
but in test_split and test_split2, sp.0 is giving the fractional part, and sp.1 is giving the integral part, as evidenced by it giving isInteger() as true, the opposite of what was happening in previous Noir releases

Installation Method
Binary
Nargo Version
0.9.0
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response

but in test_split and test_split2, sp.0 is giving the fractional part, and sp.1 is giving the integral part, as evidenced by it giving isInteger() as true, the opposite of what was happening in previous Noir releases

Is this not expected by the code snippet you linked? In test_split there is:
    let f = fraction::toFraction(true, 7, 3);
    let sp = fraction::split_approx(f);
    assert (fraction::isInteger(sp.1));

So f = 7/3. Looking in split_approx we have:
     if f.sign {
        let fl = floor(f);
        let f2 = subtractFraction(f, fl);
        ...

        if ((f.num <<PHONE_NUMBER>) & (f.den <<PHONE_NUMBER>)) {
            (f2, fl)
        } else {
            // (branch should not be taken)
        }
    } else {
        // (branch should not be taken)
    }

So (f2, fl) is returned which is expected to be (1/3, 2). Perhaps this code was changed and (fl, f2) was meant to be returned instead?

but in test_split and test_split2, sp.0 is giving the fractional part, and sp.1 is giving the integral part, as evidenced by it giving isInteger() as true, the opposite of what was happening in previous Noir releases

Is this not expected by the code snippet you linked? In test_split there is:
    let f = fraction::toFraction(true, 7, 3);
    let sp = fraction::split_approx(f);
    assert (fraction::isInteger(sp.1));

So f = 7/3. Looking in split_approx we have:
     if f.sign {
        let fl = floor(f);
        let f2 = subtractFraction(f, fl);
        ...

        if ((f.num <<PHONE_NUMBER>) & (f.den <<PHONE_NUMBER>)) {
            (f2, fl)
        } else {
            // (branch should not be taken)
        }
    } else {
        // (branch should not be taken)
    }

So (f2, fl) is returned which is expected to be (1/3, 2). Perhaps this code was changed and (fl, f2) was meant to be returned instead?

Thanks. I don't know how and when the return tuple got inverted. Good catch. I feel bad for unintentionally having you debug my code. Apologies good sir :)


How to locate OneNote app files Ubuntu (snap)/ App opens up to a white screen

Hi Anuj,
I installed "OneNote Desktop Client for Linux" using snapd.
$ sudo snap install onenote-desktop
After a 2-3 weeks of use, now the application is unable to open successfully and only shows white empty screen.

Is there a way to recover my notes on the machine? I can't recollect my outlook login info. So I cannot access onenote over web using outlook account.
Else, is there a workaround to get this working?
Else, can I transfer any files to another Ubuntu machine and read my notes?

OS: Ubuntu 20.04.3 LTS
GNOME Version: 3.36.8
Thanks for your time!

Hi, this should be an easy fix actually. I am guessing something may have caused the last visited link to be stored incorrectly. Issue #21 is kinda similar, and the fix is the same. Here are the relevant steps to correct this.

If you are using .snap or onenote-desktop from snapcraft

Close the app
Go to ~/snap/onenote-desktop/current/.config/OneNote/
Delete the config.json file
Restart the app. It should go back to the OneNote notebook selection screen

Since you do not remember your login info, do not delete the entire ~/snap/onenote-desktop/current/.config/OneNote/. If you do that the app will reset and you will not be able to log in again. As far as I know, these notes are not stored locally in human readable formats (but i may be wrong). You need to be connected to OneNote web in order to access the notes.
I was working on an update that makes such resets easier, back then. It should be in the alpha channel, but it was a buggy fix, so it never made it to a stable release. Recently, I have been more focused on a python+gtk alternative to Electron. Which in my experience has been less resource hungry. In hindsight, i probably should fix my existing release before the full overhaul..
Anyway, let me know if this works for you, or if you have trouble finding the .config/OneNote folder

Excellent!
Followed 4 steps mentioned above. I could get to the notebook selection page safely.

Great, glad I could help


Change Icon for "Create Brokering Run" Button

Description
Currently, the "Create Brokering Run" button on the Order Routing app's Brokering Run page displays an arrow icon (->). This enhancement proposes changing the icon to a '+' icon for better clarity and alignment with user expectations.

Related issue : https://github.com/hotwax/order-routing/issues/233

I’ve fixed the issue in PR #275  where I changed the arrow icon (->) for the "Create Brokering Run" button to a '+' icon. This update improves clarity and aligns with user expectations, as suggested.
Please review the changes and let me know if any further adjustments are needed!

Changes verified and working fine in release v1.7.0. Hence, closing this issue.


Fix the demo figures in

Codecov Report

Merging #98 into master will decrease coverage by 0.05%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #98      +/-   ##
==========================================
- Coverage   79.73%   79.68%   -0.06%
==========================================
  Files          72       72
  Lines        3603     3603
==========================================
- Hits         2873     2871       -2
- Misses        730      732       +2

Impacted Files
Coverage Δ

fastNLP/fastnlp.py
90.14% <0%> (-1.41%)
:arrow_down:

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 fdc8f7b...5f4b182. Read the comment docs.


How to train a binary task?

Dear author. Thanks for replying me.  That is only re-train the last layer. How to do with it? I'm new in FER. Can you tell more details?

Dear Angel113110,
Unfortunately, I cannot give you this level of personal support due to time constraints. Nevertheless, the answer to your question is the script main_affectnet_continuous.py.
I recommend checking out blogs that give tutorials of machine learning such as:
https://machinelearningmastery.com/
https://www.pyimagesearch.com/
Once again, thank you for your interest and message.
All the best,
Henrique Siqueira


Performance stats

Last in a series of PRs  to add robust performance statistics-tracking capabilities to Arcs.
Diffbase #4632

You can view only the changes for this PR by choosing this option in the "Files changed" tab:


Carousel styles not reliant on autogenerated classes

From our discord: The Carousel component auto-generates some css class names. We used these class names in our CSS, however, when we deploy, the deloyed Carousel autogenerates different class names for the same elements. To solve this issue, we need to change the CSS selectors for those rules to rely solely on the classes/information that won't change from our local system to our deploy.

@Jhappy77 Can you verify whether this issue has been fixed?

It works! Feel free to close this


Remove "volumes" from Task before beta

Expected Behavior
Task authors should declare when they need files (workspaces) + block devices (#2057 ) but they should leave it to the TaskRun to provide these.
Actual Behavior
Having volumes as a field in Tasks means that Task authors are dictating at Task authoring time what volumes will be provided to a Task.
Additional Info
We should remove Volumes from the TaskSpec before beta (if we can) to indicate it is behavior we don't want to support going forward.
We could also prevent people from using the volumeMounts and volumeDevices fields in a step as well but that feels like it's not the worst thing to leave in since it's not yet runtime information? Open to other thoughts tho.

/area api
/kind cleanup

I like that idea, I wonder if we should do this for v1alpha2 directly (hence having this in 0.11) :wink:

Putting it in the milestone to make sure we discuss it quickly :angel:

Apart from the block device case the only other case I can think of is volume as a task implementation detail that we don't allow customization of... but that sort of weak.

That's a good point @kav ! Do you have a sense for whether you'd rather declare that kind of information at Task authoring time, or at runtime?

various relatively static configuration (.netrc, repositories.yaml) from secrets into specific directories in specific task steps so tools find them seamlessly?

This is a usecase for workspaces that I've been thinking about a lot recently!  It would be cool if you could define workspaces in a TaskRun that are not mentioned at all in a Task and then Tekton would include those workspaces in the step containers as well.  Static configs from secrets are a great use case of where this could be useful.  I was thinking about it in terms of the .ssh directory but it's great to see some other examples where this might also be useful.

Another use case maybe is sharing data between sidecars and steps, ala the docker in docker example https://github.com/tektoncd/pipeline/blob/master/examples/taskruns/dind-sidecar.yaml

That's a good point @kav ! Do you have a sense for whether you'd rather declare that kind of information at Task authoring time, or at runtime?

Some of it is authoring related information around configuring this task for this environment and some falls under runtime. My taskruns are generated via triggers so I could put "configuration" info there?
Not sure that addresses step volume mount location being task side info. In essence the Task, by virtue of owning the container, is really the only one that can decide the "right" place for an ssh key or a netrc file.
Might be worth defining some things, and apologies that I'm bringing Helm to the party so might muddle things. You all might have different terms. Taking a stab, feel free to stab back ;):
There is static context which is just the fixed content authored into the task; i.e. build a container, run a jenkinsfile, run a gitlab build file.
There is environment context which is all the stuff the task needs to play nice with the servers it touches, this is fixed across all runs but multiple installs of the same task could vary here. It tends to be very specific to the static context. For example repositories.yaml needs to go to in one directory if the step uses helm2 and another for helm3. Each of these environment objects is needed only by some steps based on what those steps do. I don't really mind them hanging about but I could see not wanting all steps to have helm push permissions for example. I drive all this via Secrets linked to authored volumes since it's almost all credentials. So it's a bit "half at authoring, half at install/run time". Most end up in very specifically placed file or another on a per step basis so steps can seamlessly rely on them.
There is build context which would include source and run name, pr url , author, and all the stuff that varies by taskrun. Today for me this all comes through the TriggerTemplates.
I could use TaskRun config to push environment context I suppose, it feels like mount points would still need to be in the task. I like it in the Task since it corresponds to step specific info. Locality of change is the same. To take the helm case; imagine I have a Task that was using Helm 2 and I'm switching to Helm 3. Today, with secrets and volumes, I open the Task object and change the mount for the volume as well as the container image for that step and boom I'm done.
I also don't have any Pipelines or PipelineRuns; haven't needed them as yet but I suspect the same applies.

From WG it sounds like we should mark this as deprecated before we wholesale remove.  If we are going to do this then I will add a notice to the 0.11 release.

Decided not to remove it, closing this for now, can open more issues to continue to look into volumes in future.

/reopen
/assign
We want to revisit the decision not to remove volumes from Task spec before releasing our v1 api and committing to supporting it for at least a year (following our compatibility policy), especially since there's not much detail on why the decision was made not to do this for beta.
I'll look into this and either open a TEP proposing this change, or update this issue with a summary of why we don't want to do this.

Let me know if you'd like a deeper dive on the example above. It's been a few years and I'm not working on that at the moment but happy to discuss the conceptual framework at a deeper level at the least.

Looking at the details and the docs I think so. I might be repeating myself a bit to warm my thinking up so apologies if this is a repeat of the above. My biggest worry was maintaining a boundary between

The config that needs to be provided to build an app of X type
The config that needs to be provided to build this specific app Y that is of type X
The config that relates to this specific build run Z of app Y that is of type X

To dig in a bit on why the distinction above:

As an expert in building (go, node, helm, etc) apps I can create Tekton resources that describe how to optimally build test and publish those apps. Everyone can contribute and share best practices.
As someone building a Tekton pipeline I can leverage 1 and provide my organizations specific details (e.g. registry push credentials) without deeply understanding the ins and outs of 1. Workspaces
As someone building a Tekton pipeline I want to encode run details into my build process, track my runs in kubernetes, report on run details etc.

Workspace is potentially the interface boundary between 1 and 2 which means as a author of 1 I'd need to provide a template Workspace to a consumer for them to fill out with sensible defaults they could match for their pvcs and secrets and whatnot. Or they could override as needed if they used different names, that's probably reasonable and not an uncommon pattern in the space.
Note: It might be interesting to add a slice of "on a platform" to the above taxonomy as it sounds like that's what the factorization is about.

I still think this is the right long term direction for volumes and workspaces, but there are a few use cases for volumes not currently being met by workspaces. We should try to address these gaps (or think more about what we want our api for volume/volumemount-like things to look like as a whole), but I think this requires a bit more thought and I don't want to rush through it just so we can remove volumes before v1. So I think volumes can stay in our v1 api, although of course I'm open to discussion here.


fix type for globalstate -> fix CI

Summary
Fix import globalstate, fix CI lint
problem introduced in https://github.com/mattermost/mattermost-plugin-playbooks/pull/1245, pr was started long time ago and import style changed (and webapp version)
Ticket Link
no ticket
Checklist

[ ] Telemetry updated
[ ] Gated by experimental feature flag
[ ] Unit tests updated

Dang I briefly considered this but saw a bunch of other mattermost-redux/types/... imports and dismissed it without actually checking. Thanks!

it's a bit tricky, because only part of the mattermost-redux was moved to @mattermost/types


Add frame advance to media controls

Frame advance is implemented in both Sharktopoda and vcr4j-shartopoda. Need to add it to the UI

Added frame advance for sharktopoda player.


Update podspec

Please, update the platform version in .podspec to 9.0 to avoid incompatibility issues with SwiftMoment (currently min platform is 9.0)

Please update it.
SwiftMoment depends on iOS 9.0+
Thanks


Query related to Building Raw transaction

I'm following this tutorial (from Wiki section of this repo)
I've following questions -

As mentioned in another wiki article (here), Source of the transaction is considered as 1st Input. Let's say I transfer X coin to an address (A). A new utxo is created. Now A has sent Y coin (Y < X) to another address B. After this A will not have any Utxo, how can A spend the remaining (X - Y) coin at this point?
Do I need to provide specifically an input with tx referencing Omni tx, or any valid Utxo will work, which is an utxo for Source Address for new transaction that I'm building.
The construct payload part (this), how can it be done without using omnicore? JS library of bitcoin provides a method to add OP_RETURN output (bitcore, bitcoin-js). Can I do the omni_createpayload_simplesend conversion in Js (probably converting string to a buffer and feeding it to the bitcore/bitcoinjs lib.

Hi @enVolt,

A needs a fresh UTXO. Either via a new transaction, which funds A explicitly, or as alternative: maybe during the first transaction, there could be some BTC sent back to A to avoid the case in the first place?

Balances on the Omni Layer are associated with scripts/addresses and any UTXO will work, as long. The first transaction input is used to determine the token sender.

Omni Layer payload outputs have the following structure:

OP_RETURN 0x6f6d6e69[actual payload]

0x6f6d6e69 serves as marker.
To construct the payloads manually, you can use the following tool to play around:
http://builder.bitwatch.co/

Thanks @dexX7 .
If this is the case -

Balances on the Omni Layer are associated with scripts/addresses and any UTXO will work, as long. The first transaction input is used to determine the token sender.

There is no way to consolidate simplesend, right? (Though it's clear from the doc, just to confirm) If it's doable it can help me in saving the mining fee.

Consolidate like "send tokens from many different sources in one transaction"? This is currently not supported.


[Core] Adding platform class

Adding a platform class which wraps some objects we tend to carry around everywhere. The platform class wraps the occa::device, base occa::properties, global settings, global MPI comm, and the linear algebra module. Since it's the first thing any solver will need to create, it also prints a cool libParanumal banner!
Some other noteworthy change:

The buildKernel routine has been move to a method in the platform class. More compact and safe this way.
A reference to a mesh object is no longer stored in the solver_t class. This is necessary in order to use things like the linearSolvers from parAlmond later, since parAlmond has no access to a underlying mesh.

The build is successful but the code coverage went down.
I like the structuring.
Is this a good moment to pull the linAlg, timeStepper, and linearSolver into libs ?

The drop in coverage is surprising. The change is largely cosmetic for argument passing. There were some code sections removed in ogs and paralmond where they were setting up the base occa::properties and they just find it in the platform class now. Maybe removing those sections dropped coverage.
Speaking of the linAlg, timeStepper, and linearSolver, I agree they should be put in separate folders so their modularity is implied. libs is starting to look a bit strange to me though. Moving these three modules would put something like >90% of the non-solver code in the libs folder, and core would only have a handful of src files. Does it make sense to instead combine libs and core, keeping the build system as it is? (I.e. make and link separate libs based on what the solver requests)

I agree that core and libs is a slightly odd partition.
I would say nuke code. Add libraries for timeStepper, linAlg, linearSolver to libs. The remainder could be libs/core

ah ok that would work

LGTM. Squash & merge.


Fix allowed values in StringArgument mentioned in the document (#579)

https://github.com/JorelAli/CommandAPI/issues/579

thanks!


Preheat can't process images from private project correctly

Bug report:
I have a private project in the registry, and want to preheat some images:
# curl --request POST 'http://<IP_ADDRESS>:8080/api/v1/jobs' --header 'Content-Type: acation/json' --data '{    "type": "preheat",    "args": {        "type": "image",        "url": "https://dockerhub.test.com/v2/base/test/rc/ct/bigdataplatform/confront/cache/manifests/8e915"    }}'
null

At the same time, from manager logs I get the error report:
Error #01: mediaType in manifest should be 'application/vnd.docker.distribution.manifest.v2+json' not ''

It seems that the preheat api can't handle private projects correctly.
Expected behavior:
Preheat can handle private projects rightly.
How to reproduce it:
Deploy dragonfly 2.0.1 with helm chart, then preheat some images from private projects.
Environment:

Dragonfly version:  2.0.1
OS:   CentOS Linux 7
Kernel (e.g. uname -a):  3.10.0-1160.31.1.el7.x86_64
Docker:  docker://19.3.14
Kubernetes version:  v1.19.10

[GIN] 2021/10/28 - 10:08:38 | 200 |      98.245µs |     <IP_ADDRESS> | GET      "/healthy/"
[GIN] 2021/10/28 - 10:08:48 | 200 |      52.819µs |     <IP_ADDRESS> | GET      "/healthy/"
[GIN] 2021/10/28 - 10:08:58 | 200 |      48.622µs |     <IP_ADDRESS> | GET      "/healthy/"
[GIN] 2021/10/28 - 10:09:06 | 200 |      43.206µs |     <IP_ADDRESS> | GET      "/healthy/"
[GIN] 2021/10/28 - 10:09:08 | 200 |      67.241µs |     <IP_ADDRESS> | GET      "/healthy/"
[GIN] 2021/10/28 - 10:09:18 | 200 |      43.877µs |     <IP_ADDRESS> | GET      "/healthy/"
[GIN] 2021/10/28 - 10:09:26 | 200 |      66.871µs |     <IP_ADDRESS> | GET      "/healthy/"
[GIN] 2021/10/28 - 10:09:28 | 200 |      38.305µs |     <IP_ADDRESS> | GET      "/healthy/"
[GIN] 2021/10/28 - 10:09:38 | 200 |       49.48µs |     <IP_ADDRESS> | GET      "/healthy/"
[GIN] 2021/10/28 - 10:09:46 | 200 |      39.796µs |     <IP_ADDRESS> | GET      "/healthy/"
[GIN] 2021/10/28 - 10:09:48 | 200 |      43.892µs |     <IP_ADDRESS> | GET      "/healthy/"
[GIN] 2021/10/28 - 10:09:58 | 200 |      69.129µs |     <IP_ADDRESS> | GET      "/healthy/"
[GIN] 2021/10/28 - 10:10:06 | 200 |       41.22µs |     <IP_ADDRESS> | GET      "/healthy/"
[GIN] 2021/10/28 - 10:10:08 | 200 |      40.231µs |     <IP_ADDRESS> | GET      "/healthy/"
[GIN] 2021/10/28 - 10:10:18 | 200 |     130.295µs |     <IP_ADDRESS> | GET      "/healthy/"
[GIN] 2021/10/28 - 10:10:24 | 500 |   73.622869ms |     <IP_ADDRESS> | POST     "/api/v1/jobs"
Error #01: mediaType in manifest should be 'application/vnd.docker.distribution.manifest.v2+json' not ''
[GIN] 2021/10/28 - 10:10:26 | 200 |      49.469µs |     <IP_ADDRESS> | GET      "/healthy/"
[GIN] 2021/10/28 - 10:10:28 | 200 |       55.24µs |     <IP_ADDRESS> | GET      "/healthy/"
[GIN] 2021/10/28 - 10:10:38 | 200 |      55.267µs |     <IP_ADDRESS> | GET      "/healthy/"
[GIN] 2021/10/28 - 10:10:46 | 200 |     108.076µs |     <IP_ADDRESS> | GET      "/healthy/"
[GIN] 2021/10/28 - 10:10:48 | 200 |      55.463µs |     <IP_ADDRESS> | GET      "/healthy/"
[GIN] 2021/10/28 - 10:10:58 | 200 |      47.176µs |     <IP_ADDRESS> | GET      "/healthy/"
[GIN] 2021/10/28 - 10:11:06 | 200 |       73.44µs |     <IP_ADDRESS> | GET      "/healthy/"

@gaius-qi these logs are from gin.log, core.log has nothing need attention. Is this enough?

I use distribution.UnmarshalManifest method unmarshal manifest, your problem hits this error. You should take a look at your registry, why doesn’t it meet the OCI Image Manifest Specification.

I set the same project  to public, the preheat works well.   so how can I get the private project preheated? or how can I get the authorize info to the registry?

I set the same project to public, the preheat works well. so how can I get the private project preheated? or how can I get the authorize info to the registry?

@gaius-qi Maybe we need support with image credential ?

I set the same project to public, the preheat works well. so how can I get the private project preheated? or how can I get the authorize info to the registry?

@gaius-qi Maybe we need support with image credential ?

Dragonfly 1.0 preheat is done in harbor, so theAuthorization header is passed from harbor. I can add user and password fields to do Basic Authentication with the registry and get permissions.

Any update about this issue? @yxxhero

Any update about this issue? @jim3ma

Any update about this issue? @gaius-qi

引入认证header(auth)，类似于docker的config.json

{
	"auths": {
		"https://index.docker.io/v1/": {
			"auth": "Z29vZ2xlaW1hZ2VzOnl4eDkzMDyxOA=="  username:password base64 encode
		}
	}
}

basic auth 获取registry token
https://github.com/dragonflyoss/Dragonfly2/blob/040815b4b7921dfebcc890666f5aa923e1d9cabd/manager/job/preheat.go#L260
增加header去请求，即Authorization: Bearer token， 获取授权token

3.拿第二部的token去获取对应的manifest即可

https://www.srerun.com/article/2021/4/27/21.html

Use library parsing layer to support manifests in different version, refer to #1204 .

@yxxhero So you mean the support of private project is already in the code logic, could you please update the preheat api document with an example ?

@likunbyl I will do this in this weekend.

i have the same problem. I try to set Authorization header in args, but it doesn't work.

@gaius-qi @yxxhero hello 👋 I noticed that the above preheat supports auth wasn't merged into the main branch, or maybe it was reverted? Is there plans to add this back or does this work differently now? Thank you!

引入认证header(auth)，类似于docker的config.json

{
	"auths": {
		"https://index.docker.io/v1/": {
			"auth": "Z29vZ2xlaW1hZ2VzOnl4eDkzMDyxOA=="  username:password base64 encode
		}
	}
}

basic auth 获取registry token
https://github.com/dragonflyoss/Dragonfly2/blob/040815b4b7921dfebcc890666f5aa923e1d9cabd/manager/job/preheat.go#L260
增加header去请求，即Authorization: Bearer token， 获取授权token

3.拿第二步的token去获取对应的manifest即可

这第二步，并在最新的 release v2.1.15中仍未修复，https://github.com/dragonflyoss/Dragonfly2/blob/e847992c90a3143f8b02149f2d85f0b0ae019040/manager/job/preheat.go#L267
针对私仓，www-authenticate的请求需要带上 basic token 才能获取到正确的 bearer token!!


Doesn't work on self-hosted Gitlab

Hi!
Unfortunately this extension doesn't work on self-hosted Gitlab.
Any plans to implement this?
Thanks!

OK, i've checked the extension and noticed that is not even loaded. In settings i see this:

But problem is - you expect the self-hosted site to be domain.gitlab.com while we have our instance on gitlab.domain.com
So it'd be nice to have an option to control this somehow.
Thanks!

Sorry we missed that! Thanks for the PR, I went and merged it and we'll get it into the next release 🥳


trailing dots style with keyword-y names parse error in Sorbet but not Ruby

Input
→ View on sorbet.run
::Loaders::AssociationLoader.
  for(::ConventionsCategory, :pathways)

Observed output
editor.rb:2: unexpected token "for" https://srb.help/2001
     2 |  for(::ConventionsCategory, :pathways)
          ^^^

editor.rb:2: unexpected token ")" https://srb.help/2001
     2 |  for(::ConventionsCategory, :pathways)
                                              ^
Errors: 2

Expected behavior
Ruby accepts this code (and code with other keywords like and and then) in this style, and I expected Sorbet to, too.

Thanks. This is an intentional decision to not support this syntax. There is more information at the error code
https://sorbet.org/docs/error-reference#2001

ahhhh shoot. I read the first paragraph of that error but not the second. 🤦 Sorry for the noise!

FWIW I was able to autocorrect this to leading dots in our codebase with rubocop, but we had 5,433 offenses of trailing dots—we had decided to adopt that specific style because leading dots do not work when pasting code to IRB. In our case, I think type checks are way more important than easy copy-paste, but I'll be looking forward to the potential upstreaming mentioned in #1993.

Note that recent versions of irb support bracketed paste mode, which means irb will detect when the terminal begins and ends a paste event, ignoring any newlines present inside the pasted text.


[Feature]급여명세서를 이용한 교사인증 자동화

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Is this for the next feature? or do we implement it right away?

No, It's for the version 1.1. we can tell this using Milestones


Devop Message should include commit/build/version info

The deployment bot announces in the chat every deployment in the staging swarm (i.e. osparc02) as
 New staging version of oSparc simcore core platform is available here !!!

It has a link to the websit but no information about what is new in this version.
As I user, I would like to have a link to
a) what repo/commit/branch corresponds to this
b) a history or feature list
this way I can for instance ascertain e.g. whether a given bug fix or a given closed feature is actually online or not.

the deployment service shall:

[ ] read the current sha of the deployed services (or read from the docker labels)
[ ] read the sha of the new services
[ ] do a git diff between the old sha and the new one on the git repo
[ ] output the diff result in the notification

Bonus:

[ ] if the deployer crashes it would be nice to notify as well
[ ] if the deployer is re-started it would be nice to have a hint as well

the notifier now outputs the last sha of the deployed services.


Instruct users to enable server in test.exs

Hoping this will help people save some time :D

:heart:


ERROR: -0BIyqJj9ZU: YouTube said: Invalid parameters.

Hi,
While downloading the wavform, I am getting the following errors ,
ERROR: -0BIyqJj9ZU: YouTube said: Invalid parameters.
root        : INFO     5 -0CamVQdP_Y start_time: 0.0, end_time: 6.0
Kindly help.

Hi, I tried youtube-dl https://www.youtube.com/watch?v=-0BIyqJj9ZU works well for me. If this error still exist, then use "try ... except ..." to skip this audio.

Hi, I tried youtube-dl https://www.youtube.com/watch?v=-0BIyqJj9ZU works well for me. If this error still exist, then use "try ... except ..." to skip this audio.


Jdbc doc corrections from PR feedback

Removed application parameters, clarified 1st paragraph reference to Java, fixed to use fully-qualified "Presto JDBC driver" name only in first use. Other minor fixes from PR review.
@mosabua - initial reviewer

Please rebase to ensure this PR has only one commit @m57lyra

@mosabua done

Please fix the commit title.
Note that commit message titles should not end in a period. We follow these guidelines: https://chris.beams.io/posts/git-commit/

@electrum - I would suggest viewing the full file, not just the changes, to see how the configuring and registering sections were compressed holistically.

Conflict not showing up locally, new forced push didn't resolve issue. Close this PR, and opening new one from another branch.

Replaced by PR https://github.com/prestosql/presto/pull/5104


Failed to fetch the following dependencies:

[READ] For Firebase Unity SDK issues, please report to Firebase Unity open-source
Once you've read this section and determined that your issue is appropriate for this repository, please delete this section.
[REQUIRED] Please fill in the following fields:

Unity editor version: 2021.3.16
Firebase Unity SDK version: 10.0.3 (LAST)
Source you installed the SDK: custom import (.unitypackage or Unity Package Manager)
Problematic Firebase Component: _____ (Auth, Database, etc.)
Other Firebase Components in use: All Firebase Pack Imported (Auth, Database, etc.)
Additional SDKs you are using: Facebook Applovin (Facebook, AdMob, etc.)
Platform you are using the Unity editor on: Windows (Mac, Windows, or Linux)
Platform you are targeting: Android (iOS, Android, and/or desktop)
Scripting Runtime: IL2CPP(Mono, and/or IL2CPP)

[REQUIRED] Please describe the issue here:
Failed to fetch the following dependencies:
com.google.firebase:firebase-analytics-unity:+
com.google.firebase:firebase-config-unity:+
com.google.firebase:firebase-database-unity:+
com.google.firebase:firebase-messaging-unity:+
1.2.175 Resolver (Last)
Steps to reproduce:
Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)? - Github
What's the issue repro rate? (eg 100%, 1/5 etc) : %100
We imported the latest Firebase package into Unity.
We are getting this error during Resolve.
Displayed Libraries this way.
What is the solution to the problem?
This could be a description, log/console output, etc.
Resolution Failed.
Resolution failed
Failed to fetch the following dependencies:
com.google.firebase:firebase-analytics-unity:+
com.google.firebase:firebase-app-unity:+
com.google.firebase:firebase-auth-unity:+
com.google.firebase:firebase-config-unity:+
com.google.firebase:firebase-database-unity:+
com.google.firebase:firebase-messaging-unity:+
0x00007ff66dab69cd (Unity) StackWalker::GetCurrentCallstack
0x00007ff66dabd589 (Unity) StackWalker::ShowCallstack
0x00007ff66ea40943 (Unity) GetStacktrace
0x00007ff66f0e091d (Unity) DebugStringToFile
0x00007ff66cb7c262 (Unity) DebugLogHandler_CUSTOM_Internal_Log
0x0000026a41578303 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
0x0000026a4157802b (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
0x0000026a41577db0 (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
0x00000267ceda1345 (Mono JIT Code) UnityEngine.Debug:LogError (object)
0x000002697078cf93 (Mono JIT Code) Google.Logger:Log (string,Google.LogLevel)
0x0000026ad1126804 (Mono JIT Code) GooglePlayServices.PlayServicesResolver:Log (string,Google.LogLevel)
0x00000267ceda348b (Mono JIT Code) GooglePlayServices.PlayServicesResolver/c__AnonStorey9:<>m__0 (bool,string)
0x00000267ceda32b8 (Mono JIT Code) GooglePlayServices.PlayServicesResolver/c__AnonStorey9:<>m__4 ()
0x000002697078951a (Mono JIT Code) Google.RunOnMainThread:ExecuteNext ()
0x0000026970789283 (Mono JIT Code) Google.RunOnMainThread:m__1 ()
0x0000026970789176 (Mono JIT Code) Google.RunOnMainThread:RunAction (System.Action)
0x00000269707890eb (Mono JIT Code) Google.RunOnMainThread:ExecuteAllUnnested (bool)
0x0000026a12a19bbb (Mono JIT Code) Google.RunOnMainThread:PollOnUpdateUntilComplete (System.Func1<bool>,bool) 0x0000026aff2bcdbb (Mono JIT Code) GooglePlayServices.PlayServicesResolver:LabelAssets (System.Collections.Generic.IEnumerable1,System.Action1<System.Collections.Generic.HashSet1>,bool,System.Action`2<single, string>,bool,bool)
0x0000026aff2ca9ab (Mono JIT Code) GooglePlayServices.GradleResolver:ProcessAar (string)
0x0000026aff2c9213 (Mono JIT Code) GooglePlayServices.GradleResolver/c__AnonStoreyB:<>m__0 ()
0x000002697078a69d (Mono JIT Code) Google.RunOnMainThread:ExecutePollingJobs ()
0x000002697078929b (Mono JIT Code) Google.RunOnMainThread:m__1 ()
0x0000026970789176 (Mono JIT Code) Google.RunOnMainThread:RunAction (System.Action)
0x00000269707890eb (Mono JIT Code) Google.RunOnMainThread:ExecuteAllUnnested (bool)........
=======================
Displayed Android Libraries
([rootProject] + (rootProject.subprojects as List)).each { project ->
project.repositories {
def unityProjectPath = $/file:///DIR_UNITYPROJECT/$.replace("\", "/")
maven {
url "https://maven.google.com"
}
maven {
url "https://repo.maven.apache.org/maven2" // Assets/Editor/AmplitudeDependencies.xml:5
}
maven {
url "https://maven.google.com" // Assets/Editor/AmplitudeDependencies.xml:11, Assets/Editor/AmplitudeDependencies.xml:17
}
maven {
url (unityProjectPath + "/Assets/Firebase/m2repository") // Assets/Firebase/Editor/AnalyticsDependencies.xml:18, Assets/Firebase/Editor/AppDependencies.xml:22, Assets/Firebase/Editor/AuthDependencies.xml:20, Assets/Firebase/Editor/DatabaseDependencies.xml:22, Assets/Firebase/Editor/MessagingDependencies.xml:22, Assets/Firebase/Editor/RemoteConfigDependencies.xml:20
}
maven {
url (unityProjectPath + "/Assets/GooglePlayGames/Editor/m2repository") // Assets/GooglePlayGames/Editor/GooglePlayGamesPluginDependencies.xml:11
}
maven {
url "https://artifact.bytedance.com/repository/pangle" // Assets/MaxSdk/Mediation/ByteDance/Editor/Dependencies.xml:8
}
maven {
url "https://android-sdk.is.com/" // Assets/MaxSdk/Mediation/IronSource/Editor/Dependencies.xml:8
}
maven {
url "https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea" // Assets/MaxSdk/Mediation/Mintegral/Editor/Dependencies.xml:8
}
maven {
url "https://sdk.tapjoy.com/" // Assets/MaxSdk/Mediation/Tapjoy/Editor/Dependencies.xml:8
}
mavenLocal()
mavenCentral()
}
}

Hi @FunrikaTolga,
The output like com.google.firebase:firebase-analytics-unity:+ suggests that the Facebook and Applovin dependencies that you're bringing in might rely on different versions of the Analytics SDK. Moreover, it's odd that the Displayed Android Libraries output doesn't actually have any libraries in it.  Is this the complete log?
One thing to try is to enable Custom Gradle Main Template and Custom Gradle Properties and see if that clears things up, or produces different results at least.
Open Player Settings in the Build window. Under Publish Settings enable the check mark next to Custom Main Gradle Template and Custom Gradle Properties Template. Note the path because we might need to look into those files.
Close the Project Settings window.
Under Assets -> External Dependency Manager -> Android Resolver select Force Resolve.
If you're still having issues could you post your mainTemplate.gradle and gradleTemplate.properties files?
Thanks!

Hello, this problem is solved.
The reason for the problem was that we did not do a clean import.
We deleted all EDM and Firebase related files from within the project.
And we re-imported.
This was enough to solve our problem.
Thanks

Glad to hear the issue has been resolved, @FunrikaTolga. That said, I'll be closing this ticket. Let me know if an issue arises.


release-drafter to work with dev branch

Changing the release-drafter to add dev branch on top of master, given our flow, to get the more granular merge info.

FYI, Travis fails because of a yarn issue that we fixed in dev already. Obviously, given the PR, nothing is impacted.
Could we please merge this ASAP? Thanks.
@devGregA @aaronweaver @mtesauro


Action Editor not visible with 2022.12

The only long term viable solution would be to rewrite the whole editor to use the ha-form element.
Since i don't think that this is a 30min fix, this will be postponed until end of dec.

Hi,
I've the same issue with 2023.3.1/3.2/3.3.
Will there be a fix in Sight?
Greetings

Hi there 👋 @funracer900
I know how to fix it but don't have the time at the moment.
The same for alot of the other issues although i was able to fix some already in the dev branch.
I cannot give you an eta but i guess with the next release of version 2.5.8 or 3.0.0depending on the further changes this will be resolved.

Ok, thanks for fast Response.

Fixed in the latest release. Take care! 👍


[proposal] Modularize OAuth2 Adapters

zf-mvc-auth and zf-oauth2 each have specific code for specific adapters for OAuth2 and they do not allow code which is not for those adapters to hook in properly to support multiple OAuth2 connections of the same adapter.  A symptom is config::zf-oauth2 configuring in a global space.
I propose zf-oauth2 be reduced to a controller and user id provider and all adapter code be moved into individual adapters named zf-oauth2-[adapter].  These adapter repos will support the combined logic of zf-mvc-auth and zf-oauth2 adapters and factories.  zf-oauth2 will no longer have local configuration.
Configuration of zf-oauth2-[adapter]s will be handled through zf-mvc-auth like this:
    'zf-mvc-auth' => array(
        'authentication' => array(
            'adapters' => array(
                'named_adapter' => array(
                    'adapter' => 'ZF\\MvcAuth\\Authentication\\OAuth2Adapter',
                    'storage' => array(
                        'adapter' => 'ZF\OAuth2\Pdo\Adapter',
                        'dsn' => 'mysql:dbname=database;host=localhost',
                        'route' => '/oauth',
                        'username' => 'db',
                        'password' => '',
                    ),
                ),
            ),
        ),
    ),

This would be handled in src/Factory/OAuth2ServerFactory.php at createStorageFromAdapter
private static function createStorageFromAdapter($adapter, array $config, ServiceLocatorInterface $services)
{
    $callback = $services->get($adapter);
    return $callback($config, $services);
}

This pattern is central to allowing multiple adapters.  Without this pattern, such as using services, separate factories must be configured for each connection.  Using this pattern the factory can use the zf-mvc-auth configuration to configure each adapter.

I looked at this a little earlier with @jguittard, and we were focusing on this case:

https://github.com/zfcampus/zf-mvc-auth/blob/master/src/Factory/AuthenticationAdapterDelegatorFactory.php#L40-L42

We could change that case to this:
$adapter = false;
if ($services->has($data['adapter'])) {
    $adapter = $services->get($data['adapter']);
}

Doing so would allow you to define an adapter service that you can then share between named authentication schemes, which would let you share configuration. For now, it would need to be manual, but we could potentially incorporate this in the UI later.
Would this solve the use case?
Alternately, for now, another use case is to add another delegator to the list, and have that delegator inject your shared adapter.

I propose zf-oauth2 be reduced to a controller and user id provider and all adapter code be moved into individual adapters named zf-oauth2-[adapter].

This is simply not possible due to BC concerns. Right now, configuration for zf-oauth2 that existed prior to 1.1 still works, but removal of that code would break those applications.

What if we just change these lines https://github.com/zfcampus/zf-mvc-auth/blob/master/src/Factory/OAuth2ServerFactory.php#L90-91
    default:
            throw new ServiceNotCreatedException('Invalid storage adapter type for OAuth2');

to
    default:
        $callback = $services->get($adapter);
        return $callback($config, $services);

This will provide a flexible point to plugin configurable factories while not changing the way zf-oauth2 is configured or how 'pdo' and 'mongo' are handled in either repo.

Per @weierophinney suggestion of https://github.com/zfcampus/zf-mvc-auth/blob/master/src/Factory/AuthenticationAdapterDelegatorFactory.php#L40-L42 to fetch a service, that is similar to what I have in mind but I'm trying to tie into the ZF\MvcAuth\Authentication\OAuth2Adapter to add a new Adapter and not just those listed at https://github.com/zfcampus/zf-mvc-auth/blob/master/src/Factory/OAuth2ServerFactory.php#L85-L89

hi @TomHAnderson, great idea. I was looking for these changes and I made them in the same way :). So :+1:
A little difference from your public mvc-auth repository to my local repository, I add $service->has($adapter) and trigger the exception previously used to prevent BC break.
@weierophinney, hope this will be in the next milestone (or similar ofc).
I think we'll have a POC in this week with a custom adapter for DynamoDB.

@TomHAnderson ,
I'm using your proposal for a project so you can find your code and the related documentation in a fork here : https://github.com/eoko/zf-mvc-auth

https://github.com/API-Skeletons/zf-oauth2-doctrine handled this as it was originally coded.  If there are questions about the implementation I first recommend you to that code base then recommend you ask there for specifics.

Thx for the feedback, it seems that I previously missed this line. I'll have a deeper look into your impl.
By the way, nice work on Apigility/Doctrine. We heavily used it in a project last year to replace our own impl and we gain so much time. :+1:


onMouseMove: console.log(e.point) -> undefined

import React, { Component } from 'react';
import ReactMap from 'react-mapbox-gl';

const accessToken = "pk.eyJ1IjoiYWxleDMxNjUiLCJhIjoiY2o0MHp2cGtiMGFrajMycG5nbzBuY2pjaiJ9.QDApU0XH2v35viSwQuln5w";
const style = "mapbox://styles/mapbox/streets-v9";

const Map = ReactMap({
  accessToken
});

const mapStyle = {
  height: '100vh',
  width: '100vw'
};

class App extends Component {
  render() {
    return (
     <Map
       style={style}
       containerStyle={mapStyle}
       onMouseMove={ e => console.log(e.point) }
     >
     </Map>
    );
  }
}

export default App;

https://www.webpackbin.com/bins/-KuV5ljQLuX-e--JezK2

Hey @rofrol if by e.point you meant to retrieve the position of your mouse, here is how to achieve it: https://www.webpackbin.com/bins/-KuVvEU--2onKV7s9ZtE


Update books.md

Add more books.

Sorry sanjay again but I think it may cause an issue in future, let's put actual link/URL of the actual link instead of sharing e-book or pirated URL. If people wants to read that particular book then they will search by themselves and get the e-book!

Ok thanks.


ConnectionRefusedError: [WinError 1225] The remote computer refused the network connection

`Hi all..
Win 11, powershell and vs-code.
I created a conda env with python=3.10.11.
Installed requirements.
Added APIs
Started sqlite3 test.db "VACUUM;"
alembic upgrade head
python cli.py run-uvicorn
navigate to http://localhost:8000/ and talked to Elon about a job placement interview at spaceX
Error when running python client/cli.py. The server still worked without this, but wondering how to fix. I am a novice, and most likely I am doing something wrong.
(RealChar) PS C:\Users\david\OneDrive\Projects_Mac\Projects\GPT\RealChar> python client/cli.py
Traceback (most recent call last):
File "C:\Users\david\OneDrive\Projects_Mac\Projects\GPT\RealChar\client\cli.py", line 191, in
asyncio.run(main(url))
File "C:\Users\david\anaconda3\envs\RealChar\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\david\anaconda3\envs\RealChar\lib\asyncio\base_events.py", line 649, in run_until_complete
return future.result()
File "C:\Users\david\OneDrive\Projects_Mac\Projects\GPT\RealChar\client\cli.py", line 182, in main
await task
File "C:\Users\david\OneDrive\Projects_Mac\Projects\GPT\RealChar\client\cli.py", line 158, in start_client
async with websockets.connect(uri) as websocket:
File "C:\Users\david\anaconda3\envs\RealChar\lib\site-packages\websockets\legacy\client.py", line 637, in aenter
return await self
File "C:\Users\david\anaconda3\envs\RealChar\lib\site-packages\websockets\legacy\client.py", line 655, in await_impl_timeout
return await self.await_impl()
File "C:\Users\david\anaconda3\envs\RealChar\lib\site-packages\websockets\legacy\client.py", line 659, in await_impl
_transport, _protocol = await self._create_connection()
File "C:\Users\david\anaconda3\envs\RealChar\lib\asyncio\base_events.py", line 1081, in create_connection
raise exceptions[0]
File "C:\Users\david\anaconda3\envs\RealChar\lib\asyncio\base_events.py", line 1060, in create_connection
sock = await self._connect_sock(
File "C:\Users\david\anaconda3\envs\RealChar\lib\asyncio\base_events.py", line 969, in _connect_sock
await self.sock_connect(sock, address)
File "C:\Users\david\anaconda3\envs\RealChar\lib\asyncio\proactor_events.py", line 709, in sock_connect
return await self._proactor.connect(sock, address)
File "C:\Users\david\anaconda3\envs\RealChar\lib\asyncio\windows_events.py", line 826, in _poll
value = callback(transferred, key, ov)
File "C:\Users\david\anaconda3\envs\RealChar\lib\asyncio\windows_events.py", line 613, in finish_connect
ov.getresult()
ConnectionRefusedError: [WinError 1225] The remote computer refused the network connection

We haven't tested running on Windows directly and it's possible it doesn't work. Can you try Docker? if should work out of the box.

The server and models, call and text are working perfect on Windows 11. Powershell 7.3.5. Using Google Chrome.
Its just the remote computer refused error after running the command for client, is the issue using it directally through VS Code in terminal.
Thanks for all the hard work!


-f worst downloading best-ish

Checklist

[ ] I'm reporting a broken site support issue
[x] I've verified that I'm running youtube-dl version 2019.11.05
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar bug reports including closed ones
[x] I've read bugs section in FAQ

Verbose log
youtube-dl -F https://www.youtube.com/watch?v=-8yRaHH9HfE
[youtube] -8yRaHH9HfE: Downloading webpage
[youtube] -8yRaHH9HfE: Downloading video info webpage
[info] Available formats for -8yRaHH9HfE:
format code  extension  resolution note
249          webm       audio only tiny   56k , opus @ 50k (48000Hz), 5.18MiB
250          webm       audio only tiny   72k , opus @ 70k (48000Hz), 6.71MiB
140          m4a        audio only tiny  131k , m4a_dash container, mp4a.40.2@128k (44100Hz), 13.25MiB
251          webm       audio only tiny  139k , opus @160k (48000Hz), 13.00MiB
160          mp4        256x144    144p  129k , avc1.4d400c, 30fps, video only, 6.89MiB
278          webm       256x144    144p  134k , webm container, vp9, 30fps, video only, 9.82MiB
242          webm       426x240    240p  225k , vp9, 30fps, video only, 13.71MiB
133          mp4        426x240    240p  311k , avc1.4d4015, 30fps, video only, 14.26MiB
243          webm       640x360    360p  409k , vp9, 30fps, video only, 23.22MiB
134          mp4        640x360    360p  608k , avc1.4d401e, 30fps, video only, 26.30MiB
244          webm       854x480    480p  756k , vp9, 30fps, video only, 34.56MiB
135          mp4        854x480    480p  891k , avc1.4d401f, 30fps, video only, 37.68MiB
247          webm       1280x720   720p 1517k , vp9, 30fps, video only, 59.58MiB
136          mp4        1280x720   720p 1557k , avc1.4d401f, 30fps, video only, 56.31MiB
248          webm       1920x1080  1080p 2655k , vp9, 30fps, video only, 171.66MiB
137          mp4        1920x1080  1080p 4361k , avc1.640028, 30fps, video only, 200.94MiB
43           webm       640x360    360p , vp8.0, vorbis@128k, 79.62MiB
18           mp4        640x360    360p  562k , avc1.42001E, mp4a.40.2@ 96k (44100Hz), 57.54MiB
22           mp4        1280x720   720p  679k , avc1.64001F, mp4a.40.2@192k (44100Hz) (best)
[bluebird@localhost ~]$ youtube-dl -f worst https://www.youtube.com/watch?v=-8yRaHH9HfE
[youtube] -8yRaHH9HfE: Downloading webpage
[youtube] -8yRaHH9HfE: Downloading video info webpage
[download] Destination: 12 Insane DESCENDANTS of Famous People--8yRaHH9HfE.webm
[download]   0.4% of 79.62MiB at 56.92KiB/s ETA 23:47^C
ERROR: Interrupted by user

Description

Hopefully you can see above that the '-f worst' flag is not selecting the smallest file-size possible, it's selecting a 79mb file (apparently -f 43) when there's -f 18 at 57mb in size, and a muxing option of 160 and 249 which would make the file roughly 12mb. I have ffmpeg installed, so I don't understand why 79mb is the worst format available... (I pay ~ $40 per GB each month for data so blurry video is the best I can afford.)

Just as an aside, I am awed by how many issues you guys are able to solve/close each week. How do you ever get anything else done?


Is it possible to only let certain countries access parse-server?

as titled. Or I need to do it from server's firewall and block all the unrelated countries?

A service like cloudflare.com can do this at the DNS level

I'd agree that this should be done outside of parse-server, at the firewall or dns level.


(#200) Pad wide characters to get rid of motion wobbliness

Close #200

This PR was suppose to address #199


Crash when DLLs not found

The app will crash if the Silicon Lab Dlls are not found.  I have made minor changes to put up a message box but can't push them.
public C2Scanner()
{
    Debuggers.CollectionChanged += Debuggers_CollectionChanged;
    try
    {
        Scan();
    }
    catch (Exception e)
    {
        String message = e.Message;
        message += "\n\nMake sure the following DLLs exist in the program folder:\n\n\tlibgcc_s_dw2-1.dll\n\tlibstdc++-6.dll\n\tslab8051.dll\n\tslabhiddevice.dll\n";
        MessageBoxResult result = MessageBox.Show(message, "Dll(s) Missing?", MessageBoxButton.OK, MessageBoxImage.Exclamation);
    }
}

Thanks for the contribution! Contributions should be made using pull-requests, so if you don't mind forking the project, integrating the changes, and sending me a pull request, I can integrate the changes immediately. If you're not familiar with this workflow, here's a brief tutorial: https://www.thinkful.com/learn/github-pull-request-tutorial/#Feel-Free-to-Ask
Otherwise, I'll manually integrate this code next time I look at the source code base.

Hi Jay,
Sure.   I'll take care of it.
         Jack

On Wed, Nov 8, 2017 at 1:57 PM, Jay Carlson<EMAIL_ADDRESS>wrote:

Thanks for the contribution! Contributions should be made using
pull-requests, so if you don't mind forking the project, integrating the
changes, and sending me a pull request, I can integrate the changes
immediately. If you're not familiar with this workflow, here's a brief
tutorial: https://www.thinkful.com/learn/github-pull-request-
tutorial/#Feel-Free-to-Ask
Otherwise, I'll manually integrate this code next time I look at the
source code base.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jaydcarlson/c2-printf/issues/1#issuecomment-342974166,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APGwVBL7G_wZWzNLDZLywpCC6jowB2n6ks5s0iPDgaJpZM4QXGNa
.

--
Jack Wilson
Innovative Specialist
Infratab, Inc.
mobile<PHONE_NUMBER>
The information contained in this message is confidential and may be
legally privileged. The message is intended solely for the addressee(s).
If you are not the intended recipient, you are hereby notified that any
use, dissemination, or reproduction is strictly prohibited and may be
unlawful.

Closed by #2


Add support for aarch64-linux-musl platform

Hi @camertron !
I ran into an error while trying to build, I think because helm-rb doesn't support aarch64-linux-musl which is linux running under docker on an M1 mac.

Error running: `bundle exec kuby -e production build`
#15 [stage-1  9/15] RUN bundle install --jobs $(nproc) --retry 3 --gemfile Gemfile
#15 sha256:bbc9f4ae2b23af72083b2050345bff851c93b9017d871e3a29376f8732d796c1
#15 0.375 Resolving dependencies...
#15 0.615 Unable to find a spec satisfying helm-rb (~> 0.1) in the set. Perhaps the
#15 0.615 lockfile is corrupted? Found helm-rb (0.2.0-x86_64-darwin), helm-rb
#15 0.615 (0.2.0-arm64-darwin) that did not match the current platform.
#15 ERROR: executor failed running [/bin/sh -c bundle install --jobs $(nproc) --retry 3 --gemfile Gemfile]: exit code: 7
------
 > [stage-1  9/15] RUN bundle install --jobs $(nproc) --retry 3 --gemfile Gemfile:
------
executor failed running [/bin/sh -c bundle install --jobs $(nproc) --retry 3 --gemfile Gemfile]: exit code: 7
error: build failed: docker command exited with status code 1

Error running: `bundle` & `bundle platform`
bash-5.1$ bundle
Resolving dependencies...
Unable to find a spec satisfying helm-rb (~> 0.1) in the set. Perhaps the lockfile is corrupted? Found helm-rb (0.2.0-x86_64-darwin), helm-rb (0.2.0-arm64-darwin) that did not match
the current platform.
bash-5.1$ bundle platform
Your platform is: aarch64-linux-musl

Your app has gems that work on these platforms:
* aarch64-linux-musl
* arm64-darwin-20
* x86_64-darwin-20

Your Gemfile specifies a Ruby version requirement:
* ruby 3.0.1p64

Your current platform satisfies the Ruby version requirement.

I think the following LOC needs updating (Though I'm not 100% if that's all what is required):
https://github.com/getkuby/helm-rb/blob/53e2622268f85cddaa3bb03fe354f97b439fc3a2/Rakefile#L5-L15
https://github.com/MikeRogers0-YouTube/Deploying-With-Kubernetes/pull/1 - This is the sample repo I was deploying with.

Fixed by https://github.com/getkuby/helm-rb/commit/52c95d4564611d62b87c75a01cad8caae9573e6b


Fix gh31

This should fix https://github.com/RichRelevance/scalaz-netty/issues/31 its bult on top of https://github.com/RichRelevance/scalaz-netty/pull/32

well now I remember why I had it depending on the other PR; some of the changes are only in the newer version of the library.


Pages are created with inconsistent width settings

I noticed that pages are sometimes being created either at full-width or fixed-width, randomly. I ran mark against a folder that contained 12 Markdown files, all with the same content with the exception of the page title metadata. Some of those pages ended up being created either fixed width while some ended up as full width.
Example fixed-width page:

Example full-width page:

This appears to be a bug in the Confluence API: https://community.developer.atlassian.com/t/confluence-rest-api-create-content-at-random-width/57001.
I think it could potentially be worked around if mark set the content-appearance-draft and content-appearance-published metadata properties to "default" when creating a new page: https://jira.atlassian.com/browse/CONFCLOUD-65654.
I'm not sure it makes sense to have mark compensate for API bugs, so I will close out this issue.

Just out of curiosity, I modified the CreatePage function to see if adding those metadata properties would resolve the issue:
		"metadata": map[string]interface{}{
			"properties": map[string]interface{}{
				"editor": map[string]interface{}{
					"value": "v2",
				},
				"content-appearance-draft": map[string]interface{}{
					"value": "default",
				},
				"content-appearance-published": map[string]interface{}{
					"value": "default",
				},
			},
		},

But after doing that, Confluence intermittently responds with {"statusCode":500,"message":"org.springframework.transaction.UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only"}.
Kinda seems like I'm not the only one running into this issue: https://community.developer.atlassian.com/t/how-to-set-fixed-width-when-creating-new-page-with-rest-call/53591/6
Gotta love this API...:eyes:

I submitted a PR for it. It looks like supplying the metadata property via the Update call works. My page widths are now consistent. If you don't agree with the idea of Mark compensating for Confluence API bugs then feel free to close without merging.


Allow users to configure forwarded headers?

The Cloud Trace team wants to make it easy for users to send trace IDs along with various API calls, effectively just adding a special header (X-Cloud-Trace-Context) with an opaque ID.
The issue is that this ID will vary across requests, which presents a bit of an issue in that whole concurrency thing...
For example, here's how I'd want to do this in my app: https://gist.github.com/jgeewax/3b351d3522fdf061bdea
Note that I have zero idea if this is at all reasonable given the isolation model for Node. (I think, for example, that this won't work for Express, and that we should be doing something with req.locals....? see http://stackoverflow.com/questions/33310324/using-express-middleware-for-per-request-module-configuration)
Anyway -- we need to find a way to allow users to...

Set custom headers to be forwarded along with each API request to Google
Configure those headers in one place (ie, not as arguments to each method as people don't want to change all their code for this)
Make sure that it's obvious how to do this the right way (ie, avoid giving people a gun and aiming it at their feet -- which setTraceContext in my example might do...)

:+1: I imagine most of the time, users might just want their own custom UA, so we should support:
var gcloud = require('gcloud')({
  decorateRequest: function(reqOpts) {
    reqOpts.headers['User-Agent'] = 'My App';
    return reqOpts;
  }
});

Then overriding per service should be pretty straightforward:
var dataset = gcloud.datastore.dataset({
  decorateRequest: function(reqOpts) {
    reqOpts.headers['X-App-Id'] = 'app-whatever';
    return reqOpts;
  }
});

As far as allowing per-request control, like "got a request for resource X, attach a custom header while we download it then remove it after", maybe we can go even one level deeper:
var bucket = gcloud.storage.bucket('my-app-bucket');
var file = bucket.file('my-app-file', {
  decorateRequest: function(reqOpts) {
    reqOpts.headers['X-Requester-Id'] = 'user-ip';
    return reqOpts;
  }
});

All of these have the decorated request options, while any other service (Dataset) or object (Bucket, File, Topic, etc) wouldn't be touched.
file.createReadStream();
file.download();

Regarding the gist, I put together how this would look: https://gist.github.com/jgeewax/3b351d3522fdf061bdea

Another option:
// Global
gcloud.decorateRequest(function(reqOpts) {
  // modify reqOpts
  return reqOpts;
});

// Service
var gcs = gcloud.storage();
gcs.decorateRequest(function(reqOpts) {
  // modify reqOpts
  return reqOpts;
});

// Service object
var bucket = gcs.bucket('my-bucket');
var file = bucket.file('my-file');

file.decorateRequest(function(reqOpts) {
  // modify reqOpts
  return reqOpts;
});

Let's go with this:
var opts = { projectId: 'my-project-id' };
var storage = gcloud.storage(opts);

// Need to set a custom header
var newOpts = extend({}, opts, {
  decorateRequest: function(reqOpts) {
    reqOpts.headers['X-Cloud-Trace-Context'] = '...';
  }
});

var newStorage = gcloud.storage(newOpts);

storage.getBuckets(); // no custom header sent
newStorage.getBuckets(); // custom header sent

gcloud as well as any service object will accept the decorateRequest function.
Sound okay?

Reminds me of angular interceptors, a similar interface to that could be nice
var storage = gcloud.storage({ projectId: 'my-project-id' });

storage.interceptors.push({
  request: function (reqOptions) {
    if (someCondition) {
      reqOptions.headers['X-Yay-Headers'] = 'woot';
    }
    return reqOptions;
  }
});

And as a side note, with the upcoming switch to promises this could potentially provide a nice interface for failed request logic, assuming we followed angular's api.

Looks cool to me. :+1:


Game error - access violation 0xc0000005

Using version 0.8.0 and final fantasy complete edition full game (not demo)
when running the game as administrator getting error

FFXVIFix.log
adding log file if needed

Why do you need to run the game as Admin? Does this error happen without that?

It happens when running not as admin as well

Does it happen without FFXVIFix installed?

No

Hmm, it's a pretty generic error so I'm not sure what to suggest. You could try renaming dinput8.dll to something different like version.dll and see if that works. You could also try updating your Visual C++ libraries.
Has any version of FFXVIFix worked for you before or is this your first time using it?

Having same error with older versions as well, rename to version.dll also not working

Got the same error but while playing I got it at random times, I'm gonna try to go back do 0.7.9 since I haven't had any problem before (I've played with almost all version starting from 0.7.5) to see if it's on my end or not

I got it working, needed to disable amd fsr 3 frame generation setting.
@Lyall can any thing be done regarding this like when game starts with fix it will disable frame generation if it is enabled and enable to back on after game started

I got it working, needed to disable amd fsr 3 frame generation setting. @Lyall can any thing be done regarding this like when game starts with fix it will disable frame generation if it is enabled and enable to back on after game started

That's odd. Could you maybe try setting the cutscene frame generation option to false in FFXVIFix.ini? Other than that setting, nothing else should interfere with frame generation.

I reverted to 0.7.9 as I am encountering the same issue at random times.

I think frame generation on whole is issue if ffxvi fix is removed and frame generation is in sometimes also getting error operation completed successfully

Hmm, you're not using any kind of overlays or anything? Or software like Razer Synapse or iCUE or rubbish like that? Starting to think this is more of game/system issue than something caused directly by FFXVIFix (though I could be wrong).

No overlays or extra software
Ffxvi fix is working perfectly fine when no frame generation is used. Let's wait for game updates to see if issue gets resolved

I've been having these crashes, too. Pretty much since the full game came out, paired with the fix. Never experienced it in the demo. I installed 0.8.1 this morning (been keeping up with the fix releases), Played through all of Caer Moore (Benedikta dungeon) without issues. Then realized HUD was still at 16:9, changed the INI setting to 0 (43:18 monitor), and the crashes came back up. Not sure if it's coincidence or not. Tried it with and with and without DoF disabled on previous versions of the fix. I do not use FG, just DLAA.
This is tough to figure out without a proper error message. I did get another error in English a few times stating something along the lines of "Access violation trying to access invalid memory parameters" Kaldaien has also touched on this in the Steam forms.
Also, should note, this did not happen before updating nVidia drivers to the latest driver, the most recent version of drivers did not present this with the fix, but I am unable to determine if that is the issue or not. I'll try a roll back on drivers, check my libraries and see if that leads to stability.

I have this problem, sometimes it crashes at random time while playing with a Ryzen 7 CPU so don't know. And didn't had any problem in my first 8h so I don't know, tried going back to 0.7.9 but I got it again too so I don't know. I'll wait for a game patch I think since it's seems to be a game problem

The 0xC5 error is very vague, it literally just means the game tried to access a part of memory that wasn't correct so it can be caused by all manners of different issues. I'm more inclined to believe this is a stability issue or a game issue given that myself and the majority of people out there have not encountered this.

I've rarely had this a couple times, including before I knew this mod existed. So it's a base game issue.

This problem was so bad for me it basically broke the game in a specific spot and made me unable to leave The Hideaway. I was able to fix it by deleting my shader cache and force the game to recompile it at startup. I don't believe this error is tied to the fix as my game was hardlocking in the exact same spot even with the fix disable.
TLDR: delete your shader cache. It's located at C:\Users[username]\AppData\Local\SquareEnix\FINAL FANTASY XVI

I’ve used FSR and FG the whole game and never had a crash. I decided to put my HUD at 0 which is span screen and had 3 crashes within 30 minutes. I changed the option back to 4 which is 21:9 and everything went back to normal. I’m on v8.0.

I’ve used FSR and FG the whole game and never had a crash. I decided to put my HUD at 0 which is span screen and had 3 crashes within 30 minutes. I changed the option back to 4 which is 21:9 and everything went back to normal. I’m on v8.0.

What resolution are you playing the game at? It's unlikely this part of the fix would cause issues, the code for it only runs during game startup, opening the pause menu and resolution changes.

I’ve used FSR and FG the whole game and never had a crash. I decided to put my HUD at 0 which is span screen and had 3 crashes within 30 minutes. I changed the option back to 4 which is 21:9 and everything went back to normal. I’m on v8.0.

What resolution are you playing the game at? It's unlikely this part of the fix would cause issues, the code for it only runs during game startup, opening the pause menu and resolution changes.

I’m at 3440x1440 FSR Balanced with FG

The 0xC0000005 error is very vague, it literally just means the game tried to access a part of memory that wasn't correct so it can be caused by all manners of different issues. I'm more inclined to believe this is a stability issue or a game issue given that myself and the majority of people out there have not encountered this.

To add to this:
I installed the newest Asus BIOS for my board for my 14900k, and since I've done that, I don't hit TJ Max and the OC for my GPU isn't being bottlenecked. So now UE4 shader compilations don't crash, and not once has FFXVI crashed, in fact I gained about 15FPS on average.

The 0xC0000005 error is very vague, it literally just means the game tried to access a part of memory that wasn't correct so it can be caused by all manners of different issues. I'm more inclined to believe this is a stability issue or a game issue given that myself and the majority of people out there have not encountered this.

To add to this:
I installed the newest Asus BIOS for my board for my 14900k, and since I've done that, I don't hit TJ Max and the OC for my GPU isn't being bottlenecked. So now UE4 shader compilations don't crash, and not once has FFXVI crashed, in fact I gained about 15FPS on average. I have been keeping up with each update of the fix, and used it since the demo.

I get this error when running the game for the first time. I have to turn down performance core ration by 1 in XTU to prevent it. After the first time I can turn the perf core ratio back up.
I had to do it again after a game update though
14900 things


consistant grünstromindex examples

fixes https://github.com/evcc-io/docs/issues/672

@naltatis Now I'm really confused. The evcc.yaml of the demo instance shows this:
  co2:
    type: grünstromindex
    zip: 12349

And it's not only grünstrom, that was just an example. What is the desired way of configuring all co2 tariffs?

@mpw96 both ways work and will work in the future.
Some background: The type: template notation uses our template abstraction that adds metadata and is the basis for generating our documentation, cli assistant and config ui. See https://github.com/evcc-io/evcc/blob/master/templates/definition/tariff/gruenstromindex.yaml#L13-L15
type: gruenstromindex is the concrete implementation (go file). In case of Grünstromindex its a 1:1 match. We have 1 template that maps to 1 specific implmentation. For other devices or tariffs its more complex. A lot of meter templates e.g. use type: modbus under the hood.


nanoseconds with docstring

nanoseconds, no test will work on that tonight.

Added test for nanosecond as well as docstrings.


[Issue Fixed : [icon-dropdown] Secondary buttons label are not translated] Add translation

[icon-dropdown] Add translation of secondary labels
Description
Translation is added on the label
Patch
Translation is added on the label, and i18n mixin is added to the component

Fixes #980

:+1:

When submitting a pull request, please try to be explicit in you commit messages :)
Here I see you edited the files online, so there are many strange merge commit.
We made a guide to help you with the process of forking and proposing the pull request.
Here you can see that your pull request is not mergeable, so please rebase it :)

See #982


Add multi-token support for tasks

Allow tasks to request multiple tokens before their maximum allowable time for fetching tokens is reached. This addresses an issue if a task contains multiple isolated processes that need to fetch secrets independently.

One of the security "features" of this method of authentication is that its trivial to detect if a token is stolen. If a task makes a duplicate request to VGM, you can see something nefarious has happened.
I think this feature is useful, but there needs to be a way to limit the number of tokens requested, possibly through the policies json.

I agree there is a slight increase in risk, but we're still protected by TASK_LIFE, meaning a nefarious action could only occur in that small window.

:+1: I'll implement this in another PR, thanks!

Thank you! Apologies I didn't accept this as-is.


If a 404 GitHub suggestion URL exists, redirect there

Since we rewrote how documentation works on the website, arbitrary relative links that work on GitHub no longer work on the website. We wrote some logic in to guess GitHub URLs and show these on the 404 error page, but it wasn't very sophisticated.
This PR adds to that logic a little by (a) checking whether the suggested replacement URLs exist and (b) if they do exist, automatically redirecting there directly.
As such, it essentially fixes relative links in documentation, and should solve #512

What happens if links suggested do not exist?
Should we suggest them to begin with?
Should we suggest the main readme or documentation?

If the suggested link does not exist then it is not suggested - this was added in this PR: https://github.com/nf-core/nf-co.re/blob/4b4fbbc69749e9fb390eb3c091747e74ea1b06ec/public_html/404.php#L7-L8
The auto-redirection only happens if the suggested link is on GitHub. Others are just checked and shown.
404s from https://nf-co.re// always suggest https://nf-co.re/ - basically suggesting the main documentation 👍🏻
You can try it out: https://nf-co.re/sarek/sdfjh


Error explaining categorical data/adult income dataset

I have been following the tutorial to understand LIME on the adult income dataset but after repeatedly fighting with the encoder and other issues (the tutorial refers to an older sklearn API hence cannot be replicated entirely), I think eventually the library itself has some problems – particularly in the __data_inverse function in lime_tabular.py. Pasting the stack trace here:
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-92-c09902f7a5de> in <module>
----> 1 explainer.explain_instance(encoded_test[1653], predict_fn, num_features=5)

~/Library/Python/3.7/lib/python/site-packages/lime/lime_tabular.py in explain_instance(self, data_row, predict_fn, labels, top_labels, num_features, num_samples, distance_metric, model_regressor)
    338             # Preventative code: if sparse, convert to csr format if not in csr format already
    339             data_row = data_row.tocsr()
--> 340         data, inverse = self.__data_inverse(data_row, num_samples)
    341         if sp.sparse.issparse(data):
    342             # Note in sparse case we don't subtract mean since data would become dense

~/Library/Python/3.7/lib/python/site-packages/lime/lime_tabular.py in __data_inverse(self, data_row, num_samples)
    542             inverse_column = self.random_state.choice(values, size=num_samples,
    543                                                       replace=True, p=freqs)
--> 544             binary_column = (inverse_column == first_row[column]).astype(int)
    545             binary_column[0] = 1
    546             inverse_column[0] = data[0, column]

AttributeError: 'bool' object has no attribute 'astype'

Here is my notebook if you want to take a detailed look.

Update: looks like I wasn't using the OneHotEncoder properly, after fixing that, the error has moved elsewhere – down into lime_base.py when fitting Ridge regression. Details are in my notebook. Pasting the stacktrace again here. Any help resolving this would be greatly appreciated!
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-163-ab78b5e73038> in <module>
      1 # NOTE: I've added some debugging lines here so line number in trace don't match 1-1 with repo
      2 np.random.seed(1)
----> 3 explainer.explain_instance(test[1653], predict_fn, num_features=5)
      4 # exp.show_in_notebook(show_all=False)

~/Library/Python/3.7/lib/python/site-packages/lime/lime_tabular.py in explain_instance(self, data_row, predict_fn, labels, top_labels, num_features, num_samples, distance_metric, model_regressor)
    457              ret_exp.score, ret_exp.local_pred) = self.base.explain_instance_with_data(
    458                     scaled_data,
--> 459                     yss,
    460                     distances,
    461                     label,

~/Library/Python/3.7/lib/python/site-packages/lime/lime_base.py in explain_instance_with_data(self, neighborhood_data, neighborhood_labels, distances, label, num_features, feature_selection, model_regressor)
    186                                                weights,
    187                                                num_features,
--> 188                                                feature_selection)
    189         if model_regressor is None:
    190             model_regressor = Ridge(alpha=1, fit_intercept=True,

~/Library/Python/3.7/lib/python/site-packages/lime/lime_base.py in feature_selection(self, data, labels, weights, num_features, method)
    134                 n_method = 'highest_weights'
    135             return self.feature_selection(data, labels, weights,
--> 136                                           num_features, n_method)
    137
    138     def explain_instance_with_data(self,

~/Library/Python/3.7/lib/python/site-packages/lime/lime_base.py in feature_selection(self, data, labels, weights, num_features, method)
     75             return np.array(range(data.shape[1]))
     76         elif method == 'forward_selection':
---> 77             return self.forward_selection(data, labels, weights, num_features)
     78         elif method == 'highest_weights':
     79             clf = Ridge(alpha=0.01, fit_intercept=True,

~/Library/Python/3.7/lib/python/site-packages/lime/lime_base.py in forward_selection(self, data, labels, weights, num_features)
     59                 print('>>>> mamapapa', data[:, used_features + [feature]].shape, labels.shape)
     60                 clf.fit(data[:, used_features + [feature]], labels,
---> 61                         sample_weight=weights)
     62                 score = clf.score(data[:, used_features + [feature]],
     63                                   labels,

~/Library/Python/3.7/lib/python/site-packages/sklearn/linear_model/_ridge.py in fit(self, X, y, sample_weight)
    760         self : returns an instance of self.
    761         """
--> 762         return super().fit(X, y, sample_weight=sample_weight)
    763
    764

~/Library/Python/3.7/lib/python/site-packages/sklearn/linear_model/_ridge.py in fit(self, X, y, sample_weight)
    543                                    accept_sparse=_accept_sparse,
    544                                    dtype=_dtype,
--> 545                                    multi_output=True, y_numeric=True)
    546         if sparse.issparse(X) and self.fit_intercept:
    547             if self.solver not in ['auto', 'sparse_cg', 'sag']:

~/Library/Python/3.7/lib/python/site-packages/sklearn/base.py in _validate_data(self, X, y, reset, validate_separately, **check_params)
    430                 y = check_array(y, **check_y_params)
    431             else:
--> 432                 X, y = check_X_y(X, y, **check_params)
    433             out = X, y
    434

~/Library/Python/3.7/lib/python/site-packages/sklearn/utils/validation.py in inner_f(*args, **kwargs)
     70                           FutureWarning)
     71         kwargs.update({k: arg for k, arg in zip(sig.parameters, args)})
---> 72         return f(**kwargs)
     73     return inner_f
     74

~/Library/Python/3.7/lib/python/site-packages/sklearn/utils/validation.py in check_X_y(X, y, accept_sparse, accept_large_sparse, dtype, order, copy, force_all_finite, ensure_2d, allow_nd, multi_output, ensure_min_samples, ensure_min_features, y_numeric, estimator)
    810         y = y.astype(np.float64)
    811
--> 812     check_consistent_length(X, y)
    813
    814     return X, y

~/Library/Python/3.7/lib/python/site-packages/sklearn/utils/validation.py in check_consistent_length(*arrays)
    254     if len(uniques) > 1:
    255         raise ValueError("Found input variables with inconsistent numbers of"
--> 256                          " samples: %r" % [int(l) for l in lengths])
    257
    258

ValueError: Found input variables with inconsistent numbers of samples: [5000, 1]

Your predict function takes an (d,) numpy array (1d), turns it into a 2d array (1, d) and predicts.
It should just take an (n, d) array as input, as that is what our explainer gives it. I'm guessing the following would work:
predict_fn = lambda x: gbtree.predict_proba(encoder.transform(x)).astype(float)


Memory corruption

I am seeing some memory corruption in a function that I believe should be working. The code is:
using LoopVectorization

function At_mul_A!(C, A)
   @turbo for n in indices((C, A), 2), m in indices((C, A), (1, 2))
       Cmn = zero(eltype(C))
       for k in indices(A, 1)
           Cmn += A[k,m] * A[k,n]
       end
       C[m,n] = Cmn
   end
end

function test()
A = randn(16, 64)
C = randn(64, 64)
for a = 1:1000
    At_mul_A!(C, A)
end
end
test()

If I run this once, or sometimes a few times, I get the error:
julia(57934,0x1f15fe080) malloc: Incorrect checksum for freed object 0x12b391000: probably modified after being freed.
Corrupt value: 0x4037203caf449798
julia(57934,0x1f15fe080) malloc: *** set a breakpoint in malloc_error_break to debug

and julia crashes. I'm running Julia 1.10.0-beta2 and LoopVectorization v0.12.165.
I cannot see any reason that this shouldn't work - apologies if there is, but I really have looked it over several times, and run it without @turbo to check it's valid.

I got
julia> function test()
       A = randn(16, 64)
       C = randn(64, 64)
       for a = 1:1000
           At_mul_A!(C, A)
       end
       end
test (generic function with 1 method)

julia> @time test()
  0.004525 seconds (3 allocations: 40.172 KiB)

julia> @time test()
  0.004688 seconds (3 allocations: 40.172 KiB)

julia> @time test()
  0.004536 seconds (3 allocations: 40.172 KiB)

julia> @time test()
  0.004673 seconds (3 allocations: 40.172 KiB)

julia> @time foreach(_->test(),1:1000)
  4.794809 seconds (5.07 k allocations: 39.368 MiB, 0.20% gc time, 0.09% compilation time)

julia> function test2()
       A = randn(64, 16)' # 16x64
       C = randn(64, 64)
       for a = 1:1000
           At_mul_A!(C, A)
       end
       end
test2 (generic function with 1 method)

julia> @time test2()
  0.001879 seconds (3 allocations: 40.172 KiB)

julia> malloc(): invalid size (unsorted)

[7231] signal (6.-6): Aborted
in expression starting at none:0

It'd be faster to use a different memory layout if possible, which you can see: test2 is over twice as fast as test.
That is, A_mul_At is faster than At_mul_A due to the better memory layout.
This surprises most people who only think about a matrix multiply as a bunch of dot products; i.e. some people naively suspect that setting the layout to make a dot product of a view as fast as possible would be best, but column-major A' * B is actually the worst of the four combinations, even A' * B' is better.
A' * A requires traversing memory much more quickly, increasing bandwdith requirements, and requires reductions at the end of the k loop, requiring extra FLOPs. None of the other 3 orientations need this.
Anyway, I got a segfault, too.
I tried replaces indices with axes, and didn't get a segfault.
It might be a bug in the optimizations it does for indices.
julia> using LoopVectorization

julia> function At_mul_A!(C, A)
          @turbo for n in axes(C, 2), m in axes(C, 1)
              Cmn = zero(eltype(C))
              for k in axes(A, 1)
                  Cmn += A[k,m] * A[k,n]
              end
              C[m,n] = Cmn
          end
       end
At_mul_A! (generic function with 1 method)

julia> function test()
       A = randn(16, 64)
       C = randn(64, 64)
       for a = 1:1000
           At_mul_A!(C, A)
       end
       end
test (generic function with 1 method)

julia> @time test()
  0.004558 seconds (3 allocations: 40.172 KiB)

julia> @time test()
  0.004533 seconds (3 allocations: 40.172 KiB)

julia> @time test()
  0.004505 seconds (3 allocations: 40.172 KiB)

julia> @time test()
  0.004553 seconds (3 allocations: 40.172 KiB)

julia> @time foreach(_->test(),1:1000)
  4.710555 seconds (12.46 k allocations: 39.802 MiB, 0.24% gc time, 0.08% compilation time)

julia> function test2()
       A = randn(64, 16)' # 16x64
       C = randn(64, 64)
       for a = 1:1000
           At_mul_A!(C, A)
       end
       end
test2 (generic function with 1 method)

julia> @time test2()
  0.002044 seconds (3 allocations: 40.172 KiB)

julia> @time test2()
  0.001877 seconds (3 allocations: 40.172 KiB)

julia> @time test2()
  0.001880 seconds (3 allocations: 40.172 KiB)

julia> @time test2()
  0.001868 seconds (3 allocations: 40.172 KiB)

julia> @time foreach(_->test2(),1:1000)
  2.011197 seconds (5.07 k allocations: 39.368 MiB, 0.45% gc time, 0.20% compilation time)

Thanks, @chriselrod . Especially for the tips on faster layouts. However, I also get the memory corruption using axes instead of indices.


version bump for 3.1.1 release

Version bump for 3.1.1 release

Fix Test Kitchen ( Issue: #247 )
Make /etc/profile.d/cdap-sdk.sh options configurable ( Issue: #248 )
Switch to HTTPS for repository.cask.co ( Issue: #249 )

LGTM 👍


.net 4.7/4.8 support

I have an existing site/cms which runs on .net 4.8.2
would it be possible to include support for (slightly) older .net? I have tried but it seems to be detailed.

Hi, thank you for opening this issue.
Generally, I only prefer to target the modern NET 6.0 and above, downgrading to add support for .NET Framework 4.7 and 4.8 would require lots of code refactoring backwards. You are free to clone the repository and do the necessary migration yourself.

understood, It looks beyond me at the moment.
cheers


fix: FluentAnchor randomly throws unhandled exception at DisposeAsync

🐛 Bug Report
I'm not sure is a bug. So far the application still running when the exception occurred. And FluentAnchor DisposeAsync stated:

"The JSRuntime side may routinely be gone already if the reason we're disposing is that the client disconnected. This is not an error."

But the client is still connected and I often see this message being logged:
[18:24:59 WRN] Unhandled exception rendering component: A task was canceled.
System.Threading.Tasks.TaskCanceledException: A task was canceled.
   at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args)
   at Microsoft.JSInterop.JSRuntimeExtensions.InvokeVoidAsync(IJSRuntime jsRuntime, String identifier, Object[] args)
   at Microsoft.JSInterop.Implementation.JSObjectReference.DisposeAsync()
   at Microsoft.FluentUI.AspNetCore.Components.FluentAnchor.DisposeAsync() in /_/src/Core/Components/Anchor/FluentAnchor.razor.cs:line 151
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.<ProcessDisposalQueueInExistingBatch>g__GetHandledAsynchronousDisposalErrorsTask|79_0(Task result)
[18:24:59 ERR] Unhandled exception in circuit 'OIGlWiYi26kc9jxaj31LCVZB8TS5CWa82koh4JHLJkc'.
System.Threading.Tasks.TaskCanceledException: A task was canceled.
   at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args)
   at Microsoft.JSInterop.JSRuntimeExtensions.InvokeVoidAsync(IJSRuntime jsRuntime, String identifier, Object[] args)
   at Microsoft.JSInterop.Implementation.JSObjectReference.DisposeAsync()
   at Microsoft.FluentUI.AspNetCore.Components.FluentAnchor.DisposeAsync() in /_/src/Core/Components/Anchor/FluentAnchor.razor.cs:line 151
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.<ProcessDisposalQueueInExistingBatch>g__GetHandledAsynchronousDisposalErrorsTask|79_0(Task result)

💻 Repro or Code Sample
🤔 Expected Behavior
Handle exception more gracefully.
😯 Current Behavior
💁 Possible Solution
🔦 Context
🌍 Your Environment
OS:
Windows 10 (19045.3930)
Ubuntu Server (22.04.3 LTS)
Browser:
Google Chrome Version 121.0.6167.161 (Official Build) (64-bit)
Nuget:
"Microsoft.FluentUI.AspNetCore.Components" Version="4.4.0"

As it says in the code, this is not an error or a bug.


Can't narrow T | undefined into T with a falsy check when using --noUncheckedIndexedAccess

Bug Report

When using --noUncheckedIndexedAccess it seems impossible to narrow, for example, string | undefined into string when using a variable key/index when accessing either objects or arrays. Unless you first assign it to a new variable and then doing a falsy check on that variable instead.
🔎 Search Terms

noUncheckedIndexedAccess
object
array
key
index
undefined
🕗 Version & Regression Information

This is the behavior in every version I tried, and I reviewed the FAQ for entries about noUncheckedIndexedAccess.
Tested in 4.1.5, 4.3.5 and 4.4.0-beta.

⏯ Playground Link

Playground link with relevant code
💻 Code

// In objects
const obj: { [key: string]: string } = { foo: 'bar' };
const key = 'foo';
if (key in obj && obj[key]) { const value = obj[key]; } // value is string | undefined
if (key in obj && obj[key] != null) { const value = obj[key]; } // value is string | undefined
if (key in obj && typeof obj[key] !== 'undefined') { const value = obj[key]; } // value is string | undefined
// In arrays
const arr = ['foo'];
const index = 0;
if (index in arr && arr[index]) { const value = arr[index]; } // value is string | undefined
if (index in arr && arr[index] != null) { const value = arr[index]; } // value is string | undefined
if (index in arr && typeof arr[index] !== 'undefined') { const value = arr[index]; } // value is string | undefined

🙁 Actual behavior

It's impossible to narrow obj[key] from string | undefined to string without first assigning it to another variable and then checking if that variable is undefined instead.
🙂 Expected behavior

Expected to be able to narrow obj[key] from string | undefined into string with a simple falsy check.

Duplicate of #10530. Type narrowing does not occur for indexed access forms e[k] where k is not a literal.

Ok. I'll close this one then.


Refine the process of deciding useTaobaoRegistry flag

What problem does this feature solve?
The useTaobaoRegistry flag may be  set to true even though they're outside China and it caused slow download speed and potential issues in the future.
The current decision process of the flag is that pinging the default and the mirror repositories and the winner of the promise race of them is used for downloading.
https://github.com/vuejs/vue-cli/blob/dev/packages/%40vue/cli/lib/util/shouldUseTaobao.js#L65
Countries close to China geographically like Japan is likely to be set true with a highly probability at the process and get involved in mirror site problems.
The output of pinning to the both registries is below.
$ ping -c 10 registry.npmjs.org
PING registry.npmjs.org (<IP_ADDRESS>): 56 data bytes
64 bytes from <IP_ADDRESS>: icmp_seq=0 ttl=56 time=14.654 ms
64 bytes from <IP_ADDRESS>: icmp_seq=1 ttl=56 time=5.648 ms
64 bytes from <IP_ADDRESS>: icmp_seq=2 ttl=56 time=8.810 ms
64 bytes from <IP_ADDRESS>: icmp_seq=3 ttl=56 time=12.804 ms
64 bytes from <IP_ADDRESS>: icmp_seq=4 ttl=56 time=13.898 ms
64 bytes from <IP_ADDRESS>: icmp_seq=5 ttl=56 time=12.059 ms
64 bytes from <IP_ADDRESS>: icmp_seq=6 ttl=56 time=7.670 ms
64 bytes from <IP_ADDRESS>: icmp_seq=7 ttl=56 time=5.449 ms
64 bytes from <IP_ADDRESS>: icmp_seq=8 ttl=56 time=5.936 ms
64 bytes from <IP_ADDRESS>: icmp_seq=9 ttl=56 time=5.591 ms

--- registry.npmjs.org ping statistics ---
10 packets transmitted, 10 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 5.449/9.252/14.654/3.547 ms

$ ping -c 10 registry.npm.taobao.org
PING registry.npm.taobao.org.w.cdngslb.com (<IP_ADDRESS>): 56 data bytes
64 bytes from <IP_ADDRESS>: icmp_seq=0 ttl=52 time=8.073 ms
64 bytes from <IP_ADDRESS>: icmp_seq=1 ttl=52 time=13.499 ms
64 bytes from <IP_ADDRESS>: icmp_seq=2 ttl=52 time=8.884 ms
64 bytes from <IP_ADDRESS>: icmp_seq=3 ttl=52 time=7.240 ms
64 bytes from <IP_ADDRESS>: icmp_seq=4 ttl=52 time=13.869 ms
64 bytes from <IP_ADDRESS>: icmp_seq=5 ttl=52 time=18.765 ms
64 bytes from <IP_ADDRESS>: icmp_seq=6 ttl=52 time=6.975 ms
64 bytes from <IP_ADDRESS>: icmp_seq=7 ttl=52 time=13.956 ms
64 bytes from <IP_ADDRESS>: icmp_seq=8 ttl=52 time=6.983 ms
64 bytes from <IP_ADDRESS>: icmp_seq=9 ttl=52 time=7.068 ms

--- registry.npm.taobao.org.w.cdngslb.com ping statistics ---
10 packets transmitted, 10 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 6.975/10.531/18.765/3.953 ms

What does the proposed API look like?
I suggest pinning multi times and use the average time to decide the registry.

What about ping www.google.com, where cannot reach google must be China.

I didn't know that, but it sounds good.

Just checked fresh installation of .vuerc content (I am in Finland) is
{
  "useTaobaoRegistry": true
}


Release v1

We need to release v1 to enable the nightly build or publish the action to be used in other workflow. @smlambert I don't have permission to do it. Could you help with this?

Done, @sophia-guo please let me know if you find any issues with initial release: https://github.com/eclipse/build-openj9/releases/tag/v1.0

@smlambert We would also tag the current release v1.0 as tag v1 to be consumed by github action workflows( we could use release v1.0 as tag though normally github action normally use v1, v2 as tag name convention)
To create a tag on current v1.0 release we can just click on edit button for the v1.0 release, provide v1 as tag name and click on "Update Release". This will create a new Tag within the existing Release. Thanks!

thanks @sophia-guo, done!