Disable space_placeholder_file for playgrounds

Feature Request
I think what you are doing with tiup is great! I have a small nit:
Is your feature request related to a problem? Please describe:
Each of the playgrounds create TiKV's space_placeholder_file (2GB). I think this makes sense for production environments, but less so on a desktop where you might have multiple playgrounds.
Describe the feature you'd like:
Disable space place holders.
Describe alternatives you've considered:
It's not that harmful, alternative would be to keep as is. That will limit having multiple playgrounds.
Teachability, Documentation, Adoption, Migration Strategy:
N/A

@BusyJay @stn PTAL

@lonng playground can set storage.reserve-space to zero by default.

@BusyJay Thanks, I will fix it.


Emerald wallet is not starting

The wallet can't start and it shows errors in the Console(Failed to start services error 504 gateway time-out//Failed prop type

@denizaho93 How its going ? Did you run wallet ?

No, I didn’t. It’s been like that all the time. I really don’t know what to do. Do you have any idea?

@gagarin55 No, I didn’t. It’s been like that all the time. I really don’t know what to do. Do you have any idea?

@denizaho93 does it work with version 0.8?

@splix Do you mean version 0.8 of Emerald Wallet? I haven't tried yet.


GVM - Go Version Manager

I need to work out if this is going to be a thing I'll be implementing, and how this role would change to accommodate it.

https://github.com/moovweb/gvm

It would be rather good if we could install them over the top of the file system and gvm just work automatically, but I need to look at the details.

[x] Create task file
[x] Populate task file with tasks
[x] Test tasks on multiple platforms & work out problems
[x] Identify why gvm use is failing
[x] with symlinks now in place, do we really need to gvm use? refer to use script for answers.
[x] Add tasks to build master
[x] test tasks to build master
[x] add configurable installation flags (useful because --binary --source and --prefer-binary are rather unreliable).
[x] Configurable download mirror which replaces URL in GVM install script
[x] provide master integration with go_versions to add master as well as multiple other
[x] logic to prevent master installing where go{{ go_version }} should be installed
[x] provide better support for <= v1.4 by attempting to completely remove the term 'go' from version strings. Thought: master/source already provides the functionality we need if the variable was to be passed through.
[x] resolve the path issue with go get
[ ] Quick once-over after everything is in place.

I've got this nearly ready for release or initial commit - but there are a few different little details to work out. Overall the functionality is nice, I look forward to getting into Go properly in Gogland with the ability to switch between versions.
I'm rather excited!

[x] Create task file
[x] Populate task file with tasks
[x] Test tasks on multiple platforms & work out problems
[ ] Identify why gvm use is failing
[ ] Quick once-over after everything is in place.

Changes are pretty massive, so I'll restructure this later...

With all of this work finally complete and tests are passing to an acceptable extent, I can release this.
I've added a issue to get it restructured and to pass all desired travis tests.
The files are a little messy for now, but completely functional.
And here comes our official release! 👍


Documentation review - WIP

About diagrams colors; the sequence diagram in https://docs.freenet.org/examples/antiflood-tokens.html needs one of the dark colors schemes to be readable, while the graph in https://docs.freenet.org/components.html#user-interface needs a light color scheme.

About diagrams colors; the sequence diagram in https://docs.freenet.org/examples/antiflood-tokens.html needs one of the dark colors schemes to be readable, while the graph in https://docs.freenet.org/components.html#user-interface needs a light color scheme.

Good catch, I think we should focus on light color scheme.


[tuning] Retune matmul on top of iree main for SDXL

After landing various patches to the main branch we need to retune according to the new matmul and conv forms.

Matmuls and contractions are retuned, convs and batch matmuls next.

Tuned matmuls and contractions:
        , @match_mmt_2048x10240x1280 -> @apply_op_config
        , @match_mmt_2048x1280x5120 -> @apply_op_config
        , @match_mmt_2048x1280x1280 -> @apply_op_config
        , @match_mmt_8192x5120x640 -> @apply_op_config
        , @match_mmt_8192x640x2560 -> @apply_op_config
        , @match_mmt_8192x640x640 -> @apply_op_config

        // Contration.
        , @match_contract_3x2x20x1024x64x1280 -> @apply_op_config
        , @match_contract_3x2x10x4096x64x640 -> @apply_op_config
        , @match_contract_2x10x64x64x2048 -> @apply_op_config
        , @match_contract_2x20x64x64x2048 -> @apply_op_config
        , @match_contract_2x20x1024x64x1280 -> @apply_op_config

Current Unet time with tuning: 63.0 ms
With just mamtul tuning: 64.9 ms
Without any tuning: 66.9
==> Contraction configs are worth ~1.9ms, matmul configs are worth ~2ms, and both are worth ~3.9ms.

Update 5/23: 0.25ms for direct conv. need to double check.

Update May 27:

Added conv and batch matmul support to the tuner. All issues have been ironed out.
Started rewrite in python, driven by @RattataKing.
Tuned 2 main convs and all batch matmuls.
@erman-gurses is finishing the remaining convs.

New results for Unet:

Default conv codegen: 62.9ms
Winograd conv codegen: 59.8ms

        // Matmul.
        , @match_mmt_2048x10240x1280 -> @apply_op_config
        , @match_mmt_2048x1280x5120 -> @apply_op_config
        , @match_mmt_2048x1280x1280 -> @apply_op_config
        , @match_mmt_8192x5120x640 -> @apply_op_config
        , @match_mmt_8192x640x2560 -> @apply_op_config
        , @match_mmt_8192x640x640 -> @apply_op_config

        // Convolution.
        , @match_conv_2d_nhwc_hwcf_2x32x32x1280x3x3x1280 -> @apply_op_config
        , @match_conv_2d_nhwc_hwcf_2x32x32x1280x3x3x2560 -> @apply_op_config

        // Batch matmul.
        , @match_batch_matmul_64x968x320x640 -> @apply_op_config
        , @match_batch_matmul_64x968x640x640 -> @apply_op_config
        , @match_batch_matmul_64x968x320x960 -> @apply_op_config
        , @match_batch_matmul_64x242x1280x1280 -> @apply_op_config
        , @match_batch_matmul_64x242x640x960 -> @apply_op_config
        , @match_batch_matmul_64x242x640x1280 -> @apply_op_config
        , @match_batch_matmul_64x242x640x1920 -> @apply_op_config

        // Contration.
        , @match_contract_3x2x20x1024x64x1280 -> @apply_op_config
        , @match_contract_3x2x10x4096x64x640 -> @apply_op_config
        , @match_contract_2x10x64x64x2048 -> @apply_op_config
        , @match_contract_2x20x64x64x2048 -> @apply_op_config
        , @match_contract_2x20x1024x64x1280 -> @apply_op_config

Batch matmul tuning is worth 1ms.
Conv tuning (top2 only) is worth 0.3ms.

Landed conv tuning:
        // Convolution.
        , @match_conv_2d_nhwc_hwcf_2x32x32x1280x3x3x640 -> @apply_op_config
        , @match_conv_2d_nhwc_hwcf_2x32x32x1280x3x3x1280 -> @apply_op_config
        , @match_conv_2d_nhwc_hwcf_2x32x32x1280x3x3x1920 -> @apply_op_config
        , @match_conv_2d_nhwc_hwcf_2x32x32x1280x3x3x2560 -> @apply_op_config
        , @match_conv_2d_nhwc_hwcf_2x64x64x640x3x3x640 -> @apply_op_config
        , @match_conv_2d_nhwc_hwcf_2x128x128x320x3x3x320 -> @apply_op_config

These are worth ~0.6ms.


Filter method

Awesome work!
There is some method to filtering away properties not in the schema, like the is-my-json-valid filter method does?
Thank you

@mgesmundo There is a removeAdditional option, but it removes only properties/items blocked with additionalProperties: false and additionalItems: false, so those should idally be specified everywhere. To check that those are specified everywhere, one can use allowUnusedKeywords: false option.
Documentation is still in progress, but here is an example:
const { validator, parser } = require('.')

const schema = {
  $schema: 'http://json-schema.org/draft-07/schema#',
  type: 'object',
  required: [],
  properties: {
    x: {
      type: 'integer'
    }
  },
  additionalProperties: false
}
const validate = validator(schema, { removeAdditional: true, requireValidation: true })
const data = { x: 2, foo: 20 }
console.log(validate(data), data) // true, { x: 2 }

const parse = parser(schema, { removeAdditional: true })
console.log(parse('{"x":20, "bar": "string"}')) // { valid: true, value: { x: 20 } }

Also, removeAdditional will refuse to compile schemas with paths of uncertainty (e.g. if/then/else, or oneOf without a discriminator).
I believe that filter implementation in imjv in unsafe, and most of this structure is needed to

Thank you @ChALkeR! Super fast answer: great!
I agree your thoughts about the security of filter implementation on edge cases.
All the best.

Ah, one more difference: imjv will report a validation failure in case if it filtered away anything.
This library will report success if the modified object (i.e. with additional properties removed) passes the validation.

@mgesmundo One more note: proper uncertainty checks mentioned above were introduced in v1.0.0-beta.5 which I just published.


[20244] Update requirements.txt dependencies for sphinx 4.3.1

This PR updates the requirements.txt file for setting up a correct virtual environment. The changes fix the package versions of some dependencies to require a sphinx version lower than  5.0.

@mergifyio backport 2.12.x 2.11.x 2.10.x 2.6.x


Add: Magic Kids

Channel Name
Magic Kids
Alternative Names (optional)
No response
Network (optional)
No response
Owners (optional)
No response
Country
AR
Subdivision (optional)
AR-C
City (optional)
Ciudad Autónoma de Buenos Aires
Broadcast Area
s/AR-C
Languages
spa
Categories (optional)
animation
NSFW
FALSE
Launched (optional)
1995-01-12
Closed (optional)
2006-05-24
Replaced By (optional)
No response
Website (optional)
No response
Logo
https://upload.wikimedia.org/wikipedia/commons/d/d6/Logomagic96.png
Notes
Spanish Wikipedia: https://es.m.wikipedia.org/wiki/Magic_Kids

@freearhey please upload the image to imgur


Update cosmos to version 0.3.0

High Level Description
Three improvements to cosmos:

Prevent the /package/list endpoint responding with status 400 when a deployed service's package is not present in its origin repository (https://github.com/dcos/cosmos/pull/563).
Add an optional command-line flag to configure the maximum acceptable HTTP response size from services that cosmos makes API calls to (https://github.com/dcos/cosmos/pull/569).
Log all HTTP requests cosmos makes to package repositories (https://github.com/dcos/cosmos/pull/573).

Related Issues
Respectively:

DCOS-13213
DCOS-13595
DCOS-10270

Checklist for all PR's

[ ] Included a test which will fail if code is reverted but test is not. If there is no test please explain here: this is not a code change, just updating a package version
[x] Read the DC/OS contributing guidelines
[x] Followed relevant code rules Rules for Packages and Systemd

Checklist for component/package updates:
If you are changing components or packages in DC/OS (e.g. you are bumping the sha or ref of anything underneath packages), then in addition to the above please also include:

[x] Change log from the last version integrated (this should be a link to commits for easy verification and review): diff
[x] Test Results:

CI
Full Cluster Integration Tests
Publish Release

[x] Code Coverage (if available): report

PLEASE FILL IN THE TEMPLATE ABOVE / DO NOT REMOVE ANY SECTIONS ABOVE THIS LINE
Instructions and Review Process
What is the review process and when will my changes land?
All PRs require 2 approvals using github's pull request reviews.
Reviewers should be:

Developers who understand the code being modified.
Developers responsible for code that interacts with or depends on the code being modified.

It is best to proactively ask for 2 reviews by @mentioning the candidate reviewers in the PR comments area. The responsibility is on the developer submitting the PR to follow-up with reviewers and make sure a PR is reviewed in a timely manner. Once a PR has 2 ship-it's, no red reviews, and all tests are green it will be included in the next train.

@jsancio @spahl please review
I can't edit labels or milestones, but this is intended for 1.9. Will this change be integrated into Enterprise automatically or is that what the mergebot command is for?

That is what the command is for, just call it and you'll get a corresponding ent PR

@mesosphere-mergebot bump-ee

@cruhland in EE Cosmos is a different package. I think we need to manually make a similar change in EE. cc @orsenthil

@jsancio @cruhland yes it is a separate package but you need to udpdate it in the pr created by mergebot. That helps us track it in a consistent manner

@spahl is this ready to go?


Refactor/add dotenv

What I did

[x] add dotenv
[x] add config.ts to read dotenv (it's works constant values)
[x] update README.md
[x] make it works w/o CLI params

Note

origin issue is #5
@mangano-ito I wonder if you could review constant.ts.

@mangano-ito thx ur reviews, this PR is ready to merge 🚀

@mangano-ito thx ur reviews, this PR is ready to merge 🚀

@75asa I'm sorry to have kept you waiting... Now it's merged!

@75asa I'm sorry to have kept you waiting... Now it's merged!


Suggestion: easier to use = more adoption

First, great job on this project so far. Really helping to get more coverage fuzzing lots of servers.
Suggestion I would make it to focus on the aflnet ecosystem and usability. Right now, as I understand it, there are many steps to prep the target for fuzzing. It would be great to narrow these steps into a simple process, closer to what its like for native AFL fuzzing, something like this:

Instrument target
Patch target
Fuzz target

It's not straightforward to develop of course, but its worth the effort. Having a ./install.sh would be helpful as well. "Experimental" automatic patch generation would really speed up the process and less manual effort as well. Try and automate most or all the steps in the process.
Also, more real-world examples instead of just a sample app would be great. Maybe there will be more blogs with demos in time for this in nothing else.
As a reference, the Mutiny fuzzer has usability in mind: simply feed it a pcap, it generates a .fuzzer file and you pass it to ./mutiny. Super easy and simple for anyone to use.
Just my thoughts (that you all asked for in a different forum :) I hope this is helpful! Awesome project!

Thanks @retpoline for your suggestions! I really appreciate that!
"Experimental" automatic patch generation would really speed up the process and less manual effort as well. Try and automate most or all the steps in the process.

This is an interesting point. Could you please elaborate a bit further?
Also, more real-world examples instead of just a sample app would be great. Maybe there will be more blogs with demos in time for this in nothing else.

Sure. In the tutorials, we have 5 real-world apps and more will be added soon (e.g., OpenSSH, OpenSSL, exim, Kamailio ...). All should come with Docker files to ease the experiments.
As a reference, the Mutiny fuzzer has usability in mind: simply feed it a pcap, it generates a .fuzzer file and you pass it to ./mutiny. Super easy and simple for anyone to use.

Mutiny looks great!

Yes, the only thing that Mutiny can't do, which is AFLnet's "killer feature" for network fuzzing, is target instrumentation and code coverage.
For patch generation, there probably aren't many public examples of this yet, but the high-level thinking is as follows:

Point a component of the AFLnet ecosystem, for example ./aflnet-autopatch at a target file
AFLnet has signatures that detect common network functions such as recv(), or accepts an input parameter of "special_app_network_parse()", whatever is desired to be patched for fuzzing and either
2.2) patches the code
or
2.3) generates new code, importing the function and creating a binary to use for easy fuzzing
Use AFLnet as usual without having to patch the target code bases yourself

I didn't realize there were already some more examples documented, I'll check them out.

Hi @retpoline,
FYI, we have just released ProFuzzBench, a benchmark for stateful protocol fuzzing: https://github.com/profuzzbench/profuzzbench. The benchmark includes fuzzing setups for 10 popular protocols and we hope that it could help new users learn how to run experiments and/or support new protocols.
Thuan

Hi @retpoline,
FYI, we have just released ProFuzzBench, a benchmark for stateful protocol fuzzing: https://github.com/profuzzbench/profuzzbench. The benchmark includes fuzzing setups for 10 popular protocols and we hope that it could help new users learn how to run experiments and/or support new protocols.
Thuan


Backport 2.6.13: Sanitize custom roles in ProjectMemberEditor

Summary
This utilizes DOMPurify to sanitize custom roles displayed in the Add Project Member dialog.
Areas which could experience regressions

The add project member dialog

Screenshot/Video

Before

After

backports #8883

closing because I named my source branch incorrectly..


Added variant supporting development on docker desktop

I tested this on mac docker-desktop kubernetes

Added variant supporting deployment to docker-desktop Kubernetes


Added books to C++ segment

What does this PR do?
Add resource(s) | Remove resource(s) | Add info | Improve repo
For resources
Description
Why is this valuable (or not)?
How do we know it's really free?
For book lists, is it a book? For course lists, is it a course? etc.
Checklist:

[ ] Read our contributing guidelines.
[ ] Search for duplicates.
[ ] Include author(s) and platform where appropriate.
[ ] Put lists in alphabetical order, correct spacing.
[ ] Add needed indications (PDF, access notes, under construction).
[ ] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

@LuigiImVector what should I do inorder to get write access? or could you / someone with write access merge?

Thanks, and welcome to free-programming-books!

@LuigiImVector what should I do inorder to get write access? or could you / someone with write access merge?

a staff member will merge the PRs


Unable to boot

Hi. I would like to get this working using Qemu but I have yet to get it to boot.
I tried Virtualbox and that isn't working either. It tells me the executable is not supported.
root (fd0)
 Filesystem type is fat, using whole disk
kernel /kernel0

Error 13: Invalid or unsupported executable format

I'm compiling on amd64 with gcc 9.3.0 using -m32 -march=i386. What target should I be compiling for?

Hey, thanks for the issue report. I just pushed some changes that fix this issue and also add a dockerized dev environment to make builds more reproducible, if you want to check it out again.

Thanks! I tried the "make docker" targets and it worked. A minor note, the .img produced was owned by root, which meant I couldn't run it until fixing that.


add shape check and default to True if an exception is raised in is_different

replaces #932

The failing tests are unrelated to this change and should be fixed in another PR. They are related to mongo and mongomock


Solve inconsistencies in python versions - use everwhere 3.11

We are using different python versions for different things:

docs are generated with 3.10.6
dockerfiles require python3 packages (which is 3.9, which is not obvious from looking at the docker files)
environment.yml requires 3.9
pyproject.toml requires >=3.9

I do think we should use consistently the same versions across the system. This pull requests changes simtools consistently to python 3.11.
(Ideally, why would define the python version in a single place).
Note: this requires to updated your conda environment.

But this means you would also reduce the matrix to test only 3.11?

OK but we should also decide if we want to support only one python version. I assume there's a reason why the DPPS suggestion is to support a few.

@orelgueta  - please ignore the 0.09% decrease in coverage. Need to find a way to make codecov ignoring these tiny changes. Ready for review.

@orelgueta - I think I've addressed all issues. Let me know if this is good to merge.


JSONP

No description provided, DAN

Is JSONP still relevant with CORS?

We think CORS has sufficient adoption at this point.


Init ==
    /\ semaphore = [i \in Server |-> TRUE]
    /\ clientlocks = [i \in Client |-> {}]

Next ==
    \/ \E c \in Client, s \in Server :
        /\ semaphore[s] = TRUE
        /\ clientlocks' = [clientlocks EXCEPT ![c] = clientlocks[c] \cup {s}]
        /\ semaphore' = [semaphore EXCEPT ![s] = FALSE]
    \/ \E c \in Client, s \in Server :
        /\ s \in clientlocks[c]
        /\ clientlocks' = [clientlocks EXCEPT ![c] = clientlocks[c] \ {s}]
        /\ semaphore' = [semaphore EXCEPT ![s] = TRUE]
    \/ UNCHANGED vars

====

TypeError: Cannot read properties of null (reading 'fingerprint')
    at eval.js:412:45
    at Array.map (<anonymous>)
    at FcnRcdValue.fingerprint (eval.js:412:34)
    at TupleValue.fingerprint (eval.js:279:20)
    at evalEq (eval.js:1217:32)
    at evalBoundInfix (eval.js:1338:16)
    at evalBoundInfix (eval.js:2530:15)
    at evalExpr (eval.js:2075:16)
    at evalExpr (eval.js:2517:15)
    at evalExpr (eval.js:2066:16)

The problem appears to be UNCHANGED vars, whereas the equivalent formula UNCHANGED <<semaphore, clientlocks>> works fine.

The UNCHANGED vars construct should now be handled in the spec posted above, but there may still be some cases where it doesn't work correctly. I need to think on some of the details more to be clearer the interpreter will handle all cases properly. Adding an upfront pre-processing step that expands all constants/definitions may help make some of this evaluation logic simpler.

Working spec.


Lime on Time Series Models?

I was looking into explaining a variety of models, but when I came across Time Series I was puzzled.
I have 2 questions/concerns.

Is there a way to explain models built on time series data by taking time component as a feature? as in which time period/historical data impacted the current result the most? Models like ARIMA, SARIMAX, fbprophet?

I tried ignoring the time component and by treating a time series data as a regression with exogenous features, the explanation explained the impact of the features on the forecasted value of next timestamp, my question being is that the right way to explain?

Yes, but it's not easy. You'd have to write some code for perturbations which perturbs things consistently (e.g. if I change the time feature from 'today' to 'yesterday', everything else has to change accordingly. If I perturb some other feature that impacts the time feature, it has to change accordingly)

I actually don't know what the right way to explain time series data is. The default we have in RecurrentTabularExplainer is to treat each feature in a timestamp as a separate feature, which is clearly not the right thing, but adds the time component (as opposed to what you did).


fix: support aria-label prop on affix component

This PR adds support for labeling the Affix component with an aria-label attribute. This would make the search and clear buttons accessible to screen readers, since the buttons only contain an icon, and no descriptive text.
It would also be possible to add more props, like aria-labelledby and aria-describedby, according to the recommended guidelines https://www.w3.org/TR/wai-aria-practices-1.2/#button
Please feel free to suggest improvements to this PR while reviewing 😄

The text within the span for labels should do the job afaik. So only adding aria-label for the SVG cases seems ok to me.


virus detected by virustotal

Ransom Win64 Wacatac.oa!s1 and Trojan Blocker.Win32.149019

Developers said it's just Windows flagging it like that because it comes from unknown source, but we can take down the exe  and leave only the python script online.

Windows 10 or other versions of windows have a lot of security, if you try to download any external exe file it is automatically blocked by windows, especially if it's a custom app.
I can take it down, and run more tests on it

thanks


add PROJECT.md file

Per bootstrap meeting discussion on 3/25, adds list of current projects with their stages.

I agree with @Trott but otherwise LGTM

Thanks @Trott @mhdawson @joesepi <3

Oops, see it already landed :)


[DH-819] [DH-1000] Documents access permissions for Company and Contact.

This adds two permissions company.read_contact_document and company.read_company_document. If user doesn't have them, then she/he will be unable to see archived_documents_url_path in corresponding entities.

Codecov Report

Merging #716 into develop will decrease coverage by 0.4%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop     #716      +/-   ##
===========================================
- Coverage    96.55%   96.15%   -0.41%
===========================================
  Files          138      137       -1
  Lines         4093     3979     -114
  Branches       384      378       -6
===========================================
- Hits          3952     3826     -126
- Misses          89      106      +17
+ Partials        52       47       -5

Impacted Files
Coverage Δ

datahub/company/models/company.py
97.24% <100%> (+0.1%)
:arrow_up:

datahub/company/models/contact.py
95.89% <100%> (+0.23%)
:arrow_up:

datahub/omis/order/admin.py
59.52% <0%> (-35.44%)
:arrow_down:

datahub/core/admin.py
77.77% <0%> (-5.86%)
:arrow_down:

datahub/core/permissions.py
91.3% <0%> (-2.03%)
:arrow_down:

datahub/investment/permissions.py
88.23% <0%> (-1.77%)
:arrow_down:

datahub/omis/order/validators.py
97.86% <0%> (-0.07%)
:arrow_down:

datahub/investment/admin.py
100% <0%> (ø)
:arrow_up:

...atahub/omis/order/templatetags/order_admin_tags.py

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 53b5d5e...6f9a946. Read the comment docs.


PUT on /user/ now updates all fields

I also made sure that backwards compatibility is maintained, so still you can update single field too, i.e. password. So we do not break angular and python UIs. Closes #152

I have update the signature, changed views accordingly.

LGTM other than the one comment above. Thanks.

I fixed that. Thanks. Still learning the codebase.

Good work. Thanks.

See corresponding alerta CLI pull request https://github.com/alerta/python-alerta/pull/27


Commands auto complete

As a developer, I would like to have auto complete for commands and subcommands.

Duplicated from #27


QT wallet UI must enforce one HODL claim at a time

wallet workflow can handle a single claim at a time.  But UI doesn't block buttons immediately (update happens with delay), that is why user can initiate more than one workflow.
Processing engine must handle second call but showing "Claim in progress" message.

Verified the fix, hence closing this  ticket.


Change shell for locked user.

Disallow locked user to log in setting /bin/false as a shell value (without it user is still able to log in using ssh key + authorized keys, even with locked password).
Reset shell for unlocked user.

Travis says:

Bundler could not find compatible versions for gem "poise-profiler":
In Gemfile:
poise-boiler was resolved to 1.5.2.pre, which depends on
poise-profiler (~> 1.0.pre)

Can someone take a look?

@artursitarski Being fixed elsewhere.

@coderanger thanks a lot, now it's ok. I see that continuous-integration/appveyor checks got stuck in some weird state. Could you poke them?

@chef/client-maintainers

Ping

Think this looks fine. :+1:

only issue i've got with this is that we need to validate that it works on ubuntu, rhel and solaris -- all of which have slightly differing useradd implementations...

other than that :+1:
although it sounds like thom is all over the O/S compat matrix so sounds like this is good 2 go

:+1:

Yeah, I have validated-by-man-page, and I think that's good enough.

@artursitarski @lamont-granquist @thommay
:warning: FYI: this PR potentially breaks the backward compatibility.
In our case on RHEL 6 we've managed а user and performed lock action expecting that it will be literally locked (usermode -L), but nothing more:
user 'beaver' do
  # ...
  action :lock
end

But now this user got a shell set to /bin/false, which causes failures to start the beaver daemon. Its init script contains the following line: su - $user -c kill -TERM $pid, so now it's failed because of disabled shell.
We strongly suggest not to break the behavior of user account lock, at least for useradd provider, and left only -L option here.
In case if operator wants this user account to be restricted to login via SSH private key, he should manage AllowUsers option of ssh deamon and/or just set shell explicitly:
user 'my_user' do
  # ...
  shell `/bin/false`
  action :lock
end

@artursitarski @lamont-granquist @thommay Guys, usermod man page tales us:
       -L, --lock
           Lock a user's password. This puts a '!' in front of the encrypted password, effectively disabling the password. You can't use this option with -p or -U.

           Note: if you wish to lock the account (not only access with a password), you should also set the EXPIRE_DATE to 1.

So if user resource executes only usermod -L is most obvious thing.
If you have trouble with ability to login into server by ssh, you must resolve it by configuring sshd. Also you may specify explicitly /bin/false as shell in your user resources.
I think what this PR will break workflow not only for us.


[WIP]:Add structure for docs based on Julia docs

@ShivamNegi, feel free to look through and test. Edit as you wish.
So far the docs string are not utilized

Wow! Looks great.

@ShivamNegi what do you think about the naming convertion of the project name and the module name. I think we are missing something. Most of the packages have Capital letters using the Camel style.
I have not checked well but I think you have a more clear idea.

You are right. Julia docs also mention Camel style. I will take up updating the naming. :+1: :

I did that. Currently I am trying to get the docs to build well. All the md files build.
The source code does not. I mean we are not getting the docstrings. Please have a look into that.
Either there is something wrong with the docstrings or we are missing out something

@ShivamNegi, you can check the structure here. I think this PR has the right structure. The only think remaining is to make sure the docstrings are built.
The docstrings we have are not in the right form.


tabBarVisible not working

Current behaviour
tabBarVisible is not hiding the TabBar at the bottom
Expected behaviour
TabBar should be hidden
Code sample
/** navigation.state.index is undefined
Therefore used routeName
**/
static navigationOptions = ({ navigation }) => {
navigationOptions = {
title: navigation.getParam('Title', 'Info Unavialable'),
};
if (navigation.state.routeName === "Details") {
navigationOptions.tabBarVisible = false;
}
return navigationOptions;
};
The Snack : https://snack.expo.io/@coldlinux/trembling-candies
The issue most probably lies in the DetailsScreen.js file inside screens directory
Screenshots (if applicable)

What have you tried

I've read issue #19 and #20 and also read
https://reactnavigation.org/docs/en/navigation-options-resolution.html#a-tab-navigator-contains-a-stack-and-you-want-to-hide-the-tab-bar-on-specific-screens
Tried the solutions mentioned in all of them
The code snippet is taken from DetailsScreen.js file and the entire projects is present on My profile under the name "Project2"
Your Environment

software
version

react-native
0.59

react-navigation-tabs
3.0.9

node
11.7.0

npm or yarn
6.9.0

hi! please provide a minimal reproducible example. more info on how to do this in https://stackoverflow.com/help/mcve

Hi brent I've added a Snack which very close to the real Project.


Using nested fields with self reference

What is the best way to use a nested field, that references to same class , e.g.
const Element = Class.create(
    { name : "Element",
        fields: {
            name: String,
            inputs: {
                type: [Element]
            }
        }
    }
)

My current approach is
const Element = Class.create(
    { name : "Element",
        fields: {
            name: String,
        }
    }
);
Element.extend({
    inputs: {
        type: [Element]
    }});
export default Element;

First of all use correct code styling because right now it's hard to read.
If it goes about your question. It's not correct way of storing nested documents. If Elements are stored in collection then you would store ids of nested documents which does not make sense. If the Element class is not intended to be stored directly then it's still not good design pattern even if MongoDB allows that. However it depends on use case. Sometimes it's just unavoidable.

Thanks jagi for the quick reply.
Now I understood what's meant with the nested fields. I was unaware of the whole ORM mapping features, and I thought that a feature like Reference Field in different ORM frameworks was implemented by astronomy. So knowing the current state of astronomy, how should I define such field? As a [String]?

i think this could help @saulide  https://docs.mongodb.com/manual/applications/data-models-tree-structures/

@saulide yes take a look at the link that @lyquocnam posted

Thanks for the comments!
I wonder if a feature using reference fields (similar to http://docs.mongoengine.org/guide/defining-documents.html#one-to-many-with-listfields) is planned in next iteration of astronomy? As I see, currently I need to check manually own defined rules in case e.g. deletion and do appropriate action ( cascade, null data, etc.)

Right now I'm not going to introduce such a feature because Astronomy will probably change a lot in the future. I'm rather more focuses on small improvements and bug fixes right now.

@saulide @jagi that is nice feature. i think so too :dancers:

Yes but it's also not so easy to implement. So probably it will not appear in Astronomy any time soon. Astronomy will also probably evolve from ORM to GraphQL+Relay wrapper.

@jagi OMG does "GraphQL+Relay wrapper" means use of Apollo or are you working on something else ?

@laurentpayot rather not Apollo as it uses Redux but we will see. Right now I'm learning Relay which is quite complex to learn and use. And I'm thinking about simplifying this process. The naming convention is also weird. From experience I know that every tool can be done simpler and API can be much easier to learn and use. But at the current stage it's hard to tell if there is a point of creating such a wrapper. Definitely I would also like to use such a tool with Meteor. We will see.


Error when build application with animations-moti

Current Behavior
I think moti was removed from the project dependencies

Expected Behavior
Build successfull
Tamagui Version
1.98.3

Platform (Web, iOS, Android)
All

Reproduction
Only install moti-animations, use on tamagui.config and build application.

System Info
No response

Error disappear when installing moti

Error disappear when installing moti

but is this right?

happening to me too

It was changed to a peerDependency instead, which means it needs to be installed as well (without restriction of any version):
https://github.com/tamagui/tamagui/blob/v1.100.6/packages/animations-moti/package.json#L36
Documentation could need some updates probably

Documented 819674a71db91e51f1786c256dbdbd3d87d0e294


Node crashes due to node.js level OOM

Hi,
I have a node which sync multiple paranets. It's been working fine till this morning.
Today i found it in a restart loop with the following error.
It appears that node.js runs out of memory. My VPS is 3 Cores, 4GM RAM (+4GB swap).
But as i understand it's not an OS-level OOM error, instead it's node.js level (running node v23.0.0).
I tried to run otnode while specifying explicitly --max-old-space-size=4096. It helped in a sense that the node did not fail with node.js OOM. But it failed with MySQL timeout (likely because of this - https://github.com/OriginTrail/ot-node/issues/3313).
So I cleared commands table to get over the MySQL timeout.
Now my node seems to be running fine.

<--- Last few GCs --->
[120015:0x71c6000]   190535 ms: Scavenge (interleaved) 1909.1 (1914.2) -> 1907.9 (1914.4) MB, pooled: 0 MB, 3.84 / 0.00 ms  (average mu = 0.206, current mu = 0.166) allocation failure;
[120015:0x71c6000]   191555 ms: Mark-Compact 1909.4 (1914.4) -> 1908.2 (1915.2) MB, pooled: 0 MB, 1016.16 / 0.00 ms  (average mu = 0.123, current mu = 0.027) allocation failure; scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----
 1: 0xe7bfef node::OOMErrorHandler(char const*, v8::OOMDetails const&) [/usr/bin/node]
 2: 0x12e8370 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/usr/bin/node]
 3: 0x12e870c v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/usr/bin/node]
 4: 0x154b595  [/usr/bin/node]
 5: 0x154b5c2  [/usr/bin/node]
 6: 0x155e37a  [/usr/bin/node]
 7: 0x1562370  [/usr/bin/node]
 8: 0x1fbe791  [/usr/bin/node]
otnode.service: Main process exited, code=dumped, status=6/ABRT
otnode.service: Failed with result 'core-dump'.
otnode.service: Scheduled restart job, restart counter is at 30.
Stopped OriginTrail V6 Node.```

Can you please share logs before OOM error, so we can investigate what caused it.

here is the full cycle from restart to restart
log.txt

I have one node running not yet released "8.1.1+beta.1" PR-3359, it's ran with --max-old-space-size=4096
I see it stuck in a reboot loop as it crashes with OOM again.
I've set --max-old-space-size=6144, will see how it goes.

I have been running the release you mentioned since Sudardy. Adding more RAM to the node is beneficial: It runs faster, there are fewer crashes, and the syncing process is faster. Up to 10 GB is beneficial; more is not necessary. It depends on the node and probably also on the hardware how much additional RAM the node wants.
Up to 10 GB is beneficial, some nodes will not need so much so solve the OOM chrases.

Welp, now i have node which does not want to start properly unless i allocate 10GB to it, that seems a bit... too much i'd say.


13-2: Use coherence instance of consistenty

Coherence and consistency have distinct meanings.
Coherence is related to the memory ordering of the same address.
Consistency is related to the memory ordering of different addresses.
Coherence is taken care of by the memory subsystem (mostly the cache).
Consistency is either the task of the programmer using fences or it is part of the CPU design to ensure a certain level of consistency (e.g. on X86 stores can't be reordered).

Thank you


Add Scala Code of Conduct

Typelevel is switching to the Scala Code of Conduct, and encouraging all member projects to follow.

I'm just merging these PRs because I'm in the middle of traveling but I'll try to sort out maintainers sections soon.


feat: add Desktop release for macOS, Windows & Linux

Closes #64

:tada: This PR is included in version 0.8.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Added new Perodua bezza, axia and myvi tuning

@benmasato please close the "foo" remote branch after merging


Update tanstack dependencies

Pull Request
🤨 Rationale
An issue was discovered when trying to automatically update the dependency on TanStack. This PR updates those dependencies and fixes the issue on the label-provider storybook page.
Resolves #1617
👩💻 Implementation

Update version of @tanstack/table-core and @tanstack/virtual-core
Set a min-height on the tables used in the label-provider stories

🧪 Testing
Verified the tests pass and there are no chromatic changes
✅ Checklist

[ ] I have updated the project documentation to reflect my changes or determined no changes are needed.

@atmgrifter00, can you buddy this for me?

@atmgrifter00, do you mind taking another buddy pass of this PR? I've changed the approach.


Added Semper Student Mail Domain

Sorry didn't mean to close

@BreadCatV1 Could you please ensure that you did not make a typo?
Schulkonzept - Semper Fachoberschule Dresden domain seems to be semper-schulen.de, and you ask to add semper-schuler.de. If the latter is correct, please provide us with a proof, which shows that the school recognizes the domain you are submitting as an official email domain for the students.
You can provide us with any of the following:

A copy of instruction (a hard-copy or electronic one) given to you by the school that tells you to use an email address in this email domain
An URL of a page at the official school website that says that students use this email domain
A reference to a recognized journal where an article was published by someone from the school, with explicit affiliation to the school, and e-mail address from the email domain
A WHOIS data that link the email domain to the school somehow
A copy of official letter from the school representative saying that the school provides e-mail addresses in this domain to the students
Anything else that can prove this fact in similar way, i.e. can be verified independently.

Schule means School and Schueler means Student, they use one for offical channels and one to assign student accounts
https://portal.semper-schulen.de/ticket/
"Die Nutzung ist nur für Semper-Accounts (semper-schulen.de bzw. semper-schueler.de) möglich."
"Usage is only Possible for Semper-Accounts (semper-schulen.de or semper-schueler.de)"

@BreadCatV1 Thank you for your patience while waiting for a review and processing your request. I appreciate your detailed explanation very much. Pull request merged.


Add custom data type support

Getting 'Instance of 'MasterData' when I use AutComplete<MasterData>. see code below

 optionsBuilder: (TextEditingValue textEditingValue) {
                                if (textEditingValue.text == '') {
                                  return const Iterable<MasterData>.empty();
                                }
                                return addNewProjectsProvider.serviceList.where((MasterData option) {
                                  return option.typeName!.contains(textEditingValue.text.toLowerCase());
                                });
                              },

After selecting any item, it shows name properly.

So, is there any way to change 'Instance of 'MasterData' to actual type(MasterData.typeName) ?

This has nothing to do with this package. This is happening because your object MasterData doesn't return a text object which is needed to be displayed by Autocompleter widget.

Our widget actually supports this now. But note AutComplete is not our widget


feat: optimize unary callables to not wait for trailers

gRPC ClientCalls and thus gax currently wait for trailers to resolve unary call futures. I believe the original reason for this was to mitigate misconfigured servers where a server endpoint was changed to be server streaming, but the client still expects a unary method. We measured the cost of this safety net to be O(hundreds of millis). For low latency services like Bigtable, this is very high.
This PR is incomplete, but is meant to be a conversation starter. I would like to get gax's opinion on this and guidance how to proceed. Some initial proposals:

productionize this PR and roll it out
gate this behavior using a flag in UnaryCallSettings
expose a bit more surface in gax to allow cloud bigtable to build our callable chains (the current blocker is that GrpcUnaryRequestParamCallable & GrpcExceptionCallable are package private

@vam-google when you have a moment, can you comment on the approach? if it looks good, I'll update tests & docs

@vam-google I think addressed all comments, PTAL

You need to run the formatter:
FAILURE: Build failed with an exception.

Task :verifyGoogleJavaFormat FAILED

What went wrong:
Execution failed for task ':verifyGoogleJavaFormat'.

Problems: formatting style violations

LGTM with few minor comments and under assumption that by default it is disabled (alwaysAwaitTrailers as a settings property is false by default, is it correct?)

Yep, its off by default


Stop printing stuff in the console

I don't want to get output
Is there a way I can configure my Client object to not print stuff like "login into ..." or the big chunk of text that it appears when
you send a message with client.send(Message(message), user.uid)?

You can import the logging module and use pass logging_level=logging.ERROR when creating your fbchat.Client() instance


[python] Refactor binding code to inherit from SOMAArray and SOMAObject

Completed by https://github.com/single-cell-data/TileDB-SOMA/pull/2124

@nguyenv what else remains to be done here?

Nothing but the PR still needs to be merged. I'm just waiting for CI to finish. I accidentally closed the wrong issue.


Move Traces to trace package?

Why isn't org.typelevel.otel4s.java.Traces in the trace package with everything else?  Is it because the rest of it is internals?
Splitting packages across jars was a big pain in the OSGI Era.  I don't know if there's still a reason not to do it, but it feels a bit off.

I mimicked the layout of the metrics java package. Both Metrics and Traces traits live in the org.typelevel.otel4s.java package.


Not seeing notifications in mobile messenger

Not sure this is directly related to the framework, but I can't trigger mobile notification from my bot (for FB messenger). Messages are being delivered ok, the notification is present if I run messenger in a web browser, but not in the mobile - no toast or sound.
I tried ReplyToActivityAsync as well as CreateDirectConversationAsync +  SendToConversationAsync.
Also tried to push notification_type = "REGULAR" to the channel data.
Notification settings in the messenger are all on, but there's no toast notification. Tried that on WindowsPhone and iPhone for different user accounts. Is anyone seeing similar behaviour? Is there something specific I should take care of?

Hm... I got the notifications back if I return responses to the user within the POST call (I was using ConfigureAwait(false); on that call to return immediately as the response generation happens on a separate service (service fabric). So the other question is - how do I initiate bot->user conversation that triggers notification on mobile device for FB messenger?

BTW, notifications in Skype appear regardless of using ConfigureAwait(false); or not.

Hi @piotrwitkowski, the use of .ConfigureAwait(false) is unrelated to notifications. ConfigureAwait(false) is necessary to prevent deadlocks in some situations. You can find more information here: http://stackoverflow.com/a/13494570 or by searching for ConfigureAwait.
Facebook says the "notification_type" field defaults to REGULAR. I'm not sure why the notification isn't showing up. Have you asked Facebook? https://developers.facebook.com/docs/messenger-platform/send-api-reference

Hi @dandriscoll, It looks like it is indirectly related to the .ConfigureAwait and it is not a facebook issue. Let me clarify. In the first case, I receive POST request in my bot controller, pass it further to my backend and wait for the backend to send to a user a few messages. Then the controller returns from the POST method. In this case, notifications work OK. In the second case, I receive POST request, pass it further to my backend using FireAndForget approach (.ConfigureAwait(false)) and return immediately from the controller. The back end then slowly send some messages to the user, they arrive OK, but do not trigger notifications.

I have a similar issue.  SendToConversationAsync do not trigger notification on mobile clients, but the message delivered just fine.
Not sure if it is relevant, but In detail I construct an Activity, Activity.CreateReply, then replace the Recipient.Id and Conversation.Id I previously stored, and then send with SendToConversationAsync with .ConfigureAwait(false).

I got the notifications working by getting rid of the FireAndForget approach (.ConfigureAwait(false)). Not ideal, but will do for now.

Thanks.
Tried to remove .ConfigureAwait(false) for the entire call stack.
Tried setting notification_type to REGULAR or SLIENT_PUSH.
And tried combination of both. Still no notification. =/

I switched to using CreateReply exclusively, even for communication initiated by the bot. Not sure if that is a factor.

Closing due to age, reopen if you are still having issues.

I would like to see this reopened if possible, as I am currently encountering this issue. I'm sending messages via a dialog - I've investigated using both
ConnectorClient.Conversations.ReplyToActivityAsync(Actvity); and
IDialogContext.PostAsync(IMessageActivity);

Neither triggers notifications in Facebook Messenger (on Android) - whereas new messages from real people have always triggered and continue to trigger new message notifications.
Since messages are channel-agnostic, I have to assume that the answer lies in the way the framework 'translates' an IMessageActivity onto the Facebook Messenger channel somewhere. One shouldn't have to add channel-specific data to a message in order to trigger a notification - notifications should be controlled only by user settings on the client side. Or do I have it wrong?

Update: the following worked for me:
        message.ChannelData = JObject.FromObject(new
        {
            notification_type = "REGULAR"
        });

The key point is that you need to specify a ChannelData in order to get a notification on the Facebook channel.
I would have expected that it would be the other way around - that a notification would be the default for messages on the Messenger channel, and the framework should be doing this for us. It should be up to the user to replace this if required with a SILENT_PUSH or NO_PUSH instead.

Any news here? I think the framework should do this for us... the channel specific BotConnector should translate it for us..

According to https://github.com/Microsoft/BotBuilder/issues/3714, 'SILENT_PUSH" is the default.


Link to the knife.rb docs when the knife.rb file is missing

This is a pretty common first error message to experience with Chef. Let's point the users to a helpful location so they can quickly get up and running.
Signed-off-by: Tim Smith<EMAIL_ADDRESS>

ohai_hint resource snuck in here

let me nuke that out

If the user is using config.rb talking about knife.rb will be pretty confusing, but I like the intent.

I'd agree, but we never actually documented config.rb in the workstation and knife docs. I'm not sure how many people are using that.

I don't entirely understand why it's in the ChefDK docs, but the Configuration topic there is all about config.rb. So we are telling people about it.


[MXNET-1017] Updating the readme file for cpp-package and adding readme file for example directory.

Description
Update the README file for cpp-package with build instructions and provide new README for example directory
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[y] The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
[y] Changes are complete (i.e. I finished coding on this PR)
[ ] All changes have test coverage:
Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
[ ] Code is well-documented:
For user-facing API changes, API doc string has been updated.
For new C++ functions in header files, their functionalities and arguments are documented.
For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
[y] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

[ ] Feature1, tests, (and when applicable, API doc)
[ ] Feature2, tests, (and when applicable, API doc)

Comments

If this change is a backward incompatible change, why must this change be made.
Interesting edge cases to note here

@aaronmarkham
I have closed the PR  #12773 as it contained unwanted changes.
I have tried to address all the review comments from the closed PR.
In the markdown syntax "" around the word render that word in italic format. For avoiding this in situations such as "LD_LIBRARY_PATH", I have to add "" before the "" character.

@aaronmarkham Can you please take a look at this PR?


MIPS64:  relocation issue

Describe the bug
MIPS64 relocation handler discards the old symbol value resulting in symbols having the EA as their value.  This binary is built to load at 0x0, so basically all of my .rel.dyn relocations are NULL pointers.
For example readelf shows:
000000667788<PHONE_NUMBER>03 R_MIPS_REL32
                    Type2: R_MIPS_64
                    Type3: R_MIPS_NONE

with file data of:<PHONE_NUMBER>88: 00 00 00 00 XX YY ZZ WW
and ghidra loads:<PHONE_NUMBER>88: 00 00 00 00 00 00 00 00
R_MIPS_REL32 handling has saveValue true and symbolIndex 0x0, resulting in symbolValue 0x0
Fall through in R_MIPS_32 extractAddend() false
R_MIPS_64 handling has saveValue false, addend 0x0, and symbolValue 0x0 resulting in overwriting the previous value with 0x0
Environment (please complete the following information):

OS: 20.04
Java Version: 17.0.4
Ghidra Version: 10.2-DEV  b88cf85d5cef4e766e6093223b6320ee5ae7a113
Ghidra Origin: eclipse

Could you please provide a binary which exhibits this behavior

It is possible that the section symbol is not picking up the address of the corresponding section block.  Will need to investigate with a sample.

@ghidra1  I'll see if I can find a shareable binary or if I can generate an ELF.
I did work around with (still playing with the image, so not sure how good/bad this was):
for reloc in currentProgram.getRelocationTable().getRelocations():
    if reloc.getType() == 0x1203 and 0 == reloc.getValues()[0]:
        setBytes(reloc.getAddress(), reloc.getBytes())

Sorry that wasn't clear, I did word that weird.  I did change base address to 0.  So with that and reverting the relocations it looks good.  Sorry I have been unable to find a shareable sample so far, plan to look more this weekend

We do sometime struggle with pre-linked relocateable binaries - could this be one of those?  The relocations are present but do not need to be applied.  In those cases disabling relocation processing from import options may be the appropriate solution.

It's seems to be just the symbolIndex==0 maybe or maybe just the .rel.dyn section, I'll double check to see if I notice any patterns.  There were a lot of relocations untouched by the above script

I believe the intent of this relocation for symbolIndex==0 is:
R_MIPS_REL32
   value = imageBaseAdjustment + addend
   ***Assuming this is a REL type relocation value should equal the original bytes (32-bits) from the relocation address
   This value should be saved for use below
R_MIPS_64
   addend = value from above
   newValue = 0 + addend
   store value as 64-bit long

***Could the issue be caused by the R_MIPS_REL32 using the upper 32-bits instead of the lower 32-bits of the affected 64-bit location?  It is using a 32-bit oldValue read from the relocation address.  Since this code is shared for both 32-bit and 64-bit MAIPS that oldValue read may be flawed for 64-bit MIPS.

Could the issue be caused by the R_MIPS_REL32 using the upper 32-bits instead of the lower 32-bits of the affected 64-bit location? It is using a 32-bit oldValue read from the relocation address. Since this code is shared for both 32-bit and 64-bit MIPS that oldValue read may be flawed for 64-bit MIPS and should have been a 64-bit read.

ohhhhh, yeah... that is looking like the issue.  I added a int tmpOldValue = memory.getInt(relocationAddress.add(4)); and got my original address

Can you please test this modified MIPS_ElfRelocationHandler before I commit?  Thanks!
MIPS_ElfRelocationHandler.java.txt

@ghidra1   Yes, looks good as far as I can tell for the R_MIPS_REL32/R_MIPS_64/R_MIPS_NONE relocations.  Thanks again (and thanks for adding/fixups for the xhash PR)

Closed by 8c1fd57b72c84d99e8dca998ff0d1c22161bc4c4


add datetimefield json constr

Instructions:

The PR has to be tagged with at least one of the following labels (*):

feature
bugfix
performance
ui
backward-incompat
release-notes (**)

Remove these instructions before publishing the PR.

(*) Other labels to consider:

testing
dependencies
docker
kubernetes
observability
security
code-style
extension-point
refactor
cleanup

(**) Use release-notes label for scenarios like:

New configuration options
Deprecation of configurations
Signature changes to public methods/interfaces
New plugins added or old plugins removed

Ref issue: #8632

Acknowledged. Let me see


How to provide external resources?

I can not find a way to pass additional resources that an HTML may need to render successfully like external images and fonts. specially fonts are my curreny problem. the command line version of the wkhtmltopdf supports them as it runs locally but what about over this API?

Did you tried to pass the font via url?
example:
<link href='http://fonts.googleapis.com/css?family=Jolly+Lodger' rel='stylesheet' type='text/css'>

that would work with publicly available fonts but I have some properietary ones. I believe embeded as data URI will work.

If you are in an proprietary context you should fork this project and host this service at your company backend, where you have access to local hosted services (company network) to reference a non public URI. The provided API (https://docker-wkhtmltopdf-aas.herokuapp.com) in the Readme.md is only a demo service for testing.


Adding support emit error in try_fn_stream

Hi! Could we add emitter.emit_err(error) for try_fn_stream? I want to transfer control over error handling to the consumer, and they, in turn, decide whether to break the loop or not. Right now the only option is to return an error from the handler, which in turn prevents it from continuing to consume the thread in the event of an error. However, if I wanted to throw an error now, I could solve it this way
impl Stream<Item = Result<Result<ListResponse, Error>, Error>>

But this is cumbersome and duplicates the logic of the current result.

Hi,
Could you describe what are you trying to achieve?
As far as I can see, you can use fn_stream and produce a stream of impl Stream<Item = Result<ListResponse, Error>> like so:
use async_fn_stream::fn_stream;
use futures::{pin_mut, Stream, StreamExt};

#[tokio::main]
async fn main() {
    let stream = get_stream();
    pin_mut!(stream);
    while let Some(res) = stream.next().await {
        println!("{res:?}");
    }
}

fn get_stream() -> impl Stream<Item = Result<i32, MyError>> {
    fn_stream(|emitter| async move {
        emitter.emit(Err(MyError {})).await;
        emitter.emit(Ok(0)).await;
    })
}

#[derive(Debug)]
struct MyError {}

That's a really long answer already from me 😄. Indeed I can use fn_stream, but I expected about the same behavior from try_fn_stream. The inconvenience is that I can't use ? operator when using fn_stream.
Let me show you with your example, I would like to use the following:
use async_fn_stream::try_fn_stream;
use futures_util::{pin_mut, Stream, StreamExt};

#[tokio::main]
async fn main() {
    let stream = get_stream();
    pin_mut!(stream);
    while let Some(res) = stream.next().await {
        println!("{res:?}");
    }
}

fn get_payload() -> Result<i32, MyError> {
    Err(MyError {})
}

fn get_stream() -> impl Stream<Item = Result<i32, MyError>> {
    try_fn_stream(|emitter| async move {
        // End the stream immediately
        let payload = get_payload()?;

        // Handle
        emitter.emit(Err(MyError {})).await;
        emitter.emit(Ok(0)).await;

        Ok(())
    })
}

#[derive(Debug)]
struct MyError {}

But I get the following when building it:
error[E0271]: type mismatch resolving `<TryFnStream<Result<{integer}, MyError>, _, {async block@src/bin/test.rs:18:29: 27:6}> as Stream>::Item == Result<i32, MyError>`
  --> src/bin/test.rs:17:20
   |
17 | fn get_stream() -> impl Stream<Item = Result<i32, MyError>> {
   |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<Result<..., ...>, ...>`, found `Result<i32, MyError>`
   |
   = note: expected enum `Result<Result<{integer}, MyError>, _>`
              found enum `Result<i32, MyError>`

For more information about this error, try `rustc --explain E0271`.
error: could not compile `async-fn-stream` (bin "test") due to 1 previous error

However, I think try_fn_stream would be easier to use if there was something like this:
fn get_stream() -> impl Stream<Item = Result<i32, MyError>> {
    try_fn_stream(|emitter| async move {
        // End the stream immediately
        let payload = get_payload()?;

        // Handle
        emitter.emit(MyError {}).await;
        emitter.emit_err(0).await;

        Ok(())
    })
}

We'd keep the same function signature and give more control when we don't necessarily want to get out of the stream on an error

OK, now I see what you mean :)
I like the emit_err method - it seems to be backwards-compatible and concise.
I'll try to come up with the implementation, or feel free to make a pull request.


Total slide numbers not displaying on pdf

Hello,
in the config.ts in the Reveal.Options object, when I set the following:
slideNumber: 'c/t', showSlideNumber: 'all'
It only displays the total number of slides in the normal view, but not on the printed pdf when I go to http://localhost:5173/?print-pdf and print to pdf

I never used this feature but it looks right to me. The PDF Export section of the Reveal docs mention it only works in Chrome browsers.

Yes, that is also what I get. It only shows the current slide. But I want it to show the current silde / total number of slides (like 1/3 , 2/3, 3/3). That it only does in the normal view, but not in the "pdf view"

That is what the 'c/t' is for

@marvwebdev It might be because I haven't included the print styles but I'm going to have a look.

@marvwebdev I tried it and it didn't make a difference but I found https://github.com/hakimel/reveal.js/issues/2166 and I think you can't control the number format when printing, so I don't know.


export length_tracking_byte_sink.dart

In order to deploy contract we need 'length_tracking_byte_sink.dart' to encode abi data. Currently its not exported from web3.dart

Can you share/describe the way you are deploying your contract?

Here is the code
 List<int> data = [];    // this is basically Channel.bin     data.addAll(hexToBytes(contractBinCode));     AbiType abiType = parseAbiType('(address)');     final sink = LengthTrackingByteSink();    // Adding arguments     abiType.encode(         [EthereumAddress.fromHex(marketplaceAddress)], sink);     data.addAll(sink.asBytes());     final transaction = Transaction(       to: null,       from: walletService.credentials!.address,       data: Uint8List.fromList(data),     );     final transactionHash = await web3Client.sendTransaction(         walletService.credentials!, transaction,         chainId: 80001);

I will fix this issue with the next release.
Meanwhile, use this code:
import 'package:web3dart/src/utils/length_tracking_byte_sink.dart';

Closing this one but please feel free to open a new issue anytime.

Yeah i am using this way if you want i can create pull request and you can accept it

Please do :)

Please make a part.

oh okay

created


iterate over arrays

I've regenerated our PACs using this branch and am able to iterate over arrays of registers again. Thank you for the quick fix!


[Bug]: ODS - Module - Empty State - Landscape view

Prerequisites

[X] I have searched the backlog for duplicate or closed feature requests

Your test device
Pixel 7
OS Version
14
App version
0.18.0
Describe the issue
when choosing to display both text and button for empty states and In landscape orientation, the display of 'First use' and 'No data' does not have enough space to display the text or button and there is no scroll possible.
Expected Behavior
The user should be able to see and access the additional text and button on the screen.


Add the images for the sport schedule in the list

Add the images for each sport schedule in the schedule search.
Requires #4.
For now, since we do not have images, there will be only placeholder at this moment.

However, this issue may be closed as not planned, since we do not have any unique images for each group.
Moreover, adding the same image for multiple sport clubs is not very good idea in my opinion.
Maybe, we should use generator in case we will add the images.
What do you think?

We can move this issue to backlog till images are supported by API

This issue will be closed as not planned until the images will be supported by the API.
When the support will be available, this issue should be re-opened.


got error says Got a subscription for missing event "onForceReload"!

[12/31/2019 10:36:13] Info: LoadAddons: CactbotOverlay.dll: Initialized
[12/31/2019 10:36:14] Error: Got a subscription for missing event "onForceReload"!

If you're using the web hosted version of an overlay like raidboss, eg https://quisquous.github.io/cactbot/ui/raidboss/raidboss.html then you can ignore this for now.
When the new version of cactbot is released this error should go away.

thank you so much :3 💯


[Feature] support binary predicate for array type

What type of PR is this：

[ ] BugFix
[x] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #15365
Problem Summary(Required) ：

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[ ] I have checked the version labels which the pr will be auto backported to target branch

[ ] 2.5
[ ] 2.4
[ ] 2.3
[ ] 2.2

[FE PR Coverage Check]
:disappointed: fail : 3 / 7 (42.86%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/analysis/BinaryPredicate.java
3
7
42.86%
[261, 292, 293, 295]

[FE PR Coverage Check]
:disappointed: fail : 3 / 7 (42.86%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/analysis/BinaryPredicate.java
3
7
42.86%
[261, 292, 293, 295]

run starrocks_admit_test

run starrocks_fe_unittest

run starrocks_admit_test

@Mergifyio rebase

[FE PR Coverage Check]
:disappointed: fail : 3 / 7 (42.86%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/analysis/BinaryPredicate.java
3
7
42.86%
[261, 292, 293, 295]

run starrocks_admit_test

@Mergifyio backport branch-2.5


Update the documentation on GOROOT_FINAL before release of go1.6

see #13809
https://golang.org/cmd/go/#hdr-Environment_variables
The above documentation is very sparse and should be expanded. It is not clear enough on what this variable does and what it's used for. Some questions that should be answered in the documentation:

What are valid values? Does it have to be a valid go installation path, or can it be any value? (The documentation makes it sound like it should to be a valid go installation, but maybe not? It just says it's used to overwrite the stack trace, not that it's used for actual building)
Does it overwrite paths that are relative to GOPATH (i.e. user source), or only paths relative to GOROOT? (The documentation makes it sound like only GOROOT paths are overwritten)
When should the variable be used (i.e. under what use cases)? Currently, the documentation makes this variable seem downright useless. It doesn't appear to offer any benefit over the standard GOROOT.

Maybe more clarification could be added that I didn't think of.

I'm sorry for the runaround but I don't think GOROOT_FINAL should be any more documented than it already is in make.bash:
# GOROOT_FINAL: The expected final Go root, baked into binaries.
# The default is the location of the Go tree during the build.

It sets the default value of GOROOT for the built toolchain, and it sets the paths that show up in the binaries in that toolchain (like the go command and go compiler). It has nothing to do with user programs. I will comment more on #13809 for your specific problem, which GOROOT_FINAL does not solve.


Complete unit tests

The project should include at least as many tests as FunScript. So far I've been copying and adapting unit tests from FunScript repo, basically my removing the quotation brackets <@@ and @@> and adding an assertion with Util.equal.
If someone wants to help with this process, please write which file you want to take care of to make sure we don't step on each other's feet. Maybe @MaxWilson can help here too? Thanks!

tests are now run in appveyor see #8

We already have around 500 tests so let's deal with the remaining ones on a case by case basis. Closing the issue.


Can't use window after building a renderer.

I am a little worried that the problem is my inexperience with the language, as ownership and borrowing are fairly unique concepts.
However, after building a window:
let window = sdl_context.window("My SDL Rust app", 800, 120)
		.position_centered()
		.opengl()
		.build().unwrap();

And after that a renderer:
let mut renderer = window.renderer().build().unwrap();

And then trying to get a size of the window:
let (x_win, y_win) = window.properties_getters().get_size();

I get:
src/main.rs:55:22: 55:28 error: use of moved value: `window` [E0382]
src/main.rs:55     let (x_win, _) = window.properties_getters().get_size();
                                                    ^~~~~~
src/main.rs:12:21: 12:27 note: `window` moved here because it has type `sdl2::video::Window`, which is non-copyable
src/main.rs:12 	let mut renderer = window.renderer().build().unwrap();
               	                                     ^~~~~~

I tried my best to do something about it in my program (other than do without properties), but nothing seems to work. I tinkered a bit with the rust-sdl2 itself and got everything to work, but, as I've stated above, I don't know if I missed something important and can fix that in my program without such measures. Can somebody provide some advice?
P.S. This is my first issue ever, please excuse me if I've done something wrong...

The window is consumed by the renderer (fn renderer(self)), so you must access the window properties through the renderer:
renderer.window_properties_getters().get_size()

Note that this will change slightly if #443 is merged:
renderer.window().unwrap().get_size()

Hope this helps!

That's a bit counter-intuitive to me... May I ask, out of sheer curiosity, why not to make renderer not consume the window? Still, your advice worked! Thanks a lot!

It is counter-intuitive... I'm open to better alternatives, because it's a bit clunky.
To understand why it's done the way it is, we need to understand the lifetimes of both types.
First off, we'll establish that the renderer should always live shorter than the window it's initialized from. Otherwise, we're likely to introduce memory unsafety problems with use-after-free (i.e. if the renderer uses window after the window is freed). To preserve memory safety, a goal of our abstraction is to prevent dropping the window until after the renderer is dropped.
If the Renderer were to take a reference to a window, it would become safe, but unfeasible to store both the renderer and the window in the same structure. This is what people would generally want to do, but the compiler won't allow it:
pub MyGame {
    window: Window,
    renderer: Renderer<'a>  // 'a needs to refer to the window... but we can't.
}

Hm, okay, I think I understood... I tried to implement the Clone trait for Window and use a copy of it in RendererBuilder::new(), which did allow to use both renderer and window, but I guess it allows use of renderer after free... Again, thank you a lot!


How do you really define where in the code to perform the attack ?

Dear authors,
I noticed in your deadcode test dataset, you added the deadcode and pre-process them. So how do you define those attack points, in other words, where to add those deadcode (or which varname to change) ?
Thanks in advance !

Dear @urialon
Thanks for your reply. But I don't think you fully understand my question. What I want to ask is that: In the paper, you didn't mention where in a code snippet that the attack is performed, e.g where in a code snippet to add a deadcode or which varname in a code snippet is chose to be changed.
I also cannot find the answer after reading your project code. Then I noticed in your test dataset, the attacks are already added and I assume that these attacks were added randomly and the project only takes in those datasets and compare the outputs of them to the original (pre-attacked) outputs.
However, I feel really skeptical about my assumption. Therefore, I want to ask you, the authors, if my assumption is true, or there are some method you used to define where to add the attacks, to achieve higher effectiveness of the attack.
Thanks for reading this quite long question. Have a good day !

Hi @hungkien05 ,
Thanks again for your interest in our work.
As far as I remember:

VarName - the variable to attack is chosen randomly. I am assuming that if we had selected which variable to attack, we could have gotten an even better attack success rate. So I think that choosing the variable to attack in a more clever way is an interesting open research direction.
DeadCode - page 14 says:

In all cases, we arbitrarily placed the dead code at the end of the input method, and used
our attack to find a new name for the new (unused) declared variable. In our preliminary
experiments we observed that placing the dead code anywhere else works similarly

Does that help? I'm not sure I understood all your questions.
Best,
Uri

Thank you @urialon for your reply. That really answered all of my questions !


Fix typo in title

Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] All the files I changed are in the same world language, for example: only English changes, or only Chinese changes, etc.

Closes #XXXXX

See upstream PR https://github.com/freeCodeCamp/freeCodeCamp/pull/39492


Expose API in react boilerplate

Hi,
Can we expose service API in React boilerplate project.
Ex:
Server/index.js
app.post('/Hello', function (req, res) {
res.send('hello world')
})
When hit url http://localhost:3000/Hello then able to consume it

@Shaikabbu This boilerplate is not meant to be an Isomorphic application but rather only for frontend.
If you still need to add routes into this you can check server/middlewares/frontendMiddleware.js file.
change this part
app.get('*', (req, res) => {
   fs.readFile(path.join(compiler.outputPath, 'index.html'), (err, file) => {
   if (err) {
   res.sendStatus(404);
   } else {
   res.send(file.toString());
   }
   });
});

to
app.get('/', (req, res) => {
   fs.readFile(path.join(compiler.outputPath, 'index.html'), (err, file) => {
   if (err) {
   res.sendStatus(404);
   } else {
   res.send(file.toString());
   }
   });
});

app.post('/Hello', (req, res) => {
  res.send('hello world')
});

Be warned that you'll have to add routes in here too for every route in your app/routes.js file.
I wouldn't recommend going this path though.

I disagree with the above statement. This project has a nice express server running that you can absolutely use for an API.
You do NOT want to change the frontendMiddleware. Just edit your server index file where the boilerplate has suggested you can add an express router.
https://github.com/react-boilerplate/react-boilerplate/blob/master/server/index.js#L14
Express docs explains using a router: http://expressjs.com/en/4x/api.html#router

You can, as mentioned above.  Philosophically I don't know if I'd want to couple my app and APIs together like that as one monolithic project, but rather, I'd create generic APIs using node/express as a separate project all together that the app simply consumes.  That way you can also run these in separate docker containers / machines and scale them differently, etc.

the engine of this boilerplate is really designed to provide awesome developer experience and build highly optimized static assets... how you serve these assets is totally up to you :)
since this seems resolved, i'm going to close but please feel free to continue discussion!!


[BUG] timefmt

[X] I've checked docs and closed issues for possible solutions.
[X] I can't find my issue in the FAQ.

Describe the bug
It is impossible to use a blank datefmt ("").
import logging
from logging import debug, error, info
from rich.logging import RichHandler

logging.basicConfig(format="%(message)s",
                    handlers=[RichHandler(rich_tracebacks=True)],
                    datefmt="",
                    )

error(f"something or other")

The above forces a date:
[12/07/23 09:35:40] ERROR    something or other                                                                     test.py:10

Changing the datefmt to be a single space instead works, but adds a space to the front of the line:
                    datefmt=" ",

  ERROR    something or other                                                                                test.py:10

Platform

Platform: linux (but shouldn't matter)
platform="Linux"
enrich==1.2.7
rich==12.5.1
rich-cli==1.8.0
rich-logging==0.0.1
rich-rst==1.1.7

(I tried to create a patch, but failed -- not familiar enough with the internal flow handling of the date formatting)

Hey, my university software engineering group are willing to tackle this issue. Would it be possible to assign us? Here are our git usernames @albinkempe @lolindgr @ollisco @SihamShahoud and me @selmaozdere
Thank you for your answer !!


Cancelling previous job if new one is started

Apparently, this is the way to do it:
https://github.com/csci-1301/csci-1301.github.io/blob/41c260bb725c61a909ea9295b03afac59ff31ed9/.github/workflows/build.yaml#L12-L14
but I'm not sure it is working properly:

It's working, you just have to be patient:


(PDB-2007) array params with undef don't sort

This fixes a discrepancy between JVM puppetserver and Puppet with respect to our
terminus, where manifests like
@@notify { "test":
tag => [undef, "a", "b"],
}
would fail due to inability to compare symbols and strings. With this patch, we
sort by string representation rather than sorting the array directly.

lgtm +1

Refer to this link for build results (access rights to CI server needed):
http://jenkins-enterprise.delivery.puppetlabs.net/job/enterprise_puppetdb_init-multijob_githubpr-stable/36/
Test FAILed.

Refer to this link for build results (access rights to CI server needed):
http://jenkins-enterprise.delivery.puppetlabs.net/job/enterprise_puppetdb_init-multijob_githubpr-stable/37/
Test PASSed.


Add more vector methods

Fixes #116.
Checklist

[x] Updated CHANGELOG.md with relevant changes
[x] Added tests for any new/fixed functionality
[x] Added/updated documentation for new/changed code
[x] Checked that README.md still makes sense (and updated it if necessary)

The only real open question here is whether we should implement Index which panics, like the std slice does.

After talking to @nicklaswj I've decided that we do in fact want to implement the Index trait.

And after trying to do this, I have realized that the Index trait requires the output to be an &T, which we cannot give.


WIP: Plugin asset handlng

Working on #591 and #592, for generally better asset shifting.

From the Mill version, you can now do this:

The sbt one is the same, except that you'll use the overload functions that use Strings instead of os-lib paths.


Respond with Status 204 while Resume Upload!!

204(No Content) While Resuming Upload
Request to upload is accepted and started the uploading. I've Paused the Upload manually. The Developers Network tab shows the response of

Pause Request
Url: https://tus.domian.com/files/d59e93f6e32198328992e02692992050+htCxGORr2-F8dS27kJwUcd3X_8Ky7A-W3APlia1TNtkG9ilYBuYrUCi5Wm7PIrkirLxfD1kEBgsFZIFjJ9l2UiuyJCRdfJnhcxopjma_lmOFhPEoM6DEg4bmD7DW3S72
Method: OPTION
Status: 200

Then I resumed the Upload,Network tab shows the response

Resume Request
Url:https://tus.domian.com/files/d59e93f6e32198328992e02692992050+PaDp02XfiOTPhanj5eBeBX0ylzVMFpDBM8Wm5WPMnE9Du69g9DFI6b_5tBnDD9v2FSrmhxD63hJEudE6IsYexyu9aD5Sj4ZCtXbc-ZNk401l_LjFrrQh32NjukJYUl2G
Method: HEAD
Status: 204

To Reproduce
Pause the Upload, Then Resume
Expected behavior
It must be resumed
Setup details

Operating System: Ubuntu 18
Used tusd version: 1.0
Used tusd data storage: AWS S3
Used tusd configuration:[-s3-bucket,-s3-endpoint,-s3-object-prefix,-max-size,-timeout,-port,-hooks-http,-hooks-http-retry,-hooks-http-backoff,-hooks-enabled-events ,-behind-proxy]
Used tus client library: tus-js-client

[tusd] 2020/09/05 19:13:20 event="RequestIncoming" method="POST" path=""
[tusd] 2020/09/05 19:13:20 event="HookInvocationStart" type="pre-create" id=""
[tusd] 2020/09/05 19:13:20 event="HookInvocationFinish" type="pre-create" id=""
[tusd] 2020/09/05 19:13:20 event="UploadCreated" id="bd0a7474fef080f329f794216c3ba8b5" size="102354212" url="http://tus.mydomain.com/files/bd0a7474fef080f329f794216c3ba8b5"
[tusd] 2020/09/05 19:13:20 event="ResponseOutgoing" status="201" method="POST" path=""
[tusd] 2020/09/05 19:13:20 event="HookInvocationStart" type="post-create" id="bd0a7474fef080f329f794216c3ba8b5"
[tusd] 2020/09/05 19:13:20 event="HookInvocationFinish" type="post-create" id="bd0a7474fef080f329f794216c3ba8b5"
[tusd] 2020/09/05 19:13:20 event="RequestIncoming" method="OPTIONS" path="bd0a7474fef080f329f794216c3ba8b5"
[tusd] 2020/09/05 19:13:20 event="ResponseOutgoing" status="200" method="OPTIONS" path="bd0a7474fef080f329f794216c3ba8b5"
[tusd] 2020/09/05 19:13:26 event="RequestIncoming" method="GET" path="bd0a7474fef080f329f794216c3ba8b5"
[tusd] 2020/09/05 19:13:26 event="ResponseOutgoing" status="204" method="GET" path="bd0a7474fef080f329f794216c3ba8b5"
[tusd] 2020/09/05 19:13:26 event="RequestIncoming" method="GET" path="bd0a7474fef080f329f794216c3ba8b5"
[tusd] 2020/09/05 19:13:26 event="ResponseOutgoing" status="204" method="GET" path="bd0a7474fef080f329f794216c3ba8b5"
[tusd] 2020/09/05 19:13:27 event="RequestIncoming" method="GET" path="bd0a7474fef080f329f794216c3ba8b5"
[tusd] 2020/09/05 19:13:27 event="ResponseOutgoing" status="204" method="GET" path="bd0a7474fef080f329f794216c3ba8b5"
[tusd] 2020/09/05 19:13:30 event="RequestIncoming" method="GET" path="bd0a7474fef080f329f794216c3ba8b5"
[tusd] 2020/09/05 19:13:30 event="ResponseOutgoing" status="204" method="GET" path="bd0a7474fef080f329f794216c3ba8b5"
[tusd] 2020/09/05 19:13:36 event="RequestIncoming" method="GET" path="bd0a7474fef080f329f794216c3ba8b5"
[tusd] 2020/09/05 19:13:36 event="ResponseOutgoing" status="204" method="GET" path="bd0a7474fef080f329f794216c3ba8b5"
There is no problem in FreshUpload With out Interruption(Network Failure,[Pause/Resume]).

It's suspicious that the logs show a GET request when it should be a HEAD request:

[tusd] 2020/09/05 19:13:26 event="RequestIncoming" method="GET" path="bd0a7474fef080f329f794216c3ba8b5"
[tusd] 2020/09/05 19:13:26 event="ResponseOutgoing" status="204" method="GET" path="bd0a7474fef080f329f794216c3ba8b5"

Seems like your proxy is not correctly configured. Can you ensure that it properly passes through HEAD requests to tusd?

This is the Request

This is the head Request, Tusd Server Hosted from aws ec2.

This is the Request

Tusd Server Hosted from aws ec2.

Did you check that your proxy properly passes through HEAD requests to tusd? If not, you have to do so or we cannot help you.

I've tested without Domain (Direct to server xxx.xxx.xxx.xxx:1080) it is working. Do you have any Idea to solve this problem. I

I've tested without Domain (Direct to server xxx.xxx.xxx.xxx:1080) it is working.

That shows that the problem is caused by the proxy. You must make sure that it properly passes through HEAD requests, which it does not. It turns the HEAD request into a GET request which is wrong. I don't know what proxy you are using, so I cannot help you there.

Ok, I understand.
Request URL: http://xxx.xxx.xxx.xxx:1080/files/6b746dad11aeb231d61ba95808dfca85+pzZoRfEqg50Zso4xG5RLpHmF7C9PNW7aVdiEgtJ2w1km9nBO2hxkxZl3rEQtKBs4cbif5mLXXoyyz6L5yB6bFFvFV4SFzx_AQVSVk8Hq-aW4sZ4nj4dKs2Q3v4J8i93l
Request Method: HEAD
Status Code: 423 Locked
What's the meaning of this!!!?

What's the meaning of this!!!?

Everything works as intended. The client wants to resume but the server is still taking care of saving the data from the previously upload request. You must enable retryDelays in tus-js-client, so I can automatically retry.


UIImagePickerController: Use of unresolved identifier 'dismissFromPresenting'

Hello Vhesener,
I have a problem with Closers lib, my project is using Swift 3.3 and XCode 9.3.1. After installing Closers 0.4, I got issue like this

I'm not sure but it worked after changing dismissFromPresenting to UIImagePickerController.dismissFromPresenting
Please review it.
Thanks,
Son Thai.

Closures only supports Swift 4.x+


Make Live Migrate work when called from outside of an explorer view

This PR refactors the Live Migrate action to work when called from outside of an explorer view, and wires up the CloudVolumeController so that it can handle when that button is clicked while drilling down into a volume's instance relationships.
This is intended as a partial fix for https://bugzilla.redhat.com/show_bug.cgi?id=1334275 and https://bugzilla.redhat.com/show_bug.cgi?id=1339198, which revealed that buttons on the Instance list toolbar don't work when you navigate to it from a Cloud Volume or Provider.
If this is the right approach and reviewers are satisfied with it, I'll make similar changes to fix the rest of the broken buttons.
@h-kataria @tzumainn

@mansam please see attached patch that obviously need testing and some more minor fixes but this is the correct way to handle any Instance related buttons when viewing list of instances thru Cloud Volume relationship.
instance_buttons_fix_for_cloud_volumes.patch.zip

@h-kataria I assume with
when "#{pfx}_resize"                    then reconfigurevms

you mean resize, rather than reconfigurevms. Does that patch actually work for you?

@mansam i was getting double render error but that line you mentioned should have been
when "#{pfx}_resize"                    then resize
that patch does need some work but i think the work amount should be minimum. If you want i can look into it a bit more.

@h-kataria If you have time to keep looking into it, I would appreciate it. I've been having difficulty with it and I'm certainly hoping you have a easier solution than mine. I will investigate more with the patch you provided as well.

(I had tried a fix like what you suggested prior to my PR here, but it still seemed like I needed to make the changes in the PR in order to get the form to render correctly and navigate properly since the Volume page isn't an explorer. I'm really hoping that there's something obvious I'm missing.)

@mansam please see an updated version of patch that has Reconfigure Instances button working for Instances when going form cloud volume controller, i had to move related code out of vm_cloud controller to a common module so it can be accessed when pressing Reconfigure button from relationship views. You will need to make similar changes for Migrate/evacuate buttons and any others that were added recently, i think rest of the buttons seems to be working fine now.
instance_buttons_fix_for_cloud_volumes_patch2.patch.zip

Closing in favor of https://github.com/ManageIQ/manageiq/pull/9161 which includes @h-kataria's feedback.


Cannot connect to Postgres 14.2 on Ubuntu

On my Ubuntu 20.4 with Postgres 14.2 installed:
import postgresql.driver.dbapi20 as pg
c = pg.connect(database="tests", unix="/var/run/postgresql/.s.PGSQL.5432", host=None, port=None)

Results in:
ValueError: invalid literal for int() with base 10: '2 (Ubuntu 14'
Its seems that the driver is attempting to parse part of postgres version
PostgreSQL 14.2 (Ubuntu 14.2-1.pgdg20.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, 64-bit as an integer.

The build of PostgreSQL that you are connecting to has modified the version string. You can resolve this problem by using a build of PostgreSQL that does not modify the version string or by patching the client to accept the variation. The patch can either be at runtime (override the version parsing function before establishing connections) or by modifying the source directly.


Use monomorphic result type for fulltext searches

The initial implementation of fulltext search queries only supports the inclusion of one entity type, so the result type for a fulltext query is the type of the entity included.

We should remove the Union type from the api schema as well then since it won't be used


Map: Cannot open user profiles in new tab: Need to re-login, and then sent back to start page. | Multiple tabs do not work?

When I browse the map, click a marker, and then middle-click on the username to open it in a new tab, I am requested to log in again (and after logging in I get again to the starting page of sleepy.bike, not the user profile).
Sometimes actually it directly loads the profile, but in most cases I just see the login page on the new tab.
And after logging in there and reloading the map page, I have to re-login there.
Seems that multiple tabs with the same login do not work, and all other tabs get logged out as soon as I login in another tab? (It is the same browser with the same cookie context for all those tabs.)

@dreirund Thank you for reporting! It's strange that your new tabs aren't signed in. For me (Firefox) it seems to work. This needs further investigation.
I just opened #86 to keep track of the wrong redirect after login, to keep track of both issues separately.

Maybe it can also has to do with the solid backend?
When I directly go there and login, I am also logged out at sleepy.bike.


Why are there no typescript examples?

There appears to only be JavaScript examples, would be nice to se typescript examples aswell.

I have an example of one sample app. I hope this will help a bit.
https://github.com/nexmo-se/vonage-messages-api


Snapshot folder - growth

The documentation is describing the snapshots. However, it doesn't describe when and how older files are removed. It looks like that there might be 5 to 8 different files for one partition in the datalake. For more 'heavy' used tables, most of the time the files for one partitition are from today or yesterday. For less frequent written tables, I see that files are available for several different days.
It would be nice if somehow the documentation describes that these files are removed and what the strategy is. Could you amaned the documention on this topic?
[Enter feedback here]

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

ID: 6fa0f7a3-459a-a376-d073-69a24fbfdbfd
Version Independent ID: 5bd2e782-b041-473f-bfb4-1fb820448b8e
Content: Create an Azure Synapse Link for Dataverse with Azure Data Lake - Power Apps
Content Source: powerapps-docs/maker/data-platform/azure-synapse-link-data-lake.md
Service: powerapps
Sub-service: dataverse-maker
GitHub Login: @sabinn-msft
Microsoft Alias: matp

Thanks for your comment, @pieterh. This issue has been assigned to the doc author for review.


empty string/np.nan/int vs float problem in upload magic validations

I just started working on the upload magic validation in Pmag GUI.  It looks like the np.nan vs. empty string problem is still happening at least with some versions of pandas.
This is what I have for pandas version:
pandas                    1.3.0            py37h23ab428_0

And the error message:
Traceback (most recent call last):
  File "/Users/nebula/Python/PmagPy/programs/pmag_gui.py", line 680, in on_btn_upload
    upload_file, val_response, dummy1, dummy2 = ipmag.upload_magic(concat=False, input_dir_path=self.WD, dir_path=self.WD)
  File "/Users/nebula/Python/PmagPy/pmagpy/ipmag.py", line 4811, in upload_magic
    df.loc[df['int_md'].astype('float')<0,'int_md']=np.nan
  File "/Users/nebula/opt/anaconda3/envs/new_pmagpy_1/lib/python3.7/site-packages/pandas/core/generic.py", line 5806, in astype
    new_data = self._mgr.astype(dtype=dtype, copy=copy, errors=errors)
  File "/Users/nebula/opt/anaconda3/envs/new_pmagpy_1/lib/python3.7/site-packages/pandas/core/internals/managers.py", line 414, in astype
    return self.apply("astype", dtype=dtype, copy=copy, errors=errors)
  File "/Users/nebula/opt/anaconda3/envs/new_pmagpy_1/lib/python3.7/site-packages/pandas/core/internals/managers.py", line 327, in apply
    applied = getattr(b, f)(**kwargs)
  File "/Users/nebula/opt/anaconda3/envs/new_pmagpy_1/lib/python3.7/site-packages/pandas/core/internals/blocks.py", line 592, in astype
    new_values = astype_array_safe(values, dtype, copy=copy, errors=errors)
  File "/Users/nebula/opt/anaconda3/envs/new_pmagpy_1/lib/python3.7/site-packages/pandas/core/dtypes/cast.py", line 1300, in astype_array_safe
    new_values = astype_array(values, dtype, copy=copy)
  File "/Users/nebula/opt/anaconda3/envs/new_pmagpy_1/lib/python3.7/site-packages/pandas/core/dtypes/cast.py", line 1248, in astype_array
    values = astype_nansafe(values, dtype, copy=copy)
  File "/Users/nebula/opt/anaconda3/envs/new_pmagpy_1/lib/python3.7/site-packages/pandas/core/dtypes/cast.py", line 1192, in astype_nansafe
    return arr.astype(dtype, copy=True)
ValueError: could not convert string to float:

With this contribution:
Jan-Mayen_Spitsbergen_29.Jul.2021.txt

The problem is the same with the latest pandas:
pandas                    1.3.2            py37h5008ddb_0

and with the McMurdo test directory.


How to test transition callbacks?

Hi,
I'd like to know what's the cleanest way to test that transition callbacks are being triggered.
For instance, how would you test:
    before_transition :parked => any - :parked, :do => :put_on_seatbelt

Thanks,
Ben

Hi Ben,
I'd be happy to help but this isn't the best place for it.  Please use the Google Group (https://groups.google.com/forum/#!forum/pluginaweek-talk) for your questions.
Best,
Aaron


Consumer api server

This PR:

Adds protobuf and generated grpc code.
Adds server and client stubs
Adds api server to the OCS operator image

closing this PR to create a new one for main branch.


Remove unused code

This error is never occur. is_const is always True for self.params[:self.nin].

LGTM!

Jenkins, test this please.

Jenkins CI test (for commit 36239dd8d581c48579794964fa1577dee20cc057, target branch master) failed with status FAILURE.

Jenkins, test this please.

Jenkins CI test (for commit 36239dd8d581c48579794964fa1577dee20cc057, target branch master) failed with status FAILURE.

Jenkins, test this please.

Jenkins CI test (for commit 36239dd8d581c48579794964fa1577dee20cc057, target branch master) failed with status FAILURE.

Jenkins, test this please.

Jenkins CI test (for commit 36239dd8d581c48579794964fa1577dee20cc057, target branch master) failed with status FAILURE.

Jenkins, test this please.

Jenkins CI test (for commit 36239dd8d581c48579794964fa1577dee20cc057, target branch master) failed with status FAILURE.

Jenkins, test this please.

Jenkins CI test (for commit 36239dd8d581c48579794964fa1577dee20cc057, target branch master) failed with status FAILURE.

typing == 3.7.4 doesn't work well with Python2, so the latest Chainer pins typing == 3.6.6. https://github.com/chainer/chainer/pull/7562

Jenkins, test this please.

Jenkins CI test (for commit 36239dd8d581c48579794964fa1577dee20cc057, target branch master) failed with status FAILURE.

Jenkins, test this please.

Jenkins CI test (for commit 36239dd8d581c48579794964fa1577dee20cc057, target branch master) succeeded!


Refactor Code Directory Structure Before merging kubernetesDeploy to service

Coverage decreased (-8.4%) to 57.054% when pulling 5278fd59c5127348f5f0f589d23ee5506d8d96e5 on yuye/k8s-dp-directory-refactor into 9c7ca63d208c4b6f454492fac236fac98210da99 on master.

Coverage decreased (-8.4%) to 57.054% when pulling 5278fd59c5127348f5f0f589d23ee5506d8d96e5 on yuye/k8s-dp-directory-refactor into 9c7ca63d208c4b6f454492fac236fac98210da99 on master.