fix(TDI-42308): fix batchMode in tMarketoOutput

What is the current behavior? (You can also link to an open issue here)
https://jira.talendforge.org/browse/TDI-42308
What is the new behavior?

increase batchSize to API max
manage batch mode in tMarketoOutput for other entities

Please check if the PR fulfills these requirements

[X] The commit message follows Talend standard
[X] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features) ?
[ ] The code coverage on new code >75%
[ ] The new code does not introduce new technical issues (sonar / eslint)

What kind of change does this PR introduce?

[X] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build / CI related changes
[ ] Other... Please describe:

Does this PR introduce a breaking change?

[ ] Yes
[X] No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information:

Pull request test result: failure :x:

Pull request test result: success :star:
Sonar results

Pull request test result: failure :x:

Pull request test result: failure :x:

Pull request test result: success :star:
Sonar results

Pull request test result: success :star:
Sonar results

Pull request test result: success :star:
Sonar results


Use codecov instead of codeclimate for coverage report

[ ] Documentation

Codecov Report

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

@@           Coverage Diff           @@
##             master   #271   +/-   ##
=======================================
  Coverage          ?   100%
=======================================
  Files             ?     11
  Lines             ?    162
  Branches          ?      0
=======================================
  Hits              ?    162
  Misses            ?      0
  Partials          ?      0

Flag
Coverage Δ

#jestspecs
100% <ø> (?)

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 70c1af5...0bf94dc. Read the comment docs.


Crash on changing cover

Steps to reproduce
go to Am I actually the strongest in library
go to artwork
crash
Expected behavior
go to Am I actually the strongest in library
go to artwork
scroll the images for the one I want
select it
set it
forget it was ever different
Actual behavior
application crashes with an error window, this is actually a first of a popup about it crashing happening, usually it just restarts without a word about crashing.
Crash logs
neko_crash_logs (5).txt
Neko version
2:12:13
Android version
android 12
Device
galaxt s7+
Other details
I haven't seen anything else mention this issue but I may have not searched it with the right terms. other manga is unaffected by this, this is the only one I know right now that is effected. -
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
[X] I have written a short but informative title.
[X] I have tried the troubleshooting guide.
[X] I have updated the app to the newest version Latest.
[X] I have filled out all of the requested information in this form.

2.12.4


Unicode support.

This patch completes the work on the UTF8 support and incorporates Rene Bakker's UTF8 testing code.  All problems in the encoder should now be fixed.  (though I still object to the fact that Java decided to call UTF-16 surrogate codes encoded as UTF-8 as anything standard).
Most of the patch is pretty clean but there were some white space errors cropping up from the autopep8 that slipped in that were cleaned up by this patch hence a few random whitespace changes.   There is one FIXME tag which has some addition clean up which is not worth doing at the current time regarding pulling Python.h into the common source.  I was not able to give Rene credit because the patch history was a major mess between the master and devel branch.  The fraction between Python2 and Python3 over str vs unicode was replicated.
There are still 3 more pulls before I get to my development head, but those are having problems with the conflict resolution that broke something when merging.   Assuming I can get those back up to working we should be getting closer to a release candidate.   Sorry for the heavy review assignments.

Test fail on ImportError: cannot import name OrderedDict for 2.6.   Appears to be a function introduced in 2.7.   I will have to work around it.

including python.h is not so much of a big deal in a cpp unit I'd guess. The fix and tests look good to me, although I have to admit that these bitshifting operations for range definitions are confusing. Do you mind adding a few more comments there to indicate whats going on there?

I added some additional documentation on the process.  The original java documentation is clear as mud because they completely neglect to mention that the valid code point range has an exclusion in the middle.  Hopefully the diagrams will make the adding, shifting, masking process more clear.
We already have some Python.h dependencies in the common section to deal with numpy.  I would rather avoid it but it is additional work, and I don't think that the common will ever be shared with Ruby again.

I should mention that the entire jp_encoding.cpp file could have been avoided, but it would have required additional JNI calls for each encoding and decoding, as we would have to request a conversion to and from byte[].  I debated going that route, but felt that it would just cause additional complexity as it could introduce additional java exceptions on a path that we need for handling exceptions.  Thus it would have required more thunk code to ensure fault tolerance.

Thanks again!


Invalid vfunction address in CROSS_VR version of NiAVObject

for explain
void PerformOp(PerformOpFunc& a_func) is located in 0x26 of the vtable on SE&AE and located in 0x27 of the vtable on VR
but in NiAVObject.cpp
it's defined 0x03 on SE&VR and 0x04 on VR
as such this, all NiAVObject vfunctions in the SKYRIM_CROSS_VR version define an invalid address

I will be looking into this by Monday (7-11-22) and if a fix is needed will try to push one out to the Vcpkg repo within a day.

Fix is now on main, will be in the upcoming release.


Fix Export adapter

Thank you for contributing to Harbor!
Comprehensive Summary of your change
Issue being fixed
Fixes #(issue)
Please indicate you've done the following:

[ ] Well Written Title and Summary of the PR
[ ] Label the PR as needed. "release-note/ignore-for-release, release-note/new-feature, release-note/update, release-note/enhancement, release-note/community, release-note/breaking-change, release-note/docs, release-note/infra, release-note/deprecation"
[ ] Accepted the DCO. Commits without the DCO will delay acceptance.
[ ] Made sure tests are passing and test coverage is added if needed.
[ ] Considered the docs impact and opened a new docs issue or PR with docs changes if needed in website repository.

Welcome to Codecov :tada:
Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.
Thanks for integrating Codecov - We've got you covered :open_umbrella:

There is some issue at the replication at https://github.com/bupd/harbor.git, the state file does not appears at the given project after replication.

Update the artifact-list-export to harbor-satellite.
and also look for workarounds for not touching the core logic.


Typos

Fixes some minor typos in the project

I come from New Zealand, and here we use 's' instead of 'z' in all the instances you have replaced it. It is the same for England and other English speaking countries. I think only America uses 'z'.
I'm sorry, I can't in good conscience change it to the American way! :P

Oh, I never realized that it was an american only thing, haha!


Chess: Move D5 to E6

Please do not change the title. Just click "Submit new issue".

@MGBoulware88 done! Successfully played move d5e6 for current game.
Thanks for playing!


BlueJeans 2.33.383 incompatibility

Microsoft PowerToys version
0.53.0
Running as admin

[X] Yes

Area(s) with issue?
General
Steps to reproduce
Install PowerToys 0.53.0 with admin rights and run as admin.
Install BlueJeans 2.33.383. I am unsure of options/config because this was pushed to a corporate computer as a package.
✔ Expected Behavior
The BlueJeans desktop app runs as designed - it stays open, can join meetings, etc.
❌ Actual Behavior
The BlueJeans desktop applications will not stay open log enough to do anything. Opening via desktop icon or system tray icon results in the app opening, but then "closing" in 3 - 5 seconds. The BlueJeans desktop app does not really appear to be closed - the system tray icon is still there - it is more like it crashes and comes back or that it gets minimized and does not continue to accomplish the desired goal (e.g., join a meeting).
The result is that I had to use a browser to join a meeting.
Prior versions of BlueJeans worked just fine. Things broke when BlueJeans got upgraded to 2.33.383 on my system (PowerToys was already installed and a prior [working] version of BlueJean was already installed).
Uninstalling/reinstalling BlueJeans did not fix anything. Only uninstalling PowerToys 0.53.0 fixes the issue. I have not had time to narrow it down to a specific PowerToys app/function. Reinstalling PowerToys 0.53.0 causes the issue to recur. Closing PowerToys does not fix the issue. I wonder if this is something similar to the Zoom issue that used to occur?
I am trying to get a bug ticket opened with BlueJeans.
Other Software
BlueJeans 2.33.383.

This issue also occurrs with PowerToys 0.53.3.
I just tried 0.55.0 and the issue seems to be resolved - BlueJeans 2.33.383 now works properly.

yeah, we fixed the zoom crashing bug which chances are was affecting this as well.  good to know it fixed you


Debug completions stop working after calling built in method

Hi, VS Code dev here :wave:

Start debuggin python hit a breakpoint
Open debug console -> notice how you get nice suggestions
Enter help()
You no more get suggestions from the python debug adapter

I guess the python interpreeter is stuck in help() mode and the adapter is no longer being able to get completions items. Is there some workaround for this scenario?

Actually all the debug requests stop working after a user types help() in the debug console


Is there anyway to add headers to the websocket?

^

I believe you're looking for the constructor WebSocketClient(URI, Map<String, String>) which accepts a Map containing additional headers you want to pass.

Map<String, String> httpHeaders = new HashMap<String, String>();
httpHeaders.put("Key","Value");
and then adding it to WebSocketCline(URI,httpHeaders);
isn't working for me

Nevermind, I fixed it!


Is cycle.js still active?

Is cycle.js in active development?
Are the create-cycle-app cli and dev tool still current?
Just installed create-cycle-app CLI, its version 5.0.0
Ran it, and it is fails with node-sass error during app creation, node-sass being deprecated and all that.
Dev Tool also fails to run the "dist" script after a parent yarn install. This tool looks excellent, so gutted about that.

I actively use Cycle.js as the framework in https://github.com/staltz/manyverse/ and intend to keep using it, I really love the pattern. The framework itself hasn't been updated recently, that is true, mostly due to lack of time and dedication for it. But apart from some parts like the devtool and create-cycle-app (which by the way is not an official tool), Cycle.js is "ready" and doesn't have a lot bugs, so it's a solid dependency to use.

This is really great news, and I thank you for taking the time to reassure me that my time has not, and will not be wasted.  So many frameworks get abandoned, and to be honest this does have some of the the signs, except in npmjs.org weekly downloads.  After full days of cycle.js research I was excited about using this "pattern" in my own projects but hesitant due to the issues mentioned.
I think your talks and explanations are excellent, the basic idea is genius and I'm hoping my implementation flows as well as I've seen in other examples.  I will jump back into learning this as much as I can.
It is a real shame the dev tool no longer builds as it looked like a really useful tool, especially when beginning to use cycle.js and getting used to it.
Thanks again.


Feature Request: Export/Import rancher config/data/etcd

It would be great if it would be possible to export and import configuration/etcd on another rancher server/ha deployment without using rke, possibly via the UI. It would simplify migrations and/or issue mitigation (issues with datacenter/provider).

https://github.com/rancher/rancher/issues/16471

Wonderful feature! Sad for this is in unscheduled :(


Use http if $INSECURE == true.

Currently, requests are defaulting to http, and providing the --insecure flag makes the requests use https.
This fixes that, so that the requests default to https, and the --insecure flag makes the request use http.

Hi s3-bash4 team,
We just encountered this exact issue. We've removed the check in s3-common-lib to avoid this and always use https, but this current logic seems back to front.

Great catch! So sorry for the late action!


typo pass

Typos pass, used https://github.com/crate-ci/typos to find them and then manually checked and fixed all findings.

Thanks, there are so many! 😊


fix: add separate filter for each type

Input
type Note {
  id: ID!
  title: String!
  description: String!
}

Output
interface Node {
    id: ID!
}

input NoteFilter {
    id: ID
    title: String
    description: String
}

type Note implements Node  {
    id: ID!
    title: String!
    description: String!
}

input NoteInput {
    title: String
    description: String
}

type NotePage {
    note: [Note!]!
    nextToken: String
}

type Query {
    findNotes(fields: NoteFilter): [Note]!
    findAllNotes: [Note]!
}

type Mutation {
    createNote(input: NoteInput!): Note!
    updateNote(id: ID!, input: NoteInput!): Note!
    deleteNote(id: ID!): ID!
}

type Subscription {
    newNote: Note!
    updatedNote: Note!
    deletedNote: ID!
}

@wtrocki so currently what are the things we want to incorporate in building ?
Pagination , Filtering and ?

Pagination and filtering. Ideally is to let people get their heads around graphql so then they can start writing their own queries and mutations.

Pagination and filtering. Ideally is to let people get their heads around graphql so then they can start writing their own queries and mutations.

So what are things we can do here?

Removed read method, as find and findAll are more reading data.


Query

Query
Link to pull request with your CodeQL query:
Relevant PR: https://github.com/github/codeql/pull/7286
CVE ID(s)
List the CVE ID(s) associated with this vulnerability. GitHub will automatically link CVE IDs to the GitHub Advisory Database.

CVE-2021-28169

Report
Describe the vulnerability. Provide any information you think will help GitHub assess the impact your query has on the open source community.
Directly incorporating user input into HTTP requests dispatched from the Java EE RequestDispatcher without proper validation of the input can allow any web application resource such as configuration files and source code to be disclosed.
As stated in the Java API doc, when using a Java EE RequestDispatcher, requests may be dispatched to any part of the web application bypassing both implicit (no direct access to WEB-INF or META-INF) and explicit (defined by the web application) security constraints. Unsanitized user provided data must not be used to construct the path passed to the RequestDispatcher as it is very likely to create a security vulnerability in the application.
This query detects unsafe invocations of RequestDispatcher with user controlled input. Important features include:

RequestDispatcher constructed from both HTTP request and servlet context
Path traversal check
Path encoding check
Check of path normalization using the java.nio.file.Path package

[x] Are you planning to discuss this vulnerability submission publicly? (Blog Post, social networks, etc). We would love to have you spread the word about the good work you are doing

Result(s)
Provide at least one useful result found by your query, on some revision of a real project.

Jetty Utility Servlets ConcatServlet Double Decoding Information Disclosure Vulnerability
softways-sa/swift-framework
Online Drug Store

Originally posted by @luchua-bc in https://github.com/github/securitylab/issues/495

Is there something in this issue for us to do, in regards to the API Security Checklist? Or can this issue be closed? Not sure I entirely understand the intentions here. Thanks.


Adds BIKE R2 hybrid ECDHE KAT and fuzz tests

Please note that while we are transitioning from travis-ci to AWS CodeBuld, some tests are run on each platform. Non-AWS contributors will temporarily be unable to see CodeBuild results. We apologize for the inconvenience.
Issue # (if available): N/A
Description of changes: Adds BIKE R2 hybrid ECDHE KAT and fuzz tests
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

:exclamation: No coverage uploaded for pull request head (bike_ecdhe_test@abdeb6f). Click here to learn what that means.
The diff coverage is n/a.


enhance selectfieldset onchange handler and onInsert to allow for embedded selectfieldsets

instead of only first select clause, attach to all (child may be not active on insert, so handler not setup)
add marker (class) to make sure we don't double attach change handler
fixes #389

if the embedded selectfieldset  is not enabled as 1st in the top selectfieldset, then its change handler does not get registered
this just hooks all of the selects in this tree and makes sure not to set more than once


[Tracking] Pre-release of the mainnet branch

[Tracking] Pre-release of the mainnet branch
Changelog
Most changes are confirmed audit fixes from the recent series of audits in preparation for mainnet. The remaining changes are either requests from custodians or necessary changes for compatibility with mainnet (i.e. URL paths, network IDs, etc.).

#2869
#3015
#3065
#3066
#3081
#3087
#3088
#3089
#3090
#3091
#3097
#3103
#3104
#3105
#3106
#3109
#3112
#3117
#3121
#3123
#3129
#3137
#3140
#3143
#3144

Note: The network ID for mainnet is 0 (where as it was 3 on testnet3). As such, please update your firewall to support these TCP ports:

4130 (previously 4133)
3030 (previously 3033)

Following this convention will ensure Aleo can better support multiple distinct testnets simultaneously after mainnet launch.
Disclaimer
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

We need to re-open this, the closure was caused by the same Github bug as before.
@vvp @joske @ljedrz do you recall how you worked around this?

@apruden2008 Just letting you know, we hit an edge case of Github Pull Requests when transitioning branches yesterday. We're going to open the same tracking PR as a new PR, as it turns out we aren't allowed to re-open this PR anymore.


Replace Option<ItemStack> with ItemStack

Describe the problem related to your feature request.
In Valence we are using Option to indicate the emptyness of an itemstack. However, vanilla does something semantically different.
public boolean isEmpty() {
    return this == EMPTY || this.item == Items.AIR || this.count <= 0;
}

This has an impact in the protocol
public PacketByteBuf writeItemStack(ItemStack stack) {
    if (stack.isEmpty()) {
        this.writeBoolean(false);
    } else {
        this.writeBoolean(true);
        Item item = stack.getItem();
        this.writeRegistryValue(Registries.ITEM, item);
        this.writeByte(stack.getCount());
        NbtCompound nbtCompound = null;
        if (item.isDamageable() || item.isNbtSynced()) {
            nbtCompound = stack.getNbt();
        }
        this.writeNbt(nbtCompound);
    }
    return this;
}

What solution would you like?

Replace all occurrences of Option<ItemStack> with ItemStack.
Add is_empty method to ItemStack with same semantics as vanilla isEmpty.
Make the item count in ItemStack public and an i8.
impl {Encode, Decode} for ItemStack.

Makes sense. This could make inventories easier to work with.

I'll give it a try.


update ug to show how to delete TAB

Codecov Report
Base: 67.50% // Head: 67.50% // No change to project coverage :thumbsup:

Coverage data is based on head (ea362de) compared to base (2b0a402).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #155   +/-   ##
=========================================
  Coverage     67.50%   67.50%
  Complexity      594      594
=========================================
  Files            99       99
  Lines          2200     2200
  Branches        234      234
=========================================
  Hits           1485     1485
  Misses          647      647
  Partials         68       68

Impacted Files
Coverage Δ

src/main/java/seedu/address/MainApp.java
0.00% <0.00%> (ø)

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.


Issue #65: First pass at converting public fields to getters and setters using lombok.

There are a still few cases where it might be possible to use DataBoundSetter  rather than DataBoundConstructor, but my main focus here was on removing public fields and using lombok to generate the accessors that would replace them.
Lombok allows you to override the default behavior by defining the methods or classes that would be generated yourself, which is useful for us e.g. some of the setters in InstanceConfiguration have custom logic or should not have the DataBoundSetter annotation because they are defined in the constructor.
Note, this change makes use of a feature which is considered experimental by project lombok, namely the use of "onMethod" which allows for setting an annotation like DataBoundSetter annotation on generated methods (the setters in our case).

So far I've had problems with running the packer script to build the specific windows image required, and rather than stay stuck I opted to get out another set of changes. I was able to resolve the initial configuration errors that prevented it from launching an instance and connecting to it, but because I was using a generic windows image it got stuck at the java check.

Ok, let me see if I can run it later. I might also have to try and share my image.

Looks like the Jenkins executors are out of memory again, but I can confirm the tests passed locally. I was having trouble with authenticating ssh after connecting with the image you gave me, but I was able to create a working windows user account on the fly using the username "jenkins" and the password I provided through an environment variable, and when I did this the tests passed.


feat: mnlistdiff move nversion to first position

Issue being fixed or feature implemented
Version field should always be the first field of a message for better readibility.
What was done?

Introduced new protocol version MNLISTDIFF_VERSION_ORDER (70229).
nVersion serialisation order is changed for clients with protocol version greater than or equal to 70229.
For clients with protocol version >= 70225 and < 70229 the old order is used: can be deprecated in the future.
Increased functional test P2P mininode's protocol version to 70229.

How Has This Been Tested?
feature_llmq_rotation.py with new protocol version.
Breaking Changes
Checklist:

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

light-NACK; Yes the version should be first but... do we really need to change it? I'd prefer to just avoid the complexity and added proto version unless mobile will have a hard time without this change (which looking at it, maybe they will/would, but I want that clarified)


Revert: Bump rspec-mocks from 3.11.1 to 3.11.2 - accidentially

Reverts cloudfoundry/uaa-release#425

@strehle Was there some reason this needed to be reverted?
Cc: @Tallicia

simply because I merged it accidentially  and thus I was not sure for "your" codeline I reverted it.


GreasedLine docs

I've tested all PGs once again, fixed one or two wrong PG numbers and I've added a clone example. I think these PGs covers almost everything to start playing with the line. I'd like to add some tips and hacks PGs in the very near future ;-)

Nice doc !!!! :-)

Thanks! It needs maybe 10+ more PGs to show advanced techniques and tricks/hacks I have discovered while coding GreasedLine. I'll create a new page for the advanced section.


Add QC looking for xrefs to OMIM genes

This is a QC check in case you want it @twhetzel - I dont have a strong opinion either way. It looks for OMIM genes in Xrefs, and fails if it finds any. See #7983  for context.

I thought this was failing because of the existing use of gene symbols in xrefs, ie what this qc check is for, but it is failing with a warning for 11439 entries:
robot --catalog catalog-v001.xml merge -i reasoned.owl annotate -V [http://purl.obolibrary.org/obo/mondo/releases/`date](http://purl.obolibrary.org/obo/mondo/releases/%60date) +%Y-%m-%d`/mondo.owl -o mondo.owl
owltools  --log-error --use-catalog mondo.owl --reasoner elk --merge-equivalence-sets -P MONDO -s MONDO 100 --remove-dangling -o test_nomerge
robot --catalog catalog-v001.xml report --fail-on ERROR --profile profile.txt --print 8 -i mondo-tags-reasoned.owl -o reports/robot-report-mondo-tags-reasoned.owl.tsv
Violations: 11439
-----------------
ERROR:      0
WARN:       11439
INFO:       0

First 8 violations:
WARN	duplicate_exact_synonym	MONDO:0017304	oboInOwl:hasExactSynonym	XLOA
WARN	duplicate_exact_synonym	MONDO:0021019	oboInOwl:hasExactSynonym	XLOA
WARN	duplicate_exact_synonym	MONDO:0006015	oboInOwl:hasExactSynonym	WFS
WARN	duplicate_exact_synonym	MONDO:0018105	oboInOwl:hasExactSynonym	WFS
WARN	duplicate_exact_synonym	MONDO:0005102	oboInOwl:hasExactSynonym	UES
WARN	duplicate_exact_synonym	MONDO:0015795	oboInOwl:hasExactSynonym	UES
WARN	duplicate_exact_synonym	MONDO:0010979	oboInOwl:hasExactSynonym	TS
WARN	duplicate_exact_synonym	MONDO:00[164](https://github.com/monarch-initiative/mondo/actions/runs/10029452649/job/27717647532?pr=7984#step:4:165)55	oboInOwl:hasExactSynonym	TS

Looking at the check, it fails with these lines:
robot --catalog catalog-v001.xml query --use-graphs true -i tmp/omim.owl -f tsv --tdb true --query ../sparql/reports/omim-genes.sparql tmp/omim-genes.tsv
sed -i 's/[?]//g' tmp/omim-genes.tsv
sed -i 's/[<]https[:][/][/]omim[.]org[/]entry[/]/OMIM:/g' tmp/omim-genes.tsv
sed -i 's/>//g' tmp/omim-genes.tsv
tail -n +2 tmp/omim-genes.tsv > output_file && mv output_file tmp/omim-genes.tsv
grep -Ff tmp/omim-genes.tsv mondo-edit.obo | grep '^xref' > tmp/omim-gene-matches.txt || true
if [ -s tmp/omim-gene-matches.txt ]; then \
	echo "Error: xref matches found in tmp/omim-gene-matches.txt"; \
	exit 1; \
fi
Error: xref matches found in tmp/omim-gene-matches.txt
make: *** [mondo.Makefile:619: tmp/omim-gene-matches.txt] Error 1

Which is exactly what the check intended. WARN messages in the sparql check should never cause the pipeline to fail!
You approved this PR, so now i am unsure if you intended for me to fix something or just merge it - I assigned it to you so you decide if you want this test, which adds runtime of the test suite for something that may be a bit unlikely to happen in the future. So I'd rather that you keep it assigned to yourself?

Too many changes in master now to deal with. Recreated with https://github.com/monarch-initiative/mondo/pull/8020


Multiple select2 selects in separate modals on the same page, only last one works.

Using select2 version 4.0.15, Bootstrap 4.3.1 and the latest jQuery. Testing in Chrome (Mac Mojave and Windows 10)
I have a page for researcher profiles that contains sections for their projects, papers and other work. Each of these sections allows the user to add a new item by selecting it from a dropdown that's contained in a Bootstrap modal popup, one popup per section. I'm trying to apply select2 to all of these popups, but only the last call to select2() works. I'm using the dropdownParent as required, with the parent being a jquery selector by ID for the modal, and the selector for the select element is a compound selector for the select element within the modal.  I've verified that the selectors do indeed yield the desired elements.
JSBin Snapshot: https://jsbin.com/vaqovaf/9/edit?html,css,js,output
In the JSBin simply click on the "+" buttons and you'll see the popups. You can verify only the last registered select works by switching the order of the calls in the JavaScript pane.
I've searched issues and looked at those listed below this box as I type, and do not see anything relevant.

This issue is caused by the same ID being used for multiple Select2 elements. Select2 expects that IDs are unique, because per the HTML spec they are supposed to be, so it ends up destroying any other elements that exist with the same ID will be destroyed. This is expected behavior and the solution is to not reuse IDs on the same page.


fix nginx logs description

the log file is linked to the device, not viceversa :)

Proposed changes

Unreleased project version (optional)

Related issues (optional)

Looks good, let's ship it!


Use 2 spaces to indent HTML files

Use 2 spaces for indent in HTML files, following Google Styleguide (https://google.github.io/styleguide/htmlcssguide.xml?showone=Indentation#Indentation)

Current coverage is 55.25% (diff: 100%)

Merging #770 into master will not change coverage

@@             master       #770   diff @@
==========================================
  Files           110        110
  Lines          5820       5820
  Methods           0          0
  Messages          0          0
  Branches        708        708
==========================================
  Hits           3216       3216
  Misses         2474       2474
  Partials        130        130

Powered by Codecov. Last update 138c8ba...77b8ed8

As we discussed I'll include changes to all templates in this pull request. This change should wait for other front-end related fixed to be merged, to avoid much conflicts.


Chrome version 70.0.3538.77 64 bits not working when latin chars

Hi,
After Chrome update 70.0.3538.77 64 bits not working with fileDownload:
Before update:
nomtab=Visualização
Request.Form: nomtab=Visualiza%u00e7%u00e3o
After update:
nomtab=VisualizaÃ§Ã£o
Request.Form: nomtab=Visualiza%u00c3%u00a7%u00c3%u00a3o
When not using fileDownload, Chrome works.
Edge works fine with fileDownload.
Any suggestions?!
Thanks!

It's working doing that way:
I already changed the target and the action of the form to an iframe:
var $frm_go = $(frm_go);
$frm_go.attr("target", "ifr_export");
$frm_go.attr("action", str_site + "/admin/includes/export/export.aspx");
$frm_go.submit();

Submit function:
$(document.forms["frm_app_generate"]).off('submit').on("submit", function (e)
{
    var $this = $(this);
    $.fileDownload($this.attr('action'), {

        failCallback: function (responseHtml, url)
        {
            //...
        },
        successCallback: function (url)
        {
            //...
        },
        httpMethod: "POST",
        formName: "frm_app_generate",
        iframeId: "ifr_export",
        data: $this.serialize()
    });
    e.preventDefault(); //otherwise a normal form submit would occur
});

Inside fileDownload.js:
Added parameters inside extend:
        formName: 0,
        iframeId: null,

And then  just call the submit again:
    /*
    if (httpMethodUpper === "GET") {
    ...
        $form.submit();
    }
    */

    $iframe = $("#" + settings.iframeId);
    $form = document.forms[settings.formName];
    $form.submit();

glad you got it working. it looks like stuff is working on the demo site http://jqueryfiledownload.apphb.com/ too in regard to POSTs on latest chrome for me so I'm going to close this


Cleanup ff-security-summary reference-manual page

Minor style-guide related changes made to page.
QA Steps: checked rendered output in browser, ran linter and linkcheck.
This commit applies to FFTK-2795
Readiness

[x] Merge (pending reviews)
[ ] Merge after date or event
[ ] Draft

Overview
Why merge this PR? What does it solve?
Checklist
Optional. Add a 'x' to steps taken.
You can fill this out after opening the PR. "Did I..."

[x] Run spelling and grammar check, preferably with linter.
[x] Avoid changing any header associated with a link/reference.
[ ] Step through instructions (or ask someone to do so).
[x] Review for wordiness
[x] Match tone and style of page/section.
[x] Run make linkcheck.
[x] View HTML in a browser to check rendering.
[x] Use semantic newlines.
[x] follow best practices for commits.

[x] Descriptive title written in the imperative.
[x] Include brief overview of QA steps taken.
[x] Mention any related issues numbers.
[x] End message with sign off/DCO line (-s, --signoff).
[x] Sign commit with your gpg key (-S, --gpg-sign).
[x] Squash commits if needed.

[x] Request PR review by a technical writer and at least one peer.

Comments
Any thing else that a maintainer/reviewer should know.
This could include potential issues, rational for approach, etc.

Docs for ab0b4a0aef1765ffd76e0790ce634041b5a034e7 are browsable at: https://ci.foundries.io/projects/fio-docs/builds/2531/docs/artifacts/html/index.html


Toast Issue with React Native App in background or closing app

Hi Guys,
I am facing this issue with my RN application
First of all I'm using the native bas eversion 2.12.1 and RN version 0.55.4. The Toast is perfectly working but there is one issue I found which the error evaluating 'this.toastInstance._root' Error when using Toast was showing when I do this steps.
First I newly open my app, then tried to test out the toast which perfectly works. Then I tried to go on different screen using the react-navigation and still it works fine.
If I use my Android back button, it will close the App. then if I open again my app, and tried to check out the Toast, the error shows up. It seems the  tag on my main App is disappear which the error occur when I test the Toast again.
I have tried everything from the comments on this issue
https://github.com/GeekyAnts/NativeBase/issues/1121
Please if anyone can look into this.
thanks,

Hi @mohit-brainizen , can you provide minimal code reproduction on snack for the same?

@hanykumar
Below is the code for my App.js
`export default () => (
<Root>
    <MenuProvider>
        <Provider store={store}>
            <NetworkProvider  pingInterval={15000} >
            <AppDrawerNavigator uriPrefix={prefix}/>
            </NetworkProvider>
        </Provider>
    </MenuProvider>
</Root>

);
And here is the code i am using for toastexport const showInternetToast = (isFocused, refreshFunction, withoutHeader=false) => {
if(isFocused) {
Toast.show({
textStyle: {
fontSize: wp('4.5%'),
textAlign: 'center'
},
buttonTextStyle: {fontSize: wp('4%')},
text: 'No Internet !',
buttonText: 'Try Again',
onClose: (reason) => {
//This is because the toast component closes when
// pressed onClose, so we implicitly check if
// internet is connected, if not we show the toast
// component again
if (!internetConnected) {
showInternetToast(isFocused, refreshFunction)
} else {
if (reason == 'user') {
refreshFunction()
}
}
},
position: 'top',
style: withoutHeader ? {marginTop: wp('6%')} : {marginTop: wp('16.2%')},
duration: 3000000
})
}
}`

Hi @mohit-brainizen , we are unable to reproduce the same. Kindly provide minimal code reproduction on snack.


Update using-https-in-development.md

Hi,
it looks like some People run into the same problem
https://stackoverflow.com/questions/44574399/create-react-app-how-to-use-https-instead-of-http
Cheers

Changing the instructions like this does not make it clear what is being done. Exporting the variable will set it for all commands in that shell session.
export HTTPS=true npm start

means set HTTPS to true for this command and all future commands so if you wanted to run https this time and then leave off the variable on the next run, https would still be true.
HTTPS=true npm start

without the export means set the variable for this one run.


Task Redesign

Feature request
Description

This directly related to the efforts in https://github.com/open-rmf/rmf_ros2/issues/107.

[x] https://github.com/open-rmf/rmf-web/issues/556
[x] https://github.com/open-rmf/rmf-web/issues/555
[x] https://github.com/open-rmf/rmf-web/issues/557
[x] Changes in api-server to support requests, cancellation and other task related calls.
[x] Migrate dashboard main task request forms to use the new data models.
[ ] Changes to dashboard to allow users to compose flexible tasks and send requests.
[ ] Changes to dashboard to allow users to cancel or perform any other new task related calls.

Implementation considerations

Any development and testing should be targeted at prototype/task_v2-2

Additional information

Architectural changes were needed, and has since been backported into main, https://github.com/open-rmf/rmf-web/pull/565
Branch prototype/task_v2-2 targets main after the backport.

Per VC,

Task logs and phase logs are not displayed in the prototype, this should be decided and put into the prototype if needed.
Other fields in the prototype, start_waypoint and finish_waypoint, etc, are not readily available in the Task state or logs, should this be parsed from the event logs, or be placed into the schema?

Other fields in the prototype, start_waypoint and finish_waypoint, etc, are not readily available in the Task state or logs, should this be parsed from the event logs, or be placed into the schema?

@mxgrey is there currently a plan to add them to the schema or do we try to infer them on the frontend/api server side?

My most recent stance on this is to not include this information on the dashboard until there's a concrete request/requirement for it related to a project or deployment.
To me personally, it's not obvious that knowing where the robot was at the start of a task or will be at the end of a task is important enough information to include in the high level overview. Especially because I can imagine that some tasks won't have a definite endpoint, for example an infinite patrolling task.
If anyone feels differently and believes we ought to include that information I'm genuinely open to hearing that opinion and figuring out the "right" way to provide that information. Maybe it can be an optional field which we display if the information is available, but leave blank (or say unknown) when the information is not available. And maybe we should provide that information per phase instead of per task.

Closing this as the remaining feature of composing and dispatching flexible tasks can be tracked separately, https://github.com/open-rmf/rmf-web/issues/554


running /packit propose-update results in traceback: AssertionError

...and sentry didn't catch this :/
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/celery/app/trace.py", line 385, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/celery/app/trace.py", line 650, in __protected_call__
    return self.run(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/sentry_sdk/integrations/celery.py", line 169, in _inner
    reraise(*exc_info)
  File "/usr/local/lib/python3.7/site-packages/sentry_sdk/_compat.py", line 57, in reraise
    raise value
  File "/usr/local/lib/python3.7/site-packages/sentry_sdk/integrations/celery.py", line 164, in _inner
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/packit_service/worker/tasks.py", line 66, in process_message
    event=event, topic=topic, source=source
  File "/usr/local/lib/python3.7/site-packages/packit_service/worker/jobs.py", line 346, in process_message
    jobs_results[job_type] = self.process_comment_jobs(event_object)
  File "/usr/local/lib/python3.7/site-packages/packit_service/worker/jobs.py", line 275, in process_comment_jobs
    return handler_instance.run_n_clean()
  File "/usr/local/lib/python3.7/site-packages/packit_service/worker/handlers/abstract.py", line 109, in run_n_clean
    return self.run()
  File "/usr/local/lib/python3.7/site-packages/packit_service/worker/handlers/github_handlers.py", line 555, in run
    package_config=self.event.package_config,
  File "/usr/local/lib/python3.7/site-packages/packit_service/service/events.py", line 238, in package_config
    self._package_config = self.get_package_config()
  File "/usr/local/lib/python3.7/site-packages/packit_service/service/events.py", line 281, in get_package_config
    spec_file_path=spec_path,
  File "/usr/local/lib/python3.7/site-packages/packit_service/config.py", line 166, in get_package_config_from_repo
    spec_file_path=spec_file_path,
  File "/usr/local/lib/python3.7/site-packages/packit/config/package_config.py", line 313, in get_package_config_from_repo
    path=config_file_name, ref=ref
  File "/usr/local/lib/python3.7/site-packages/ogr/services/github/project.py", line 426, in get_file_content
    path=path, ref=ref
  File "/usr/lib/python3.7/site-packages/github/Repository.py", line 1504, in get_contents
    assert ref is github.GithubObject.NotSet or isinstance(ref, str), ref
AssertionError: None

This should be fixed by #736


SLA Entity- New edges and attributes

Please add the following new edges between SLA entity and Incident / ChangeRequest/ Problem:
ogit/ServiceManagement/Incident => ogit/ complies ogit/ServiceManagement/SLA
ogit/ServiceManagement/ChangeRequest => ogit/complies ogit/ServiceManagement/SLA
ogit/ServiceManagement/Problem =>  ogit/complies ogit/ServiceManagement/SLA
For the external tools that the connectors will deal with i suggest adding the following attributes for the SLA entity as optional attributes:

startTime: Creation time of the SLA
actualTimeLeft: Time remaining until SLA breach
actualTimeElapsed: time between start time and now (minus pause duration).
plannedEndTime: When the SLA will become breached
stage: Stage values which are defined for task SLA records (In progress, Breached, Achieved, Cancelled, Completed, Paused)

@Ay-men
In order to have all SLA related changes in one issue, please add missing optional attributes for entity SLA and their descriptions in case it's a new attribute.
(This issue should be resolved as an exercise Monday afternoon.)

Alles klar !

Done!

Hi Aymen,
The new attribute files are fine. But one error was there. The files need the .yaml extension. :-) I have add it, so now all the stuff have to work.

Hi Peter,
Ah, yes.
I have seen it, when i created the entity. I thought the file format should be added automatically.
But thank you for the notification.
Best regards / Mit freundlichen Grüßen
Aymen Ayoub
--
Aymen Ayoub
Automation Expert
arago GmbH
Eschersheimer Landstraße 526 - 532
60433 Frankfurt am Main
E-Mail: aayoub<EMAIL_ADDRESS>- www: http://autopilot.cohttp://autopilot.co/ - http://arago.cohttp://arago.co/
Tel: +49-0170-5461481
Fax: +49-69-40568-111
Bankverbindung: Frankfurter Sparkasse, IBAN: DE08 5005 0201 0000 0793 43, BIC: HELADEF1822
Geschäftsführer: Boos, Hans-Christian - Registergericht: Amtsgericht Frankfurt am Main
Geschäftsanschrift: Eschersheimer Landstraße 526, 60433 Frankfurt am Main - HRB 100909
Ust.Idnr. DE 178572359 - Steuernummer 2603<PHONE_NUMBER>5
Von: plarem <notifications<EMAIL_ADDRESS>Antworten an: arago/OGIT <reply<EMAIL_ADDRESS>Datum: Dienstag, 9. Juni 2015 09:28
An: arago/OGIT <OGIT<EMAIL_ADDRESS>Cc: Aymen Ayoub <aayoub<EMAIL_ADDRESS>Betreff: Re: [OGIT] SLA Entity- New edges and attributes (#179)
Hi Aymen,
The new attribute files are fine. But one error was there. The files need the .yaml extension. :-) I have add it, so now all the stuff have to work.

Reply to this email directly or view it on GitHubhttps://github.com/arago/OGIT/issues/179#issuecomment-110259308.


Update to .NET 5 and C# 9

….NET Core 3.1 packages to .NET 5 RC 1 versions.
Resolves
Fixes issue #365
Description
Upgraded TargetFramework of .NET Core 3.1 projects to target .NET 5
Upgraded .NET Core 3.1 PackageReferences to .NET 5 RC 1 versions

There's a failing integration test with the error:
Initialization method MLOps.NET.SQLite.IntegrationTests.KubernetesEndToEndTests.Initialize threw exception. System.InvalidOperationException: registryName cannot be empty.
@aslotte AFAIK this is in the settings file. I'm not sure if this gets injected from someplace that I'd need to change as well?

Thanks for your contribution so far @RonaldMariah. The specific test that is failing uses environment configuration values in the CI yml file (based on set secrets in this repo). They seem to still be set, but it's possible that something has changed in .NET 5 reading configuration values (or it may just be a Git fluke). I can look at it more in detail in the next few days.


[Bug]: Cant' open project -  undefined is not an object (evaluating 'c.fsPath.split')

What happened?
When i want to open a project i get this error:
Failed to load project: undefined is not an object (evaluating 'c.fsPath.split')
This is annoying because i put a lot of work in the project and now i cannot load it :/
What was the expected functionality?
Open my project
Describe your environment
macbook pro m2,  rivet 1.7.4
Relevant log output
No response
Relevant screenshots
No response
Code of Conduct

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

This seems to happen when i opened a project.
And try to open a clone of the project with the same ID

fixed by PR https://github.com/Ironclad/rivet/pull/293


[PHPStan] Add @var string[] on array of string, detected by enable StringifyStrNeedlesRector

Description
with enable StringifyStrNeedlesRector, the cast (string) is applied to array data with mixed type.
This PR apply @var string[] so it skipped by StringifyStrNeedlesRector correctly.
https://github.com/rectorphp/rector/blob/main/docs/rector_rules_overview.md#stringifystrneedlesrector
Checklist:

[x] Securely signed commits
[ ] Component(s) with PHPDoc blocks, only if necessary or adds value
[ ] Unit testing, with >80% coverage
[ ] User guide updated
[ ] Conforms to style guide

@kenjis updated 👍

@datamweb updated 👍

Thank you @kenjis @datamweb for the review, I am merging it ;)


Fix: pressing the component inside the card component

https://github.com/meteor-factory/react-native-tinder-swipe-cards/issues/94

im  still not able to get onpress button inside a card


Update README

Testing out PR process

 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.


[Bug&Features] Current problems with restls

1.The restls only verifies some of the values, and if the middleman takes out the values and signature information used for the signature and changes other data, it may cause feature disclosure.

For example: cipher suites, compress method, alpn

2.If either the client or the server throws an Alert, the current packet is dropped and a failback is performed (May)
3.TLS downgrade. The client provides a 1.3 signature and ClientHello, but the server does not support TLS 1.3. It will automatically downgrade to 1.2, but this will cause the signature auth to fail

Since you haven't implemented TLS 1.2 yet, this can be improved later

4.The author of shadowtls said in the document that any data packet was tampered with and an Alert was thrown.

Note that TLS normal shutdown sends an Alert of Close Notify, it can show on wireshark

I am sorry that I can only provide so much, I need to reserve some questions to ensure that my own TLS protocol will not be blocked by the firewall.
NOTICE: Please note that I am not a professional in Rust, I am just a junior high school student, if there is a mistake please correct.

On the other hand, although restls is mostly well designed and completely avoids the problems of shadow TLS v2, it still has a serious problem, which is the connection characteristics.
So much for now. If you are interested, you can reply to this message. I will read it when I am free.

TLS takes care of the rest. If anyone modifies the data, the TLS client/server will figure that out since HandshakeFinished includes a hash of ALL records in the handshake.
That's a desired behaviour that looks good to me. If there isn't an ongoing attack, it's hard to imagine why client/server would through a TLS Alert. If there's an attack, either party should throw an alert and drop the connection.
Restls has support for TLS 1.2 with the help of the VersionHint and CurveHint. The user should provide the desired TLS version of the parroted server, e.g., for www.microsoft.com it's TLS13 while for learn.microsoft.com it's TLS12. In the case of TLS12, the session id (signature) is not computed from the key_share. Instead, it's computed from the public key that client will send in ClientKeyExchange. Failed to provide the correct version will result in the fallback behaviour. Once you provide the correct version hint, it's likely to stay unchanged for good. So there isn't a downgrade threat for Restls and that won't hurt the usability/compatibility with TLS v1.2
It's on the road map and we're pretty confident that it will be solved in a future milestone. Restls will be able to provide a perfect impersonation of the entire TLS connection.
Proxy traffic behaviour is something that we prefer to solve later, but that will be mitigated as soon as we achieve an overall perfect impersonation.

I know he will come to HandshakeFinish for HMAC certification, but before that, There is a possibility of a demotion or a renewal, which will not be difficult to resolve. Good luck.
Another thing to mention is that the fragment size of TLS subsequent content is a problem, which needs to choose an appropriate value.

As for the connection characteristics, this is not a very simple thing to deal with, including my personal agreement, there is no good way at present.
Normal connections are characterized by long connection (keep-alive), but if a redirect attack is carried out, the client knows it, but it is difficult to maintain a long connection with the server, because the server may close the connection in advance.
Redirection attacks may not be realistic and will probably not be implemented, but there are other details that need to be worked out
Good luck.

I know he will come to HandshakeFinish for HMAC certification, but before that, There is a possibility of a demotion or a renewal, which will not be difficult to resolve. Good luck.
抱歉，这一块还是不太理解，请问能说得更详细一些吗？谢谢！

I know he will come to HandshakeFinish for HMAC certification, but before that, There is a possibility of a demotion or a renewal, which will not be difficult to resolve. Good luck.

抱歉，这一块还是不太理解，请问能说得更详细一些吗？谢谢！

比如说，CipherSuite里面会有FAILBACK的，服务器Random是TLS DOWNGRADE的，或者压缩套件不支持的，建议整包保护


Background processing broken?

Hi,
After upgrading to the 5.1 version my DSMR Reader instance isn't processing the received data anymore.
See screenshot

.
Any known issue?

You need to post the log of the addon. Also explain how your setup looks like. The are also other issues like https://community.home-assistant.io/t/dsmr-reader-add-on-for-home-assistant/279087/208?u=sanderdw possible.

Yes, agreed. I think this part of the log is interesting :
2022-04-04 12:01:53,521 ERROR    schedule     execute_scheduled_processes      37 | (IntegrityError) dsmr_consumption.services.run errored: null value in column "delivered_1" violates not-null constraint DETAIL:  Failing row contains (437786, 2022-04-01 06:58:00+00, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null).
TimeScaleDB Has been rolled back indeed because of it breaking after the upgrade.
Setup is pretty simple : Smart meter -> P1 to USB cable directly to my Intel NUC which is running HassIO in Supervised mode. Worked until the upgrade!

Maybe have a look here as it's not related to the addon but to the software itself? https://github.com/dsmrreader/dsmr-reader/issues/1288


Write a Swift program to find sum of numbers

Description
Write a Swift program to find sum of numbers
Input  : 1 2 3 4 5
Output : 15

How to contribute

Save the solution in FindSumOfNumbers.swift file
Add FindSumOfNumbers.swift file in find-sum-of-numbers folder

!assign


Removed the extra space when displaying player names and details.

Output looks neat when the extra space between player names and details is removed.

Thanks for the merge! :)


How to handle tcp client accident close without sending closing message to server when using ConnectionHandler

If the tcp client close without communicating to the server,the kestrel server will close this connection when reading data next time, but I want to do some more extra disconnection operations like logging something or writing something to database.
Is there any shutdown event I can register to the shutdown method?

We should be signalling the HttpContext.RequestAborted cancellation token if the client disconnects. You can register a handler on that token to be signalled, or check it proactively in your code.

Oops, missed that you said ConnectionHandler :). The ConnectionContext.ConnectionClosed token serves the same purpose there.


Pixel-wise histogramming

Hi all,
I am wondering if there is any plan to have a class/function to create an histogram along a given axis (e.g. pixel-wise).
Example on 2 waveforms:
data_cube = np.array([[1, 2, 2, 2, 5] ,[6, 7, 7, 8, 10]])
bins = np.arange(0, 11, 1)
hist = utils.histogram.1DHistrogram(bins=bins)
hist.fill(data)
hist_data = hist.data
print(hist_data)
>>> [[0, 1, 3, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 1, 2, 1, 0, 1]]

Right now the workaround I have for that in numpy is :
hist_data = np.zeros((data.shape[0], bins.shape[0]))
for pixel in range(data.shape[0]):
    hist_data[pixel] +=  np.histogram(data[pixel], bins=bins)[0]

Of course this is taking much more time than if there was in numpy anything like :
hist_data = np.histogram(data, bins=bins, axis=0)
So far histograms could be performed with np.digitize and np.bincount. Unfortunately np.bincount does not support axis.
I believe this could be useful if we want to do per pixel ADC distributions (for instance single p.e. spectrum  per pixel or to check if a pixel is noisy). This might be linked to the point rose by @kosack in #571.
The issue with the actual event-wise reading and pixel-wise histogram construction is that it could have a huge performance impact if we need e.g. 10k waveforms of ~50 samples form ~ 2k pixels to build pixel-wise distributions.
Do you have any suggestions ? Or better workaround I missed ?
Thanks, Cyril

This could do the job ?
data = np.random.uniform(size=(1296, 50))
bins = np.arange(0, 4096, 1)
temp = np.digitize(data, bins=bins)
temp = temp[..., np.newaxis] == np.arange(bins.shape[0])
hist_data = temp.sum(axis=1)

One of the philosophical difference of numpy/scipy that is different from ROOT is that histograms are not considered 1st class objects, rather just operations using NDArrays like anything else.  So I think @calispac's suggestion is fine - we could of course add a nice function that wraps that for simplicity, since it may be something we do often.
Even the utils.Histogram was just there as a stop-gap for ROOT users, however it's somewhat nice to include the I/O functions in it, so having a class to do what is shown above could still be useful, since we can add read() and write() methods to it if we like.

The example above is not in-place and can take more computation time since complexity is O(n * n_bins) I ended up doing some benchmarks with various implementations:

Python for loop over np.histogram
np.digitize + C code to replace np.bincount
full C code to compute the histograms

Finally the C code implementation performs better and complexity is O(n * log(n_bins)).
``
import numpy as np
import ctypes
from numpy.ctypeslib import ndpointer
import os
from matplotlib.offsetbox import AnchoredText
import matplotlib.pyplot as plt
lib = np.ctypeslib.load_library("histogram_c.so", os.path.dirname(file))
histogram = lib.histogram
histogram.argtypes = [ndpointer(ctypes.c_float, flags="C_CONTIGUOUS"),
ndpointer(ctypes.c_uint, flags="C_CONTIGUOUS"),
ndpointer(ctypes.c_uint, flags="C_CONTIGUOUS"),
ndpointer(ctypes.c_uint, flags="C_CONTIGUOUS"),
ndpointer(ctypes.c_float, flags="C_CONTIGUOUS"),
ctypes.c_uint, ctypes.c_uint, ctypes.c_uint]
all = ['Histogram1D']
class Histogram1D:
def __init__(self,  bin_edges, data_shape=(1, ), name="1D Histogram", axis_name=None):

    self.data = np.zeros(data_shape + (bin_edges.shape[0] - 1, ), dtype=np.uint32)
    self.shape = self.data.shape
    self.bins = np.sort(bin_edges).astype(np.float32)
    self.bin_centers = np.diff(self.bins) / 2. + self.bins[:-1]
    self.n_bins = self.bin_centers.shape[-1]
    self.name = name
    self.axis_name = axis_name
    self.underflow = np.zeros(data_shape, dtype=np.uint32)
    self.overflow = np.zeros(data_shape, dtype=np.uint32)

def fill(self, data_points):

    if data_points.shape[:-1] != self.shape[:-1]:

        raise IndexError

    new_first_axis = 1
    for i in self.shape[:-1]:
        new_first_axis *= i

    data_points = data_points.reshape(new_first_axis, -1).astype(np.float32, order='C')

    self.data = self.data.reshape(new_first_axis, -1)
    self.underflow = self.underflow.reshape(new_first_axis, -1)
    self.overflow = self.overflow.reshape(new_first_axis, -1)

    histogram(data_points, self.data, self.underflow, self.overflow, self.bins, data_points.shape[0], data_points.shape[-1], self.bins.shape[-1])

    self.data = self.data.reshape(self.shape)
    self.underflow = self.underflow.reshape(self.shape[:-1])
    self.overflow = self.overflow.reshape(self.shape[:-1])

def errors(self, index=[...]):

    return np.sqrt(self.data[index])

def mean(self, index=[...]):

    return np.sum(self.data[index] * self.bin_centers, axis=-1) / np.sum(self.data[index], axis=-1)

def std(self, index=[...]):

    std = np.sum(self.data[index] * self.bin_centers **2)
    std /= np.sum(self.data[index], axis=-1)
    std -= self.mean(index=index)
    return np.sqrt(std)

def show(self, index, axis=None, normed=False, **kwargs):

    if axis is None:

        fig = plt.figure()
        axis = fig.add_subplot(111)

    text = ' counts : {}\n underflow : {}\n overflow : {}\n mean : {:.4f}\n std : {:.4f}'.format(np.sum(self.data[index]), np.sum(self.underflow[index]), np.sum(self.overflow[index]), self.mean(index=index), self.std(index=index))
    x = self.bin_centers
    y = self.data[index]
    err = self.errors(index=index)
    mask = y > 0

    x = x[mask]
    y = y[mask]
    err = err[mask]

    if normed:

        weights = np.sum(y, axis=-1)
        y = y / weights
        err = err / weights

    steps = axis.step(x, y, where='mid', label='{}'.format(index), **kwargs)
    axis.errorbar(x, y, yerr=err, linestyle='None', color=steps[0].get_color())

    anchored_text = AnchoredText(text, loc=2)
    axis.add_artist(anchored_text)

    axis.set_xlabel('{}'.format(self.axis_name))
    axis.set_ylabel('count' if not normed else 'probability')
    axis.legend(loc='best')

    return fig

if name == 'main':
my_histo = Histogram1D(data_shape=(5, 3), bin_edges=np.arange(-100, 100, 1), axis_name='ADC')
dat = np.random.normal(0, 5, size=(5, 3,  8000))
my_histo.fill(data_points=dat)
dat = np.random.normal(0, 5, size=(5, 3, 10000))
my_histo.fill(data_points=dat)

print(my_histo.bin_centers)
print(my_histo.data)
print(my_histo.underflow)
print(my_histo.overflow)
print(my_histo.mean())
print(my_histo.std())

my_histo.show(index=(4, 2), normed=False)
plt.show()

``
``
#include <stdint.h>
#include <stdio.h>
void histogram(const float *data, unsigned int *hist, unsigned int *underflow, unsigned int *overflow, const float *bins, const unsigned int n_pixels, const unsigned int n_samples, const unsigned int n_bins)
{
unsigned int index_hist, index_data, index_bin, first, last;

for (unsigned int i = 0; i < n_pixels; ++i)
{

    for (unsigned int j = 0; j < n_samples; ++j)

    {

        index_data = i * (n_samples) + j;
        // printf("%d\n", index_data);

        if (data[index_data] >= (bins[0]) && (data[index_data] < bins[n_bins - 1]))
        {

            first = 0;
            last = n_bins - 1;
            index_bin = (first + last) / 2;

            while(first <= last)
            {

                if ((data[index_data] >= bins[index_bin]) && (data[index_data] < bins[index_bin + 1]))

                {
                    index_hist = i * (n_bins - 1) + index_bin;
                    // printf("%d\n", index_hist);
                    ++hist[index_hist];
                    break;
                }

                else if (data[index_data] > bins[index_bin])
                {

                    first = index_bin + 1;
                }

                else
                {

                    last = index_bin - 1;
                }

                index_bin = (first + last) / 2;
            }

        }

        else if(data[index_data] < bins[0])

        {

        ++underflow[i];

        }

        else if(data[index_data] >= bins[n_bins - 1])

        {

        ++overflow[i];

        }

    }
}

}
``

see also https://github.com/astrofrog/fast-histogram

I jsut want to avoid adding too much code that we have to maintain just to get a small optimization. Right now ctapipe is intended for a design study, not for being ultra fast (optimization will come later).
I get resonable speeds using np.histogram as follows:
n_pix, n_images = 2048, 10000
images = np.random.normal(shape=(n_pix, n_images))  # a bunch of random camera images

# now make histograms for each pixel, over all images:

hists = np.apply_along_axis(np.histogram, axis=1, arr=images, range=(-5,5), bins=50)

On my machine, this takes 180 ms to make 2048 histograms over 10000 images. It could clearly be faster, but do we really care at this point? I'd prefer simpler/smaller code.

This may imply that the ctapipe.utils.Histogram class is not always the right tool for the job - just using simpler np.histogram (or np.histogram2d, np.histogramdd) could be better in cases where there need to be a lot of histograms, and each doesn't need to be stored as a separate FITS file (which is what ctapipe.utils.Histogram was designed for)

I agree that simpler is better. A use case would be to have (n_pixels, n_images) ~= (2000, 50). Fill the histogram then proceed to the next event (of same shape).
The proposition above has good performances if n_image is large. For realistic values of n_images =~ 50 it would require to make batches of events before filing the histogram.
I don't think that the user should handle such batches to optimize performances.
Actually for DigiCam calibration we used to do exactly what you proposed and ended up doing some batches in the event loop.
If there is a way to access the data row-wise then the proposition above is fine I guess but you still need a lot of memory.

yes, this may be resolved in fact by the choice of data format - some of the proposed DL0 formats allow efficient column-wise access (all images for all events, for example), in which case it's fast to do histogramming this way.  If we do it always event-wise, then we should come up with a faster solution.


Simply Explained Inference Steps

Hello,
Thanks for the work. I tried to follow your "Using Pretrained Models" part of readme file in 03multireso folder.
I am confused about your repository. I downloaded your models and datasets. But I could not understand the next steps. Could you explain it simply ?
Where is your requirements.txt to create an environment ?
Which version we should install for s3prl to work properly ?
How can we run main.py from CLI ? For instance what does --module-model , --model-forward-with-file-name or --module-config args mean?
Thanks for your time.

Hi, thanks for your interest in PartialSpoof.
For environment-related questions, please carefully read and follow the instructions at 03multireso#prepare to build your environment. I didn't provide a requirements.txt because the environment for this repository fully follows the environment setup of s3prl#installation, as mentioned in the Readme.md.
For inference, you can find the command line in stage 2 of 00_run.sh, which can also be used in the CLI.
For the meaning of --module-model, --model-forward-with-file-name, and --module-config, detailed explanations can be found in arg_parse.py. These parameters follow the style of project-NN-Pytorch-scripts. You can find a more detailed tutorial in this repository.

Thanks for the reply. I have already taken a look arg_parse.py but could not detailed explanation like help string.
When I tried to run run.sh it could not find main.py.

Finally I could start the main.py and now "data_gen" in nn_manager_zl.py is "None" and because of that I got "No output saved" warning. End of the process I just got output_score pkls.

@zlin0 Could you help the issue :)

Thanks for the reply. I have already taken a look arg_parse.py but could not find any detailed explanation like help strings.
could you check again and be careful? There are helping infos.

Hi @zlin0 ,
I did run experiment by moving some folders in projects and changing project structure.
I think you should add "--train-model" argument in run.sh for stage 2 CLI commands.
When I followed s3prl environment setup , I could not run your projects. Because it need extra packs.
Now I try to run your metric calculation sh. To do this I will try to find proper version for pyannote.metric.
Thanks for your time.

Hi again,
Sorry to bother you but I could not run RangeERR or SegmentERR script because of not existing some files (label2num_2cls_0sil for example.)

I did run experiment by moving some folders in the project and changing the project structure.

So please be careful when removing folders, as this might introduce some issues. This repo is based on some open-source projects like project-NN-Pytorch-scripts and s3prl.

I think you should add "--train-model" argument in run.sh for stage 2 in the CLI commands.

Again, please read carefully. We already have --module-model for the same purpose, which you asked at the beginning. As I answered before, detailed explanations for --module-model, --model-forward-with-file-name, and --module-config can be found in arg_parse.py. If you read carefully, you will find it helpful. Do you need me to copy it here?
    mes = 'module of model definition (default model, model.py will be loaded)'
    parser.add_argument('--module-model', type=str, default="model", help=mes)

When I followed s3prl environment setup , could not run the project. Because it needs extra packs.

Please make sure you download the specific version and the needed extra packages if there are any. Sorry, but I have no time to prepare a perfect introduction for preparing the environment right now, but I am sure everything will become easier after you build the environment for s3rpl#installation.

Now I am trying to run your metric calculation sh. To do this I will try to find a proper version for pyannote.metric.

Only RangeEER requires pyannote.metric, which provides DetectionCostFunction(). pyannote.metric has not been updated in the last two years. So, please download the latest one.
And sorry, I am occupied with other projects, so I am not able to make my repo perfect for now, and also answer you questions immediately. However, some friends have successfully re-implemented this repo, so I believe all issues related to enviorments can be resolved even if there are any.

Thank you so much ! :)


File upload to external image server

Hi @rikschennink,
Very Sorry to bother you again, I am trying to implement custom upload to my image server.
My image server accepts the image name, dimensions, dataURL via POST API and returns a unique server file name for the uploaded image. I have attempted to implement the handler function but no success, is there an example that you can show us on how this works?
I have seen someone asked if FilePond would work with Amazon S3. It seems Amazon S3 and other custom image servers do not support the serverId feature in FilePond. Does this mean other operations such as revert, abort, restore are impossible with these servers? Thanks!

Hi @pathvine!
No worries.
The serverId is a unique identifier returned by the server, it can be the filename the file id, as long as it identifies the file to the server. In your situation, this value "returns a unique server file name" should do it, FilePond remembers it and then automatically passes it to the revert or restore method. You can then override those methods and do with it as you please.
I'll set up a custom XMLHttpRequest example to illustrate this better.

Okay, see the code below.

I've disabled fetch and load by setting them to null ( to show this is possible, you can of course implement these methods )
Instead of an XMLHttpRequest I've used a timeout as. It just waits a couple milliseconds and then calls the load ( we're done ) method. This would normally probably be in the onload callback of the XMLHttpRequest instance. But, you could also be storing files in localStorage or database so you're free to send the files wherever you please.
progress callback updates the loading indicators.

Let me know if anything is unclear. Because this is a super flexible part of FilePond it is also the most difficult to document. So input is very welcome.
FilePond.setOptions({
    server: {
        // disable fetch by explicitely setting it to null
        fetch: null,
        load: null,

        // define custom process method
        process: (fieldName, file, metadata, load, error, progress, abort) => {

            // Create data object containing the file and the file metadata
            const formData = new FormData();
            formData.append(fieldName, file, file.name);
            formData.append(fieldName, JSON.stringify(metadata));

            // Progress indicator supported, set progress to 25% of 1
            progress(true, .25, 1);

            // Fake completion after 1 second
            const timer = setTimeout(() => {
                load('unique-file-id'); // or { body: 'unique-file-id' }
            }, 1000);

            // Should expose an abort method so the request can be cancelled by the user
            return {
                abort: () => {

                    // abort your request here (we clear timer for demo purposes)
                    clearTimeout(timer);

                    // updates FilePond interface
                    abort();
                }
            };
        },

        restore: (uniqueFileId, load, error, progress, abort, headers) => {

            // Should get the temporary file object from the server
            // ...
            console.log(uniqueFileId);

            // create fake file
            var blob = new File([uniqueFileId], 'test.txt', { type: 'text/plain' });

            // Fake completion after 1 second
            const timer = setTimeout(() => {
                load(blob);
            }, 1000);

            // Should expose an abort method so the request can be cancelled by the user
            return {
                abort: () => {

                    // abort your request here (we clear timer for demo purposes)
                    clearTimeout(timer);

                    // updates FilePond interface
                    abort();
                }
            };
        },

        revert: (uniqueFileId, load, error) => {

            // remove file from server here
            console.log(uniqueFileId);

            // we done
            load();

        }
    }
});

Hi @rikschennink ,
Thank you for your examples. I have successfully implemented HTTP POST within the process. However, as it is a plain HTTP POST with the data pulled from the Meteor template, it doesn't enjoy the benefit of the image crop plugin. I should mention that since I am using Meteor and information of photos and their dataURL are pre-stored on the blaze template. I did this to easier manipulate the images after they have been added. Had I used formdata with metadata, the cropping might have been successfully applied as well; I will look into that further.
I have a few notes that may improve the usability of the package; these may conflict with the work flow you have in mind, but these are just something to think about.

The progress can only be used in the process. Can it be exposed as an individual function that takes the File.id? Can it also have finer control of the state, perhaps through a state parameter? I mention this because it is hard to bring up a forever spinning circle during the upload. The load() seems to also have control over how the progress is being displayed. For example, the file field would not turn green without the load() being called.
Currently, we can only set and get the plugin functions via the options object when initializing a FilePond instance. The functions from the plugins perhaps better to be exposed for greater flexibility.

If you pass false to the progress function once, it'll go into infinite loading mode.
progress(false);

To complete upload you need to call the load method. Otherwise FilePond doesn't know when the upload is finished.
You can alter FilePond options during runtime. If you're instance is set to single file mode you can switch to multiple input mode by setting allowMultiple to true.
myPond.allowMultiple = true;

Processing and load methods are created just before a file is processed or starts to load. So can be altered as well ( changing them while a file is uploading will have no effect on the file ).

Thanks @rikschennink. Previously I was using body-parser on the image server, and the body-parser does not support multipart/form-data. This caused some incompatibilities with FilePond. I am taking this opportunity to upgrade the image server to accept multipart/form-data as it is faster than base64.
I have set up a basic endpoint on my image server to accept multipart/form-data. It is working fine with FilePond except that the cropping and resizing are not applied before the upload. Can you please advise on how the transform plugin works in FilePond? Thanks!

@pathvine Okay, glad to hear it's working!
Will close this issue, can you open a new issue for the transform problem? ( Trying to keep things grouped by subject :) )

@rikschennink maybe you could add this example to the documentation?
I'm struggling to get this working with Vue (I created an issue in the respective repo).

@JoaquimLey good idea, will see if I can do this later this week.
What specific issue are you running into?

I will open an issue over there to keep this one scoped and not polluted for people coming in the future ;).
Thanks!


Merge master into dev to bring it up to date?

I'd like to do start contributing by working off of the dev branch (keeping master the same, up to you when to make new versions). This way I could branch off of dev and do pull requests into it periodically, instead of master. However, dev seems to be quite up to date - can we branch it off/merge with master to fix that?
Otherwise, if you want to keep the dev branch where it currently is, could you create a new development branch off of master?
Cheers,
Mathieu

Hi Mathieu,
Use the 'development' branch. 'dev' branch is dead, I prefer to close it to avoid conflicts.

Good to know that you are working on it! I don't develop new features, just debugging from time to time... I think you won't have many conflicts.
Best,
Tanguy


Some QOL changes to discpp::Snowflake

This moves some methods related to discpp::Snowflake out of places like utils.h and into it. Like GetFormattedTimestamp or discpp::SnowflakeFromString

Not going to merge into master, take a look at #38


"Texture is not bound to the unit 0" error are raised when drawing secoundary g-buffer

Drawing 2nd buffer of G-buffer can require texture even if there was no texture used in the material.
To register any texture that can be assigned optionally, resource manager needs to allocate alternative texture that needs to be used when some of texture was not assigned.

Fixed with #151


HashList.has(int index)

I took a look but I don't see an obvious way to implement it, but it would be nice to have.
On the same topic, HashList::get_or(int index, T default), HashList::get_or(T elem, T default), and HashList::has(int index) are all missing and would be useful.
https://github.com/peq/wurstStdlib/blob/master/wurst/data structures/LinkedHashMap.wurst
LinkedHashMap might be more appropriate for some of my requirements

I think the naming should be different and not overloaded, but sure, those can be useful sometimes.

I don't see an obvious way to implement it

Why? As far as I see it has(int index) is just ht.hasInt(this castTo int, index). The other functions should be easy then.

I think the naming should be different and not overloaded, but sure, those can be useful sometimes.

So, at present there's get(int) and has(T). I'm happy to avoid overloading, but this probably is already an API hazard?
Maybe:

Deprecate has(T)
Add HashList::hasMember(T)
Add HashList::hasIndex(int)
Deprecate get(int)
Add HashList::getMember(T)
Add HashList::getIndex(int)

And then my convenience methods:

Add HashList::getMemberOr(T, T) (Is this actually useful?)
Add HashList::getIndexOr(int, T)

What is the point of HashList::getMember(T) ..? If you already have the value, why get it? I think what you want is remove(T t) which already exists.
Regarding hasIndex(int), I added hasAt(int) to conform with the other index functions.

What is the point of HashList::getMember(T)

I think no point, /shrug

I added hasAt(int)

Cool 8-)
In hindsight, why is LinkedHashMap not in stdlib2? It's pretty useful imo

In hindsight, why is LinkedHashMap not in stdlib2? It's pretty useful imo

What's the difference to IterableMap

idk, here you go though https://github.com/peq/wurstStdlib/blob/master/wurst/data structures/LinkedHashMap.wurst


Jenkins Nexus integration

After all pipilines become finished I don't find any package into nexus repositories.
So I tried to deploy petclinic.war by curl command using Execute shell step in build task after install maven goal;  but nexus respond with   "500 Server Error".
Instead using deploy:deploy-file (I am sure that administrator password is ok in settings.xml) Nexus response is Unauthorized:
[WARNING] Could not transfer metadata org.springframework.samples:spring-petclinic:4.2.6-SNAPSHOT/maven-metadata.xml from/to snapshots (http://nexus:8081/nexus/content/repositories/snapshots): Not authorized , ReasonPhrase:Unauthorized.
Property in jenkins mvn pipeline:
groupId=org.springframework.samples
artifactId=spring-petclinic
version=4.2.6-SNAPSHOT
generatePom=false
packaging=war
repositoryId=snapshots
url=http://nexus:8081/nexus/content/repositories/snapshots/
file=target/petclinic.war
Logs Curl:

cd target

curl -v -F r=snapshots -F hasPom=false -F e=war -F g=com.spring.test -F a=petclinic -F v=1.0 -F p=war -F<EMAIL_ADDRESS>-u administrator:qwerty11 http://nexus:8081/nexus/content/repositories/snapshots
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* About to connect() to nexus port 8081 (#0)

Trying <IP_ADDRESS>...
Connected to nexus (<IP_ADDRESS>) port 8081 (#0)
Server auth using Basic with user 'administrator'

POST /nexus/content/repositories/snapshots HTTP/1.1
Authorization: Basic
User-Agent: curl/7.29.0
Host: nexus:8081
Accept: /
Content-Length: 39280496
Expect: 100-continue
Content-Type: multipart/form-data; boundary=----------------------------e707398e1d13

< HTTP/1.1 100 Continue
} [data not shown]
2 37.4M    0     0    2 1088k      0  1811k  0:00:21 --:--:--  0:00:21 1811k
7 37.4M    0     0    7 2704k      0  1711k  0:00:22  0:00:01  0:00:21 1711k
11 37.4M    0     0   11 4288k      0  1634k  0:00:23  0:00:02  0:00:21 1633k
16 37.4M    0     0   16 6416k      0  1792k  0:00:21  0:00:03  0:00:18 1792k
24 37.4M    0     0   24 9264k      0  2022k  0:00:18  0:00:04  0:00:14 2022k
49 37.4M    0     0   49 18.5M      0  3410k  0:00:11  0:00:05  0:00:06 3603k
77 37.4M    0     0   77 29.1M      0  4532k  0:00:08  0:00:06  0:00:02 5422k< HTTP/1.1 500 Server Error
< Date: Mon, 27 Feb 2017 19:30:27 GMT
< Server: Nexus/2.11.3-01
< X-Frame-Options: SAMEORIGIN
< X-Content-Type-Options: nosniff
< Accept-Ranges: bytes
< Content-Length: 0

HTTP error before end of send, stop sending
<

100 37.4M    0     0  100 37.4M      0  5228k  0:00:07  0:00:07 --:--:-- 7230k

Closing connection 0

Thanks @sergiolacolla. Are you still having this issue?
FYI I have redacted your ADOP/C password from the log files in this issue. Please change your ADOP/C admin password if this stack is still in use

I stopped checking with curl command because I worked on other servers where I had no problems using mvn deploy

No more issue,
I stopped checking with curl command because I worked on other servers where I had no problems using mvn deploy.
Thanks,
Sergio.
From: Robert Northard<EMAIL_ADDRESS>Sent: venerdì 11 maggio 2018 17:39
To: Accenture/adop-docker-compose<EMAIL_ADDRESS>Cc: La Colla, Sergio<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: [External] Re: [Accenture/adop-docker-compose] Jenkins Nexus integration (#196)
Thanks @sergiolacollahttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_sergiolacolla&d=DwMFaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=fAyP9kqz3POz3YzZWehbLIHNRynaEiwd0GzgudwFWoM&m=0KLIqz3t8chIWOVpXq20wCoH4kVG0BW3Q7fXKNqzV-k&s=0oE-Mxx9BsWOVuvvtVCZTdo9UfeD-FI13rfN1oywKSU&e=. Are you still having this issue?
FYI I have redacted your ADOP/C password from the log files in this issue. Please change your ADOP/C admin password if this stack is still in use
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Accenture_adop-2Ddocker-2Dcompose_issues_196-23issuecomment-2D388401164&d=DwMFaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=fAyP9kqz3POz3YzZWehbLIHNRynaEiwd0GzgudwFWoM&m=0KLIqz3t8chIWOVpXq20wCoH4kVG0BW3Q7fXKNqzV-k&s=2KzA4Plxjr5dJ58KysXMLMLbewPRWiMtmDZUG2mi1ug&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AWpIHMxno79k7tFBhIZQ-5FOaNkamrFrtMks5txbCkgaJpZM4MNjqI&d=DwMFaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=fAyP9kqz3POz3YzZWehbLIHNRynaEiwd0GzgudwFWoM&m=0KLIqz3t8chIWOVpXq20wCoH4kVG0BW3Q7fXKNqzV-k&s=eQGG3t8DUfN_7wKlWAuT32aYalbW_7ZY9FB78GHp_Ko&e=.

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy. Your privacy is important to us. Accenture uses your personal data only in compliance with data protection laws. For further information on how Accenture processes your personal data, please see our privacy statement at https://www.accenture.com/us-en/privacy-policy.

www.accenture.com


Genrate Certificates based on CSR

Describe the pull request:

[x] Functional change
[x] New feature
[x] Code cleanup
[x] Documentation change

Pull request long description:
Refactor the the generation of configuration separating the keys and certificate generation from actual configuration. Added support to load external configuration. Added support for generating root CA and also generating CA based on CSR.
Changes made:

moved password generation, certificates and keys to key_generation
added option to load custom token payload
added option to load custom LocalEGA config
generate_root_certs generates a Root CA and generate_csr generates CSR and stores them in a csr folder while keys and newly generated CAs are stored in certs
not sure generate_ssl_certs is still needed, but kept around now it generates ega_ssl

Related issues:
Fixes #20
Additional information:
Not yet tested, should work(TM)
Release note:

Documentation change:
Changed the Readme as we added options to tool
Mentions:
@jbygdell should we add the option to load CA externally?

tls_ca_root_file is a better name instead of tls_ca_root_name

forget the last re-request that was my bad :disappointed:


Compatible with "char"?

Hi all,
Can I use this queue library with char variables instead of int variable?
Thanks,
Zeb

It's a template so you just declare the type within the angle brackets. Like so:
ArduinoQueue<char>

Thanks @EinarArnason that's really good, but how do I copy what's been dequeued into a char variable?
In your example it is:
int value = intQueue.dequeue();
If I do this
char value[] = intQueue.dequeue();
it gives this error
initializer fails to determine size of 'value'
And if I do this
char value[10] = intQueue.dequeue();
it gives this error
array must be initialized with a brace-enclosed initializer
Thanks,
Zeb

@EinarArnason here is all my code, as you can probably tell, I am getting a lot of errors.
/*
        Author: Vasco Baptista
        email<EMAIL_ADDRESS>        An example of using Einar Arnason's queue
        In this example we create a queue of int's
        limited by the maximum amount of items
        Usage and further info:
        https://github.com/EinarArnason/ArduinoQueue
*/

#include "Queue.h"

#define QUEUE_SIZE_ITEMS 10

// Queue creation:
ArduinoQueue<char> charQueue(QUEUE_SIZE_ITEMS);

void printQueueStats() {
  Serial.println("");
  Serial.printf("Size of each element:    %u bytes\r\n", charQueue.item_size());
  Serial.printf("Items in queue now:      %u items\r\n", charQueue.item_count());
  Serial.printf("Queue actual max items:  %u items\r\n",
                charQueue.maxQueueSize());
  Serial.printf("Queue actual max memory: %u bytes\r\n",
                charQueue.maxMemorySize());
  Serial.println("");
}

void setup() {
  Serial.begin(115200);
  Serial.println("");
  Serial.println("========== Queue example ==========");
  Serial.printf("Desired max item size:  %u items\r\n", QUEUE_SIZE_ITEMS);
  Serial.println("===================================");
}

void loop() {
  printQueueStats();

  // Add elements: (add more than the queue size for demo purposes)
  if (!charQueue.isFull()) {
    char n[] = "1";
    Serial.printf("Adding value: %i\r\n", n);
    charQueue.enqueue(n);
  }

  printQueueStats();

  if (!charQueue.isEmpty()) {
    char value[] = intQueue.dequeue();
    Serial.printf("Removed value: %i\r\n", value);
  }
  else {
    Serial.println("Queue is empty!");
  }

  printQueueStats();

  // Loop forever
  while (true) {
#ifdef ESP8266
    ESP.wdtFeed();
#endif
  }
}

You have a few problems there.
Firstly, queuing a local char array won't work as it will be destroyed when the function returns and goes out of scope. You can however queue a single char character, like:
queue.enqueue('1');

but if you are queuing strings, you will have dynamically allocate it with the new operator and enqueue a char*.  Using a string library would make things alot easier, unless you really want to do low level stuff. If the array is not a string, you need to queue an enclosed object with information about the size of the array as it has no way of knowing how large an array is from a pointer alone. That's the reason why
char value[] = intQueue.dequeue();

wont work. An array must have predetermined size. For strings You could do something like this:
char value[200];
strcpy(value, queue.dequeue());

Using a big enough buffer you know won't max out. Because strings end with a null character ('\0'). Otherwise, a size must be known.
What the queue library does really is storing base types (int, char, bool, double, etc...) and pointers.

Sweet, thanks very much for your help!


RegisterSubscriber

What subscriber headers? Please stop talking in screenshots.

like this , set headers

broker.Subscribe("/topic/hello", func(p broker.Publication) error {

 return nil
}, stomp.SubscribeHeaders(map[string]string{

"activemq.subscriptionName": "name",

}), broker.DisableAutoAck())

Broker options are not supported using the RegisterSubscriber function. Broker is a low level component which we abstract away in the server. If you need to use more detailed subscribe options then you should use the broker directly. It's unlikely we promote the ability to do these things at the high level.


I am having difficulty installing Flutter Sdk and Dart Sdk

When I am try to installing flutter sdk and dart sdk, the 2 components not downloaded.

Can you explain in more detail what you're seeing, for example how are you trying to install them and are you seeing an error message?

I noticed your GitHub profile says Bangladesh, so I think you may be seeing https://github.com/flutter/flutter/issues/48030. It seems like the the servers hosting Flutter components may be being blocked in Bangladesh.

But why the server hosting Flutter components blocked in Bangladesh. I have some important work on flutter, some trouble was happened me last day. I want to completed the installation with no hesitation. Please give me any solution. Thanks!

I don't know why it's blocked, that's something you might be able to raise with your ISP. There are some possible workarounds in #48030 (for example downloading from the Chinese mirror) but it's not clear whether they work.
I'll close this issue as a dupe to avoid splitting information about this over multiple issues - please comment on that one if you try those workarounds if they do/don't work. Thanks!

Ok thank you! If there will still problem, then I shall comment again.

Thanks a lot man, everything is fine and smooth now :) love flutter <3


Update renovatebot/github-action action to 34.12.0

This PR contains the following updates:

Package
Type
Update
Change

renovatebot/github-action
action
minor
v34.10.0 -> v34.12.0

Release Notes

renovatebot/github-action
v34.12.0
Compare Source
See the the changelog for changes in all releases.
34.12.0 (2022-11-01)
Bug Fixes

deps: update renovate/renovate docker tag to v34.12.0 (d23b624)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@balena-ci I self-certify!


simplify options item builder api

This is a proposal to simplify the options item builder api.
I reduced the number of parameters and added the ability to parse bracket keys {text} even if the optionsItemBuilder is a function.
I also improved the related docs a bit.

Current coverage is 100% (diff: 100%)

Merging #132 into master will not change coverage

@@           master   #132   diff @@
====================================
  Files           1      1
  Lines         379    380     +1
  Methods         0      0
  Messages        0      0
  Branches        0      0
====================================
+ Hits          379    380     +1
  Misses          0      0
  Partials        0      0

Powered by Codecov. Last update a73e938...96e019c


Call inner joins with relation proxy objects too

With this patch, we can call #inner_join method with RelationProxy
(instance of repository) objects too.
Reference to https://github.com/rom-rb/rom-sql/issues/172

@solnic done. Waiting CI 👍

I'll push it shortly

@davydovanton this is released in 1.2.1

@flash-gordon great news!


target_uri can't handle the new URL without version number.

https://github.com/ciarams87/PyU4V/blob/39ea3c7e5f1f5f1635a1d92cadeb60cef786c803/PyU4V/common.py#L511
Thanks Ciara for your useful lib. I just found some issues that may need to improve.
The URL format here means that we can't use this kind URL /sloprovisioning/symmetrix/xxx.
Even we define U4V_VERSION = None, the URL //sloprovisioning/symmetrix/xxx can't be accepted by VMAX.
So, build URL base on U4V_VERSION input is necessary here I think.
Thanks a lot.

Hi Lyutian,
This is expected behaviour, it is advised not to use the non-versioned endpoints as they are from a version of the REST API used many moons ago, stick to /84 (default) or /90 for the most recent end-points and functionality/fixes.
Thanks
MIchael


Fix issue #232 by invoking g++ with -Wno-error=free-nonheap-object

See also #232 .
This changes the global CXXFLAGS, since bison generated code in several
locations might trigger a false-positive free-nonheap-object warning.
This happens with gcc 11 (gcc version 11.2.0 from ubunut 21.10).
Signed-off-by: Daniel Otte<EMAIL_ADDRESS>

Hi @d-otte, something similar was merged and then reverted once: https://github.com/EmbeddedRPC/erpc/pull/178/files because other builds failed. I think this is correct change, but we need do it to support other compilers/OS too.
We need change also autobuilds from travis to something else. This will be one of our biggest priority now.

@d-otte I implemented the change on your brach. Could you align your branch with develop branch so we will be able to run builds for this branch? Thank you ;)

Thank you!


How to run ZooKeeper as a service

Hi Everyone
I am new to zookeeper as well as for Linux. I installed and run zookeeper as a cluster in 3 machines. Now I want to run ZooKeeper as a service and I tried following command.
apt-get install zookeeperd
and then
service zookeeper start
but I am getting error that says Failed to start zookeeper, unit zookeeper.service not found..
Processing triggers for ca-certificates (20160104ubuntu1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Processing triggers for systemd (229-4ubuntu16) ...
Processing triggers for ureadahead (0.100.0-19) ...
ureadahead will be reprofiled on next reboot
Errors were encountered while processing:
/var/cache/apt/archives/zookeeperd_3.4.8-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@deds14:# service zookeeper status
● zookeeper.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
root@deds14:# service zookeeper start
Failed to start zookeeper.service: Unit zookeeper.service not found.
Any help will be appreciated

@ashu-3 this isn’t a forum for support for ZooKeeper itself. This project is a Chef cookbook to install, configure, and run ZooKeeper.
You’ll want to check out the official ZooKeeper website for some resources. Best of luck!


Notebook folding state is getting lost on change

open .vscode/notebooks/my-work.github-issues
collapse the "config" cell
run touch .vscode/notebooks/my-work.github-issues
:bug: the collapse state is lost

https://user-images.githubusercontent.com/1794099/176227204-f9bbed28-b152-4558-9fde-03ba24a997c6.mov
/cc @kieferrm - we talk about this case

I think @rebornix fixed this