FIX: Copy interface before running to prevent task mutation on run

Test still needed.

@jw-96 Do you happen to remember an interface that was changing hash before and after run? I can't remember how to create this condition to write a test.

I think it was due to the paths in the docker image, on which I run the workflow, being different to the paths on my system. However, I will rerun the workflow and check again.

Originally we had the problem with ApplyTransforms of Ants, but I did not get it again. However, for Normalize12 of SPM I get:
>>> t = load_task("/home/cache_part1_fix_chris_test2/Nipype1Task_d9baecc08957742c186ec5f8c5f1cbfe1b8f6624eae11dc73ef0222d54199afa/_task.pklz")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/pydra/pydra/engine/helpers.py", line 819, in load_task
    task = cp.loads(task_pkl.read_bytes())
  File "/opt/miniconda-latest/envs/fcbg38/lib/python3.8/site-packages/traits/has_traits.py", line 1341, in __setstate__
    self.trait_set(trait_change_notify=trait_change_notify, **state)
  File "/opt/miniconda-latest/envs/fcbg38/lib/python3.8/site-packages/traits/has_traits.py", line 1434, in trait_set
    setattr(self, name, value)
  File "/opt/miniconda-latest/envs/fcbg38/lib/python3.8/site-packages/nipype/interfaces/base/traits_extension.py", line 330, in validate
    value = super(File, self).validate(objekt, name, value, return_pathlike=True)
  File "/opt/miniconda-latest/envs/fcbg38/lib/python3.8/site-packages/nipype/interfaces/base/traits_extension.py", line 135, in validate
    self.error(objekt, name, str(value))
  File "/opt/miniconda-latest/envs/fcbg38/lib/python3.8/site-packages/traits/base_trait_handler.py", line 74, in error
    raise TraitError(
traits.trait_errors.TraitError: The 'image_to_align' trait of a Normalize12InputSpec instance must be a pathlike object or string representing an existing file, but a value of '/home/cache_part1_fix_chris_test2/Nipype1Task_d9baecc08957742c186ec5f8c5f1cbfe1b8f6624eae11dc73ef0222d54199afa/normalize2_con/sub-04_t1w_preproc.nii' <class 'str'> was specified.

With the directory looking like this:
root@a11df7db765e:/home/pydra-glm-example/pydra_version# ls /home/cache_part1_fix_chris_test2/Nipype1Task_d9baecc08957742c186ec5f8c5f1cbfe1b8f6624eae11dc73ef0222d54199afa/
normalize2_con	_result.pklz  _task.pklz
root@a11df7db765e:/home/pydra-glm-example/pydra_version# ls /home/cache_part1_fix_chris_test2/Nipype1Task_d9baecc08957742c186ec5f8c5f1cbfe1b8f6624eae11dc73ef0222d54199afa/normalize2_con/
_0x1befbbe3d820fb023e02fa5c28d41651.json  _node.pklz		  _report		      wcon_0001.nii  wcon_0003.nii  wcon_0005.nii  wcon_0007.nii  wess_0009.nii		   y_sub-04_t1w_preproc.nii
_inputs.pklz				  pyscript_normalize12.m  result_normalize2_con.pklz  wcon_0002.nii  wcon_0004.nii  wcon_0006.nii  wess_0008.nii  wsub-04_t1w_preproc.nii
root@a11df7db765e:/home/pydra-glm-example/pydra_version#

Does this pr address that?

I rerun my workflow again with this pull request and the above issue with loading the Normalize12 task does no longer occur.

Ah, right. Thanks for the reminder of how this was exhibiting.

Codecov Report
Base: 95.83% // Head: 96.00% // Increases project coverage by +0.16% :tada:

Coverage data is based on head (9b2ff04) compared to base (75b72f2).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #12      +/-   ##
==========================================
+ Coverage   95.83%   96.00%   +0.16%
==========================================
  Files           2        2
  Lines          24       25       +1
  Branches        3        3
==========================================
+ Hits           23       24       +1
  Partials        1        1

Impacted Files
Coverage Δ

pydra/tasks/nipype1/utils.py
95.45% <100.00%> (+0.21%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Fix bugs related to prescribe

PrescribeCommand has some bugs
They could lead to user confusion
Let's fix them

LGTM


Accept trade offer

Is respondToTrade function still working? I have this code but it don't accept my pending offer.
What is wrong in this code?
bot.on('loggedOn', function() {
console.log('Logged in!');
bot.setPersonaState(Steam.EPersonaState.Online); // to display your bot's status as "Online"
console.log(bot.sentry);
bot.respondToTrade(567436217, true);
});

Trades don't exist anymore afaik, everything is trade offers - you should use something like https://github.com/Alex7Kom/node-steam-tradeoffers

Thx

bot.respondToTrade(567436217, true);

Where did you get that number? respondToTrade is for regular trades, not trade offers.


How?

I looked in the other issue i tried but it doesn't work
it just freeze my cell after doing it
im using the latest version of this project
how do i? MAKE MINIONS APPEAR IN THE LEADERBOARD :C

nvm i did it thanks to megabyte <3


Wikis: re-load single document if it has errors upon request

If a document has errors, reload it when requested.

When a document is requested, its name is the final processed document, nothing can give me the original.
I'm trying to store base_path in metadata of docsite, so we have a repo, and where is the source directory of this docsite inside this repo.
Example metadata:
{'name': 'examples', 'repo': 'https://github.com/threefoldtech/jumpscaleX_threebot', 'base_path': 'docs/wikis/examples/docs'}

Added in https://github.com/threefoldtech/jumpscaleX_libs/commit/a864e35e5e887233ec5ed4fb560766b2b3054015 and https://github.com/threefoldtech/jumpscaleX_threebot/commit/992ada684bdfa5af8ace366514caea8467d47bd8.

Note that docsites need to be reloaded for this to work.

Verification steps:
1 - Start threebot server cl = j.servers.threebot.local_start_default()
2- Load test wikis
path = "/sandbox/code/github/threefoldtech/jumpscaleX_threebot/docs/wikis/examples/docs"
docsite = j.tools.markdowndocs.load(path, name="test_wikis")
docsite.write()

3- Change in this file test_html.md under wikis path.

4- Remove the changes that made this error and request this page again.

Verified


Focus compose field when modal dismissed

Details

Re-implemented compose field being focused when a page-level modal gets dismissed (this broke due to a small regression that was introduced by the recent React-navigation overhaul).
Before the React-Navigation upgrade, closing a page-modal (like /search) would trigger BaseModal's onModalHide callback, which is where we handled a few important things (mainly unsubscribing from keyboard events and setting modal visibility).
After the React-navigation overhaul, when a user navigates away from a page with a modal, BaseModal gets taken out of the DOM before it has time to trigger its onModalHide callback. I've added setModalVisibility(false); to componentWillUnmount to fix that regression.
Other notes can be found here: https://github.com/Expensify/Expensify/issues/154180#issuecomment-799676117
Note: Original PR which focused the compose field when closing modals (cc @tgolen): https://github.com/Expensify/Expensify.cash/pull/1699
Fixed Issues

Fixes https://github.com/Expensify/Expensify/issues/154180
Tests

Go to a chat and start typing a comment
Open up the LHN search
Close the search modal (or select any chat)
Verify that the compose field gets focus

Tested On

[x] Web
[x] Mobile Web
[x] Desktop
[ ] ~iOS~ (n/a because the field does not get focus by design)
[ ] ~Android~ (n/a because the field does not get focus by design)

Screenshots

Web

Not really any screenshots necessary
Mobile Web

Not really any screenshots necessary
Desktop

Not really any screenshots necessary
iOS

Not really any screenshots necessary
Android

Not really any screenshots necessary

@tgolen yeah onModalHide() is only being triggered when the FAB is opened & closed
The only things happening here other than setModalVisibility(false) are:

unsubscribeFromKeyEvents (which was already previously added to componentWillUnmount
this.props.onModalHide()

onModalHide is only being passed in CreateMenu (which doesn't get unmounted)

So I think we're good to go - but obviously I defer to you :D

OK, thanks. Can unsubscribeFromKeyEvents and setModalVisibility be removed from that callback now?

@tgolen as per our discussion, I've moved the repetitive code into a new function hideModalAndRemoveEventListeners, and called that in componentWillUnmount and onModalHide 👍🏽


Prepare to release v1.0.1

I would love to see the fixes I made in #117 be released, therefore here's an attempt at helping to prepare a release to help ease the process 👍

Thanks for your help.  I'll try to get this out ASAP.

@whitlockjc Ping? 🙂

It would be cool to also include circular refs fix (as soon as json-refs new release is ready including recent @whitlockjc commit https://github.com/whitlockjc/json-refs/commit/f088335b4925a88e7b5baad7347b68e2fbe0142d).
I have this, but not sure if it should be hardcoded or configurable?
https://github.com/gordey4doronin/sway/commit/f0a064fb7bb20a3db9e2c5ad358eb2aa44fd7b89

The next release of sway will upgrade to<EMAIL_ADDRESS>when it is released.  The json-refs release should happen within the next day or so.

As for using options.resolveCirculars (sorry for the rename, it was options.allowCirculars), I've not verified that sway's dependencies will work with it yet.  If they do, sway will likely use that configuration.

@whitlockjc I noticed that json-refs was released two weeks ago. Do you think we can pull it into Sway now?

Yup, that's the plan.  I've just been a little busy.  I'll work on it tonight.

@whitlockjc I know the feeling 🙂 Thanks alot 🙏

At first glance, sway doesn't work with<EMAIL_ADDRESS>It has dozen of failed tests.
@whitlockjc Do you have a WIP branch on upgrading json-refs?
I wonder if I could help with something..
  278 passing (9s)
  16 failing

  issues
    ✓ should trap document processing errors (Issue 16) (43ms)
(node:18611) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): AssertionError: false == true
    1) should support relative references (and to YAML files) (Issue 17)
    ✓ should not throw an error for unknown formats (Issue 20) (64ms)
    ✓ should handle default and id fields (Issue 29) (61ms)
    ✓ should handle request objects that are not plain objects (Issue 35)
    ✓ should validate file parameters based on existence alone (Issue 37)
    ✓ should handle allOf $ref to a definition with circular reference (Issue 38) (62ms)
    ✓ string value for object type (Issue #46) (48ms)
    ✓ Buffer value for object type (Issue #46) (42ms)
    ✓ should handle hierchical query parameters (Issue 39) (46ms)
    ✓ should not validate optional parameters that are undefined (Issue 60) (43ms)
    ✓ should not throw an error for optional strings that are undefined (Issue 60) (42ms)
    should handle mixed-case headers for validation (Issue 67)
      ✓ parameter processing
      ✓ request validation
      ✓ response validation

  Operation
    swaggerApiRelativeRefs
      2) should handle composite parameters
      3) should handle explicit parameters
      4) should handle explicit parameters
      5) should create proper regexp (with basePath)
      ✓ should create proper regexp (with basePath ending in slash) (42ms)
      ✓ should create proper regexp (without basePath) (48ms)
      #getParameter
        ✓ should return the proper response (38ms)
      #getParameters
        6) should return the proper parameter objects
      #getSecurity
        7) should return the proper parameter objects
      #validateRequest
        validate Content-Type
          ✓ should handle global level consumes (47ms)
          ✓ should handle mime-type parameters (exact match) (41ms)
          operation level consumes
            8) should return an error for an unsupported value
            9) should handle an undefined value (defaults to application/octet-stream)
            10) should not return an error for a supported value
        validate parameters
          11) should return an error for invalid non-primitive parameters
          12) should return an error for invalid primitive parameters
          13) should not return an error for valid parameters
      #validateResponse
        14) should return the 'default' response when validating an undefined response
        should return an error for undefined response
          15) undefined value but no default
          16) provided value

I don't expect it to work as-is<EMAIL_ADDRESS>changed how circulars are identified (for the better) and resolution in general.  It also removed the options.relativeBase option for json-refs.  I don't have a branch yet but I hope to work on it soon.  I was out of town for a race this weekend and just didn't get to it.

This PR is now obsolete.


Renamed misc category

This section being a bit larger than just a "misc" chapter, it's now a dedicated section.
Also could add pyhf example in this PR (and maybe iminuit).

@cyrraz Need new review.
I added a new RooFit example which should work for any PDFs shapes, without needing to understand the puzzling complicated un-fun hidden renormalization process that RooFit does when using the black-box PlotOn method.


Update .travis.yml

travis build is failing, see https://travis-ci.community/t/error-installing-oraclejdk8-expected-feature-release-number-in-range-of-9-to-14-but-got-8/3766/6
Should fix to set build distribution to trusty instead of xenial

Thanks for keeping an eye out, @gsmari !


Initialization of Book Package in the app

As a user, I want to choose a book package as per the following steps:

Login to the app using DCS credentials. If No DCS credentials exist, should be directed to create a DCS account.
Choose my organization. If the organization does not exist, should be directed to contact admin.
Choose my language.
Choose the Book. Books in scope- OT, NT, OBS (Create 2.1)
Once I select the book, I should be able to review the book package in a harmonized manner.
For OT or NT- Book Package to include ULT, UST, tA, tN, tW,tQ.

If any of the resources are unavailable in the selected Book Package, the appropriate error message should be indicated in the related Helps card.

(Waiting for 2.1) For OBS - Book Package to include OBS, OBS translation notes, OBS questions and OBS Words. (study Notes- TBD)

Questions:
It seems that the changes required are:

We need to add book selection to the stepper

does this mean that if a book is selected the user can still navigate to a different book?

It also looks like we have add OBS support

What else needs to change?

The ability to change the book is always at the top of the screen.
OBS has been broken out into #66


Is there a way to get bibtex generated for each of my posts that people can use to cite me?

Have you checked that your feature request isn't already filed?

[X] I read through FAQ and searched through the past issues, none of which addressed my feature request.
[X] Yes, I have checked that this feature request isn't already filed.

Description & Motivation
I have a minor request, I would love to get automated bibtex generated for my blog posts that someone can use to cite me.
An example is the following image obtained from https://eugeneyan.com/writing/evals/

Pitch
No response
Alternatives
No response
Additional context
No response

I think this is a good idea, and in fact it can be easily implemented.

Wow you are quick! Thank you so much!


pub.dev: package is discontinued

Package is no longer supported?

@Nico04
Yes, https://github.com/mashnoon33/circular_check_box/issues/19#issuecomment-845188308


Fix OS X Builds

Builds were failing due to Homebrew requiring an update and doctor.
There was no issue opened to follow this.

Thanks


fix #889 (add cve option in findings)

We can add manually CVE in finding option and also dependency check parser extract CVE and pushed it to findings.

[x] Your code is flake8 compliant (DefectDojo's code isn't currently flake8 compliant, but we're trying to correct that.)
[ ] If this is a new feature and not a bug fix, you've included the proper documentation in the ReadTheDocs documentation folder. https://github.com/DefectDojo/Documentation/tree/master/docs or provide feature documentation in the PR.
[ ] Add applicable tests to the unit tests.

yeah Sure, thanks for reviewing I will take care of Travis-CI check from now onwards!

hello, @aaronweaver Can you review this one, please?

@dr3dd589  great work, thanks for the PR. Two items.

For DB changes we need the migrations file. (We'll be adding an automated check for this in the future.) Do a pull from dev to get the latest migration changes which are in dojo/db_migrations. Also, I don't think the length needs to be 50, 20 would be sufficient. Then on a fresh database with the model change, run the command below.

export DD_TRACK_MIGRATIONS="on"
python make migrations

Add a regex validator for the CVE field. Validate it with an expression like this CVE-\d{4}-\d{4,7}. (More on CVE format) Also, in the view mode, if a CVE is present link to the CVE in the same way a CWE is linked. (Example on linking)

Let me know if you have any questions.

thanks, @aaronweaver I have changed code according to your suggestion let me know if anything else I have to change. :smiley:

sorry, I have made some mistakes going to fix now.

hello, @aaronweaver I have made some changes. Can you review this again, please?

I think it could be valuable to also send the CVE value to JIRA in the issue description (models.py Finding.long_desc()). The CWE value is already being sent.

done thanks!

I just came across the code that computes the hash code. This code uses the CWE field, would it make sense to include the CVE field as well?
You may want to check the codebase for where the CWE is used and adjust code if needed make the CVE field behave the same / similar.
For example some serializers also provide the CVE field, i.e. OWASP Dependency checker and NPM Audit.

thanks, I'll see that.

@adracea @aaronweaver @devGregA What do you think about this PR? I think the CVE should definetily be there, but it might take a while to update all the code everywhere to use it / display it. It might be worthwhile to merge this PR as a starting point so others can start adding CVE related code in smaller batches over time?

I'm fine with merging. Approval submitted.

This PR seems to have the same issue as the other one. I can't submit a review.
It also looks like it has conflicts, so we'll have to request @dr3dd589 to look at that first anyway :)

@valentijnscholten you should have an invite from earlier today. Also for this we need the migrations run and I'd like to hold that until we get the Pansonic changes in.

I accepted the invite and am in the team now, but still no possibility to submit a review.

So does this need to be reopened now the that PR has been reverted on dev  @aaronweaver ?

Yes, and the migration needs to be done after the initial migrations have been applied.

I'll do that this weekend. Currently, my end-semester exam is ongoing.


Snapshot script incompatible w/  MAC OS and BSD

Just circling back on a few issues:
Just a friendly reminder ;-)
  " :sob: Ok, I will fix it."

Originally posted by @erikd in https://github.com/input-output-hk/cardano-db-sync/pull/1235#discussion_r950622116
I feel the tar test is kind of not very useful now ( hence why it's probably missing from MAC and BSD version of tar command... ),  it's not gziped tar, so what is it testing exactly? it just adds to the snapshot creation time. If the pg dump completed with no error, and the tar command is successful, i think it's good to go, no? Maybe test sha256 file that is now created as part of snapshot instead? that's a better test, IMO, if we really need a test here.
Example:
Linux:
shasum -a 256 --check db-sync-snapshot-schema-13-block-8136142-aarch64.tgz.sha256sum
MAC/BSD:
shasum -a 256 -c db-sync-snapshot-schema-13-block-8136142-aarch64.tgz.sha256sum
Actually, this is related. I found that MAC does not have sha256sum ( BSD does now after version 13 ).
This line needs change:
https://github.com/input-output-hk/cardano-db-sync/blob/035d30b01850df97915063e1eb68f6e24efd7ddc/scripts/postgresql-setup.sh#L167 to: 		| shasum -a 256 | head -c 64 | sed -e "s/$/  ${tgz_file}\n/" > "${tgz_file}.sha256sum"
And second issue:
Is this really necessary? https://github.com/input-output-hk/cardano-db-sync/blob/master/scripts/postgresql-setup.sh#L164
I tested on MAC OS and BSD, those packages don't come in OS by default. This means we would have to add a new package dependency requirement for Mac and BSD for db-sync. What about using this command instead, that looks just like the tree command:
find . -type d -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'

@kderme what do you think about these changes? Should i submit a PR? Let me know if you have any comments.

@kderme @erikd let me know if you have any comments? I can submit PR to fix.

If you can fix if for Mac/BSD without busting it for Linux (the only officially supported OS) then please submit a PR.


Cross-frame for-in is broken on Firefox 37, 38 beta

Original issue 1962 created by<EMAIL_ADDRESS>on 2015-04-06T23:26:43.000Z:
Firefox 37 and 38.0 beta.
var o = frame.untame(frame.iframe.contentWindow.eval('({})'));
for (var x in o) {}
The for loop throws "TypeError: undefined is not a function". This shouldn't even be possible (without proxies, and there aren't any proxies here), so it's probably a browser bug.
Any untame()d record object exhibits the problem. The unsafe eval is just to have less machinery involved.
Other language meta-operations (e.g. getOwnPropertyNames) on the object work normally.

https://codereview.appspot.com/222570043/


[WIP][BSE-4419] Support large counts in MPI gatherv

Changes included in this PR
Changes MPI_Gengatherv and c_gatherv to use MPI_Gatherv_c/ MPI_Allgatherv_c. For spawn mode, most cases will take the MPI_Gengatherv path via gather_array but also including c_gatherv here for robustness.

Testing strategy
PR CI, Nightly, locally with:
import pandas as pd
import bodo

bodo.set_verbose_level(2)

@bodo.jit
def test(df):
    return df

df = pd.Series(["abcd"*10000]*100000)
df = test(df)
print(df.head(15))

BODO_NUM_WORKERS=2 python -u test.py

User facing changes

Checklist

[x] Pipelines passed before requesting review. To run CI you must include [run CI] in your commit message.
[x] I am familiar with the Contributing Guide
[x] I have installed + ran pre-commit hooks.

A couple failures on Nightly:
test_iceberg_ddl.py::test_alter_table_drop_column[tabular]  and
test_snowflake_catalog.py::test_filter_pushdown_row_count_caching[test_db_snowflake_catalog0]
These tests appear to be flakey, both pass for me locally and I think they should be safe to ignore.


fix #23 error encoding timestamps when persisting entities

The codecs in the R2DBC driver do not know how to handle java.util.Data or its subclasses. The quick fix was to convert the java.util.Date into an java.time.LocalDateTime that the codecs and drivers can handle.
It also looks like some of the R2DBC tests were inheriting from the wrong base specification.
Fixes issue #23

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

This seems to be the smallest change I could find that is loclaised to the micronaut-r2dbc project.

Thanks for the contribution!


[Ionic 4] Can't bind to 'name' since it isn't a known property of 'ion-router-outlet'

Bug Report
Ionic Info
Run ionic info from a terminal/cmd prompt and paste the output below.
Ionic:

   ionic (Ionic CLI)          : 4.0.6
   Ionic Framework            : @ionic/angular 4.0.0-beta.2
   @angular-devkit/core       : 0.7.3
   @angular-devkit/schematics : 0.7.3
   @angular/cli               : 6.1.3
   @ionic/ng-toolkit          : 1.0.6
   @ionic/schematics-angular  : 1.0.4

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : android 7.0.0, ios 4.5.5

System:

   Android SDK Tools : 25.2.5
   ios-deploy        : 1.9.2
   ios-sim           : 6.1.2
   NodeJS            : v8.9.4 (/Users/dtaalbers/.nvm/versions/node/v8.9.4/bin/node)
   npm               : 5.6.0
   OS                : macOS High Sierra
   Xcode             : Xcode 9.4.1 Build version 9F2000

Environment:

   ANDROID_HOME : /usr/local/Cellar/android-sdk/24.4.1_1

Describe the Bug
I am trying to generate tabs based of the roles the current user has. Can't bind property to name of the ion-router-outlet component. I tried both
 <ion-router-outlet name="{{tab.name}}"></ion-router-outlet>
and
 <ion-router-outlet [name]="tab.name"></ion-router-outlet>
When I remove the name binding of the outlet component I get the following error
Error: Cannot find a differ supporting object '[object HTMLElement]' of type 'object'. NgFor only supports binding to Iterables such as Arrays.

This error can be fixed with a pipe explained here but its still doesn't iterate over my tabs.
Related Code
My viewmodel
export class TabsPage extends BaseComponent implements OnInit {

    private availableTabs: any[] = [
        {
            label: 'Collecties',
            name: 'pictures',
            icon: 'images',
            href: '/tabs/(pictures:pictures)',
            roles: [
                UserRoles.ReadPictures
            ]
        },
        {
            label: 'Profiel',
            name: 'my-profile',
            icon: 'person',
            href: '/tabs/(my-profile:my-profile)',
        },
        {
            label: 'Over',
            name: 'about',
            icon: 'phone-portrait',
            href: '/tabs/(about:about)',
        }
    ];

    private tabs: any[] = [];

    public async ngOnInit(): Promise<void> {
        await super.ngOnInit();
        this.generateTabs();
    }

    private generateTabs(): void {
        for (const tab of this.availableTabs) {
            if (!tab.roles) {
                this.tabs.push(tab);
            } else {
                if (tab.roles.some(x => this.currentUser.roles.some(y => y === x))) {
                    this.tabs.push(tab);
                }
            }
        }
    }
}

View:
<ion-tabs *ngIf="tabs.length > 0" #tabs color="primary">
    <ion-tab label="Home" icon="home" href="/tabs/(home:home)">
        <ion-router-outlet name="home"></ion-router-outlet>
    </ion-tab>
    <ion-tab *ngFor="let tab of tabs" [label]="tab.label" [icon]="tab.icon" [href]="tab.href">
        <ion-router-outlet name="{{tab.name}}"></ion-router-outlet>
    </ion-tab>
</ion-tabs>

Expected Behavior
I expect to be able to bind to the name property and iterate the tabs array to generate tabs.

能问一下 路由是怎么跳的吗，home下面的子页面要怎么定义路由
Can you ask how routing is done? How does the subpage under home define routing

Not sure what you mean. But the routing is configured in the tabs.router.module.ts.
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AboutPage } from '../about/about.page';
import { HomePage } from '../home/home.page';
import { MyProfilePage } from '../my-profile/my-profile.page';
import { PicturesPage } from '../pictures/pictures.page';
import { TabsPage } from './tabs.page';

const routes: Routes = [
    {
        path: 'tabs',
        component: TabsPage,
        children: [
            {
                path: 'home',
                outlet: 'home',
                component: HomePage
            },
            {
                path: 'pictures',
                outlet: 'pictures',
                component: PicturesPage
            },
            {
                path: 'my-profile',
                outlet: 'my-profile',
                component: MyProfilePage
            },
            {
                path: 'about',
                outlet: 'about',
                component: AboutPage
            }
        ]
    },
    {
        path: '',
        redirectTo: '/tabs/(home:home)',
        pathMatch: 'full'
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class TabsPageRoutingModule { }

What if it's a sub-page of the home page and it's bound there

if home's child page, where bind it

I guess add it to the children routes of the homepage? But this issue is a bug report and not about that. Also not really a place to ask for help. If you have questions please create your own ticket or ask it on the ionic forum.

ok , thankyou

you can not bind the name property to router-outlet. This is a problem with Angular not with Ionic.
See https://github.com/angular/angular/issues/12522

Closing as a duplicate of https://github.com/ionic-team/ionic/issues/14366


AbstractMethodError on world load with OpenComputers

RFTools: 7.14
McJtyLib 2.5.0
OpenComputers: <IP_ADDRESS>
Minecraft: 1.10.2
Minecraft Forge: <IP_ADDRESS>1
After updating RFTools from 7.13 to 7.14, I crashed with the following stacktrace on world load:
java.lang.AbstractMethodError: mcjty.rftools.blocks.screens.ScreenControllerTileEntity.getComponentName()Ljava/lang/String;
	at li.cil.oc.common.asm.template.StaticSimpleEnvironment.node(StaticSimpleEnvironment.java:33)
	at li.cil.oc.common.asm.template.StaticSimpleEnvironment.writeToNBT(StaticSimpleEnvironment.java:83)
	at mcjty.rftools.blocks.screens.ScreenControllerTileEntity.func_189515_b(ScreenControllerTileEntity.java:57)
	at mcjty.lib.entity.GenericTileEntity.writeClientDataToNBT(GenericTileEntity.java:162)
	at mcjty.lib.entity.GenericTileEntity.func_189517_E_(GenericTileEntity.java:151)
	at net.minecraft.network.play.server.SPacketChunkData.<init>(SourceFile:52)
	at net.minecraft.server.management.PlayerChunkMapEntry.func_187272_b(PlayerChunkMapEntry.java:156)
	at net.minecraft.server.management.PlayerChunkMap.func_187302_c(SourceFile:202)
	at net.minecraft.server.management.PlayerChunkMap.func_72683_a(SourceFile:227)
	at net.minecraft.server.management.PlayerList.func_72375_a(PlayerList.java:299)
	at net.minecraft.server.management.PlayerList.func_72377_c(PlayerList.java:369)
	at net.minecraft.server.management.PlayerList.initializeConnectionToPlayer(PlayerList.java:163)
	at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.completeServerSideConnection(NetworkDispatcher.java:260)
	at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.access$100(NetworkDispatcher.java:73)
	at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher$1.func_73660_a(NetworkDispatcher.java:209)
	at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:287)
	at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:180)
	at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:732)
	at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613)
	at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:149)
	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471)
	at java.lang.Thread.run(Thread.java:745)

I suspect it has something to do with the reimplemented computer screen module.
Downgrading RFTools back to 7.13 fixes this issue (but only after restoring from backup, as the crash somehow corrupted Chisels and Bits data)
Here's the full log: https://gist.github.com/SanAndreasP/1901e0b528eed8541f04d218670639b4

I tried to reproduce this issue with CompatLayer 0.2.9 and all of the other mods that you listed, and it works fine for me. Can you try removing all mods except for RFTools, OpenComputers, and their dependencies, and seeing if it will load for you?
Also, is it only your existing world that does that, or can you not start new worlds either?

Never mind, I played with it some more and did get it to crash in a minimal environment. The trigger to making it crash is putting an OpenComputers adapter next to an RFTools screen controller.

Okay, here's what's going on:

We make the screen controller work with OpenComputers by having it implement the SimpleComponent interface, and creating the relevant methods, including getComponentName().
We mark that interface and those methods with Forge's @Optional annotations so that they get stripped if OpenComputers isn't there. If we didn't do this, RFTools would depend on OpenComputers (or at least its API).
OpenComputers' mod ID is "OpenComputers" in 1.10.x, and "opencomputers" in 1.11.x.
When we use the @Optional annotation, we give the mod ID "opencomputers". This means that in 1.10.x, Forge thinks that the mod isn't there and strips the interface and methods.
Normally, this would be the end of it: the screen controller wouldn't work with OpenComputers since the interface is missing, but there'd be no crash either.
However, OpenComputers uses a coremod that complicates this: they register an ASM transformer that looks for any classes that implement SimpleComponent, adds some methods to them, then makes them implement another interface too: SimpleComponentImpl.
The coremod runs before Forge strips anything. This means that after Forge does its stripping, the screen controller doesn't implement SimpleComponent or contain its methods, but it does still implement SimpleComponentImpl and contain its injected methods.
These injected methods try to call the methods that we wrote and were stripped, leading to the crash since they're no longer there.

This has been fixed on OpenComputers' side. Their next release will contain the fix, but if you don't want to wait, you can use this experimental build.


FE - Make UI for client to see project submissions

Client can see proposal and profile of freelancer

@ChemsCode assign this to someone

PR #53


IP-only controller adds IP to DNS of SANS

user on discourse had a problem adding a second router to an "IP only" quickstart install. See discourse for details https://openziti.discourse.group/t/creating-certs-for-a-remote-private-router/694/8
It looks like when the environment doesn't have an external DNS (AWS does, OCI does not) and you set the external_dns to the external_ip, the cert that is generated will (of course) have an IP address added as a DNS entry. If the external_dns == the external_ip, we should not add the IP address as a DNS entry in the sans

Fixing https://github.com/openziti/ziti/issues/812 should fix this but double check after fixing to be sure


Implicitly deny privilege escalation for crd check pod in gitop chart

Running the Gitops operator helm chart in ocp 4.15 or 4.16 causes the below error. Implicitly denying privilege escalation allows the helm chart to proceed.
helm.go:84: [debug] post-upgrade hooks failed: warning: Hook post-upgrade gitops-operator/templates/wait-for-crd.yaml failed: 1 error occurred:
        * pods "cluster-check" is forbidden: violates PodSecurity "restricted:v1.24": allowPrivilegeEscalation != false (container "crd-check" must set securityContext.allowPrivilegeEscalation=false), unrestricted capabilities (container "crd-check" must set securityContext.capabilities.drop=["ALL"]), runAsNonRoot != true (pod or container "crd-check" must set securityContext.runAsNonRoot=true), seccompProfile (pod or container "crd-check" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost")

@masayag @jordigilh


Fix race condition in run-qemu-ota

Running qemu while overlay is being created is bad.

I'm going to approve this based on @patrickvacek's review, as qemu is still broken on my PC. Fixing it is on my to-do list, but it won't happen this week.


should a and a= be distinguished(have different value) ?

IMO: not necessary, or this could be a optional feature disabled by default.

extra type(e.g.  two different falsy values) for distinguishing a and a=(developer side)
extra type to handle the parsing output(user side)
any common scenario for this usage?

Just curious: in what scenario would you like to treat a and a= like the same? And is there any other library supports doing this?

Node.js' querystring API could be referable.

I might have missed something but I don't think Node's querystring API provided the functionality you asked

Oh, they do treat a as a=

Yes, the value of Node's querystring parsed is always string.

As a reference, Servo's rust-url does not differentiate it.
https://play.rust-lang.org/?gist=178dbdbbbcae669fede234f726794c11&version=stable

looks like we should support ( and make it default behaviour )


Feature/react demo

Update Hippy react demo for hippy web renderer

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@7ca220d). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main       #1   +/-   ##
=======================================
  Coverage        ?   61.84%
=======================================
  Files           ?       30
  Lines           ?     1979
  Branches        ?        0
=======================================
  Hits            ?     1224
  Misses          ?      755
  Partials        ?        0

Continue to review full report at Codecov.

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


Content misalignment on the profile page

Describe the Issue
This issue was reported on Discord: https://discord.com/channels/692816967895220344/693145545878929499/1162395054237831301.
The certification links are shifted to the left instead of being centered:

System
N/A
Additional context
No response

Hi can i work for it for hacktoberfest?

Assign this task to me

PLEASE ASSIGN ME WITH THIS ISSUE

I trust my skills to be able to help you regarding this issue. Kindly consider me for the Assignment

Could you please Assign the task to me

@huyenltnguyen any comments?

There's a number of PR's to fix this in different ways - do we want to center the buttons or make them full width? Formerly they were centered. I think it looks good either way.
Also, I did a little digging on this issue and provided some more context in a review.

@moT01 @huyenltnguyen
Hey Tom,
Hey Huyen Nguyen,
Could you please review my PR and tell me what improvements I can make for next time.


Create new document

What is the correct way of adding a completely new document to the firebase db?

You can just set data on a firebase-document path:
<firebase-document path="/my/new/doc" data="{{data}}"></firebase-document>
<script>
/* ... */
  this.data = {brand: 'new', data: true};
/* ... */
</script>

Yea, I was trying to avoid dynamically creating new elements via javascript.
Is there any way to access the javascript api in the firebase-app element so I could do the following?
var newTransactionKey = firebase.database().ref().child('transactions').push(transaction).key;
Assuming it's using the API from here: https://firebase.google.com/docs/database/web/read-and-write

You can just do exactly what you wrote :)
On Fri, Nov 18, 2016, 12:44 PM Brandon Nason<EMAIL_ADDRESS>wrote:

Yea, I was trying to avoid dynamically creating new elements via
javascript.
Is there any way to access the javascript api in the firebase-app element
so I could do the following?
var newTransactionKey =
firebase.database().ref().child('transactions').push(transaction).key;
Assuming it's using the API from here:
https://firebase.google.com/docs/database/web/read-and-write
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/firebase/polymerfire/issues/154#issuecomment-261637169,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAD_iMQTzOnlMq9_NX7MlDeJttbIwY1ks5q_g40gaJpZM4K1tnX
.

When I use that exact line, I get the following error:
firebase-app.js:26 Uncaught TypeError: c[b] is not a function(…)

If you're loading polymerfire modularly, you need to make sure you're
including firebase-document or firebase-query (or
firebase-database-script). It may be that your  registered
before the firebase-database script loaded, which would mean that the app
didn't initialize with database ready.
Also double-check that you're not using the "name" attribute on

On Fri, Nov 18, 2016 at 1:06 PM Brandon Nason<EMAIL_ADDRESS>wrote:

When I use that exact line, I get the following error:
firebase-app.js:26 Uncaught TypeError: c[b] is not a function(…)
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/firebase/polymerfire/issues/154#issuecomment-261641806,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAD_tEMWuGRNdxYn_UC-F2j2LtepB5Pks5q_hNTgaJpZM4K1tnX
.

Thanks! That fixed it.


CredentialIssuer in v0.9.0 installation manifest is malformed.

In the v0.9.0 release YAML for installing the Concierge, the spec.impersonationProxy.service.type flag is mistakenly named mode instead of type:
apiVersion: config.concierge.pinniped.dev/v1alpha1
kind: CredentialIssuer
metadata:
  name: pinniped-concierge-config
  labels:
    app: pinniped-concierge
spec:
  impersonationProxy:
    mode: auto
    service:
      mode: LoadBalancer # should be `type: LoadBalancer`
      annotations:
        service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: "4000"

The impact of this is minor, because the unknown field is ignored and the type field defaults to LoadBalancer anyway. However, it's pretty confusing and should be simple to fix.
Thanks to @jeuniii for noticing this and reporting it.

Apparently some clients (e.g., ArgoCD) perform full validation and will refuse to install this with the wrong field name, so this has a larger impact than I originally thought.

Update: this also affected kubectl apply, so the impact was quite a bit larger than our initial estimate.
We will follow up with CI changes to make sure we're testing installation with a variety of real world tools.


FIX : "limit" returns the count as total number of image-sets

Description
"limit" list-all-image-sets endpoint returns the total number of image-sets in count and not the count of the returned payload
Fixes #THEEDGE-2223
Type of change
What is it?

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Documentation update
[ ] Tests update
[ ] Refactor

Checklist:

[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] I run make pre-commit to check fmt/vet/lint/test-no-fdo

Waiting for Ana's comment to be addressed :smile:

@ldjebran @AaronH88 yes, I;m working on it to make sure we have a condition where if the user passes a limit then we will respect that limit and show it in count.

closing the PR, the bug has been declared as not a bug after discussion


Simplify publishing chain

The publishing chain just needs to be an array of publishing functions, not an array of functions that each return a publishing function.

Coverage remained the same at 100.0% when pulling 60bc14b69eef06d032103c799932bd7b352d66bc on publishing-chain-update into 349b48158426cb95eea2e442da5cdb77db2fd193 on master.

👍


Remove toolbar from Activity

I want to remove the toolbar from the activity as fragments attached to activity have there own toolbars. Is it possible? if yes how? Could not find any sample about it! Thank you neokree for this lib, its great ! ^.^

Actually there isn't a way to remove toolbar from the activity, and sincerily, It doesn't make sense.
Why do you want a navigation drawer without a toolbar? How an insesperienced user can open the drawer if they don't know the swipe gesture?

agree, but i need to have custom toolbar for each fragment(like with movoing images and spinners on one fragment but another one is simple etc). If you can suggest me a way out?
for now i am hiding the toolbar by marking its visibilty to "gone" and pushing the framelayout with layout_below="statusBar"
Now with my toolbar in fragment is there a way to callback open navigation drawer by clicking a button(say drawer icon on toobar that is inside my fragment)?  So that an insesperienced user can open the drawer from inside the fragment and not the activity.

Put those fragments in other activities and link to those new activities from the Drawer instead of linking to the Fragments. This way you can customize the toolbar without having to hide the Drawer one. Do not make those new activities inherit from MaterialNavigationDrawer.

@mrcasals thanks man ! I was not aware that i can pass an activity insted of fragment to selector! I will try that out today, and close this issue when its done. Great work guys with the lib again! i am new to android and i so much wish to contribute to community like you guys do. I will also make a lib soon :D thanks for the inspiration as well @neokree

@mrcasals i did as you suggested, it seems to be a good workaround. But i think more appropriate solution will be to have a callback from fragment to open drawr (as i lose navigation i.e the drawer if i start new activity the way you suggested and i want to keep the navigation at all times)


Empty message content causes request to hang

To reproduce:
curl http://localhost:11434/api/chat -d '{
  "model": "llama2",
  "messages": [
    {
      "role": "user",
      "content": ""
    }
  ]
}'

I still have this issue on 0.1.24. Providing an empty prompt in an existing context causes Ollama to completely crash and serve any requests on any models anymore.
Unfortunately I'm unable to provide a repro right now.


See video without CDN?

Is it possible to watch a HLS video without ever using the CDN?
can the manifest/fragments/pieces/quality be downloaded from other peers?
From the looks of it, it seems like it has to download the manifest file first, then after that it joins the swarm

Live:
P2P Media Loader doesn't support this. And most likely the same issue is with other solutions. It is very hard to do live video streaming without a server.
Check this:
https://stackoverflow.com/questions/18318983/webrtc-scalable-live-stream-broadcasting-multicasting
VOD:
You can use WebTorrent without HTTP source (MP4 files).
But anyway without a server broadcast will not be very reliable.

I know about webtorrent, but the video files is either dash or hls (not some torrent) and i can't change that, stuck with using hls...

Hi @jimmywarting,
It could be possible to streaming 100% of HLS video trough WebRTC, but your origin server will always upload to some users and the users will upload to each other. I do not recommend this method because the user experience will be poor if the browser wait to receive data from other user, so it always better to upload initial video data to all users trough CDN and them connect to WebRTC, you can save 80% of bandwidth and have good user experience. If you would like to stream a video 100% from torrent (using magnet link, etc...), it is possible only with source files like .mp4.
Also, if you have low user density, I do not recommend the use of P2P video streaming, because not all users is realible to upload data. I used streamroot with 5000+ concurrent users and saved only 60% of data because it have much videos. P2P video streaming is good in videos that have 100+ concurrent users, so you will save 95% of bandwidth on it

The STUN-Server might be a central point of failier in WebRTC already

No it isn't, beside you can always use your own STUN/Trackers

I might tackle this in another way by creating a mini TOR network with other people around the world...

I do not understand what you trying to say. Why you need to use HLS and DASH when you can stream using standard .MP4 in torrent network?
The solution on this repository only save video data using WebRTC, and please, do not use it to stream copyright protected content

Check IPFS project. This beast aims to be fully decentralized:
hlsjs-ipfs-loader
ipfs-live-streaming
Most likely it will require coding with libp2p and personal IPFS node setup.


SW-3601 Create observations from admin UI

Add an "Observations" section to the planting site page in the admin UI that lists
all the site's observations. If the user is a super admin, there is also a form to
create a new observation, with the start and end dates based on the site's
planting season end month by default.
Automatic scheduled creation of observations will come in a future change.
This change also adds the concept of an observation state. Currently, since the
only operation is "create," observations will always be in the initial "Upcoming"
state; future changes will add transitions to other states.

Current dependencies on/for this PR:

main

PR #1141   👈

This comment was auto-generated by Graphite.


Update conversion notes in "decimal and numeric" and "float and real" pages

Fixes #2827
The behavior changed starting in SQL Server 2016. Please see my comments in #2827 for the test code.
Please check the include reference. The CREATE TABLE page ( https://github.com/MicrosoftDocs/sql-docs/blob/live/docs/t-sql/statements/create-table-transact-sql.md ) uses  [!INCLUDE[ssSQL15](../../includes/sssql15-md.md)] but that is a bad name for the include file since there is no 2015 version. There is an identical include file with the correct name, sssql16, so I am using that instead. But, I have no way to test include files to hopefully there is no problem with the "16" file.
Take care,
Solomon...
https://SqlQuantumLeap.com/

@srutzky : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Hi @srutzky - thank you for submitting this, I'm getting your PR reviewed.
For the include files, we're now referring to version number instead of version name. SQL Server 2019 is SQL Server version 15, so the include file is named [!INCLUDE[ssSQL15](../../includes/sssql15-md.md)]. Of course we acknowledge that this is a change from previous releases and file names.

@sign-off

@pmasl: I'm sorry - only the author of this article, @MikeRayMSFT, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

#sign-off

Hi @MikeRayMSFT

Hi @srutzky - thank you for submitting this, I'm getting your PR reviewed.

You are welcome.

For the include files, we're now referring to version number instead of version name. SQL Server 2019 is SQL Server version 15, so the include file is named [!INCLUDE[ssSQL15](../../includes/sssql15-md.md)]. Of course we acknowledge that this is a change from previous releases and file names.

Not sure if you understood what I was saying. Also not sure I understand that this is a change, especially because that particular example is not a good one since the content of that file (i.e. sssql15-md.md) is:
SQL Server 2016 (13.x)
I have just created an issue to better explain / document what I was running into:
#3061


Add automated Zoom to regions with language selection

For country-specific languages, automate zoom to country.

Sounds like fun. Please assign to me ;)

Sounds like fun. Please assign to me ;)

Done!


Randomize zones granularity

Currently, isoalloc has zones in increasing power of two, for performance reasons.
Unfortunately, this means that an attacker aiming at exploiting an UAF against an object of size N only needs to find an object of size between the previous and the next power of two, to be able to get it allocated with reasonable confidence (quarantine notwithstanding).
Introducing a bit of randomness in the granularity will make the life of an attacker without the ability to leak too much data a bit harder, since they would have no way to be sure that they managed to allocate the object of their choosing in the same zone as the freed-and-to-be-reused object.

Chunk sizes are no longer powers of 2 after #216, they are now multiples of 64. I think the scenario you described above is less likely now but still possible.

>>> import itertools
>>> len(list(itertools.takewhile(lambda x: x<4096, (64*i for i in itertools.count(0)))))
64
>>> len(list(itertools.takewhile(lambda x: x<4096, (2**i for i in itertools.count(0)))))
12
>>>

this indeed significantely increases granularity, nice!
But wouldn't it increase memory fragmentation as well?

Yes. I don't think theres an optimum general solution here. It's full of tradeoffs all the way down.


Cannot setup the plugins

Trying to use this tool for editing scenarios.
I get this error while trying to load Traffic generation editor
ImportError: libpugixml.so.1: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 334, in _startPlugin
plugins[packageName] = package.classFactory(iface)
File "/home/schemba/.local/share/QGIS/QGIS3/profiles/default/python/plugins/traffic-generation-editor-main/init.py", line 21, in classFactory
from .carla_scenario_editor import OSC_Generator    # pylint: disable=import-outside-toplevel,import-error
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 792, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/schemba/.local/share/QGIS/QGIS3/profiles/default/python/plugins/traffic-generation-editor-main/carla_scenario_editor.py", line 22, in
from .osc_generator.add_vehicles import AddVehiclesDockWidget
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 792, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/schemba/.local/share/QGIS/QGIS3/profiles/default/python/plugins/traffic-generation-editor-main/osc_generator/add_vehicles.py", line 21, in
import ad_map_access as ad
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 792, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/schemba/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ad_map_access_qgis/ad_map_access/init.py", line 17, in
from ad_map_access_python36_module import *
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 792, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: libpugixml.so.1: cannot open shared object file: No such file or directory
I get this error  when trying to import CARLA AD Map Plugin
ModuleNotFoundError: No module named 'map-2'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 312, in loadPlugin
import(packageName)
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 792, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'map-2'
Any comments would be appreciated.

Hi,
the first error seems to be rooted in the map library, most likely you do not have pugixml installed, do you?

Hi @fabianoboril tahnks for the reply. I havent installed pugixml. Will try installing now

Hi @fabianoboril When I try to load ad_map_access_qgis I get no module named ad_map_access error and while trying to load traffic-generation-editor i get nothe same error. CAn you let me know what i myt be doing missing out here

As the README states, you have to install the ad-map-access Plugin for QGIS:

You can find the instructions on how to do that here:
https://ad-map-access.readthedocs.io/en/latest/ad_map_access_qgis/ad_map_access_qgis/

Thanks . I havent seen this step of trying to pip install from bash. However it leads to this error: Collecting ad-map-access
Could not find a version that satisfies the requirement ad-map-access (from versions: )
No matching distribution found for ad-map-access
My QGIS version is 3.16 and Iam have downloaded the zip file of 2.5.1 of ad_map_Access_qgis.zip. Am I doing something wrong

@fabianoboril Thanks . I havent seen this step of trying to pip install from bash. However it leads to this error: Collecting ad-map-access
Could not find a version that satisfies the requirement ad-map-access (from versions: )
No matching distribution found for ad-map-access
My QGIS version is 3.16 and Iam have downloaded the zip file of 2.5.1 of ad_map_Access_qgis.zip. Am I doing something wrong

@fabianoboril I updated pip to latest version and both the plugins are loaded now .Sorry for the inconvenience due to errors from my side .

ad-map-access can be installed via pip but I still get this error when installing traffic-generation-editor in QGIS.
Please help :(


Unifi OS 3 aren't being parsed

Describe the bug
Unifi OS 3 and newer logs are not being parsed correctly, resulting in detection scenarios such as port scanning not working correctly.
To Reproduce

Install the unifi collection cscli collections install crowdsecurity/unifi and reload crowdsec
Setup a syslog endpoint via acquis.yaml using the following yaml:

source: syslog
listen_addr: <IP_ADDRESS>
listen_port: 514
labels:
 type: unifi

Configure a Unifi OS 3 console or newer to log to the syslog endpoint
check crowdsec logs and see time="03-11-2023 04:48:35" level=error msg="could not parse message: version must be 1" client=<IP_ADDRESS> type=syslog
check cscli metrics and see no logs are being parsed

╭────────────────────┬────────────┬──────────────┬────────────────┬────────────────────────╮
│       Source       │ Lines read │ Lines parsed │ Lines unparsed │ Lines poured to bucket │
├────────────────────┼────────────┼──────────────┼────────────────┼────────────────────────┤
│ syslog:<IP_ADDRESS>     │ 295        │ -            │ 295            │ -                      │
╰────────────────────┴────────────┴──────────────┴────────────────┴────────────────────────╯

Expected behavior
Logs should be parsed
Screenshots
N/A
Additional context
This issue was originally reported within the CrowdSec Discord

check crowdsec logs and see time="03-11-2023 04:48:35" level=error msg="could not parse message: version must be 1" client=<IP_ADDRESS> type=syslog

so the error is happening within syslog acquisition itself
https://github.com/crowdsecurity/crowdsec/blame/4e724f6c0a54ad1c67eeab6ca3be62f00ee0cf20/pkg/acquisition/modules/syslog/syslog.go#L209
It not even hitting the parsers at all..... so what format is it if its not RFC3164 or RFC5424

@LaurenceJJones I'm not sure what to look for, so let me know if you are missing some specific logs.
I didn't remove the MAC address from the last log line, that's how it was sent.
Feb  8 18:19:32 Unifi-Dream-Machine [LAN_LOCAL-RET-2147483647] DESCR="no rule description" IN=br0 OUT= MAC=fake-mac-address SRC=<IP_ADDRESS> DST=<IP_ADDRESS> LEN=40 TOS=00 PREC=0x00 TTL=128 ID=31307 DF PROTO=TCP SPT=54649 DPT=443 SEQ=578136041 ACK=657436146 WINDOW=8195 ACK URGP=0 UID=125 GID=132 MARK=1a0000
Feb  8 18:19:31 Unifi-Dream-Machine [WAN_LOCAL-D-2147483647] DESCR="[WAN_LOCAL]Drop All Other Traf" IN=eth4 OUT= MAC=fake-mac-address SRC=<IP_ADDRESS> DST=<IP_ADDRESS> LEN=40 TOS=00 PREC=0x00 TTL=239 ID=13706 PROTO=TCP SPT=45584 DPT=29552 SEQ=2451790175 ACK=0 WINDOW=1024 SYN URGP=0 MARK=1a0000
Feb  8 18:19:30 Unifi-Dream-Machine [LAN_IN-D-20038] DESCR="Default Implicit Deny" IN=br0 OUT=eth4 MAC=fake-mac-address SRC=<IP_ADDRESS> DST=<IP_ADDRESS> LEN=243 TOS=00 PREC=0x00 TTL=63 ID=3558 DF PROTO=UDP SPT=6537 DPT=6537 LEN=223 MARK=1a0000
Feb  8 18:23:33 Unifi-Dream-Machine [PREROUTING-DNAT-13] DESCR="PortForward DNAT [Reverse Proxy 44" IN=br5 OUT= MAC=fake-mac-address SRC=<IP_ADDRESS> DST=<IP_ADDRESS> LEN=60 TOS=00 PREC=0x00 TTL=64 ID=42142 DF PROTO=TCP SPT=50118 DPT=443 SEQ=746590349 ACK=0 WINDOW=64240 SYN URGP=0 MARK=1a0000
Feb  8 18:23:33 Unifi-Dream-Machine [POSTROUTING-MASQUERADE-14] DESCR="PortForward MASQUERADE [Rev" IN= OUT=br5 MAC= SRC=<IP_ADDRESS> DST=<IP_ADDRESS> LEN=60 TOS=00 PREC=0x00 TTL=63 ID=42142 DF PROTO=TCP SPT=50118 DPT=443 SEQ=746590349 ACK=0 WINDOW=64240 SYN URGP=0 MARK=1a0000

Can you capture the raw syslog packet?
The issue at the moment is the syslog acquisition NOT the parser. If you used rsyslog to a file it would work fine.

Hey @LaurenceJJones,
here you go https://drive.proton.me/urls/SCXVG17A2R#0wuY9TIDGhzc
Lemme know if you need it in a dif format.

@WhyAydan Thank you for provind these, I didn't have the time to run a packet capture.

Tbh, no idea if thats what Laurence needs but who knows lol

Hmmm it seems to be RFC compliant on my end and within @WhyAydan pcap also
<45>Feb 12 09:52:07 ToonDreamMachine ToonDreamMachine syslog-ng[3459965]: Syslog connection established; fd='28', server='AF_INET(<IP_ADDRESS>:514)', local='AF_INET(<IP_ADDRESS>:0)'

Still would like a pcap from @GNU-Plus-Windows-User just incase it something we are not seeing

Hey, if it helps I also get the same error that @GNU-Plus-Windows-User gets

Hey, if it helps I also get the same error that @GNU-Plus-Windows-User gets from crowdsec

Okay, then I try to see if I can reply the packet the syslog endpoint.

Also if you get chance can you put the acquisition into debug log level as it should log the reason why the first RFC parser fails

time="2024-02-12T13:12:46Z" level=debug msg="could not parse as RFC5424 (version must be 1) : <15>Bedroom HIDDEN,USW_FLEX_MINI-<IP_ADDRESS>4: INFORM: Send notify [setparam] inform to [http://<IP_ADDRESS>:8080/inform] Time 1974750" client=<IP_ADDRESS> type=syslog
time="2024-02-12T13:12:47Z" level=debug msg="could not parse as RFC3164 (timestamp is not valid)" client=<IP_ADDRESS> type=syslog
time="2024-02-12T13:12:47Z" level=error msg="could not parse message: version must be 1" client=<IP_ADDRESS> type=syslog
time="2024-02-12T13:12:47Z" level=debug msg="could not parse as RFC5424 (version must be 1) : <15>Bedroom HIDDEN,USW_FLEX_MINI-<IP_ADDRESS>4: INFORM: Send normal inform to [http://<IP_ADDRESS>:8080/inform] Time 1974751" client=<IP_ADDRESS> type=syslog
time="2024-02-12T13:13:06Z" level=debug msg="could not parse as RFC3164 (timestamp is not valid)" client=<IP_ADDRESS> type=syslog
time="2024-02-12T13:13:06Z" level=error msg="could not parse message: version must be 1" client=<IP_ADDRESS> type=syslog
time="2024-02-12T13:13:06Z" level=debug msg="could not parse as RFC5424 (version must be 1) : <15>Bedroom HIDDEN,USW_FLEX_MINI-<IP_ADDRESS>4: INFORM: Send normal inform to [http://<IP_ADDRESS>:8080/inform] Time 1974771" client=<IP_ADDRESS> type=syslog
time="2024-02-12T13:13:24Z" level=debug msg="could not parse as RFC3164 (timestamp is not valid)" client=<IP_ADDRESS> type=syslog
time="2024-02-12T13:13:24Z" level=error msg="could not parse message: version must be 1" client=<IP_ADDRESS> type=syslog
time="2024-02-12T13:13:24Z" level=debug msg="could not parse as RFC5424 (version must be 1) : <15>Bedroom HIDDEN,USW_FLEX_MINI-<IP_ADDRESS>4: INFORM: Send normal inform to [http://<IP_ADDRESS>:8080/inform] Time 1974788" client=<IP_ADDRESS> type=syslog
time="2024-02-12T13:13:44Z" level=debug msg="could not parse as RFC3164 (timestamp is not valid)" client=<IP_ADDRESS> type=syslog
time="2024-02-12T13:13:44Z" level=error msg="could not parse message: version must be 1" client=<IP_ADDRESS> type=syslog
time="2024-02-12T13:13:44Z" level=debug msg="could not parse as RFC5424 (version must be 1) : <15>Bedroom HIDDEN,USW_FLEX_MINI-<IP_ADDRESS>4: INFORM: Send normal inform to [http://<IP_ADDRESS>:8080/inform] Time 1974808" client=<IP_ADDRESS> type=syslog

Any update on this issue?

would love to help to get this up and running given the new SIEM type logging also available in the new network release

I spent 3 days working on this before I came across someone telling me that it wasn't working properly. I appreciate the community and have learned a lot. How could we help get this working?

There is 2 issues which one is confirmed, the other im still in the air about:

Syslog acquisition does not allow relayed packets (confirmed as per linked issue above)
If you don't use CrowdSec syslog acquisition but instead write the packet to a file using rsyslog instead does it work?

Keep in mind that currently the syslog parser in s01 is only RFC3164 compliant please ensure if you are testing the latter that you set the syslog option in unifi to use this RFC version. If there isnt an option I guess we need to update a newer RFC version one

Yeah that is something called CEF, we dont support that at all yet, im trying to find a definition of the CEF format and it seems it whatever you make it to be. So not too useful for us to create a parser unless we create one per vendor.

I appreciate you looking at it and look forward to see what you come up with.


New package: CalculusWithJuliaNotes v0.1.0

Registering package: CalculusWithJuliaNotes
Repository: https://github.com/jverzani/CalculusWithJuliaNotes.jl
Created by: @jverzani
Version: v0.1.0
Commit: a2b62ded0416abf044daee917ccb5d6c9eccbe89
Git reference: HEAD
Description: Notes for using Julia while learning calculus

Sorry, I'd really like to keep this name for the package (this package just allows the split of the current CalculusWithJulia.jl package into two more manageable pieces).

Should this be registered tho? The package doesn't seem to contain anything itself. Could you elaborate why you want to register it? (Coming from slack, I think a few people share the same concern)
[no block]

Reasonable question. I just thought it would make it easier to tag updates for users, but it maybe just pollutes the registry.

I think for that case you could directly let whoever want to use the repo to clone or download the tag? I don't see any advantage by registering an empty package for this.

Since the intent here is to separate out the code from the content, there isn’t really much point to registering this.  Thanks for the insight


Multiple approaches to using GPUs in AKS documentation

[Enter feedback here]
The documentation on how to use GPUs here matches what is found in the Kubernetes documentation. However it is totally different than what is recommended on this page.
From my own experience, the instructions here work fine and work well with zero node autoscaling. However this does not prevent non-gpu pods from being scheduled on the GPU node. So which approach is best practice? Do you need to use both to prevent the non-GPU pod from being scheduled on the GPU node? Or is there something else that needs to be done? Or is the taint approach preferred?

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

ID: deaac79e-bd40-2d95-7288-e15371726e91
Version Independent ID: 9fd80908-20f1-7970-3bda-5a4283e4af21
Content: Use GPUs on Azure Kubernetes Service (AKS) - Azure Kubernetes Service
Content Source: articles/aks/gpu-cluster.md
Service: container-service
GitHub Login: @palma21
Microsoft Alias: jpalma

@AronT-TLV , Thank you for your question.
Use GPUs on Azure Kubernetes Service (AKS) - Azure Kubernetes Service helps you provision nodes with schedulable GPU on new clusters (1 nodepool only with schedulable GPU nodes) or on existing clusters (adding a new node pool with schedulable GPU).
Best practices for advanced scheduler features in Azure Kubernetes Service (AKS) talks about best practices on how you can restrict scheduling of workloads that require GPUs only, on nodes with schedulable GPU.
Taints are a property of nodes that allow them to repel any pod from being scheduled on them which do not have a matching Toleration. For more information check out this article. The implementation of this Kubernetes feature for the particular use case of restricting GPU-workloads only to GPU-nodes is described in  Best practices for advanced scheduler features in Azure Kubernetes Service (AKS)
However, it is important to notice that some kube-system DaemonSet pods without explicitly defined matching tolerations can still be scheduled on nodes with taints. This is because the pod.spec of these kube-system DaemonSets have the following tolerations set by default:
:NoExecute op=Exists
:NoSchedule op=Exists

You can run kubectl describe pod <podname> -n <namespace> to find out the tolerations of pods.
Any other pod that has a Toleration defined in the pod spec that matches the taint on the node can be scheduled on the correspondingly tainted nodes.
This still doesn't solve one question: Once you have ensured that non-GPU-workloads (except some kube-system pods) cannot be scheduled on GPU-nodes, how do you restrict scheduling of GPU-workloads on GPU-nodes only? Or plainly speaking how do you prevent GPU-workloads from being scheduled on non-GPU tainted nodes?
The answer to this would be Node Affinity or specific Node Selectors.

This is a really great response with a great deal of useful details and information that ties these ideas together. I would highly recommend you add it as another page to the documentation, perhpas with some additional examples.
In any case, thanks so much for your help @SrijitBose-MSFT

@AronT-TLV , Thank you for your feedback. I am assigning this to the content author for review.

Thank you for the feedback.
We have add this to our backlog and will prioritize accordingly.
#please-close


Clearer instructions

Having trouble running this, if im on windows do I run the file in the python interpreter or the command line. Are there any examples of how to run this on windows?

The command line. If you have python for windows installed, I think you can be in your terminal/command prompt, and change to the right directory and run:
py fetch_links.py politics 2017-1-1 2017-2-1

Thank you for the help! Using py worked for me, but not python for some reason. Either way I've got it working now.


I'm setting the same force with applyForce but the path rarely it's equal.

Hi everyone, i'm trying to launch a ball to top, in a plinko game, but i could't launch the ball to the same height even setting the same force with applyForce. Sometimes the ball up 600px, other 800px and rarely do the same path when drop by the plinko.
When i create the ball at the top of the plinko the ball ALWAYS do the same path, always. So i'd like to reproduce this behavior but launching the ball. Anyone has an idea how can i do this?
If you've some doubt let me know to clarify.

Hi @liabru, i tried but i didn't success. So i noticed that when i launch the ball with a timeout, e.g 500ms, the ball always do the same path. So i imagine that what you suggested make sense but i couldn't implement. Follow some parts of my code.
Here i create the engine and render.
const engine = Engine.create();
const renderer = Render.create({
        element: sectionTag,
        engine: engine,
        options: {
          width: canvaW,
          height: canvaH,
          background: backgroundImageCanvas
            ? backgroundImageCanvas
            : backgroundColorCanvas,
          backgroundSize: "100%",
          backgroundPosition: "-8px 1px",
          backgroundRepeat: "no-repeat",
          showDebug: false,
          wireframes: false,
          pixelRatio: window.devicePixelRatio,
        },
      });

and at the final i run
var runner = Runner.create({
        isFixed: true,
      });

      Render.run(renderer);
      Runner.run(runner, engine);

Am i doing something wrong? I'll try read again the doc.
Anyway thanks for the tip.

Hi @liabru, i tried but i didn't success. So i noticed that when i launch the ball with a timeout, e.g 500ms, the ball always do the same path. So i imagine that what you suggested make sense but i couldn't implement. Follow some parts of my code.
Here i create the engine and render.
const engine = Engine.create();
const renderer = Render.create({
        element: sectionTag,
        engine: engine,
        options: {
          width: canvaW,
          height: canvaH,
          background: backgroundImageCanvas
            ? backgroundImageCanvas
            : backgroundColorCanvas,
          backgroundSize: "100%",
          backgroundPosition: "-8px 1px",
          backgroundRepeat: "no-repeat",
          showDebug: false,
          wireframes: false,
          pixelRatio: window.devicePixelRatio,
        },
      });

and at the final i run
var runner = Runner.create({
        isFixed: true,
      });

      Render.run(renderer);
      Runner.run(runner, engine);

Am i doing something wrong? I'll try read again the doc.
Anyway thanks for the tip.

I'm facing the same issue :(

Do you have a link to an example I could try? Are you launching the ball exactly the same every time?

Hi @liabru, sorry for delay. I had a lot tasks last weeks. Follow my link to you see. I'm launching the ball with the same force, from the same position and setup the runner with isFixed: true, but many times i got different simulations. Do you know what i could do wrong. I need to get the same simulation independent the time that i launch.
https://codepen.io/difrance/pen/rNKrxzz

This is due to changing timeScale which is actually changing the timestep so it's no longer fixed. Removing that from your code seems to give the same results:
	function launchPinball() {
    // var timescale = ((1000 / runner.fps) / 16).toFixed(2);
    // engine.timing.timeScale = timescale;
		updateScore(0);
		Matter.Body.setPosition(pinball, { x: 465, y: 765 });
		Matter.Body.setVelocity(pinball, { x: 0, y: -35 });
		Matter.Body.setAngularVelocity(pinball, 0);
	}
	```

@liabru when i removed this part of code and i faced two issues. The first is that i don't have the same simulation e.g in 10 times. The second is when you use different frame rate you have different simulation between each frame rate. So in 60hz you will have simulations similar and close, still not equal. However if you change to another monitor, 120hz, you'll have another power, gravity another simulation, for my game it is vital. I updated the code to you test.

As of 0.20.0 there is now built in Matter.Runner support by default for fixed timestep with high refresh displays see https://github.com/liabru/matter-js/pull/1300.
Therefore hopefully this will now be much easier. Thanks for the report!


Proposal: regex matching and parallel Open for multiple files support

Hello !
Actually i'm became a frequent user of archiver since its totally generalist and efficient. The case of openning huge archives or several archives at once is bit painfull which leaded me to think about these improvements.
Regex matching:
Archiving or reading archive files using simple regex match
archiver open -r *.zip mydestination

Multiple targets (for regex expressions and simple file names)
for files:
archiver open file1.zip file2.tar mydestination

for regex
archiver open -r *.zip *.tar mydestination

distinct destinations
# simple
archiver open file1.zip -d mydest1 file2.zip -d mydest2
# regex
archiver open -r *.zip -d mydest1 *.tar -d mydest2

parralel openning
archiver --parallel --cores=2 open -r *.zip *.tar mydestination

All the examples above for multiple files Open situations. For making archives, it's not too usefull to add parralel support but regex matching might be interessting.
archiver make -r myarchive.zip *.png

Specifications
Actually archiver is built on simple command line parser, implementing all this features might need to use Cobra or any other command line library.
Would be glad to hear what do you think and help implementing these features !

Thanks for the feature request.
What do these commands actually do though? If it's just a matter of working with multiple archive files, you can just run the command multiple times: once for each file.


[BUG] moveAllComponents is not working as expected.

Describe the bug.
I tried to run the optimizer on this file:
asyncapi: 3.0.0
info:
  title: Account Service
  version: "1.0"
channels:
  userSignedUp:
    address: user/signedup
    messages:
      UserSignedUp:
        $ref: '#/components/messages/UserSignedUp'
components:
  messages:
    UserSignedUp:
      payload:
        type: object
        properties:
          email:
            type: string

It generated the following invalid document.
asyncapi: 3.0.0
info:
  title: Account Service
  version: '1.0'
channels:
  userSignedUp:
    $ref: '#/components/channels/userSignedUp'
components:
  messages:
    UserSignedUp:
      payload:
        type: object
        properties:
          email:
            type: string
  schemas: {}
  channels:
    userSignedUp:
      address: user/signedup
      messages:
        UserSignedUp:
          $ref: '#/components/messages/UserSignedUp'
          payload:
            properties:
              email:
                $ref: '#/components/schemas/email'

Expected behavior
It should have generated:
asyncapi: 3.0.0
info:
  title: Account Service
  version: "1.0"
channels:
  userSignedUp:
    address: user/signedup
    messages:
      UserSignedUp:
        $ref: '#/components/messages/UserSignedUp'
components:
  schemas:
    email:
      type: string
  messages:
    UserSignedUp:
      payload:
        type: object
        properties:
          email: "$ref: #/components/schemas/email"

Screenshots
...
How to Reproduce
Run the optimiser on the given AsyncAPI file.
🥦 Browser
None
👀 Have you checked for similar open issues?

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

🏢 Have you read the Contributing Guidelines?

[X] I have read the Contributing Guidelines

Are you willing to work on this issue ?
No, someone else can work on it

@aeworxet any idea why this is happening?

Investigating.
If disableOptimizationFor: { schema: true, }, is set, is this output correct?
asyncapi: 3.0.0
info:
  title: Account Service
  version: '1.0'
channels:
  userSignedUp:
    $ref: '#/components/channels/userSignedUp'
components:
  messages:
    UserSignedUp:
      payload:
        type: object
        properties:
          email:
            type: string
  channels:
    userSignedUp:
      address: user/signedup
      messages:
        UserSignedUp:
          $ref: '#/components/messages/UserSignedUp'

@aeworxet yes.

File (the one that issue was opened on)
asyncapi: 3.0.0
info:
  title: Account Service
  version: '1.0'
channels:
  userSignedUp:
    $ref: '#/components/channels/userSignedUp'
components:
  messages:
    UserSignedUp:
      payload:
        type: object
        properties:
          email:
            type: string
  schemas: {}
  channels:
    userSignedUp:
      address: user/signedup
      messages:
        UserSignedUp:
          $ref: '#/components/messages/UserSignedUp'
          payload:
            properties:
              email:
                $ref: '#/components/schemas/email'

passed validation with Parser.
Original file (everything that was in components was moved to the root of JSON)
asyncapi: 3.0.0
info:
  title: Account Service
  version: "1.0"
channels:
  userSignedUp:
    address: user/signedup
    messages:
      UserSignedUp:
        payload:
          type: object
          properties:
            email:
              type: string

was optimized as
asyncapi: 3.0.0
info:
  title: Account Service
  version: '1.0'
channels:
  userSignedUp:
    $ref: '#/components/channels/userSignedUp'
components:
  schemas:
    email:
      type: string
    payload:
      type: object
      properties:
        email:
          $ref: '#/components/schemas/email'
  messages:
    UserSignedUp:
      payload:
        $ref: '#/components/schemas/payload'
  channels:
    userSignedUp:
      address: user/signedup
      messages:
        UserSignedUp:
          $ref: '#/components/messages/UserSignedUp'

Thus, the issue is related to parsing components that are ALREADY in components.

@aeworxet

File (the one that the issue was opened on) passed validation with Parser.

It's still invalid, right? I see two issues with it.

components/channels/userSignedUp/messages/userSignedUp contains both a reference and an object.
$ref: '#/components/schemas/email' is wrong since there is not components/schemas/email in the file.

Then the list of issues in https://github.com/asyncapi/optimizer/issues/261#issuecomment-2135024356 is a reason for @jonaslagoni and @smoya to review the code of parser-js once again and find out why Parser validates obviously invalid things, along with fixing.

@aeworxet we can open an issue and discuss it on the respective repo but ultimately that is a different discussion and it's up to the parser-js maintainers to decide. For us, we have to make sure optimizer doesn't produce incorrect output.

Opening separate issues is definitely a good way of doing it ✌


Fixing array inference with the create_empty block

Fixes #2451

Basically, if an array block is empty (has no fields with blocks attached), we shouldn't infer anything from it. Before we were trying to assign a random type (number[]) when really we should have just returned Array which will get turned into a concrete type later.


Exception org.elasticsearch.hadoop.rest.EsHadoopInvalidRequest with Spark 1.5.1, ES 2.0 and v2.2.0-beta1

https://gist.github.com/amiorin/d84dcdcbbdf29fa36079
It works with ES 1.7
ngrep says that no 500 status is returned by ES 2.0
Any idea?

Am I the only one with this problem?

Is there anything special about your indices? Does something show up in the ES 2.0 logs? The gist (thanks for this by the way and for turning on logging) things are pretty clear - the 500 start appearing quite early on on the various Spark tasks - all at various stages during the initial handshake.
500 indicates there's something wrong with ES -  is it running out of space or anything like that?

This is our smoke test.
import org.apache.spark.SparkConf
import org.apache.spark.SparkContext
import org.apache.spark.SparkContext._
import org.elasticsearch.spark._

val conf = new SparkConf().setAppName("foo").setMaster("local[8]")
conf.set("es.index.auto.create", "true")
conf.set("es.nodes", "elasticsearch.service.bohr.consul")
conf.set("es.port", "9200")
val sc = new SparkContext(conf)

val numbers = Map("one" -> 1, "two" -> 2, "three" -> 3)
val airports = Map("arrival" -> "Otopeni", "SFO" -> "San Fran")

sc.makeRDD(Seq(numbers, airports)).saveToEs("foo/bar")

On port 80 we have a reverse proxy, that returns 500 if it cannot route a request. From the logs of the reverse proxy I can see that es-hadoop is trying to make these requests:
<IP_ADDRESS> - els1.node.bohr.consul HEAD /foo HTTP/1.1 500 - 2.504 ms
<IP_ADDRESS> - els1.node.bohr.consul GET /_nodes/http HTTP/1.1 500 - 2.325 ms
<IP_ADDRESS> - els1.node.bohr.consul GET /_nodes/http HTTP/1.1 500 - 2.200 ms
<IP_ADDRESS> - els1.node.bohr.consul GET /_nodes/http HTTP/1.1 500 - 2.084 ms
<IP_ADDRESS> - els1.node.bohr.consul HEAD /foo HTTP/1.1 500 - 1.971 ms
<IP_ADDRESS> - els1.node.bohr.consul GET /_nodes/http HTTP/1.1 500 - 1.851 ms
<IP_ADDRESS> - els1.node.bohr.consul HEAD /foo HTTP/1.1 500 - 1.725 ms
<IP_ADDRESS> - els1.node.bohr.consul HEAD /foo HTTP/1.1 500 - 1.610 ms

We use consul for service discovery. It could be that ES 2.0 is redirecting requests for elasticsearch.service.bohr.consul:9200 to els1.node.bohr.consul:80.
This is our es2.0 config
# N4 settings
script.inline: on
script.indexed: on
indices.store.throttle.type: none
indices.memory.index_buffer_size: 50%
index.translog.flush_threshold_size: 1gb

cluster.name: es-bohr
node.name: "Insane Poincare"
node.data: true
bootstrap.mlockall: true
network.publish_host: els1.node.bohr.consul
discovery.zen.ping.unicast.hosts: ["els1.node.consul"]
http.cors.enabled: true
network.host: <IP_ADDRESS>

I'm investigating the network settings.

I've remove network.publish_host: els1.node.bohr.consul and now it works.


Unexpected token o in JSON at position 1

Prerequisites
We do our best to reply to all the issues on time. If you will follow the given guidelines, the turn around time will be faster.

Ensure the issue isn't already reported.
Ensure you are reporting the bug in the correct repo.

Delete the above section and the instructions in the sections below before submitting
Description
If this is a feature request, explain why it should be added. Specific use-cases are best.
For bug reports, please provide as much relevant info as possible.
Package version
2.0.2
Error Message & Stack Trace
err: {
2022-08-02T09:57:23.591840955Z       "type": "SyntaxError",
2022-08-02T09:57:23.591846064Z       "message": "Unexpected token o in JSON at position 1",
2022-08-02T09:57:23.591851234Z       "stack":
2022-08-02T09:57:23.591855993Z           SyntaxError: Unexpected token o in JSON at position 1
2022-08-02T09:57:23.591860772Z               at JSON.parse ()
2022-08-02T09:57:23.591866212Z               at Object.consume (/opt/microservices/node_modules/@verful/notifications/build/src/Models/DatabaseNotification.js:41:38)
2022-08-02T09:57:23.591871723Z               at /opt/microservices/node_modules/@adonisjs/lucid/build/src/Orm/BaseModel/index.js:1196:37
2022-08-02T09:57:23.591876812Z               at Array.forEach ()
2022-08-02T09:57:23.591881732Z               at Proxy.$consumeAdapterResult (/opt/microservices/node_modules/@adonisjs/lucid/build/src/Orm/BaseModel/index.js:1183:40)
2022-08-02T09:57:23.591886851Z               at Function.$createFromAdapterResult (/opt/microservices/node_modules/@adonisjs/lucid/build/src/Orm/BaseModel/index.js:274:18)
2022-08-02T09:57:23.591891921Z               at /opt/microservices/node_modules/@adonisjs/lucid/build/src/Orm/QueryBuilder/index.js:197:50
2022-08-02T09:57:23.591896890Z               at Array.reduce ()
2022-08-02T09:57:23.591920064Z               at HasManyQueryBuilder.execQuery (/opt/microservices/node_modules/@adonisjs/lucid/build/src/Orm/QueryBuilder/index.js:195:37)
2022-08-02T09:57:23.591925344Z               at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-08-02T09:57:23.591930183Z       "status": 500
2022-08-02T09:57:23.591935082Z     }
Relevant Information
This is happening every time I want to access users' database notifications. I followed the instructions (pretty straightforward to be honest) but didn't come to a working solution. FYI, the database is Postgres.
I identified that this part of the code is responsible for that:
@column({       prepare: (value) => JSON.stringify(value),       consume: (value) => JSON.parse(value),     })     public data: Record<string, any>
from src/Models/DatabaseNotification.ts
why is stringifying and parsing necessary? Adonis handles jsons automatically, doesn't it?

It depends on the db, it handles automatically for pretty much all the ones I tried except SQLite.
Can you provide an example of the data you are trying to store?

It depends on the db, it handles automatically for pretty much all the ones I tried except SQLite.
Can you provide an example of the data you are trying to store?

here it is:
public toDatabase(_user: User) {         return {             type: 'OVERDUE_PAYMENT',             text: Reminder by ${this.issuerName}: ${this.note},         };     }

it is stored correctly but when I want to get it, it's not working. I noticed, that Adonis doesn't need prepare & consume for jsons. I am using jsons in other tables in my DB and everything works flawlessly without needing to stringify on input and parse on output.
That is why I am asking

I dont looked at the JSON serializing process of lucid, but i think Adonis leaves it to the database driver, and in the case of SQLite, it doesn't handle serialization properly, anyway, i will look for a fix and try to release it tomorrow.

i faced same issue with postgres too

Same thing here on postgres, great package though. Commenting out the prepare/consume on the data column fixes the issue.


Option to ignore replica changes and play nice with aws_dynamodb_table_replica

Is this functionality available in the AWS provider for Terraform?
Yes, see the NOTEs here: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/dynamodb_table_replica.html and here https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/dynamodb_table.html.
Is your request related to a problem? Please describe.
This feature would provide a better work around than the one mentioned in this issue: (although the issue is closed, there is still no proper solution) https://github.com/hashicorp/terraform-provider-aws/issues/13097.
Describe the solution you'd like.
a variable that will ultimately result in lifecycle { ignore_changes = [replica] }
Additional context
This module does not give an option to ignore replicas, making it impossible to use together with aws_dynamodb_table_replica. The reason for this request stems from this outstanding unresolved issue: DynamoDB with Global table v2019.11.21 and PROVISIONED and autscaling generates Table Capacity and/or GSI capacityValidationException. The work around for the above solution is to run terraform without the replica block, and re run again with it, which is unacceptable for obvious reasons.
My situation is that I have two separate terraform configurations, one is responsible for all resources in us-east-1, and the other is responsible for all resources in us-west-2. My solution to the issue linked above is to create the source table in my us-east-1 configuration, ignoring the replica block. Once this config is applied, the us-west-1 configuration can then create a replica of the us-east-1 source table in us-west-1 using aws_dynamodb_table_replica. My us-east-1 configuration that creates the table with autoscaling is just a copy of this module with the one addition of  { ignore_changes = [replica] }. I would love to be able to avoid having my own module and instead use this module. but since there is no option to ignore replica changes, this isn't possible because a subsequent run with my us-east-1 configuration ends up deleting the replica that was created with aws_dynamodb_table_replica in my us-west-2 configuration.

has this request even been seen by anyone? please let me know if my request is not clear or incomplete. I think all that this would require is more conditional dynamo table resource blocks that ignore replica changes. i can create a PR of my own if necessary but i'm weary of that being ignored as well

welp i guess Issues filed in this repo are completely ignored, good thing i didn't waste my time drafting a PR

@brianmaresca Sorry for the delay and for ignoring this issue. The root problem with this specific issue and with similar in other repositories is that the proposed solutions are not doable, because we can't use variables inside of the lifecycle block in Terraform and control that some changes should be ignored and some not.
Not everybody will want to have to ignore changes in replica, am I right?

@antonbabenko thank you for responding! apologies for my snarky comment.
i understand variables can't be used in lifecycle blocks, but i still think there is a doable workaround. i would think a variable such as ignore_changes_replica could drive this, exactly like how ignore_changes_global_secondary_index will create a resource that ignores  gsi changes. (https://github.com/terraform-aws-modules/terraform-aws-dynamodb-table/pull/72)


Add Lambda to AWS-1R-2AZ-Sch-2Node-CF.yaml

Add Lambda to AWS-1R-2AZ-Sch-2Node-CF.yaml
Modify the lambda to update only snapshots if the Data Lifecycle policy is for snapshots only.

Was not needed


PowerShell/Pklotide.A Detected in Onedrive

Hi,
Im getting error in Onedrive/AV detecting PowershellPKlotide.A in:
Out-PowerShellLauncher.ps1
Cant find more information where or which part of the script it is detecting.
Is this normal behaviour or have any information which part might get detected as malicious? :)

Parts of Invoke-Obfuscation are being detected as malicious script content, which is good because it means the industry is progressing :)
Some users have found that disabling A/V while using Invoke-Obfuscation to be helpful.


Improve Text GUI module for better performance

Improvement idea:

when changes to any of text object happens, inform about that it's containers up to the root
when container is being drawn, if invalid state is set, then validate itself and all of it's childrens (cascade) and set all of that data to root.
this way when GUI is drawn, only one draw call for all visible text is send
work out hierarchy using depth of planes and OpenGL's depth testing.

This improvement will:

reduce draw calls to one for all visible text
reduce changes of states in OpenGL
require some way of storing informations in containers (only root has to hold that data)
Visitor pattern may apply to walk through child nodes seeking Text objects

Closed for now.


[ADAM-1747] Fixed subtract bug and tests

Resolves #1747.

I remember the logic getting confusing when I first wrote this, but somehow even the tests were wrong.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/ADAM-prb/2399/
Test PASSed.

Thank you, @devin-petersohn


Remove: Shopping 24h

Channel ID (required)
Shopping24h.vn
Reason (required)
Other
Notes
No response

Is the main goal removing the channel (because that channel never existed) or because that channel closed ?


Fix function documentation for every

It was previously copy-and-pasted from some other function

Thank you @resolritter !


Installed latest version. But I can't create users... How can I enable that?

This is a question about Enso Users creation...
Installed the latest version. But I can't create users... How can I enable that?
When I try to access the address http://myip/administration/users/create I receive 404.

Prerequisites

[X] Are you running the latest version? Yes
[X] Are you reporting to the correct repository? Yes
(enso is made of many specialized packages: https://github.com/laravel-enso)
[X] Did you check the documentation?  Yes

Description

Steps to Reproduce

Expected behavior

Actual behavior

I believe you have to do it from the people menu, select a person on the people index and then select the option to create a user of the selected person.

Thx @1988114


"Read-only" root fs

First of all, sorry for my English...
I have to create build machines with the same set of libraries and binaries. I planed to create a "golden" image and all build instance should be a clone of it. My first idea was that the "golden" image does not run, just only we have to install/update packages (CentOS7). The cloned images have to use the root filesystem as read only (so accidentally executed yum won't modify /usr).
After reading the documentations, I figured out a solution but with many additional tasks. I can create an image and I can mount its rootfs in read-only mode into other containers and I can mount all part file systems (/home, /var, /run, /tmp), but that means that

I cannot move this infrastrcture from one machine to an other
I have to create sub volumes for all machines
Attaching this profile to images does not look automatic (due to sub volumes paths)

I'm sure that there is an easier solution for this. Could you please help me?
My system:

Distribution: Ubuntu
Distribution version: 16.04.2 LTS
The output of "lxc info" or if that fails:

Kernel version: 4.4.0-64-generic
LXC version: 2.8
LXD version: 2.8
Storage backend in use: Brtfs

Can you just create that base container, then use that as the base for your build containers (possibly using --ephemeral for them) and in those, run "mount --bind /usr /usr && mount -o remount,rw /usr" to have /usr be read-only and prevent accidental package updates?

@stgraber, is there any way to implement internal block-devices with internal partitioning?

@lagunax you can pass block devices with the unix-block device type. The container can then partition it, but the partitions themselves won't be visible in the container's /dev unless you pass additional unix-block devices for them (once created) and the container won't be able to mount those devices unless it's a privileged container with a custom apparmor rule to allow it.
In short, interacting with block devices in containers is usually a bad idea. That stuff isn't properly namespaced in the kernel and if allowed is full of security issues waiting to happen as it'd allow the user to feed any data it wants to the kernel for parsing by a filesystem driver.

Thanks a lot! This solves my problem! This stuff is cool:)


Update Cargo.toml add repository

to allow crates.io, rust-digger, and others to link to it

thank you!

You are welcome. If you are interested on this page you can see all of your crates and their status as checked by the Rust Digger.


#442 VSCode Extension + Other Refactors - WIP

Introduction of a shared module - this is the migration of all core type-script logic from the CLI previously as we want to share it between the CLI and other purposes.
Shared package compiles to CommonJS - this is so that the VSCode extension can depend on it.
CLI now is a relatively empty module, but all CLI specific logic can live in there ( and we can use some of the fancier CLI features in the future )
In the shared module ( formally CLI ) made the validate function less of a god function. It now only cares about performing validations - system exit logic and how those are output/interpreted fall to others.

There are still many things to do to clean up this PR ( some mentioned above ) - but I wanted to get the WIP up and visible so that it was easier to share with others working on similar tasks.
Ideally, to make this easier to review and reduce the blast radius of the change this would be handled in multiple PR's instead of one mega-one.

The first PR would simply move from CLI -> CLI + Shared modules ( whatever we end up naming shared ) - no extensions.
Second PR would introduce the extension is isolation.


Install nvidia-375 let ubuntu(16.04) cannot login after reboot

Now for the fix
Log into your account in the TTY.
Run sudo apt-get purge nvidia-*
Run sudo add-apt-repository ppa:graphics-drivers/ppa and then sudo apt-get update.
Run sudo apt-get install nvidia-375.
Reboot and your graphics issue should be fixed.

Reference:
https://askubuntu.com/questions/760934/graphics-issues-after-while-installing-ubuntu-16-04-16-10-with-nvidia-graphics