Fix errors in Matrix Service to Scanpy vignette

Fix Errors:

remove unzipping of loom file
remove printing of missing loom md file

Mask Warnings (optional changes)

catch repetitive warnings from overflow (!) in louvain

Additional unintentional changes

there is now more data available in the matrix service, resulting in larger query responses
some metadata fields have changed, resulting in minor updates

Notes

It might be beneficial to check the R vignettes for problems as well, I didn't try to run those.

@ambrosejcarr - is still awaiting a review or is still in progress?

Awaiting review.
On Wed, Sep 18, 2019, 6:58 PM Brian Raymor<EMAIL_ADDRESS>wrote:

@ambrosejcarr https://github.com/ambrosejcarr - is still awaiting a
review or is still in progress?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/HumanCellAtlas/matrix-service/pull/389?email_source=notifications&email_token=ABH7C4DUO3IGM5AM5Q7CJDLQKKXAPA5CNFSM4IUMF2MKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7BWD6I#issuecomment-532898297,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABH7C4E5BIPJYJQH5BM5QWTQKKXAPANCNFSM4IUMF2MA
.


Implement Datadog Monitors for CPU usage

What

Implement Datadog Monitors for CPU usage

Why

Necessary to have module for creation datadog alerts

closed in favor of https://github.com/cloudposse/terraform-datadog-monitor/pull/6


Missing sdist on PyPI for 0.11.2

The 0.11.2 release on PyPI has prebuilt wheels only but lacks the source archive. Please upload it.

an osx aarch64 wheel would be nice too, but it is easily buildable with an sdist.

@mgorny The sdist has been published with the latest version 0.11.3 and onwards.
@ajslater I've managed to get cross compilation working with Python. Version 0.11.3 has macOS ARM64 builds; if you are free to test it out please let me know if you encounter any issues.


Update Rust Nightly Version

Fix a new Rust Nightly version

Auto-generated PR

Pull Request Test Coverage Report for Build 999871003

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.004%) to 79.514%

Totals

Change from base Build 993802077:
0.004%

Covered Lines:
17812

Relevant Lines:
22401

💛  - Coveralls

 Update Rust Nightly


Exporting 'Relation' information to output files

Describe the bug
Exporting 'Relation' information to output files
To Reproduce
Steps to reproduce the behavior:

Make up a random Relation between two bounding boxes in a video
Export data in form of ny file (e.g. .tsv for excel)

Expected behavior
See 'Relation' information in output .tsv files for specifi video annotation of bounding boxes
Screenshots
(not in .tsv spreedsheet)
Environment (please complete the following information):

OS
Label Studio Version [latest]

It's pretty tricky to have relations in tsv/csv and other format that are not designed for it. You can use native LS JSON format, it will contain relations.


Ros2 v0.8.0 object merger

Did not pass lint. Could you fix it?
Summary: 1 package finished [3.41s]
  1 package had stderr output: object_merger
  1 package had test failures: object_merger
build/object_merger/Testing/20210205-0151/Test.xml: 6 tests, 0 errors, 1 failure, 0 skipped
- uncrustify
  <<< failure message
    -- run_test.py: invoking following command in '/home/kosuke/autoware_0_8/src/autoware/pilot.auto/perception/object_recognition/detection/object_merger':
     - /home/kosuke/autoware_0_8/install/ament_uncrustify/bin/ament_uncrustify --xunit-file /home/kosuke/autoware_0_8/build/object_merger/test_results/object_merger/uncrustify.xunit.xml
    Code style divergence in file 'src/object_association_merger/data_association/successive_shortest_path/successive_shortest_path.hpp':

    --- src/object_association_merger/data_association/successive_shortest_path/successive_shortest_path.hpp
    +++ src/object_association_merger/data_association/successive_shortest_path/successive_shortest_path.hpp.uncrustify
    @@ -15,2 +15,4 @@
    -#ifndef OBJECT_ASSOCIATION_MERGER__DATA_ASSOCIATION__SUCCESSIVE_SHORTEST_PATH__SUCCESSIVE_SHORTEST_PATH_HPP_
    -#define OBJECT_ASSOCIATION_MERGER__DATA_ASSOCIATION__SUCCESSIVE_SHORTEST_PATH__SUCCESSIVE_SHORTEST_PATH_HPP_
    +#ifndef \
    +  OBJECT_ASSOCIATION_MERGER__DATA_ASSOCIATION__SUCCESSIVE_SHORTEST_PATH__SUCCESSIVE_SHORTEST_PATH_HPP_
    +#define \
    +  OBJECT_ASSOCIATION_MERGER__DATA_ASSOCIATION__SUCCESSIVE_SHORTEST_PATH__SUCCESSIVE_SHORTEST_PATH_HPP_

    1 files with code style divergence

@k0suke-murakami I fixed lint.

[x]  Build passed
Package: obejct_merger
[x] ros2 run success.
Node: object_merger_node
[x] Test  passed


Show sat/vB and allow user to set fee rate

People often want to set the fee rate in sat/vB to know how quickly their transaction would confirm and how expensive it is relative to other transactions (regardless of # UTXOs used). The fee rates are shown in BTC and $ but not in sat/vB. Could you add sat/vB display for the fee and allow the user to set a custom sat/vB?

Please only open github issues for actual technical issues, not for suggestions or feature requests that belong in the "Discussions" section.
Please repost your request in the discussions section and it will get addressed eventually.
I do have plans to update the fee system in freewallet-desktop, and already have "issues" open to add this feature.


IronPython.Runtime.Exceptions.ImportException: 'No module named 'pygame''

Prerequisites
The issue tracker is used to report bugs and request new features, NOT to ask questions.
Questions should be posted in Discussions or to the users mailing list which can be accessed at
https://ironpython.groups.io/g/users.

[x] Are you running the latest version?
[ ] Are you reporting to the correct repository?
[ ] Did you perform a cursory search?

Description
I downloaded the pygame package using the pip virtual environment, and copied the entire Lib folder generated by the pip virtual environment to the Debug folder and referenced it in the program. However, why would an error be reported?

Steps to Reproduce

Install Ironpython 3.4 in nuget package manager
Run "python - m venv env" to create a python virtual environment
Run "env Scripts activate. bat" to enable the Python virtual environment
Run "pip install pygame" to download the latest package for pygame
Copy the Lib folder under the env folder created by pip to the project output path

Versions
IronPython 3.4
Python 3.9 (64-bit)

So you means that IronPython is not support 'pygame' lib?

Ironclad for Ironpython3


Support identifiers as context decls in human-readable schemas

Description of changes
Issue #, if available
Checklist for requesting a review
The change in this PR is (choose one, and delete the other options):

[x] A backwards-compatible change requiring a minor version bump to cedar-policy (e.g., addition of a new API).

I confirm that this PR (choose one, and delete the other options):

[x] Updates the "Unreleased" section of the CHANGELOG with a description of my change (required for major/minor version bumps).

I confirm that cedar-spec (choose one, and delete the other options):

[x] Does not require updates because my change does not impact the Cedar formal model or DRT infrastructure.

Is this fixing #681?

Is this fixing #681?

Yes, thanks for pointing it out.

Do we need to make the same change for entity type attributes?

Yes, will do it in another PR.


Combined Media Queries

Bootstrap uses a lot of repeated media queries, this is proposal to combine them.
I found in issue tracker quite similar, approved pull request "Media query mixins" #13014. But it only changes hardcoded media queries to mixins (in my opinion not in better way to write code inside) and what is more important not combining media queries in output CSS.
So inside proposal changed all media queries to media mixins declarations, that called in media-queries.less file collector.
Media mixins naming composed of parts from media queries:
@media screen and (min-width: @screen-sm-min) {...}  -> .media-screen-min-sm() {...}
Benefits:

combined media queries;
reduced little bit size of bootstrap.css from 3kb, bootstrap.min.css from 2.5kb
mechanism to scale media queries for LESS Bootstrap users without adding post processors

Concerns:

non standard way of use mixins possible only in LESS
CSS way to write media queries, media mixins should always wrap content
I founded that bootstrap not supported LESS extends, so didn't find way better than add .navbar-form to .form-inline. Of course form.less should not know anything about navbar.less.

I don't think we're interested in making a significant change like this to Bootstrap v3 at this point. We're trying to nudge v3 towards stable maintenance mode.
FWIW, we have implemented something similar to #13014 in our draft of Bootstrap v4.
With regard to combining media queries, I'm pretty sure we rely on declaration order in some places to resolve specificity issues, so I'd be concerned about potential breakage related to the reordering caused by the combining.

Yup, few things about this kind of stuff:

It's a big change to make in v3.
It's a task and approach better served via post-processing as the closer these things are to their original styles, the better.
File size doesn't matter much here because of gzipping—those repeated strings get sampled down to one string.
Performance wise, I've seen no benefit for combined vs separate media queries (not that you raised this concern, but it's worth noting.

So, given all that, we'll punt for now. Come v4 we'll have mixins for the media queries for easier syntax, but they'll still be close to the components that they modify. Way easier to build stuff that way.

@cvrebert, @mdo I see, make sense. Didn't expect this for v3, more for future, just live working example.
Thank you for detailed responses.


Observable from function

Hi,
$devices = ['<IP_ADDRESS>','<IP_ADDRESS>','<IP_ADDRESS>','<IP_ADDRESS>', ...];

function getSnmp($ip, $community, $oid) {
 $snmp = new SNMP(SNMP::VERSION_2C, $ip, $community);
  return $res = $snmp->get($oid);
}

foreach ($devices as $device){
 return getSnmp($device['ip'], public, 'OID');
}

I have this synchronous code. I'm trying various methods to create this as asynchronous but I couldn't manage with it.
Could anybody help me create observable from this function getSnmp() ?

@nicraMarcin if SNMP() is not async, RxPHP won't make it async.

I know that SNMP isn't async but snmp is only example and this can be any function which takes some time to execute. for example http (curl) or something like that:
function test($x) {
  sleep(rand(1,10);
  return uniqd();
}
foreach ($array as $a){
  $res = test($a);
  // do anything with result
}

so this is sync code. with async I don't want to wait for previous  function ends but execute another subscribe and wait for results like in RxJS and HttpClient I execute request, do next stuff and whet response come do something with recieved data.

RxPHP will not help you make synchronous code asynchronous.  It's simply a library that allows you to compose synchronous or asynchronous streams.
You might want to look into swoole


Expense - Unable to dismiss the delete modal by clicking outside the modal

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 9.0.31-12
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers<EMAIL_ADDRESS>Issue reported by: Applause Internal Team
Action Performed:

Go to staging.new.expensify.com
Go to workspace chat.
Submit an expense.
Go to transaction thread.
Click on the report header.
Click Delete expense.
Click outside the delete modal.

Expected Result:
User should be able to dismiss the delete modal by clicking outside the modal (production behavior).
Actual Result:
User is unable to dismiss the delete modal by clicking outside the modal.
Workaround:
Unknown
Platforms:

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

Screenshots/Videos
https://github.com/user-attachments/assets/8e8b9df5-325f-41ad-a988-813820a1bfab

View all open jobs on GitHub

This was a regression, so no payment is needed.


Improve career mode tutorialization, first impressions

When someone launches career mode, it ends abruptly and they probably won't understand it.
Career mode should have a little extra tutorialization, messaging or animations to make it obvious what's going on.

Career map could say something like "Boss Level" and highlight it when they're getting close
Boss level animation should play when they reach a boss level
At the end of the day, the clock could say something like "Day Complete" with a happy animation of a smiling clock
Hints/tips during level select based on the player's progress. If they haven't gotten far, it could say something like "Clear the boss level to unlock new regions!" or "In Career Mode, beat six levels each day to progress. Perform well to reach the boss!"

Tips to give the player:

The left level is further from your goal. Choose carefully!
High scores move you further. Build all the boxes you can!
Career mode ends after six levels. Make every level count!
The boss level is close! Can you reach it in time?
Career mode ends if you lose all your lives. Try not to top out!
Sudden death levels are risky, but will award you an extra life!
You can practice harder levels in Training Mode to get the hang of them!


feat(WidgetMember): update display_name method to include global_name

Summary
This is a follow-up to #1123 . I had suggested to also apply that change to WidgetMember as it also has a display_name property, but that PR got merged without it.
This PR applies that same change as Member to WidgetMember : the display_name property will return the name using the following hierarchy:

Guild specific nickname
Global Name (also known as 'Display Name' in the Discord UI)
Unique username

This is a Code Change

[X] I have tested my changes.
[X] I have updated the documentation to reflect the changes.
[X] I have run task pyright and fixed the relevant issues.

I feel like 2 & 3 should maybe be swapped at first look, but this is a choice for others to agree or disagree with. Consider this comment an approval if others like the current order.

I don't think so, this is the order used by User and Member in the original PR, and also the one used in the Discord UI.


Not supports laravel 5.4

FatalThrowableError in ClosureTableServiceProvider.php line 47:
Call to undefined method Illuminate\Foundation\Application::share()

@zvermafia This should have been solved by the pull request #186.

Awesome!

when will be release with this fix?

@zvermafia I have tagged a new release.

@franzose thanks!


Neo4j Not starting

Hello, When I want to start the server, I get this error:
C:\neo4j-enterprise-3.1.3\bin>neo4j
Usage: neo4j { console | start | stop | restart | status | install-service | uninstall-service } < -Verbose >

C:\neo4j-enterprise-3.1.3\bin>neo4j console
2017-04-06 19:46:20.699+0000 INFO  ======== Neo4j 3.1.3 ========
2017-04-06 19:46:20.902+0000 INFO  Starting...
2017-04-06 19:46:21.496+0000 INFO  Bolt enabled on localhost:7687.
2017-04-06 19:46:21.512+0000 INFO  Initiating metrics...
2017-04-06 19:46:25.492+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@66204af3' was successfully initialized, but failed to start. Please see attached cause exception. Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@66204af3' was successfully initialized, but failed to start. Please see attached cause exception.
org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@66204af3' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:68)
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:230)
        at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:91)
        at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:68)
        at org.neo4j.server.enterprise.EnterpriseEntryPoint.main(EnterpriseEntryPoint.java:32)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase@66204af3' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:443)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:202)
        ... 3 more
Caused by: java.lang.RuntimeException: Error starting org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory, C:\neo4j-enterprise-3.1.3\data\databases\graph.db
        at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:199)
        at org.neo4j.graphdb.EnterpriseGraphDatabase.<init>(EnterpriseGraphDatabase.java:36)
        at org.neo4j.server.enterprise.EnterpriseNeoServer.lambda$static$1(EnterpriseNeoServer.java:91)
        at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:89)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:433)
        ... 5 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'apoc.ApocKernelExtensionFactory$1@e77f58c' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:443)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
        at org.neo4j.kernel.extension.KernelExtensions.start(KernelExtensions.java:86)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:433)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
        at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:195)
        ... 9 more
Caused by: java.lang.NoClassDefFoundError: org/neo4j/kernel/api/proc/Mode
        at apoc.schema.AssertSchemaProcedure.signature(AssertSchemaProcedure.java:152)
        at org.neo4j.kernel.impl.proc.ProcedureRegistry.register(ProcedureRegistry.java:53)
        at org.neo4j.kernel.impl.proc.Procedures.register(Procedures.java:103)
        at org.neo4j.kernel.impl.proc.Procedures.register(Procedures.java:76)
        at apoc.ApocKernelExtensionFactory$1.start(ApocKernelExtensionFactory.java:49)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:433)
        ... 14 more
Caused by: java.lang.ClassNotFoundException: org.neo4j.kernel.api.proc.Mode
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 20 more

C:\neo4j-enterprise-3.1.3\bin>

I updated the apoc in POM file and it is now working.

@nasrinazif what version of apoc worked for you?  I'm getting the same error.

@bb-work <IP_ADDRESS> worked for me

Hey, I've added a pre-packaged jar for Neo4j 3.2 in the releases page.
I'd recommend you upgrade to Neo4j 3.2 and copy the jar in the plugins dir.
This should hopefully do the job. Let me know if not.
JB.

@jbarrasa Thanks for your reply. I did that but unfortunately, I got this error:

Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@2a770ef4' was successfully initialized, but failed to start. Please see the attached cause exception "Unable to register procedure, because the name apoc.index.orderedByText is already in use.".

Hi, the pre-packaged neo4j jar already bundles apoc. So if you have it in your plugins directory it will clash. I think this is the error you are getting.
JB.

Hi noticed there is an error in my previous comment. I meant the pre-packaged neosemantics jar already bundles apoc. neo4j does not, obviously.


Updating version to 2.3

Pull Request Description
What issue does this change request address?
#1806
What are the significant changes in functionality due to this change request?
Updates version number.

For Change Control Board: Change Request Review
The following review must be completed by an authorized member of the Change Control Board.

[ ] 1. Review all computer code.
[ ] 2. If any changes occur to the input syntax, there must be an accompanying change to the user manual and xsd schema. If the input syntax change deprecates existing input files, a conversion script needs to be added (see Conversion Scripts).
[ ] 3. Make sure the Python code and commenting standards are respected (camelBack, etc.) - See on the wiki for details.
[ ] 4. Automated Tests should pass, including run_tests, pylint, manual building and xsd tests. If there are changes to Simulation.py or JobHandler.py the qsub tests must pass.
[ ] 5. If significant functionality is added, there must  be tests added to check this. Tests should cover all possible options.  Multiple short tests are preferred over one large test. If new development on the internal JobHandler parallel system is performed, a cluster test must be added setting, in  XML block, the node <internalParallel> to True.
[ ] 6. If the change modifies or adds a requirement or a requirement based test case, the Change Control Board's Chair or designee also needs to approve the change.  The requirements and the requirements test shall be in sync.
[ ] 7. The merge request must reference an issue.  If the issue is closed, the issue close checklist shall be done.
[ ] 8. If an analytic test is changed/added is the the analytic documentation updated/added?
[ ] 9. If any test used as a basis for documentation examples (currently found in raven/tests/framework/user_guide and raven/docs/workshop) have been changed, the associated documentation must be reviewed and assured the text matches the example.

Job Test qsubs sawtooth on eb0a508 : invalidated by @wangcj05
qsub failed

Job Test qsubs sawtooth on eb0a508 : invalidated by @wangcj05
Diff tests/cluster_tests/AdaptiveSobol/test_parallel_adaptive_sobol


Tr default cert

Which issue is fixed by this PR? If not related to an existing issue, what does this PR do?
This PR sets and explicit self-signed certificate as the 'default' certificate which gets returned during an SSL handshake if the requesting host does not match any of the other valid certificates TR hosts. The default certificate will not match any hostname and should be rejected by the client.
Which TC components are affected by this PR?

[ ] Documentation
[ ] Grove
[ ] Traffic Analytics
[ ] Traffic Monitor
[ ] Traffic Ops
[ ] Traffic Ops ORT
[ ] Traffic Portal
[X] Traffic Router
[ ] Traffic Stats
[ ] Traffic Vault
[ ] Other _________

What is the best way to verify this PR? Please include manual steps or automated tests.
(If no tests are part of this PR, please provide explanation as to why no tests are included.)
There are unit tests and integration tests built into the TR build which test this PR. To manually test:
T1. use curl -kv --resolve to connect with an SNI host that matches the domain of an existing DS, but not the regular expression. For instance try https://cdn.someds.somecdn.toplevel for a DS that responds to https://edge.someds.somecdn.toplevel
R1. Inspect the curl output and you should see that the TLS handshake was successful but the certificate returned was for domain : Invalid
Check all that apply

[X] This PR includes tests
[ ] This PR includes documentation updates
[ ] This PR includes an update to CHANGELOG.md
[X] This PR includes all required license headers
[ ] This PR includes a database migration (ensure that migration sequence is correct)
[ ] This PR fixes a serious security flaw. Read more: www.apache.org/security

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3322/
Test PASSed.

Also, can you add a line in CHANGELOG.md about TR's new default cert behavior?

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3340/
Test PASSed.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3443/
Test PASSed.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3475/
Test FAILed.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3477/
Test FAILed.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3478/
Test PASSed.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3492/
Test PASSed.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3502/
Test PASSed.


Check Fullmask Permission and the Bitwise JS Limit

Category

[x] Bug

Describe the bug
I use SPFx 1.4 on an SP2019 Environment and want to check the permissions for an user (this.context.pageContext.web.permissions) and if the user has full mask. In my case I have full mask. The values are right: High: "2147483647", Low: "4294967295" BUT the hasPermission-Function returns everytime false.
permission.hasPermission(SPPermission.fullMask) //returns false
When I go to the definition of this Function, it looks like this:
SPPermission.prototype.hasPermission = function (requestedPerm) {         return requestedPerm &&             ((requestedPerm.value.Low & this.value.Low) === requestedPerm.value.Low) &&             ((requestedPerm.value.High & this.value.High) === requestedPerm.value.High);     };
This condition returns true:
(requestedPerm.value.High & value.High) === requestedPerm.value.High
But this one returns false:
(requestedPerm.value.Low & value.Low) === requestedPerm.value.Low
The reason is, that the bitwise AND returns -1 and not<PHONE_NUMBER>
And this happens because JS can only check bitwise in the range of -2147483648 to<PHONE_NUMBER> (see here)
I would say it is not an environment or SPFx Issue, but a JavaScript.
Environment details

OS: [e.g. Windows 10 | MacOS 10.15.x]
Target Environment: SharePoint Server 2016 | SharePoint Server 2019 | SharePoint Online
Framework:  spfx
Browser(s): Chrome
Tooling: VS Code | SPFx v1.4.0

This should be WW now


feat: isomorphic browser n node support

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

GitHub release
1.2.0
npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:


go vet violations on tip.

We have a few minor go vet violations when using vet from tip (1.7-ish) rather than 1.6.2. Can be seen in CI:
https://travis-ci.org/google/go-github/builds/140438111
https://travis-ci.org/google/go-github/jobs/140438114
$ go tool vet .
github/examples_test.go:15: ExampleClient_Markdown refers to unknown identifier: Client
github/examples_test.go:29: ExampleRepositoriesService_GetReadme refers to unknown identifier: RepositoriesService
github/examples_test.go:47: ExampleRepositoriesService_List refers to unknown identifier: RepositoriesService
github/examples_test.go:61: ExampleUsersService_ListAll refers to unknown identifier: UsersService
The command "go tool vet ." exited with 1.

As far as I can tell, this is a Go1.7tip bug.
We are adhering to the naming convention defined in the Examples documentation.
Filed Go issue: https://github.com/golang/go/issues/16189

I've seen this issue happen in some of my own packages too, and I suspected it might be a bug/regression in tip. I didn't have time to investigate.

We are adhering to the naming convention defined in the Examples documentation.

I agree with your assessment.
Thanks for looking into it and filing the issue upstream Glenn. 👍

Go1.7 has been fixed upstream and tip is now passing tests.


Handle modals correctly

We hit race conditions whenever we try to wait on a modal to become visible. This is probably caused by the fade effect.
As a workaround, we are currently operating on the modal without testing if it became visible or not.
Workaround: Fixed the code to handle modal dialogs
The task is to find a way to correctly wait on a modal to become visible before doing any operation on it.

Thanks for the issue Can.
One base problem is that phantomjs does not seem to have an updated HTML when animations occur.

@cbbayburt what is the status of this issue? ( i dont like zombie issues)

@MalloZup nothing has been done so far. But this is still relevant. We should open a tech debt issue in spacewalk so we can schedule this in some future sprint.

@cbbayburt ok thx for feedback.

@cbbayburt what about moving this issue to "spacewalk" repo? Let's have issues in only one place.

@Bischoff  i don t think that having issue in one place it is good.
Here we are discussion things, in spacewalk issue are agile cards.

@dmaiocchi we have "later", "tech-debt" for spacewalk repo.
And this issue could perfectly become an agile task.

I dont mind. As you wish

Create a task in spacewalk, it is a good idea


Google Maps vs OpenStreetMap bike paths comparison

Check if we can use google maps for bike path generation between nodes. If not then we can use OSM.

Closed by #15


Basic usage tutorial

Dear gurus,
I am currently trying to get project list and branches of a project, but my code failed at the beginning. The exception is
com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: Request RejectedThe requested URL was rejected. Please consult with your administrator.
Here is my code:
final String URL = "https://example.com";
final String token = "myToken";
api = GitlabAPI.connect(URL, token);
System.out.println(api.getProjects().size());
Could you please take a look?
A basic tutorial in readme would be better, I tried gitlab python API it works but I prefer to use Java.
Thanks.

It works for me.
GitlabAPI api = GitlabAPI.connect("https://gitlab.com", private_token);
System.out.println(api.getProjects().size());

I made sure to grab the token from https://gitlab.com/profile/account or whatever it is for your server. If your token is right try visiting the url in your browser to make sure you get JSON (it sounds like the response is HTML).
Try this url, with the right hostname and token:
https://gitlab.com/api/v3/projects?private_token=<private_token>

Thanks, your url works perfectly.
But when run my Java console application, I still get the following exception:
Exception in thread "main" org.gitlab.api.GitlabAPIException
at org.gitlab.api.http.GitlabHTTPRequestor.handleAPIError(GitlabHTTPRequestor.java:361)
at org.gitlab.api.http.GitlabHTTPRequestor.to(GitlabHTTPRequestor.java:149)
at org.gitlab.api.http.GitlabHTTPRequestor.to(GitlabHTTPRequestor.java:119)
at org.gitlab.api.GitlabAPI.getCurrentSession(GitlabAPI.java:1519)
at git2jira.UpdateIssues.main(UpdateIssues.java:21)
Caused by: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: Request RejectedThe requested URL was rejected. Please consult with your administrator.Your support ID is:<PHONE_NUMBER>040045049; line: 1, column: 2]
at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1487)
at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:518)
at com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(ParserMinimalBase.java:447)
at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._handleOddValue(ReaderBasedJsonParser.java:1461)
at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:683)
at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:3602)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3547)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2578)
at org.gitlab.api.http.GitlabHTTPRequestor.parse(GitlabHTTPRequestor.java:325)
at org.gitlab.api.http.GitlabHTTPRequestor.to(GitlabHTTPRequestor.java:147)

Thanks, your url works perfectly.
I also tried https://gitlab.com, it worked too.
But when access my own gitlab server, I still get the following exception. Is it because my gitlab server version too low or any other settings?(it works with python API)...
Exception in thread "main" org.gitlab.api.GitlabAPIException
at org.gitlab.api.http.GitlabHTTPRequestor.handleAPIError(GitlabHTTPRequestor.java:361)
at org.gitlab.api.http.GitlabHTTPRequestor.to(GitlabHTTPRequestor.java:149)
at org.gitlab.api.http.GitlabHTTPRequestor.to(GitlabHTTPRequestor.java:119)
at org.gitlab.api.GitlabAPI.getCurrentSession(GitlabAPI.java:1519)
at UpdateIssues.main(UpdateIssues.java:21)
Caused by: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: Request RejectedThe requested URL was rejected. Please consult with your administrator.Your support ID is:<PHONE_NUMBER>041517243; line: 1, column: 2]
at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1487)
at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:518)
at com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(ParserMinimalBase.java:447)
at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._handleOddValue(ReaderBasedJsonParser.java:1461)
at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:683)
at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:3602)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3547)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2578)
at org.gitlab.api.http.GitlabHTTPRequestor.parse(GitlabHTTPRequestor.java:325)
at org.gitlab.api.http.GitlabHTTPRequestor.to(GitlabHTTPRequestor.java:147)

I would think it would have to be either a setting on your GitLab server or possibly the version? I'm not sure, I've never ran into those issues. I feel like if the URL works in your browser then it should work in the Java code.
What version of GitLab do you have?

I am using GITLAB 6.
Not sure why URL works but API does not work

The invalid SSL cert should not be the issue:
https://github.com/timols/java-gitlab-api/blob/master/src/main/java/org/gitlab/api/http/GitlabHTTPRequestor.java#L367
I think @timols will have to help you here, I don't have any insight for you. Sorry!

You can create a new user in https://git-lenovo.hybris.hec.ondemand.com/ and test the API.
@rockwotj @timols I had tried days, the site itself might have issues but I could not figure it out.

This is the data that I'm getting back from the HTTP request and this is the URL it's requesting: https://git-lenovo.hybris.hec.ondemand.com/api/v3/projects. But again, it works from the browser.
Have you checked the GitLab logs?

    <title>Request Rejected</title>

              The requested URL was rejected.
              Please consult with your administrator.

              Your support ID is:<PHONE_NUMBER>045212184

Sorry, I have no access to GitLab logs.
I am really confused, URL in browser works, Python API also works.
Did I missing something in my code or settings in GitLab?

I can't think of a settings issue. I'd have to look at the difference between the Python API and the Java client to see the difference

Now I even suspect this error message was sent from the proxy, not Gitlab server.
Could someone help check if GitlabAPI could access https://git-lenovo.hybris.hec.ondemand.com?

@rockwotj @timols the root cause has been found: remote Gitlab server requires valid browser(user-agent) information.
We need to check how Python overcomes this restriction.

You should be able to set the User-Agent header here.

Thanks, issue has been resolved.


fix: rm redundant ForwardAgent config in ssh config

Signed-off-by: Keming<EMAIL_ADDRESS>

Why it's redundant?

Why is it redundant?

Duplicated with https://github.com/tensorchord/envd/blob/dc5cbfa9ba7e100b8828dfc47310169ddb5dbdb7/pkg/ssh/config/entry.go#L79


update references

Codecov Report
Patch and project coverage have no change.

Comparison is base (be8c426) 92.88% compared to head (8ffb550) 92.88%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #107   +/-   ##
=======================================
  Coverage   92.88%   92.88%
=======================================
  Files           4        4
  Lines         253      253
=======================================
  Hits          235      235
  Misses         18       18

Files Changed
Coverage Δ

compotime/models.py
91.78% <ø> (ø)

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


An attempt to fix docs to prevent "item.code not found in context"

When following the README I got an error.
lazy.codes on  zola-deep-thought [$!+?]
❯ zola build
Building site...
-> Creating 1 pages (0 orphan), 1 sections, and processing 0 images
Failed to build the site
Error: Failed to render section '/home/ethan/Documents/git/eopb/lazy.codes/content/_index.md'
Reason: Failed to render 'index.html' (error happened in a parent template)
Reason: Variable `item.code` not found in context while rendering 'index.html'

When I add code = "en" to navbar_items that solves the issue.

What is the Zola version you are using ?

❯ zola --version
zola 0.13.0

@eopb Thanks


When I try to run the command for SAS its showing the following error

[Enter feedback here]
sas=$(az snapshot grant-access --resource-group $resourceGroupName --name $snapshotName --duration-in-seconds $sasExpiryDuration --query [accessSas] -o tsv)
The term 'sas=$(az snapshot grant-access --resource-group $resourceGroupName --name $snapshotName --duration-in-seconds $sasExpiryDuration --query [accessSas] -o tsv)' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 85e5a6e7-7369-17d2-faa6-79ac1100d3bb
Version Independent ID: b411c6c4-2fbb-46c4-6df8-be39168ef433
Content: Copy a snapshot to a storage account in another region using the CLI - Azure Virtual Machines
Content Source: articles/virtual-machines/scripts/copy-snapshot-to-storage-account.md
Service: azure-disk-storage
GitHub Login: @ramankumarlive
Microsoft Alias: ramankum

I am running the command in cloudshell

@nidiculageorge
Thanks for your feedback! We will investigate and update as appropriate.

@nidiculageorge
It looks like you are encountering an error when running the command sas=$(az snapshot grant-access --resource-group $resourceGroupName --name $snapshotName --duration-in-seconds $sasExpiryDuration --query [accessSas] -o tsv) in the script provided in the Azure documentation.
This error message suggests that the command is not recognized as a valid cmdlet, function, script file, or executable program. This could be due to a few different reasons, such as:

The Azure CLI is not installed on your machine or is not in your system's PATH environment variable.
The command is being run in a shell that does not support the syntax used in the script (e.g. PowerShell vs. Bash).
There is a syntax error or typo in the command.

To troubleshoot this issue, I would recommend the following steps:

Make sure that the Azure CLI is installed on your machine and is up to date. You can download the latest version of the Azure CLI from the official website: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli

Open a new shell (e.g. Bash, PowerShell) and try running the command again. Make sure that you are running the command in the correct shell and that the syntax is correct.

Check for any syntax errors or typos in the command. Double-check that all variables are defined and have the correct values.

I hope this helps! Let me know
If there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation. or
For an issue like this, I'd recommend you create a support ticket since the support team will be able to respond much more quickly and have a conversation with you to figure out what could be going on.


duo admin rules

Background
rules/duo_rules/duo_admin_mfa_restrictions_updated.py
Duo admin MFA restrictions updated
rules/duo_rules/duo_admin_sso_saml_requirement_disabled.py
Duo Admin SSO Requirement Disabled
rules/duo_rules/duo_admin_user_mfa_bypass_enabled.py
User MFA Bypass Enabled
Testing
Duo.Admin.MFA.Restrictions.Updated
[PASS] Admin MFA Update Event
[PASS] [rule] true
[PASS] [title] Duo Admin MFA Restrictions Updated by [Homer Simpson]
[PASS] [dedup] Duo Admin MFA Restrictions Updated by [Homer Simpson]
[PASS] [alertContext] {"action": "update_admin_factor_restrictions", "description": "{"allowed_factors": "Duo mobile passcodes, Hardware tokens, Duo push, Yubikey aes"}", "username": "Homer Simpson", "timestamp": "2022-02-21 21:48:06"}
[PASS] Login Event
[PASS] [rule] false
Duo.Admin.SSO.SAML.Requirement.Disabled
[PASS] Enforcement Disabled
[PASS] [rule] true
[PASS] [title] Duo: [Homer Simpson] changed SAML authentication requirements for Administrators to [disabled]
[PASS] [dedup] Duo: [Homer Simpson] changed SAML authentication requirements for Administrators to [disabled]
[PASS] [alertContext] {"action": "admin_single_sign_on_update", "description": "{"enforcement_status": "disabled"}", "username": "Homer Simpson", "timestamp": "2021-10-12 21:29:22"}
[PASS] Enforcement Optional
[PASS] [rule] true
[PASS] [title] Duo: [Homer Simpson] changed SAML authentication requirements for Administrators to [optional]
[PASS] [dedup] Duo: [Homer Simpson] changed SAML authentication requirements for Administrators to [optional]
[PASS] [alertContext] {"action": "admin_single_sign_on_update", "description": "{"enforcement_status": "optional"}", "username": "Homer Simpson", "timestamp": "2021-10-12 21:29:22"}
[PASS] Enforcement Required
[PASS] [rule] false
[PASS] SSO Update
[PASS] [rule] false
Duo.Admin.User.MFA.Bypass.Enabled
[PASS] Account Active
[PASS] [rule] false
[PASS] Account Disabled
[PASS] [rule] false
[PASS] Bypass Enabled
[PASS] [rule] true
[PASS] [title] Duo: [Homer Simpson] updated account<EMAIL_ADDRESS>to not require two-factor authentication.
[PASS] [dedup] Duo: [Homer Simpson] updated account<EMAIL_ADDRESS>to not require two-factor authentication.
[PASS] [alertContext] {"action": "user_update", "description": "{"status": "Bypass"}", "username": "Homer Simpson", "timestamp": "2021-10-05 22:45:33"}
[PASS] Phones Update
[PASS] [rule] false

Using this branch to add more duo detections.


Cluster members cannot create any projects as the save option is not disabled

Rancher v2.6-head 723f747

create a downstream rke2 node driver DO cluster 1 node all roles.
Create a user u1 and add the user to the above cluster as cluster member
From explore cluster --> Project/namespaces -->  click on create and provide the details --> create option is disabled

Expected result:
Project members should be able to create projects in a cluster
Additional info:

If we create a project from ember UI as the same user u1
Go to dashboard and the create option is enabled for the users.

Reference screenshots:

Duplicate of https://github.com/rancher/dashboard/issues/3756


[267] Tidy & slim schema transformations

Related to #267, which isn't closed until #280 is addressed (which is the base of this branch).

[x] Prune deprecated schema transformations
[x] Only one ontology per dataset (no project specific ontologies)
[x] Tidy directory naming, and refactor references accordingly
[x] Add entity_type to new dataset ontologies
[x] Remove unused ontologies from tier_1.json (renamed ontology.json)
[x] Add tests to ensure ES mappings are both self-consistent and consistent with the slimmed schema transformations
[x] Rollback any inadvertently changed json files, unrelated to this PR
[x] Confirm all new mappings and old mappings are equivalent, then prune old mappings
[x] Spawn PR #282 to iterate on dev pipeline validation

@mindrones
For the review, could you please consider any file under nesta/core/schemas/tier_1/. All other changes are in the python code to reflect corresponding simplifications in the directory and config structure.


fix($typescript): Fix typo in TypeScript definition file

Noticed a small typo in index.d.ts - Recrod -> Record.
For now I'm using this as a workaround:
type Recrod<K extends string, T> = Record<K, T>;

but it would be nice to get this fixed :)

@faceyspacey pleaaase merge this :)

thanks!


Create switching to Typescript section

Preview here

@B4nan did you get a chance to review? Or are you prioritizing Crawlee release? That's fine, just say so and we'll launch it and can improve it later.

@B4nan did you get a chance to review? Or are you prioritizing Crawlee release? That's fine, just say so and we'll launch it and can improve it later.

@mnmkng He added a small review comment, along with @metalwarrior665. I made the fixes. Do you think it's ok to merge?


Exceptions during write transactions in extensions will make other processes "hang"

If our WatchKit extension crashes while a write transaction is open, the lock is never released. Our main app then hangs. Is this a known/expected issue?

I believe this is to be expected, as we're using a pthread_mutex under the hood, which is not robust against crashing processes.

Yes, this is expected. POSIX has robust mutexes that support recovering from a process crashing while the mutex is locked, but Apple hasn't implemented them. We've looked into some workarounds, but we haven't found any particularly reliable options. The mutex is recreated when a Realm file is opened and no other threads/processes have it opened already.

#2169 should resolve this.

Only very partially. There's a lot of ways for a process to crash other than an uncaught exception.

@tgoyne, do you recall what workarounds we looked at for this?

The ideas I remember are storing the pid of the locking process and doing ~something~ if a process with that pid doesn't exist, using flock() for the write lock rather than a mutex, and using a named pipe rather than a mutex.

Moved to P2 because we don't think we can resolve this in the short term, along the same level of priorities as the rest of our P1 issues.

That's unfortunate – an enable-able workaround would be an ideal solution for our use case. I'm not sure how hard it would be to get an alternate locking system to work reliably, but I would definitely enable "slightly slower, but more robust" locking.
 Granted, it's rare, but we do get support emails about it.

Out of the options @tgoyne mentions, flock seems most directly suited to this purpose. I can't see any obvious downsides to it, except the potential for worse performance compared with our current use of mutexes.

I use flock to great success in mixpanel-simple and WFNotificationCenter, it seems like a great candidate.
While flock handles the case in which the process is terminated, it doesn't handle the case in which the process is suspended with the lock acquired, but, alas, nothing handles that… :(

@jpsim @bdash Unfortunately this issue is seriously affecting some of our users. Is it possible to switch to flock, perhaps as an option in the RLMConfiguration (if you are concerned about the performance drawbacks compared to the mutex)?
We would be happy to work on this, but it looks like this functionality is in the Realm core and not in this repo, unless I missed it?

You're correct that the relevant functionality lives in Realm's core rather than at the Cocoa level.

Ahh, got it. What do you think is the best way forward here? We would gladly pay for Realm's consulting services if it meant we could get this implemented.

Moving back to P1 since now there's a clear path to resolution and thanks to @conradev and @AriX sharing how important it is to them.

Work on a more robust interprocess locking mechanism is underway in Realm's core.

Thanks for the update, Mark!

Realm core has landed a robust mutex implementation based on file locks. This change will make it into a core release in the near future, where it can then be picked up in realm-cocoa.

🎉🎉🎉 Can't wait to see this release! This will be very helpful to our users. We've partially solved the issue since we last discussed this (by minimizing the number of write transactions that occur and fixing certain crashes that might interrupt them), but it still happens at times -- this solution will be great for our affected users.
Many thanks!

This was part of v0.101.

Amazing - thank you so much! Very excited to get this out to people.


tail: \t: No such file or directory & tr prints usage info

Operating system and version: MacOS 14.6.1
nvm debug output:

tail: \t: No such file or directory     ⎫
usage: tr [-Ccsu] string1 string2       ⎪      tr shows up five times in nvm.sh,
       tr [-Ccu] -d string1.            ⎪      but only the one at line 2970 gets
       tr [-Ccu] -s string1.            ⎪      the same result when run on the
       tr [-Ccu] -ds string1 string2.   ⎪      command line.
tail: \t: No such file or directory.    ⎪
usage: tr [-Ccsu] string1 string2.      ⎪
       tr [-Ccu] -d string1             ⎬      tail is present in the file ten times,
       tr [-Ccu] -s string1             ⎪      but I could not get a relevant result
       tr [-Ccu] -ds string1 string2.   ⎪      running it outside of the scope of the
usage: tr [-Ccsu] string1 string2.      ⎪      file.
       tr [-Ccu] -d string1             ⎪
       tr [-Ccu] -s string1             ⎪
       tr [-Ccu] -ds string1 string2.   ⎪
tail: \t: No such file or directory.    ⎭
nvm --version: v0.40.1
$TERM_PROGRAM: iTerm.app
$SHELL: /opt/local/bin/zsh
$SHLVL: 1
whoami: 'johnnyamos'
${HOME}: /Users/johnnyamos
${NVM_DIR}: '${HOME}/.config/nvm'
${PATH}: ${NVM_DIR}/versions/node/v20.17.0/bin:${HOME}/.local/bin:${HOME}/.local/perls/perl-5.40.0/bin:/opt/local/bin:/opt/local/sbin:/opt/local/lib/ImageMagick7/bin:${HOME}/.cabal/bin:${HOME}/.cargo/bin:/Applications/iTerm.app/Contents/Resources/utilities:/opt/R/arm64/bin:${HOME}/Library/Python/3.12/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin
$PREFIX: ''
${NPM_CONFIG_PREFIX}: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'zsh 5.9 (arm-apple-darwin23.2.0)'
uname -a: 'Darwin 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:16:46 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T8112 arm64'
checksum binary: 'shasum'
OS version: macOS 14.6.1 23G93
awk: /usr/bin/awk, awk version 20200816
curl: /opt/local/bin/curl, curl 8.9.1 (aarch64-apple-darwin23.2.0) libcurl/8.9.1 OpenSSL/3.3.2 zlib/1.3.1 brotli/1.1.0 zstd/1.5.6 libidn2/2.3.7 libpsl/0.21.5 nghttp2/1.63.0
wget: not found
sed: /usr/bin/sed
cut: /usr/bin/cut
basename: /usr/bin/basename
rm: /bin/rm
mkdir: /bin/mkdir
xargs: /usr/bin/xargs
git: /opt/local/bin/git, git version 2.46.1
grep: /usr/bin/grep, grep (BSD grep, GNU compatible) 2.6.0-FreeBSD
nvm current: tail: \t: No such file or directory
usage: tr [-Ccsu] string1 string2
       tr [-Ccu] -d string1
       tr [-Ccu] -s string1
       tr [-Ccu] -ds string1 string2
v20.17.0
which node: ${NVM_DIR}/versions/node/v20.17.0/bin/node
which iojs: iojs not found
which npm: ${NVM_DIR}/versions/node/v20.17.0/bin/npm
npm config get prefix: ${NVM_DIR}/versions/node/v20.17.0
npm root -g: ${NVM_DIR}/versions/node/v20.17.0/lib/node_modules

nvm ls output:

How did you install nvm?

What did you expect to happen?
I expected not to see the messages.
Is there anything in any of your profile files that modifies the PATH? Yes.

Do you have any aliases for tail or tr set up?

No.

Can you share anything from your profile file that might be relevant? Maybe something in your prompt?

I found the problem. I have an alias for tail that I forgot about because I don't use it frequently. I have removed it.

alias -g t='| tail'

Thanks.

Indeed, and that's a zsh global alias, which there's no way to override. Glad you figured it out.


Modal display called in ionViewDidEnter shows twice

Short description of the problem:
I had a problem previously reported in #6062 whereby a modal was displaying twice when called in ionViewDidEnter: immediately after dismissing it, it would show again. And after dismissing it a second time it would hide.
@jgw96 very kindly showed an altered Plunker which suggested I check the NavController's length() property to ensure it's !== 2 before proceeding (check previous issue with said Plunker).
However, in<EMAIL_ADDRESS>we now present modals using a ModalController which means we have lost the ability to check the length and as a result, the bug has crept back in.
Help! 😅
What behavior are you expecting?
A modal is appearing twice, immediately being shown after being dismissed the first time. I am expecting it to remain hidden after displaying the first time and dismissing it.
Steps to reproduce:

Clone the following repository: https://github.com/kelvindart/ionic-modal
Add the iOS platform via ionic platform add ios (at the time this is 4.2.0)
Run it in an emulator (I ran it in an iOS 9.3 emulator, i.e. the latest)
Observe the modal displaying, dismiss it and observe it displaying again.
Dismiss the modal and observe it no longer displaying it.

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
Check my repository of the uploaded code (unfortunately I could not find a Ionic 2 beta 11 Plunker template): https://github.com/kelvindart/ionic-modal
Clone this, and add the platform as per the replication steps above and observe!
Which Ionic Version? 2.0.0-beta.11
Plunker that shows an example of your issue
As above - no Plunker but please reference the Git repo.
Run ionic info from terminal/cmd prompt: (paste output below)
Ionic Framework Version: 2.0.0-beta.11
Ionic CLI Version: 2.0.0-beta.37
Ionic App Lib Version: 2.0.0-beta.20
ios-deploy version: Not installed
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v4.4.1
Xcode version: Xcode 7.3.1 Build version 7D1014

Hello! Thanks for opening an issue with us! So, this is kind of embarrassing but i never hit freeze on the plunker after i changed it to a better solution and therefore you would not have been able to see it. I have since re-saved that plunker to show the correct solution for how to stop this from happening. Very sorry about that! If you use the solution now in that plunker everything will work fine. Thanks!

Nice - thanks @jgw96 😄! Just after a brief explanation - but why do we disable fireOtherLifecycles when displaying a modal? I.e., what other lifecycles are interfering and causing it to close?
Thanks so much for your help dude 😁 - I really appreciate it.

No problem at all 😃 ! So because you are opening your modal in ionViewDidEnter the modal was originally opening twice because fireOtherLifecycles makes whatever you are pushing onto the nav stack (a modal in this case) fire the lifecycle events of the page its being pushed from. Therefore when the page is loaded ionViewDidEnter fires (like it should) and opens the modal. Then, when the modal opens it causes ionViewDidEnter to be fired again on the main page your opening the modal from, therefore opening the modal a second time. Hope all that makes sense!

That does! Perfectly explained and that helps huge amounts for understanding - thanks so much @jgw96! 😃

No problem! Glad to help! Have fun on your Ionic 2 adventures 😃

Hey @jgw96 - sorry to be a pain but can this be reopened? :(
There seems to be an issue using fireOtherLifecycles if your modal being presented has an ion-select; the ion-select is unusable unfortunately as you can't change the item nor confirm/cancel the box.

I also have a feeling this relates to my subsequent issue: #7948(?).

Hey @jgw96 - just curious, is it better to open a separate issue for the <ion-select>s?

@kelvindart sorry for the delay on this! Would you mind opening a new issue regarding your bug with ion-select? Thanks!

Hey @jgw96 - no worries! Awesome! Let me raise it now.
I will create another git repo, is there a preferred method to do provide an example (Plunker is out-of-date with beta 10 being its latest)? At least with Github you can clone/run on the emulator, etc.?

Good question! Preferred method at the moment to provide an example is either a code snippet or Github repo. The plunker is broken with beta.11 at the moment because of some issues with npmcdn. Also, it is usually much more efficient for me to test with a git repo than with a plunker (plunker is weird sometimes and can cause odd issues).

Awesome - that works perfectly for me too! Five more minutes and you should see it raised :). Thanks!

@jgw96 I realize this was a year ago, but I'm having the same issue in ionic 3. What is fireOtherLifecycles a method of? I've been trying to find it but can't seem to.


Add comparison operators for intrusive_ptr.

We need to add operator == that does pointer comparison.

Addressed in #379 and #374


[tlul, shim] Externalize Caliptra registers

Move Caliptra-internal registers to a separate module with its own DV interface and redirect shim requests to it.

@vogelpi Thank you for the review. Let's see whether the custom bus protocol has a name. :-)

CHANGE AUTHORIZED: hw/ip/tlul/rtl/tlul_adapter_shim.sv
CHANGE AUTHORIZED: hw/ip/tlul/rtl/tlul_adapter_vh.sv
This PR touches the TLUL - VH adapter which is expected and fine.


Add text for clarity to the article

Also added links for more info

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 🎉


Seperate C and CPP so that C code is compiled with gcc instead of g++

Seperate C and CPP so that C code is compiled with gcc instead of g++

**NOTE: ** Fix todo before mering!
Todo is found at: https://github.com/Jaagrav/CodeX-API/pull/10/files#diff-e727e4bdf3657fd1d798edcd6b099d6e092f8573cba266154583a746bba0f346R29


won't work if Craft "gqlTypePrefix" config is set.

Description
If you try to set "gqlTypePrefix" to "Craft_" on a working Craft + Gatsby implementation, you get:
"gatsby-source-craft" threw an error while running the createSchemaCustomization lifecycle:

Field "id" at path "RequiredEntryFields" has no parent type. This may indicate that your remote schema had changed and
your fragment "RequiredEntryFields" must be updated.

  524 |     const schema = await getSchema();
  525 |     const gatsbyNodeTypes = await getGatsbyNodeTypes();
> 526 |     const documents = await compileNodeQueries({
      |                             ^
  527 |         schema,
  528 |         gatsbyNodeTypes,
  529 |         customFragments: await collectFragments(),

File: node_modules/gatsby-source-craft/gatsby-node.js:526:29

Craft version: 3.7.22
PHP version: 8.0
Database driver & version: mysql
Plugins & versions: just this one

Interesting, I'll take a look!

Hi @andris-sevcenko, I would like to help with some code. I am a pretty decente js/ts developer, how can I help? Do you have a process/setup in place that you use to develop and test this plugin?
Thanks!

Okay, just pushed 69a00d7139879034b24c3f4bde4325fd0dd8ac17 to fix this and a release should follow today, too!
You will also need to update the Gatsby Helper plugin to version 1.0.9.

Also, in the future, you can just submit PRs without specifically asking permission - I don't have a "smart" build process or anything like that - just make changes, compile to JS and that's it :)
All testing currently is done via a "does it build?" test, unfortunately, as we don't have many resources dedicated to this plugin, currently,

@webrgp We'll publish a release for this tomorrow - I want to get some more stuff in the helper plugin and this plugin too, so that it's able to react better to nuances that differ between Craft versions. (see #59)

Just tested locally and with gatsby-starter-minimal and it works. The reason this particular issue is significant is because when writing queries in Gatsby that would work both at build and at the client (querying Craft's GraphQL API directly ) to reduce duplication.
In my specific project, I've set 'gqlTypePrefix' => 'Craft_' in Craft and typePrefix: "" in Gatsby, because I still need Craft's types and queries to be namespaces in Gatsby.

Spoken too early. All the assets types and interfaces lost localFile and when I consolo.log iface I get undefined at:
https://github.com/craftcms/gatsby-source-craft/blob/69a00d7139879034b24c3f4bde4325fd0dd8ac17/gatsby-node.js#L408

Sent pull request https://github.com/craftcms/gatsby-source-craft/pull/60


Don't automatically install fbsimctl

This seems intrusive to do that as a postinstall step, better ask that in the installation instructions, and throw exceptions on the postinstall step.

Also, recommend to use fbsimctl as an optional dependency, and fallback on regular ios simulator CLI

Regular iOS simulator CLI is not good to say the least. After investigating, I think we should keep the fbsimctl dependency. We may remove it from installing automatically, and require the users to install it themselves.

I think we should stop installing it automatically.. the installation isn't always working automatically due to brew flakiness.. you sometimes need to brew uninstall fbsimctl
let's add it to the readme and have people install manually and deal with the flakiness themselves

look at the strange errors it's giving me on post install:
Linking /usr/local/Cellar/fbsimctl/0.2.0...
Error: Could not symlink Frameworks/XCTestBootstrap.framework/Modules
Target /usr/local/Frameworks/XCTestBootstrap.framework/Modules
already exists. You may want to remove it:
  rm '/usr/local/Frameworks/XCTestBootstrap.framework/Modules'

To force the link and overwrite all conflicting files:
  brew link --overwrite fbsimctl

To list all files that would be deleted:
  brew link --overwrite --dry-run fbsimctl

I prefer people google this stuff and handle it manually if it happens

Why didn't the script figure out fbsimctl is already installed? We have checks for that.

Also 0.2.0 is old. There is 0.2.2 out already

I had to brew update and fix several brew issues since the Sierra upgrade was pretty rough on brew
I installed 0.2.2 now.. but still.. you need to fiddle with brew
I prefer users will do it on their own so they can google issues there and not open issues for postinstall problems

Yes, if you didn't maintain your brew installation, it causes issues. I agree about not installing fbsimctl, however in postinstall we must verify that fbsimctl is not installed and at the very least issue a colorful warning to let the user know.

done in v5. updated docs.


docs: add a proposal for periodic retrieval

Description
What this PR does / why we need it:

Which issue(s) this PR fixes (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged):
This is the proposal for issue https://github.com/deislabs/ratify/issues/1131
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Helm Chart Change (any edit/addition/update that is necessary for changes merged to the main branch)
[ ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration

[ ] Test A
[ ] Test B

Checklist:

[ ] Does the affected code have corresponding tests?
[ ] Are the changes documented, not just with inline documentation, but also with conceptual documentation such as an overview of a new feature, or task-based documentation like a tutorial? Consider if this change should be announced on your project blog.
[ ] Does this introduce breaking changes that would require an announcement or bumping the major version?
[ ] Do all new files have appropriate license header?

Post Merge Requirements

[ ] MAINTAINERS: manually trigger the "Publish Package" workflow after merging any PR that indicates Helm Chart Change

Hi @duffney, Yi's have proposed the desired experience for KMP refresh. Please review and comment, thanks!

Thanks @susanshi @bureado @binbin-li @akashsinghal for comments. I am updating the PR now  and will ask for another round of review soon.

@susanshi @bureado @binbin-li @akashsinghal @shizhMSFT @duffney would you mind reviewing this PR again. We can walk through the comments during community meetings. I updated this PR by adding comparison for various KMS, and add a section for proposed solutions by comparing two methods.

@yizha1 have we thought about scenarios where a user misconfigures the certificate permissions or provides the wrong reference. In this case, how should Ratify respond? Should it immediately start to fail signature validation or do we need some sort of "pre check" so that a misconfiguration doesn't accidentally block resource creation. OR is it ok if user errors results in potential resource creation blocking.

@susanshi @akashsinghal would you mind reviewing this PR again?


Fix vol2mesh and use newer PolyData filters

The vol2mesh source files I copied from Robert are modified by me to compile with VTK 6 and this new version of IRTK. These changes seem to have messed with the code and the vol2mesh tool is not actually functional. Also, Robert has made small improvements to his code since I copied them. A proper integration of the vol2mesh tool should be done together with Robert (either as a separate Package or as part of the PolyData module). The vol2mesh tool further uses Robert's irtkRemeshing filter (slightly modified by me), whereas I since added a newer implementation named irtkPolyDataRemeshing. This implementation should be used by vol2mesh, with the proper settings/modifications to achieve the same result as the irtkRemeshing filter would give. Also, the new irtkPolyDataSmoothing filter could be of interest to remove some "copy-and-pasted" code from irtkVolumeToMesh.

The files copied from Robert are (excl. .h/.cc extension):

vol2mesh
irtkVolumeToMesh
irtkParticleSampleSphere
irtkSphereQuadrisect

The irtkParticleSampleSphere (which uses irtkSphereQuadrisect) implementation is definitely general purpose and should remain in the PolyData module, but requires a bit of refactoring to fit in nicely with the other PolyData filters in this module.

Feel free to assign yourself to this issue and propose a PR for it. Seems that you are already have a nice solution in mind.

As mentioned, these source files are not from me. They have been written by Robert who should be involved in integrating his command-line tool into IRTK (possibly as optional package). I just think that irtkParticleSampleSphere could be of general interest and thus be integrated into the PolyData module. But this is not a task I will take care of. Also, as the PolyData module is part of the core libraries, it's functionality should be used by Packages instead. Thus, irtkVolumeToMesh should utilise the PolyData filters where possible. Again, not something on my agenda. I can assist in modifying those filters I wrote if needed, but I will not make vol2mesh fit for release. I am developing my own tools with a broader range of applications for this. As of now, vol2mesh works pretty well and is a crucial part of the dHCP pipeline. Thus, it will need to be available as part of IRTK sooner or later. But again, not on my agenda... you should talk to Robert who wrote the code to help him integrate it into IRTK.

So just to summarize, the appropriate solution should be to move:

vol2mesh
irtkVolumeToMesh
irtkParticleSampleSphere
irtkSphereQuadrisect

out of PolyData and discuss with Robert to make it a separate package.

Well, the vol2mesh tool kind of yes. But irtkParticleSampleSphere (and thus also irtkSphereQuadrisect as it is used by that class only) would be nice to have in the PolyData library as it would also be useful for other tools. But with only 2 source files left, I just don't know if it is worth making a separate package for it, though I somewhat feel like it should be. But when the code would be refactored the irtkVolumeToMesh file could also become a nice filter that takes a segmentation image as input and produces a genus-0 surface mesh as output.

In any case, right now I would remove those files. Then you can coordinate with Robert how to best integrate his tool.


Account Creation Page

To Do: Build an account creation system for the site
Notes:

High Priority

Creating an account will allow users to log in and access all the features of the website

Included in initial sprint so users can sign up once the site is launched

Size: Large
User Story: Creating a Profile

Branch Name: account-creation-page

Added a Bootstrap form to the page for users to sign up for an account

Will eventually need to complete the system to store user names and information and add more styling


Create new route table denying all access

User Story
As a modernisation platform engineer I require a new root table to deny all access to the system. It should be called block-all-access and will be <IP_ADDRESS>/0 - deny.
The best way to do this is follow this code from terraform - you can send restricted access to a "blackhole".
              _resource "aws_ec2_transit_gateway_route" "example" {
              destination_cidr_block         = "<IP_ADDRESS>/0"
              blackhole                      = true
              transit_gateway_route_table_id = aws_ec2_transit_gateway.example.association_default_route_table_id
              }_

Value / Purpose
This ties into #6108 and will be used for all environments which are being attacked.
Additional Information
Currently (16.02.2024) there are a lot of environments that require amendment. It is suggested that the TGW is removed - after noting its current name - and this option is to restrict other access.
Proposal / Unknowns
This has not really been tested so we are assuming it will be a "quick-win" if we need to limit access to the accounts.
Definition of Done

[ ] Documentation has been written (in progress)/amended
[ ] README has been updated
[ ] User docs have been updated were necessary
[ ] Another team member has reviewed
[ ] Tests are green

Closed as not required


Add live-reload for go files

This is a minimization of the changes from https://github.com/mikestefanello/pagoda/pull/2. I've used this template for quite a few other projects and these changes are always the first update I make to the project, so I figured others may find them useful as well.
The main change here is the live-reloading of any changed .go files, triggering the auto rebuild and rerun of the web app running in docker compose. This is achieved via https://github.com/cosmtrek/air.

This is now a bit outdated so I'm going to close. I don't use air, but If you're interested in re-opening, I would be fine including support for it.


HTML Element within Capture breaking syntax highlighting

The following is breaking the syntax highlighting:
{% capture test %}

Hello

{% endcapture %}

@reggi sorry for a late reply recently took up the mantle so if you are still facing the problem can you give a reply? a yes or no would suffice

Looks good now. Free to close.


MXIdentityService: failed on checkAPIVersionAvailability

The fallback to v1 based on 404 error code failed because the id server return 403 (forbidden)

Closed this should be fixed on server side


[QUESTION] Writing complete random data to the disk using DiskSpd

To begin with, this is not a bug , but rather a question - posting it here, since I could not find other way to reach out to the community
I'm trying to test the I/O workload on a Disk which has de-duplication enabled.When I am using diskspd with complete random write workload for 5 minutes (### diskspd.exe -r -w100 -Sh -d300 ### ) on this disk,  the data is getting de-duped.
(and I do not want to switch-off dedup on this disk, as my test requires to be on)
I'm trying to find if diskspd generates complete random and unique data, so that the de-dup will not be performed - Any help here is highly appreciated.
Thanks.

You can use the -Z<size> option which is documented under the Command line and parameters section to achieve what you want. Also, issue #126 goes into more detail on using the option.

Thank you @DanPear for your inputs - I started using -Z option and seeing the dedup not kicking in.
I do have  one more question - Should I try to set the size value in the -Z parameter according to the size of the disk? In other words, if I allocate more size for -Z , will I get more random data?
Thank you.

-Z specifies the size of a memory buffer, random filled, randomly sampled from at 512B boundaries for write source buffers.
We would generally expect < 50MB to be enough, but it all depends on the aggressiveness of your dedup subsystem. If you find yourself actually needing large amounts to defeat the dedup (>500MB might be a good break point), consider the -Zr option which uses an inexpensive randomizer to generate per-IO random buffer fill. While its inexpensive it does come at a detectable CPU cost to be aware of.
From: Krishna<EMAIL_ADDRESS>Sent: Monday, April 27, 2020 10:31
To<EMAIL_ADDRESS>Cc<EMAIL_ADDRESS>Subject: Re: [microsoft/diskspd] [QUESTION] Writing complete random data to the disk using DiskSpd (#137)
Thank you @DanPearhttps://github.com/DanPear for your inputs - I started using -Z option and seeing the dedup not kicking in.
I do have one more question - Should I try to set the size value in the -Z parameter according to the size of the disk? In other words, if I allocate more size for -Z , will I get more random data?
Thank you.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/diskspd/issues/137#issuecomment-620126758, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACCWSKLT6CE6CRLDSAHABATROW6PRANCNFSM4MPYRMYQ.

The -c option appears to create highly compressible files.
I found that on ZFS with LZ4 a 2GB test file is 65MB on disk.
I tried combining -Zr with -c, but it does not appear to make a difference.
In my own tests I create my test files using per write random buffers, e.g. a 64GB file is ~64GB on disk.
I know for COW this does not really matter for write tests, but it does matter for read tests such that IO is performed for read not just decompression.

Generally, the recommendation will be to pre-season a created file with a data pattern appropriate to workload in cases like this. This means running a load on the file ahead of the measured run with the desired data pattern (-Z). I suspect you ran load for a relative brief period of time and did so from an administrative context – if you ran longer (more file coverage), it would be pretty surprising if -Zr could be trivially defeated.
DISKSPD will create the file in one of two initial states depending on the privilege of the invoking user/session.

Non-Administrator: a “WARNING” message will be shown (below, from IORequesteGenerator.cpp), and the file will be written sequentially through with the default byte pattern of 0x00 0x01 0x02 … 0xff repeating.

Administrator: no WARNING or other output, and the file will be created with the valid data length (VDL) set at EOF (see SetFileValidData)
{
PrintError("WARNING: Could not set valid file size (error code: %u); trying a slower method of filling the file"
" (this does not affect performance, just makes the test preparation longer)\n",
GetLastError());
fSlowWrites = true;
}

These two cases are indeed somewhat dated functionally, when most storage was rotating HDD without additional drive metadata – the goal was a quick way of guaranteeing device media access, without the filesystem overhead of VDL extension. It requires more awareness for SSD and compressing storage systems.
So, as admin context DISKSPD would create an effectively zero-fill file and with a brief run a limited amount of data would be placed into it.
Let me know if this doesn’t explain it, and if so what your command line invocation(s) are.
From: Pieter<EMAIL_ADDRESS>Sent: Monday, May 25, 2020 08:11
To<EMAIL_ADDRESS>Cc: Dan<EMAIL_ADDRESS><EMAIL_ADDRESS>Subject: Re: [microsoft/diskspd] [QUESTION] Writing complete random data to the disk using DiskSpd (#137)
The -c option appears to create highly compressible files.
I found that on ZFS with LZ4 a 2GB test file is 65MB on disk.
I tried combining -Zr with -c, but it does not appear to make a difference.
In my own tests I create my test files using per write random buffers, e.g. a 64GB file is ~64GB on disk.
I know for COW this does not really matter for write tests, but it does matter for read tests such that IO is performed for read not just decompression.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/diskspd/issues/137#issuecomment-633616166, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACCWSKPIXD3SIQF2AA37AVLRTKDC5ANCNFSM4MPYRMYQ.

Thank you for the details.
I am doing synthetic benchmarks to test SMB performance, so no actual data file to test.
I ended up writing my own file prep code that will write random data, similar to how I expected -c and -Zr could work. This results in a file with on disk and logical sizes near equal on ZFS with LZ4.
As for SetfileValidData(), my understanding is that it will no zero fill the file, but use whatever data is already on disk, i.e. why the special SE_MANAGE_VOLUME_NAME privilege is required for it may expose previously discarded file data?
Anyway, that is not required on COW filesystems, where I simple seek and end of file is sufficient, so this does work over SMB without any special privileges:
        public static bool CreateRandomFilledFile(string name, long size)
        {
            try
            {
                // Create the file
                using FileStream stream = File.Open(name, FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite);

                // Set the file length, this has no real impact on COW filesystems
                stream.SetLength(size);
                stream.Seek(0, SeekOrigin.Begin);

                // Buffer with random data
                const int buffersize = 2 * Format.MiB;
                byte[] buffer = new byte[buffersize];
                Random rand = new Random();

                // Write in buffer chunks
                long remaining = size;
                while (remaining > 0)
                {
                    // Fill buffer with random data
                    rand.NextBytes(buffer);
                    // Write
                    long writesize = Math.Min(remaining, Convert.ToInt64(buffer.Length));
                    stream.Write(buffer, 0, Convert.ToInt32(writesize));
                    // Remaining
                    remaining -= writesize;
                }

                // Close
                stream.Close();
            }
            catch (Exception e)
            {
                ConsoleEx.WriteLineError(e);
                return false;
            }
            return true;
        }

        public static bool CreateSparseFile(string name, long size)
        {
            try
            {
                // Create the file
                using FileStream stream = File.Open(name, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.ReadWrite);

                // Set length
                stream.SetLength(size);

                // Close
                stream.Close();
            }
            catch (Exception e)
            {
                ConsoleEx.WriteLineError(e);
                return false;
            }
            return true;
        }

See: https://github.com/ptr727/DiskSpeedTest

It would indeed be nice if DISKSPD had a pre-writing mode similar to what you have here. In full form I would implement it similar to FIO’s loops option, which would allow simple seasoning per the SNIA SSD specs which suggest twice-through sequential rewrite prior to characterization.
The detail to be aware of is that -c only creates the file (always – it will delete/recreate an file) and leaves it in one of the two states I mentioned. Any data produced into it beyond that is due to measured runs. That means awareness of how much data in what pattern, etc. Since DISKSPD only works on time intervals – run for N seconds – we have to adjust to the rate at which data is being written in order to season effectively.
i.e., running for -b4k -r -d30 (seconds) will only have written a small amount of data.
Yes, you’re right, I was oversimplifying SetFileValidData. What its doing is removing the filesystem’s VDL protection against reading previously written data. What you get is dependent on device behavior when the sectors are read – that was my comment about device metadata. If its an SSD, TRIM is active or the SSD is in FOB state (fresh-out-of-box), it may be optimized zeroes w/o access to the media.
From: Pieter<EMAIL_ADDRESS>Sent: Tuesday, May 26, 2020 11:40
To<EMAIL_ADDRESS>Cc: Dan<EMAIL_ADDRESS><EMAIL_ADDRESS>Subject: Re: [microsoft/diskspd] [QUESTION] Writing complete random data to the disk using DiskSpd (#137)
Thank you for the details.
I am doing synthetic benchmarks to test SMB performance, so no actual data file to test.
I ended up writing my own file prep code that will write random data, similar to how I expected -c and -Zr could work. This results in a file with on disk and logical sizes near equal on ZFS with LZ4.
As for SetfileValidData(), my understanding is that it will no zero fill the file, but use whatever data is already on disk, i.e. why the special SE_MANAGE_VOLUME_NAME privilege is required for it may expose previously discarded file data?
Anyway, that is not required on COW filesystems, where I simple seek and end of file is sufficient, so this does work over SMB without any special privileges:
    public static bool CreateRandomFilledFile(string name, long size)

    {

        try

        {

            // Create the file

            using FileStream stream = File.Open(name, FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite);

            // Set the file length, this has no real impact on COW filesystems

            stream.SetLength(size);

            stream.Seek(0, SeekOrigin.Begin);

            // Buffer with random data

            const int buffersize = 2 * Format.MiB;

            byte[] buffer = new byte[buffersize];

            Random rand = new Random();

            // Write in buffer chunks

            long remaining = size;

            while (remaining > 0)

            {

                // Fill buffer with random data

                rand.NextBytes(buffer);

                // Write

                long writesize = Math.Min(remaining, Convert.ToInt64(buffer.Length));

                stream.Write(buffer, 0, Convert.ToInt32(writesize));

                // Remaining

                remaining -= writesize;

            }

            // Close

            stream.Close();

        }

        catch (Exception e)

        {

            ConsoleEx.WriteLineError(e);

            return false;

        }

        return true;

    }

    public static bool CreateSparseFile(string name, long size)

    {

        try

        {

            // Create the file

            using FileStream stream = File.Open(name, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.ReadWrite);

            // Set length

            stream.SetLength(size);

            // Close

            stream.Close();

        }

        catch (Exception e)

        {

            ConsoleEx.WriteLineError(e);

            return false;

        }

        return true;

    }

See: https://github.com/ptr727/DiskSpeedTest
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/diskspd/issues/137#issuecomment-634204991, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACCWSKMIARKXBJS5FDV7EWTRTQELNANCNFSM4MPYRMYQ.

Thanks @dl2n and @DanPear  for your answers and explanation

Closing old issue.


Editorial Workflow: Failed to persist entry: TypeError: r.has is not a function

Describe the bug

I recently enabled Editorial Workflow on my blog by following this link, once it's done, whenever I clicked the Save button on "Writing in Blog Collection" page, it throws an error:

Failed to persist entry: TypeError: r.has is not a function
Here is the screenshot

Also, the Big Green Publish button disappeared as well.
To Reproduce
Steps to reproduce the behavior. For example:

Go to the Publish Mode on this page

Add the publish_mode: editorial_workflow into your /admin/config.yml

Deploy to the live website

Go to the admin page of your website

Click the New Blog button

type anything in the new article

click Save button

you will see the error message

Here is my Github Repository for my blog:
https://github.com/franva/askwinston
Expected behavior

I am expecting my blog is saved as a draft but not published.
Screenshots

Applicable Versions:

Netlify CMS version: 2.9.6  # "netlify-cms-app": "^2.9.6",
netlify-cms-core 2.22.1
netlify-cms-app 2.11.31
Git provider: GitHub
OS: Windows 10
Browser version Firefox 76.0.1 (64-bit)

Node.JS version: v12.14.1

CMS configuration
See my cms config in my Github
or here
backend:
  name: git-gateway
  branch: master
  repo: franva/askwinston

  commit_messages:
    create: 'Create {{collection}} “{{slug}}”'
    update: 'Update {{collection}} “{{slug}}”'
    delete: 'Delete {{collection}} “{{slug}}”'
    uploadMedia: '[skip ci] Upload “{{path}}”'
    deleteMedia: '[skip ci] Delete “{{path}}”'

media_folder: static/img
public_folder: /img
publish_mode: editorial_workflow
local_backend: true

collections:
  - name: "blog"
    label: "Blog"
    folder: "src/pages/blog"
    create: true
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
    fields:
      - {label: "Template Key", name: "templateKey", widget: "hidden", default: "blog-post"}
      - {label: "Title", name: "title", widget: "string"}
      - {label: "Publish Date", name: "date", widget: "datetime"}
      - {label: "Description", name: "description", widget: "text"}
      - {label: "Featured Post", name: "featuredpost", widget: "boolean"}
      - {label: "Featured Image", name: "featuredimage", widget: image}
      - {label: "Body", name: "body", widget: "markdown"}
      - {label: "Tags", name: "tags", widget: "list"}

  - name: "pages"
    label: "Pages"
    files:
      - file: "src/pages/index.md"
        label: "Landing Page"
        name: "index"
        fields:
          - {label: "Template Key", name: "templateKey", widget: "hidden", default: "index-page"}
          - {label: Title, name: title, widget: string}
          - {label: Image, name: image, widget: image}
          - {label: Subheading, name: subheading, widget: string}
          - {label: Mainpitch, name: mainpitch, widget: object, fields: [{label: Description, name: description, widget: text}]}
          - {label: Intro, name: intro, widget: object, fields: [{label: Heading, name: heading, widget: string}, {label: Description, name: description, widget: text}, {label: Blurbs, name: blurbs, widget: list, fields: [{label: Image, name: image, widget: image}, {label: Text, name: text, widget: text}]}]}
          - {label: Main, name: main, widget: object, fields: [{label: Heading, name: heading, widget: string}, {label: Description, name: description, widget: text}, {label: Image1, name: image1, widget: object, fields: [{label: Image, name: image, widget: image}, {label: Alt, name: alt, widget: string}]}, {label: Image2, name: image2, widget: object, fields: [{label: Image, name: image, widget: image}, {label: Alt, name: alt, widget: string}]}, {label: Image3, name: image3, widget: object, fields: [{label: Image, name: image, widget: image}, {label: Alt, name: alt, widget: string}]}]}
      - file: "src/pages/about/index.md"
        label: "About"
        name: "about"
        fields:
          - {label: "Template Key", name: "templateKey", widget: "hidden", default: "about-page"}
          - {label: "Title", name: "title", widget: "string"}
          - {label: "Body", name: "body", widget: "markdown"}

Can you post the full error? You can check your browser's console for the full error and then post it here.

Hi @franva, I forked your repo and created a Netlify site from it.
I was able to create a new blog successfully, see PR:
https://github.com/erezrokah/askwinston/pull/3
As @HeyITGuyFixIt, it would be great if you can share the full error message from the browser console.
Also, I recommend updating to the latest version of the CMS

Morning @erezrokah thanks for your update.
I did check the full error message previously, but they were all generic message from all different uglified packages.
But the error seems gone after I cleaned other branches(because I saw in somewhere else people saying this fix worked for them)

Also, do you know is there any existing solution to have a background music in a blog?

Hi @franva, closing the issue as it is resolved.
As for your question as it is off topic for this issue I recommend asking in our community slack https://www.netlifycms.org/chat


Unit tests for assertions

Each of the assertions classes needs to have unit tests implemented for all methods and behaviours defined in that package.
Ideally we want the coverage on that package to hit 100%!

This one is almost complete now, there are a few classes left to test but those should be relatively simple.

All tests are now implemented for this package.


Changed doesUrlMatchPatterns and excludeDuplicatePatterns to accept lists properly

Right now, the example for doesUrlMatchPatterns in the readme is incorrect:
doesUrlMatchPatterns('https://google.com/', ['https://*.google.com/*', '*://example.com/*']);

This actually throws an error, because the function expects multiple string args, not a single list arg:
export function doesUrlMatchPatterns(url: string, ...matchPattern: string[]): boolean {

This PR modifies both doesUrlMatchPatterns and excludeDuplicatePatterns to accept any combination of list args, multiple string args, or both. So you can do any of:
doesUrlMatchPatterns('https://google.com/', ['https://*.google.com/*', '*://example.com/*']);
doesUrlMatchPatterns('https://google.com/', 'https://*.google.com/*', '*://example.com/*');
doesUrlMatchPatterns('https://google.com/', ['https://*.google.com/*'], '*://example.com/*');

Thank you for the fix! But I'd rather just pick one. Since this is mainly a documentation issue, let's just fix that


Checkers on integration-cli/docker_cli_commit_test

Applying #16756 to integration-cli/docker_cli_commit_test.go
Signed-off-by: Aditi Rajagopal<EMAIL_ADDRESS>

@aditirajagopal do you mind addressing @cpuguy83's comments?

@calavera will do, i'll have something up tomorrow morning

LGTM 🐹

LGTM


[BUG] Approval flow - All must approve always rejects

When setting approval type to All must approve the flow always set the outcome to reject.
Flow needs to include logic to verify response from all approvers

This was fixed with #16


deno support

it would be nice for this to happen :)
also found this

sorry for being ignorant, didnt check on the closed issues. Could you maybe mention support on the readme?

Good idea! Commit 46be7510bfb7bd61f31e4cac9817e477360ba0d0 mentions that Deno is supported and includes an example on how to import it.


Consider include a Well Know Text description of the CRS

(The origin of this entry is the CRS.DWG meeting in September 2020 but the need was discussed in CRS.DWG in Banff)
The idea is that CRS's evolve over time and the move. This means that the reference to a CRS id is not enough if you need that level of precision.
In practice providing an PROJ WKT entry (string) solves the problem as you can fully describe you CRS by yourself.
There is an emerging encoding alternative in JSON with some links documented here. But this will only work with we define the UML property as "any" and allow for a JSON object in the JSON encoding.
Here's what EPSG:32642 would look like in PROJJSON https://henzuru.io/v1/crs/EPSG/32642
https://proj.org/specifications/projjson.html
https://proj.org/schemas/v0.2/projjson.schema.json <-- openapi schema

This issue is related to https://github.com/opengeospatial/ogcapi-features/issues/333

In addition to that epoch, or any other information (The rotation coordinates?) or specific realizations, to deal with the CRS. (@jerome). Lets work with the CRS group for guidance.

Review the UML encoding and make that JSON uses PROJJSON and XML uses WKT.
For the JSON encoding we will use JSON schema for the JSON encoding and WKT for the XML.
https://proj.org/schemas/v0.2/projjson.schema.json
PROJJSON is a JSON encoding of WKT2:2019 / ISO-19162:2019, which itself implements the model of OGC Topic 2: Referencing by coordinates. Apart from the difference of encodings, the semantics is intended to be exactly the same as WKT2:2019.
https://proj.org/specifications/projjson.html

Now the wkt element of the CRS object is a PROJJSON object in the JSON encoding.


404 error on my activity

When pressed on my activity 404 not found error is occurring and also the full stack trace of error should not be displayed on the website, it should be surpassed. PFA

The activity feature is still a pending feature and I agree with you about the full stack error..
It is just for testing now...

It should be working now!
Thanks!


[Clang importer] Add correct path for shims

The shims are installed into the directory "shims" underneath the
resource directory, not the resource directory itself.
Fixes the Xcode project build.

@swift-ci please clean smoke test

This was a Bad Idea. I fixed the underlying problem with https://github.com/apple/swift/pull/11475


ignore - purely WIP CI testing: bump hex without changing location

WIP purely for CI testing to see if somehow #6037 unexpectedly broke this upgrade causing the CI failures in #6026

In case it has any relation to your investigation, I got a potentially related failure here: https://github.com/dependabot/dependabot-core/actions/runs/3393923229/jobs/5641835537.

Thanks for stopping by. That one doesn't match any failures I've observed previously, but I have seen intermittent download failures from the hex servers while trying to build the docker images, and that test failure looks very related... ie, a network flake could cause it. Given that its' a one-off failure, I suspect that's all it was in that case.

Root cause had nothing to do with this, it's explained here: https://github.com/dependabot/dependabot-core/pull/6026#issuecomment-1336276793


Ensure item.data is always present

Changes in PR:

Ensure item.data is always available in the template

Issue

https://github.com/euvl/vue-notification/issues/210

Sorry to bump this @euvl, but would be great to get this included!

Just a reminder to npm publish