Edit python templates to support build_options feature

This change allows the python3 template to make use of the new faas-cli feature  - support for building native modules i.e. C/C++.
The packages listed in template.yml will be built if a --build_option=dev flag is used with faas-cli build.
Thanks to @kenfdev for sharing a function to test with.
faas-pandas-example
Signed-off-by: Ivana Yovcheva (VMware<EMAIL_ADDRESS>
Description

Motivation and Context

[x] I have raised an issue to propose this change (required)
#28

How Has This Been Tested?
Tested together with faas-cli/#414
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I've read the CONTRIBUTION guide
[x] I have signed-off my commits with git commit -s
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

I've had a real world example / test of how this might work in practice. The dev packages still weren't enough to enable SciPy to compile, I also had to add lapack-dev & gfortran - easy enough to achieve as we can use a build arg for ADDITIONAL_PACKAGES to include them..... except they weren't available from the repos provided to the alpine base, so I also had to add a repo to /etc/apk/repositories.

https://github.com/openfaas/templates/pull/30/files#r197615337
cc @rgee0 @ivanayov


A way to refresh a cached version of a copybook fetched from mainframe

In our shop we use Zowe explorer alongside the Z Open Editor for COBOL.
When opening a COBOL source, the editor fetches and caches the copybooks used in the source.
When the developer subsequently edits one of the copybooks on the mainframe via Zowe explorer, the editor does not update the cached version.
We need some sort of mechanic that refreshes the cached version.

Hi,
Provided that the ISPF statistics are modified each time a PDS member is updated, it must be possible to detect desynchronizations between the cached version of ZOE/ZEx and the version on the server via a z/OSMF command ( or RSE) list of members with option --attributes, and possibly a --pattern.
This could be a background task of ZOE or ZEx with warning to the user in case of desynchronization.
It is also necessary to manage concurrent modifications: made on the z/OS server and locally, with possibly triggering a "diff" to merge the 2 versions?

Thanks for this request and solution ideas. I agree that we need to tackle these problems and provide a better integration with Zowe Explorer.

I'm glad to hear you say that Peter.
It's just one of those very basic things, that keeps many of our mainframers from using VSCode for COBOL development.


fix: Set Kong worker default to 1 to reduce the memory consumption

Signed-off-by: Cherry Wang<EMAIL_ADDRESS>PR Checklist
Please check if your PR fulfills the following requirements:

[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-examples/blob/master/.github/CONTRIBUTING.md.
What is the current behavior?

Issue Number:
Fix #177
What is the new behavior?
Does this PR introduce a breaking change?

[ ] Yes
[X] No

New Imports
Are there any new imports or modules? If so, what are they used for and why?
Specific Instructions
Are there any specific instructions or things that should be known prior to reviewing?
Other information

@cherrycl , @cloudxxx8 , this wash an enhancement, not a bug fix. Since we are using the conventional commits for release notes I would like to be more accurate.
Also, please submit the Doc PR for this enhancement ASAP (don't have the new PR template on this repo yet... )

@lenny-intel comparing to feat, I prefer to treat it as fix.  It is fixing the memory increasing issue reported by the failed performance metrics test case.  It's hard to say a new feature by setting the environment variable to control the process.  However, it's an enhancement.  Should we put all the enhancement and new feature to feat?  I notice there is a perf prefix.  We might choose it in this case.

Ok

@cloudxxx8 , yes I think perf is more appropriate.


bug: ~INTERNAL_ERROR: Failed to issue V3 token

What happened?
When I was testing email login using v3, I got this error.
Error message or Bug description
{
  "type": "Request internal failed",
  "data": {
      "code": "INTERNAL_ERROR",
      "reason": "Failed to issue V3 token"
    }
}

Environment
Device: Ipad Air 4
OS: iPadOS 18.0
Line App Version: 14.17.1

I'll check

IOSIPAD doesn't support v3 token, so please use other device.
.login({
  ...,
  device: "..."
})

@EdamAme-x
It works. Thanks for your help

sure
and thanks @piloking


fix typo

Summary and Scope
Summarize what has changed. Explain why this PR is necessary. What is impacted? Is this a new feature, critical bug fix, etc?
Is this change backwards incompatible, backwards compatible, or a backwards compatible bugfix?
Issues and Related PRs
List and characterize relationship to Jira/Github issues and other pull requests. Be sure to list dependencies.

Resolves [issue id](issue link)
Change will also be needed in <insert branch name here>
Future work required by [issue id](issue link)
Documentation changes required in [issue id](issue link)
Merge with/before/after <insert PR URL here>

Testing
List the environments in which these changes were tested.
Tested on:

<development system>
Local development environment
Virtual Shasta

Test description:
How were the changes tested and success verified? If schema changes were part of this change, how were those handled in your upgrade/downgrade testing?

Were the install/upgrade-based validation checks/tests run (goss tests/install-validation doc)?
Were continuous integration tests run? If not, why?
Was upgrade tested? If not, why?
Was downgrade tested? If not, why?
Were new tests (or test issues/Jiras) created for this change?

Risks and Mitigations
Are there known issues with these changes? Any other special considerations?
Pull Request Checklist

[ ] Version number(s) incremented, if applicable
[ ] Copyrights updated
[ ] License file intact
[ ] Target branch correct
[ ] CHANGELOG.md updated
[ ] Testing is appropriate and complete, if applicable
[ ] HPC Product Announcement prepared, if applicable

The title of this PR says that it is fixing a typo but there is a lot more to the changes than the typo fix.    There is no further description because the template has not been filled out and no reference to any other JIRA tickets.   Are all of these changes intended to be included?

The title of this PR says that it is fixing a typo but there is a lot more to the changes than the typo fix. There is no further description because the template has not been filled out and no reference to any other JIRA tickets. Are all of these changes intended to be included?

I need to update the title and link all jira tickets here. I am still doing minor fixes of other issues. will update the title and descriptions


Adding a Sqlite database

I'm trying to add a sqlite database to my electron app that's based on this boilerplate, but having problems setting it up. I'm wondering what the recommended way is.
My first attempt was to use knex.js. For my use this requires npm installation of knex and sqlite3. However when I run the server, I'm met with a bunch of errors:
I don't understand these errors. I'm not using the mariasql etc. drivers.
ERROR in ./~/knex/lib/dialects/maria/index.js
Module not found: Error: Cannot resolve module 'mariasql' in /home/shotor/Projects/playground/electron-react-boilerplate/node_modules/knex/lib/dialects/maria
 @ ./~/knex/lib/dialects/maria/index.js 29:11-30

ERROR in ./~/knex/lib/dialects/mysql/index.js
Module not found: Error: Cannot resolve module 'mysql' in /home/shotor/Projects/playground/electron-react-boilerplate/node_modules/knex/lib/dialects/mysql
 @ ./~/knex/lib/dialects/mysql/index.js 35:11-27

ERROR in ./~/knex/lib/dialects/mysql2/index.js
Module not found: Error: Cannot resolve module 'mysql2' in /home/shotor/Projects/playground/electron-react-boilerplate/node_modules/knex/lib/dialects/mysql2
 @ ./~/knex/lib/dialects/mysql2/index.js 33:11-28

ERROR in ./~/knex/lib/dialects/oracle/index.js
Module not found: Error: Cannot resolve module 'oracle' in /home/shotor/Projects/playground/electron-react-boilerplate/node_modules/knex/lib/dialects/oracle
 @ ./~/knex/lib/dialects/oracle/index.js 40:11-28

goes on for a while

My second attempt was to use Sql.js. Requiring only npm install sql.js.
Running the server gives the error:
ERROR in ./~/sql.js/js/sql.js
Module not found: Error: Cannot resolve module 'ws' in /home/shotor/Projects/playground/electron-react-boilerplate/node_modules/sql.js/js
 @ ./~/sql.js/js/sql.js 337:113-126 342:44-57

As an experiment, I try npm install --save ws. Low and behold it builds and I can get data from the sqlite file. But now I keep getting the warnings:
WARNING in ./~/ws/lib/Validation.js
Module not found: Error: Cannot resolve module 'utf-8-validate' in /home/shotor/Projects/playground/electron-react-boilerplate/node_modules/ws/lib
 @ ./~/ws/lib/Validation.js 10:19-44

WARNING in ./~/ws/lib/BufferUtil.js
Module not found: Error: Cannot resolve module 'bufferutil' in /home/shotor/Projects/playground/electron-react-boilerplate/node_modules/ws/lib
 @ ./~/ws/lib/BufferUtil.js 10:19-40

If you use any 3rd party libraries which can't be built with webpack, you must list them in your webpack.config.base.js：

externals: [
  // put your node 3rd party libraries which can't be built with webpack here (mysql, mongodb, and so on..)
]

https://github.com/chentsulin/electron-react-boilerplate#externals

@chentsulin I put the sqlite3 in the package.json, and webpack.config.base.js externals add like this?
externals : [ 'sqlite3' ] ????????
when I run package-all, the warning showin "cannot find moudle 'sqlite3'"

@shotor Do you resolve this question now? If you resolved, please tell me how add sqlite3 by release project (npm run package-all)

Can you give the full error you are getting?
In the end I didn't need to specify Sqlite3 in the externals. And I updated my sqlite3 back then.

I'm having the same issue
app.js:1914Uncaught ReferenceError: sqlite3 is not defined(anonymous function) @ external "sqlite3"?a78e:1(anonymous function) @ app.js:1914__webpack_require__ @ app.js:518fn @ app.js:49(anonymous function) @ main.js?6a4b:7(anonymous function) @ app.js:954__webpack_require__ @ app.js:518fn @ app.js:49(anonymous function) @ app.js:551__webpack_require__ @ app.js:518(anonymous function) @ app.js:541(anonymous function) @ app.js:544
backend.js?64a4:18 backend -> devtools Object {event: "vuex:init", payload: "{"dashboard":{"pageIndex":0,"sidebarToggled":false…},"contacts":{"all":[]},"items":{},"invoices":{}}"}

I don't know where I got this from, but try this:
Add to your webpack.config.base:
import fs from 'fs'

constnodeModules = {};
fs.readdirSync('node_modules')
  .filter((x) => {
    return ['.bin'].indexOf(x) === -1;
  })
  .forEach((mod) => {
    nodeModules[mod] = 'commonjs ' + mod;
  })

export default {
...snip...
  externals: [
    nodeModules
  ]
}

externals must contain the upperCamel name; like 'node_module' to 'nodeModule'


Family.ToString() - why implemented

Totally new to cosmosdb and want to get an idea of how to use it. I was thrown off by Family.ToString() being implemented, but, as far as I can tell, not used. (EDIT: I just noticed it's used in the console output). Is implementing a JSON-serializing ToString() needed or useful for cosmosdb? If not, I suggest removing it, or adding a comment such as // For demo purposes; not needed for CosmosDB.

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

ID: 4255f572-38cc-08aa-6fb7-08c919713cf9
Version Independent ID: c04fe4dd-e75d-1028-8f2e-154d8c303da2
Content: Build a .NET console app to manage Azure Cosmos DB SQL API resources
Content Source: articles/cosmos-db/create-sql-api-dotnet.md
Service: cosmos-db
Sub-service: cosmosdb-sql
GitHub Login: @SnehaGunda
Microsoft Alias: sngun

@pettys Thank you very much for bringing this to our attention and for subsequently adding additional detail. I will have the content owner review and update as appropriate.

@pettys yes the ToString() is used to convert the JSON object to string format, it's not mandatory to use. We have it for better readability in the output.
I don't necessarily see any doc update per this issue. So we will close it if there aren't further questions.

@SnehaGunda In my learning about how CosmosDB works, I was misled by the presence of Family.ToString(). I suggest clarifying. The code comment I suggested, "// For demo purposes; not needed for CosmosDB," placed in the ToString() implementation, would clarify.

@pettys I submitted a PR to add the code comment. Hope this helps. We will now close this issue.
#please-close


500 - Internal server error after deploying to production?

Hi,
I've installed the OWIN-MixedAuth to an MVC application and it work fine on my local machine using IIS Express.
However after deploying to production server I get 500 - Internal server error?
The site is deployed to a folder called mysite which is configured as an application as follows so bascially it inside its own app pool:
xyx.domain.com/mysite
My web config file is as follows:
`
 <system.web>
    <customErrors mode="Off"/>
	<authentication mode="None" />
	<compilation debug="true" targetFramework="4.5.2" />
	<httpRuntime targetFramework="4.5.2" />
</system.web>
<!-- Enable Mixed Auth -->
<location path="MixedAuth">
	<system.webServer>
		<security>
			<authentication>
				<windowsAuthentication enabled="true" />
			</authentication>
		</security>
	</system.webServer>
</location>
<system.webServer>
     <modules>
		<remove name="FormsAuthentication" />
	</modules>
    <handlers>
		<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
		<remove name="OPTIONSVerbHandler" />
		<remove name="TRACEVerbHandler" />
		<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
	</handlers></system.webServer>`

Any ideas why this is happening. Have I missed something out?

Have you unlocked Windows Authentication section ?

Hi,
Still awaiting a screenshot from our server team to determine exactly what delegation mode has been configured - I did ask them enable windows auth as follows:
Set Authentication - Forms to Read/Write
Set Authentication - Windows to Read/Write
Change the app pool from classic mode to integrated pipeline mode
Does anonymous authentication need to be disabled as well?

Hi,
No, Also there is no need to unlock the Forms authentication section.

With anonymous authentication enabled, windows authentication doesn't work. To configure Windows auth on IIS you need to disable anonymous authentication. But once you do that how can a unauthenticated reach the signin page?

That's why we unlocked the section, so we can enable Windows authentication for a sub-path - the MixedAuth endpoint only.
  <!-- Enable Mixed Auth -->
  <location path="MixedAuth">
    <system.webServer>
      <security>
        <authentication>
          <windowsAuthentication enabled="true" />
        </authentication>
      </security>
    </system.webServer>
  </location>

I've managed to get it working.
This was the issue, my site is located at xyz.domain/mysite but in my webconfig I have the path as <location path="MixedAuth">
It should have been <location path="MySite/MixedAuth">. So basically it was redirecting to xyz.domain/MixedAuth instead of xyz.domain.com/mysite/MixedAuth
Many thanks for your help.

Awesome, Thanks for the feedback!


add checksum updating to attribution periodic

Checksums may need updating when new versions of golang are being used.  This adds generation to the attribution job which already runs the same targets we need.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: jaxesn
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [jaxesn]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


[BUG] Custom style theme breaks the ConnectButton styling

Is there an existing issue for this?

[X] I have searched the existing issues

RainbowKit Version
0.11.0
wagmi Version
0.11.7
Current Behavior
Copy pasting the doc example breaks the ConnectButton styling.
Expected Behavior
I'd expect the ConnectButton to be properly styled as I am passing the exact same theme object I'd pass as param to the RainbowKitProvider component.
Steps To Reproduce
My code is as follow:
<WagmiConfig client={wagmiClient}>
  <RainbowKitProvider chains={chains} theme={null}>


Advice for extending

Hey - I started, extending this package into nova as a model and resource called Enquiry.. I needed some extra custom fields like "reference" "status" etc.. so I added these in the migration and started setting up the details and index views..
I've just come across an issue though when trying to save an Enquiry without any mail content:
Undefined property: App\Enquiry::$message
.../vendor/beyondcode/laravel-mailbox/src/InboundEmail.php#136
I just wanted to check am I extending this correctly? or would the neater behaviour have been to have a separate model / resource for Enquiry and set a relationship to a new Enquiry within the MyMailbox  __invoke ?
Thanks

I'd say the InboundEmail class has wrong implementation in message() method because there is no message property. That's why you get an error. In your extended class, try to override the method and try again:
    public function message(): MimeMessage
    {
        return $this->mimeMessage;
    }


Fix bpf route mgr panic in ipv6

Description
When in ipv6 mode, reject any ipv4 route updates.
Related issues/PRs

Todos

[ ] Tests
[ ] Documentation
[ ] Release note

Release Note

TBD

Reminder for the reviewer
Make sure that this PR has the correct labels and milestone set.
Every PR needs one docs-* label.

docs-pr-required: This change requires a change to the documentation that has not been completed yet.
docs-completed: This change has all necessary documentation completed.
docs-not-required: This change has no user-facing impact and requires no docs.

Every PR needs one release-note-* label.

release-note-required: This PR has user-facing changes. Most PRs should have this label.
release-note-not-required: This PR has no user-facing changes.

Other optional labels:

cherry-pick-candidate: This PR should be cherry-picked to an earlier release. For bug fixes only.
needs-operator-pr: This PR is related to install and requires a corresponding change to the operator.

The only error is an unrelated flake


Pathological syntax can cause segmentation fault in ponyc

In file https://github.com/CausalityLtd/ponyc/blob/master/src/libponyc/codegen/genheader.c
Line 105
while(buffer[--len] == '\'')
      buffer[len] = '_';

Given a variable with a pathological number of primes ('), the compiler will
stack overflow and segmentation fault.

This could only cause a problem if a variable name consisted entirely of primes. Checks performed on variable names at the parsing stage prevent this from ever happening (they always have at least 1 non prime character at the start).

Just to reduce the demonstration file, I set ulimit -s 48 (which is enough so
that ponyc doesn't segment fault during execution or linking phases).
actor Main
    new create(env: Env) =>
        var f'''<insert an obscene amount of primes>''': String = "Oops"

Without ulimit the file would need to be a little over 8M to trigger it.

I can see that having extremely long variable names can cause us to run out of stack and we should probably do something about that.
But I don't see how the number of primes is relevant here. That while loop can only iterate over the buffer, which was previously allocated on the stack and memcopied to. Len starts as the length of the name and buffer[0] is guaranteed not to be a prime. This means that len can never be out of the range [0, name length]. So how can this cause a problem?

Because the length can be greater than the size of the stack?  In which case,
the primes would only initialise the VLA with an array of '_' characters.  The
length alone is probably the cause.

Right, the length of the variable name is the problem. The number of primes is irrelevant.

Fundamentally it will always be possible to write a Pony program so large that the compiler runs out of memory. There really isn't much we can do about that, other than maybe try to exit gracefully rather than crash.
However, what we can do something about is crashing due to a stack overflow for a reasonably sized program with one (or several) excessive lexer tokens.
I suggest the following plan to deal with this:

We should audit all our uses of VLAs to make sure we're being sensible.
VLAs should only be used where we know that the contents won't be excessively large and will only exist for a reasonably short time. In particular they should never be used in recursive functions (including recursing via other functions).
IDs (including variable names) are an obvious potential problem. Either we should limit their length or outlaw their use in VLAs. I'd say limiting them to 1KB characters is entirely reasonable.
String literals are the other big problem. We can't really limit their size as they might legitimately be huge. So instead we should outlaw using VLAs for them. I'm not sure if we ever even do that.
Paths are normally limited to something like 255 characters anyway. However, in Windows if unicode paths are used they can be much longer, 32KB I think. We should check how we handle this (if we do at all).
It may also be sensible to limit values for other things we use VLAs for, eg the number of variables on a call. I'd be happy to limit that to 1000 or something.

We now long longer use VLAs anywhere that the maximum size is not known and reasonably small. Mostly we heap allocate using the pool allocator, but several previous uses of VLAs have been optimised away with some code rejigging.
It the end no arbitrary limits needed to be imposed on IDs, parameter counts, etc.
The compiler will still run out of memory for a big enough program, but it shouldn't run out of stack for a short program with excessively long lexer tokens.


Add dummy implementations of env! and option_env! builtins

They don't do anything except return the correct type.
Also refactor the builtin macro tests a bit.

bors r+


Jijonj

completed turtle code for review and feedback... 😎

Code is looking really close. You need to make a few adjustments:

Your .py file should not be in the Answers directory (move it up one directory to the main directory).
Your Google Doc should be included in your PDFs directory.


(1259) Show referrer name on check your answers page

Context

We were showing the referrer username on the check your answers page, but the full name when viewing a submitted referral
Changes in this PR

Show the full referrer name on the check your answers page

Screenshots of UI changes
Before

After

Release checklist
Release process documentation
As part of our continuous deployment strategy we must ensure that this work is
ready to be released once merged.
Pre-merge

[ ] There are changes required to the Accredited Programmes API for this change to work...

[ ] ... and they have been released to production already

Post-merge

[ ] This adds, extends or meaningfully modifies a feature...

[ ] ... and I have written or updated an end-to-end test for the happy path in the Accredited Programmes E2E repo

[ ] This makes new expectations of the API...

[ ] ... and I have notified the API developer(s) of changes to the contract tests (Pact), or the API is already compliant

[ ] Manually approve release to preprod
[ ] Manually approve release to prod

 Display referrer name on Refer Check your answers page (S)


Adding loot hg id and plural name to database insert

released current version for now, but will address comments in a bit


MDTextField unwanted unfocus

Description of the Bug
MDTextField unfocusses when deleting everything by backspace.
Versions

OS: Win 10
Python: 3.9.10
Kivy: 2.1
KivyMD: 1.0.0.dev0

@HeaTTheatR perhaps you should read your "Code of Conduct" again

@hoba87 You should learn good manners! Don't post here anymore!

@hoba87 You should learn good manners! Don't post here anymore!

@HeaTTheatR No comment. A buggy project which is not interested in bug reports, instead insulting contributors? Don't worry, I will not waste my time with that.

@hoba87
The project is not interested in users like you! I pointed out to you that your code example is redundant and misleading those who will investigate the problem.   So go to school and learn good manners.  Adios!

@HeaTTheatR distorting facts. No more words.

@HeaTTheatR Thank you for proving.


Use Travis Caching

This should speed up the tests by a couple of minutes per run.
This caches:

the user-wide pip packages (which strangely we appear to have despite only using conda?) (which are 350M)
the conda install, and venv_sct (which is 1.1G)

To achieve this, I removed the forcible rm -rf python/ in the installer, so check that over and tell me if you agree with this strategy.
We might think about also caching:

the trained models
sct_testing_data/
If we cached those, then we would need to remember to clear the cache manually when we update them. But they change slowly, at the speed of our other dependencies, so it could make a lot of sense to treat them the same.

ref: https://docs.travis-ci.com/user/caching/

Actually this doesn't seem to be improving build times at all. Maybe it's because of ?

Large files that are quick to install but slow to download do not benefit from caching, as they take as long to download from the cache as from the original source:

https://docs.travis-ci.com/user/caching/#things-not-to-cache

If we cached those, then we would need to remember to clear the cache manually when we update them. But they change slowly, at the speed of our other dependencies, so it could make a lot of sense to treat them the same.

this was the reason i explicitly removed the caching option a few years ago, when fighting against a bug for several days, after realizing that this was because the data were not udpated on travis because of the caching. I have learned it the hard way, and i suspect this might reproduce in the future. Given that the download is pretty fast (travis has a huge BW, i think around 50+MB/s) so i would not worry about a few seconds wasted.

I'm going to hang onto the branch because I might want to revive this -- particularly, the part that makes installing conda idempotent, that drops the rm -rf python/ line -- but I think a more useful step would be to split the unit and integration tests to separate jobs first.


Add unit tests to cli/command/formatter/stats.go

- What I did
Add unit tests to ContainerStatsContext and ContainerStatsContextWrite.
- How I did it

Created cli/command/formatter/stats_test.go
Add unit tests to cli/command/formatter/stats.go

- How to verify it
Run cd cli/command/formatter && go test -coverprofile=cover.out && go tool cover -func=cover.out | grep stats.go
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "unit_test_formatter_stats" git@github.com:ripcurld00d/docker.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "unit_test_formatter_stats" git@github.com:ripcurld00d/docker.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "unit_test_formatter_stats" git@github.com:ripcurld00d/docker.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

@AkihiroSuda thanks for your review.
I will update the commit in the next hours.
:coffee: :grinning:

Need to rebase to #27759 and update the tests accordingly. :shell:

OK, @AkihiroSuda @thaJeztah @jhowardmsft your feedback please? :sake:
Thanks


Allow to disable AOT compilation of jOOR expressions

In order to give the opportunity to the end user to decide whether the compilation of jOOR expressions in JVM should be done at runtime like before or at build time, a new dedicated property configuration should be added.

The corresponding PR https://github.com/apache/camel-quarkus/pull/4453


feat(misc): close inactive issues

What this PR does / why we need it:

Does this PR need to be backport to the previous release branch?:

NONE
/cc @swordqiu @ioito @dengju2020

参考设置文档：https://docs.github.com/en/github-ae@latest/actions/managing-issues-and-pull-requests/closing-inactive-issues


How to add rightBarButtonItem

This is a awesome lib and thank you for that , Can you tell how to add navigationItem.rightBarButtonItem in UIViewController  i have try adding rightButton in UIViewController but it will not showed in my UI, but when i add bar button on RGPageViewController it showed perfectly can you tell me how to add button from my UIViewContorller ? because it need to access the content of my UIViewController when button clicked

I'm not sure if I get it right.
You need a button in the navigation bar that does something related to your currently visible viewController?
In that case i would add the UIBarButtonItem directly from your subclass of RGPageViewController, use didChangePageToIndex(index: Int) to save the data you need from the current view controller and then access this data once you click on the barbuttonitem.

Thank you


Windows Bug

Does not work on Windows 7
C:\Users\test\Desktop\vHackAPI-Python-master\vHackAPI-Python-master\Windows>main.exe
your Username : userxyz
Your Password : ********
loading ...C:\Users\test\Desktop\vHackAPI-Python-master\vHackAPI-Python-master\Windows\config.ini
Traceback (most recent call last):
File "main.py", line 156, in
IndexError: string index out of range

what is your config.ini
the problme is on the file

i'm not change anything
[Config]
maxanti_normal: 3000
maxanti_tournament: 3000
booster: True
Use_netcoins: True
attacks_normal: 3
attacks_tournament: 2
tournament_potator: True
update: None
join_tournament: True
mode: Potator
Botnet_update: True

ok please connect here for send me descript your detail
https://discordapp.com/channels/219254781384851467/251410413563019265

i can't found you there

my name is vBlackOut in contributor

what is your pseudo ?

its say me "We need vBlackOut's four digit tag so we know which one they are."

hum check this link
https://discordapp.com/channels/219254781384851467/219254781384851467

try to find me its not work . my name there is aladin2207

#8184 my identification

same as aladin221

check my update for resolve your problem

ok now it work but if i put "False" in "use booster" in config file the bot continue to use the boosters

ok i'm check

and can i ask you a question?

yes

the bot upgrade only the firewall, can you put that you can choose what upgrade?

just complet list is inet, hdd, cpu, ram, fw, av, sdk, ipsp, spam, scan, adw

like this?
[Config]
maxanti_normal: 3000
maxanti_tournament: 3000
booster: False
Use_netcoins: False
attacks_normal: 3
attacks_tournament: 2
tournament_potator: True
update: fw
update: av
update: sdk
update: ipsp
update: spam
update: scan
update: adw
join_tournament: True
mode: Potator
Botnet_update: True

nop , just
update: inet, hdd, cpu, ram, fw, av, sdk, ipsp, spam, scan, adw
in the one line

ok thank you, can we keep in touch?

no problem yes ;)

thank you, i'm alenberg#9617 on discord :)

ok no problem :)


Update README.md

add status badges

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


Support TIMESTAMPNS

This adds support of linux TIMESTAMPNS.
The code is mostly copied paste from https://github.com/nix-rust/nix/pull/663

It looks pretty good so far. But why did you decide to write the test without the usual test harness? It's preferable to use the regular test harness if possible. In fact, right now your test won't even be compiled, because you didn't add it to Cargo.toml.

Thanks for the review! Is there a way to use the macro cmsg_space in unit tests? It contains use unix::..., which I can't make it work within a unit test.

I assume you mean cmsg_space!? It's currently used by the functional tests in test/sys/test_socket.rs. There aren't any unit tests that currently use it, but I don't see why there couldn't be. What problem are you having?

It contains self-referential "use unix::*" statement, which can't be used in unit tests.

I assume you mean cmsg_space!? It's currently used by the functional tests in test/sys/test_socket.rs. There aren't any unit tests that currently use it, but I don't see why there couldn't be. What problem are you having?

It contains self-referential "use unix::*" statement. Apparently, when in "nix" crate, you can only reference it as "use crate::..." but not "use nix:...".

Well, that sounds like something you can fix.

I assume you mean cmsg_space!? It's currently used by the functional tests in test/sys/test_socket.rs. There aren't any unit tests that currently use it, but I don't see why there couldn't be. What problem are you having?

It contains self-referential "use unix::*" statement. Apparently, when in "nix" crate, you can only reference it as "use crate::..." but not "use nix:...".

Well, that sounds like something you can fix.

I think it would be better to do that in a separate pull request. In the mean time, I can add a todo of moving the integration test to unit test after that is done.

libc recently updated its socketopt consts: https://github.com/rust-lang/libc/commit/682eba61169005a6d904fc53fc749788f7e3cf9b
We will wait for the release of this to have a more updated lists of arch here.

After upgrade libc to 0.2.93, now the support has been added to all linux platform. Tests however are restricted to x86-64, non musl due to suspected QEMU issue.

Please feel free to squash all the commits into one if it is ready to merge.

Ok, this looks good now.  But you'll have to squash yourself.  Nix uses the bors merge bot, which is incompatible with Github's squash-and-merge button.

Sqaushed. Now it is ready to merge.


Does anyone know the error of binance's handling fee?

They repackaged transactions that failed a few years ago because they didn't have enough fees
This may be caused by the recent reduction of fee by Doge Chain
Does anyone know the scope of influence?

https://twitter.com/dogecoin_devs/status/1458868925039464451


Abstract over JSON library

Hi! I want to discuss the possibility to abstract over JSON library in the mill.
At the current moment, mill uses an upickle library for serializing/deserializing tasks metadata. The serialization format for this metadata is JSON. And, as far as I understand, mill doesn't use any specific upickle functionality. It looks like any JSON library could be used for that.
I have nothing against upickle, but I think this hard binding could be problematic for external libraries integration. For example, I wanted to use the skuber library to describe Kubernetes entities in my build files and deploy them from the mill. Something like this (simplified example):
trait Deploy extends Module {
  def deployment: Target[Deployment]
  def deploy = ??? // deploy logic here
}

But, if I want to describe Deployment in my build, I have to be able to serialize it, because it is Target. This means that I have to create an upickle ReadWriter[Deployment]. It's doable, but Deployment is a pretty complex type and contains a lot of other skuber entities. So, in practice, I have to describe ReadWriter instances for almost all skuber entities. This is tedious and error-prone.
Fortunately, skuber provides play-json instances for all its entities. And, if mill will have the possibility to integrate with any JSON library, I could just provide a bridge from play-json to mill JSON. Moreover, these bridges could be provided as libraries for a few most popular JSON libraries (circe, play-json, spray?). With ready-made JSON integrations, integration with skuber will be very simple.
So, I propose to create an intermediate JSON layer in the mill. It will support upickle by default. So, all current instances will not be touched. But, in the case of necessity, integrations with other JSON libraries could be made.
To test this idea I created a WIP pull request. Implementation is not finished, but it looks like needed changes are not massive.
What do you think about it?

Would an easier approach be converting creating ReadWriter[Deployment] based on your play-json reader/writer for Deployment? If you don't mind an intermediate data structure, it should be easy to define a ReadWriter[Deployment] as Deployment <-play-json-reader-writer-> JSON String <-ujson.reformatTo-> meta.json. A similar approach would work for any other data type with a JSON reader/writer via any other library as well.
This ends up with one intermediate data structure, but would be significantly less intrusive than trying to refactor Mill itself to be json-library-agnostic.

You mean something like this:
def playJsonToUpickleRW[A](implicit playJsonFormat: Format[A]): ReadWriter[A] = {
  readwriter[String].bimap[A](
    a => playJsonFormat.writes(a).toString(),
    str => playJsonFormat.reads(Json.parse(str)).get,
  )
}

But it will lead to double json serialization/deserialization. Maybe in terms of a build tool it's not a big deal. But considering that making mill json library agnostic is not a very complex task (from first sight) why not trying that?

Ok, that sounds reasonable. For now, I will stick with the conversion on the user site.
I want to give you some more details about my proposal. When I faced an issue with play-json for the first time I tried to derive ReadWriter [A] instances from the play-json Format [A] instances without intermediate String layer. And I failed because ReadWriter uses Visitor and has a pretty specific API, so I didn't find a way to create a conversion. So, I thought that the intermediate mill json layer might be useful in this case.


header default to capital

Current dependencies on/for this PR:

main

PR #68   👈

This stack of pull requests is managed by Graphite.


java.Lang.UnsatisfiedLinkError when running "BlexAdapter.getAdapter(0);" on macOS

Hello,
Thanks for this library. I am trying to integrate it into a Java BLE application for macOS, and am having a few issues at runtime. I am getting "java.lang.UnsatisfiedLinkError" and the plugin is unable to load the native libraries required. Does this project currently work with macOS?
I have a MacBook Air with a M1 chip.
Thanks very much

I think I found the fix - updated to version 0.0.8 and now it is working for now, thanks!

Updated to 0.0.8 and that fixes the issue


create a one-liner script for NetData installation

 Issue by Erkan-Yilmaz
Monday Apr 17, 2017 at 05:21 GMT
Originally opened as https://github.com/Erkan-Yilmaz/Gridcoin-tasks/issues/112

< @Peppernrino > possibly create a new task: create a one-liner script for netdata installation
see: https://github.com/grctest/GRC-Netdata

 Comment by Peppernrino
Monday Apr 17, 2017 at 05:38 GMT

it would be easier to set up if it were like the AutoNode script.
also, good to put here that not everybody used grc as an alias during setup of the node. @grcjamezz had trouble getting it to work on his nodes with an alias. i'll post in IRC for him to clarify, but it caused problems for me as well.

 Comment by grctest
Friday Apr 21, 2017 at 19:13 GMT

Netdata is already a 2-line setup, it's really simple.
Installation of GRC-Netdata is a bit more hands-on, sure, but it's still heavily a work-in-progress.

also, good to put here that not everybody used grc as an alias during setup of the node. @grcjamezz had trouble getting it to work on his nodes with an alias. i'll post in IRC for him to clarify, but it caused problems for me as well.

The scripts come with multiple gridcoin command options.
Ultimately, if you've got a different gridcoin environment setup you'll need to do some manual tweaking.

 Comment by Peppernrino
Sunday Apr 23, 2017 at 17:50 GMT

1 is less than 2. checkmate.

 Comment by Peppernrino
Sunday Apr 23, 2017 at 17:51 GMT

i wasn't trying to hack on your efforts... @Erkan-Yilmaz just puts so much pressure on us to create these new tasks. ;)

 Comment by grctest
Sunday Apr 30, 2017 at 21:56 GMT

@Foggyx420 has significantly improved the GRC-Netdata repo, including some automated installation lines. I think we're getting close to this task being completed.

 Comment by Foggyx420
Monday May 01, 2017 at 00:45 GMT

yes there is a more automated script at the moment thou markets are still seperate. I'm working to make a installer script that can accept user inputs and check enviroment to make sure it is setup correctly to accept the install as well as install the required packages. also plan to allow other distros in near future to be able to install as well. make it more platform friendly. once ubuntus base installer that im currently working on is done that will be 100% automated plus some user inputs as well. and ofcourse checks to make sure it will install correctly. more user friendly is my term

 Comment by Foggyx420
Sunday May 14, 2017 at 21:40 GMT

My script has successfully installed on Ubuntu and Debian should be much the same but still need to be tested on other releases.  The goal is to have this replace the current GRC-Netdata on @grctest repo. Any future changes from there on out can be pull requested to his repo. This setup includes the basic gridcoin chart + geoip stuff (note on initial start freegeoip can take a short little bit to get updated and sometimes the chart on geo ip information will say a "large number" Other. This is normal as netdata starts faster and the geo ip script has to run on its timer. I may add sleep to it later on but getting this working is important. Also added version so in future it can be modified and least a user can know if they have a current version or not. Still work needs to be done but testing is important for now and enhancements can come later. This was a wee bit difficult as my daughter did delete 800+ lines of code lol. SIGH
Testers!
 It has different cleaner filenames.
This setup is smaller in the sense of less files and is completely customizable. The systemd setup is also customizable but within limits to not cause problems on a users system via resources.
The other releases I've put into the setup.sh needs to be tested as I've kind of blindly done so based on searches of the packages they would be in as well as the package installer that is common on the release.
The setup.sh is large but It works and lets users inputs as well as verifies various information.
For debugging in the sense of testing one section at a time you can goto the bottom of the bash file and comment out sections your not testing. :)
Message me on here or IRC or head over to https://github.com/Foggyx420 and enter the Netdata-Test repo.

 Comment by Foggyx420
Thursday May 18, 2017 at 01:50 GMT

Fedora should work now. I tested it on one version of fedora. but could be verified on others.
need Arch and openSUSE testing.


[tools revamp] add chips for timeline chart

add chips to the timeline chart
cleaned up the code so that each vis type has their own file to generate the config for that vis type
for map and scatter, in the selector pane, when selecting a place, show the selected place in the input so that users know they can only pick one place

thanks for the review!


Support overriding static properties defined via def_prop_ro_static.

See
https://github.com/pybind/pybind11/commit/e0e2ea33788e29ff5efca5842e92c6b179ca9378 for the analogous change to pybind11.

This looks great, thank you! Could I ask you to also add a changelog entry?

BTW, I don't suppose you have a sense for when the next release will be?
I want to land a LLVM change that depends on this one (switching the upstream MLIR Python bindings to nanobind from pybind11... because nanobind is a lot faster: https://github.com/llvm/llvm-project/pull/118583).

That's awesome. Yes, I can push out a release soon.

@hawkinsp I pushed a release with the accumulated changes.


RKResponseDescriptor set pathPattern

Hi,
the Restful Webservice that i'm using delivers an user id. For example if i want to get the User ID for the user "test" the request have to look like this:
http://example.org/users/findByUsername/test
Now i am using RestKIT 0.20 for my iOS App. Therefore i have to set a Response Descriptor like this:
RKResponseDescriptor *usrDescriptor =
[RKResponseDescriptor responseDescriptorWithMapping:usrmapping
method:RKRequestMethodGET
pathPattern:@"users/findByUsername/test"
keyPath:nil
statusCodes:RKStatusCodeIndexSetForClass(RKStatusCodeClassSuccessful)];
My issue is that i don't want to set pathPattern including the parameter test. Instead i am looking for a solution that is independent of the value test . Something like this:
RKResponseDescriptor *usrDescriptor =
[RKResponseDescriptor responseDescriptorWithMapping:usrmapping
method:RKRequestMethodGET
pathPattern:@"users/findByUsername"
keyPath:nil
statusCodes:RKStatusCodeIndexSetForClass(RKStatusCodeClassSuccessful)];
Is there a way to do that?

GitHub Issues is for reporting bugs in RestKit and discussing changes to RestKit itself. Please check the documentation, wiki, and existing issues before opening a new issue.
Additionally, please do not post general usage questions to Issues, but instead take them to Stack Overflow.


Make the Select2Field coerce enum values to their name as required.

When an SQLAlchemy Enum column is used:
class Seasons(Enum):
    winter = 1
    spring = 2
    summer = 3
    autumn = 4

class MyModel(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    season = db.Column(db.Enum(Seasons), nullable=False)

When a model is edited, the value selected by Select2 is not the real value of the model but the first enum value instead. As a result, every time an edit is made to a model that has one or more enum columns, the user will reset the enum value without realizing.
The first enum value is selected instead of the real one because Select2Field is coercing enum values to _compat.text_type (str for python 2 and unicode for python 3) instead of coercing the name of the enum value (coercing to Seasons.summer instead of summer for example).
Fixes #1315.

@mrjoes @pawl Let me know if there is anything I can do to improve this pull request.

for anyone looking for temp workaround, you need form_args.
them loop all column, add form_args according to column type.
form_args[name] = dict(coerce=lambda v: v.name if isinstance(v, Enum) else text_type(v))


Allow Multiple SetRoutes Calls

I have some optional bits of code in my app that enable or disable groups or routes dynamically.  To realize this, I have to make my plugins generate lists of routes everywhere and then concatenate them in my initialization code.
While I can easily continue to maintain lists of routes (right now, I build a global list), I'd much rather consider the handler to be the "container" of the routes (much like net/http does with a ServeMux and handlers).  This is pretty trivial, and I'd gladly write it if you'll accept the patch.

+1 for this

What are the usecases, just curious?
On Sunday, January 18, 2015, jcrubino<EMAIL_ADDRESS>wrote:

+1 for this
—
Reply to this email directly or view it on GitHub
https://github.com/ant0ine/go-json-rest/issues/22#issuecomment-70442699.

I'm curious about this too.
A few thoughts:

Having all the routes defined at the same place is usually much easier to read and understand. I have a few examples of ExpressJS apps in mind where you have to "grep" the route definitions from a large piece of code in order to get the big picture.

Generating the list of Routes is an important use case. You may want to generate the CRUD routes of a set of objects, or using Swagger for instance. But the current SetRoutes method does not prevent that, it just forces to have the []Route slice built before calling it.

In any case it won't be possible to add routes after the initialization of the app. This is because this router is based on a trie data structure that is optimized for reads once all the routes are defined.

In the caset of large apis being able to group routes into sets would be nicer to work with.
Does not need to be append per se.
But per the OP, a preprocessor macro is a solution... though not very Go like at that.

I have two primary use cases:
The first is library code.  I have some common stuff shared through a few applications.  I currently have my own, custom logic to collect the pieces and provide them all at once.  I generally consider that low-value code.  Given that it seems (to me) that it must be a common pattern, I'd expect the framework to have a way of doing it.
The second is code that turns on and off.  I have some debugging end-points and an admin system for one app.  It currently turn debugging on/off with a signal and disable the admin system from the command line.  I do this by wrapping my code in a helper that responds to global flags set by the signal handler and option parsing code.  While this all works, it's pretty low value code (and also, again, probably a common need).
In terms of the big picture, I think it's pretty powerful (and useful) to have the ability to flexibly compose routes.  You get things like:

Being able to graft one app under some path.
Include common functionality into many apps.
Automatically generate entire APIs.

In the general case, you can get a lot of mileage out of just being able to swap out the routes at runtime.  Maybe instead of adding routes, it can just replace them, or regenerate them from registered route providers.
With respect to the trie not being easily modified, I don't think that we're ever talking about so many routes that it's not easy to just regenerate from scratch.  As long as it's not happening every few seconds, I'd expect it not to be a (performance) problem to just do that.

I'm surprised this is so old and still open. I have a use case to dynamically add and remove routes at startup according to configuration. If I could append routes i'd be able to do that easily when certain "features" of my code are enabled.


Lka working 8.7

Hi Mario,
I have finished LKA CSD. Kindly review the data as well as CSD and let me know if you have any questions or find any thing that requires revision. Otherwise it should be ready for merging. Thank you!

Thanks @Junying-T . Please delete the LKA-working-8.7 branch at your earliest convenience.


static link binary runtime error: initgroups(www-data, 33) failed (5: I/O error)

I use musl build my package it work well, but recent I find this error on ubuntu 18.04:
initgroups(www-data, 33) failed (5: I/O error)

Is this a bug or a limit of static link ? Any workaround?

It's almost surely nothing to do with static linking or with musl-cross-make, but might have to do with musl, your ubuntu system, or the interaction between them. Can you move this to the musl mailing list and follow up with an strace (if possible - if it can be done without disclosing private information) of the failure?

thanks for explain.
https://www.openwall.com/lists/musl/2020/10/03/1


libloadcaffe error

I changed the video card and GPU computing stopped working.
Then I tried to reinstall all but ceased to work at all.
veydlin@VeyDlin-PC:~/neural-style$ th neural_style.lua -gpu -1 -print_iter 1
/home/veydlin/torch/install/bin/luajit: /home/veydlin/torch/install/share/lua/5.1/trepl/init.lua:384: /home/veydlin/torch/install/share/lua/5.1/loadcaffe/ffi.lua:10: /home/veydlin/torch/install/lib/lua/5.1/libloadcaffe.so: undefined symbol: _ZNK6google8protobuf7Message11GetTypeNameEv
stack traceback:
	[C]: in function 'error'
	/home/veydlin/torch/install/share/lua/5.1/trepl/init.lua:384: in function 'require'
	neural_style.lua:6: in main chunk
	[C]: in function 'dofile'
	...dlin/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
	[C]: at 0x00405d70
veydlin@VeyDlin-PC:~/neural-style$

I solved the problem, it required gcc 5

I'm having the same issue and I'm kinda new to this. What do I do here? I just upgraded to gcc 5, not sure what I should do next.


📜 add post: How to use React hooks with the SharePoint Framework (SPFx)

Category

[ ] Content fix
[x] New article

Related issues

n/a

Contents of the Pull Request
new blog post on How to use React hooks with the SharePoint Framework (SPFx)

Thank you for contributing! 🚀❤


Descheduler Pod stuck in crashloopback

Hey Folks,
Descheduler version : 0.29.0
My environment has EKS 1.27 that utilizes this component.
It was working as expected, however once I reduced my worker nodes from 4 to 2 nodes the descheduler pod gets stuck in crashloopback state & throws this error :
**"The cluster size is 0 or 1 meaning eviction causes service disruption or degradation. So aborting.."**
I am unsure what this error msg would mean, as I still have 2 worker nodes active.
Complete logs
I0508 11:47:31.856171       1 secure_serving.go:57] Forcing use of http/1.1 only 29 I0508 11:47:31.856645       1 named_certificates.go:53] "Loaded SNI cert" index=0 certName="self-signed loopback" certDetail="\"apiserver-loopback-client@1715168851\" [serving] validServingFor=[apiserver-loopback-client] issuer=\"apiserver-loopback-client-ca@1715168851\" (2024-05-08 10:47:31 +0000 UTC to 2025-05-08 10:47:31 +0000 UTC (now=2024-05-08 11:47:31.856607744 +0000 UTC))" 28 I0508 11:47:31.856681       1 secure_serving.go:213] Serving securely on [::]:10258 27 I0508 11:47:31.856695       1 tracing.go:87] Did not find a trace collector endpoint defined. Switching to NoopTraceProvider 26 I0508 11:47:31.856771       1 tlsconfig.go:240] "Starting DynamicServingCertificateController" 25 I0508 11:47:31.857828       1 conversion.go:257] converting Deschedule plugin: RemovePodsViolatingNodeAffinity 24 I0508 11:47:31.857848       1 conversion.go:257] converting Deschedule plugin: RemovePodsViolatingNodeTaints 23 I0508 11:47:31.857859       1 conversion.go:248] converting Balance plugin: RemovePodsViolatingTopologySpreadConstraint 22 I0508 11:47:31.857885       1 conversion.go:248] converting Balance plugin: LowNodeUtilization 21 I0508 11:47:31.857902       1 conversion.go:248] converting Balance plugin: RemoveDuplicates 20 I0508 11:47:31.857925       1 conversion.go:257] converting Deschedule plugin: RemovePodsHavingTooManyRestarts 19 I0508 11:47:31.857939       1 conversion.go:257] converting Deschedule plugin: RemovePodsViolatingInterPodAntiAffinity 18 W0508 11:47:31.866856       1 descheduler.go:246] failed to convert Descheduler minor version to float 17 I0508 11:47:31.895468       1 reflector.go:289] Starting reflector *v1.Node (0s) from k8s.io/client-go/informers/factory.go:159 16 I0508 11:47:31.895475       1 reflector.go:289] Starting reflector *v1.PriorityClass (0s) from k8s.io/client-go/informers/factory.go:159 15 I0508 11:47:31.895504       1 reflector.go:325] Listing and watching *v1.Node from k8s.io/client-go/informers/factory.go:159 14 I0508 11:47:31.895506       1 reflector.go:325] Listing and watching *v1.PriorityClass from k8s.io/client-go/informers/factory.go:159 13 I0508 11:47:31.895520       1 reflector.go:289] Starting reflector *v1.Namespace (0s) from k8s.io/client-go/informers/factory.go:159 12 I0508 11:47:31.895535       1 reflector.go:325] Listing and watching *v1.Namespace from k8s.io/client-go/informers/factory.go:159 11 I0508 11:47:31.895576       1 reflector.go:289] Starting reflector *v1.Pod (0s) from k8s.io/client-go/informers/factory.go:159 10 I0508 11:47:31.895596       1 reflector.go:325] Listing and watching *v1.Pod from k8s.io/client-go/informers/factory.go:159 9 I0508 11:47:31.898936       1 reflector.go:351] Caches populated for *v1.PriorityClass from k8s.io/client-go/informers/factory.go:159 8 I0508 11:47:31.899083       1 reflector.go:351] Caches populated for *v1.Namespace from k8s.io/client-go/informers/factory.go:159 7 I0508 11:47:31.900057       1 reflector.go:351] Caches populated for *v1.Node from k8s.io/client-go/informers/factory.go:159 6 I0508 11:47:31.924478       1 reflector.go:351] Caches populated for *v1.Pod from k8s.io/client-go/informers/factory.go:159 5 I0508 11:47:31.996485       1 descheduler.go:120] **"The cluster size is 0 or 1 meaning eviction causes service disruption or degradation. So aborting.."** 4 E0508 11:47:31.996554       1 descheduler.go:430] the cluster size is 0 or 1 3 I0508 11:47:31.996718       1 tlsconfig.go:255] "Shutting down DynamicServingCertificateController" 2 I0508 11:47:31.996759       1 secure_serving.go:258] Stopped listening on [::]:10258 1 I0508 11:47:31.996805       1 reflector.go:295] Stopping reflector *v1.Pod (0s) from k8s.io/client-go/informers/factory.go:159

could you execute this command and show me result? seems only 1 worker node in your cluster
kubectl get nodes -o wide
kubectl get nodes -o yaml

Hi Jane,
Thanks for your response.
My cluster node count had reduced suddenly by the CA I wasn't aware.
That gave me incorrect impression that I had maybe atleast 2 nodes.
While we are at this already.
Maybe I know what may cause such a behaviour by the descheduler


Optimization doesn't seem to update the system

at = rand_AlTi(2, 0.01)
@show potential_energy(at, fit_calc)
solver = OptimizationOptimJL.LBFGS()
optim_options = (f_tol=1e-4, g_tol=1e-4, iterations=30, show_trace=false)
results = minimize_energy!(at, fit_calc; solver, optim_options...)
@show potential_energy(at, fit_calc)

Before and after optimization the energy is identical, i.e. the atoms object did not get updated.
potential_energy(at, fit_calc) = -31416.245828594478 eV
potential_energy(at, fit_calc) = -31416.245828594478 eV

P.S.:  it is possible that I am doing something else wrong here, e.g. I might be testing with such a badly fitted potential that it just can't take even a single step.

P.P.S.: so it seems I can convert the result back to a positions vector and generate a new structure. But shouldn't that happen automatically?


Fixed timer disappearing on mooch

The timer and the moving bar disappear when a fish bites on mooch because _catchHandled doesn't get reset.

Thanks!


v1 Branch for Tio

I'm wondering if it's possible to host the v1 branch for TriItOnline in this repository, rather than on TIO's one.
Currently we have this branch in TIO repo:
https://github.com/TryItOnline/Fission/commits/v1
It has two additional commits as commits as compared to what's in this official repository:

changes for the linux compilers not to choke on the sources
memory corruption fix by Martin, which was eventually integrated in v2

These two things were needed to run v1 on TIO.
Would you be interested in making a v1 branch in this repo and apply these changes to it, so TIO could you that as the base for v1.
There is also a pull requests I just opened for the changes that TIO needs for v2, this is separate. Can it be merged as well? https://github.com/C0deH4cker/Fission/pull/6
Thank you in advance!

Hi! I can probably get to these in a week or two (I'm quite busy with school and other obligations right now). I actually wasn't aware that people were actually still using Fission. I might pick up this project and add more to it if people still seem interested.

Sorry for the delay, but I've just backported those fixes from Fission 2 to the v1 branch and released the new version as 1.0.1 (tagged). I've also merged your pull request for Fission 2. Let me know if there's anything else you need me to do to help getting Fission working in TIO!


Official website fail.

It is working fine in my phone but does't in my PC.

I think it is something about my browser


Dynamic Programming

I would like to question on Dynamic Programming from CSES. Please assign me this issue @rahulsain

add atleast 4 5 ques in 1 PR


Loading... message using custom clickHandlerFunc

I'm using panellum with a 360 video using your video.js plugin and it works like a charm.
I've succesfully added custom hotspots which load a youtube video via clickHandlerFunc and temporarily pause and hide the panellum video.
After exiting the youtube video I want users to be able to continue watching the 360 panellum video by calling play() on the panellum player.
I, however, cannot find in the documentation anywhere covering how to fire a 'loaded' or 'loadComplete' event back to the panellum player to tell it the clickHandlerFunc has loaded and completed successfully.
After calling play() I can hear the audo continuing in the background but the video itself is frozen with the Loading... message.

OK, I worked it out. I had a 'sceneId' on the tooltip, this was not a link to a scene so it was opening the infoDisplay.load.lbox every time I clicked it.

The Video.js plugin should automatically take care of this, so I'm not sure why it's not. Try calling setUpdate(true) on the Pannellum instance after calling play() on the video.

Nice timing! :-)

Hi
I am unable to add click handler on hotspot by using "clickHandlerFunc" attribute.
Please suggest me, how can I add a basic click event.
My requirement is to fetch image data on load of image or on click of hotspot.
Thanks in advance!

@mpetroff
Sir.... it would be great if I can get help from you as soon as possible.
Anyone who can guide me.


[EN-DatetimeV2] Wrongly recognized DateTime entities with "." splitter

Describe the bug
For cases like "in 5.1935", it should be extracted as "in May 1935".
Now, only the "1935" part is extracted as "year 1935"
To Reproduce
Input "in 5.1935", will get output for only "1935" as a DateRange entity
Expected behavior
"5.1935" should only be extracted as "May 1935"
"5.11" can be extracted as "Nov 5th" or "May, 2011" or time "5:11", this case needs to be distinguished by special prepositions.
a. If someone say "on 5.11", it should be "on Nov 5th".
b. If someone say "in/during 5.11", it should be recognized as "in/during May, 2011".
c. If someone say "at 5.11", it should be recognized as "at 5:11"
To avoid possible confusion, for two digit year, we require certain prepositions to indicate a Date or DateRange. We will not extract expression with two digit year but without prepositions as any DateTime entity.
Sample input/output
"5.1935" -> "May 1935"
"5.11" -> null
"on 5.11" -> "Nov 5th"
"in/during 5.11" -> "May, 2011"
"at 5.11" -> "5:11"
"on 5.15" -> null
"at 5.85" -> null
"in/during 5.85" -> "May, 1985"

I suggest we don't cover all these now. Let's focus on day.month and day.time only. For the others, just make sure the year part is not extracted by itself.


Add KotlinCpuColorFunc which applies ColorCube using trilinear interpolation on CPU.

This needs some testing still, but it's pretty good.
The comments are pretty long and can be refactored out to some external documentation at some point.

LGTM!


[Failing Test]: Python 3.7 PostCommit failing BigQueryXlangStorageWriteIT

What happened?
These tests were recently added in #25685
Issue Failure
Failure: Test is continually failing
Issue Priority
Priority: 1 (unhealthy code / failing or flaky postcommit so we cannot be sure the product is healthy)
Issue Components

[ ] Component: Python SDK
[ ] Component: Java SDK
[ ] Component: Go SDK
[ ] Component: Typescript SDK
[ ] Component: IO connector
[ ] Component: Beam examples
[ ] Component: Beam playground
[ ] Component: Beam katas
[ ] Component: Website
[ ] Component: Spark Runner
[ ] Component: Flink Runner
[ ] Component: Samza Runner
[ ] Component: Twister2 Runner
[ ] Component: Hazelcast Jet Runner
[ ] Component: Google Cloud Dataflow Runner

CC: @ahmedabu98

Ah looks like Postcommit tests do all the tests in apache_beam/io/gcp/bigquery_write_it_test.py. Did not mean for the new xlang tests to be included in this suite. Looks like will have to make a new file to host BQ xlang tests.

.take-issue

These test can be moved to sdks/python/apache_beam/io/external which is current external transform test locates


Fix: Move previous created casks from root to /Cask folder

This commit fixes issue #909

@reitermarkus Shouldn’t Travis have caught this? It used to (if I recall correctly).


I want to remove the " used a Workflow template to send this card. Get template" line

I really don't need a whole line item about what Workflow template I used to distract from the message. I have been searching through the codebase as well as the powerautomate stuff to see if I could remove it, but have had no luck. It is sandwiched between the results table and the results link, which makes me think it is somehow being inserted into the adaptive card. If you can point me in the right direction I don't mind forking the repo and making the change myself.
I have outlined in red the line item I am talking about.

Hi @jellis206, unfortunately, this is something Microsoft adds, so it is out of our control. That said, there seems to be a trick to get it removed. You can do this by creating a copy of the flow and using that one instead. You can find more details here: https://docs.hetrixtools.com/microsoft-teams-how-to-remove-name-used-a-workflow-template-to-send-this-card-get-template/
I've just tried it out, and it seems to work fine on my end.

I've added the procedure to the README:

Thank you! I was half expecting this to be ignored. I really appreciate the guidance!!


content in Tasks section does not match navigation sidebars and isn't linked

This is a...

[ ] Feature Request
[X] Bug Report

Problem:
The content in docs/tasks/index.md no longer matches the side bar, and none of the content is linked.
Proposed Solution:
I'm not certain what the ideal/best solution is - is the index.md meant to be an example of what's there, and the content should just be updated (and potentially linked as well), or should the contents be shorted and the navigation on the left side that's built from the other documents in the directory provide the detail?
Page to Update:
https://kubernetes.io/docs/tasks/

/remove-lifecycle rotten

I guess this is still relevant.
/remove-lifecycle rotten


Add loading spinner to initial page of a project

Description
Add a loading spinner to the initial page of a project.
Expected behavior
Show a spinner until the page is ready to load.
Current behavior
Show that the project is empty until the page is loaded.
Checklist

[x] This issue has a significant name.
[ ] This issue has labels.
[ ] This issue has screenshots (if necessary).

I'm working on this issue.


Allow Alternate files to be loaded

Updated the load_training_dataset function to allow an override to an alternate file, similar to the load_tokenizer function. This will help when fine-tuning or training with different datasets.

@rmosleydb What about this? https://github.com/databrickslabs/dolly/pull/123

Looks good. Thanks.


Use commons-pool2

Hello,
Jedis still depends on commons-pool2 version 2.0. 2.3 was released a year age (24/Feb/14) with many fixes. Could you upgrade it in your pom file ?
Released	2.3	24/Feb/14	30/Dec/14	Feature and fix release
Released	2.2	12/Dec/13	23/Feb/14	Feature and fix release
Released	2.1		12/Dec/13	Bug fixes and new features
	<dependency>
		<groupId>org.apache.commons</groupId>
		<artifactId>commons-pool2</artifactId>
		<version>2.0</version>
		<type>jar</type>
		<scope>compile</scope>
	</dependency>

Cf https://issues.apache.org/jira/browse/POOL/fixforversion/12326282/?selectedTab=com.atlassian.jira.jira-projects-plugin:version-summary-panel
Regards,
Ludovic

Also I don't know where dit it comes from but I have the following errors when I stop Tomcat Server. This seems related to commons-pool.
INFOS: A valid shutdown command was received via the shutdown port. Stopping the Server instance.
mars 26, 2015 9:30:53 AM org.apache.coyote.AbstractProtocol pause
INFOS: Pausing ProtocolHandler ["http-bio-8181"]
mars 26, 2015 9:30:53 AM org.apache.catalina.core.StandardService stopInternal
INFOS: Arrêt du service Catalina
mars 26, 2015 9:30:54 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
GRAVE: The web application [/myapp-ws] appears to have started a thread named [commons-pool-EvictionTimer] but has failed to stop it. This is very likely to create a memory leak.
mars 26, 2015 9:30:54 AM org.springframework.web.context.support.XmlWebApplicationContext doClose
INFOS: Closing Root WebApplicationContext: startup date [Tue Mar 17 11:27:13 CET 2015]; root of context hierarchy
mars 26, 2015 9:30:54 AM org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean destroy
INFOS: Closing JPA EntityManagerFactory for persistence unit 'afone-myapp-persist'
mars 26, 2015 9:30:54 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
GRAVE: The web application [/myapp-jobs] appears to have started a thread named [commons-pool-EvictionTimer] but has failed to stop it. This is very likely to create a memory leak.
mars 26, 2015 9:30:54 AM org.apache.coyote.AbstractProtocol stop
INFOS: Stopping ProtocolHandler ["http-bio-8181"]
mars 26, 2015 9:30:54 AM org.apache.coyote.AbstractProtocol destroy
INFOS: Destroying ProtocolHandler ["http-bio-8181"]

@lboue for the commons pool update I've already submit PR #930 which upgrades it. As soon as some other contributor checks it out we'll merge. Regarding tomcat shutdown I guess that's a commons-pool problem, you should submit an issue in their project to see what they tell you about it.

Thanks. I will submit the issue to commons-pool JIRA.


Free ID Programming Book

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?
Checklist:

[ ] Not a duplicate
[ ] Included author(s) if appropriate
[ ] Lists are in alphabetical order
[ ] Needed indications added (PDF, access notes, under construction)

please find an authoritative source for this book. (not a blog post linking to a file-sharing site, both apparently unrelated to the author of the book.)

I keep unsubscribing but keep getting emails. Could I get some assistance. Thanks.
On Oct 5, 2020, 11:42 AM -0400, Eric Hellman<EMAIL_ADDRESS>wrote:

Closed #3780.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


Add Diff function for CloudRun drift detector

What this PR does / why we need it:
This function is used to extract the diff between headManifest and liveManifest by CloudRun detector.
Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?:

NONE

@knanao in case the content for Does this PR introduce a user-facing change? question is NONE, the PR title will be used as a note in our release note (internal change section), so please use PR title which could explain what do we do on this pull in a more precisely way 😄

Nice work! Can't wait to have that feature.
/lgtm

There you go! Keep up your great work 👍
/approve


[Sample] disable swipe delete

Fixes https://github.com/marty-suzuki/ReverseExtension/issues/50 in Sample project.

Maybe we should update README to mention about limitations like this.


[AMBARI-22886] Infra Manager: store s3 credentials in Hadoop credential store

What changes were proposed in this pull request?

store s3 access key id and secret key to hadoop credential store
validate job properties only if job enabled
do not schedule job if validation failed

How was this patch tested?

UTs passed
manual testing using ambari

Please review
@oleewere @swagle @zeroflag

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/428/
Test PASSed.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/444/
Test PASSed.


Add support for DCTTech USB relays hardware

It is probably most common and cheapest USB relay on the market
It has USB VID:PID: 16c0:05df
See https://github.com/rfael/usbrelay-rs/blob/main/src/usbrelay.rs
Also see https://github.com/darrylb123/usbrelay

https://sigrok.org/wiki/Dcttech_usbrelay
http://sigrok.org/gitweb/?p=libsigrok.git;a=tree;f=src/hardware/dcttech-usbrelay
https://github.com/u1f35c/usb-relay-firmware

Please send PR.


Showing mutations on edges

There are various possibilities for showing mutations on edges (apart from not displaying them at all). Here are some visual suggestions, I'm sure there are more:
https://github.com/hyanwong/dynamic-ARG-viz/issues/2

Some initial thoughts for this issue and a two main questions that I've been thinking about.

How much information should be showed? Should each mutation be given its own tick? Should this utilize with popups (#50) to avoid cluttering the screen when there are many mutations?
Where should mutations be placed on the line? Thinking about this first just for edge_type="line" as it's easier to position the mutations along the edge as well as when y_axis_scale="rank" as that is the most commonly used scale. This will depend whether ticks are grouping many mutations together or not.
Should mutations be shown on the genome bar when tree highlighting is activated?

For example, if we have a simple three sample tree (Top Tree):

Middle Tree - A single mutation tick can be added to the midpoint of the edge indicating that there is at least one mutation along this branch. Then when you hover over the tick it tells you about all of the mutations along that edge. This solution is the simplest visually, but does not clearly covey the number or timing of mutations.
Bottom Tree - Mutations are each given their own tick mark and the y-axis is expanded to include the timings of the mutations. This version is less reliant on popups, though that could still be useful for including more details.

For both of these methods, I don't think that the mutations should be draggable. There positions should update as you drag the nodes around but the mutations are not themselves nodes on the graph. More like interactive labels that have been added on top of the graph.

Here's a quick prototype of the Middle Tree version without popups as those haven't yet been added.

Thanks for this @kitchensjn. The prototype looks great. I definitely agree that mutations shouldn't be draggable.
Personally, I think the default should be to have separate ticks for each mutation. It is fairly important to see visually how many mutations there are along a branch, without hovering over a yellow box to see how many mutations it represents. However, if there are lots of mutations along an edge, I can see the advantage of collapsing them into one: if you feel this is important, I guess you could have a plotting parameter to switch between behaviours?
I think it would also be useful to (again optionally) specify mutation labels. But it could be that the default is not to show any.
Note that sometimes mutations in a tree sequence have their own "time" value. Perhaps it would be useful to (optionally?) use this to the Y positions if the "y_axis_scale" is set to "time" or "log_time"? FYI that often doesn't look great in the tree-by-tree view, though.

Re tick marks on the axis: in my experience, it's hard to connect the mutation symbol on the edge with a tick on the axis, so some sort of dynamic highlighting is probably necessary. Either you could (a) show ticks on the axis for all mutations, but highlight one when you mouse over the mutation on the edge or (b) you could simply reveal a yellow bar on the axis when you mouse over a mutation on an edge.
(b) is less cluttered, scales better to lots of mutations, and is probably more in-keeping with the rest of the visualiser. But (a) has the distinct advantage that you can mouse over a tick on the axis to highlight which mutation it corresponds to on the tree. So I'm not sure which is better.

For this, I've included a mutations table that includes edge and timing information. This version with "rank" scaling takes into account the mutation timings when determining the vertical positioning. Then determines horizontal positioning and rotation based on the positions of the edge parent and child. This seems like the easiest way to show mutation ordering along an edge and avoid cluttering when there are many mutations on an edge that would be normally short leading to overlapping. I agree that the actually mutation timing is hard to pin down with the y axis being so far to the left, so I can test out your highlighting concept. This all works for "time" and "log_time" though mileage may vary with whether it looks good. It should be straightforward from here to add labels to each mutation, so that's my next goal for prototyping. Then will push a version for you to try out.

This looks great. I can completely see the rationale behind adding mutation times to the ranks. But what happens if the mutation times are tskit.UNKNOWN_TIME?
Re highlighting, I was actually meaning on the X axis. You might well want to see the position of a mutation (site) on the X axis. I'm not sure how you would show this. Maybe a yellow vertical tick on the genome bar, of half the height of the bar itself?

So my idea for when times are unknown was to provide a "plotting time" to any mutations with a missing time. The plotting time is approximately halfway in time between the parent and child node times for the edge with a little randomness to separate when there are multiple mutations. Then to distinguish the mutation times that we don't actually know, I removed there y-axis tick. This lets you plot mutations with times alongside those without while avoiding overlapping. But I'm not completely sold as the half position in time is not necessarily the half position on the edge in the event that there are other nodes within that time range (for rank and log_time).

So if all of mutations have unknown times (or if you want to ignore times), you can position all of the mutations evenly on the edge. The spacing should be able to be modified if you preferred the mutations be clumped in the center of the edge as you have shown in https://github.com/hyanwong/dynamic-ARG-viz/issues/2. Here, I colored the mutations orange instead of yellow just to indicate that the timing on the branch is unimportant. You'll need to set an appropriate figure height to avoid overlapping the mutation marks. I think this is the cleanest version yet when you don't care about timing.
The issue is mixing mutations with known times alongside those without times. In those cases, I still think the previous version is better, especially when there's a concern about overlapping. Maybe having both styles is the way to go forward...

Added labels within the mutation symbols and corresponding lines to the genome bar. To reduce the amount of text written to the screen, I gave each mutation site an index rather than using its full position coordinate, so the mutation labels are <site_position_index>:<ancestral_state>:<derived_state>. Font sizes have to be made quite small unfortunately to fit everything in without overlaps. For the genome bar ticks, I alternated the site labels top versus bottom just to give more spacing between neighboring labels. Colors will need to be played with to figure out what is most legible with the smaller fonts.

Nice! Yes, the position index is ordered, so that should be OK. Site positions are guaranteed to be in order. Note that mutation IDs might not be the same as site position IDs, however, so it might be worth checking an example that has multiple mutations at the same site. Personally I find the yellow axis tick marks a little too emphasised, but dropping them to half-hight means it's harder to alternate the site numbers above and below.
I wonder if, given the interactive nature of the thing, you can get away with omitting the site_position_index entirely, and just revealing it on hover? If you can make it interactive so that hovering over the mutation in the graph highlights the tick on the x axis, that might be enough to make the link between the mutation and its site position? Then you could have the yellow lines as half-height. But these are all just personal aesthetic opinions. I think the most important thing is to be able to change the mutation text (including removing it entirely) and the yellow text on the x axis ticks.
Maybe worth seeing if other people from your group have suggestions? Do you want me to post it on one of the tskit forums to get feedback?

I'll make the position index a direct reference to the site ID to keep things consistent.
Any feedback others had would be great! Especially with how interactive versus static the figure should be. I'm definitely interested in leaning more towards interactive with popups and things like that to keep it less cluttered, though it would make it less applicable for generating publication figures. Really depends how it would be most helpful.

For publication, the only times I've wanted to visualise a graph are the covid case, which requires restricting to a subgraph (indeed, I think most use-cases of your visualiser will need either to be small examples for teaching, or subgraphs).
In this case, there were multiple mutations along each edge, so it was useful to either summarise them into a single number, or to just have a list of positions / state changes stacked up along each edge. I'm not sure how I would get something similar in tskit_arg_visualizer?

Added "mutations" branch for you to check out!

Thanks! Just made a comment about slow conversion in #92 . I think maybe it's a useful addition to allow progress bars, even if you don;t officially document it yet?

There are some slightly weird effects going on here. I suspect it's because the mutations are placed at exactly the same time as the nodes below them:

I forgot that I used mutation count along the edge to determine the positioning of the mutation marks along the edge when ignore_mutation_times=True. In the Pull Request discussion, I told you to comment out the lines that calculated the mutation count but that has caused the scaling to be off (see that some mutation marks look disassociated from any of the edges). In 31c4be1, I've updated it to calculate the mutation count in draw() and draw_node(). With draw_node(), this should be much faster than before because you are plotting only a subset of the edges. Hopefully that fixes it, but let me know if it turns out to be something else!

Ah yes, much better, thanks!
Some way to make the mutation rectangles along the edges a bit smaller (e.g. without labels) might bee handy for larger instances, like the one below, might be good. Perhaps I can simply remove the text in the accompanying data frame?

d3arg.draw(
    ...,
    show_mutations=True,
    ignore_mutation_times=True,
    include_mutation_labels=False
)

Messy ARG example, but I've added a few more parameters to draw() and draw_node(); I've included them all here, though the last two are the default values. You can hover for the mutation ticks which show you the mutations along the chromosome rather than showing all of them at once. Clicking the mutation locks it as active so that you can look at more than one at a time or take a picture.
We could potentially give the user the ability to change the mutation label (as we did for node labels), but an important note is that the size of the mark would need to dynamic as well to make sure it fits around whatever label they choose. Alternatively, we could just have the labels outside of the tick marks to avoid this problem. It kind of depends how often you would be modifying specific labels versus removing all them as include_mutation_labels=False does.

That's fabulous. Thanks a lot. I'll have a play.

With some more testing, I found it sometimes hard to remember which mutation corresponded to the tick on the genome bar since they are all red without a corresponding label. Latest commit picks a random color every time you click the mutation so that it's easier to differentiate.

Alright, yesterday I had some time to work on popups (#50) for the mutations. Relevant to mutations, I've removed the label on the genome bar mark and instead show that label in the tooltip. I've also removed the ability to click and lock mutations because it plays strangely with the tooltip. So far, I think that this gives us the most flexibility in what is displayed without being clutter, and I am partial to removing the include_mutation_labels parameter (I at least don't see a scenario where that would be more useful than the tooltip). Tooltip has been added to the mutation branch if you are interested in trying it out. It should work both in standalone and notebooks.

Good work. Re mutation labels, it is definitely useful to be able to statically display the details for all shown mutations on branches, but I think you are just talking here about the hovering over the genome bar, right?
Here's an example I posted recently on the covid discussion slack: you can see how it is useful to see the mutations on the branches, but much less so on the genome bar. In ts draw_svg method, one of the main uses for displaying on the genome bar is purely to highlight which sites have multiple mutations (which is hard to tell from the branch labels)

Seems like it is getting to the point where you could merge the mutations branch into main?

The functionality is merged now. Closing this, as individual improvements are best picked up in separate issues such as #103


MakeBadgeForTabAt more than four are bugs

    redColor = Color.parseColor("#FF0000");
    BottomBarBadge nearbyBadge = mBottomBar.makeBadgeForTabAt(0, redColor, 5);
    BottomBarBadge nearbyBadge1 = mBottomBar.makeBadgeForTabAt(1, redColor, 5);
    BottomBarBadge nearbyBadge2 = mBottomBar.makeBadgeForTabAt(2, redColor, 5);
    BottomBarBadge nearbyBadge3 = mBottomBar.makeBadgeForTabAt(3, redColor, 5);
    BottomBarBadge nearbyBadge4 = mBottomBar.makeBadgeForTabAt(4, redColor, 5);

    nearbyBadge.setAutoShowAfterUnSelection(true);
    nearbyBadge1.setAutoShowAfterUnSelection(true);
    nearbyBadge2.setAutoShowAfterUnSelection(true);
    nearbyBadge3.setAutoShowAfterUnSelection(true);
    nearbyBadge4.setAutoShowAfterUnSelection(true);

Also reproduced if adding badge to current selected tab. It seems, that incorrect place (size) calculation in BottomBarBadge constructor.

Should've been fixed in the 2.0.2 version.

fyi, I'm using version 2.0.2 and I still experience this issue sometimes (I can't reproduce it systematically, though).


Adds interface for generating links between items & modules

A redesign of module_prefix. This PR introduces the ModuleInfo struct with methods for auto generating paths for use in the rendering process. This also reduces the amount of String allocations, but horrorshow requires that the lifetimes must outlive 'static so some instances couldn't be avoided.
Closes #3646
Closes #3553

Overall looks good to me just left a nit. Reading refactor PRs feels oddly satisfying smile

I've never agreed with something more. There's something refreshing about it haha


[FEA] Force use PERFILE scan in low shuffle merge.

Currently low shffule merge requires the scan mode set to PERFILE, which is not user friendly since user need to change this spark session level conf to enable this feature. We could force using PERFILE scan during low shuffle merge   so that even if the session's spark conf is not.

@liurenjie1024 why do we need to force it to be per-file? Is it because we don't want to merge files so we can insert in a count for the number of rows?  We already do this for operators like input_file_name, but I really would prefer to have a solution that does not require this. Especially because the only reason we do it for input_file_name is because Spark uses a thread local value to hold the name of the file instead of asking the input format to provide it as a column. But for me it is an acceptable solution. Just not an ideal one.

Do you think this solution is reasonable?

The answer depends on how well it performs in practice.  The problems we've seen in the past with PERFILE are aggravated by partitioned tables, since they tend to generate small files which perform poorly on the GPU (not enough data per file loaded to get the necessary parallelism for speedup).  Auto compaction helps as more data gets written to the partitions, but sometimes there simply isn't enough data in partitions and tasks are handed files across partitions.  We can combine those today, but not when PERFILE is forced.
Another potential problem with this approach is whether it will be selectively applied only to the tables that need it within the query.  The merge source could be a quite complex query composed of many scans, and ideally we wouldn't want those scans to be forced to PERFILE since it's not necessary for the low shuffle merge logic.

Thanks for clarifying what this is doing.  Note that an alternative to this approach is to fully implement a row ID metadata column.  If we had that, we wouldn't need the PERFILE+nosplit hack for low-shuffle merge.
I agree we should make it easier to use low-shuffle merge, and making the PERFILE hack more specific to the scan would be a step towards that (both in terms of usability and performance, since not all scans would need to be PERFILE).
An alternative is to implement a row ID column properly which shouldn't be too difficult.  We already know the start/end row IDs of each rowgroup we're loading, so it should be easy to generate the segmented sequences to cover all the rows.  We already support the input filename as a column, and the combination of these uniquely identifies the row.  One drawback is the need to manifest the filename for each row, which IIRC PERFILE+nosplit is avoiding.

I think as first step, we can limit PERFILE scan to target files only

I agree this would be a valuable, incremental step.


management: Add change_password command.

Zulip identifies users by realm+delivery_email which means that the
Django changepassword command doesn't work well -
since it looks only at the .email field.
Thus we fork its code to our own change_password command.
Ref https://chat.zulip.org/#narrow/stream/31-production-help/topic/How.20to.20import.20Slack.3F/near/1087877

Merged, thanks @mateuszmandera!


FEATURE: Persona with default extensions selected

On the home page, there are 2 sections Extensions and Personas where people can click "Start chat" to start their conversation. If we define more extensions and personas, there might confuse users with a lot of Card panels, and also if we can link those together to make it more sense to the users.
 No extensions enabled by default.

Persona "HR Assistant": You are HR manager in my company. If you know something then say Yes, otherwise please dont make up answer. With Default Extension enabled by Admin, and can not be deselected in chat thread. "AI Search Employee Handbook", this will use my "employee-index"  on AI Search service.

Persona "Network Engineer Assistant". that will use my own Rest API that admin can define as an extension, and enable it.

By doing this way, I think the Chat thread UI will be simpler for users, they dont need to worry about selecting a bunch of extensions.
Thanks for the new great upgrade v2

This gets my vote as well. To achieve this while we wait for the feature, I have made the following chage:

And then I manually added the extension ID to the corresponding persona in CosmosDB.
Then, when a user starts a persona chat, the correct extension is automatically set. I also hide the list of extensions on the chat home page to avoid our users from getting confused and picking the wrong thing.

This is a much cleaner way of doing it. This gets my vote as well.

@dpayne-voss That is a good solution for now but while trying your solution, I realized that we might probably get wrong idea from @thivy by making Persona and Extension isolated.
I am confused now. I tried to login with 2 different users, Admin and standard user.
With admin user, I tried to create 1 Extension to AI Search and published it, Also created 1 Persona.
Login with standard user, On the UI portal, it does not see "Reporting" menu, that is good, but standard user also see Persona and Extension menu where they can create their own Persona, so each user can define their own Persona, not the one defined by Admin.
But standard user also see the extension created by Admin without permission to publish but still able to Save it. This confuses me that what is the main purpose of letting user saving an extension created by Admin. And the standard user can create extension as well.


Write test code of REST API Server

there is no unit to test, it will be reopened after added more functions.


Multiple NFS shares

Added the ability to setup multiple NFS Shares
By default (changeable with xhyve-experimental-nfs-share-root, see below) NFS shares are rooted at /xhyve-nfsshares to avoid the situation where a NFS Share /usr would be mounted at /usr
2 backward incompatible changes:

renamed xhyve-experimental-nfs-share to xhyve-experimental-nfs-share-enable
change xhyve-experimental-nfs-share from being a boolean to a string slice taking multiple path to be shared via NFS
NFS Shares are now mounted under a default directory /xhyve-nfsshares (the old code was mounting everything under / causing, for example, /usr to be mounted at /usr)

Other change:

add xhyve-experimental-nfs-share-root to allow specifying where in the guest the NFS Shares will be rooted at

Here's an example of how to use:
docker-machine -D create -d xhyve --xhyve-disk-size 40000 --xhyve-memory-size 4000 --xhyve-cpu-count 2 --xhyve-experimental-nfs-share-enable --xhyve-experimental-nfs-share /Users --xhyve-experimental-nfs-share /usr/ --xhyve-experimental-nfs-share-root /nfsharesfromhost test
This command will share the host folders /Users and /usr in the guest at /nfsharesfromhost/Users and /nfsharesfromhost/usr

The PR doesn't get updated with latest changes for some reason.
Sorry for the spam...


Problem in loading your pre-trained checkpoint

I tried to use your pre-trained checkpoints, data.pkl, to inference noisy signals, but found out that there is problem in torch.load() function, indicating failure to load the .pkl file. I searched the Internet and suggestions are installing appropriate torch version. I tried a few versions but it still doesn't work.

You should load the best_model.tar. You'd better choose the pytorch 1.7.1.
Hope this answer can help you!


process-dragable is not working in v 3

I'm trying to use this feature but is not working, can anyone give me a help

Sorry, this feature is not supported in v3.


FFM-7412 - Reduce complexitiy of SSE code

FFM-7412 Potential memory leak on SSE retries
What
Remove eventsource dependency to reduce code complexity and create an easier to maintain implementation
Why
We're seeing the eventsource/retry packages spin and cause a lot of retries to happen at once, causing an adverse effect on system resources.
Testing
Manual testing with custom proxies to simulate network failures.

Force Push was to remove my change to the github actions workflow.


idris modules: don't remove gnome packages from scope

Motivation for this change
To be clear: I don't understand why gnome was subtracted, nor why this works. But, it works!
Things done

[x] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] OS X
[ ] Linux

[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Fits CONTRIBUTING.md.

fixes #18998

// does not remove but add (overwriting existing keys).
What's the error you are trying to fix?

@groxxda See the issue referenced in the above post: https://github.com/NixOS/nixpkgs/issues/18998