Use ES6 in hoxy, particularly generators.

PROS:
Reduces dependence on callbacks. Writing code in a synchronous/suspended style would make it easier to reason about and refactor.
CONS:
Limits hoxy use to newer node platforms, namely iojs or node 0.11 / --harmony.
Cons might be mitigated by use of transpilers. Also by hoxy being a dev-focused tool rather than a production one, thus not locked to mission-critical systems and more under control of devs.
If/when iojs becomes stable/popular and/or Joyent releases node 0.12 with native generator support the cons will be minimized in my view.

@greim It's awesome that this is done. I'm now trying to figure out how to use it. Am I correct in understanding that an ES6 module which imports hoxy 2.x (and sits in a package having hoxy installed as a typical package.json dependency) is to be run with babel-node?
I keep getting stuff like this...
/Users/sholladay/Code/experiment/es6-proxy/node_modules/hoxy/node_modules/babel/node_modules/babel-core/lib/babel/polyfill.js:16
  throw new Error("only one instance of babel/polyfill is allowed");
        ^
Error: only one instance of babel/polyfill is allowed
    at Object.<anonymous> (/Users/sholladay/Code/experiment/es6-proxy/node_modules/hoxy/node_modules/babel/node_modules/babel-core/lib/babel/polyfill.js:16:9)
    at Module._compile (module.js:460:26)
    at Module._extensions..js (module.js:478:10)
    at Object.require.extensions.(anonymous function) [as .js] (/usr/local/lib/node_modules/babel/node_modules/babel-core/lib/babel/api/register/node.js:215:7)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/sholladay/Code/experiment/es6-proxy/node_modules/hoxy/node_modules/babel/node_modules/babel-core/lib/babel/api/register/node-polyfill.js:11:1)
    at Module._compile (module.js:460:26)

But using typical node doesn't work, either ...
/Users/sholladay/Code/experiment/es6-proxy/node_modules/hoxy/lib/proxy.js:6
import http from 'http'
^^^^^^
SyntaxError: Unexpected reserved word
    at exports.runInThisContext (vm.js:73:16)
    at Module._compile (module.js:443:25)
    at Module._extensions..js (module.js:478:10)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/sholladay/Code/sitecues/sitecues-proxy/node_modules/hoxy/node_modules/babel/node_modules/babel-core/lib/babel/api/register/node.js:215:7)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/sholladay/Code/sitecues/sitecues-proxy/node_modules/hoxy/hoxy.js:9:13)
    at Module._compile (module.js:460:26)

There must be something basic I'm missing here.

Hoxy being written in es6 is supposed to be invisible to the outside world. AKA you should be able to npm install hoxy into es5 projects, var hoxy = require('hoxy') from es5 modules, and run it using node v0.10 or higher without --harmony flags.
Obviously something isn't playing well with your environment. You definitely shouldn't need babel-node for Hoxy, but perhaps your babel-node is a different version from the one Hoxy depends on? I suspect something like this needs to be added to Hoxy.

Right. Okay, we're on the same page. I only tried babel-node after reaching a dead-end with ES5 at:
import http from 'http'
^^^^^^
SyntaxError: Unexpected reserved word

(last comment has full trace)
My limited understanding of how Babel works tells me that we either need that runtime like you mentioned or that hoxy needs to be transpiled at prepublish time when pushing up to npm with a package script.

It will definitely be good to do some of these things that generally make the lib more self-contained, but if you could describe the minimum conditions to trigger this specific error, that would be helpful too. And maybe filed as a separate issue.

Just published 2.1.1 which uses a prepublish script. Let me know whether that works.

Unfortunately, it's not working for me:
λ node proxy.js
module.js:338
    throw err;
          ^
Error: Cannot find module './lib/proxy'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (c:\xampp\htdocs\mms\node_modules\hoxy\index.js:6:13)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)

In proxy.js is only one line :
var hoxy = require('hoxy');

I'm using node v0.12.0.

@majdamarcin - Are you pulling directly from this repo, instead of from npm? If so, you'll need to run npm run compile before anything will work. If not, could you describe your setup so that I can try to replicate the issue?

Hmm. There was an error in the .npmignore file which is fixed in v2.2.3. Let me know whether that fixes this issue.

@greim I just installed version v2.2.3 and everything looks fine, thanks :clap:

I'm sorry for disinformation, but I just tried to write simple script:
var hoxy = require('hoxy');
var proxy = new hoxy.Proxy();

proxy.intercept({
    phase: 'response',
    url: '/api/v1/sample/',
    methdod: 'POST',
    mimeType: 'application/json',
    as: 'json'
}, function(req, resp) {
    console.log(resp.userProfile.roles);
});
proxy.listen(8001);

and unfortunately it's not working. I get an error:
*truncated*\node_modules\hoxy\lib\proxy.js:263
      _co2['default'].call(_this2, regeneratorRuntime.mark(function callee$3$0
                                   ^
ReferenceError: regeneratorRuntime is not defined
    at Server.<anonymous> (*truncated*\node_modules\hoxy\lib\proxy.js:263:36)
    at Server.emit (events.js:98:17)
    at HTTPParser.parser.onIncoming (http.js:2113:12)
    at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:122:23)
    at Socket.socket.ondata (http.js:1971:22)
    at TCP.onread (net.js:528:27)

I installed hoxy via npm, my configuration:
λ node -v
v0.10.36

λ cat package.json
{
  "name": "app",
  "version": "0.1.0",
  "devDependencies": {
    "bluebird": "^2.9.34",
    "chromedriver": "~2.8.0",
    "grunt": "~0.4.2",
    "grunt-contrib-clean": "~0.4.1",
    "grunt-contrib-compass": "~0.2.0",
    "grunt-contrib-concat": "~0.1.3",
    "grunt-contrib-copy": "~0.5.0",
    "grunt-contrib-jshint": "~0.3.0",
    "grunt-contrib-uglify": "~0.2.0",
    "grunt-contrib-watch": "~0.5.3",
    "grunt-contrib-yuidoc": "~0.4.0",
    "grunt-css": "~0.5.4",
    "grunt-ddescribe-iit": "0.0.6",
    "grunt-html2js": "~0.2.4",
    "grunt-hub": "~0.6.0",
    "grunt-karma": "~0.8.3",
    "grunt-protractor-runner": "^2.0.0",
    "grunt-remove-logging": "~0.1.1",
    "grunt-replace": "~0.4.2",
    "grunt-sass": "~0.4.0",
    "grunt-selenium-simple": "~0.1.1",
    "hoxy": "^2.2.3",
    "install": "^0.1.8",
    "jasmine-core": "^2.2.0",
    "jasmine-spec-reporter": "^1.1.2",
    "karma": "~0.12.19",
    "karma-chrome-launcher": "~0.1.4",
    "karma-firefox-launcher": "~0.1.3",
    "karma-html-reporter": "^0.2.6",
    "karma-jasmine": "^0.3.5",
    "karma-phantomjs-launcher": "~0.1.4",
    "karma-safari-launcher": "~0.1",
    "karma-verbose-reporter": "0.0.1",
    "moment": "^2.10.3",
    "npm": "^2.6.1",
    "phantomjs": "~1.9.7",
    "protractor": "^2.1.0",
    "protractor-html-screenshot-reporter": "0.0.19",
    "selenium": "~2.20.0",
    "underscore": "^1.8.3"
  }

@majdamarcin I had the same issue while using browserify.
You need the babel polyfill as described in the docs and in this stack overflow question.
Adding require('babel/polyfill'); fixed it for me.

@nerdbeere  thank you very much!
npm install babel --save-dev

and
require('babel/polyfill');

resolved my issues.

Thanks for the workaround @nerdbeere. I believe this is a bug in Hoxy and I'll have a fix ready to go soon. This is the first time I've published an npm module using babel so thanks for bearing with me.

Fix published in 2.2.4.


Vitest doesn't use mjs file and produce "SyntaxError: Cannot use import statement outside a module"

Describe the bug
I use third part UI lib: tencent-design-next, vite build and serve is ok, but fail in vitest.

What I did:
1、checking if there are .mjs and  module field in package.json of this package.(Yes, there are)

2、try add the following code to vite.confi.ts(produce error still).

Reproduction
reproduction url
https://stackblitz.com/github/sklme/vite-vue3-template/tree/vitest-error-reproduce?file=vite.config.ts
reproduction step
run vitest
System Info
System:
    OS: macOS 12.4
    CPU: (20) x64 Intel(R) Core(TM) i9-10910 CPU @ 3.60GHz
    Memory: 1.18 GB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.2.0 - ~/.nvm/versions/node/v18.2.0/bin/node
    Yarn: 1.22.15 - ~/.nvm/versions/node/v18.2.0/bin/yarn
    npm: 8.9.0 - ~/.nvm/versions/node/v18.2.0/bin/npm
  Browsers:
    Chrome: 103.0.5060.134
    Safari: 15.5
    Safari Technology Preview: 16.0
  npmPackages:
    @vitejs/plugin-vue: ^3.0.1 => 3.0.1
    vite: 3 => 3.0.2
    vitest: ^0.18.1 => 0.18.1

Used Package Manager
pnpm
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

Node.js doesn't support module field as resolving entry. Please, open an issue in your library to add exports field. More about that: https://github.com/sheremet-va/dual-packaging
In the meantime, you can do what the errors says you should do. You can also extend resolve.mainFields, and add module field yourself, but you other packages might fail (or they might not).


update dev tree for further development

For time's sake, I just deleted the dev branch (I inspected the 3 conflicting files, only insignificant changes).


[Bug] When ack receipts are enabled, no response is sent to the client if the topic has been unloaded or is being transferred

Search before asking

[X] I searched in the issues and found nothing similar.

Read release policy

[X] I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.

Version
any released version, master branch
Minimal reproduce step
This was found when analysing the source code, so no reproducer yet.
A test application that consumes and acks messages while a topic is being frequently unloaded will reproduce this issue.
What did you expect to see?
When ack receipt is enabled, the broker should respond with a failure when it discards an ack.
What did you see instead?
When the consumer isn't found, it's silently discarded. There's debug logging, but no ack receipt response logic to respond with an error:
https://github.com/apache/pulsar/blob/6c300f515dbf245620b14a844d9ff6215426e992/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/ServerCnx.java#L1982-L1988
and
https://github.com/apache/pulsar/blob/6c300f515dbf245620b14a844d9ff6215426e992/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/ServerCnx.java#L1952-L1960
Anything else?
No response
Are you willing to submit a PR?

[ ] I'm willing to submit a PR!

This is needed by "PIP-377: Automatic retry for failed acknowledgements", #23267 .


too restrictive "engines"

I think your package.json is a bit too restrictive about engines: I get warnings whereas it seems to work just fine with my version of node/npm.
Maybe you could make it a bit more loose?
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package<EMAIL_ADDRESS>npm WARN EBADENGINE   required: { node: '>= 18.12.1', npm: '>= 9.2.0' },
npm WARN EBADENGINE   current: { node: 'v16.18.0', npm: '8.19.2' }
npm WARN EBADENGINE }

Oops.., seems like I've made these changes in the wrong repo. 😅
Just published a new NPM version, thanks!


Support additional linux builds

As a part of #51 we had to revert #45. Let's get this functionality back in, test the release process, and publish the additional wheels. If we have to release a new patch version that's fine since dbt-core should pick that up automatically now.

resolved via #53


Add Support for .NET 4.5

Add support for .NET 4.5 so that we make use of the SpecEasy v2.0 improvements witout upgrading our projects and application environments to .NET 4.5.1.
The changes of note in this pull request are:

Created new solution and project build configurations to target .NET 4.5. The new configuration names are 'Debug 4.5' and 'Release 4.5'.
Change the name of the existing Debug and Release configurations to "Debug 4.5.1" and "Release 4.5.1", respectively. This was not necessary but I felt that it might be helpful to explicitly identify the target. I did not change the output path for these existing configurations in order to avoid the possibility of causing a problem if folks have references to those folders. They are still bin/Debug and bin/Release.
Updated the NuGet spec file, SpecEasy.nuspec, to create a new lib folder containing the .NET 4.5 version of the assembly, which will be referenced when SpecEasy is added to a project that targets .NET 4.5.
Created a batch file named build.nuget.bat that can be used to build both the 4.5 and 4.5.1 configurations and then generate the Nuget package with both versions.
Updated the version to <IP_ADDRESS>. @mmertsock and I felt that this was an appropriate version given the somewhat recent method under test exception handling changes.
Updated NUnit to v2.6.4.
Updated Dapper dot net to v1.3.8.

Note: I found out last week that we have already upgraded our app environments to 4.5.1. We have not yet retargeted our projects to 4.5.1 but could do so now. So, in the end, this wasn't necessary for us but I had already completed it so I thought I might as well push it in case it helps someone else. Plus, I think the changes related to supporting multiple framework releases in one Nuget package could prove helpful later.
Unrelated Change to Resolve Compiler Issue
There is an unrelated change in this pull request that I want to call attention to. While testing the 2.1 release using an existing project, I encountered the following compiler error.
CSC : error CS0010: Unexpected fatal error -- 'Not enough storage is available to process this command. '

Compiling from Visual Studio and watching the compiler task in Windows Explorer showed that its memory usage rose to 4 GB before failing with this error. When compiling from the command line, the memory usage rose to over 8 GB but the compile never completed. Through trial and error, I eventually tracked it to a particular test fixture that contains a Given.Verify nesting that is 15 levels deep. By decreasing the levels of nesting I was able to get the project to compile but the memory usage was still excessive - about 1.5 GB. Before referencing SpecEasy 2.1, the compiler would use around 200 MB, at most. So, I kept digging and eventually found that it was being caused by the new void Verify(Func<Task> addSpecs) method in IContext. Interestingly, even R# would go into an endless loop when attempting to find uses of that method. It turns out that nothing in the SpecEasy project was using that method and, when I remove it, the compiler issue disappeared. I don't understand why but I have a suspicion it has something to do with the compiler attempting to differentiate between that method and the overload that takes an Action.
Would someone that has fixtures testing async methods please compile and run with these changes to make sure I haven't broken anything?

@appakz ran a test of this PR using some existing projects that test async methods and didn't find any issues.

Sorry for taking so long to review. Looks good to me. Nice work.


Grammatical changes, removed commas before 'and'

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

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

Congrats @akash-more on your first pull request (PR)! 🎉
Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 📝


Error in running az vm generalize

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az vm generalize
Errors:
No module named '__builtin__'
Traceback (most recent call last):
python3/dist-packages/knack/cli.py, ln 206, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 528, in execute
    self.commands_loader.load_arguments(command)
azure/cli/core/__init__.py, ln 300, in load_arguments
    loader.load_arguments(command)  # this adds entries to the argument registries
cli/command_modules/vm/__init__.py, ln 31, in load_arguments
    from azure.cli.command_modules.vm._params import load_arguments
...
site-packages/antlr4/error/Errors.py, ln 5, in <module>
    from antlr4.atn.Transition import PredicateTransition
site-packages/antlr4/atn/Transition.py, ln 19, in <module>
    from __builtin__ import unicode
ModuleNotFoundError: No module named '__builtin__'

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az vm generalize -g {} -n {}

Expected Behavior
Environment Summary
Linux-5.4.0-29-generic-x86_64-with-glibc2.29
Python 3.8.2
Shell: zsh

azure-cli 2.0.81 *

Extensions:
interactive 0.4.4
azure-devops 0.17.0

Additional Context

The problem was solved by install
pip3 install antlr4-python3-runtime

Are you using the bundled Azure CLI of Ubuntu? The package is old and has some problems. Could you install the latest version and retry?
https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest


Mark CI tests as xfail if Hub HTTP error

In order to make testing more robust, we could mark tests as xfailed (instead of failed) when the Hub raises some temporary HTTP errors.
This PR marks tests as xfailed only if the Hub raises a 500 error for:

test_upstream_hub

More tests could also be marked if needed.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Adds support for custom object & array unmarshaler.

Problem
When the original library encountered a type which implemented Unmarshaler, it would not pass in the expected bytes that the custom unmarshaler required. Instead (at least in manual testing), it would pass in either nothing or a single byte, presumably because it was based on the index (last byte read) up until the current offset.
Solution
This PR implements readObject() and readArray() which reads up to the end of the given object or array respectively, and passes these bytes in to the Unmarshaler implementation.
Note: Sorry for duplicate PR; changed the source branch from master to its own one.

Thanks.


Fix #138

#List Of Changes

Fixed #138 by adding a condition in pausenmenu script so that only if esc button AND not space button clicked would the Pausenmenu be opened

Added condition when clicking the pauseButton to prevent it from opening the pausemenu


Description fields and markdown

Version: BookStack v0.24.1
I set editor to markdown.
The description fields (Shelves, Books and Chapters) do not support markdown, it means that  markdown is not formatted properly when is into "description" fields.
Is there are any way to format the descriptions?

Currently markdown within description fields is not supported. Descriptions are purposefully designed to be as simple as possible. Allowing advanced formatting would add a good bit of complexity. It may also make it less clear where actual content should be placed whereas, at the moment, it's clear content is held in pages.

I personally would very much enjoy to have the possibility to set simple text formats like bold, italic, underline and above all links within the description.


Add ToTokens for proc_macro::TokenStream

Fixes https://github.com/dtolnay/quote/issues/42

This obviously fails to build on 1.15.1, but it does build on stable. @dtolnay how do you want me to proceed? Put this behind a feature flag?

Could you say a bit about your use case that requires this impl? How is it that you have a proc_macro::TokenStream needing to be interpolated inside quote?

My current use case is improving error messages by utilising the Spanned trait. Instead of:-
let my_type = syn::parse::<T>(input).unwrap();

I would like to do:-
match syn::parse::<T>(input.clone()) {
    Ok(my_type) => {...}
    Err(_) => {
        input.span().unstable()
            .error("....")
            .emit();
    }
}

Currently, I work around this by first converting proc_macro::TokenStream to proc_macro2::TokenStream.

Is input here the whole input token stream of the macro, or just a part of it? If the whole token stream, I would recommend displaying errors on Span::call_site() instead.
proc_macro::Span::call_site()
    .error("....")
    .emit();

This will be formatted by the compiler in a way that indicates they apply to the whole macro invocation.

In my case, it is. Thanks for the tip! Perhaps @alexcrichton would also like to share why he wants this.

OK


[Compute] image builder - multiple udpates

Description

https://github.com/Azure/azure-cli/issues/12976
https://github.com/Azure/azure-cli/issues/12196

Upgrade API version to 2020-02-14

Add --identity to az image builder create
    --identity                     : List of user assigned identities (name or ID, space delimited)
                                     of the image template.

Add Windows Update Arguments to az image builder customizer add
Windows Update Arguments
    --filters                    : Space delimited filters to select updates to apply. Omit or
                                   specify empty array to use the default (no filter).
    --search-criteria            : Criteria to search updates. Omit or specify empty string to use
                                   the default (search all). Refer to above link for examples and
                                   detailed description of this field.
    --update-limit               : Maximum number of updates to apply at a time. Omit or specify 0
                                   to use the default (1000).

Add az image builder cancel
Testing Guide

Add a windows update customizer to an image template in the cli object cache.
az image builder customizer add -n mytemplate -g my-group --customizer-name win_update --type windows-update --search-criteria IsInstalled=0 --filters "exclude:$_.Title -like \'*Preview*\'" "include:$true" --update-limit 20 --defer

Cancel an image build.
az image builder cancel -n mytemplate -g my-group

History Notes

[Compute] az image builder: Upgrade API version to 2020-02-14
[Compute] az image builder create: Add --identity
[Compute] az image builder customizer add: Support Windows update customizer
[Compute] New command az image builder cancel

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR title and description has followed the guideline in Submitting Pull Requests.

[ ] I adhere to the Command Guidelines.

Compute

I don't think it is urgent to merge it before stable version of service is ready.

I don't think it is urgent to merge it before stable version of service is ready.
service GA support in Azure CLI around mid of May.

add test for it ?

I will.

udpates

Consider linking the PR to related issues.

You can link a pull request to an issue by using a supported keyword in the pull request's description.

close
closes
closed
fix
fixes
fixed
resolve
resolves
resolved

[Compute] az image builder: Upgrade API version to 2020-02-14
[Compute] az image builder create: Add --identity [for what?]
[Compute] az image builder customizer add: Support Windows update customizer
[Compute] New command az image builder cancel


Fix resolving paths to avoid duplicate targets

Fixes duplicate targets found whenever include paths have different relative paths.

Can someone please take a look at this? This fixes an issue that is causing errors on our project. Thanks 🙏

Hi @rgnns, does https://github.com/yonaskolb/XcodeGen/pull/1275 also solve this issue?

Hi @yonaskolb , just tested with this change and it does solve our issue. However, worth pointing out the time it takes to generate our project went up from ~35s to ~65s.


Avoid unnecessary full scans

This came up in #33. Right now, a preview/backup always triggers a full scan. It would save time to do a full scan initially, then just rescan the games that were found (plus any custom games). That should make backups almost as fast as restores.
We would still have to do a full scan after:

changing any roots
changing the "other" settings
relaunching Ludusavi

Theoretically, you could leave Ludusavi open for weeks and not have it pick up on newly installed games, but people probably won't have it running that long at a time, and if they did, they would be missing out on manifest updates anyway until they relaunched it.

Demo:


Add default implementations to the FlightSqlService trait

Which issue does this PR close?
Closes #4372
Rationale for this change
This trait is on the large side, and requires lots of boilerplate to implement. It would benefit from default implementations of all methods.
What changes are included in this PR?
Adds default implementations for all methods of  FlightSqlService so they now return Status::unimplemented  along with a description of " has no default implementation" following the wording in other methods that do have a default impl.
Are there any user-facing changes?

Make sense, need to fix Clippy

Thanks, should be done now.


Enrolment can easily get stuck

01| root.enrolment                   I0620 13:03:04.027460 cluster.go:113] Sealed configuration present. attempting to join cluster
01| root.enrolment                   I0620 13:03:04.027917 cluster_join.go:34] Joining an existing cluster.
01| root.enrolment                   I0620 13:03:04.027924 cluster_join.go:35]   Node Join public key: b20da7446fd4abb61815a30e71767d9bd7895e4358d4bbc3cc35398cf16e8676
01| root.enrolment                   I0620 13:03:04.027927 cluster_join.go:36]   Directory:
01| root.enrolment                   I0620 13:03:04.027938 cluster.go:263]     Addresses: <IP_ADDRESS>
01| supervisor                       E0620 13:03:04.031748 supervisor_processor.go:305] Runnable root.enrolment died: returned error when NODE_STATE_NEW: join call failed: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp <IP_ADDRESS>:7835: connect: network is unreachable"
01| supervisor                       I0620 13:03:04.032883 supervisor_processor.go:511] rescheduling supervised node root.enrolment with backoff 333.253767ms
01| supervisor                       E0620 13:03:04.366743 supervisor_processor.go:305] Runnable root.enrolment died: returned error when NODE_STATE_NEW: cannot restart cluster manager

This is a relatively big problem as if any of the number of networked calls in cluster_join.go fail, the node just gets completely stuck.

Fixed in https://review.monogon.dev/c/monogon/+/777


Best way to to get and display piece svgs outside of the chessboard?

Hello, newbie question.
I would like to build a website to play bughouse chess on and I would like to use react-chessboard for the ui. I need to implement a "pocket", which would hold pieces ready to be deployed by a player. to achieve that, I need svg graphics to represent them. however, I have no idea how to represent the SVGs nicely, besides copying the svg code directly from the browser and creating some sort of an array to hold these codes. Is there a "smart" way to do this?
Peace

For anyone wondering, src/chessboard/media/pieces.tsx is an object containing the svgs :)


subscribe/unsubscribe to all statuses

A way to subscribe and unsubscribe to all statuses at once

Good idea. But there are edge cases that may cause problems. These needs to be identified first.
For instance, if the assumption is that update on change is active for all statuses (uRt=0) then traffic data won't work correctly.

Yeah I think there could be several edge cases.
I was initially thinking the message would be useful mainly in development settings, but I understand that in Sweden you subscribe to all statuses of traffic light controllers, and in such cases it would probably be useful to be able to send a single message to subuscribe to everything.
Techically, traffic data does work with interval=0, it's just that it's often impractical to receive a message for every cyclist or car counted. But sometimes it could be useful.
We could allow setting the interval when subscribing to all statuses. But the issue seems to be that you want to use different intervals for different statues.
Maybe provide a default, and then settings for particular statuses?
Eg. default=60, S0201=60, S023=off

or initialize just support unsubscribing from all with a single short command. currently i see e.g. MobiMaestro sending a sequence of unsubscribe messages each time a tlc connects.

or initialize just support unsubscribing from all with a single short command. currently i see e.g. MobiMaestro sending a sequence of unsubscribe messages each time a tlc connects.

the main benefit would be to reduce bandwidth in cases where you want all data from a device. instead of sending a lot of different status messages, you send a single message.
so it's mainly related to performance, and to some degree to convenience.
for unsubscribring, it's about convenience, plus it makes it easier to ensure that you really unsubscribe to everything.


Adjust atto to updates in its build definition

https://github.com/tpolecat/atto/pull/56/files split up the tests
project in testsJVM and testsJS.

Testing here https://scala-ci.typesafe.com/job/scala-2.12.x-integrate-community-build/1699/console
This blocked the 2.12.3 release

Extraction passed, I'll abort the build above, merge this, and re-run the 2.12.3 release


CSS Styling

Needs some form of styling to make it look half decent

Minor CSS changes made to improve the aesthetics of the application


Multiple E-mail Accounts and Posting to Github

This issue is being copied from from a previous e-mail exchange:
"Thanks for your patience! In short, there should be a one-to-one relationship between each Github user account (a login) with one real-world person ("a human").  Users can then join one or more Organizations, again just like in the real world. I can be a NOAA employee, for example, (and thus a member of the NOAA organization), and also participate in projects unrelated to my NOAA work. GitHub will can automatically disambiguate the context of my actions, and reflects that context in all URLs.
If an NOAA employee already has a GitHub account, they should add their government email address to their account (by design, users can have multiple email address per account), and if they're already using Git, configure Git on their work computer to use that email for those repositories. If they're a new user, they should create a new account using their (individual) government email address.
Please let me know if this triggers additional questions. We are happy to help."

Approval 2:
"Login to the DOC Social Media Application Tracking System and apply for permission to create a Github account. You must register with your work email, which should be independent from any personal account you may have on Github."
The github organizations should have social media approval.
Developers already have a "github" account, but they should add their work email to the account, and any source code they check in should be checked in using their work email.  This is usually set in the git client.
Does each programmer need to get DOC Social media approval for their combined github identity? or is their Organization enough?


example scene cannot detect controller in Unity 5.6

Open unity 5.6.0f3
Create new project
Import steamVR plugin from asset store
Open example scene
Play game
Game cannot detect controller

I test in unity 5.5.0f3, it works. Maybe this is not my hardware problem.
Environment

unity version : unity 5.6.0f3
steamvr plugin : 1.2.1 (from unity asset store)

I found solution. I think that this is steam vr plugin's bug.
http://answers.unity3d.com/questions/1299567/vive-controllers-not-tracking-in-unity-560b3.html

https://github.com/ValveSoftware/steamvr_unity_plugin/issues/11#issuecomment-281595933


[feature req] some shake to find enhancement

Can we also have a shake to find and don't make the cursor bigger but
adding a zoom in the area (like hyprpicker )

Or atleast
like adding effect like slurp

in short like windows 👉👈 as an afterthought. 😁

I think these effects would certainly be cool to have, but I think they are out of scope for this plugin.
The current plugin only applies transformations to the mouse cursor (rotation, zoom, etc.) and does not render extra stuff (like these effects would). Things, like this zoom lens around the cursor, or the white overlay, would best be implemented as a separate layer surface, and not as a hyprland plugin.
That being said, I think your first suggestion, showing a lens like hyprpicker could easily be made scriptable. I could add IPC events to this plugin that fire when the zoom/shaking is activated and deactivated. Based on that one could start and kill a hyprpicker instance (I also think there is a hyprpicker fork which only does the zooming). Or one could then also increase the cursor_zoom for the whole monitor to zoom in onto the cursor.
Let me know what you think and whether that would be useful to you.

Thanks!
I saw now the implications and how this plugin works.
Given that, maybe we can have   command_when_shake = ,    timeout_before_commad =  and  timeout_after_commad =    (sorry for the long naming just to be clear)
So users can just build on top of these.  I really hope this plugin functionality be merged to main. 😁

Okay, I've now implemented IPC events for shake on main. I think these are more extensible and practical than the config options you described, as they can easily be used from any programming language.
The IPC events need to be enabled explicitly, because they sometimes spam the socket quite a bit. You can set plugin:dynamic-cursors:shake:ipc = true to enable them.
There are now the following events on the event socket:

shakestart: fired when a shake started
shakeupdate: fired on mouse move during a shake, also has four arguments: x,y,trail,diagonal

x, y: current mouse position
trail is the distance mouse has moved in the last second, and diagonal the diagonal of the boundingbox that movement was within. These are the values that are used to detect the zoom and their quotient (trail / diagonal) indicates how "hard" the shake is. This plugin uses these values to calculate the cursor size.

shakeend: fired when a shake ended

For an example how you could use this in bash, you can copy the snippet from the wiki page, and exchange the events and commands. In this case, hyprpicker is opened when the mouse is shaken, like in your first example:
#!/bin/sh

handle() {
  case $1 in
    shakestart*) hyprpicker & ;;
    shakeend*) pkill hyprpicker ;;
  esac
}

socat -U - UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock | while read -r line; do handle "$line"; done

I hope you can use these events for your stuff

Thank you this will suffice too!

@VirtCode thank you for this feature.  For some reason I'm often losing track of my cursor - especially in hyprland.  Your work is appreciated!

A quick heads-up those using the IPC events:
I've just updated the shaking behavior such that it feels more fluid. This also means that the IPC events have changed slightly (i.e. shakeupdate containing an additional value), which might break something when you update. Also, the events are now documented in the readme.


Can't connect to local server when there is no Internet

I have a server running in a virtual machine locally. Trying to connect to the sftp server I get a timeout if there is no Internet. The connection works using PuTTY, WinSCP or similar. As soon as Internet is available remote-ftp works again.

@alasjo Did you ever figure this out? Are you still having issues with this?

I have a server running in a virtual machine locally.

Which VM software and what kind of network did you setup (examples in screenshot)?
Are your certain your network connections are setup properly between the host and vm?
Can you ping your VM's IP address using its local IP address? You say putty works but what address are you using?

screenshot from vmware


Issue #692: Removed dead link

I removed the entire line with an example to a project that no longer exists. Perhaps a sample project can be added back in once an existing one can be found.

@annebelleo : Thanks for your contribution! The author, @gregvanl, has been notified to review your proposed change.

#sign-off


Add Proposal Template

See https://github.com/golang/proposal/blob/master/design/TEMPLATE.md

I want to distinguish API change proposals from feature requests

Codecov Report

Merging #523 (950568f) into main (303d0a3) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 950568f differs from pull request most recent head 8d3053c. Consider uploading reports for the commit 8d3053c to get more accurate results

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #523   +/-   ##
=======================================
  Coverage   72.69%   72.69%
=======================================
  Files          36       36
  Lines         736      736
  Branches      163      163
=======================================
  Hits          535      535
  Misses        116      116
  Partials       85       85


Setting ppEnabledExtensionNames on DeviceCreateInfo causes crash

VkDeviceCreateInfo logicalDeviceInfo = VkDeviceCreateInfo.calloc().sType(VK11.VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO).pNext(MemoryUtil.NULL).pQueueCreateInfos(queueInfo).ppEnabledExtensionNames(MemoryUtil.memAllocPointer(64).put(0, MemoryUtil.memASCII(KHRSwapchain.VK_KHR_SWAPCHAIN_EXTENSION_NAME)));

Whenever the above code is run, this error happens:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007fffd34d8f30, pid=544, tid=15460
#
# JRE version: Java(TM) SE Runtime Environment (14.0+36) (build 14+36-1461)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (14+36-1461, mixed mode, sharing, tiered, compressed oops, g1 gc, windows-amd64)
# Problematic frame:
# C  [vulkan-1.dll+0x38f30]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# D:\Eclipse\Workspace\LWJGLVulkanTest\hs_err_pid544.log
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

After some debugging, I've found that when ppEnabledExtensionNames is removed, it runs normally
Anyone know why this is the case?

Edit: I fixed the problem, if anyone else has the same problem, the issue is in this line:
'''
MemoryUtil.memAllocPointer(64).put(0, MemoryUtil.memASCII(KHRSwapchain.VK_KHR_SWAPCHAIN_EXTENSION_NAME))
'''


dock and controller logic. After formatting

What this PR does / why we need it:
Access Api dock and controller logic.
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Special notes for your reviewer:
Release note:

Coverage decreased (-0.2%) to 28.05% when pulling c70329c6ec520fdf18b0007be190d38f001527b1 on PravinRanjan10:development into 1e57a98e9bb4418e403cd9af3258351d3727cf1b on opensds:development.

Please update your code.


fix buffer overrun

The call of memcpy() in agurim.c:file_parse() will cause a buffer
overrun bug.

Merged. Thanks!


docusaurus-theme-classic > Heading's className prop does nothing

Have you read the Contributing Guidelines on issues?

[X] I have read the Contributing Guidelines on issues.

Prerequisites

[X] I'm using the latest version of Docusaurus.
[X] I have tried the npm run clear or yarn clear command.
[X] I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
[X] I have tried creating a repro with https://new.docusaurus.io.
[X] I have read the console error message carefully (if applicable).

Description
The <Heading> component in docusaurus-theme-classic can be given a className prop:
<Heading as="h2" className="something">Hi!</Heading>

However, the component's manual className=clsx(...) prop ignores props.className:
https://github.com/facebook/docusaurus/blob/7ffa9f7689a925e61dc63a153cd64af06dbe79e2/packages/docusaurus-theme-classic/src/theme/Heading/index.tsx#L26-L33
This means any className added in user-land is ignored.
Reproducible demo
https://github.com/typescript-eslint/typescript-eslint/pull/5951/files#diff-3b034ddb6525c7b93f97ced8a696c78c1837f072b9d1e70c46049675e0e09bf4R112-R116
Steps to reproduce

Checkout that PR -> yarn -> yarn start
Change  ... to ...
Observe that the site page does not center the heading text

Expected behavior
The className should be added to the clsx in Heading.
Actual behavior
The className is ignored.
Your environment

Public source code: https://github.com/typescript-eslint/typescript-eslint
Public site URL: https://typescript-eslint.io
Docusaurus version used: 2.2.0, but the code isn't changed in latest main
Environment name and version (e.g. Chrome 89, Node.js 16.4): Chrome 107, Node 16.18
Operating system and version (e.g. Ubuntu 20.04.2 LTS): macOS Monterey

Self-service

[X] I'd be willing to fix this bug myself.

👍 ok to forward the Heading className prop
Good first issue for anyone willing to contribute - please submit a PR directly, and do not claim the issue

Note historically most components did not forward className in our theme, and it's an ongoing effort to add className forwarding everywhere it makes sense (and maybe later forwarding refs? although it's a more niche use-case).
For example, it's always useful when wrapping components:
function HeadingWrapper(props) {
  return <Heading {...props} className={clsx("my-custom-className", props.className)}/>
}


[Suggestion]: Adding a Scroll-To-top Button .

Summary
Please add a "Scroll to Top" button to improve user experience. The button should appear after scrolling down and allow users to quickly return to the top of the page.
Page
No response
Details
I would like to request the addition of a "Scroll to Top" button to the website. This feature would enhance the user experience by allowing users to quickly navigate back to the top of the page without needing to manually scroll up, especially on longer pages.
-->Expected Behavior:

A button should appear at the bottom right (or another appropriate location) of the screen after the user has scrolled down a certain distance.

2.Clicking the button should smoothly scroll the user back to the top of the page.
3.The button should have a user-friendly design that fits well with the website's overall theme.
-->Benefits:
1.Improves user navigation and accessibility.
2.Enhances overall user experience, especially for pages with extensive content.
-->Additional Context:
This feature is commonly seen on many modern websites and is appreciated by users for its convenience.

i want to try this


Run the Materialized View with CONCURRENTLY Option

Follow the details on this link for the discord discussion: https://discord.com/channels/679428761438912522/1235061511152603226/1247479598690729984
We need to add the CONCURRENTLY option whenever we call the Materialized View, so that we are able to query the DB with SELECT while the Materialized View is refreshing.
As Normal refreshing will cause the DB to block all SELECT Queries.
More info here: https://www.postgresqltutorial.com/postgresql-views/postgresql-materialized-views

I donated to this project https://staging.giveth.io/project/abcdhgjkk?tab=donations and I expected that the estimated matching be changed to $48 but it wasn't changed and there is no estimated matching for this project
@CarlosQ96

@CarlosQ96 Can you confirm if the work on this after merging this PR: https://github.com/Giveth/impact-graph/pull/1611 was successful??

@mhmdksh moved to qa, migrations ran and tables are refreshing.
@RamRamez will decrease the refresh rate of the estimated matching view table and that should be it.

I donated to this project https://staging.giveth.io/project/abcdhgjkk?tab=donations and I expected that the estimated matching be changed to $48 but it wasn't changed and there is no estimated matching for this project @CarlosQ96

I've checked again, now the estimated matching has been shown but as you see in below pic
This project has a donation in a round but in the right box in qf round donation tab, "Be the first to give!" is shown

@CarlosQ96

[ ] I see some strange behavior on stg

I created new round

I added projects to this round

I haven't donated to these project yet

but in qf round donation tab , there is a donation amount for this round
https://staging.giveth.io/project/mejan?tab=donations

https://staging.giveth.io/project/how-many-photos-is-too-many-photos?tab=donations

This project has a donation in a round but in the right box in qf round donation tab, "Be the first to give!" is shown

[ ]

It seems this problem hasn't been fixed completely
Please take a look on below screen record @CarlosQ96 @RamRamez
Number of contributor and total donation in the round should be shown 2 unique donor and 31$ like as total donations
https://github.com/Giveth/impact-graph/assets/111529185/f0a18f36-3411-4cea-82cd-7bf749705177

[ ] 3- when the round is over, the amount of donation and estimated matching is removed from QF donation round tab

@maryjaf No.1 and No.3 are fixed.
For No.2 please note that in the table we don't show recurring donations but we count them in the total USD value and unique donors

1- I see some strange behavior on stg
I created new round
I added projects to this round
I haven't donated to these project yet
but in qf round donation tab , there is a donation amount for project this round

It hasn't been fixed @RamRamez

@maryjaf that project had some old data in total donations column, if you add project to a new QF round or if you donate, old data will be deleted, I just donated to that projects and stats updated correctly.

@CarlosQ96 @Rolazo @maryjaf Is the progress on this final?? Can you provide the latest update on this??

@mhmdksh It's only on staging now because @maryjaf is not finished yet with testing. It will be on production on next release.


Status Indicators for Helm Releases

It will be nice to see status indicators (Failed/Deployed) for Helm Releases.
Example of WIP Approach:

Closed via. #318


Do not HTML-encoded the avatar URL

Since the ampersand was encoded as an HTML entity, Crafatar did not recognize the overlay parameter.

:+1:


Update main.yml

Fixing "Destination directory /etc/zabbix/web does not exist" message. On Debian 8 system.

Hi @cognoscibilis
CI complains about trailing spaces on line 76. Can you please take a look and fix?
Thanks!

Thanks!


Error Handling: allow registering OnError systems

Systems can fail. The user should be able to register OnError systems to handle a given error without aborting a full world dispatch

Blocked by #3 since this is further development of that feature


Move to the Stolostron Quay and GitHub orgs

Signed-off-by: Stephen Kitt<EMAIL_ADDRESS>

/cherrypick release-2.3


remove 1.14 proxy checks

[ ] Ambient
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure

@ramaraochavali: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

unit-tests-arm64_istio
61539d76990279b12a11643971084e9f15e12ed5
link
true
/test unit-tests-arm64

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@ramaraochavali: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

unit-tests-arm64_istio
61539d76990279b12a11643971084e9f15e12ed5
link
true
/test unit-tests-arm64

lint_istio
61539d76990279b12a11643971084e9f15e12ed5
link
true
/test lint

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@ramaraochavali: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

unit-tests-arm64_istio
61539d76990279b12a11643971084e9f15e12ed5
link
true
/test unit-tests-arm64

lint_istio
61539d76990279b12a11643971084e9f15e12ed5
link
true
/test lint

unit-tests_istio
61539d76990279b12a11643971084e9f15e12ed5
link
true
/test unit-tests

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@ramaraochavali: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-security_istio
4816071c25f30edcb1f680949fb462c5741063ca
link
true
/test integ-security

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@ramaraochavali: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-security_istio
4816071c25f30edcb1f680949fb462c5741063ca
link
true
/test integ-security

integ-security-istiodremote_istio
4816071c25f30edcb1f680949fb462c5741063ca
link
true
/test integ-security-istiodremote

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@ramaraochavali: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-security_istio
4816071c25f30edcb1f680949fb462c5741063ca
link
true
/test integ-security

integ-security-istiodremote_istio
4816071c25f30edcb1f680949fb462c5741063ca
link
true
/test integ-security-istiodremote

integ-security-multicluster_istio
4816071c25f30edcb1f680949fb462c5741063ca
link
true
/test integ-security-multicluster

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

PR needs rebase.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.


Improve logs v3

Moves the entire try - catch into a separate generic method. Writes down the switch statement in the ExecuteAsync in a concise manner and adds necessary constructors that are used in ReportInputAndUpdateActivityAsync method. To the import classes added methods WithSession, WithOptions, WithSetReader, to use in case these values are not set by a contructor.

Why are File and Activity two separate classes/tables? Is there a reason to prefer this design better than the simpler approach of having only one class with both info? In the presentation of this feature you anyway merged the information.
(I am not asking about feasibility, technicalities of which implementation might be coded. I am referring to the chosen code design.)

Why are File and Activity two separate classes/tables? Is there a reason to prefer this design better than the simpler approach of having only one class with both info? In the presentation of this feature you anyway merged the information. (I am not asking about feasibility, technicalities of which implementation might be coded. I am referring to the chosen code design.)

I would say, there is a reason. Those are two conceptually different object, and I would not merge them in the DB. First, activity might or might not come with a file. In fact, there can be 4 different objects that are imported: Files, Strings, Streams and DataSets. As you see, all of them populate 4 different tables, they have different properties that characterize them, therefore damping them all into one table would just be a mess, and this actually defines the hierarchy of the abstraction layers in the file. In the presentation I showed the merger of these tables because this is what the client wanted in this particular case, but this infrastructure is supposed to tackle a much wider range of activities, therefore the split into different tables.

the extension methods WithActivityLog require every time the ISessionVariable, IDataSource, and IDataSetImportVariable to be provided. This makes the API lengthy and repetitive. I recommend to:

take dataSource from the builder,

@amuolo , this is not possible, because this property of the builder is private protected, and no suitable public method exists to fetch it out. This issue was discussed with the developers team, there are reasons  why it is not public and they are very reluctant of opening it for public use.

Why are File and Activity two separate classes/tables? Is there a reason to prefer this design better than the simpler approach of having only one class with both info? In the presentation of this feature you anyway merged the information. (I am not asking about feasibility, technicalities of which implementation might be coded. I am referring to the chosen code design.)

@amuolo I would say, there is a reason. Those are two conceptually different object, and I would not merge them in the DB. First, activity might or might not come with a file. In fact, there can be 4 different objects that are imported: Files, Strings, Streams and DataSets. As you see, all of them populate 4 different tables, they have different properties that characterize them, therefore damping them all into one table would just be a mess, and this actually defines the hierarchy of the abstraction layers in the file. In the presentation I showed the merger of these tables because this is what the client wanted in this particular case, but this infrastructure is supposed to tackle a much wider range of activities, therefore the split into different tables.

Ok I see. Then I agree with you, better to keep the classes separate.

the extension methods WithActivityLog require every time the ISessionVariable, IDataSource, and IDataSetImportVariable to be provided. This makes the API lengthy and repetitive. I recommend to:

take dataSource from the builder,

@amuolo , this is not possible, because this property of the builder is private protected, and no suitable public method exists to fetch it out. This issue was discussed with the developers team, there are reasons why it is not public and they are very reluctant of opening it for public use.

What we can do at this point is to use static properties and assign to them the global variables Session, DataSource and DataSetReader. In this way we can improve the API.

the extension methods WithActivityLog require every time the ISessionVariable, IDataSource, and IDataSetImportVariable to be provided. This makes the API lengthy and repetitive. I recommend to:

take dataSource from the builder,
move the session and the importVariable to static properties of the newly defined ImportBuilderWriter and ExportBuilderWriter classes. At the end of this notebook, these properties will be assigned to Session and DataSetReader, respectively.

I agree that this is a better solution, and in fact much better in the long term than we have right now. This would lead to a minor change in API, something that was discouraged at this point, but I think that we can still do it. @dcolleoni , do you agree we can still afford ourselves a minor API change here?

@andrey-katz-systemorph  pls create a new issue with the improvement previously suggested by Daniel and those arising from your discussion with @amuolo. Assign release 1.1.x to the new issue.
The issue #167 is meant for release 1.1.0 and it is completed with the scope required by that release.
Thanks.


Keyboard backlight patch

Posting here for broader visibility. I've got a patch written with @PJungkamp's help to get the keyboard backlight patch working. I've tested it on my 14ARB7, but that behaves slightly differently.
What I'm looking is for anyone with a modern Yoga laptop, where the keyboard has off / low / high / auto modes, to test my kernel patch on their system. /sys/class/leds/platform::kbd_backlight/brightness should report the current brightness (0->2), and writing 0->2 to it should set the brightness accordingly.
Patch: v5-0001-platform-x86-ideapad-laptop-Add-support-for-keyboard.patch.txt
If someone can verify it works for keyboard backlights with an auto mode, I'll send it upstream, hopefully in time for Linux 6.6.
Thanks!

Tested on another issue


make modal styles customizable

make modal styles customizable, so it can adjust for different occations
ex:

Hi thank you for this PR. It is a convenient feature.
Just one thing to ask. In NeatDatePicker.js line 187, I think style={[styles.modal, modalStyle]} is better than style={[modalStyle, styles.modal]}. Otherwise the custom style won't overwrite the default one.
Feel free to let me know your opinion. If you agree, please update this PR and I'll merge it.

ahh okay sure,
looks good to me
👍


ArrayFire event handling

Will event handlers, like mouse click, mouse drag, scrolling, etc. be integrated to ArrayFire?

@CsatiZoltan Though, they are not available, we definitely have a plan for them in future.


Reply with null to shutdown request

The LSP spec says the result of shutdown is null, not an empty object.
Fixes #1733
rdar://137886488

@swift-ci Please test


Make the repository name more descriptive.

Given that this repo is now (mainly) an express middleware(s), it's my belief that avatars-middleware or avatars-api-middleware would be more informative than the current repo name.

avatars-api-middleware maybe


Involves a significant reduction in baseline performance?

We have evaluated the performacne of FastV on LLaVA-1.5-7B, and we find that the true results are significantly higher than the results reported in your paper.
Specifically, we set this line in the official repo of FastV to K=2, ratio = 0.25 (i.e., keep 576*0.25=144 tokens), and we observed the results below:

Token number
VQAv2
SQA

True FastV (using official code)
144
74.06
69.06

FastV in your paper
128
61.8
67.3

SparseVLM
128
73.8
69.1

You seem to have significantly depressed the FastV results?

Thanks for your resopnse! we use T = {(L1-L0) * T0 + (L2-L1) * T1} / L2 to calculate the equivalent token, and the detailed process as follows:
T = (576 * 2 + 144 * 30) / 32 = 171 when we set K=2, ratio = 0.25.
And the results as follows:

Token number
VQAv2
GQA
SQA

True FastV (using official code)
171
74.06
56.58
69.06

FastV in your paper
192
67.1
52.7
67.3

SparseVLM
192
75.6
57.6
69.1

Can you provide the detailed setting you used?

@ylnxxts In this line in the official repo of FastV, R = 0.25 means keep 25% tokens, equivalent to ''R = 0.75'' in FastV paper.


Process Notification

The following Component is ready for Review: https://www.figma.com/file/xZ0IW0MJO0vnFicmrHiKaY/Components-Post?type=design&node-id=156%3A232&mode=design&t=BjFqk8eUHLI0mxvf-1

Ready for Review.

Closing as won't do


Update places to find support

I found the Slack first, where the welcome bot says to ask in #help:

However, the #help channel is archived, with a message saying, go to the forum:

Then I was browsing the forum, and a post I came across says to go to GitHub discussions for help?

Is there a list somewhere of which area is appropriate for which questions/discussions?

Thanks for letting us know! We've updated the personal Slack welcome message.
We'll also soon have better guidance within the forum so that people can learn about our support channels more easily before they create a new topic.


Make it possible to use as command

This make it possible to use as twint command. It will be more useful.

Is this cross-platform?

I used scripts keyword in setuptools for using as command. It will work in cross-platform.

Thanks @tkmru! This is a good idea. Can you make changes to Twint.py and setup.py so we're using entry_points instead of scripts?

Twint.py is not included in twint package, I think it is difficult to specify entry_points. Is not it good to use scripts?

@haccer I moved Twint.py into the package, changed to use entry_points instead of scripts.

Alright, I will probably won’t be available to verify this until next Sunday.
@pielco11, before merging can you make sure the behavior works as intended. Thanks.

It seems to be working as command but not via CLI since main() is not called.
I did not try with other OS than Ubuntu, yet.

sorry.
But is it necessary to use it as a single script from the CLI? It can be used as a command.
twint package is imported in twint.py, it is difficult to solve the path dependency.
If you want to be compatible with both being usable as a command and working as a standalone script, it is better to move twint.py outside twint directory and use scripts instead of entry_points.

A little change that me and another member were talking about is: why not use some imports in twint/twint.py instead of importing the entire module? It's more "package-consistent". Plus importing the entire module will import twint.py itself, which is not needed.
Also we propose to change twint/twint.py to twint/cli.py to make the name more consistent
Plus this needs to be changed as well
https://github.com/twintproject/twint/blob/ea8b6780f4ee8ae8512cd42c3893d4bb3816c1a0/twint/twint.py#L111
twint instead of Twint.py since the first will be the entry-point

I had fun testing this. I think this is fine to Squash and merge. Thoughts @pielco11?

Thank you @tkmru!

The error message is wrong when you run it through the CLI, FYI.
vanalsti@~$ twint -s "Donald Trump" --verified --users
usage: python3 twint [options]
twint: error: unrecognized arguments: --users

Not sure why --users isn't recognized since it's in the examples, but it really shouldn't be telling me to use "python3 twint".

The error message is correct, --users does not exist. The arguments available for user(s) are: --username, --userlist and --user-id
-------- Messaggio originale --------
On 20 Nov 2018, 18:07, Jeffrey D. Van Alstine ha scritto:

The error message is wrong when you run it through the CLI, FYI.
vanalsti@~$ twint -s "Donald Trump" --verified --users
usage: python3 twint [options]
twint: error: unrecognized arguments: --users
Not sure why --users isn't recognized since it's in the examples, but it really shouldn't be telling me to use "python3 twint".
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

I opened a new issue to deal with the users flag, since I don't want to derail this on.
Still twint CLI shouldn't be telling users to user python3 twint.


⚠ Carbubu has degraded performance

In d2c0942, Carbubu (https://carbubu.fr) experienced degraded performance:

HTTP code: 200
Response time: 3141 ms

Resolved: Carbubu performance has improved in 05e3b33 after 7 minutes.


Feature table maxHeight (#1560)

Addressed #1560

[x] Make sure you follow Element's Contributing Guide.
[x] Make sure you are merging your commits to dev branch.
[x] Rebase before creating a PR to keep commit history clear.
[x] Add some descriptions and refer relative issues for you PR.

@QingWei-Li Any thoughts on this?

@HashemQolami Thanks. We'll look into this tomorrow.


network.config.defaultShopConfig has garbled data in prod

Using backend/scripts/configCli.js in prod shows that network.config.defaultShopConfig contains incorrectly encoded data.
Here is a sample:
{ '0': '{',
  '1': '\n',
  '2': ' ',
  '3': ' ',
  '4': '"',
  '5': 'w',
  '6': 'e',
  '7': 'b',
  '8': '3',
  '9': 'P',
  '10': 'k',
  '11': '"',
  '12': ':',
  '13': ' ',
  '14': '"',
  '15': '0',
  '16': 'x',

Currently defaultShopConfig is not used (all values are empty), so there is zero impact on prod dshops.
But it may be handy in the future so we should still fix.
Lowering to P2.

@shahthepro Merged a fix in master. Will verify in prod. Closing for now.


fix: account module

Scope
Work Done
Steps to Test
Screenshots

@gsSuper 1 test failed and swimm docs needs a review


Corrected typos in Server profile

Fixed #54 - Corrected typos in Server profile

Approved at Nov 7 meeting


Issue with Seeding method in stress lines

Error when using seeding method 2: "1. Solution exception:Object reference not set to an instance of an object."

I've mothballed the farthest point seeding method for the moment as the current library I'm using for the delauney triangulation is not stable and will also not work for curved meshes in any case. In the future I should look into the following:

https://discourse.mcneel.com/t/3d-delaunay/126194
https://designengrlab.github.io/MIConvexHull/
https://doc.cgal.org/latest/Alpha_shapes_3/index.html


PR: Added disambiguation functionality for Editor tabs

Fixes #3160
Fixes #2907
Edit: Include reference to related issue about tabs titles

Now the editor tabs show a title that disambiguates files with the same name:

This is so nice!! I wanted this for a long time!
@goanpeca, what do you think about the design? We followed the same one as Sublime :-)

@dalthviz, I'd like to see this one finished (or at least ready for reviewing) before this Friday :-)

@dalthviz, you need to merge your PR with master to fix the errors in Travis.

Some of the test you introduced are failing on Travis (i.e. Linux). Please review them.

@dalthviz, how the file switcher works with this change? Could you post a screenshot of it?

The titles of the files in the file switcher will be the same as in the tabs. Some screenshots with different combinations:

That's what I was expecting: almost the same information is present in the tab's title and flie switcher's second row of each entry.
So we need to remove from the tabs title the disambiguation text when showing it in the file switcher. Please also do that as part of this PR :-)

This is the way the file switcher and titles in tabs will be shown:

A preview in Windows:

A preview in Linux:

Thanks @dalthviz for keep working on this! There's a simple style fix reported in CircleCI.
Also, please don't forget to merge with 3.x to fix the problems we were seeing yesterday in CircleCI :-)

This is great!! The use case we talked about is working now the same as in Sublime

But there's some work to do for this one:

In this case, your algorithm is not detecting carlos as the parent of widgets/editor.py and plugins/editor.py.
Please fix it :-)

I left one last comment to fix the error reported by pydocstyle, and then I merge :-)

All green now!! Thanks a lot @dalthviz!
This is a great addition :-)


cleanup main module

extract index module  logic to vitepress module

closed via https://github.com/userquin/vite-pwa-vitepress-integration/commit/a7498b8e6af18e762e85228873fbc01096de21a5

closed via https://github.com/userquin/vite-pwa-vitepress-integration/commit/a7498b8e6af18e762e85228873fbc01096de21a5


[WIP] allow extra args to be passed to mkExt4Fs

Motivation for this change
Saving time when building RaspberryPI images using binfmt. Solves https://github.com/NixOS/nixpkgs/issues/151359 for me, but surely needs refinement.
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[x] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

superseded by https://github.com/NixOS/nixpkgs/pull/151633


Changed recommended to permissionPlugin to LuckPerms

This is to reflect the recommendation done on the wiki and on Discord

Already changed this in a previous commit but thanks!


Load groovry scripts from a file instead of string

@abhinavGupta16 Alternatively, would it be better to maybe write the groovy code as a groovy file and import it?
Values can then later be replaced as variables from the props. This would make the groovy code more readable and IDEs would also be able to parse it to verify for errors etc

I did think about that, about using InitFile.fromAsset but how would we change the values once the file is created in the ec2 or even before it? These files contain dynamic values like SG, subnet ids, etc. How should we replace that?
Will look into it if we can use Cfn:Fn:sub like I used it here
Originally posted by @gaiksaya in https://github.com/opensearch-project/opensearch-ci/issues/39#issuecomment-964352609

Closing this issue as groovy scripts are not used anymore. We are using configuration as code now.
Thanks!


Syntax highlighting broken on visual studio 2017 2.8RC

TypeScript Version:  2.8RC (Visual Studio 2017)
Works fine in Version 2.8.0-dev.20180308 (Visual Studio Code)

Search Terms:
Syntax Highlighting.
Code

Expected behavior:
Correct highlighting.
Actual behavior:
Most highlighting is broken for the rest of the file.
Type names, interface names and module names are the only things that highlight correctly (didn't check classes).
All newly added code doesn't highlight (except for type names, interface names, module names and possibly class names).

Additionally, some operators seem to be not highlighting at all:

I don't have any typescript-related extensions installed that could be affecting this.

I restarted and it fixed itself (sorry!). Maybe close this issue?


⚠ AGEG website (redirect) has degraded performance

In a42d0e9, AGEG website (redirect) (https://ageg.ca/) experienced degraded performance:

HTTP code: 200
Response time: 4239 ms

Resolved: AGEG website (redirect) performance has improved in 8e64d03.


add aliases

i would like to see aliases which are just another name for the exact same transition.

Hi @julianhille. That's an interesting idea but not one we've heard that is in high demand. We are trying to keep the library fairly simple and I don't think a lot of people would necessarily have that need, although I can definitely see some uses. Can you provide an example of what you are looking for and how you want to use it.

I've got some fairly complex logic behind some of my transitions. But this specific state has a specific name called "new_data_received" all this logic now is also needed at a another transition which has nothing in common with the old one in case of naming or the cause of the transition only the result/logic is the same.
At first i thought about doing just a copy of that transition and give it another name and call internally another function, but then i would have had to copy also a huge amount of unit tests. These are testing the set up of these transition, so this wasn't an option (don't add tests wasn't one either).
Aliases didn't exist and so i just added a function to my state machine which calls the other transition but that will lead to a "wrong" log entries.
so i thought this would be best implemented as a list of aliases possible to configure at the level of a transition.

My feeling is that it's not something we would want to support in the main code. If you write it up and do a pull-request we could look into it further but doesn't seem like it would be used frequently. @tyarkoni @aleneum ?

I don't really like the idea of adding functionality for this specific use case to core.py. I think what you want to do can probably be done fairly easily by just copying the old transition to a dummy new one. Something like this should work:
from copy import copy
from transitions import machine

class Model(object): pass

lump = Model()
m = Machine(lump, states=['A', 'B', 'C'], initial='A')
m.add_transition('move', 'A', 'B')
m.add_transition('also_move', 'A', 'C')

# Copy the
old_transition = m.events['move'].transitions['A']
m.events['also_move'].transitions['A'] = copy(old_transition)

# Should print 'B' rather than 'C'
lump.also_move()

I haven't extensively tested the above, but I don't think the replacement should have any side effects.
If the above code works without any problems, we could consider creating a new utils module and adding the above code there as alias_transition() or something like that. Given that the aliasing can be done in two lines of code, I'm not sure it's worth it, except perhaps insofar as it alleviates the need to understand the internal Model --> Events --> Transitions structure.

Maybe one could add a method to the model:
class Model(object):
    def add_alias(self, alias, target):
        if not hasattr(self, target):
            raise ValueError('Model does not contain target method %s' % target)
        elif hasattr(self, alias):
            raise ValueError('Model already contains method with name %s' % alias)
        else:
            setattr(self, alias, getattr(self, target))

Can be used like this:
model = Model()
states = ['stopped', 'walking']
transitions = [
    ['walk', 'stopped', 'walking'],
    ['stop', 'walking', 'stopped']
]
machine = Machine(model, states=states, transitions=transitions, initial='stopped')
print model.state # >>> stopped
model.walk()
print model.state # >>> walking
model.add_alias('stroll', 'walk')
model.add_alias('pause', 'stop')
model.pause()
print model.state # >>> stopped
model.stroll()
print model.state # >>> walking
# model.add_alias('stop', 'walk') # >>> ... ValueError: Model already contains method with name stop
model.add_alias('patrol', 'stroll')
# model.add_alias('escort', 'travel') # >>> ValueError: Model does not contain target method travel

That's a better solution. And we could still potentially add a helper method in a utils module, saving users from having to write their own add_alias method. It would be identical to your version but take the model instance as the first argument.

@julianhille Would the above solution work in your case?

That would depend on what is logged if this happens:
model.pause()
print model.state # >>> stopped

but that looks fairly simple and usable to me.

Good point,
in this case it gets a bit more messy:
class Model(object):
        ...
        else:
            target_func = getattr(self, target)
            def alias_func(*args, **kwargs):
                logger.info("Calling alias %s for trigger %s" % (alias, target))
                target_func(*args,  **kwargs)
            setattr(self, alias, alias_func)

Output would be something like:
MacBook-Pro-3:transitions alneuman$ python aliastest.py
...
walking
INFO:__main__:Calling alias pause for trigger stop
INFO:transitions.core:Initiating transition from state walking to state stopped...
INFO:transitions.core:Exited state walking
INFO:transitions.core:Entered state stopped
stopped
INFO:__main__:Calling alias stroll for trigger walk
INFO:transitions.core:Initiating transition from state stopped to state walking...
INFO:transitions.core:Exited state stopped
INFO:transitions.core:Entered state walking
walking

I will close this for now since it seems like a reasonable solution have been found. Feel free to reopen this issue if you have more feedback.


missing types

there is missing types ice bug ghost dark steel and some pokemon have only one type for e.g ganger should be poison and ghost but he is only poison

pls tell me how do i add the missing types
On Wed, 10 Mar 2021 at 20:17, Alessandro Pezzè @.***>
wrote:

Hi, we have all the types you just stated: https://pokeapi.co/api/v2/type/
About the pokemon, probably they changed type when a new release came out.
Can you give us a list of wrong-type pokemon and their actual types?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/PokeAPI/pokedex/issues/36#issuecomment-796029445, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ATFS27AHA5AWSNENIR5DTP3TC7HWXANCNFSM4Y6Y3FGQ
.

and some pictures are not loading [image: image.png]
On Thu, 11 Mar 2021 at 17:11, Ksingh_Gaming @.***>
wrote:

pls tell me how do i add the missing types
On Wed, 10 Mar 2021 at 20:17, Alessandro Pezzè @.***>
wrote:

Hi, we have all the types you just stated:
https://pokeapi.co/api/v2/type/
About the pokemon, probably they changed type when a new release came
out. Can you give us a list of wrong-type pokemon and their actual types?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/PokeAPI/pokedex/issues/36#issuecomment-796029445,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ATFS27AHA5AWSNENIR5DTP3TC7HWXANCNFSM4Y6Y3FGQ
.

pls tell me how do i add the missing types
…
On Wed, 10 Mar 2021 at 20:17, Alessandro Pezzè @.***> wrote: Hi, we have all the types you just stated: pokeapi.co/api/v2/type About the pokemon, probably they changed type when a new release came out. Can you give us a list of wrong-type pokemon and their actual types? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#36 (comment)>, or unsubscribe <github.com/notifications/unsubscribe-auth/ATFS27AHA5AWSNENIR5DTP3TC7HWXANCNFSM4Y6Y3FGQ> .

You can add pokemon missing types by modifying the .csv files

and some pictures are not loading [image: image.png]

I can't see anything


Add hex parsing to pow types

The pow types implement fmt::LowerHex but do not implement hex parsing.
Add inherent methods from_hex and from_prefixed_hex to the  pow types - as we did for locktime types.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

-83 of 305 (72.79%)  changed or added relevant lines in 15 files are covered.
4 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.04%) to 83.912%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

bitcoin/src/blockdata/locktime/absolute.rs
46
48
95.83%

bitcoin/src/blockdata/transaction.rs
33
35
94.29%

bitcoin/src/taproot/serialized_signature.rs
0
2
0.0%

hashes/src/util.rs
6
8
75.0%

bitcoin/src/blockdata/witness.rs
2
5
40.0%

bitcoin/src/crypto/key.rs
9
12
75.0%

bitcoin/src/consensus/serde.rs
1
7
14.29%

bitcoin/src/parse.rs
11
17
64.71%

bitcoin/src/pow.rs
71
85
83.53%

bitcoin/src/error.rs
1
44
2.27%

Files with Coverage Reduction
New Missed Lines
%

bitcoin/src/consensus/serde.rs
4
42.75%

Totals

Change from base Build<PHONE_NUMBER>:
-0.04%

Covered Lines:
19570

Relevant Lines:
23322

💛  - Coveralls

Labels were stale.

Removed cargo cult programming, here and in #2577. Does the day ever come in an engineers life where he stops making first year mistakes? (I mean to be philosophical not self deprecating.)

Needs rebase.

Rebased, putting parse change in the recently moved units::parse module.

The last patch is the same as it was. All the initial patches are new, and are a more clean implementation after @sanket1729's review. Includes changes to the error in hex_u32, I thought we did this already but I can't find where.
And there are changes because of recent rustfmt PR.

Needs rebase after #2337.

No meaningful changes since @sanket1729 ack'ed, can go in via one ack carve-out rule 4.

I'll do a follow up PR that improves the docs in pow module, we have time to get that in. Its the hex changes in this PR that are holding us up.

This doccomment is just wrong

I should have stuck with Self :)


pip install fails when install 0.90, gcc-7, macOS 10.15

++ pwd

oldpath=/Users/zerobeanny/Downloads/xgboost-0.90
cd ./xgboost/
echo darwin19
grep -q darwin
LIB_XGBOOST=libxgboost.dylib
which g++-5
which g++-7
/usr/local/bin/g++-7
export CC=gcc-7
CC=gcc-7
export CXX=g++-7
CXX=g++-7
make clean
Makefile:31: MAKE [/Library/Developer/CommandLineTools/usr/bin/make] - checked OK
rm -f -rf build build_plugin lib bin ~ /~ //~ ///~ /.o //.o ///*.o #xgboost
rm -f -rf build_tests *.gcov tests/cpp/xgboost_test
if [ -d "R-package/src" ]; then
cd R-package/src;
rm -f -rf rabit src include dmlc-core amalgamation *.so *.dll;
cd /Users/zerobeanny/Downloads/xgboost-0.90/xgboost;
fi
make lib/libxgboost.dylib -j4
Makefile:31: MAKE [/Library/Developer/CommandLineTools/usr/bin/make] - checked OK
g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/learner.o src/learner.cc >build/learner.d
g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/logging.o src/logging.cc >build/logging.d
g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/c_api/c_api.o src/c_api/c_api.cc >build/c_api/c_api.d
g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/c_api/c_api_error.o src/c_api/c_api_error.cc >build/c_api/c_api_error.d
g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/c_api/c_api_error.cc -o build/c_api/c_api_error.o
In file included from /usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/bits/postypes.h:40:0,
from /usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/bits/char_traits.h:40,
from /usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/string:40,
from /usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/stdexcept:39,
from /usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/array:39,
from /usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/tuple:39,
from /usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/mutex:38,
from dmlc-core/include/dmlc/thread_local.h:9,
from src/c_api/c_api_error.cc:6:
/usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/cwchar:44:10: fatal error: wchar.h: No such file or directory
#include <wchar.h>
^~~~~~~~~
compilation terminated.
make: *** [build/c_api/c_api_error.o] Error 1
make: *** Waiting for unfinished jobs....
g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/logging.cc -o build/logging.o
g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/c_api/c_api.cc -o build/c_api/c_api.o
g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/learner.cc -o build/learner.o
In file included from include/xgboost/data.h:10:0,
from src/c_api/c_api.cc:3:
dmlc-core/include/dmlc/base.h:190:10: fatal error: sys/types.h: No such file or directory
#include <sys/types.h>
^In file included from /usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/bits/postypes.h:40:0,
from /usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/bits/char_traits.h:40,
from /usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/string:40,
from rabit/include/rabit/rabit.h:13,
from src/logging.cc:7:
/usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/cwchar:44:10: fatal error: wchar.h: No such file or directory
#include <wchar.h>
^~~~~~~~~

compilation terminated.
compilation terminated.
make: *** [build/c_api/c_api.o] Error 1
make: *** [build/logging.o] Error 1
In file included from dmlc-core/include/dmlc/io.h:8:0,
                 from src/learner.cc:7:
/usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/cstdio:42:10: fatal error: stdio.h: No such file or directory
 #include <stdio.h>
          ^~~~~~~~~
compilation terminated.
make: *** [build/learner.o] Error 1
+ echo -----------------------------
-----------------------------
+ echo 'Building multi-thread xgboost failed'
Building multi-thread xgboost failed
+ echo 'Start to build single-thread xgboost'
Start to build single-thread xgboost
+ make clean
Makefile:31: MAKE [/Library/Developer/CommandLineTools/usr/bin/make] - checked OK
rm -f -rf build build_plugin lib bin *~ */*~ */*/*~ */*/*/*~ */*.o */*/*.o */*/*/*.o #xgboost
rm -f -rf build_tests *.gcov tests/cpp/xgboost_test
if [ -d "R-package/src" ]; then \
                cd R-package/src; \
                rm -f -rf rabit src include dmlc-core amalgamation *.so *.dll; \
                cd /Users/zerobeanny/Downloads/xgboost-0.90/xgboost; \
        fi
+ make lib/libxgboost.dylib -j4 USE_OPENMP=0
Makefile:31: MAKE [/Library/Developer/CommandLineTools/usr/bin/make] - checked OK
g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/learner.o src/learner.cc >build/learner.d
g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/logging.o src/logging.cc >build/logging.d
g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/c_api/c_api.o src/c_api/c_api.cc >build/c_api/c_api.d
g++-7 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/c_api/c_api_error.o src/c_api/c_api_error.cc >build/c_api/c_api_error.d
g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/c_api/c_api_error.cc -o build/c_api/c_api_error.o
In file included from /usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/bits/postypes.h:40:0,
                 from /usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/bits/char_traits.h:40,
                 from /usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/string:40,
                 from /usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/stdexcept:39,
                 from /usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/array:39,
                 from /usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/tuple:39,
                 from /usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/mutex:38,
                 from dmlc-core/include/dmlc/thread_local.h:9,
                 from src/c_api/c_api_error.cc:6:
/usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/cwchar:44:10: fatal error: wchar.h: No such file or directory
 #include <wchar.h>
          ^~~~~~~~~
compilation terminated.
make: *** [build/c_api/c_api_error.o] Error 1
make: *** Waiting for unfinished jobs....
g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/logging.cc -o build/logging.o
g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/c_api/c_api.cc -o build/c_api/c_api.o
g++-7 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/learner.cc -o build/learner.o
In file included from /usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/bits/postypes.h:40:0,
                 from /usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/bits/char_traits.h:40,
                 from /usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/string:40,
                 from rabit/include/rabit/rabit.h:13,
                 from src/logging.cc:7:
/usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/cwchar:44:10: fatal error: wchar.h: No such file or directory
 #include <wchar.h>
          ^~~~~~~~~
In file included from include/xgboost/data.h:10:0,
                 from src/c_api/c_api.cc:3:
dmlc-core/include/dmlc/base.h:190:10: fatal error: sys/types.h: No such file or directory
 #include <sys/types.h>
          ^~~~~~~~~~~~~
In file included from dmlc-core/include/dmlc/io.h:8:0,
                 from src/learner.cc:7:
/usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/cstdio:42:10: fatal error: stdio.h: No such file or directory
 #include <stdio.h>
          ^~~~~~~~~
compilation terminated.
compilation terminated.
compilation terminated.
make: *** [build/learner.o] Error 1
make: *** [build/c_api/c_api.o] Error 1
make: *** [build/logging.o] Error 1
Traceback (most recent call last):
  File "setup.py", line 42, in <module>
    LIB_PATH = libpath['find_lib_path']()
  File "xgboost/libpath.py", line 48, in find_lib_path
    'List of candidates:\n' + ('\n'.join(dll_path)))
XGBoostLibraryNotFound: Cannot find XGBoost Library in the candidate path, did you install compilers and run build.sh in root path?
List of candidates:
/Users/zerobeanny/Downloads/xgboost-0.90/xgboost/libxgboost.dylib
/Users/zerobeanny/Downloads/xgboost-0.90/xgboost/../../lib/libxgboost.dylib
/Users/zerobeanny/Downloads/xgboost-0.90/xgboost/./lib/libxgboost.dylib

**and i have tried
CFLAGS="-I$(xcrun --show-sdk-path)/usr/include" pip install xgboost
it just gave me the same error mesg.just like  $(xcrun --show-sdk-path) didn't work
any ideas?**
ps in macos 10.15,there is no  /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg

and i have tried
CFLAGS="-I$(xcrun --show-sdk-path)/usr/include" pip install xgboost
it just gave me the same error mesg.just like  $(xcrun --show-sdk-path) didn't work
any ideas?
ps in macos 10.15,there is no  /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg

Take a look at https://github.com/dmlc/xgboost/issues/4949#issuecomment-542321729


🍒 Cherry pick PR #10844 to staging 🍒

🍒 Cherry pick https://github.com/Expensify/App/pull/10844 to staging 🍒

🚀 Cherry-picked to staging by @OSBotify in version: 1.1.97-3 🚀

platform
result

🤖 android 🤖
failure ❌

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes.

🚀 Cherry-picked to staging by @OSBotify in version: 1.1.97-7 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes.

🚀 Cherry-picked to staging by https://github.com/AndrewGable in version: 1.3.28-2 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes.


make it possible for godoc-at-point to reuse a single buffer for all lookups

This introduces a customization variable godoc-reuse-buffer which, when
non-nil, makes godoc-at-point reuse the same (*godoc*) buffer to write output
from all invocations. The default behavior (when nil), is still to write each
output to a separate buffer (*godoc <path>*).
This resolves #180.

Thanks for the pr!


[DateTimePicker] Cannot change date selections in calendar when placed inside a Graphite page or dashboard

What package is this for?

[x] React
[ ] Angular

Describe the bug
In the DateTimePicker's absolute option, one cannot change the date selections in calendar when its is placed inside a Graphite page or dashboard.
To Reproduce
Steps to reproduce the behavior:

Go to 'http://health-stable-ora.fyre.ibm.com:9080/maximo/oslc/graphite/login/index.html?uri=relengineer#/health'. Slack me for credentials.
Click on asset '1001'.
Expand the 'Asset timeline' section.
Click open the DateTimePicker.
Click on 'Custom Range'.
Select the 'Absolute' option.
Pick a date range.
Try changing the end date (it doesn't work).

Note: This works in the 'next' storybook but doesn't inside a Graphite page or dashboard component.
Expected behavior
DateTimePicker should work as expected inside a Graphite Page/Dashboard/Dialog component.
Environment/versions:

OS: Any
Browser: Any
carbon-addons-iot-react version: 2.146.0-next.67

Additional context
Health defect -> https://github.ibm.com/maximo/Asset-Health-Insight/issues/6896
Specific timeline issues / requests
Do you want this work within a specific time period? Is it related to an
upcoming release?
Needed for Health & Predict 8.4 (GM 10/26)

Seems to be an interaction issue with the card, perhaps having to do with z-index?

@navjeets if you pin the version to flatpickr to 4.6.1 using the resolutions field in your package.json this should fix your issue. Kevin goes into detail in this PR

Thank you @davidicus. The issue does get resolved when I add the following in Health package.json
"resolutions": {     "flatpickr": "4.6.1"   }
Can this be added in carbon-addons package.json though? There are some complications around adding these resolutions in Health because it won't work in Graphite configuration tool unless they add this resolution as well. Graphite configuration tool does not make use of Health package.json, so such changes are discouraged by @stuckless


minDate and maxDate not adhering to UTC offset when select is missing

After some preliminary investigation, it seems that when there is no select prop present, the minDate and maxDate values to not adhere to the utcOffset.
Demo project: https://github.com/eastwood/react-datepicker-fix.
I'd expect to have the same disabled days for the following:

Australia/Sydney time is 24th February 00:00 UTC+10
America/Los Angeles time is 23rd February 05:00 UTC-8
If I'm in UTC-8 (Los Angeles) time and the following settings are set
Set minDate={moment()}
Set selected={null}
Set utcOffset={10}

I'd expect to only be able to choose dates from the 24th February onwards.
Unfortunately, the 23rd February is enabled.
However, if I set selected to anything, i.e selected={moment().subtract(2, 'days')}, then the correct dates will be disabled.
To test this:

Clone repo
Change system timezone accordingly
Start application with npm run start
Note that the I have the utcOffset=10. So feel free to play with it to cross a day boundary.

I'll do some more investigation into this and happy to submit PR afterwards.

+1 on more investigation and a fix :) Happy to help reviewing any solutions for you.

+1 The issue as well happens without set the offset.
For example if in excludeDates a I exclude tomorrow and next tomorrow when I open the datepicker I see today and tomorrow disabled, then I select next tomorrow, the date picker is closed I open again and I see what I was expecting originally(tomorrow and next tomorrow disabled)
On my case I have the version 0.39.0
<DatePicker dateFormat="DD/MM/YY" minDate={moment()} className="form-control" selected={this.props.value ? moment.unix(this.props.value) : null} placeholderText={this.props.placeholder} onChange={::this.handleChange}
excludeDates={this.props.excludeDates?this.props.excludeDates:[]}/>;

@dvdgarcia What time zone are you using for excludeDates?
Things get a little screwy when mixing moments in different UTC offsets. (Which is especially easy to do accidentally when you are in a time zone with daylight savings time...)

I am in Spain so Madrid+1.
I have to say that I achieved a way for working, if selected value is not null works fine. So the bug is this one:
with this implementation with excludedDates in the same UTC offset:
<DatePicker dateFormat="DD/MM/YY"
 minDate={moment()}
className="form-control"
selected={this.props.value ? moment.unix(this.props.value) : null}
placeholderText={this.props.placeholder}
onChange={::this.handleChange}
excludeDates={this.props.excludeDates?this.props.excludeDates:[]}/>

I open the date picker and the dates excluded are wrong, I select one, the datepicker is closed, then I open it again and I see the disabled dates as I wanted originally.
So I tried to do this implementation:
<DatePicker dateFormat="DD/MM/YY"
minDate={moment()}
className="form-control"
selected={this.props.value ? moment.unix(this.props.value) : moment()}  <---THIS IS THE CHANGE
placeholderText={this.props.placeholder}
onChange={::this.handleChange}
excludeDates={this.props.excludeDates?this.props.excludeDates:[]}/>
I initialize the selected value with moment() and it works perfect.

A tip, if I set once a date and after I set null, the component works disabling dates . So that makes me think that's n error intializating the date picker value to calc the disabled dates