tutanota-desktop: 3.119.3 -> 3.119.10

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/project/tutanota-desktop/versions.
meta.description for tutanota-desktop is: Tutanota official desktop client
meta.homepage for tutanota-desktop is: https://tutanota.com/
meta.changelog for tutanota-desktop is: https://github.com/tutao/tutanota/releases/tag/tutanota-desktop-release-3.119.10
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 3.119.10 with grep in /nix/store/knmjw2f0w229xvp5hd8jblpz1p95pnj3-tutanota-desktop-3.119.10
found 3.119.10 in filename of file in /nix/store/knmjw2f0w229xvp5hd8jblpz1p95pnj3-tutanota-desktop-3.119.10

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

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
tutanota-desktop

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/knmjw2f0w229xvp5hd8jblpz1p95pnj3-tutanota-desktop-3.119.10 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

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

Or:
nix build github:r-ryantm/nixpkgs/dc9c7d4fa960b0890dcc9c4cfe1a82c5fd0e5f63#tutanota-desktop

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/knmjw2f0w229xvp5hd8jblpz1p95pnj3-tutanota-desktop-3.119.10
ls -la /nix/store/knmjw2f0w229xvp5hd8jblpz1p95pnj3-tutanota-desktop-3.119.10/bin

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

1 package built:

tutanota-desktop

Maintainer pings
cc @WolfangAukang for testing.

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

1 package built:

tutanota-desktop

Superseded by #278953


[styles] Add performance optimization option

You can disable the generation of the styles with this option. It can be useful when traversing the React tree outside of the HTML rendering step on the server. Let's say you are using react-apollo to extract all the queries made by the interface server side. You can significantly speed up the traversal with this property.
I have noticed a 25% speed-up for handling a single request.
cc @kof

lgtm

What if when user doesn't pass a SheetsRegistry into JssProvider, this happens automatically? Seems logically when we are on the server and user doesn't pass sheets for aggrgation, he doesn't want styles to be rendered.

@oliviertassinari if you agree please create an issue

What if when user doesn't pass a SheetsRegistry into JssProvider

@kof I feel that it's most likely a mistake and we should warn about it. I anticipate more people making this mistake than people having the same use case than I do. So I have the feeling that making this behavior explicit is more appropriate. I could be wrong.

Wait, if they don't know that they have to explicitly disable styles rendering, they won't do it either way.  Or how is an explicit flag helping them to discover they are doing double styles rendering?

The only difference I have between my two rendering is that only the second one has a sheetsRegistry. So yes, your point makes sense, I have missed a part of the reasonning in my previous comment 👍 . Now, my only concern is about the empty classes object. If we make the behavior automatic, people might not understand why their classes is an empty object. Maybe we should warn to make people aware of the behavior. So, should we warn in the following configuration?

the sheetsRegistry is not present
the disableStylesGeneration option wasn't set
we are in a server-side configuration

Hmm, can we log an info instead? Will it be visible? Is it too much noice? Because this way we can inform user and at the same time avoid additional option.

Maybe it is still better to have an explicit option after all for the sake of a warning.

Is there actually a use case where user may not need the registry on ssr but still would want to have the classes?

@kof Not I'm aware of. I'm gonna delay this conversation by a month. I don't have enough hindsight to know what's the best behavior to implement. I hope that the community will raise issues that helps see through it :).


fix: DLT-2117 copy/paste on message input

Fix copy/paste behavior on message input
Obligatory GIF (super important!)

:hammer_and_wrench: Type Of Change
These types will increment the version number on release:

[x] Fix

:book: Jira Ticket
https://dialpad.atlassian.net/browse/DLT-2117
:book: Description
Removed custom pasteHandler added on: https://github.com/dialpad/dialtone/pull/511 and subsequent prop added on: https://github.com/dialpad/dialtone/pull/543.
This custom pasteHandler was removing custom nodes while pasting (emojis, links, mentions, etc). We detected only emojis, but none of the mentioned nodes would work as we were obtaining the text/plain content of the clipboard.
:bulb: Context
The custom behavior introduced was not needed as the issue was only on getting the input text, which can be configured to output \n character to solve the issue.
If we want to improve even more this behavior in the future, we could also find a way to just replace the hard breaks with soft breaks, but for now I think this fix will do.
:pencil: Checklist
For all PRs:

[x] I have ensured no private Dialpad links or info are in the code or pull request description (Dialtone is a public repo!).
[x] I have reviewed my changes.
[x] I have considered the performance impact of my change.

For all Vue changes:

[x] I have made my changes in Vue 2 and Vue 3. Note: you may sync your changes from Vue 2 to Vue 3 (or vice versa) using the ./scripts/dialtone-vue-sync.sh script. Read docs here: Dialtone Vue Sync Script

:crystal_ball: Next Steps
Test if this helps at all with https://dialpad.atlassian.net/browse/DP-116205
:camera: Screenshots / GIFs

Html output

Text output

:link: Sources
https://tiptap.dev/docs/editor/api/editor#gettext

https://dialpad.atlassian.net/browse/DP-116205 issue still reproducible

It's again converting the  to paragraphs 😢

The emojis work again and also the links though. We could decide that this is a trade off, but we should consult with product.

@ninamarina should be fixed now 😄


Question - Can this tool delete mail?

In https://github.com/joeyates/imap-backup/issues/82#issuecomment-688633557 you say it doesn't delete mail.
I really don't want my archive to continually grow. Is it possible to add a feature where deleted email gets deleted?

Hi @borpin
If I understand correctly, I imagine that you want imap-backup to mirror the current status of your email account.
I know this might turn into a philosophical debate, but I think this libraries purpose is to do the opposite - to guarantee you have a copy of what gets deleted! :)
So, if I have understood your use case correctly, I would say it is outside the scope of this project.
On the other hand, you can use imap-backup as a mirror of the current status - just delete the backup before each run. Redownloading might be a problem if you have a lot of mail, but if your use case involves deleting mail on the server, I suspect this is not the case.
Thirdly, I'm open to pull requests for this feature, thought the PR would have to introduce a non-default switch.


feat(dmarc-reporter): add dmarc reporter

This is just a draft for now.
Closes #230

Nice! See my comments and thank you already for the contribution!

Updated. If you'd like to merge it like this I could set it as Ready for review.
I was thinking about doing a full implementation using https://github.com/andreialecu/dmarc-report-parser but that could be left to the user I guess.

Added a snapshot test and updated docs as well. Should be good to go now. Up to you how you want to move forward with it. Let me know if you need anything else!
I'll probably just add something to the readme in https://github.com/andreialecu/dmarc-report-parser about how it can tie into this construct (and maybe update the docs for it here to link back there). But otherwise, I guess this is good to go like this.


[WIP] Add support for RISC-V 64bit architecture

Basic support of riscv64 architecture.
TODO:

[ ] shim is not supported yet, package is not available in Tumbleweed but could be compiled.
[x] remove the hard coded x86_64 path for Grub.
[ ] Maybe find an elegant way to add DTB in EFI partition (/EFI/dtb/ for SUSE based distributions), could be useful for arm64 too.

Codecov Report
Attention: 23 lines in your changes are missing coverage. Please review.

Comparison is base (e732621) 75.35% compared to head (5f44860) 75.14%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1856      +/-   ##
==========================================
- Coverage   75.35%   75.14%   -0.21%
==========================================
  Files          67       67
  Lines        6820     6849      +29
==========================================
+ Hits         5139     5147       +8
- Misses       1311     1332      +21
  Partials      370      370

Files
Coverage Δ

pkg/constants/constants.go
87.09% <ø> (ø)

pkg/live/common.go
48.14% <ø> (ø)

pkg/types/v1/platform.go
50.63% <0.00%> (-2.71%)
:arrow_down:

pkg/utils/grub.go
57.87% <53.33%> (-0.50%)
:arrow_down:

pkg/live/green.go
84.10% <61.29%> (-7.01%)
:arrow_down:

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Here the grub entry with the latest fixes, no more hardcoded x86_64 (checked on x86_64  and riscv64):
$ sudo mount -o loop build/elemental-tumbleweed.riscv64.iso /mnt
mount: /mnt: WARNING: source write-protected, mounted read-only.
$ ls /mnt
boot  EFI  rootfs.squashfs
$ ls /mnt/boot/
grub2  riscv64
$ cat /mnt/boot/grub2/grub.cfg
[...]
menuentry "Elemental" --class os --unrestricted {
		echo Loading kernel...
		$linux ($root)/boot/riscv64/loader/linux cdroot root=live:CDLABEL=COS_LIVE rd.live.dir=/ rd.live.squashimg=rootfs.squashfs console=tty1 console=ttyS0 rd.cos.disable cos.setup=/run/initramfs/live/iso-config
		echo Loading initrd...
		$initrd ($root)/boot/riscv64/loader/initrd
	}
[...]

I would like to be able to write make PLATFORM=linux/amd64,linux/arm64,linux/riscv64 build

It should be doable, but keep in mind that qemu docker configuration will be needed to be able to build the full OS stack (or native client on docker).
But the CLI can be compiled for all supported arch directly (thanks to cross-compiling) from x86_64 (test on my laptop) with the build-cli-with-docker target.


Expose "filter" attribute for running Foxx tests

This exposes the "mocha grep" option already implemented for test-utils as the "filter" attribute in the Foxx HTTP API so users can filter which tests to run. This is helpful for users who write a lot of tests and don't want to run all tests every time.

http://jenkins01.arangodb.biz:8080/view/PR/job/arangodb-matrix-pr/3996/


hypothesis: update to latest version

Pinned in https://github.com/commaai/openpilot/pull/24852, checking if safe to unpin. Version is from May 2022, time we upgrade.
Also fixes a slowness health check bug in jenkins CI when the machine is under load from other tests. Generation hangs or is generally slow and the check trips on a few cases.
Ran locally with 500 pytest jobs and 6.47.1 is the first version that doesn't fail the check.

Related discussion in hypothesis repo about similar issue in CI: https://github.com/HypothesisWorks/hypothesis/issues/2195#issuecomment-557451955

It was an issue with pipenv:

~/openpilot$ pipenv lock fails with an obscure error message. It seems to be related to this package: exceptiongroup. Will look into it tomorrow.

After a very precise binary search. Found that it was the newest hypothesis  version messing up with exceptiongroup


perf: reduced delays and syncs in functional tests to run faster

Issue being fixed or feature implemented
Functional tests take too long time to run.
What was done?

increased robustness feature_llmq_simplepose.py by adding missing bump for mocktime during block generations
removed sleep(1) from each stage of mine_quorum
removed sleep(6) from final stage of mine_cycled_quorum
size of batch for block generation in feature_asset_locks.py and in activate_fork_by_name() increased from 10 blocks to 50 blocks
moved governance's functional tests to "60 seconds+" category because they always the last one to wait if running more than 10 jobs at once
Plus extra refactoring which removes dead and commented code from test_framework.py

How Has This Been Tested?
Locally, the functional tests speed up with these fixes for 15% for overall time and 20% for accumulated time
test/functional/test_runner.py -j20
Before:
ALL                                                | ✓ Passed  | 7860 s (accumulated)
Runtime: 481 s

After:
ALL                                                | ✓ Passed | 6237 s (accumulated)
Runtime: 416 s

CI tsan job speeds up for 5 minutes in absolute time (~5%) and 1000 seconds in accumulated time.
ALL                                                | ✓ Passed  | 23854 s (accumulated)
Runtime: 6249 s

↑ old version vs new version ↓
ALL                                                | ✓ Passed  | 22901 s (accumulated)
Runtime: 5962 s

Breaking Changes
N/A
Checklist:

[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have added or updated relevant unit/integration/functional/e2e tests
[x] I have made corresponding changes to the documentation
[x] I have assigned this pull request to a milestone

Looks like we are getting different results here, my commit makes things a bit less stable for knst for some reason. @PastaPastaPasta pls confirm the issue (and that my commit actually helps).

Looks like we are getting different results here, my commit makes things a bit less stable for knst for some reason.
on laptop udjin's patch continue to fail, but on PC (different kernel version, different hardware) it doesn't fail that much.

Let's see how CI behaves


Can radar charts be supported?

Can radar charts be supported?

Not supported yet, but will soon try to add. Thanks for requesting this feature @Wgga


Crash after following "rustup fails on installation" instructions

Problem
I followed the "rustup fails on installation" instructions the clicked continue in VS Code.
Logs

OS: darwin (21.4.0)
VSCode: 1.66.1
Error message
ps: stdin: not a terminal
tput: No value for $TERM and no -T specified
/usr/local/bin/bash: line 1: cargo: command not found

Full log: https://paste.rs/nho

@allenap what should be your default shell? Can you do echo $SHELL and tell me what the output is?

Can you do echo $SHELL and tell me what the output is?

$ echo $SHELL
/usr/local/bin/bash

Ah weird, and so in your normal bash shell, cargo resolves to a specific installation path right? Like what is the output of which cargo?

$ which cargo
/Users/gavin/.cargo/bin/cargo

I always launch VS Code using code . in my project directory so that it picks up environment. Perhaps, after a restart, it had not restored that environment by the time that Flowistry ran? In any case, after restarting VS Code, it seems to be okay: no more errors, and Flowistry commands are doing things.


Get-SPOTheme return nothing?

where are the "examples"?  And if i run get-spotheme, it returns nothing!

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: ff514d24-111a-d79e-396f-feb65a1fb7d7
Version Independent ID: 20540d08-e747-3395-29df-e266919bfc36
Content: SharePoint site theming - PowerShell cmdlets
Content Source: docs/declarative-customization/site-theming/sharepoint-site-theming-powershell.md
Product: sharepoint
GitHub Login: @spdevdocs
Microsoft Alias: spdevdocs

The following example for your reference.
$tenant="tenant"
Connect-SPOService ("https://{0}-admin.sharepoint.com" -f $tenant) -Credential (Get-Credential)
$themes = Get-SPOTheme
foreach ($theme in $themes) {
    $theme.Name
}

If you want to get all the themes from tenant, we can also use PnP PowerShell to achieve it.
$adminUrl= "https://tenant-admin.sharepoint.com"
Connect-PnPOnline -Url $adminUrl -UseWebLogin
$themes = Get-PnPTenantTheme
$themes | Format-Table Name

If you want to get the theme from current web, we can use the PowerShell below.
$siteUrl= "https://tenant.sharepoint.com/sites/team"
Connect-PnPOnline -Url $siteUrl -UseWebLogin
$themes = Get-PnPTheme
$themes | Format-Table Name

Dennis Guo
Microsoft SharePoint Community Support

i still get nothing.

If you can't add theme, you will get nothing. You can use the Script below to add theme to the tenant.
$themepalette = @{
  "themePrimary" = "#00ffff";
  "themeLighterAlt" = "#f3fcfc";
  "themeLighter" = "#daffff";
  "themeLight" = "#affefe";
  "themeTertiary" = "#76ffff";
  "themeSecondary" = "#39ffff";
  "themeDarkAlt" = "#00c4c4";
  "themeDark" = "#009090";
  "themeDarker" = "#005252";
  "neutralLighterAlt" = "#f8f8f8";
  "neutralLighter" = "#f4f4f4";
  "neutralLight" = "#eaeaea";
  "neutralQuaternaryAlt" = "#dadada";
  "neutralQuaternary" = "#d0d0d0";
  "neutralTertiaryAlt" = "#c8c8c8";
  "neutralTertiary" = "#a6a6a6";
  "neutralSecondaryAlt" = "#767676";
  "neutralSecondary" = "#666666";
  "neutralPrimary" = "#333";
  "neutralPrimaryAlt" = "#3c3c3c";
  "neutralDark" = "#212121";
  "black" = "#000000";
  "white" = "#fff";
  "primaryBackground" = "#fff";
  "primaryText" = "#333"
}
Add-PnPTenantTheme -Identity "MyCompanyTheme" -Palette $themepalette -IsInverted $false

Dennis Guo
Microsoft SharePoint Community Support


can't move a file using a command

Issue Type: Bug
I can move a file to a different folder by dragging it in the tree.
But in my current case, the tree is too long for me to see both the file I want to move and its desired new location.
So I looked for some sort of command that would let me enter the new path for the file. There doesn't seem to be one. Rename only lets me rename the filename, not the path.
VS Code version: Code 1.38.0 (3db7e09f3b61f915d03bbfa58e258d6eee843f35, 2019-09-03T21:47:00.464Z)
OS version: Darwin x64 18.6.0

Extensions can contribute commands to the Command Palette and to the explorer context menu.
Thus an extension can easily do this imho.


Missing assets

Updated to the latest version of the plugin and from the right animation we got the left version with missing assets. Same file, same settings but new plugin. Trying to downgrade the plugin but same issue. Any ideas?
https://www.dropbox.com/s/q1w4q7z7hk6tpoc/diffrent.mp4?dl=0

Hi. I'm away right now. Will be back this weekend. Can you send me the .ae project so I can check it out?

 Email sent with the file!

Did you have time and look at my file?

Yes! I arrived late yersterday and couldn't upload the fix.
I'll be uploading it tonight.

 Thanks!
—
Alex Kerber
Creative Technologist
+46 (0) 735 40 30 20 |
http://alexkerber.com/
On Tue, 02 Aug 2016 at 00:55 hernan
<
mailto:hernan<EMAIL_ADDRESS>
wrote:

a, pre, code, a:link, body { word-wrap: break-word !important; }
Yes! I arrived late yersterday and couldn't upload the fix.
I'll be uploading it tonight.
—
You are receiving this because you authored the thread.
Reply to this email directly,
https://github.com/bodymovin/bodymovin/issues/123#issuecomment-236732596
, or
https://github.com/notifications/unsubscribe-auth/ABOSnk0c1wqkdM4J6epFSuzLAxyCK1hzks5qbnlugaJpZM4JXImk
.

done!

Woks perfect now with the lastest version.


Singleton not tracked

Hi,
I am using Castle.Windsor <IP_ADDRESS> strange issue on singletons. It used to work on version 2.x but I cannot find the problem for this version.
[Test]
public void Disposable_Singletons_are_tracked_for_disposal()
{
    IKernel k = new DefaultKernel();
    k.Register(Component.For<DisposableComponent>().LifestyleSingleton());

    var comp = k.Resolve<DisposableComponent>();
    Assert.IsTrue(k.ReleasePolicy.HasTrack(comp));
    GC.Collect();
    Assert.IsTrue(k.ReleasePolicy.HasTrack(comp));
}

So the default policy on Singletons are not tracked.
Also (same problem but different...)
[Test]
public void Disposable_Singletons_are_tracked_for_disposal_for_custom_DoNotTrackTransientsReleasePolicy()
{
    IKernel k = new DefaultKernel();
    k.ReleasePolicy = new DoNotTrackTransientsReleasePolicy(null,null);
    k.Register(Component.For<DisposableComponent>().LifestyleSingleton());

    var comp = k.Resolve<DisposableComponent>();
    Assert.IsTrue(k.ReleasePolicy.HasTrack(comp));
    GC.Collect();
    Assert.IsTrue(k.ReleasePolicy.HasTrack(comp));
}

Where I have this custom policy life and the Track method dos not get called...It is called on Transient lifestyle but....:
public class DoNotTrackTransientsReleasePolicy : LifecycledComponentsReleasePolicy
{
    public DoNotTrackTransientsReleasePolicy(IKernel kernel) : base(kernel)
    {
    }

    public DoNotTrackTransientsReleasePolicy(ITrackedComponentsDiagnostic trackedComponentsDiagnostic, ITrackedComponentsPerformanceCounter trackedComponentsPerformanceCounter) : base(trackedComponentsDiagnostic, trackedComponentsPerformanceCounter)
    {
    }

    public override void Track(object instance, Burden burden)
    {
        if (burden.Model.LifestyleType == LifestyleType.Transient)
            return;

        base.Track(instance, burden);
    }
}

Thanks so much.

There were breaking changes made in 3.0.0 that change the semantics around tracking and burdens to reduce memory and CPU overhead where tracking isn't needed. Take a read of this item in the BreakingChanges.txt file:
https://github.com/castleproject/Windsor/blob/master/BreakingChanges.txt#L458


Questions on Ingestion to Processing Architecture Review

[ ] 01. Is NiFI always running? Yes, in Idle state. Once the daily job is run - why is NiFi kept running? We should implement auto On/Off for the cluster. => Define fixed clusters and variable clusters.
[ ] 02. Today the entire cQube is deployed. => We need to move to independent microservice architecture deployment. - Update: Which microservices need to move?
[ ] 03. How are dependencies in processing jobs handled? Is there any scheduling along with dependencies? => Should use Airflow.
[ ] 04. How can we add a processor to NiFi? Show base processor group. Please add comments (e.g. JOLT processor code for NiFi) - Update: What is the expectation?
[ ] 05. Does Configuration change if Spark used instead of NiFi? - Update: Answer - Configuration file is not coupled with NiFi, Hence we can reuse the configuration file.

@ananya-jain1 , Please look into this ticket

To be considered as part of cQube roadmap.

All the sub tickets are closed


Int64Index and  Float64Index (and... ?) do not propagate name of passed index

    In [8]: i = Index(range(3),name='foo')

    In [9]: Index(i)
    Out[9]: Int64Index([0, 1, 2], dtype='int64', name=u'foo')

    In [10]: pd.Int64Index(i)
    Out[10]: Int64Index([0, 1, 2], dtype='int64')

Float64Index as well
ideally move the tests to Base to test all index types.
See #12288.

Related question: are the following behaviours, currently in master, desired?

explicitly given datatype is respected in Int64Index but not in Float64Index:
  In [3]: Index(np.arange(3, dtype=np.int32), dtype=np.int32).dtype
  Out[3]: dtype('int32')

  In [4]: Index(np.arange(3, dtype=np.int32), dtype=np.float32).dtype
  Out[4]: dtype('float64')

data dtype is not respected by default (even when it could be):
  In [5]: Index(np.arange(3, dtype=np.int32)).dtype
  Out[5]: dtype('int64')

@toobaz no those are as expected, these by default will coerce to float64/int64 always (or raise an error if its impossible). we technically allow coercing to a smaller dtype size (e.g. 32bit).
I dont think its ever useful to have a Int64Index with a dtype of int32 (and break some things), IIRC I added it a while back for compat reasons. You can take this out and see what if anything breaks, and we can simply disallow (and cast as needed).

Not sure I understood correctly: OK for coercing to 64 bits both floats and ints by default. But what about a different, explicit, coercion (i.e. dtype=np.float32)? I understand you're saying that supporting this may make sense for floats but not for ints, right? (the current behaviour is the opposite)

I am saying it exists for both now, but doesn't make sense for either. IIRC I added this for ints, but don't really remember why it was needed. Ideally we should just drop this support as its uncessary and confusing, coercing things like np.float32 -> float64 and similarly for ints.

OK, so the dtype argument would become useless (at least for those two index types), right? Should it be deprecated? Or do we prefer to leave it for compatibility?

its for compatibility and assertions (IOW if you pass something and it cannot be coerced then you raise, this already happens now)

So for instance in Int64Index with dtype=np.int32, I should check I can cast data to np.int32, just for the sake of asserting... and then store as np.int64 anyway?! Seems a bit awkward.

no I would simply cast to int64. I suspect some things might break currently if you change this. IIRC might be a platform issue, I don't remember.

@toobaz Is this related, or a new issue?
In [8]: s2=pd.Series(2., index=pd.PeriodIndex(start='1995-01-02', end='2016-06-30', freq='B', name='date'))

In [10]: s1=pd.Series(3., index=pd.PeriodIndex(start='1995-01-02', end='2016-06-03', freq='B', name='date'))

In [12]: s3=s1*s2

In [13]: s3
Out[13]:
1995-01-02    6.0
1995-01-03    6.0
1995-01-04    6.0
1995-01-05    6.0
...
2016-06-28    NaN
2016-06-29    NaN
2016-06-30    NaN
Freq: B, dtype: float64

In [14]: s3.index.name
#none

@MaximilianR same bug (not that I have perfectly clear the code paths, but it behaves fine in my branch)

@toobaz so just add this as a test in your PR

@jreback I thought you didn't want that PR to grow too much :-)
Seriously: I don't have clear the code path leading to PeriodIndex.__new__() , but then the difference is clearly inside it, so we wouldn't be testing anything "logically new". I can add the check for .name in a test on the multiplication of series though...

oh, right this is about Periods. If it works, just include the addtl test. Periods are a little bit in flux now.

thanks @toobaz the internal refactorings can take some time. great for sticking with it!


Doc: YAML based manifest deployments

💭 Description
I have a plain YAML based manifest file for an app deployment (not a Helm but YAML based) and the application is already built and docker image is already available. How do I deploy this YAML based deployment via Devtron (basically use only the CD part and not CI)
👀 Have you spent some time to check if this issue has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

AB#3091

Using deployment charts, you can do it.

@thecloudgarage if this answers your question, please close the issue.


cannot get 1.7.0 from npm

Could you please fix it?

You should be able to get it now, just published 1.7.1

Thank you


[feature] include SAAS apps in show-relation

@paulomach FYI the feature is already implemented but restricted: it only works if you are in the requirer model and you type jhack show-relation provider:endpoint requirer:endpoint (or something like that). Something due to how hard it is to chase down the data I need in show-unit and status.
I just merged an update that makes the heuristic more powerful and removes these limitations.
Check it out as soon as it's released on edge!

Thank you!


Seekbar incrementProgressBy feature

I was wondering if there's any possibility we could get the android seekbar's "incrementProgressBy" feature, to make the Slider go like 10, 20, 30, 40 or 5, 10, 15, 20, instead of 1, 2, 3, 4.
Thanks in advance, and congratz for the library, helped me a lot.

+1

+1

just simply use (progress/10)*10 in function onProgressChanged(SeekBar seekBar, int progress, boolean fromUser)

这是来自QQ邮箱的假期自动回复邮件。您好，我最近正在休假中，无法亲自回复您的邮件。我将在假期结束后，尽快给您回复。


DEC-929 showcase thumbnails

If honeypot didn't have a thumbnail/small image for a showcase, the showcase edit button wouldn't show up.
This is part of a larger issue where we just blindly index into dictionaries without checking if they keys exist. I'm not sure the best way to correct this in javascript (other than add if statements). In python there's dict.get(key, default) which allows for safe indexing all the time since default can be an empty dictionary. eg. we would do image.get("thumbnail/small", {}).get("contenturl", ""). I haven't found an equivalent in javascript as of yet.

Coverage remained the same at 95.707% when pulling e0fa54f33b96f06ea7009e3cc70003f66a3972a9 on DEC-929 into ca7cda9efa0ba79e935737890f47916f7722af47 on master.


Settings – Admin should not be able to add existing users

Current State
Currently, an admin with manage members permissions is able to add existing users as new members, which seems to override the user's existing permissions.

Desired State
Admin should not be allowed to proceed if they select an existing user.

hey @ori-near, I think we can allow it (with a warning), that the member is already added, but they can change the permissions is they want, I guess we can disable the 'Submit' button, if the member and permissions is same as before.
What do you think?

Hi @Megha-Dev-19 – as we discussed yesterday, we'll show a warning message to prevent adding an existing user and disable the submit field in that case.


cannot migrate VMI which does not use masquerade to connect to the pod network

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:
/kind bug

/kind enhancement
What happened:
cannot migrate VMI which does not use masquerade to connect to the pod network
What you expected to happen:
can migrate VMI that use bridge to connect to the pod network
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Don't allow live migration with a bridge interface #2405
Why ?
Environment:

KubeVirt version (use virtctl version):
Kubernetes version (use kubectl version):
VM or VMI specifications:
Cloud provider or hardware configuration:
OS (e.g. from /etc/os-release):
Kernel (e.g. uname -a):
Install tools:
Others:

This is by design. VMs can't take their IPs with them because it's delivered by CNI. As a consequence VMs would loose connectivity after the migration, so we are blocking the migration.
So we are not planning to implement this currently.
/close

Please see the use-guide here: https://kubevirt.io/user-guide/operations/live_migration/#limitations
/triage unresolved

Since some cni support this situation，is this possible to allow bridge migration by configuration？

/open
As this now seems to be feature request

+1

/reopen
here is

proposal: https://github.com/kubevirt/community/pull/182
fix: https://github.com/kubevirt/kubevirt/pull/7768

/remove-lifecycle rotten
/reopen

/close
https://github.com/kubevirt/kubevirt/pull/9193 partially fixed this.


Bug: Validations do not display

Issue:
When validation is displayed for data, then the language is missing. It just displays as below:


Update application inset prompt according to interview permissions

Context
The presence of interview permissions should control whether a provider user sees the 'Set up interview' controls and headings.
This also needs to be controlled by a feature flag and legacy 'make decisions' behaviours supported.

Changes proposed in this pull request
Updates the inset text heading according to permissions:

If the feature is disabled Set up interview or make a decision if the user has make decisions permissions
Set up interview or make a decision if the user has both set_up_interviews and make_decisions permissions
Set up interview if the user only has set_up_interviews permissions
Make a decision if the user only has make_decisions permissions

Otherwise no heading is shown.
Set up interview and Make decision Buttons are similarly controlled by the absence/presence of permissions and also the feature flag.
Both permissions

Make decisions only

Set up interviews only

Guidance to review

Link to Trello card
https://trello.com/c/F7Wi7lJT/3920-updates-to-application-page-prompt

Things to check

[x] This code does not rely on migrations in the same Pull Request
[x] If this code includes a migration adding or changing columns, it also backfills existing records for consistency
[x] API release notes have been updated if necessary
[x] Required environment variables have been updated added to the Azure KeyVault

@despo amended here https://github.com/DFE-Digital/apply-for-teacher-training/pull/5118/files#diff-75a928911e209b7e77ba26ad462df32b32b3e66c9db0ac2c8c07d72b22d1e1faR93-R98


Cannot Get Audio Type Message Succesfully

Descriptions
We can successfully handle the audio message type; however, we cannot store the audio message.

Fix: It's video Type message, we can receive both type of message successfully!


App component naming fix

I signed it!

These changes need making for typescript quickstart too (public/docs/ts/latest/quickstart.jade)

Updated.


Fixed broken link in content/en/blog/_posts/2019-11-26-cloud-native-java-controller-sdk.md

This link is broken.

/kind cleanup

With a blog entry this old, I wonder if it is better to link to a more contemporaneous file. I'm not sure if this is the correct link: https://github.com/kubernetes-client/java/blob/client-java-parent-6.0.1/examples/src/main/java/io/kubernetes/client/examples/ControllerExample.java , but I think this was the file as it was when the blog entry was released. It may not matter, but the file has changed a bit since the article was published.

@nate-double-u brings up good points.
I had a quick glance at the Java example.
It looks like the blog's sample code matches the 2019 definition?
 @Override
    public Result reconcile(Request request) {
      V1Node node = this.nodeLister.get(request.getName());
      System.out.println("triggered reconciling " + node.getMetadata().getName());
      return new Result(false);
    }

Still, I think I would link to the most recent code. I don't know how long the other page will be available?

Still, I think I would link to the most recent code. I don't know how long the other page will be available?

The link I shared is part of a release tag, so I hope it'll be around for a while. But the new link that @ooeunz provided does show the new example structure better, and may be helpful for folks getting their bearings in the repo.
/lgtm

Thanks @ooeunz .
/approve


[upgrade] Update functional tests to use Test.GVFS.Upgrade folder

Using GVFS.Upgrade could cause test reliability issues.

As @wilbaker pointed out, perhaps the best fix here is rather than have Test.[something] inside of %programdata%/GVFS, we move to having %programdata%/Test.GVFS with default-named directories inside it. That would prevent the need for future work in the space.


System.Management.Automation.RuntimeException: Unable to find type [PSConsoleUtilities.PSConsoleReadLine].

This just started happening today, no idea what has changed in my environment to cause it.
C:\Program Files\JPSoft\TCMD19_x64> help
Oops, something went wrong.  Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new
Last 171 Keys:
g e t = - a l i Backspace Backspace Backspace Backspace Backspace 0 Backspace - a l i a s Spacebar | ?   The version of PSReadLine that comes with WMF 5 has changed namespace PSConsoleUtilities to Microsoft.PowerShell.  So if you have any PSReadline customization in your profile, you will need to do a search and replace of the former with the latter.
You might also try running PowerShell -NoProfile to see if the problem remains (sans your profile).

WMF5 does not include PSReadline, so an upgrade to WMF5 would not cause this.
An upgrade to Win10 would, as would pulling the latest and building your own version of PSReadline.
At any rate, as Keith mentions, the namespace has changed, you need to update your custom key handlers.


How to build a Cloud-native Application

Proposed title of article
How to build a Cloud-native Application
Introduction paragraph (2-3 paragraphs):
Industries are moving at the fastest pace ever. Customers are demanding even more, and businesses want to innovate and keep up with that pace. The software runs the world, and in other to keep up with the demand of customers, companies need to build scalable software faster than ever.
Cloud-native application development can help businesses build to meet customers demand. Cloud-native development is an approach to building, running and updating responsive, scalable and fault-tolerant apps on the cloud (public, private, or hybrid) quickly while improving quality and reducing risk,
Goal
In this guide, you will learn how to apply modern development techniques and tools to build a Cloud-native application from a language-agnostic perspective using a fictional app idea.
Key takeaways:

Understand the concept of Cloud-native application development.
Understand how the Cloud-native development model works
Know when to use the Microservices architecture.
See how to apply techniques like containers and use tools like Docker to build a Cloud-native application.

References:
N/A
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

To help avoid a backlog queue we are only accepting one article topic/PR approved at a time 👍 can be reopened once the first topic is merged. @Kikiodazie

To help avoid a backlog queue we are only accepting one article topic/PR approved at a time  can be reopened once the first topic is merged. @Kikiodazie

Ohh. Thanks for the update. I will do well to remind you once my previous topic is merged. Have a great day @ahmadmardeni1.

To help avoid a backlog queue we are only accepting one article topic/PR approved at a time  can be reopened once the first topic is merged. @Kikiodazie

Ohh. Thanks for the update. I will do well to remind you once my previous topic is merged. Have a great day @ahmadmardeni1.

Heyyyyyy @ahmadmardeni1. Hope you good?
I am here to remind you about this topic :pleading_face: . Please do check it out.
I hope this meets you well. Have a great week ahead.
Regards,
Divine.

Hey, @Kikiodazie Sure thing!

Yaaaayy 🕺

After some careful consideration, I found out that this topic is already covered in other blogs.
Can you please inform me how you are planning to make it unique? @Kikiodazie

After some careful consideration, I found out that this topic is already covered in other blogs.
Can you please inform me how you are planning to make it unique? @Kikiodazie

Hey @ahmadmardeni1, so sorry for late reply.
Why I submitted this topic idea is that, I was part of the cloud-native foundation scholarship by Udacity and I thought it would be great if I shared the knowledge I got.
Seeing the fact that it's been covered by many other blogs, I guess there isn't a need to approve it.
I hope this meets you well. Cheers.

Great! @Kikiodazie
Can you add a unique idea to your article that makes it unique and different from other blogs?

Great! @Kikiodazie
Can you add a unique idea to your article that makes it different from other blogs?

Hey @ahmadmardeni1 again so sorry for late reply.
Yes I believe so. Currently don't have that unique idea right now would have to go through other blogs and content and see what’s missing that is vital and will make the article special.
But yes I believe I can.
I hope all this meets you well. Again sorry for late reply.

Great! @Kikiodazie
Can you add a unique idea to your article that makes it different from other blogs?

Hey @ahmadmardeni1 again so sorry for late reply.
Yes I believe so. Currently don't have that unique idea right now would have to go through other blogs and content and see what’s missing that is vital and will make the article special.
But yes I believe I can.
I hope all this meets you well. Again sorry for late reply.

Lets just go ahead and close this one and submit a new topic form with the new idea. 👍 No rush - just want to clear up the backlog. 🚀

Great! @Kikiodazie
Can you add a unique idea to your article that makes it different from other blogs?

Hey @ahmadmardeni1 again so sorry for late reply.
Yes I believe so. Currently don't have that unique idea right now would have to go through other blogs and content and see what’s missing that is vital and will make the article special.
But yes I believe I can.
I hope all this meets you well. Again sorry for late reply.

Lets just go ahead and close this one and submit a new topic form with the new idea. 👍 No rush - just want to clear up the backlog. 🚀

No problem  @hectorkambow. Thanks.


Add CI check from Github Actions

Automatically builds the project and verifies that it compiles successfully after submitting PRs


METRON-2250 : Missing services in HDP 3.1 metron mpack and installer stuck

Contributor Comments
This change is added as work around for https://issues.apache.org/jira/browse/AMBARI-25375
This only affects the recommendations in Ambari - users can still modify the hosts for the components as they see fit.
Testing
In order reproduce the error being fixed in this bug, pull the latest feature branch code without this fix and follow the following test plan that also verifies the fix.
Test Plan
In order reproduce the error being fixed in this bug, pull the latest feature branch code without this fix and follow the following test plan that also verifies the fix.
Testing in fulldev

Spin up full dev with Centos 7cd ./metron-deployment/development/centos7/
vagrant up

Uninstall Metron service

Once the install completes, open Ambari http://node1:8080 and stop all Metron services under the Metron service option. We need to do this in order to uninstall.
Click Actions and choose delete service. Confirm.
The Metron Ambari service should be deleted

Re-install Metron service

Click the ellipses next to "Services" in Ambari and choose "Add Service"
Select Metron in the list of services to install. Accept the additional components by clicking "Ok" for each.
The "Assign Masters" page is where the bug previously existed. The "Next" option was greyed out due to the hostname errors. At this point, you can accept the defaults (node1 for full dev) and click "Next."
You can finish the installation if you like, but at this point the bug fix has been validated.

Pull Request Checklist
Thank you for submitting a contribution to Apache Metron.
Please refer to our Development Guidelines for the complete guide to follow for contributions.
Please refer also to our Build Verification Guidelines for complete smoke testing guides.
In order to streamline the review of the contribution we ask you follow these guidelines and ask you to double check the following:
For all changes:

[X] Is there a JIRA ticket associated with this PR? If not one needs to be created at Metron Jira.
[X] Does your PR title start with METRON-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
[X] Has your PR been rebased against the latest commit within the target branch (typically master)?

For code changes:

[x] Have you included steps to reproduce the behavior or problem that is being changed or addressed?

[x] Have you included steps or a guide to how the change may be verified and tested manually?

[ ] Have you ensured that the full suite of tests and checks have been executed in the root metron folder via:
mvn -q clean integration-test install && dev-utilities/build-utils/verify_licenses.sh

[ ] Have you written or updated unit tests and or integration tests to verify your changes?

[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

[x] Have you verified the basic functionality of the build by building and running locally with Vagrant full-dev environment or the equivalent?

For documentation related changes:

[ ] Have you ensured that format looks appropriate for the output in which it is rendered by building and verifying the site-book? If not then run the following commands and the verify changes via site-book/target/site/index.html:
cd site-book
mvn site

[ ] Have you ensured that any documentation diagrams have been updated, along with their source files, using draw.io? See Metron Development Guidelines for instructions.

Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.
It is also recommended that travis-ci is set up for your personal repository such that your branches are built there before submitting a pull request.

Thanks @MohanDV !  This is working for me.
I do have one concern. Rather than relying on the METRON_ENRICHMENT_MASTER component to be assigned (which might not always be the case) just look for a host that has any Metron component. If none exist, then default to the first known host.
I opened a PR against your branch with this suggestion.

Thanks @nickwallen !! I merged your PR changes and verified it on full dev also on 5 node cluster. This is working for me with no issues .

+1 Thanks @MohanDV.  Great job finding a work around to this issue.

This has been merged into the feature branch.


How long for installation experimentation -- python experiment.py --out_dir run_0 && python plot.py

Good day, I was performing the installation process as shown in the model card instructions located at
https://github.com/SakanaAI/AI-Scientist
I executed "cd templates/nanoGPT && python experiment.py --out_dir run_0 && python plot.py"
After two hours of repeatedly cycling through building the model, I had no idea if this was normal, should it have finished after a few minutes or was it nearly finished and I just didn't know better.
OS : Ubuntu 22.04.4 LTS
Driver Version : 535.183.01
CUDA Version : 12.2
Attached GPUs : 1
Product Name : NVIDIA RTX A4500 Laptop GPU
Product Brand : NVIDIA RTX
I terminated the process at the keyboard after two hours of cycling.
I've added a screenshot after restarting this same process, which has been running for about 40 minutes.
Questions

Is there a progress bar (not just the number of iterations the process is on) or some indicator of what is normal?
Have I damaged the process by terminating at the keyboard?

I let the process run and found that it stopped, though I'm not entirely sure about completion after (I believe) was 100,000 iterations six hours later.  Some indication that I wasn't in an endless loop and what percentage of completion is highly desirable.
Yet, this was followed by the notification that I am in need of assistance in resolving.
Average tokens per second: 977.64
/home/homer/anaconda3/envs/ai_scientist/lib/python3.11/site-packages/numpy/core/fromnumeric.py:3504: RuntimeWarning: Mean of empty slice.
return _methods._mean(a, axis=axis, dtype=dtype,
/home/homer/anaconda3/envs/ai_scientist/lib/python3.11/site-packages/numpy/core/_methods.py:129: RuntimeWarning: invalid value encountered in scalar divide
ret = ret.dtype.type(ret / rcount)

This should be solved by: https://github.com/SakanaAI/AI-Scientist/issues/89#issuecomment-2323129188

the nanogpt part would iterate till 1,00,000 times for i guess 2-3 times as per me but the nanogpt_lite one would be faster

& it would be faster in the H100 gpu


client has started displaying pages about 200px down the page instead of showing the whole header

This is probably due to the autoscroll attributes I added to the contents and geneView ui-view divs in order to prevent the browser from scrolling to the top of the page when new states are requested in the events views.
They're not quite working the way I expected and require some tweaking or some using another method for the same purpose.

I've fixed this problem for the main links, some links on the events pages aren't behaving quite the way I'd like but better than the default browser behavior.


TASK: Add Neos 5.x Compatibility

Neos 5.x / Flow 6.x has some breaking changes that also affect the plugin. I've already started to fix the problem, but I haven't managed to get the plugin to work 100%.
Here is the Upgrade Guide
Everything that do not work yet is marked with TODO

[x] IfAuthenticatedViewHelper is not useable because of missing arguments.
[x]  Redirect after Logout does not work (caused by the switch to GuzzleHttp) - Need to work with ActionRequest now I guess.
[x]  flashMessageContainer on Login does not work yet. I tried to fix it. There is no error but it will not be displayed yet.
[ ] CustomPasswordDtoValidator does not work because it can't access result.

Feel free to edit/add everything that belongs to it.

Will this resolve missing arguments issue that seems to prevent rendering of all plugin forms in 5.x?
Undeclared arguments passed to ViewHelper Sandstorm\UserManagement\ViewHelpers\IfAuthenticatedViewHelper: authenticationProviderName. Valid arguments are: then, else, condition

Yes, I already fixed that.
-------- Original-Nachricht --------
An 31. Dez. 2019, 06:05, LeoFurr schrieb:

Will this resolve missing arguments issue that seems to prevent rendering of all plugin forms in 5.x?
Undeclared arguments passed to ViewHelper Sandstorm\UserManagement\ViewHelpers\IfAuthenticatedViewHelper: authenticationProviderName. Valid arguments are: then, else, condition
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Yes, I already fixed that.
…
-------- Original-Nachricht -------- An 31. Dez. 2019, 06:05, LeoFurr schrieb:
Will this resolve missing arguments issue that seems to prevent rendering of all plugin forms in 5.x? Undeclared arguments passed to ViewHelper Sandstorm\UserManagement\ViewHelpers\IfAuthenticatedViewHelper: authenticationProviderName. Valid arguments are: then, else, condition — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Thanks, thought I am doing something wrong, awaiting this release :)

UserManagement should now be ready for Neos 5!


Warning: convertedHtml.html is not a function (with inky 1.3.6)

Hi,
I'm getting this message on inky task when making a new install:
Warning: convertedHtml.html is not a function
After some investigation there's a new version of inky that seems to break your plugin.
Adding the 1.3.5 (strict) inky version to the project dependencies resolves the error.
Thanks for this plugin and for thinking about grunt users.

Hey @alekart thanks for the report!
It seems that this commit is causing the issue: https://github.com/zurb/inky/pull/57/commits/5f4cb497445ff69714192d6cae5d417c94de1b26


CSHARP-476 - KeyNotFoundException from Cassandra Error Response

Not sure what the root cause of the unknown error code from Cassandra is, but this should provide a more helpful Exception if anyone runs into this in the future. Unit test included.

Nice catch!
+1 for the test.

I have been able to reproduce this (I believe it is the same case)
We have a type we are persisting into a cassandra table. That type has a property that is an enum, which is mapped as text in cassandra. If, by any chance, an invalid value ends up in that column (invalid for the specific enum type semantics anyway), when cassandra tries to map it to the enum, using EnumStringMapper.MapStringToEnum, it will fail miserably, because the StringToEnumCache dictionary has only valid enum values. So a KeyNotFoundException will be thrown.
What I would like very much is to have a more specific exception that informs me of this.

@TioLuiso I think is not directly related to this issue, but let's look at it anyway:
You mean you are using the Mapper/Linq to map a string to an enum and because there is an invalid value stored in that column (not present in the enum), the Mapper throws KeyNotFoundException which is not specific, right?
If that is the case, I think the driver could throw a MappingException or something like that providing the info, wdyt?

Right you are.
Well, kindof. It is even funnier. we parse a file, and load an enum value from there (with Enum.TryParse). It is not defined in the enum. But the parse will not fail because of the nature of the enum in C#. It will have the invalid value. For example, if the enum has values 0, 1 and 2, it will accept value 3.
Then we store it in cassandra. And it won't fail. And you can see in the column the value "3"
Then we try to retrieve it, and this time it explodes. Because "3" isn't in the dictionary.
Yup, I believe MappingException would be really nice. If posible indicating the enum type and the value.
Thanks a huge lot

Sounds good!
I've created a ticket for it: CSHARP-517.


For in range loop support

Do you think it's a good idea to implement support for C++11's range loop? To date I've avidly used TinyXML2 combined with a few convenient macros that do just that.
The syntax I propose is;
// Iterate over elements:
for(const XMLNode* node : root->FirstChild()) {
    // [...]
}

// Iterate over attributes:
for(const XMLAttribute* attribute : root->ToElement()->FirstAttribute()) {
   // [...]
}

// Optional, directly iterate over attributes:
for(const XMLAttribute* attribute : root) {
    // [...]
}

I wouldn't mind spending some time implementing such capabilities; of course, this makes only sense if this feature will be merged into TinyXML2.

Closing for now. I need a general plan on C++ 11. (range iterators, enumerations)


Pie chart to show ownership of pool defined by stake units

on Asset->Stakers page add a pie chart showing how much of the pool each staker owns...
"the ownership of a pool is given by their "stake units" it would be good to show a % onwership, perhaps even a pie graph, for each pool and staker"

I can do


help please

Challenge Name

Issue Description

Browser Information

Browser Name, Version:
Operating System:
Mobile, Desktop, or Tablet:

Your Code

Screenshot

duplicate https://github.com/FreeCodeCamp/FreeCodeCamp/issues/10792


fix: truncate iam_role_name to 38 characters

IAM roles name can't be longer than 38 characters so we have to truncate it.

I believe this is only true for name_prefix, correct? We tend to avoid this manipulation since it's not what users expect unless they dig into the source code and see it's being truncated

Yes, indeed it's only true for name_prefix.
I'll do it on my side if you think that doing it in this module does not make sense.
Thanks for your quick feedback.


Adding DOCKER_API_VERSION workaround

What this PR does / why we need it:
The October windows image MicrosoftWindowsServer:WindowsServerSemiAnnual:Datacenter-Core-1803-with-Containers-smalldisk:1803.0.20181017 brought in Docker EE-basic 18.03, which has a problem with Kubernetes v1.12 (https://github.com/kubernetes/kubernetes/issues/69996)
This fix pins the DOCKER_API_VERSION environment variable system-wide to match the API supported by Docker for versions 17.06 and 18.03. This fixes the problem with kubelet startup.
For newer versions, the key should be cleared.
Which issue this PR fixes
fixes #4118
depends on #4119

@jsturtevant can you review? I'm testing now

18.03 with Windows Server version 1803 works:
 OS Image:                   Windows Server Datacenter
 Operating System:           windows
 Architecture:               amd64
 Container Runtime Version:  docker://18.3.1
 Kubelet Version:            v1.12.2
 Kube-Proxy Version:         v1.12.2
ProviderID:                  azure:///subscriptions/34229103-1113-415f-ba20-80f86dd700ce/resourceGroups/plang1029upgarg/
providers/Microsoft.Compute/virtualMachines/21418k8s9000
Non-terminated Pods:         (0 in total)
  Namespace                  Name    CPU Requests  CPU Limits  Memory Requests  Memory Limits
  ---------                  ----    ------------  ----------  ---------------  -------------
Allocated resources:
  (Total limits may be over 100 percent, i.e., overcommitted.)
  Resource                       Requests  Limits
  --------                       --------  ------
  cpu                            0 (0%)    0 (0%)
  memory                         0 (0%)    0 (0%)
  attachable-volumes-azure-disk  0         0
Events:
  Type    Reason                 Age              From                   Message
  ----    ------                 ----             ----                   -------
  Normal  Starting               5m               kubelet, 21418k8s9000  Starting kubelet.
  Normal  NodeHasSufficientDisk  5m (x2 over 5m)  kubelet, 21418k8s9000  Node 21418k8s9000 status is now: NodeHasSuffici
entPID

Still waiting on my 17.06 test pass

Does it make sense to have the docker API version configurable from the stand point of acs-engine model?  Along side of the configuration of the docker version, you could also set the api version you want to use at the model level:
 "windowsProfile": {
      "adminUsername": "azureuser",
      "adminPassword": "replacepassword1234$",
      "windowsDockerVersion": "17.06.2-ee-16"
      "dockerapiversion": "1.30"
    },

In this case I really want acs-engine to "do the right thing". I don't want the cluster admin to have to decide on what Docker API version.
I would argue this should be automatic as part of the Docker API, but I don't know the background for why it's like this.

17.06 tests:
OS Image:                   Windows Server Datacenter
 Operating System:           windows
 Architecture:               amd64
 Container Runtime Version:  docker://17.6.2
 Kubelet Version:            v1.12.2
 Kube-Proxy Version:         v1.12.2
ProviderID:                  azure:///subscriptions/34229103-1113-415f-ba20-80f86dd700ce/resourceGroups/plang1029defarg/
providers/Microsoft.Compute/virtualMachines/87970k8s9000
Non-terminated Pods:         (0 in total)
  Namespace                  Name    CPU Requests  CPU Limits  Memory Requests  Memory Limits
  ---------                  ----    ------------  ----------  ---------------  -------------
Allocated resources:
  (Total limits may be over 100 percent, i.e., overcommitted.)
  Resource                       Requests  Limits
  --------                       --------  ------
  cpu                            0 (0%)    0 (0%)
  memory                         0 (0%)    0 (0%)
  attachable-volumes-azure-disk  0         0
Events:                          <none>

/lgtm


Export perf test config and results in service-mesh-benchmark-spec format

Will need to follow the format outlined in
https://github.com/layer5io/service-mesh-benchmark-spec

Currently, this import/export excludes test results; is restricted to the test, environment, and mesh configurations.

Feature is being worked on in this branch - https://github.com/layer5io/meshery/tree/feature/export-load-test-results

Completed for single result export.

@kalradev  @kushthedude it's a good time to expand on the values exported.

Not stale
On Mon, 26 Oct, 2020, 02:06 stale[bot]<EMAIL_ADDRESS>wrote:

This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/layer5io/meshery/issues/36#issuecomment-716208003,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKQMTLU6HQY6YJU4A3WOHITSMSD4XANCNFSM4GUHRAGA
.

@navendu-pottekkat fixed?

This is partially fixed. We still need to pick up some values that are not exposed currently by the API. The results are formatted correctly currently but there are missing values. See PR #2605

// @bariqhibat

Completed.


[serverless-1.30] patch func deploy task for serverless 1.30.1

patch for func-deploy task to use midstream specific client built for 1.30.1

I noticed the typo in the branch name: serveless-qe/func-deploy-task-serverless-v1.30.1, I already fixed it in our script, but I don't think it is necessary to open a new PR because of that.

Codecov Report
All modified lines are covered by tests :white_check_mark:

:exclamation: No coverage uploaded for pull request base (serverless-1.30@4864fbd). Click here to learn what that means.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@                Coverage Diff                 @@
##             serverless-1.30     #711   +/-   ##
==================================================
  Coverage                   ?   50.91%
==================================================
  Files                      ?       93
  Lines                      ?    12167
  Branches                   ?        0
==================================================
  Hits                       ?     6195
  Misses                     ?     5417
  Partials                   ?      555

Flag
Coverage Δ

e2e-test-runtime-go
28.03% <0.00%> (?)

unit-tests-ubuntu-latest
49.26% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

I just found out pkg/pipelines/resources/tekton/task/func-deploy/0.1/func-deploy-pac.yaml  needs to be updated as well, so I will close this PR and we can use https://github.com/openshift-knative/kn-plugin-func/pull/710 instead.


CRR service account

backbeat routes (actually CRR routes) are no longer available to normal
bucket owner accounts, only special CRR account may use those routes.
CRR account is defined by its canonical ID as a special URL. Add
this account in authdata.json with a dummy access key for tests.
Made on top of https://github.com/scality/S3/pull/919

PR has been updated. Reviewers, please be cautious.


Fix path for monorepos

What is the purpose of this pull request? (put an "X" next to item)
[ ] Documentation update
[X] Bug fix
[ ] New feature
[ ] Other, please explain:
What changes did you make? (Give an overview)
In the PR migrating to the typescript compiler, an issue was re-surfaced where the base directory isn't correctly mapped for projects within a monorepo (NX in our case)
Which issue (if any) does this pull request address?
N/A
Is there anything you'd like reviewers to focus on?
N/A

I'm not following. This change was done following what's currently on master: https://github.com/aralroca/next-translate/blob/master/src/plugin/index.ts

It was a misunderstanding. Absolutely right! Thanks for the contribution @jporsay !


Fix: Ignore clover.xml

This PR

[x] adds clover.xml to .gitignore

Coverage remained the same at 78.86% when pulling 83883dbed0fbc970a93c6b62273fec24b6c9e287 on localheinz:fix/gitignore into 077b1e2356b663e5893986fbbb2e039abfe126e5 on EvanDotPro:master.

Coverage remained the same at 78.86% when pulling 83883dbed0fbc970a93c6b62273fec24b6c9e287 on localheinz:fix/gitignore into 077b1e2356b663e5893986fbbb2e039abfe126e5 on EvanDotPro:master.

This is taken care of in PR #27 as well

Closing, as it's a duplicate of #27.
Thank you, @anubisthejackle!


REPL is broken and possible fixes are undocumented

The documentation on running FLTKHS in a REPL is quite extensive: it consists of a title.
Naively running stack repl, stack ghci, stack exec -- ghci, stack exec -- cabal repl or any variants just creates opaque errors about missing libraries (libfltkc-dyn.so) and undefined symbols (Fl_Adjuster_New).  Normally this is a sign that something is missing in the .cabal file. In this case it's probably just some flag. But I have no idea what it could be. The general result is the same in bundled and unbundled builds, and it persists since I first took a look a few weeks ago. I am not certain if the missing parts changed in the meantime though.
All the type level trickery, lack of naming conventions, documentation-by-error-messages and the fact that types are spread all over the libraries seems to imply that these libraries were designed to be explored interactively. The downside is that it's almost impossible for a newcomer to get a grip on things without help by ghci. Therefore, this is an important part of the environment that should be documented.
Encountered in fltkhs-demos, fltkhs-fluid-demos, fltkhs-hello-world, and fltkhs on Debian 8 with stack 1.1.2, ghc 8.0.2, cabal-install <IP_ADDRESS>.

That is an unfortunate doc bug. I know I had something, must have inadvertently deleted it in a commit. Sorry about that. I'll write something up and upload. Thanks for reporting!

For now with fltkhs-{fluid}-hello-world, you can do stack repl --flag fltkhs:bundled and run :main at the prompt to run the app. Unfortunately I'm having an issue with the REPL where closing the app doesn't dispose of the window, not sure why.

Mh. The error persists if I try it that way. That tells me two things:

The main contribution of missing documentation was to make the distinction between different kinds of errors harder, but it may not have hidden anything vital
There's probably something wrong with a dependency

The symbol in the error message seems to point to a missing fltkhs dependency. That's weird, because it even remains with the bundled flag. Either the "Fl" is a red herring and there's an additional system library I need or something goes wrong when setting up the bundled library. What's even weirder is that non-interactive builds work, but anything interactive fails. Because of that my gut tells me it's the latter of these possibilities, but I have no idea if the error is on my side or fltkhs'.
There is no way for me to start a ghci session while keeping the bundled flag, and without it :set -lfltkc-dyn fails. Which makes sense I guess. Sadly I have no idea how to debug this.
Could it be hurting that I have FLTK 1.3.4 installed on the system?

Unfortunately I can't seem to reproduce. If you installed FLTK using apt-get there's a chance it didn't build the libraries the right way, which is why the docs suggest going with the bundled build or compiling it yourself manually. Just for the sake of checking off that box can you try re-cloning either one of the skeletons in a fresh directory and doing stack repl --flag fltkhs:bundled?

Same result from fresh clones. Same thing with a fresh clone under a fresh user so that no old cabal- or stack-remains interfere. I didn't install FLTK through apt-get though, but from source. So now it's almost impossible to purge from the system because who knows where it has put all its parts.
I guess I'll try to purge and/or reinstall it later when I have some time. Maybe the build is broken or something. Oh, and I installed GHC from binaries, not through apt-get or stack, so maybe that has some non-standard flags set as well that interfere with linking or something.

If you do make uninstall in the fltk source folder it will remove the libraries and executables it installed.
I don't have access to Debian so I'll have to do a little more exploring to figure out what's going on. Thanks for the bug report!

My Windows 7 installation is also complaining about the shared library:
> runhaskell App
ghc.exe: addDLL: libfltkc-dyn (Win32 error 126): The specified module could not be found.
KateSmibConfig: <command line>: can't load .so/.DLL for: libfltkc-dyn.dll (addDLL: could not load DLL)

Same problem when using intero with visual studio code or emacs.
Could be the Windows shared library support.
Perhaps one way around this is to build/link the fltk C wrapper statically with the haskell library.

I've never actually used FLTKHS with runhaskell. Regarding intero, can you try a stack build --flag fltkhs:bundled in your app before starting it?

Currently I'm not able to build the bundled version, but don't think that will fix this: shared libraries are not that well supported on Windows, and in case they were, we need *.dll, not the *.so which I see in the fltkhs build directory. To avoid the shared library dependency I was thinking the wrapper library could be a static library which links with the haskell fltkhs library.

To my knowledge it is statically linking. If stack build --flag fltkhs:bundled is no longer working for you then it's a regression bug and I'd like to fix it. Please open an issue with the version of GHC/Stack/Windows you're using and I'll do my best but bear in mind I don't have access to a Windows 7 only Windows 10.

I've found the issue with my build, the PATH was confusing my stack to use the wrong compilers. Clearing my PATH before calling stack build --flag fltkhs:bundled fixed it and no longer complains about the shared library.

On Windows 7 I've worked around the issue of the missing libfltkc-dyn.so. Windows doesn't use this extension but rather .dll, so in the build output of fltkhs I made a copy of this file but with a .dll extension and now Intero loads without warning.

I believe I'm seeing a similar problem.  Ghci crashes with a symbol error on any executable more complex than the hello-world app [which works fine].
uranium@Hex:~/projects/fltkhs-demos$ stack build --flag fltkhs:bundled
Warning: Cabal file warning in
/home/uranium/projects/fltkhs-demos/fltkhs-demos.cabal@ 377:3: Unknown
field: "extra-source-files"
uranium@Hex:~/projects/fltkhs-demos$ stack ghci fltkhs-demos:exe:fltkhs-arc --flag fltkhs:bundled
Warning: Cabal file warning in
/home/uranium/projects/fltkhs-demos/fltkhs-demos.cabal@ 377:3: Unknown
field: "extra-source-files"
Using main module: 1. Package `fltkhs-demos' component exe:fltkhs-arc with main-is file: /home/uranium/projects/fltkhs-demos/src/Examples/arc.hs
The following GHC options are incompatible with GHCi and have not been passed to it: -threaded
Configuring GHCi with the following packages: fltkhs-demos
GHCi, version 8.4.3: http://www.haskell.org/ghc/  :? for help
[1 of 1] Compiling Main             ( /home/uranium/projects/fltkhs-demos/src/Examples/arc.hs, interpreted )
Ok, one module loaded.
Loaded GHCi configuration from /tmp/haskell-stack-ghci/9eb6573d/ghci-script
*Main> :main
/home/uranium/.stack/programs/x86_64-linux/ghc-8.4.3/lib/ghc-8.4.3/bin/ghc: symbol lookup error: /home/uranium/projects/fltkhs-demos/.stack-work/install/x86_64-linux/lts-12.12/8.4.3/lib/x86_64-linux-ghc-8.4.3/libHSfltkhs-<IP_ADDRESS>-8BkUMqgnQ0PDZzznxgBtad-ghc8.4.3.so: undefined symbol: Fl_Window_default_virtual_funcs


Failed to load custom code simulation

Dear Deng,
I have tried the Quadcopte example, but the simulink file at the last step didnt run.
I t gives me this error:
Failed to load custom code simulation
library:D:\Users\sanim\Documents\MATLAB\MPC\ParNMPC\Quadrotor\slprj_slcc\oSDpra6UYTzTcubJVwU2TH\oSDpra6UYTzTcubJVwU2TH_cclib.dll
Component:Simulink | Category:Model error

Hi xeeman,
It seems some users have encountered the same problem, but currently, I don't know where the problem is.
Could u delete the slprj_slcc folder and try it again? Or "clear mex" might help.

Hello Haoyang:
I met the same question. It seems when run Simulink, the floder slprj/slcc would be created automatically. Then the same error happened. But now I dont know the reason. Have you figured it out? Thank you.

Hi. I solved the issue by disabling the import custom code flag in simulation configurations


Fragment ends are incorrectlly plotted

This could also be an error in plotting the whole fragment... Need to check.
Issue
Here are plotted fragment ends:

Here are plotted fragments:

By comparing these, you can see that using the ends setting only returns one end of the fragment. Also, in many cases both ends are totally missing. My midpoint plot rendered weird, and I don't have time to fix it right now, but I suspect that midpoints my be off as well.

Note that the vertical line above is a rendering artifact.


Removed singleton pattern

This pull request addresses issue #5 by removing the singleton pattern in favour of creating instances with the new keyword, and using the ES6 constructor function on the JsonApi class.

@themarkappleby – would like to merge this – is this going to break your stuff?


NaNs in testing

Issue
Getting NaNs on backward propoagation.
Trace
this was the call1
this was the call12
Batch loss was for batch number {batch_idx}:  tensor(9.6656, device='cuda:0', grad_fn=)
this was the call13
NaN detected in gradient of embedding.weight
NaN detected in parameter embedding.weight after update
this was the call1
this was the call12
NaN detected in model output
Epoch 1/1, Average Loss: 0.0863
Training completed! Total time: 2.32 seconds
Code
    print("this was the call1")
    if check_nan(input_seq, "input_seq"):
        break

    output, _ = model(input_seq)

    print("this was the call12")
    if check_nan(output, "model output"):
        break

    output = output.contiguous().view(-1, len(loader_object.vocab))
    target_seq = target_seq.contiguous().view(-1)

    loss = criterion(output, target_seq)
    print("Batch loss was for batch number {batch_idx}: ", loss)

    print("this was the call13")
    if check_nan(loss, "loss"):
        break

Dataset Used
gwlms/dewiki-20230701-flair-corpus
Possible things to look at
Note: I am using the language_model.py code provided in the repo with the only change being the dataset I am using.

I suspect I might be dealing with exploding gradients. The error "NaN detected in gradient of embedding.weight" is a big clue here. I'm thinking my gradients are probably getting too large during backpropagation.
I'm a bit concerned about my loss function. That loss value of 9.6656 seems pretty high to me (the starting with the random dataset you provided was around 7).

Purpose of Ticket
ruling out the possibility that there might be anything wrong with the way XLSTM has been implemented, additionally would love if you would like to collaborate on getting your implementation to work with a large dataset.

Update
I have possible insights into what might be causing the issue, I have temporarily fixed the issue and got the training to work with the public dataset, however there is a small, a very small possibility this may trace back to the XLSTM implementation (I have to empirically test a few things before I post anymore updates.

Thank you for the update on the issue. It's great to hear that you've found a temporary fix that allows training to work with the public dataset. I appreciate your proactive approach in investigating the root cause, especially the potential connection to the xLSTM implementation.
I look forward to your pull request with the temporary fix. When you're ready, please submit it with:

A clear description of the changes made
Any relevant test results or logs
A brief explanation of how it resolves the current issue


Disabling caching

Hi. I don't even know if this is an actual issue, but I'm facing a caching problem with one of my websites (running Apache).
After investigations, I found out that nginx cache was causing my problem. I tried a lot of things I've googled, but nothing worked.
Could you please tell me how to disable nginx cache on a specific proxy host?
Thank you

I'm having the same problem.  It looks like Cache Assets control does not work in the GUI.
Thus, we have to put the line:
proxy_cache off;
into each of the proxy config files.
I think it goes in the "location / {" section of:  ~nginxproxymanager/data/nginx/proxy_host/1.conf
I got this from reading:
https://stackoverflow.com/questions/54136265/nginx-reverse-proxy-disable-cache
http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache

I think you misunderstand the cache assets toggle. All it does is specifically cache css / js / image files by including this nginx config.
The cache should be disabled by default I think. But just to make sure you can just add the three lines you have mentioned to the advanced config tab:
proxy_no_cache 1;
proxy_cache_bypass 1;
proxy_cache off;

The cache should be disabled by default I think.
No, the default is clearly proxy_cache on, which is why we were trying to find a way to turn it off.
I've got a webcam image on a weather station webserver.  The webcam image got cached by NGINX and the same image was repeated (not refreshed) with each refresh of the web page.
Adding the 3 conf file lines I mentioned, stopped the caching and the webcam image now updates, with each page refresh, as desired.

Weird, I'm not sure why it should be activated, since the only config contained in npm seems to be to switch it off. But glad it works.

Do you think it would be difficult to add switch to the GUI to turn off the cache?
That would be a nice feature to have!
Should I make a feature request?

Sure, go ahead


read/write permissions during init within Administrative console

λ passpie -D /Users/{username}/.passpie init --passphrase {password}
Traceback (most recent call last):
  File "C:\Python27\Scripts\passpie-script.py", line 9, in <module>
    load_entry_point('passpie==0.3.3', 'console_scripts', 'passpie')()
  File "C:\Python27\lib\site-packages\click\core.py", line 664, in __call__
    return self.main(*args, **kwargs)
  File "C:\Python27\lib\site-packages\click\core.py", line 644, in main
    rv = self.invoke(ctx)
  File "C:\Python27\lib\site-packages\click\core.py", line 991, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "C:\Python27\lib\site-packages\click\core.py", line 837, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\Python27\lib\site-packages\click\core.py", line 464, in invoke
    return callback(*args, **kwargs)
  File "C:\Python27\lib\site-packages\passpie-0.3.3-py2.7.egg\passpie\cli.py", line 157, in init
    with Cryptor(config.path) as cryptor:
  File "C:\Python27\lib\site-packages\passpie-0.3.3-py2.7.egg\passpie\crypt.py", line 38, in __init__
    self._gpg = gnupg.GPG(binary=self._binary, homedir=self._homedir)
  File "C:\Python27\lib\site-packages\gnupg\gnupg.py", line 125, in __init__
    ignore_homedir_permissions=ignore_homedir_permissions,
  File "C:\Python27\lib\site-packages\gnupg\_meta.py", line 177, in __init__
    self.homedir = os.path.expanduser(home) if home else _util._conf
  File "C:\Python27\lib\site-packages\gnupg\_util.py", line 744, in __set__
    getattr(obj, self.fset.__name__)(value)
  File "C:\Python27\lib\site-packages\gnupg\_meta.py", line 430, in _homedir_setter
    raise RuntimeError(str(ae))
RuntimeError: Homedir ''c:\users\{username}\appdata\local\temp\tmp1l3i3t'' needs read/write permissions

λ pip freeze
cffi==1.2.1
click==4.0
cryptography==1.0.2
enum34==1.0.4
gitdb==0.6.4
GitPython==1.0.1
gnupg==2.0.2
idna==2.0
ipaddress==1.0.14
passpie==0.3.3
psutil==3.0.1
pyasn1==0.1.9
pycparser==2.14
pyOpenSSL==0.15.1
PyYAML==3.11
six==1.10.0
smmap==0.9.0
tabulate==0.7.5
tinydb==2.3.2

λ pip install -U passpie
Requirement already up-to-date: passpie in c:\python27\lib\site-packages
Requirement already up-to-date: gnupg==2.0.2 in c:\python27\lib\site-packages (from passpie)
Requirement already up-to-date: tabulate==0.7.5 in c:\python27\lib\site-packages (from passpie)
Requirement already up-to-date: tinydb==2.3.2 in c:\python27\lib\site-packages (from passpie)
Requirement already up-to-date: GitPython==1.0.1 in c:\python27\lib\site-packages (from passpie)
Requirement already up-to-date: click==4.0 in c:\python27\lib\site-packages (from passpie)
Requirement already up-to-date: PyYAML==3.11 in c:\python27\lib\site-packages (from passpie)
Requirement already up-to-date: psutil>=1.2.1 in c:\python27\lib\site-packages (from gnupg==2.0.2->passpie)
Requirement already up-to-date: gitdb>=0.6.4 in c:\python27\lib\site-packages (from GitPython==1.0.1->passpie)
Requirement already up-to-date: smmap>=0.8.5 in c:\python27\lib\site-packages (from gitdb>=0.6.4->GitPython==1.0.1->passpie)

Any ideas?

I went as far as to set this up on a remote server. It went fine. I exported the passpie.db as well as ~/.passpie and moved them to my local PC and get this error:
λ passpie status
Passphrase:
ERROR:gnupg:[Error 123] The filename, directory name, or volume label syntax is incorrect: "C:\\Users\\{username}\\'c:"
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\gnupg\_util.py", line 322, in _create_if_necessary
    os.makedirs(directory, 0x1C0)
  File "C:\Python27\lib\os.py", line 150, in makedirs
    makedirs(head, mode)
  File "C:\Python27\lib\os.py", line 150, in makedirs
    makedirs(head, mode)
  File "C:\Python27\lib\os.py", line 150, in makedirs
    makedirs(head, mode)
  File "C:\Python27\lib\os.py", line 150, in makedirs
    makedirs(head, mode)
  File "C:\Python27\lib\os.py", line 150, in makedirs
    makedirs(head, mode)
  File "C:\Python27\lib\os.py", line 150, in makedirs
    makedirs(head, mode)
  File "C:\Python27\lib\os.py", line 157, in makedirs
    mkdir(name, mode)
WindowsError: [Error 123] The filename, directory name, or volume label syntax is incorrect: "C:\\Users\\{username}\\'c:"
Traceback (most recent call last):
  File "C:\Python27\Scripts\passpie-script.py", line 9, in <module>
    load_entry_point('passpie==0.3.3', 'console_scripts', 'passpie')()
  File "C:\Python27\lib\site-packages\click\core.py", line 664, in __call__
    return self.main(*args, **kwargs)
  File "C:\Python27\lib\site-packages\click\core.py", line 644, in main
    rv = self.invoke(ctx)
  File "C:\Python27\lib\site-packages\click\core.py", line 991, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "C:\Python27\lib\site-packages\click\core.py", line 837, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\Python27\lib\site-packages\click\core.py", line 464, in invoke
    return callback(*args, **kwargs)
  File "C:\Python27\lib\site-packages\passpie\cli.py", line 323, in status
    ensure_passphrase(db, passphrase)
  File "C:\Python27\lib\site-packages\passpie\cli.py", line 92, in ensure_passphrase
    with Cryptor(db._storage.path) as cryptor:
  File "C:\Python27\lib\site-packages\passpie\crypt.py", line 38, in __init__
    self._gpg = gnupg.GPG(binary=self._binary, homedir=self._homedir)
  File "C:\Python27\lib\site-packages\gnupg\gnupg.py", line 125, in __init__
    ignore_homedir_permissions=ignore_homedir_permissions,
  File "C:\Python27\lib\site-packages\gnupg\_meta.py", line 177, in __init__
    self.homedir = os.path.expanduser(home) if home else _util._conf
  File "C:\Python27\lib\site-packages\gnupg\_util.py", line 744, in __set__
    getattr(obj, self.fset.__name__)(value)
  File "C:\Python27\lib\site-packages\gnupg\_meta.py", line 430, in _homedir_setter
    raise RuntimeError(str(ae))
RuntimeError: Homedir ''c:\users\{username}\appdata\local\temp\tmp9p0dxq'' needs read/write permissions

However, if I simply exec passpie I can view what's in the database:
λ passpie
╒═════════════════╤══════════════════════╤════════════╤═══════════╕
│ Name            │ Login                │ Password   │ Comment   │
╞═════════════════╪══════════════════════╪════════════╪═══════════╡
│ social/Facebook │<EMAIL_ADDRESS>│ *****      │           │
╘═════════════════╧══════════════════════╧════════════╧═══════════╛

Looks like there is a bug in tempfile.mkdtemp(). A user experienced it here, too and this is the fix. (to remove the need for temp files).

I forked the repository in an attempt to fix this myself, but I know nothing of Python. I was able to get past the permission error by using a different method that wasn't using tempfiles:
λ passpie init
Passphrase:
Repeat for confirmation:
Traceback (most recent call last):
  File "C:\Python27\Scripts\passpie-script.py", line 9, in <module>
    load_entry_point('passpie==0.3.3', 'console_scripts', 'passpie')()
  File "C:\Python27\lib\site-packages\click\core.py", line 664, in __call__
    return self.main(*args, **kwargs)
  File "C:\Python27\lib\site-packages\click\core.py", line 644, in main
    rv = self.invoke(ctx)
  File "C:\Python27\lib\site-packages\click\core.py", line 991, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "C:\Python27\lib\site-packages\click\core.py", line 837, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\Python27\lib\site-packages\click\core.py", line 464, in invoke
    return callback(*args, **kwargs)
  File "C:\Python27\lib\site-packages\passpie\cli.py", line 161, in init
    with Cryptor(config.path) as cryptor:
  File "C:\Python27\lib\site-packages\passpie\crypt.py", line 39, in __init__
    self._gpg = gnupg.GPG(binary=self._binary, homedir=self._homedir)
  File "C:\Python27\lib\site-packages\gnupg\gnupg.py", line 162, in __init__
    self.create_trustdb()
  File "C:\Python27\lib\site-packages\gnupg\gnupg.py", line 172, in create_trustdb
    if self.is_gpg2():
  File "C:\Python27\lib\site-packages\gnupg\gnupg.py", line 212, in is_gpg2
    return _util._is_gpg2(self.binary_version)
  File "C:\Python27\lib\site-packages\gnupg\_util.py", line 529, in _is_gpg2
    (major, minor, micro) = _match_version_string(version)
  File "C:\Python27\lib\site-packages\gnupg\_util.py", line 607, in _match_version_string
    major, minor, micro = int(g[0]), int(g[2]), int(g[4])
TypeError: int() argument must be a string or a number, not 'NoneType'

That is actually a great fix, Thanks for that, I will look into adding this to the mainstream code.

Any update on this? Just tried a fresh install of Passpie and it still seems to be utterly broken for Windows.

Hello @zQueal passpie is now working on windows. you can try installing HEAD version on your windows machine and tell me what do you have.
pip install --upgrade https://github.com/marcwebbie/passpie/tarball/master

Tested on windows 10 with default command prompt.

Awesome! Totally worth the wait. Thanks for taking the time. I've tested this and it seems to be almost feature complete. Some new bugs, but I'll make new tickets.
Thanks!


[v4] Add "Getting Started" guide to docs

I'm having a bit of a hard time of getting started with v4. The docs seem comprehensive and discuss lots of things, but what I'm missing is a concise "Getting Started" section, which would take me at my hands and walk me through to my first hello world microservice. It could e.g. be a simple REST endpoint with an injected CDI bean and should show how to package/run/debug this thing.

Sorry @kenfinnigan you must have been adding the 4.x label just as I was adding the one for enhancement.
@gunnarmorling There isn't a getting started per se, but there is a jaxrs archetype for thorntail. I'll add something to the docs this evening, but in the meantime, I wrote a short article going through a simple Thorntail v4 project: https://kg6zvp.github.io/blog/2018/08/28/getting-started-ttv4.html

Hey @kg6zvp, thanks for that warp-speed reply :)

is a jaxrs archetype for thorntail.

The archetype is cool! It might already be to "advanced" already though for someone taking their very first look into Thorntail to see what it does, before they are even firing up their IDE/CLI.

I'll add something to the docs this evening

👍

I wrote a short article going through a simple Thorntail v4 project: https://kg6zvp.github.io/blog/2018/08/28/getting-started-ttv4.html

Ah, that looks very nice! Essentially, what you have under "Sample Project" could be the basis for a "Getting Started" chapter IMO. What then would be nice to have are steps describing how to package/run it. And perhaps to sprinkle in a tiny usage of mP Config, so to show what's all possible (e.g. for reading a value with the greeting to return). The corresponding chapters could be referenced of course for those interested in learning more.

@gunnarmorling It's a little difficult to include all of the relevant technologies in a getting started. I suppose that's the challenge with anything coming out of a JavaEE lineage as Thorntail does.
What may be prudent is to add getting started sections for each technology and then link to them or make them follow-ons from the main "getting started" sample project thing. I'll think on it. Glad to see more people jumping on v4. It's a terrific platform and has a lot of potential.

@gunnarmorling check out the WIP: https://github.com/thorntail/thorntail/compare/4.x...kg6zvp:add_getting_started
I'm debating how many Thorntail modules that getting started should cover. I'd also like to add a "Getting Started" section to each of the modules with a little example code.


Updates to the canonical validation resource cache in VersionSpecificWorkerContextWrapper

Related to #6505
What was done:

updated all implementors of IValidationSupport to use Logs.getTerminologyTroubleshootingLog()
added a bunch of new tests on VersionSpecificWorkerContextWrapper related to the cache and also testing the methods to fetch validation resources at different levels (unit and integration).

FYI @codeforgreen I believe this PR should be redundant once this merges (it also fixes the same issue by just never expiring StructureDefinions): #6508

I updated the scope of this PR to much smaller. I updated the description accordingly. It now just include the small compile warning or refactoring changes and additional tests. There is no change to the caches or validato, no changelog in this PR.


⛏ Write test for fetching metadata from a digital ocean instance

💭 Introduction:
We want to test whether API's which take in url as a param are vulnerable to fetch information related to compute engine using SSRF. You can refer this blog for more details about the attack.
🎯 Requirements:
This test should only run for APIs which are taking url as a parameter in input.
The test should correctly detect whether some instance-related information can be fetched via an API specific to Digital Ocean cloud.
An example for AWS is implemented here already.
📚 Reading
You can find a detailed documentation of test editor rules here
Find 100+ examples of YAML tests here
✅ Task summary:

[ ] Ask to be assigned to the issue.
[ ] Wait to be assigned. We will try to assign in less than 2 hours.
[ ] Fork the tests-library repository, create a new branch and commit the yaml file which will be called in your test.
[ ] Signup for Akto
[ ] Check in the Attempt tab, if the payload changes, then task is done.
[ ] Submit the PR here.

✌🏻 Hints:
You can build the yaml template by referring this link
🙋🏼♂ Questions:
If you have questions, need any help, or just want to hang out, make sure to join us on our Discord server.

Hai @aktoboy, I am just exploring issues and it seems interesting. Here its what I understand after walkthrough the bunch of files (mentioned above). It can be done by creating the SSRFOnDigitalOceanMetadataEndpoint class and call the method from BaseSSRFTest.java  as similar as SSRFOnAwsMetadataEndpoint.java and so on other steps.....

i want to solve this issue.

Thanks for your interest @mogulcoder26. Assigning it to you

@Ankita28g @ankush-jain-akto @aktoboy - I have started looking at this issue, can you please assign this to me.

@Ankita28g @ankush-jain-akto @aktoboy - I have started looking at this issue, can you please assign this to me.

@Ankita28g @ankush-jain-akto @avneesh-akto - I have raised PR - please check- https://github.com/akto-api-security/tests-library/pull/32

Good work @rashmibharambe. I have merged your PR. Feel free to work on other issues.

Good work @rashmibharambe. I have merged your PR. Feel free to work on other issues.