JWT Auth Flow

I'm trying to work through setting up JWT authentication and your documentation here says that the function sendJWTTokenRequest can be used to automate JWT auth.  However, it does not seem like this function is made available as one of the exports of the ApiClient module.
The DocuSign documentation and tutorial I linked above describes how to authenticate if you are signing your own JWT and the presenting it to the DocuSign API.  My understanding is that this should be possible by then uploading the RSA public key used to sign the token into my DocuSign integration application.  The only JWT token requests I can see exported from the ApiClient both require me to provide my private key to the function and then will generate the JWT internally to the SDK.
Am I missing something in this apparent conflict between the DocuSign documentation and the actual source code?
In addition, I don't see all of the exports in the source code listed on the documentation here.  Is this out of date?

Hello rpf3,
Thank you for contacting DocuSign Customer Support regarding JWT integration.
Reviewing this topic from one of our supervisors, we can see that actually this method sendJWTTokenRequest is not there anymore, we have go through the different pages, SDK, node and examples and references as  below:
https://developers.docusign.com/docs/esign-rest-api/sdk-tools/?elqCampaignId=27146&utm_source=google&utm_campaign=developer_api_primary&utm_medium=cpc&utm_content=sitelink&sitelink=API_SDKs&gclid=Cj0KCQjw1ZeUBhDyARIsAOzAqQILGumavem50k0cMsTKMnQmsltuzRQYA5NOzZfUk7ZZRoqAhk8sO0gaAkoKEALw_wcB
If you go to SDK, node, there is the Reference and that method is not listed there, is should be, because it's auto generated,
but it isn't. So we have found this approach checking the Github examples as in this link:
https://github.com/docusign/docusign-esign-node-client
And in this other link that one of my colegues gave me, stays in line 94 how to actually call the method
to ge the token, we will need to use requestJWTUserToken instead of sendJWTTokenRequest:
dsApi.requestJWTUserToken(dsConfig.dsClientId
https://github.com/docusign/code-examples-node/blob/master/lib/DSJwtAuth.js#L94
Here you will find the methods the updated methods:
https://docusign.github.io/docusign-esign-node-client/
I know it could be a little bit hard to keep changing code from time to time, it happens to me a lot and more
if it's javascript base, that keep updating always because of speed and security.
I am sending the Email, comment and will try to update the github feed, as is our procedure.
Let's check on this, and if you have any other question let me know.
Best regards,
Pablo | DocuSign Customer Support

Thanks for the response @pablomdstest, the example code you sent uses the function requestJWTUserToken which requires a parameter of the private key which will be used to sign the JWT created by your SDK.  What I am trying to accomplish is to generate my own signed JWT outside of your SDK and then call your API to get a token.  The reason for this is that securing a private key is a layer of complexity and security that I planned to offload to a different service which will then sign my JWT for me.
Would it not be possible to simply expose sendJWTTokenRequest on the ApiClient object?  I'd be happy to open a PR if that's something you'd be interested in implementing.

hello @rpf3 I have created a ticket for our team to take a look at exposing this function.

@acooper4960 thanks for the update.  Would this be across your SDKs or just for the node package?  I have a different service looking into the C# package and it does not seem to be possible with that either.  If not I can raise a separate issue on that repository.


I have a problem, please help me.

I created a wpf project and created two classes that inherit WpfGame. I asked them to draw a picture as well. I ran perfectly on one of my computers and showed what I wanted, but the same The code is having problems on another computer.

This is my first wpfGame window

This is my second wpfGame window。
The second window should have a picture, but it doesn't show up, only shows my grid.But the code for these two windows is the same。
Finally, I am on the same computer, the same code, this second window shows the picture is normal。

I think maybe my graphics card problem, my display is normal integrated graphics, the display is not normal is 1080Ti discrete graphics

Have you encountered this situation, I can't know what the bug is, because it doesn't have any error, just lost the texture.

And I am pretty sure that my drawing code still works on a computer that I am not displaying properly, and has information about the image.

No I haven't encountered such an issue before.
Are you using custom rendertargets or Draw calls with custom sort modes?

I did not use a custom renderTarget. sortMode I chose immediate

Could be from different monogame/driver/etc. versions installed on both PCs then..
Also have you tried the normal SortMode (Deferred)?

I have tried it, I am going to reinstall the computer today, and then try again.

I have failed to reinstall the computer. Have you seen these dotted lines? This is the line I drawn. It is not complete. I also marked a place with a red rectangle. There is originally a picture, but you Look carefully at this location, you will find something faint, but not complete

And there is a new problem, I don't know if I should open a new issue?
When I zoomed in/out the window, it showed an error.

SharpDX.SharpDXException: "HRESULT: [0x887A0005], Module: [SharpDX.DXGI], ApiCode: [DXGI_ERROR_DEVICE_REMOVED/DeviceRemoved], Message: The GPU device instance has been paused. Use GetDeviceRemovedReason to determine the appropriate action.

3 questions from my side:

What display resolution are you using and what default scale is it set to? (A lot of high resolution displays will default to 125-200% on Windows 10). There was an existing issue over on gitlab that I solved with version 1.7.
Can you share a sample project that I could use to verify?
If one isn't the case, how are you zooming into the window? Are you using the windows magnifier or something else?

i use dual display， both are 1920 * 1080 resolution
i don't know if i can make a successful example to you, but i am willing to do this example. i will try to give you an example before Monday.
i just use it to simply zoomed out and zoomed in. like the picture i sent below.

https://github.com/esengine/WpfInterop.Test
I built a new project to test it. Sorry, I didn't find any problems. Maybe there are other operations in my project. I will continue to check it. I will close this question until I find the source of the problem. I will reopen it again.

I redisconvered the problem and found this problem when you open the second window.
https://github.com/esengine/WpfInterop.Test

Unfortunately I can't reproduce (neither with a GPU nor with integrated graphics), it always renders correctly.
However on the (weak) integrated GPU I noticed quite high usage and a bit of lag.
Looking at your code, I saw that the Draw*Grid methods both iterate width*height and essentially draw the same line over and over.
DrawHorizontalGrid only needs to interate height and DrawVerticalGrid only needs to interate width.
By dropping one loop for each the performance improved quite a lot.
private void DrawHorizontalGrid(decimal width, decimal height, decimal maxWidth, decimal maxHeight,
            Vector2 transform)
{
  // this is not needed and causes performance issues -> for (var i = maxWidth - width; i < maxWidth; i++)
  for (var j = maxHeight - height; j < maxHeight; j++)
    spriteBatch.DrawLine(camera.Position.X,
      float.Parse((gridSize * j).ToString(CultureInfo.InvariantCulture)), transform.X,
      float.Parse((gridSize * j).ToString(CultureInfo.InvariantCulture)),
      Color.Green, 1f);
}

Thank you for your optimization suggestions. After I checked it out, I found that it worked abnormally with the dockpanel in Extended.Wpf.Toolkit, but it only appeared on my other high-profile computer. The problem. My current practice is to use only one main window to host your wpfgame, although it is very troublesome, but got a relief.

Can you try to this:
D3D11Host.UseASingleSharedGraphicsDevice = true;

You have to call it once before any game windows are created (e.g. App.xaml.cs constructor).
I changed the default behaviour in 1.7 to false (true will enable the legacy behaviour).

Closing this as I was able to test this with a dedicated GPU and I had the same glitch and it was fixed by the code above.
Feel free to reopen, if it doesn't work for you.


What is positive x and positive y direction in the colormap representation of surfaces gaps, pressures etc. ??

Hi @sannant - what do you mean by this?

In the data structures we define XY coordinates.
The user wanted to know how the XY coordinates are oriented in our representations of the topography maps.
I forwarded you the corresponding email.


Object Field Dependencies

Adds ObjectField validation tests.
Adds field dependencies and tests.
Adds field dependency validation logic and tests.
Updates some objects to use shorthand syntax.
Adds eslint config to match code.
Gitignores Jest coverage output.

@nicksnell, the issues encountered when rebasing with master are resolved. The schema was at fault and has been revised to a Mutt compatible version.


VCF file seems to be reporting heterozygous sites as homozygous sites.

Hi, as the title indicates, all of the entries from my vcf file are being annotated as homozygous (GT values 0/0, or 1/1, or 2/2), but I am expecting that most (if not all) of the variant sites should be heterozygotes because I am mapping the same reads i used to assemble the diploid genome.
I will explain step by step what I have done so you might be able to pick my mistake or the issue.
Assembled a diploid genome using PacBio long reads. --> FASTA file
Error-corrected the PacBio reads with Illumina reads (from the same strain) and mapped them to the genome previously assembled. The error correction was done using proovread and the mapping using blasr --> BAM file
Looking at the BAM file in a genome browser clearly indicates that most (if not all) the variants are heterozygous (equal amount of reads with the assembled and the alternative allele) (See image
attached)

With the FASTA and the BAM files as input I wanted to run freebayes to annotate the variants.
Previously I had to modify the header of the BAM file because freebayes required a value for "SM:" which was not present in the BAM file generated by blasr. (I added "SM:allSMRTreads")
Before running freebayes-parallel I run the python split script (fasta_generate_regions.py) as indicated in the tutorial to be able to run it in several cores.
Freebayes ran for 15 days in 7 cores.
This is a sample of variants from the vcf file ( they correspond to the variants identified in the region from the previous genome browser image),
example_VCF_file_entries.txt
Any idea?
Another question, the QUAL values seem not to be in Phred scale as expected but as P-value or this has to do with the homozygous/heterozygous issue, or am I misreading the file?
Thanks in advance,
Best

The qual scores are in phred scale.
Those that are very low may appear to be p-values. I probably should
truncate the distribution at 1 or maybe 0.1 to avoid such confusion.
Is it only producing homozygous calls? Do you have a breakdown of the rates
above QUAL 20?
On Mon, Mar 20, 2017, 4:48 PM rcosentino<EMAIL_ADDRESS>wrote:

Hi, as the title indicates, all of the entries from my vcf file are being
annotated as homozygous (GT values 0/0, or 1/1, or 2/2), but I am expecting
that most (if not all) of the variant sites should be heterozygotes because
I am mapping the same reads i used to assemble the diploid genome.
I will explain step by step what I have done so you might be able to pick
my mistake or the issue.
Assembled a diploid genome using PacBio long reads. --> FASTA file
Error-corrected the PacBio reads with Illumina reads (from the same
strain) and mapped them to the genome previously assembled. The error
correction was done using proovread and the mapping using blasr --> BAM file
Looking at the BAM file in a genome browser clearly indicates that most
(if not all) the variants are heterozygous (equal amount of reads with the
assembled and the alternative allele) (See image
attached)
[image: 2example_heterozygote_sites_igv]
https://cloud.githubusercontent.com/assets/8237930/24107769/f321cb70-0d8b-11e7-8ec2-901e160c8e75.png
With the FASTA and the BAM files as input I wanted to run freebayes to
annotate the variants.
Previously I had to modify the header of the BAM file because freebayes
required a value for "SM:" which was not present in the BAM file generated
by blasr. (I added "SM:allSMRTreads")
Before running freebayes-parallel I run the python split script
(fasta_generate_regions.py) as indicated in the tutorial to be able to run
it in several cores.
Freebayes ran for 15 days in 7 cores.
This is a sample of variants from the vcf file ( they correspond to the
variants identified in the region from the previous genome browser image),
example_VCF_file_entries.txt
https://github.com/ekg/freebayes/files/855525/example_VCF_file_entries.txt
Any idea?
Another question, the QUAL values seem not to be in Phred scale as
expected but as P-value or this has to do with the homozygous/heterozygous
issue, or am I misreading the file?
Thanks in advance,
Best
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ekg/freebayes/issues/374, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAI4EWiEMkiyYrIw51OSRso3GRNQHo8Kks5rnp_MgaJpZM4MinnA
.

So you can finally close this issue, this problem was related to that the error-corrected PacBio reads that I used were in FASTA format, i.e with no quality information, which lead to the problems that you mentioned in the issue #399. Converting the fasta file to fastq, adding arbitrary quality values, solve this issue.

@rcosentino you can close the issue, as you were the original creator.


First pass styling admin navigation and rows

To start I'm hoping we can just rough in some better UX for navigation (2 levels deep, since we have filters for assets/comments). See https://alonetone.com/admin/comments

This was handled in #519


Nasty stack overflow segfault bug when implementing the Default trait

Bevy version
0.8.1
The issue
I stumbled upon a situation where when I spawned my player bundle the program would segfault with a stack overflow. With gdb I discovered that this occurred in the default function. The problem might be obvious to some:
#[derive(Bundle)]
pub struct PlayerBundle {
    player: Player,

    #[bundle]
    sprite: SpriteBundle,

    rigid_body: RigidBody,
    collider: Collider,
}

impl Default for PlayerBundle {
    fn default() -> Self {
        Self {
            sprite: SpriteBundle {
                sprite: Sprite {
                    custom_size: Some(Vec2::new(24.0, 24.0)),
                    ..default()
                },
                ..default()
            },
            ..default()
        }
    }
}

Namely, the default function is recursive and non terminating (I wrongly assumed that ..default() calls upon the Default trait of each respective field). This is quite problematic which is why in a non bevy project like this sandboxed example:
struct DefaultOne {
    v: u32,
}

impl Default for DefaultOne {
    fn default() -> Self {
        Self { v: 1 }
    }
}

struct DefaultFour {
    v: u32,
}

impl Default for DefaultFour {
    fn default() -> Self {
        Self { v: 5 }
    }

}
struct Pair {
    x: DefaultOne,
    y: DefaultFour,
}

impl Default for Pair {
    fn default() -> Self {
        Self {
            x: DefaultOne { v: 42 },
            ..Default::default()
        }
    }
}

rust analyzer produces a big fat warning about possible non termination. However, somehow when using the ..default() syntax made available in the bevy prelude, rust analyzer is blind to the issue and lets you write a nasty bug like this. It would be good to research if it is possible to make sure that in the bevy case this warning is still emitted.

It seems that there is no diagnostics even with a custom default fn and the default_free_fn feature in rust nightly. I'll try filing an issue for this in rust-lang.

We can't hope to solve this until the default free function stabilises in some form, unless we remove our own free function.

This is in fact, not a Bevy problem, but a Rust problem. See rust-lang/rust#57965

#8879 is a duplicate of this, but since it has more up-to-date information, I'm closing this one in favor of #8879


[opencv4[qt,eigen]:x64-windows] build failure

Host Environment

OS: Windows 10
vcpkg version: 2020.06.15-nohash
using PowerShell as admin

To Reproduce
./vcpkg install opencv4[qt,eigen]:x64-windows
Failure logs
-- Configuring x64-windows-rel
-- Configuring x64-windows-rel done
-- Configuring x64-windows-dbg
-- Configuring x64-windows-dbg done
-- Package x64-windows-rel
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:142 (message):
Command failed: D:/code/vcpkg-2020.11-1/downloads/tools/msys2/4fbc9d9dcfa221de/usr/bin/bash.exe --noprofile --norc -c "make install"
Working Directory: D:/code/vcpkg-2020.11-1/buildtrees/icu/x64-windows-rel
See logs for more information:
D:\code\vcpkg-2020.11-1\buildtrees\icu\make-install-x64-windows-rel-out.log
D:\code\vcpkg-2020.11-1\buildtrees\icu\make-install-x64-windows-rel-err.log
Call Stack (most recent call first):
ports/icu/portfile.cmake:143 (vcpkg_execute_build_process)
scripts/ports.cmake:135 (include)
Error: Building package icu:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with .\vcpkg update, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: icu:x64-windows
Vcpkg version: 2020.06.15-nohash
Additional context
logs:
make-install-x64-windows-rel-err.log
make-install-x64-windows-rel-out.log
The error log mentions that D:/code/vcpkg-2020.11-1/packages/icu_x64-windows/lib/icudt67.dll doesn't exist, but i actually can find it in the explorer.

@tapirnose ，Thanks for posting this issue,This question may be related to cudnn. What is the version of cudnn you installed?

I have not yet heard of cudnn; how would I check its version or whether I have it installed at all?
It does not show up in the list of packages installed via vcpkg.

@tapirnose ，I successfully build，my cuda version is v11，You can try to download and install this version of cudda, and then try again：this

@tapirnose ,Does this problem still exist?

Thanks for posting this issue. Please reopen this issue if it still be a problem for you.


Debounce is not in effects typings

Actual results
there is no mention of debounce in typings
The Expected results
debounce should be typed according to API
Environment information

<EMAIL_ADDRESS>

I've merged ur PR, thanks for it! Keep in mind that debounce is available only in v1-beta


Fix clear block after a flush complete

Otherwise result in crash
*** SIGSEGV address not mapped to object (@0x0) received by PID 4149909 (TID 4152328 OR 0x7efefc60d700) from PID 0; stack trace: ***
 0# doris::signal::(anonymous namespace)::FailureSignalHandler(int, siginfo_t*, void*) at /home/zcp/repo_center/doris_master/doris/be/src/common/signal_handler.h:421
 1# PosixSignals::chained_handler(int, siginfo*, void*) [clone .part.0] in /usr/lib/jvm/java-17-openjdk-amd64/lib/server/libjvm.so
 2# JVM_handle_linux_signal in /usr/lib/jvm/java-17-openjdk-amd64/lib/server/libjvm.so
 3# 0x00007F031AD0E090 in /lib/x86_64-linux-gnu/libc.so.6
 4# doris::Status doris::vectorized::MutableBlock::merge_impl<doris::vectorized::Block const&>(doris::vectorized::Block const&) at /home/zcp/repo_center/doris_master/doris/be/src/vec/core/block.h:586
 5# doris::Status doris::vectorized::MutableBlock::merge<doris::vectorized::Block const&>(doris::vectorized::Block const&) at /home/zcp/repo_center/doris_master/doris/be/src/vec/core/block.h:521

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Having ScrollSpy would be nice

Feature request type
Enhance component
Component name
No response
Is your feature request related to a problem?
I want to make a sidebar like the one in the mudblazor docs, with the current scolled item highlited in the sidebar.
Describe the solution you'd like
Some components that handle the js initialization and disposal of event hadlers
Have you seen this feature anywhere else?
https://mudblazor.com/features/colors#theme-palette-colors
Describe alternatives you've considered
No response
Pull Request
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Dont really get what you mean.
Js init and disposing you can do as I do with this library https://github.com/fgilde/BlazorJS?tab=readme-ov-file#basecomponent-for-js-wrapper-components-

What I mean is having a pre-made MudExt component that allows having ScrollSpy built into the library.  And not have to search and do interop, you know.
I know it's feasable to do it on my own, but I think this would be a valuable thing to include.

Just for the record it's actually in MudBlazor just not documented and a "use at your own risk" type thing.
MudPageContentNavigation
https://github.com/MudBlazor/MudBlazor/pull/2188#issuecomment-940795769

MudBlazor already has a IScrollSpy interfaces that can be injected via DI if you need to spy a scroll. Unless I'm missing something.

I've created something new that maybe helps you. In general it's called MudExVirtualItem to have an virtualization behavior independent of a list. However because of the possibility of the Item to check when it is visible in scroll container and the event for visible changed it is maybe something that you can use. I created a demo page for it where it demonstarte how you can start loading something when a container is in the visible area.
Demo can found here currently. https://mudex.azurewebsites.net/virtual-item
Notice its not released yet but a preview package is available


[ruby] twitter-text-2.0.0.gem doesn't include config/v[12].json

In 2.0.0 twitter-text/blob/master/rb/lib/twitter-text/configuration.rb includes config/v1.json and config/v2.json in the top directory of the twitter-text repository
https://github.com/twitter/twitter-text/blob/34dc1dd9f10e9171100cdff0cb2b7a9ed9ea2bd6/rb/lib/twitter-text/configuration.rb#L18
https://github.com/twitter/twitter-text/tree/34dc1dd9f10e9171100cdff0cb2b7a9ed9ea2bd6/config
but they are not included in the gem file. (the gem was generated from files under rb directory?)

Thanks for this report. We've got an update coming momentarily.

2.0.1 has been pushed to rubygems.


Multiple task handler match sort by weight

Hi @averyyan
thank you for this PR.
May I ask, what problem you try to solve with this PR?
What's your use case?

I am tring to find a way to mange all the handle. I had 50+ BPMN file.some times i can not sure about ids.


Renaming default aliases for tables/columns

Is there a way the provider can rename (correctly) the aliases for tables/columns EFCore used for the query?
Example:
Table1 AS "t"
    LEFT JOIN Table2 AS "t.Table2" ON "t"."idTable2" = "t.Table2"."id"
    LEFT JOIN Table3 AS "t.Table2.Table3" ON "t.Table2"."IdTable3" = "t.Table2.Table3"."id"

Can I somehow change i.e. the t.Table2 or t.Table2.Table3?
I know I can change the names while creating the query, but that will make higher parts of EFCore unhappy, because it will not be able to find what it expects in the reader.
Reason:
Firebird has limited length for identifiers and especially while in join, the names of tables are just concatenated together and it's easy to overrun this limit.

Prior to 3.0, providers need to set this property to limit the length for identifiers.
https://github.com/aspnet/EntityFrameworkCore/blob/master/src/EFCore.Relational/Query/RelationalQueryCompilationContext.cs#L94
In 3.0, alias-ing is going to be much different but it will allow providers to specify max length in similar fashion.

Thanks, that solves it for me (at least at the moment for 2.2 :)).


Remove the Sighash::Reserved variant

We have a SchnorrSignatureHash::Reserved variant that is not useful. All other values of sighash types are invalid by consensus, and the reserved is serving no purpose.
Initially, we had these because we tried to combine the EcdsaSignatureHashType, SchnorrSignatureHashType  and future possible upgrades into a single enum SigHashType. In order to mark it non-exhaustive, it was suggested to add the Reserved` variant
Later on, we cleanly split into SchnorrSignatureHashType and EcdsaSignatureHashType and this is no longer needed and only confuses the reader. If in the future, we have a new signature algorithm or a hash type, we can add another enum for it. De-duplicating code here is not worth it.

Picking this up


Improve login failed response

Differentiate between incorrect credentials and daily data limit exceeded on credentials.
Optionally, prompt users to delete incorrect credentials.

Further discussion on this is required, response for each case would need to be recorded here

These are the responses.
<?xml version='1.0' ?>
<requestresponse>
    <status>
        <![CDATA[LOGIN]]>
    </status>
    <message>
        <![CDATA[Your data transfer has been exceeded, Please contact the administrator]]>
    </message>
    <logoutmessage>
        <![CDATA[You have successfully logged off]]>
    </logoutmessage>
    <state>
        <![CDATA[]]>
    </state>
</requestresponse>

<?xml version='1.0' ?>
<requestresponse>
    <status>
        <![CDATA[LOGIN]]>
    </status>
    <message>
        <![CDATA[Login failed. Invalid user name/password. Please contact the administrator. ]]>
    </message>
    <logoutmessage>
        <![CDATA[You have successfully logged off]]>
    </logoutmessage>
    <state>
        <![CDATA[]]>
    </state>
</requestresponse>

I had them extracted for https://github.com/eigengravy/auto-campnet-bpgc-cli/blob/main/main.go?#L79-L89


opentest with browserstack

Does opentest support browserstack integration for mobile applications?

Yes, it does. See this issue: #66. I'm not sure if BrowserStack has changed any of the desired capabilities configuration in the meantime, but if they did it should be well documented on their website.


No such file: styles.scss

Hi,
I followed the Instructions on: https://invenio.readthedocs.io/en/latest/quickstart/quickstart.html
All seemes fine, but when I open https://<IP_ADDRESS>:5000/ I get the following error:
IOError: [Errno 2] No such file or directory: '/home/user/.virtualenvs/my-repository-venv/var/instance/static/scss/invenio_theme/styles.scss'
Which is right, static contains only a package.json. The files needed are located in /lib/python2.7/site-packages/invenio_theme/static.
What went wrong? Is there another npm install needed? Is there something missing in docker-compose?
Greetings!

Hello @devolt5! First of all thanks for trying out Invenio :)
I went through the instructions and I couldn't reproduce the issue, so lets find out what's wrong with some questions

Did you strictly follow the docs? The cookiecutter instructions are pinned to v3.0 wich is stable.
Do you have Invenio installed inside your system Python? When this happens you might run into the issue that the global Invenio installation is being called, instead of the one inside the virutalenv (could happen here).

$ which invenio
/usr/local/bin/invenio
# instead of
$ which invenio
/Users/username/.virtualenvs/the-invenio/bin/invenio

Thanks for the hint!
$ which invenio showed nothing. Then I checked my npm version, which was below the minimum requirements. For safety's sake, I changed the Python version to 3.
$ ./scripts/bootstrap then compiled a bunch of js and css files, which was a good sign.
Which Python3 version is suggested by you at the moment?
Now, everything's fine!

Thanks for the hint!
$ which invenio showed nothing. Then I checked my npm version, which was below the minimum requirements. For safety's sake, I changed the Python version to 3.
$ ./scripts/bootstrap then compiled a bunch of js and css files, which was a good sign.
Which Python3 version is suggested by you at the moment?
Now, everything's fine!

Didn't see that. Sure.

Documented in https://github.com/inveniosoftware/troubleshooting/issues/45.


register preston-code-prox.is-cool.dev

Requirements

[x] You have completed your website.
[x] The website is reachable.
[x] The CNAME record doesn't contain https:// or /.
[x] There is sufficient information at the owner field.
[x] Your website is not hosting on the following due to SSL issues: Vercel, Netlify

Description
proxy on netlify
Link to Website
https://heroic-meringue-26c962.netlify.app

CLA Assistant Lite bot: Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.

I have read the CLA Document and I hereby sign the CLA

You can retrigger this bot by commenting recheck in this Pull Request


go packet capture losing data.

Go packet capturing facility seems to loose data.
I have written a basic example (example code below). This example works fine if I am sending small data chunks. If I send bigger data, for example 5MB file from source to destination,  the "packet source" starts to miss data.
When I use tcpflow, I can reconstruct the data I sent every time, but the golang example misses chunks of data during reassembly.
For example when I transfer a file using netcat from source to destination I am not able to capture all the data using golang packet capture.
When I use tc command to slow down traffic, then the application works just fine. That's strange. Is there a limit to the speed at which go library can capture packets? tcpflow seems to capture all the traffic just fine.
`var iface = flag.String("i", "em1", "Interface to get packets from")
var fname = flag.String("r", "", "Filename to read from, overrides -i")
var snaplen = flag.Int("s", 65536, "SnapLen for pcap packet capture")
var filter = flag.String("f", "tcp and dst port 514", "BPF filter for pcap")
var logAllPackets = flag.Bool("v", false, "Logs every packet in great detail")
func main() {
//defer util.Run()()
var handle *pcap.Handle
var err error
handle, err = pcap.OpenLive(*iface, int32(*snaplen), true, pcap.BlockForever)

if err != nil {
    log.Fatal(err)
}

if err := handle.SetBPFFilter(*filter); err != nil {
    log.Fatal(err)
}

fmt.Println("pcap file opened")
var snapshotLen uint32  = 65536
f, _ := os.Create("test.pcap")
w := pcapgo.NewWriter(f)
w.WriteFileHeader(snapshotLen, layers.LinkTypeEthernet)
defer f.Close()
defer handle.Close()

packetSource := gopacket.NewPacketSource(handle, handle.LinkType())
packets := packetSource.Packets()
ticker := time.Tick(time.Minute * 4)
for {
    select {
        case packet := <-packets:
            w.WritePacket(packet.Metadata().CaptureInfo, packet.Data())

        case <-ticker:
            fmt.Println("pcap file closed")
            return

    }
}

}`

If you TCPDump to a file, then read from the file with gopacket, does it still fail, or does it work?
Any chance your snaplen is too small (probably not, it's huge :P)
BTW, you're not actually parsing your flags anywhere, you should probably call flag.Parse().
Also, check errors coming from WriteFileHeader and WritePacket?

Any update on this?

No answer for 2 years...

I meet the same problem when I use the gopacket.


[1.20.1] Added Buy_Tag Handler to Villager Trade Data

As discussed in https://github.com/wisp-forest/numismatic-overhaul/issues/150#issue-2618063972 buy_tag functionality has been added.
This is mostly for testing reasons.
All code is derived from existing the Sell_Tag handler.
Tested based on latest available 1.20.1 build 0.2.12

This does not seem to work. Items still register as SellStack...


WMAgent - LookupError: unknown encoding: utf-8 - branch 1.3.6_wmagent

This issue is created starting from a comment that @amaltaro made in #9868  .
Impact of the bug
From Alan's message, it affects the backfill agent (vocms0285), in 1.3.6_wmagent branch of dmwm/WMCore.
Describe the bug
From Alan's traceback:
  File "/srv/job/WMCore.zip/WMCore/WMException.py", line 33, in __init__
    message = message.decode('utf-8', 'ignore')
LookupError: unknown encoding: utf-8

It is like the file lib/python${VER}/encodings/utf_8.py is not found, or like some package is shadowing it, like in this pyinstaller issue.
This is not the usual encoding/decoding error that one encounters when dealing with python strings.
How to reproduce it
I am not sure. I have not been able to reproduce in my docker environment and in my VM. I will need to investigate a bit more on this subject.
Expected behavior
There should be no exception raised when already dealing with an exception.
Additional context and error message
Message from Alan:

I was looking at the backfill agent (vocms0285), and I've spotted a few jobs failing with errors like (wmagentJob.log):

2020-09-01 23:18:55,930:INFO:PerformanceMonitor:PSS: 133864; RSS: 133860; PCPU: 0.0; PMEM: 0.0
2020-09-01 23:23:44,021:CRITICAL:CMSSW:Error running cmsRun
{'arguments': ['/bin/bash', '/srv/job/WMTaskSpace/cmsRun1/cmsRun1-main.sh', '', u'slc7_amd64_gcc700', 'scramv1', 'CMSSW', 'CMSSW_10_6_9', 'FrameworkJobReport.xml', 'cmsRun', 'PSet.py', '', '', '']}
Linux Return code: 135

2020-09-01 23:23:44,021:CRITICAL:CMSSW:Error message: None
2020-09-01 23:23:44,352:ERROR:ExecuteMaster:Exception occured when executing step
2020-09-01 23:23:44,352:ERROR:ExecuteMaster:Exception is unknown encoding: utf-8
2020-09-01 23:23:44,353:ERROR:ExecuteMaster:Traceback:
2020-09-01 23:23:44,354:ERROR:ExecuteMaster:Traceback (most recent call last):
  File "/srv/job/WMCore.zip/WMCore/WMSpec/Steps/ExecuteMaster.py", line 139, in doExecution
    executionObject.execute()
  File "/srv/job/WMCore.zip/WMCore/WMSpec/Steps/Executors/CMSSW.py", line 284, in execute
    raise WMExecutionFailure(returnCode, "CmsRunFailure", msg)
  File "/srv/job/WMCore.zip/WMCore/WMSpec/Steps/WMExecutionFailure.py", line 18, in __init__
    WMException.__init__(self, detail, code)
  File "/srv/job/WMCore.zip/WMCore/WMException.py", line 33, in __init__
    message = message.decode('utf-8', 'ignore')
LookupError: unknown encoding: utf-8

2020-09-01 23:23:44,354:CRITICAL:CMSSW:CMSDefaultHandler Diagnostic Handler invoked
2020-09-01 23:23:44,356:ERROR:ExecuteMaster:Encountered error while running ExecuteMaster:
unknown encoding: utf-8
Traceback (most recent call last):
  File "/srv/job/WMCore.zip/WMCore/WMSpec/Steps/ExecuteMaster.py", line 73, in __call__
    result = self.doExecution(executor, step, wmbsJob)
  File "/srv/job/WMCore.zip/WMCore/WMSpec/Steps/ExecuteMaster.py", line 149, in doExecution
    executor.diagnostic(99109, executor, ExceptionInstance=ex)
  File "/srv/job/WMCore.zip/WMCore/WMSpec/Steps/Diagnostic.py", line 87, in __call__
    handler(errCode, executor, **args)
  File "/srv/job/WMCore.zip/WMCore/WMSpec/Steps/Diagnostics/CMSSW.py", line 102, in __call__
    self.parse(executor, jobRepXml)
  File "/srv/job/WMCore.zip/WMCore/WMSpec/Steps/Diagnostic.py", line 42, in parse
    executorInstance.report.parse(jobRepXml, executorInstance.stepName)
  File "/srv/job/WMCore.zip/WMCore/FwkJobReport/Report.py", line 156, in parse
    raise FwkJobReportException(msg)
  File "/srv/job/WMCore.zip/WMCore/WMException.py", line 33, in __init__
    message = message.decode('utf-8', 'ignore')
LookupError: unknown encoding: utf-8

2020-09-01 23:23:44,357:INFO:Watchdog:MonitorThread: JobEnded

@mapellidario can I ask you to look into this PR and try to backport it to the branch 1.3.6_wmagent? That branch does not have any of these code modernization, so it might not be very straight forward...
Once you have it ready, please make a PR against the 1.3.6_wmagent branch and we can start testing your changes in the backfill agent itself (I'll take care of the testing). Thanks

I haven't seen this error popping up again (in agents 1.4.1), so I'm closing this issue.


[Time-Traveling World Clock] ...

Extension
https://www.raycast.com/marky/world-clock
Description
Would like to add a UTC clock in addition to specific cities.
Who will benefit from this feature?
Developers, anyone who works with UTC
Anything else?
No response

@joelnordell done
@raycastbot close this issue

@raycastbot close this issue


README: add simple note regarding issues

As mentioned in the original PR, some issues need to be open in order to
improve/fix the project.

Changes Unknown when pulling 5fc7dc77a1db8904a450d9cf62bf7bc4ab27fb29 on add-issues into ** on master**.

Changes Unknown when pulling 52ea95e31e2f3cdb669137c801edc96e2bd53fb4 on add-issues into ** on master**.


Full range hook

noticing we're not enforcing minimumLiquidity locked up permanently for each pool, which I think opens us up to the same bugs V2 had without it

you'll have some conflicts when you merge main, I think esp since tokenA/B must be in a specific order now, so might want to think about doing that!


Catching errors on faulty image urls is not working.

return Jimp.read(url).catch(err => {
    console.log("Caught 404");
    console.log(err);
 });

/Users/Sanket/WebstormProjects/project/node_modules/jpeg-js/lib/decoder.js:598
        throw new Error("SOI not found");
              ^
Error: SOI not found
    at constructor.parse (/Users/Sanket/WebstormProjects/project/node_modules/jpeg-js/lib/decoder.js:598:15)
    at Object.decode (/Users/Sanket/WebstormProjects/project/node_modules/jpeg-js/lib/decoder.js:983:11)
    at Jimp.parseBitmap (/Users/Sanket/WebstormProjects/project/node_modules/jimp/src/utils/image-bitmap.js:117:36)
    at /Users/Sanket/WebstormProjects/project/node_modules/jimp/src/index.js:283:29
    at /Users/Sanket/WebstormProjects/project/node_modules/jimp/src/index.js:82:24
    at /Users/Sanket/WebstormProjects/project/node_modules/jimp/src/request.js:52:21
    at IncomingMessage.<anonymous> (/Users/Sanket/WebstormProjects/project/node_modules/phin/lib/phin.compiled.js:1:2049)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickDomainCallback (internal/process/next_tick.js:218:9)

Might be related to #262

This functionality is working in v0.2.27

Should work in v0.3.3 when it gets released. 🙏 @oliver-moran


Compiling

Hello I found Codiad yesterday and was pretty impressed by how fine it works, the only problem is that it doesn't have the ability to compile programs, which is one of the main functions of an IDE.
So I hope it will be added soon

Hi, have a look at the marketplace http://market.codiad.com/ . Personally i prefer my own plugin Macro, which allows to define custom shell scripts like compiling stuff

Thanks that will probably work, just for the record compiling a c++ program would be like:
g++ %file%

im using codiad as a frontend for a compiling platform http://kodera.tk
contact me if you want hints.

@gregor160300 if you use that macro plugin, new commands will be attached to defined level in the context menu or in the rightbar

@nerodark Your website is down, but if you could give me a email adress or something we could contact eachother, btw I am working on a complete new interface for codiad, I am still considering how it will eventually be posted like in a fork or no source just on my website.

@gregor160300 - can you explain more about what you are doing?
Scott

@smolinari I am redesigning the interface so it looks more attractive and is easier to use, also I will go with a flat design and put buttons on other places

Sounds interesting. Are you also improving the interface, so that it is also completely standardized? Like all calls being RESTful?
Scott

I dont understand what you mean by restful, I will base colors and use on numix(nice and dark since most devs work at night bright colors hurt eyes), remove shadows they look ugly and then it will become a flat expreience sort of like android lollipop I have a idea for the placement of buttons and such but that will take some weeks to do so first the theme and then rebuild I will make a mock up now of the screen with placement of buttons and such

Here are my sketches I hope they are readable, colors are subject to change.

From left to right top buttons are: settings, logout, load mega drive in filemanager*, load github in filemanager*, load google drive in filemanager*, to be assinged, compile*, run*, back arrow for tabs, tabs, next arrow for tabs, undo*, redo*, save, programming language.
In the left bottom there is a small terminal with ability to expand to fullscreen*

Probably wont be able to make myself

feel free push changes in with a pullrequest

Ok. You are working on just the UI design. I thought maybe you'd be also working on the interface with the server too. Nevermind.

Wip but I would like to show you sort of what it is becoming with colors

neodark, I need your help with the run plugin, how did you implement it? I am trying to setup an IDE for home use based on codiad and compile/run is a must.

the run plugin calls a single php file thats run a bash script thats contains a switch case for all languages that i support and then redirects the output to a file and to codiad.
if you want more info contact me at<EMAIL_ADDRESS>


Add wayang-api-json and wayang-api-python to create WayangPlans from python

This PRs description can be found in one of our blog posts:
https://wayang.apache.org/blog/wayang-python-api

This PR will also entail an issue arising with typing. Currently the interchange format between python and wayang is mainly handled by serializing strings and parsing them to the desired type in the udf. It is of course desirable to add type hints to operators that allow the parsing to happen implicitly. The issue will be added after merging the PR.

@zkaoudi @kbeedkar - pls review too before we merge.

looks good to me +1


Can't use your library.

Hi, I think your library is a very useful library for me.
but when i want to use it, android studio says:
Error:(52, 13) Failed to resolve: com.github.malmstein:fenster:v.0.0.2

you can clone this project and do the following in your own project:
go to Android Studio> File> Project Structure> Add a new module using the plus sign on top of the window> choose Gradle project and select the folder of the library where it is cloned> and hit finish.
then you'll be able to use the library.


⚠ Samsung has degraded performance

In 46dec48, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2118 ms

Resolved: Samsung performance has improved in db7f060.


Sonarqube broke?

out on http://shields.io/ i see sonarqube giving a badge that says invalid

is it broken?
i also setup my own shields server against my behind the firewall sonarqube and get the same thing.

ok i got it to work internally, my port is not 80 so i had host/9000 not host:9000 cause i thought : would cause problems..duh.
the example on the website is still broken though.

Full disclosure, I have no idea how sonarqube works. Maybe the badge is broken because the project it is meant to show has been discontinued. In that case, I'd love you to perform a pull request to use a working badge in try.html.


General improvements from my fork

I have made some general improvements in my fork. If you like those improvements, I'll send you a PR :).
Edit: my improvements include

Using const for things that are constants instead of final

Add @override annotation as a convention
Example:
+ @override
  Future<Response<Account>> createAccount({Account data}) async {...}

Removed type information from generated methods, Dart can automatically infer the types from the super class devkabiir/retrofit.dart@ea051356ac24d85a932bf68f80c3a5fdc37c5073
Example:
- Future<Response<Account>> createAccount({Account data}) async {...}
+ createAccount({data}) async {...}

Use forwarding/redirecting constructor instead of instance() static method
Example:
-   static RestClient instance([Dio dio]) => _RestClient(dio);
+   factory RestClient([Dio dio]) = _RestClient;

Don't add check for baseUrl being null because it's a constant and we can know that at build-time devkabiir/retrofit.dart@f5664c7a58d12ec396bb0b83d7993ca3f48ab1da
Example:
  _RestClient([this._dio]) {
-    final baseUrl = 'https://httpbin.org/';
-    if (baseUrl != null && baseUrl.isNotEmpty) {
-      _dio.options.baseUrl = baseUrl;
+      _dio.options.baseUrl = 'https://httpbin.org/';
-    }
  }

Add ArgumentError.checkNotNull for required parameters devkabiir/retrofit.dart@6c675756e2eedf943d0263b0f940a99373a0bedb

Generate *.g.dart shared parts instead of *.retrofit.dart parts

Implement the annotated class instead of  extending it
Example:
-    class _RestClient extends RestClient {
+    class _RestClient implements RestClient {

Don't assign defaultValue if it's null for parameters devkabiir/retrofit.dart@a610e2675c84376c56f9568b9c5f1476b9995596

Add @Extra for passing extra options to requestOptions devkabiir/retrofit.dart@1d470c296efc46c0e500e60287ed187a3244b60a
Example:
myapi.dart
  @http.POST('/account/')
+ @dio.Extra({'myKey': 'myValue'})
  Future<Response<Account>> createAccount(
      {@required @http.Body() Account data});

myapi.g.dart
  @override
  createAccount({data}) async {
    ArgumentError.checkNotNull(data, 'data');
+   const _extra = <String, dynamic>{'myKey': 'myValue'};
    final queryParameters = <String, dynamic>{};
    final _data = data;
    return _dio.request('/account/',
        queryParameters: queryParameters,
-       options: RequestOptions(method: 'POST', headers: {}),
+       options: RequestOptions(method: 'POST', headers: {}, extra: _extra),
        data: _data);
  }

Example:
Use would add their Extra config
myapi.dart
  @http.POST('/account/')
+  @dio.Extra({'myKey': 'myValue'})
  Future<Response<Account>> createAccount(
      {@required @http.Body() Account data});

Which would generate the following code
myapi.g.dart
  @override
  createAccount({data}) async {
    ArgumentError.checkNotNull(data, 'data');
+   const _extra = <String, dynamic>{'myKey': 'myValue'};
    final queryParameters = <String, dynamic>{};
    final _data = data;
    return _dio.request('/account/',
        queryParameters: queryParameters,
-       options: RequestOptions(method: 'POST', headers: {}),
+       options: RequestOptions(method: 'POST', headers: {}, extra: _extra),
        data: _data);
  }

Pull request is really appreciated. @devkabiir

8. Implement the annotated class instead of extending it

Why use implement?
When I wanted to add normal methods to the annotated class,  a compilation error occurred.😵

Extending classes is very tricky. It would require a lot of conditional code generation and a lot of testing edge cases. Because you can never really know how the user will create a new object of type RestClient  at static-time . In implements version, a redirecting factory constructor is used which makes sure that the generated class is used for object instantiation. A similar problem occurs if you add final  instance fields the generator doesn't know how to create a class that can instantiate that final field.
Now for your use case of adding normal  instance methods, you can create extensions for your RestClient class.
extension SpecialMethods on MyRestClient {

  void myMethod(){}

  Future<void> asyncMethod() async {}

  // Literally any kind of method, getter and setter are supported.
}

@devkabiir you are correct.
For that reason I added some logic kept both implements and extends in generator depending on how programmer designes annoted class.
https://github.com/trevorwang/retrofit.dart/pull/236/files#diff-c32d94163bf53716580c4c7c7effcf0bR76
Here I created a list of only generative constructor(other than default constructor).
https://github.com/trevorwang/retrofit.dart/pull/236/files#diff-c32d94163bf53716580c4c7c7effcf0bR89
And if that list is empty just implement it as the generator does earlier.
And if not empty then extend the class, coz it seems the programmer is upto adding some instance fields or some concrete methods with body. And this gives them the power to do so.
https://github.com/trevorwang/retrofit.dart/pull/236/files#diff-c32d94163bf53716580c4c7c7effcf0bR114
Here this method generates suitable constructors to match the corresponding annoted class' generative constructors.
And for you query related to final instance field.
If annoted class has final instance fields, that class must have atleast one generative constructor to initialize the final field. And thus any other class can't implement that annoted class with generative constructor. So the generated code is already broken. In that case extending the class resolves the issue.
Here's an example how this can be used to increase the flixibility:
https://github.com/Akash98Sky/onedrive_dart/blob/master/onedrive_api/lib/src/services/onedrive_api.dart

This smells bad code hygiene to me.
In your example use case onedrive_api.dart. All of your additional methods could've been extension methods as specified in my previous example. Your only valid use case for using extends is to be able to pass credentials using annotated class constructor. Which you immediately pass to new Dio instance. The whole point of a rest api service class is being able to have deterministic behavior as well as be able to test using mocks/stubs/fakes. You don't pass a dio instance to your annotated class so it's impossible to write deterministic tests for your library.
In your PR #236 You aren't handling default values for constructor parameters as well as parameters marked with the new requried keyword or the old @requried annotation.
The generated class becomes stateful, which is bad for testing as well as bad for the concept of REST api. A REST Api service's only purpose is to perform REST compliant operations on an endpoint (some refer to it as base_url).
If someone uses your stateful REST service like this and uses that instance throughout the application. They don't know for sure if the correct credentials are being used everywhere because they don't have access to the underlying Dio instance. They can't do proper error handling and they can't intercept dio requests and responses. People who use Dio, use it for it's flexibility, otherwise they can use the built-in HTTPClient. Your package uses Dio but it makes it useless for people who use Dio, they can't properly test their app/package with 3rd party code (which is your package in this case).
final apiForUser1 = OneDriveAPI(/* credentials */);

What if they want to logout the user?
What if they want to login different user?
They have to create a new instance of OneDriveAPI and with that another Dio instance.
An alternative solution for providing credentials would be to extend Dio itself and require that instead of creating a final instance field.
// Approach one
mixin DioWithCredentials on Dio {
	AccessCredentials get credentials;
}

// Approach two
mixin DioWithAutoUpdatingCredentials on Dio {
  AccessCredentials _credentials;
  AccessCredentials get credentials => _credentials ?? throw StateError('You have to set credentials first');
  set credentials(AccessCredentials newCredentials){
  	options.headers['Authorization'] = newCredentials.authorization;
    _credentials = newCredentials;
  }
}

// Using Approach one
@RestApi(baseUrl: API_BASE_URL)
abstract class OneDriveAPI {
	factory OneDriveAPI(DioWithCredentials dio) =>
		_OneDriveApi(dio..options.headers['Authorization']=dio.credentials.authorization);
}

// Using Approach two
@RestApi(baseUrl: API_BASE_URL)
abstract class OneDriveAPI {
	factory OneDriveAPI(DioWithAutoUpdatingCredentials dio, AccessCredentials credentials) => _OneDriveApi(dio..credentials = credentials);
}

Now it's upto the user of your API to use the provided DioWithCredentials mixin they can choose to mock it or not.
Approach two also allows your users to change the credentials dynamically anytime they want using dio.credentials = /* new cerdentials */ Without creating new instance of OneDriveAPI.
There are many more ways to solve the problem without changing the generated class to extends instead of the immutable version implements.

Any call to the RestApi would happen via the abstract layer of annoted class only, so it's immaterial to use required on parameters of the generated class. Moreover the generated class doesn't use any fields or concrete methods added to the annoted class, so the safety of those params or methods are the duty of the annoted class designer.
As, I was trying to build a easy to use, type safe API for Onedrive using dart, that's why I didn't keep the direct access of dio open to the user using my package. OneDriveAPI is the entry point for the api and all the calls and errors relevant to dio will be handled underneath. Though it's not complete yet.


Familiar Locations

The documentation says: “The system also ignores sign-ins from familiar devices, and locations that are geographically close to a familiar location.”
Say, a customer uses public IP addresses for their endpoints, provided by their own ISP (university), will these ranges be marked as familiar locations? What is the definition of “geographically close locations”? This is different per country.

Detalji dokumenta
⚠ Ne uređujte ovu sekciju. Ona je neophodna za povezivanje problema slijedom docs.microsoft.com ➟ GitHub.

ID: 81a1385f-b90a-e7b4-8cbd-f25aeb8b3c49
Version Independent ID: d468eb75-88a9-b1aa-7fb3-19ebb4faa179
Content: Azure Active Directory Identity Protection risk detections reference
Content Source: articles/active-directory/identity-protection/risk-events-reference.md
Service: active-directory
Sub-service: identity-protection
GitHub Login: @MicrosoftGuyJFlo
Microsoft Alias: joflore

@GitTune Geographically close locations essentially means locations which would have similar IP ranges as the familiar devices. So if you are a universiy and you run your own ISP and provide IP addresses to your students within your network then anything within the same IP range woudl be familiar. Similarly , If you take your laptop home and connect to your home network every day a pattern emerges and the back-end service analyzes these parameters and many other details to find a pattern on your login actively so that anything which diverts from the pattern can be categorised as a threat for review by the administrator. Some details of inner working for this esecurity product may not be discussed in detail due to obvious reasons. Most of the Security softwares which monitor the logon behaviour work in similar fashion . Hope this clarifies the query. We will now close this issue. In case you have any further question , please feel free to reply back on this thread tagging me and the content author @MicrosoftGuyJFlo and we will surely continue the conversation.
Thank you.


Outdated Docker EE download link

File: install/windows/docker-ee.md
Offline package download link (https://download.docker.com/components/engine/windows-server/2.1/docker-17.06.2-ee-17.zip) needs to be updated. Now responds with 404.

fixed in revision.


torch version > 1.6 stead of >=?

Hi Zach,
Thank you for releasing the code.
The readme says PyTorch >= 1.6. But when I install w 1.6.0, I got the error
ImportError: cannot import name '_disabled_torch_function_impl'

The error goes away for me with pytorch 1.8.1.
Thanks.

Yes it seems like it isn't working with PyTorch 1.6 anymore, >= 1.7 seems to work, thanks!


DungeonZ : crash with mouseClicked event handler.

Mod Name
DungeonZ
Mod Homepage

https://modrinth.com/mod/dungeonz
https://github.com/Globox1997/DungeonZ

Minecraft version
1.20.1
Describe the bug
Minecraft crash after trying to create a new singleplayer world.
Steps to reproduce

Launch the game.
Create a new singleplayer world.

Logs
https://gist.github.com/Yldales/659c96048e3ae70e39de243d766b8306
Additional context

Tested with the latest version of Connector (beta.37) and latest nightly (beta.38-dev-g5f7c70b).
Tested with a minimal set of mods (Connector and its dependencies, DungeonZ and its dependencies).

Can confirm. This also happens when loading any datapack from a global loader mod like Openloader or Global Packs.

Also happening for me with the fabric versions of any of YUNG's "better [xyz]" mods, log attached just in case it provides more insight:
crash-2024-03-22_04.12.08-client.txt

My issue regarding Openloader randomly fixed itself, not sure what happened.


style(plugins-apache-composer): lint unused-vars

Please confirm that your PR fulfills these requirements

[x] Multiple commits are squashed into one commit.
[x] The commit message follows Conventional Commits, which allows us to autogenerate release notes; e.g. fix(plugins/plugin-k8s): fixed annoying bugs
[x] All npm dependencies are pinned.

I don't think we should have a eslintrc.json in every plugin?

closing in favor of #1637 which fixes the typecov regressions (false positives, but a good excuse to add some types)


Support for CodeBuild Batch

AWS CodeBuild released some new features on 7/30/2020: https://aws.amazon.com/about-aws/whats-new/2020/07/aws-codebuild-now-supports-parallel-and-coordinated-executions-of-a-build-project/
Would like to use troposphere to create batch jobs, similar to what the aws cli calls: aws codebuild create-project  --build-batch-config

supported in CloudFormation:
https://github.com/aws-cloudformation/aws-cloudformation-coverage-roadmap/issues/590
AWS::CodeBuild::Project.BuildBatchConfig

would need to be added here:
https://github.com/cloudtools/troposphere/blob/1c43a007d04d485ae58b77625aabdd2aa55bf39b/troposphere/codebuild.py#L343-L367

relevant CloudFormation Resource Specification snippets:
    "AWS::CodeBuild::Project": {
      "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html",
      "Properties": {
        "BuildBatchConfig": {
          "Type": "ProjectBuildBatchConfig",
          "Required": false,
          "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-buildbatchconfig",
          "UpdateType": "Mutable"
        },
      }
    },

    "AWS::CodeBuild::Project.ProjectBuildBatchConfig": {
      "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectbuildbatchconfig.html",
      "Properties": {
        "CombineArtifacts": {
          "Required": false,
          "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectbuildbatchconfig.html#cfn-codebuild-project-projectbuildbatchconfig-combineartifacts",
          "PrimitiveType": "Boolean",
          "UpdateType": "Mutable"
        },
        "ServiceRole": {
          "Required": false,
          "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectbuildbatchconfig.html#cfn-codebuild-project-projectbuildbatchconfig-servicerole",
          "PrimitiveType": "String",
          "UpdateType": "Mutable"
        },
        "TimeoutInMins": {
          "Required": false,
          "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectbuildbatchconfig.html#cfn-codebuild-project-projectbuildbatchconfig-timeoutinmins",
          "PrimitiveType": "Integer",
          "UpdateType": "Mutable"
        },
        "Restrictions": {
          "Type": "BatchRestrictions",
          "Required": false,
          "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectbuildbatchconfig.html#cfn-codebuild-project-projectbuildbatchconfig-restrictions",
          "UpdateType": "Mutable"
        }
      }
    },

    "AWS::CodeBuild::Project.BatchRestrictions": {
      "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-batchrestrictions.html",
      "Properties": {
        "ComputeTypesAllowed": {
          "PrimitiveItemType": "String",
          "Type": "List",
          "Required": false,
          "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-batchrestrictions.html#cfn-codebuild-project-batchrestrictions-computetypesallowed",
          "UpdateType": "Mutable"
        },
        "MaximumBuildsAllowed": {
          "Required": false,
          "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-batchrestrictions.html#cfn-codebuild-project-batchrestrictions-maximumbuildsallowed",
          "PrimitiveType": "Integer",
          "UpdateType": "Mutable"
        }
      }
    },

This was added via d6eb4015. Thanks.


Fix highlighting for pub keyword

pub is marked as a keyword in the spec but it seems it doesn't recognize it as a keyword. The output for
pub def map(f: a -> b, t: t[a, r]): t[b, r] \ { Read(r), Write(r) }

is
pub def map(f: a -> b, t: t[a, r]): t[b, r] \ { Read(r), Write(r) }

but should be
pub def map(f: a -> b, t: t[a, r]): t[b, r] \ { Read(r), Write(r) }

It works on doc.flix.dev so no problem. Weird why the test does not output it though.


[master]add creator annotation to ns, warn before project delete

#3607 - I originally thought this was happening because I updated project deletion to go through steve instead of norman, but the issue is actually with namespace creation; namespaces created in vue aren't deleted when their project is deleted whether the project deletion happens in vue or ember. I found that the deletion is triggered by the presence of a field.cattle.io/creatorId annotation on namespaces so I updated the namespace save method to add this annotation. Since deleting a project will also potentially delete a bunch of other stuff now, I updated that process to require confirmation and include a warning about which sort of namespace will be removed.

Would like backend to decide if they want this, want to add it themselves (so it works with kubectl too) or don't want to do anything about it.


merge together the html from ordvitsarquiz.vue with connectionabcquiz.vue

Move the variable to the html code

 merge together ordvitsarquiz.vue with connectionabcquiz.vue


Use phalcon from zephir module

As the title states how can i use phalcon from within my own zephir module
namespace Rapid\Models;
class Users extends \Phalcon\Mvc\Model
{
}

Thanks Dave

Want to back this issue? Place a bounty on it! We accept bounties via Bountysource.

Based on what has been already said here, i've been thinking about making my Zephir AaaaaaController class visible from PHP with Phalcon on board. All compiles great (installed/ini/extension order), but the class is not visible when i write http://domainwiththeapp/aaaaaa  . What i wouldn't like to do is to create a class in PHP extending my AaaaaaController class - this i did with success. . I guess the problem is with namespace. Is there a way to make this class visible for this address and for phalcon. Any suggestions would be appreciated.

zephir build --export-classes
don't work to compile phalcon anymore (testet with branches 2.0.0, 2.0.x and 2.1.x and Zephir 0.7.1b) . Compilation stops with:
Zephir\CompilerException: updateArray: variable
Is there a equivalent for  --export-classes  in:

cd cphalcon/build

./install

That is a general issue regarding phalcon and the development branch,
since the refactoring process is not complete and
therefore not all functionality is yet supported again.

Thanks. Your right, exception has gone for another one
PHP Catchable fatal error:  Object of class Zephir\CompiledExpression could not be converted to string in /opt/zephir/Library/SymbolTable.php on line 207
caused by Phalcon\Di\Service  in line 238
let arguments = [position: parameter];
If i change this the compiler throws
Compiling...
Installing...
Zephir\CompilerException: Internal extension compilation failed. Check compile-errors.log for more information
compile-errors.log:
/opt/cphalcon/ext/phalcon/db/dialect.zep.c: In function 'zim_Phalcon_Db_Dialect_getSqlColumn':
/opt/cphalcon/ext/phalcon/db/dialect.zep.c:402:61: error: expected expression before ',' token
/opt/cphalcon/ext/phalcon/db/dialect.zep.c:410:60: error: expected expression before ',' token
/opt/cphalcon/ext/phalcon/db/dialect.zep.c: In function 'zim_Phalcon_Db_Dialect_getSqlTable':
/opt/cphalcon/ext/phalcon/db/dialect.zep.c:624:53: error: expected expression before ',' token
/opt/cphalcon/ext/phalcon/db/dialect.zep.c:626:52: error: expected expression before ',' token
/opt/cphalcon/ext/phalcon/db/dialect.zep.c: In function 'zim_Phalcon_Db_Dialect_getSqlExpressionList':
/opt/cphalcon/ext/phalcon/db/dialect.zep.c:1198:58: error: expected expression before ',' token
/opt/cphalcon/ext/phalcon/db/dialect.zep.c: In function 'zim_Phalcon_Db_Dialect_getSqlExpressionOrderBy':
/opt/cphalcon/ext/phalcon/db/dialect.zep.c:1710:53: error: expected expression before ',' token
make: *** [phalcon/db/dialect.lo] Error 1
make: *** Waiting for unfinished jobs....
/opt/cphalcon/ext/phalcon/db/dialect.zep.c: In function 'zim_Phalcon_Db_Dialect_getSqlColumn':
/opt/cphalcon/ext/phalcon/db/dialect.zep.c:402:61: error: expected expression before ',' token
/opt/cphalcon/ext/phalcon/db/dialect.zep.c:410:60: error: expected expression before ',' token
/opt/cphalcon/ext/phalcon/db/dialect.zep.c: In function 'zim_Phalcon_Db_Dialect_getSqlTable':
/opt/cphalcon/ext/phalcon/db/dialect.zep.c:624:53: error: expected expression before ',' token
/opt/cphalcon/ext/phalcon/db/dialect.zep.c:626:52: error: expected expression before ',' token
/opt/cphalcon/ext/phalcon/db/dialect.zep.c: In function 'zim_Phalcon_Db_Dialect_getSqlExpressionList':
/opt/cphalcon/ext/phalcon/db/dialect.zep.c:1198:58: error: expected expression before ',' token
/opt/cphalcon/ext/phalcon/db/dialect.zep.c: In function 'zim_Phalcon_Db_Dialect_getSqlExpressionOrderBy':
/opt/cphalcon/ext/phalcon/db/dialect.zep.c:1710:53: error: expected expression before ',' token
make: *** [phalcon/db/dialect.lo] Error 1
Testet with Zephir version 0.7.1b and Phalcon 2.1.x

Compiling own extensions with Zephir (>= 7) which extends other libraries like Phalcon (only from source) fails.
First example:
Phalcon 2.1.0b
Zephir Version 0.9.1a-dev
Utils 0.0.1
Zephir Version 0.9.1a-dev
utils config.json

...
"external-dependencies": {
    "phalcon": "/opt/cphalcon"
}

...

utils/utils/greeting.zep

class Greeting extends \Phalcon\Mvc\User\Component {
protected function getFoo() {
	return this->getDi()->getShared("foo");
}

}

Error

/usr/bin/php5 -dextension="/opt/zephir/Library/../parser/zephir_parser.so" /opt/zephir/compiler.php build --parser-compiledZephir\CompilerException: Class 'Utils\Greeting' does not implement method: 'getDi' in /opt/utils/utils/Greeting.zep on line 11
  return this->getDi()->getShared("foo");

Second example:
Phalcon 2.1.0b
Zephir Version 0.9.1a-dev
Utils 0.0.1
Zephir Version 0.6.1a

Warning: Class "Utils\DiInterface" does not exist at compile time in /opt/utils/utils/Greeting.zep on 11 [nonexistent-class]
  return this->getDi()->getShared("foo");
----------------------------------------^

Copying new kernel files...
Preparing for PHP compilation...
Preparing configuration file...
Compiling...
Installing...
Extension installed!
Add extension=utils.so to your php.ini
Don't forget to restart your web server

Code is exact the same as in the first example and it works. Testet with Debian and compiled phalcon with "zephir build --export-classes"


Adding Santiago to source{d} Team

This PR upadtes team.yml in order to add Santiago to the team.

Thanks @marnovo ! Already sorted out in https://github.com/src-d/landing/pull/267


Error Handling Principle in Erlang/Elixir

This classic video should definitely be included somewhere when introducing OTP.
https://youtu.be/ZOsvgwOR6G0

😍


Potential security/performance issue when using includes

I discovered this issue using Fractal trough Dingo API and posted the issue there https://github.com/dingo/api/issues/735, but its a general Fractal issue so I reopen it here.
Basically its a side effect of using includes, I am using Laravel's Eloquent but this applies to any type of ORM.
Lets say a user have 1 million posts. I eager load the relationship ->with(['posts']), and constrain it to lets say the latest 30 posts. Then I specify the 'posts' relationship inside the transformer $availableIncludes = ['posts'] in order to tell Fractal to transform that relationship.
But as a side effect, now anyone can add '?include=posts' to the path and they will get all the posts (no constrains), and I don't have control over it. On the other hand if I don't set the include, then I can't transform the relationship at all...
One solution is not to lazy load the relationship inside the includePosts() method, but I want to let API users to do that, but with a default constrain.

It's not in Fractal's scope to provide ACL for your resources, if that was the case it would be an API framework. It is up to you to decide who and what gets shown to whom and you can do so in your transformer.
via Eloquent you can pass constraints to the load: https://laravel.com/docs/5.1/eloquent-relationships#eager-loading
Fractal just shows what your application says is allowed to be shown.

I'm not talking about permissions. Maybe you should read the issue again, if you want of course.


Revive some of the full-stack VFS tests from surtr

Surtr (née pandora) contains a bunch of integration tests that we still need, including some things which tested the Table VFS stuff.  We should revive those and port them forward, so we still have test coverage on "real load", for example.

This is basically irrelevant now, with the rework of the VFS and the way everything else has been wired up.


Add upgrader image to import images

Description of changes:
Add upgrader image to import images so it can be imported and used with registry mirror
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/lgtm

/approve


Irs file not loading

I get the following error
(pulseeffects:15704): pulseeffects-DEBUG: 04:51:34.786: convolver: irs file does not exists or it is empty:  (pulseeffects:15704): pulseeffects-DEBUG: 04:51:34.786: convolver: we will just passthrough data. (pulseeffects:15704): pulseeffects-DEBUG: 04:51:34.798: sie: convolver is disabled
Eventhough I have the files inside ~./config/PulseEffects/irs/.
I even tried loading them through the gui.

And I am not exactly sure how to load the .irs files?
My laptop comes in Windows with Dolby Atmos installed and it changes the sound signature of my speakers a lot.
I wanted to get the same effect in linux and installed pulseeffects + downloaded your presets and the .irs files. But how do I activate the dolby atmos .irs file?

@Utini2000 You have to place the .irs files inside your PulseEffects directory.
Then open PulseEffects, go in the Convolver plugin and enable it.
Click this button

and select the impulse response you want (BTW I'm going to add some other high quality impulse responses I use on my smartphone)
@Hedronmx It seems the convolver is not enabled, try enabling it first

@JackHack96
Awesome thank you.. I instantly loved the sound of my laptops speakers on Windows with the Dolby Atmos effect.
Now I can finally enjoy this sound on Linux as well :)
Is there a way to change the preset (like the overall and complete preset of all pulseeffect settings) depending on which output is active in pulseaudio?
E.g. Dolby Atmos for Speaker and my own preset when I connect my external DAC/AMP/Headphones?

As far as I know there's currently no way of having that behaviour.
You could open a feature request upstream :+1:

Thanks again :) Done so:
https://github.com/wwmm/pulseeffects/issues/398


Title: OCI DMS - Online migration  WMS ID 11145

This is to take care of the following requested modifications:
Please remove the “Note” section from the Prerequisites of the Introduction lab -  have you created a PR for your changes?
Please update the workshop outline in WMS - it should be consistent with the menu on the left of the actual workshop:

This branch has conflicts that must be resolved


@babel/transform-flow-comments not real work

[ ] not add // @flow
[ ] not export flow type
[ ] export default type not work

try to use babel:flow to build flow

revert #64

@babel/transform-flow-comments can not work for some transform feature.


Cake on dotnet core doesn't load reference dll correctly if referenced from a subdirectory

What You Are Seeing?
If you're using Cake.CoreCLR, the referenced libs (using #reference) aren't loaded correctly if the cake script is in a subdirectory.
Error: System.ArgumentException: Absolute path information is required.
Parameter name: assemblyPath
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
   at Cake.Core.Reflection.AssemblyLoader.Load(FilePath path, Boolean verify)
   at Cake.Core.Scripting.ScriptRunner.Run(IScriptHost host, FilePath scriptPath, IDictionary`2 arguments)
   at Cake.Commands.BuildCommand.Execute(CakeOptions options)
   at Cake.CakeApplication.Run(CakeOptions options)
   at Cake.Program.Main()

What is Expected?
The lib should be loaded and available in the cake script
What version of Cake are you using?
Cake.CoreCLR version 0.21.0-dotnetV10tooling0001 from myget
Cake.Docker version 0.7.7 from nuget
Are you running on a 32 or 64 bit system?
x64
What environment are you running on?  Windows? Linux? Mac?

Windows x64
Mac OS 16.6.0 Darwin

How Did You Get This To Happen? (Steps to Reproduce)
You can find a repro project here: https://github.com/phenixdotnet/cake-repro
The important thing is to use a cake script file from a subdirectory (in the repro example, the build/docker.cake file)
Output Log
logs from .\build.ps1 -v Diagnostic and .\build.ps1 -v Diagnostic -Experimental
Preparing to run build script...
Feeds used:
  C:\Users\vlaine\.nuget\packages\
  https://api.nuget.org/v3/index.json
  https://www.myget.org/F/cake/api/v3/index.json
  C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\

Restoring NuGet package Cake.CoreClr.0.21.0-dotnetV10tooling0001.
Restoring NuGet package Cake.Docker.0.7.7.
Adding package 'Cake.CoreClr.0.21.0-dotnetV10tooling0001' to folder 'C:\dev\Test\ReproCake\tools'
Adding package 'Cake.Docker.0.7.7' to folder 'C:\dev\Test\ReproCake\tools'
Added package 'Cake.Docker.0.7.7' to folder 'C:\dev\Test\ReproCake\tools'
Added package 'Cake.CoreClr.0.21.0-dotnetV10tooling0001' to folder 'C:\dev\Test\ReproCake\tools'
Running build script...
Module directory does not exist.
Analyzing build script...
Analyzing C:/dev/Test/ReproCake/build.cake...
Analyzing C:/dev/Test/ReproCake/build/docker.cake...
Processing build script...
Installing tools...
Package Cake.Docker has already been installed.
Error: System.ArgumentException: Absolute path information is required.
Parameter name: assemblyPath
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
   at Cake.Core.Reflection.AssemblyLoader.Load(FilePath path, Boolean verify)
   at Cake.Core.Scripting.ScriptRunner.Run(IScriptHost host, FilePath scriptPath, IDictionary`2 arguments)
   at Cake.Commands.BuildCommand.Execute(CakeOptions options)
   at Cake.CakeApplication.Run(CakeOptions options)
   at Cake.Program.Main()

I have a quick fix for this bug it's ugly. I can submit a PR if you whish.
In Cake.Core\Polyfill\AssemblyHelper.cs
diff --git a/src/Cake.Core/Polyfill/AssemblyHelper.cs b/src/Cake.Core/Polyfill/AssemblyHelper.cs
index 0f603a59..0ec035c6 100644
--- a/src/Cake.Core/Polyfill/AssemblyHelper.cs
+++ b/src/Cake.Core/Polyfill/AssemblyHelper.cs
@@ -3,6 +3,7 @@
 // See the LICENSE file in the project root for more information.

 using System;
+using System.IO;
 using System.Reflection;
 using Cake.Core.IO;
 using Cake.Core.Reflection;
@@ -34,8 +35,9 @@ namespace Cake.Core.Polyfill
                 return Assembly.Load(new AssemblyName(path.FullPath));
             }

+            FileInfo fi = new FileInfo(path.FullPath);
             var loader = new CakeAssemblyLoadContext(fileSystem, path.GetDirectory());
-            return loader.LoadFromAssemblyPath(path.FullPath);
+            return loader.LoadFromAssemblyPath(fi.FullName);
 #else
             return Assembly.LoadFrom(path.FullPath);
 #endif

@phenixdotnet Thanks for reporting this.
Instead of using a FileInfo to get the full path in your patch, you should use path.MakeAbsolute(environment).
We should however look into why the path isn't absolute in the first place. According to https://github.com/cake-build/cake/blob/develop/src/Cake.Core/Scripting/Processors/ReferenceDirectiveProcessor.cs#L46 it should use the absolute path already.

@patriksvensson Thanks for quick response.
Problem with the path.MakeAbsolute(env) is we don't have the env in this method. Adding it on the whole stack is a huge breaking change. I can go to this way if you valid it.
I guess the root cause of this bug in somewhere in FilePath (or base class) and how absolute path are handled.

@phenixdotnet The polyfills are internal so this wouldn't be a breaking change. Not sure what you mean with a bug in FilePath though, could you elaborate?

Not sure what you mean with a bug in FilePath though, could you elaborate?
Mistake from my side, I didn't understand correctly the FullPath property. From the property name I guess to get the absolute path but it isn't. I just don't under the diff between path and fullpath.

I changed the patch implementation and created a PR #1680


root_elements raises AttributeError on schema with XsdAnyElement

Calling root_elements fails for schemas containing an element with no type.
This code
import xmlschema
schema = xmlschema.XMLSchema(schema_text)
schema.root_elements

raises
...
C:\Anaconda3\lib\site-packages\xmlschema\validators\schema.py in root_elements(self)
    520                     if e is xsd_element:
    521                         continue
--> 522                     elif e.ref or e.is_global:
    523                         if e.name in names:
    524                             names.discard(e.name)

AttributeError: 'XsdAnyElement' object has no attribute 'ref'

for the schema
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="root1" type="root"/>
  <xs:element name="root2" type="root"/>
  <xs:complexType name="root">
    <xs:sequence>
      <xs:element name="elementWithNoType"/>
    </xs:sequence>
  </xs:complexType>
</xs:schema>

Besides this line, there is three other places in the code that access the ref of an element (that isn't self). Those might also be problematic.
Would the proper fix be to add ref = None to the definition of XsdAnyElement?

Would the proper fix be to add ref = None to the definition of XsdAnyElement?

It's better to avoid adding ref to XsdAnyElement, so I've added or isinstance(e, XsdAnyElement) to line 520:
if e is xsd_element or isinstance(e, XsdAnyElement):
    continue
elif e.ref or e.is_global:
    if e.name in names:
        names.discard(e.name)

I will also put your sample schema into the test code. The fix will be available in the next release.
Thanks

Ok, thanks!
On Mon, May 13, 2019, 1:08 PM Davide Brunato<EMAIL_ADDRESS>wrote:

Would the proper fix be to add ref = None to the definition of
XsdAnyElement?
It's better to avoid adding ref to XsdAnyElement, so I've added or
isinstance(e, XsdAnyElement) to line 520:
if e is xsd_element or isinstance(e, XsdAnyElement):
continueelif e.ref or e.is_global:
if e.name in names:
names.discard(e.name)
I will also put your sample schema into the test code. The fix will be
available in the next release.
Thanks
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/brunato/xmlschema/issues/107#issuecomment-491761050,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABAILM4RZW62GMD4VSL5PZLPVE42FANCNFSM4HMNAGEQ
.

Fix available with new release v1.0.13.
Bye


[Feature Suggestion] Custom icons for files and folders

I can think of many ways to implement this but simply put I'd like to have a mechanism for assigning custom icons to files and directories and overriding those already defined within LSD.  I'd also like to be able to configure LSD to match its directory icon assignment and this feature suggestion would allow me to do that.  See the example below to see the difference between colorls and LSD:

As for implementation the two ideas I have are to either have an LSD config somewhere where these options can be defined along with the request to configure colors which has been suggested in the past.  Alternatively would be to follow my suggestion for .hidden files.  Define a file format in say a .icon or .lsd file which specifices either an icon or hex which people can get from https://www.nerdfonts.com/cheat-sheet followed by the name of the file they want to change.  The best maybe to support both options.

I prefer this feature work out-of-the-box. If a it has to be configurable, I would prefer global configuration (e.g. ~/.config/lsd/something.json).

I prefer global configuration as well generally not least of all I can throw it in to my dot-files repo and have the same experience wherever I work.

I'd also love this feature, but IMO it should support wildcards for the filename. As an example, I have a folder with a bunch of Dockerfiles in it that all have various extensions, eg.
Dockerfile.eslint
Dockerfile.prettier
Dockerfile.typescript-language-server
...

In vim, I have one autocmd to correctly set the filetype for all of them:
autocmd BufRead,BufNewFile Dockerfile.* set filetype=dockerfile

Would be great if I could do the same for lsd so they all have the Docker icon without requiring me to name them all explicitly.

The best maybe to support both options.

👍 on this suggestion, with the understanding that local .hidden files supersede the top-level configuration.
As an example: this would help in JS projects with extension-less multi-format configuration files, eg. .eslintrc or .prettierrc. These can be configured with JSON or YAML (or in some cases TOML), so I could set a top-level default icon for lsd to always treat them as whatever I think they should be, then override on a per-project basis.

after we support the color configuration in https://github.com/Peltoche/lsd/pull/452, I will try to look into this. A global configuration for icons would be the basic implementation, and we can keep discussing the necessity of local .lsd here.

we should discuss this feature here.
As I can figure, it should support the match by:

filename
custom extension
file type
default

There is some more feature we need to discuss, I would add some comment for each feature, if you would like the feature to be implemented, please add and 👍(+1) emoji on that comment, and we can discuss base on the count.

prefix by dot match
like the custom extension, but for prefix, like matching Dockerfile.*, log.*.
please notice it must be split by dot ., there would be no much cost to support this feature.

if you would like this feature to be implemented, please add and 👍(+1) emoji

regex match
it is a much more general match mechanism, could nearly be used to match all the cases,
but please notice there would BE a performance impact if the number of regex matches grows.

if you would like this feature to be implemented, please add and 👍(+1) emoji

local configuration
it could overwrite the global configuration if some file like .lsd existed.
but the cost is:

we have to try to read one more configuration for each excution
how do we choose the local file, base on just the local dir, or git project, or some others

for 2., js project, or some other project having .xxrc file, there is a project concept on it, they could find rc file on the project root, but lsd did not case about projects, It may be a mess if we add .lsd everywhere, or not that worth to look for the project root.

if you would like this feature to be implemented, please add and 👍(+1) emoji

Thanks for the breakdown on the options, @zwpaper ! 👏

how do we choose the local file, base on just the local dir, or git project, or some others

I'd say the first pass should only check the directory you're trying to list and nothing more. In my experience .xxrc files live predominately at one level of a given project, so there's rarely a need to re-use the same definitions deeper in the hierarchy. But maybe I don't have much experience with those projects that would have these kinds of files all over the place, so 🤷 ?
IMO—despite the possibility of "be[ing] a mess if we add .lsd everywhere"—in practice I'm not sure it would actually be that bad. I agree lsd should not care about the concept of a project.

Another option to consider would be to add a section in the top-level configuration that maps paths explicitly, eg.
overrides:
  - { is: json, path: ~/code/project-1/.prettierrc }
  - { is: yml,  path: ~/code/project-1/.babelrc }
  - { is: yml,  path: ~/code/project-22/.eslintrc }
  # ...

Sure, might be tedious, but I imagine it wouldn't add much overhead to implement, and may offer enough to appease those users who care—like me 😉. Looking over my 50ish local projects, I'd probably only need to add about 10 lines here personally. Also saves "reading one more configuration for each execution" and avoids littering .lsd files everywhere.


Send access limit for organisations to publishing api

Trello card
⚠ This repo is Continuously Deployed: make sure you follow the guidance ⚠
Follow these steps if you are doing a Rails upgrade.

Well spotted Ollie, I have missed those WIP lines when I was squashing commits before!


Initial state handling seems broken in 1.6.2, re-switched to 1.6.1 and it's working fine

I'm in Expo React Native.
Initial state:
const [isCollapsed, setIsCollapsed] = useState<boolean>(false);
Simply using <Collapsible collapsed={isCollapsed}>
with a toggle in a <PressableScale onPress={() => setIsCollapsed((prev) => !prev)}>
Problem is the component just starts closed not caring of initail state passed as prop.
useEffect on mount setting isCollapsed STILL to false triggers a re-rendering making it to open.
Switching back to 1.6.1 worked fine.

I'm in Expo React Native. Initial state: const [isCollapsed, setIsCollapsed] = useState<boolean>(false);
Simply using <Collapsible collapsed={isCollapsed}> with a toggle in a <PressableScale onPress={() => setIsCollapsed((prev) => !prev)}>
Problem is the component just starts closed not caring of initail state passed as prop. useEffect on mount setting isCollapsed STILL to false triggers a re-rendering making it to open.
Switching back to 1.6.1 worked fine.

👍

Facing Same issue. Works fine on 1.6.1

I'm getting the issue as well.

Same issue, reverted to 1.6.1


[BUG] Pandas import error: cannot import name 'is_datetime_or_timedelta_dtype' from 'pandas.core.dtypes.common'

What is the bug?
When running the third cell of the first demo notebook, I cannot import pandas:
import opensearch_py_ml as oml

-> ImportError: cannot import name 'is_datetime_or_timedelta_dtype' from 'pandas.core.dtypes.common'

Here is a screenshot:

How can one reproduce the bug?
Follow the dev guide: https://github.com/opensearch-project/opensearch-py-ml/blob/main/DEVELOPER_GUIDE.md
# Create a fork
git clone https://github.com/faradawn/opensearch-py-ml.git
cd opensearch-py-ml

# Install dependencies
python3 -m venv env
source env/bin/activate
pip install -r requirements-dev.txt

What is the expected behavior?
Should import successfully
What is your host/environment?

Intel Mac 13.2.1 (22D68)
opensearch-py 2.3.1
pandas 2.1.1
python 3.9.6
pip 23.2.1

We already have an issue opened about it: https://github.com/opensearch-project/opensearch-py-ml/issues/263

@faradawn can we close this issue in favor of https://github.com/opensearch-project/opensearch-py-ml/issues/263

@faradawn you can resolve this by pinning pandas to 2.0.3

Thanks @dtaivpp and @dhrubo-os! I can confirm that the error disappear when downgrading pandas to 2.0.3:
pip install pandas==2.0.3

Appreciate the help!


chore(test): use mocha

Following #167 and #247
Here is a start with half of the tests.
Wait for it :)

This has been replaced with #274 I take it.


Make code coverage work for cosmwasm-vm

Currently failing with

cargo_tarpaulin: Failed to get test coverage! Error: Failed to run tests: Error running test - SIGILL raised in 5835

Works with grcov. Done in #1888


Book Recommedation Model

💥 Proposal
To create a book recommendation system that recommends the user books based on his/her previous readings and also recommends the top 50 books based on their rating by other users. Also, create a UI for the same using Flask framework.
Algorithm used- Collaborating filtering using cosine similarity
Dataset link: https://www.kaggle.com/datasets/saurabhbagchi/books-dataset

Hi , I would like to work on this issue.

@shruti-2412  - you can go ahead! We are assigning you 21 days for this project, after which it will be assigned to someone else if not completed. All the best!
Name the file as: algorithm_dataset.ipynb and link it in the readme of the labeled directory as algorithm - dataset.


comment deletion not being handled properly

steps to reproduce

delete a comment
It will show that the comment has been deleted

after some time it will refresh from the backend and then the  comment will removed and a new event is pushed to the back of the comments

this is very confusing for the user, right now the backend and frontend are out of sync in terms of what they expect to happen when comments are deleted. Before, the behaviour was that they were not completely removed, just the payload was removed. Now they are completely removed and a logEvent is added to show the action took place.
what needs to happen

in the frontend it needs to have the same behaviour as the backend, so it needs to delete the comment completely from the timeline.

Possibly:

Create a timelineEvent component for the comment deletion logEvent (in my opinion, that data does not help the user a lot)
filter out comment deletion logEvents in frontend or backend

test comment


feat: add ci workflows for operator

Signed-off-by: Kush Trivedi<EMAIL_ADDRESS>

@leecalcote CI has been established now there are few outstanding errors in operator which @kalradev may look into 🙂

We will need a Docker build and push section for the MeshSync container.
We will need edge and stable release channels.

Meshery-operator repo - https://hub.docker.com/r/layer5/meshery-operator

@leecalcote Docker build cant be done until the operator is fixed, so first the build step needs to succed before I can write docker job or else there will be no way to test if the docker job written is even working or not.

Ready to be merged @leecalcote


[haproxy] Add HAProxy option for tagging based on named regex

What does this PR do?
This enables to define a new configuration option for the HAProxy integration, tags_regex, that will be run against each service name and if matching, defines additional tags for that service.
# haproxy.yaml
tags_regex: 'be_http_(?P<team>[a-z]+)\-(?P<env>[a-z]+)_(?P<app>.*)'

Service in HAProxy:

Result in Datadog:

Motivation
We run several Openshift clusters in-house; one cluster is used by several teams. As maintainers of the cluster we want to provide teams with telemetry from the Openshift Router (HAProxy), so they could do meaningful debugging and alerting for their services (avg:haproxy.backend.session.rate{team:sre}).
The current implementation of HAProxy does not work for us: while we're able to provide teams with data about their individual services (based on the service: tag), it is cumbersome for the teams to aggregate all team (micro)services into one monitor (a separate selector query + arithmetic expression is needed for each service).
A workaround we used for a while was to define multiple HAProxy instances pointing to the same server, but with different regex include/exclude rules to tag services by team.
instances:
  - url: http://router.default:1936
    services_include:
      - ".*"
    services_exclude:
      - ".*_sre-prod_.*"

  - url: http://router.default:1936
    services_include:
      - ".*_sre-prod.*"
    services_exclude:
      - ".*"
    tags:
      - "team:sre"
      - "env:prod"

However, this introduced static (duplicate-ish) configuration that needed updating whenever team/project structure changed and as the teams don't control the platform, it marks the maintaining team as the bottleneck ("SRE-1000 Please update HAPRoxy...").
We need a way to dynamically tag entries based on predefined rules.
Testing Guidelines
An overview on testing is available in our contribution guidelines.
This has been tested by one additional test as well as being deployed to our OS3 cluster (and is working fine so far). It would be great if this was manually tested by another contributor before merging.
Versioning

[x] Bumped the version check in manifest.json
[x] Updated CHANGELOG.md

Additional Notes
This implementation is aimed at Openshift 3 routers where its users have agreed upon a Route naming convention (projectName=teamName-env; routeName=appName), however it is generic enough to work for any use case.

Hi @anroots! 👋
We will review this soon. Thank you for the great description regarding the inception of the PR, it gave us all the context necessary to understand it fully. We just have to be careful regarding the volume of contexts (unique set of tags) this may create for the metrics involved. It looks like in practice this would be N contexts at most per metric (where N is the number of HAproxy pxname entries that match the expression and each should have a unique set of tags), it should be bounded in nature and that's good, we have to make sure it doesn't get out of hand (it's looking fine).

@truthbk can you have another look?


How to add non-standard HTML attributes using TypeScript module augmentation

I would like to be able to use the attribute enterkeyhint on the <input>-element which is not yet standardized.
See: https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-enterkeyhint-attribute
Following this guide I added this file to my CRA-project:
// src/react-unstable-attributes.d.ts

import 'react';

declare module 'react' {
  interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
    enterkeyhint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
  }
}

Also there is this file next to the above which I guess was generated by CRA:
// src/react-app-env.d.ts

/// <reference types="react-scripts" />

The attribute is still not accepted. The TS compiler still complains:
TS2322: Type '{ id: string; ref: Ref<HTMLInputElement>; onChange: (e: ChangeEvent<HTMLInputElement>) => void; onFocus: (e: FocusEvent<HTMLInputElement>) => void; onBlur: (e: FocusEvent<HTMLInputElement>) => void; ... 6 more ...; enterkeyhint: string; }' is not assignable to type 'DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>'.   Property 'enterkeyhint' does not exist on type 'DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>'.

My tsconfig.json:
{
  "compilerOptions": {
    "target": "es5",
    "lib": ["dom", "dom.iterable", "esnext"],
    "allowJs": true,
    "skipLibCheck": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "module": "esnext",
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "noEmit": true,
    "jsx": "preserve"
  },
  "include": ["./src"]
}

Any advice on how to get TS to accept that attribute?
Thanks & cheers!

To solve the problem I simply needed to rename my file containing the module augmentation definition to custom.d.ts in order for CRA to pick it up.
Thanks to my colleague Moritz H. 👍

For workaround we have augmented the type for now.
import 'react'

declare module 'react' {
  interface HTMLAttributes<T> {
    onPointerEnterCapture?: (e: React.PointerEvent<T>) => void
    onPointerLeaveCapture?: (e: React.PointerEvent<T>) => void
  }
  interface RefAttributes<T> {
    onPointerEnterCapture?: (e: React.PointerEvent<T>) => void
    onPointerLeaveCapture?: (e: React.PointerEvent<T>) => void
  }
}


Can't run eject

Description
Can't run eject. I've followed the "getting started guide" and am trying to get to the point where I can publish an apk to transfer to my  #devices.
Expected Behavior
npm run eject
Observed Behavior
error
c:\cet\nodejs\AwesomeProject>npm run eject
npm ERR! missing script: eject

npm ERR!      C:\Users\[user]\AppData\Roaming\npm-cache\_logs\2017-11-06T02_36_57_026Z-debug.log

Environment
Please run these commands in the project folder and fill in their results:

npm ls react-native-scripts: 1.7.0
npm ls react-native:0.49.5
npm ls expo: empty
node -v: v9.0.0
npm -v: 5.5.1
yarn --version: 1.2.1
watchman version: not installed

Also specify:

Operating system: windows 10
Phone/emulator/simulator & version: Nexus_5X_API_27_x86

Reproducible Demo
see output above

hello! can you show the contents of your package.json? I imagine you deleted the "eject' script from it

my mistake, i actually created app with react-native init ... so no need to eject. sorry!

😆

Hello I'm encountering the same problem. I can't run eject.
c:\Users\Kweku\AwesomeProject>npm run eject
npm ERR! missing script: eject
npm ERR!      C:\Users[user]\AppData\Roaming\npm-cache_logs\2017-11-06T02_36_57_026Z-debug.log
I create a react native app and this is what I'm getting.

I just tried again this is what I'm getting...
Ejected successfully!
Please consider letting us know why you ejected in this survey:
https://goo.gl/forms/iD6pl218r7fn9N0d2
The batch file cannot be found.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>eject: react-native-scripts eject
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>eject script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR!      C:\Users\Kweku\AppData\Roaming\npm-cache_logs\2018-07-15T08_28_34_142Z-debug.log
Please help

itachi97, did you find the solution? i've got the same bug

Yeah I did,  sometimes the eject script gets lost somehow in the package.json . Add the eject script yourself and try again. Delete the iOS and Android folder before trying again. Also, if npm is not working for install yarn and run 'yarn install --verbose' to keep a check on your node modules in the app folder. Let me know if it works for you.