Addition of 2 open source contribution projects

Added 2 projects to contribute in open source for programmers in README.md file:

First-Contributions(A detailed guide for open source beginners which contains tutorials and contains links to good projects for first-time contributors )
Winget (A Microsoft project related to CLI)

@Kerveyfelix thnx for contributing.


Wrap Results

Results are now wrapped in a Result class. The result class tracks:

whether the cache call was a hit or a miss
the list of tags that are applied to the cached value

The result of calling ->load() has been moved to a class called
LoadResult to clarify things since those 2 are fairly distinct.

Merging this would make a 2.x version of the library. The current state of master has been tracked on a branch called 1-x that has been pushed to this repo.


Manage Packages icon position fix (#14528)

Added CSS to treat manage packages icon position.

Wired up a rough concept showing how I propose to pass a masked-icon class, along with the icon name - derived from the action icon path - to the injected action prior to rendering. The end result is an injected action with an icon which behaves like the others in the notebook toolbar.

Revert "Added CSS to treat manage packages icon position."

This reverts commit 215a67244a78224fe8fd2e6480b7e50d37a15dc0.

Revert "Wired up a rough concept showing how I propose to pass a masked-icon class, along with the icon name - derived from the action icon path - to the injected action prior to rendering. The end result is an injected action with an icon which behaves like the others in the notebook toolbar."

This reverts commit 1e0cf116602192aa554334d564e855167b0e8bb6.

Modified LabeledMenuItemActionItem to add masked-icon class to injected label element.

Modified LabeledMenuItemActionItem to add masked-icon class and styles for injected label element.

To prevent conflict with Dashboard, I duplicated the existing LabelMenuItemActionItem and odified it.

Added comment to new method. Added non-prefixed mask-image style.

Renamed method and modified comments.

This PR fixes #14507

Pull Request Test Coverage Report for Build 644238537

0 of 1 (0.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 43.26%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/sql/workbench/contrib/notebook/browser/notebook.component.ts
0
1
0.0%

Totals

Change from base Build 641454900:
0.0%

Covered Lines:
25237

Relevant Lines:
53239

💛  - Coveralls


selectTextStyle has no effect

Passing style to selectTextStyle prop has no effect for me in the most recent version.
Text stays small and gray.
In previous version (1.0.3) same code worked.
Used in default mode:

      <ModalSelector
                data={countries}
                initValue={this.state.countryName}
                onChange={this._handleCountry}
                selectStyle={styles.selectStyle}
                selectTextStyle={styles.selectText}
                optionContainerStyle={styles.optionContainerStyle}
                optionStyle={styles.optionStyle}
                optionTextStyle={styles.optionText}
                cancelText={t.general.cancel}
                cancelStyle={styles.cancelStyle}
                cancelTextStyle={styles.cancelTextStyle}
              />
         ...
 const styles = StyleSheet.create({
...
selectText: {
    fontSize: 18,
    color: '#000000',
  },
...
})

"react-native": "0.60.5",
"react-native-modal-selector": "1.1.1",
Any suggestions, perhaps?

I can not reproduce this with Expo snack. When I set selectTextStyle={{ color: "red" }}, the color is changed to red when I select an item in the modal: https://snack.expo.io/@mikaello/selecttextstyle-demo

Can you please provide a minimal example reproducing the behaviour?

1.1.0 introduced a change that may have affected this.  Previously, selectTextStyle applied all the time, but the recent change applies the style only on selection.
https://github.com/peacechen/react-native-modal-selector/blob/75a31d0cd12a152d445e9d6051d47d353b2baf44/index.js#L277
This was done for the new initValueTextStyle prop.  It looks like a regression.

@mikaello I don't use Expo, my project is pure RN with debugging in Android simulator.
Tested release bundle on several real devices - all the same: text style props has no effect.
I was surprised when saw this change in my UI after upgrade - thought that there were some changes in API, but when checked - no changes.
Code is as provided above - just copypaste form my IDE. Other style props work as expected, no changes.

@greenais
Would you try using the initValueTextStyle  prop?

@peacechen initValueTextStyle works, thank you!
My issue soved.
selectTextStyle has no effect still, I even removed it completely


rebot cli proposal: --autoexpand keyword

When opening a log.html file, all failed suites and keywords are shown directly (auto expanded).
I suggest a new rebot cli argument --autoexpand keyword
in order to auto expand all matching keywords when opening a log.html file (e.g. Take Screenshot or SelemiumLibrary.Capture Page Screenshot).

Sounds useful but would probably be somewhat complicated to implement. The main complexity is due to the fact that logs are dynamically created while you open keywords, and automatically opening some of the keywords would likely take a lot of time with larger log files. Most likely the list of keywords to open should be collected already when generating the log file so that unnecessary keywords wouldn't need to be opened. If this would be implemented, I'd like to support keyword tags as well as names similarly as e.g. --removekeywords.
Are you interested to implement this yourself?

I tried, but run into trouble.
The problem is: The expandDecider do not know anything about child's and keywords inside. Scanning all child's and subchild's is not an option. But: expanding nodes with status=FAIL works, because the status is propagated to mother nodes. A similar *expandStatus is needed in stored data, which is a complex change.
Currently we have a workaround: we make screenshots in teardown when tests fails and apply a postprocessing to replace the default expandDecider with a more powerfull custom version, which is a kind of hack and not suited for a pull request. Thus: this topic is not urgent :-)

Are you @DirkRichter still interested in this enhancement? As I commented above, this could be implemented by collecting ids of keywords to be opened, writing that to the log file, and log file then opening the listed keywords.

Hi. Thanks for your hints. Yes we are still interested in this (on my todo list). But currently the topic is not top priority due to the workaround.

PR #3118 looks so promising (and safe) that I'll add this to RF 3.1.2 scope.

Talked with @DirkRichter on Slack and he doesn't have time to finalize PR #3118 in time for RF 3.1.2. Moving to RF 3.2 scope.

Are you @DirkRichter still interested in this issue? RF 3.2 is getting ready and if we want this in, PR #3118 should somewhat soon be finalized.

I would like to know the reason behind this.
IMHO, this feature would not bring much value.
When having +1000 tests and some might use common keyword and expanding all of them might cause intresting HTML view.
How we solved the reporting challenge is that we established DB which stores all results and if we are instested on certain things then we just query DB or create a view based on needs.
I know, kind of heavy solution but still..
Instead of doing tweaks to HTML view, I would spend more time to redesign HTML view to have more functionality using CSS, Javascript etc.
Any comments from @pekkaklarck ? :)

This obviously doesn't solve all reporting problems, but I can see it being useful in many cases. Incidentally someone just yesterday asked about exactly this functionality on our Slack.
This issue doesn't mean that external reporting solutions wouldn't still be useful, especially if you have lot of test, nor that logs/reports couldn't be enhanced otherwise. If you @jura84 have concrete ideas related to the latter, please submit an issue.

Thanks to PR #3118 by @DirkRichter this issue is done!


Bug: Images not loding in Avatar

Need to change  the src of images in all components in \Avatar\src
Current Status of Avatar

Sure fix this. Use any auto image API to pull random images.


print output of isct_test_function in text file

Output should also includes file with pandas Dataframe for comparison purpose.

now outputs pickle and cvs.
also redirects Terminal wiht flag -log
anything else?

Nope. Seems good.


no such file or directory: 'JSCExecutor.cpp'

🐛 Bug Report
no such file or directory: '$APP_PATH/node_modules/react-native/ReactCommon/cxxreact/JSCExecutor.cpp' in iOS
To Reproduce
Bumping up an existing project from '0.57.0' to '0.58.4'. Added 'JavaScriptCore.framework' in build phases.
Expected Behavior
Works fine in the android side. I couldn't find the file 'JSCExecutor' in the suggested path.
Environment
React Native Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: (4) x64 Intel(R) Core(TM) i5-2415M CPU @ 2.30GHz
Memory: 32.93 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 8.11.3 - /usr/local/bin/node
Yarn: 1.9.4 - /usr/local/bin/yarn
npm: 5.6.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
IDEs:
Android Studio: 3.1 AI-173.4907809
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: 16.6.3 => 16.6.3
react-native: 0.58.4 => 0.58.4
npmGlobalPackages:
create-react-native-app: 1.0.0
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7

Hi, we encountered this issue as well when trying to upgrade our project from 0.55.4 to 0.58.4. Stack overflow help request is created here: https://stackoverflow.com/questions/54663558/build-fail-in-v0-58-4-jscexecutor-cpp-file-doesnt-exist

I believe it because of un-updated pod files in ios side. I found JSCExecutor.cpp in 'Compile Sources' of react-native pod. Doing a pod install with updated dependencies solved the issue for me.
After updating this is how my 'Compile Sources' of react-native pod looks like

@kelset, this issue is resolved.


Implement the messaging interface for user interaction

Need to implement the parsing and command generation mechanism when user submits a message from GUI.
I think the user should be allowed to do the following things through messages -

Change  drone direction
Change  drone speed
Turn drone on/off
NOTE - Drones will act upon commands only when they're in Active State.

If there's anything else, please let me know @Mec-iS @kkoci @chrizandr ^^.


pod install错误

[!] /usr/local/bin/git clone https://github.com/ccgus/fmdb.git /var/folders/80/tttbth652b15qb18_m682dn40000gp/T/d20181029-4180-gh6ne4 --template= --single-branch --depth 1 --branch 2.7.2
Cloning into '/var/folders/80/tttbth652b15qb18_m682dn40000gp/T/d20181029-4180-gh6ne4'...
fatal: unable to access 'https://github.com/ccgus/fmdb.git/': Empty reply from server

pod update 下试试,


"Common edge cases" shared examples

We should add some shared examples to our specs which include tests like
it 'does not encounter an error when handling an empty describe' do
  expect { inspect_source(cop, 'RSpec.describe(User) do end', 'a_spec.rb') }
    .not_to raise_error
end

and then in our spec helper we can include these shared examples for all specs in the spec/rubocop/cop/rspec directory.
This should help us avoid easy to overlook regressions like #385

I think that #623 and #624 reinforce the need for this. We could hand-craft some common weird cases and then use them as a shared example for every cop as a strong starting point, but I also think it would be worthwhile to find a few popular repos that use rspec, get a git reference for a specific commit (so the build doesn't fluctuate suddenly) and just run rubocop-rspec over 5-10 projects and check only for crashes.
Further advantage for the corpus testing approach is that we could add a tool could be something like bin/test-drive that would show the offenses a specific / your new cop finds on the available projects so you can do a quick sanity check of your proposed cop / cop modifications. If we wanted to get really complex, we could build a tool like this which is source-aware and could show you the diff of offenses generated for each modification you make to the codebase, which I think would be fantastic.

What a great idea. I guess such a tool would be as useful for vanilla RuboCop as for RuboCop-RSpec.

I guess such a tool would be as useful for vanilla RuboCop

Yeah, absolutely. We could test-drive it here and maybe introduce it into rubocop proper once we iron out the kinks.

I might have some time in the next couple of days to take a stab at it.


⚠ Bofrost.at has degraded performance

In 0e9b5d3, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1298 ms

Resolved: Bofrost.at performance has improved in c1138c6.


Text must be in English

I see some text in Dutch: https://github.com/CarolineMouton/report.inspiratie/blob/6c8a1107e04dec867cd418dd0eb6cf923e184fdd/README.md?plain=1#L2-L4
It should be in English. Can you please check?

I will check it! @RheaMaesele


Connection Dead

I have some scenario, How to handle if connection from ES die. If connection suddenly die, it's can retry connect again.this is my code.
package main
import (
"github.com/olivere/elastic"
"fmt"
"time"
// "strings"
)
func main() {
    //client, _ := elastic.NewClient()
  for {
    delay := time.After(ForeverLoopDelay)
    client, _ := elastic.NewClient(
      elastic.SetHealthcheck(true),
      elastic.SetSniff(true),
      elastic.SetHealthcheckInterval(30 * time.Second),
      elastic.SetURL("http://localhost:9200/"),
      )
    info, code, err := client.Ping().Do()
    if err != nil {
    // Handle error
      panic(err)
    }
    fmt.Printf("Elasticsearch returned with code %d and version %s", code, info.Version.Number)
    <-delay
  }

}

it's cannot retry connect, and I get error
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x47e581]

goroutine 1 [running]:
github.com/olivere/elastic.(*PingService).Do(0xc20803b1a0, 0x0, 0x0, 0x0, 0x0)
    /home/tomo/Documents/go/src/github.com/olivere/elastic/ping.go:102 +0x471
main.main()
    /home/tomo/Documents/scraper/ex.go:37 +0x200

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
    /usr/local/go/src/runtime/asm_amd64.s:2232 +0x1
exit status 2

You shouldn't do that. Elastic already retries failed requests, does load balancing via round-robin, finds dead and healthy connections, detects new and removes dead nodes from the cluster. That's what the healthchecks and sniffing procedures do.
Of course errors can still happen. You should check them on the request level, and even retry. But you should not create a new client when an error occurs. You should have one Elastic client per cluster, initialized on startup.
A new client were only necessary if you must switch clusters while running. And that's a lot more complex.

Here's a version that should do your infinite loop, and you can shut down ES in between.
package main

import (
	"fmt"
	"log"
	"time"

	"gopkg.in/olivere/elastic.v2"
)

func main() {
	ForeverLoopDelay := 5 * time.Second
	client, err := elastic.NewClient(
		elastic.SetHealthcheck(true),
		elastic.SetSniff(true),
		elastic.SetHealthcheckInterval(30*time.Second),
		elastic.SetURL("http://localhost:9200/"),
	)
	if err != nil {
		panic(err)
	}
	for {
		delay := time.After(ForeverLoopDelay)
		info, code, err := client.Ping().Do()
		if err != nil {
			log.Printf("%v... retrying", err)
		} else {
			fmt.Printf("Elasticsearch returned with code %d and version %s\n", code, info.Version.Number)
		}
		<-delay
	}
}

Okee I see, thanks.

I have similar issue. In my case, we are using AWS ES service so we have disabled the snipping. The API works fine in general, but whenever AWS upgrades ES service, there is some downtime of about an hour or so during which it starts throwing no connection available exceptions. We have healthcheck every 3 second. After 45-60 min new clusters are up by AWS, but API still keeps throwing that no node available / dead nodes errors. Any idea why it keeps throwing this error? In most cases, it works fine - API is able to detect whenever the servers are up, but if it's down for long time, it's not able to detect it.

Please disable both sniffing and health checks.


docker-machine upgrade downgraded my vm

Hi, Just upgraded to version 1.9.0b was using 1.8.0 before, but my mac still had files from older boot2docker and Kitematic. Everything was working fine but when I upgrade to 1.9 I needed to upgrade the VM. I ran docker-machine upgrade dev and it took an old version of a boot2docker.iso from this path:
/Applications/Kitematic (Beta).app/Contents/Resources/resources/boot2docker.iso which was version 1.7.1 why that happened? Can't figure out which environment configuration is telling docker-machine to look under this folder, tried to delete this file in order to see if it could try to download a newer one but unsuccessfuly. Can anybody help me?
bash-3.2$ docker-machine upgrade dev
Stopping machine to do the upgrade...
Upgrading machine dev...
Downloading boot2docker.iso from /Applications/Kitematic (Beta).app/Contents/Resources/resources/boot2docker.iso...
open /Applications/Kitematic (Beta).app/Contents/Resources/resources/boot2docker.iso: no such file or directory

bash-3.2$ env
MANPATH=/Users/guilhermeantunes/.nvm/versions/v4.1.2/share/man:/Users/guilhermeantunes/.nvm/versions/v4.1.2/share/man:/Users/guilhermeantunes/.nvm/versions/v4.1.2/share/man:/usr/local/share/man:/usr/share/man:/opt/X11/share/man:/Applications/Xcode.app/Contents/Developer/usr/share/man:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man
rvm_bin_path=/Users/guilhermeantunes/.rvm/bin
TERM_PROGRAM=iTerm.app
GEM_HOME=/Users/guilhermeantunes/.rvm/gems/ruby-2.2.3
TERM=xterm-256color
SHELL=/bin/bash
IRBRC=/Users/guilhermeantunes/.rvm/rubies/ruby-2.2.3/.irbrc
TMPDIR=/var/folders/b5/cf9q7xj52_q7nvwqw_ywpx280000gn/T/
NVM_PATH=/Users/guilhermeantunes/.nvm/versions/v4.1.2/lib/node
Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.9Ef5SrLfPD/Render
DOCKER_HOST=tcp://<IP_ADDRESS>:2376
MY_RUBY_HOME=/Users/guilhermeantunes/.rvm/rubies/ruby-2.2.3
NVM_DIR=/Users/guilhermeantunes/.nvm
USER=guilhermeantunes
_system_type=Darwin
rvm_path=/Users/guilhermeantunes/.rvm
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.k7xtUrpqBt/Listeners
__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0
DOCKER_TLS_VERIFY=1
rvm_prefix=/Users/guilhermeantunes
PATH=/Users/guilhermeantunes/.rvm/gems/ruby-2.2.3/bin:/Users/guilhermeantunes/.rvm/gems/ruby-2.2.3@global/bin:/Users/guilhermeantunes/.rvm/rubies/ruby-2.2.3/bin:/Users/guilhermeantunes/google-cloud-sdk/bin:/Users/guilhermeantunes/.nvm/versions/v4.1.2/bin:/Users/guilhermeantunes/.nvm/versions/v4.1.2/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/guilhermeantunes/.rvm/bin
NVM_NODEJS_ORG_MIRROR=https://nodejs.org/dist
PWD=/Users/guilhermeantunes
LANG=pt_BR.UTF-8
ITERM_PROFILE=Default
NODE_PATH=/Users/guilhermeantunes/.nvm/versions/v4.1.2/lib/node_modules:/Users/guilhermeantunes/.nvm/versions/v4.1.2/lib/node_modules
_system_arch=x86_64
XPC_FLAGS=0x0
_system_version=10.11
XPC_SERVICE_NAME=0
rvm_version=1.26.11 (latest)
SHLVL=3
COLORFGBG=7;0
HOME=/Users/guilhermeantunes
DOCKER_CERT_PATH=/Users/guilhermeantunes/.docker/machine/machines/default
ITERM_SESSION_ID=w0t1p0
LOGNAME=guilhermeantunes
GEM_PATH=/Users/guilhermeantunes/.rvm/gems/ruby-2.2.3:/Users/guilhermeantunes/.rvm/gems/ruby-2.2.3@global
NVM_BIN=/Users/guilhermeantunes/.nvm/versions/v4.1.2/bin
DISPLAY=/private/tmp/com.apple.launchd.hC5gWQjNoR/org.macosforge.xquartz:0
RUBY_VERSION=ruby-2.2.3
_system_name=OSX
_=/usr/bin/env

@jeffdm @mchiang This is a good example of why bundling the boot2docker.iso alongside the rest of the Toolbox is potentially problematic.

We don't bundle boot2docker.iso with Kitematic anymore
The Toolbox includes boot2docker.iso and puts it in ~/.docker/machine/cache/boot2docker.iso.
This shouldn't cause downgrading. docker-machine upgrade always checks GitHub, unless I'm mistaking

The problem is that docker-machine is always checking this path
/Applications/Kitematic (Beta).app/Contents/Resources/resources/

I don't understand why.

That's strange - which version of machine?

Also: thanks for letting us know :smiley:

One possible explanation: If it's a machine that was created before the change of not bundling the ISO anymore, it will still have the same property of where it looks for the boot2docker.iso. upgrade will therefore always check the file:/// URI.  It could potentially be fixed by deleting and re-creating the instance with latest versions.

Guys, what I ended up doing was running the boot2docker uninstaller before updating the VM. I was using that comes when you download the latest toolbox just after docker 1.9.0 was released.

Please try latest Toolbox and re-open if this is not fixed.  Thanks


More graceful warning on unauthorized API request (TransIP or generic?)

Due to user error, my API calls to TransIP failed. (If you must know: I forgot the toggle at my DNS provider to enable API.)
The warning I got was not descriptive to me, adding to the confusion:

Error creating TXT record: Unexpected character encountered while parsing value: Y. Path '', line 0, position 0.

Verbose logging helped me:

[DBUG] [HTTP] Send POST to https://api.transip.nl/v6/auth
[VERB] [HTTP] Request content: {"nonce":"9░░░░░░░░login":"░░░░","read_only":false,"expiration_time":"30 minutes","label":null,"global_key":true}
[VERB] [HTTP] Request completed with status Unauthorized
[VERB] [HTTP] Empty response

I think it would be more helpful if an error message would be given on the Unauthorized HTTP request, instead of failing on the empty response.

[DBUG] [.░░░░░░░░░.nl] Attempting to create DNS record under _acme-challenge.░░░░░░░░.nl...
[DBUG] [HTTP] Send POST to https://api.transip.nl/v6/auth
[VERB] [HTTP] Request content: {"nonce":"9░░░░░░░░░","login":"░░░░","read_only":false,"expiration_time":"30 minutes","label":null,"global_key":true}
[VERB] [HTTP] Request completed with status Unauthorized
[VERB] [HTTP] Empty response
[WARN] Error creating TXT record: Unexpected character encountered while parsing value: Y. Path '', line 0, position 0.
[DBUG] [.░░░░░.nl] Failed to create record under _acme-challenge.░░░░░░░░░.nl
[EROR] [.░░░░░.nl] Error preparing for challenge answer
System.Exception: [.░░░░░░.nl] Unable to prepare for challenge answer
at PKISharp.WACS.Plugins.ValidationPlugins.DnsValidation1.PrepareChallenge(ValidationContext context, Dns01ChallengeValidationDetails challenge)    at PKISharp.WACS.Plugins.ValidationPlugins.Validation1.PrepareChallenge(ValidationContext context)
at PKISharp.WACS.RenewalValidator.Prepare(ValidationContext context, RunLevel runLevel)
[VERB] Starting post-validation cleanup
[VERB] Post-validation cleanup was succesful
[INFO] [*.░░░░░░░░░░.nl] Deactivating pending authorization
[DBUG] [HTTP] Send POST to https://acme-v02.api.letsencrypt.org/acme/authz-v3/304861148156

I applied some changes in 2.2.7 to address this: general warnings on failed HTTP requests and specifically for TransIP avoiding this JSON parsing bug on an empty response.


Issues validating objects with oneOf

Summary
I am writing a JSON generator and am testing it with the following schema:
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "oneOf": [
    { "$rel": "#/definitions/californiaAddress" },
    { "$rel": "#/definitions/floridaAddress"}
  ],
  "definitions": {
    "californiaAddress": {
      "required": [ "city", "state" ],
      "properties": {
        "city": {
          "type": "string",
          "enum": [
            "San Diego",
            "Los Angeles"
          ]
        },
        "state": {
          "type": "string",
          "enum": [ "CA" ]
        }
      }
    },
    "floridaAddress": {
      "required": [ "city", "state" ],
      "properties": {
        "city": {
          "type": "string",
          "enum": [
            "Miami",
            "Orlando"
          ]
        },
        "state": {
          "type": "string",
          "enum": [ "FL" ]
        }
      }
    }
  }
}

When I call JSON::Validator.validate! with this object as the schema and pass in the output of my app, it fails saying:
JSON::Schema::ValidationError: The property '#/' of type Hash matched more than one of the required schemas in schema 11fae3df-6a4c-5dce-bd06-02c5497c9b88

Calling JSON::Validator.validate with the same arguments returns false.
The output being tested is:
{"city":"Orlando","state":"FL"}

Expected Behavior
The object being tested should pass validation when checked against the given schema, since it clearly matches one but not both of the possible schemas.
Current Behavior
When I call JSON::Validator.validate! with the data described above, the output indicates the JSON Schema gem thinks it matches both of the possible schemas. When I call JSON::Validator.validate with the same data, the result is false.
Steps to Reproduce (for bugs)
In IRB, using the schema and output given above, call JSON::Validator.validate!(schema, object). Observe it fails.
My Environment

Version used: 2.6.2
Operating System and version: OS X El Capitan 10.11.5
Link to your project: https://github.com/danascheider/json_test_data

This was due to a typo, sorry!


github-token vs ghToken

Inputs want github-token:
https://github.com/outsideris/potential-conflicts-checker-action/blob/5b014d8352271d30e37df032eb03f0b9123b9659/action.yml#L3-L5
But Readme and code expect ghToken:
https://github.com/outsideris/potential-conflicts-checker-action/blob/86c9d2ffbfad8c21821c3b25928b2a9bab9cd9f2/README.md#L25
https://github.com/outsideris/potential-conflicts-checker-action/blob/9b77a916876b66d3b7596ddd9e1e6ef170bdd32d/index.js#L21
When following Readme, warning looks like this:

Yeah, looks like action.yml input should be renamed github-token -> ghToken.


Unable to find image 'ghcr.io/cross-rs/aarch64-linux-android:local' locally

A simple build cross build --target aarch64-linux-android --release returns this error.
Why?

The :local suggests a Cross.toml file, what does it contain?
Are you building a certain repo or is this from a new project? What version of cross are you using?


Add std.functional.bind

Fixes Issue 22736 - Add destructuring bind for std.typecons.Tuple tuples

This version works for all struct types, not just std.typecons.Tuple. See #8372 for discussion.

Thanks!

See #8372 for discussion.

To summarize a lot of it, I'm hesitant about such an addition to Phobos because I can't see many use cases outside tuples, and it is so broad that it allows doing e.g.:
struct Coordinate { float longitude, latitude; }
Coordinate c;
...
c.bind!((latitude, longitude) => /* OOPS */);

Note that the JavaScript equivalent behaves correctly:
let c = {longitude: 12, latitude: 34};
(({latitude, longitude}) => /* OK */)(c);

I think we actually can make the D construct behave like the JavaScript one if we wanted to, which is why maybe that should be a separate discussion from #8372.

Here's a non-std.typecons.tuple use-case that I almost included in the examples:
int[string] cityPopulations = [
    "New York" : 8_804_190,
    "Los Angeles" : 3_898_747,
    "Chicago" : 2_746_388,
    "Philadelphia" : 1_603_797,
    "Seattle" : 737_015,
    "Boston" : 675_647
];

// Print names of cities with populations > 1mil and < 5mil
cityPopulations.byKeyValue
    .filter!(bind!((name, pop) => pop > 1_000_000 && pop < 5_000_000))
    .map!(bind!((name, pop) => name))
    .each!writeln;

byKeyValue uses a non-std.typecons.Tuple struct as its element type, so a Tuple-only version wouldn't work here.
Using bind lets us have meaningful names (name, pop) instead of generic ones (key, value).

byKeyValue uses a non-std.typecons.Tuple struct as its element type, so a Tuple-only version wouldn't work here.

There is std.array.byPair which does return a range of Tuple.

I think we actually can make the D construct behave like the JavaScript one if we wanted to

Sadly I don't think this is possible in library code without resorting to string mixins, but I'd be delighted to be proven wrong about that.

@atilaneves Thanks! Though, I'd love a rationale of your choice.

@atilaneves Thanks! Though, I'd love a rationale of your choice.

It's more general, and I didn't see why constrain it to tuples.

@RazvanN7 Added a changelog entry.


How to use this code?

is there another sample code > or example code? ?

Please inspect FirmataCrypto.ino file to understand how to use Crypto class.

@indrabagus Thanks Solved!


openjdk10_hs_openjdktest_x86-64_linux got "Error: Group spec does not specify a valid test suite:"

Build openjdk10_hs_openjdktest_x86-64_linux didn't run any tests due to error"Error: Group spec does not specify a valid test suite: "
Looking at code structure openjdk10 has changed code structure,  which separate source code and test code from each component. All test code has been moved to test folder. Where can we find those changes document or how can we be notified when those changes happens?

Is this related to what Muneer had mentioned through the Slack channel?  Also implying that a new commandline option is required for test groups that contain native tests?
https://github.com/AdoptOpenJDK/openjdk-tests/issues/228#issuecomment-367892659
I presume both the restructuring of openjdk tests and the new requirement to point to where native test images live indicate that the openjdk repo underwent some reorganization.
We would likely have to monitor the activities on that repo, or depend on Muneer and others who are monitoring, if we were to know of this in advance.


[FLINK-35822] Introduce DESCRIBE FUNCTION

What is the purpose of the change
This PR introduces DESCRIBE FUNCTION syntax, allowing users to describe the metadata of a given function. The design for this is covered under FLIP-465: https://cwiki.apache.org/confluence/display/FLINK/FLIP-465%3A+Introduce+DESCRIBE+FUNCTION
Brief change log

Add Parser support for the next syntax
Add FunctionDefinition as a new optional parameter for ContextResolvedFunction
The bulk of the implementation logic is in DescribeFunctionOperation

Verifying this change
This change added tests and can be verified as follows:

Added end to end tests in flink-table/flink-sql-client/src/test/resources/sql/function.q
Added unit tests in FlinkSqlParserImplTest and SqlOtherOperationConverterTest

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): no
The public API, i.e., is any changed class annotated with @Public(Evolving): yes
The serializers: no
The runtime per-record code paths (performance sensitive): no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
The S3 file system connector: no

Documentation

Does this pull request introduce a new feature? yes
If yes, how is the feature documented? docs / JavaDocs

@flinkbot run azure

@flinkbot run azure


Possible PR for #3639, KeyError on Preview Link

One possible solution: If the session key does not exist when visiting a /preview, fall back to the "preview error page" (there will be a dialog).  The user can then try previewing the article again.
The most common reasons for the missing key:

The user bookmarked the /preview link and is visiting it in a new session
A user pastes a link to another user via email or IM

Discussion for #3639 can be found here.


GanttChart how to use CalendarDefs (documentation)

Hello there,
I try to use CalendarDefs to render weekends/holidays. Unfortunately there is no example code on the explored (https://sapui5.hana.ondemand.com/) website. Could you provide a running example how to use it? I would appreciate your help.
Regards,
Jan

Hello @Myge91 ,
Thank you for sharing this finding. I've created an internal incident<PHONE_NUMBER>. The status of the issue will be updated here in GitHub.
Regards,
Diana

Hello @Myge91 ,Thanks very much for your feedback. We will enhance the current example in https://sapui5.hana.ondemand.com/#/sample/sap.gantt.sample.BasicGanttChart/preview to include calendar.
Please stay tune.
Regards,
Ethan

Hi @Myge91 , we have enhanced the demokit, you can check the latest sample with the link:
http://veui5infra.dhcp.wdf.sap.corp:8080/sapui5-sdk-dist/#/sample/sap.gantt.sample.BasicGanttChart/preview

Hi @webber-4-ever ,
thanks for sharing this link. I am not able to open it. Also I don't see the documentation here:
https://sapui5.hana.ondemand.com/#/entity/sap.gantt.GanttChartContainer
When do you provide the update documentation on https://sapui5.hana.ondemand.com/
Regards
Jan

Hi  @webber-4-ever ,
i also have problems to open the link.
it seems to be an intern link, so i cant make it to having a look at the content.
can you please provide the code snipped in jsbin or in a github rep or sth else?
@Myge91 : did you solve it meanwhile? i'm really looking forward a solution to visualize calendardefs for weekends.
i already posted a question at https://answers.sap.com/questions/420579/sapui5-gantt-problem-using-calendardef.html.
Best regards,
Stephan

Hi @webber-4-ever ,
sap.corp links are accessible in the SAP internal network and not from outside! Could you provide a link accessible for everyone?
Regards,
DerGuteWolf

Hello,
I also try working with the GANTT chart. I also miss some details in the documentation. For me it would be very helpful to set some text or tooltip information for the "calendarDef". Lets say, I want to add 2 calendars, one for the weekends and one for some country specific none working days. I want to add a text or tooltip (better would be a text, I think) to the calendar definition, so that the user can see directly what kind of day it is (e.g. christmas eve). I searched a lot thru the internet, but until now I don't really found a way to display these information at calendar definition. For the AddHocLine I can add a tooltip and it would be display. Also for the BaseRectangle a text and tooltip can be added. But for the TimeIntervall for a calendar definition I can't. Has someone any information about it and would help me? Thanks a lot.
Best regards
Sascha

Hi,
As you can see from the example, it is now possible to add title and icons on the calendars - Please refer to example https://sapui5.hana.ondemand.com/#/entity/sap.gantt.simple.GanttChartWithTable/sample/sap.gantt.sample.GanttChart2Calendar to check further.
You can provide the Calendar def as before and add them as an aggregation to the Gantt chart as before. And in the corresponding BaseCalendar you add in the GanttRowSettings, you can add the properties title to make the text come up.
Please refer to the documentation https://sapui5.hana.ondemand.com/#/api/sap.gantt.simple.BaseCalendar and its parent class https://sapui5.hana.ondemand.com/#/api/sap.gantt.simple.BaseShape and https://sapui5.hana.ondemand.com/#/api/sap.gantt.simple.BaseRectangle to know more
Thanks,
Reshma


Update to match Micrometer updated RC api

@brettwooldridge The RC updated the api fair amount.
@jkschneider Mind double checking this?

Updated based on the feedback. Thanks!

@checketts Is this code ready to pull?  You asked for @jkschneider to review, but I haven't seen any comments...

@brettwooldridge I did comment, but @checketts already fixed all the things :)

Yup, ready for pull. (Strangely I'm not getting notifications on these comments, having to come check manually)

@brettwooldridge Any other changes you need me to make?

@brettwooldridge Will there be a hikari release any time soon? I'm eager to leverage the micrometer integration

@checketts Done.  v2.7.3.  Published to the Sonatype repository.  Available immediately there, or in a few hours from Central after sync.


Add description in the resource page when there is no OpenShift Local instances

When there is no instances, the resource pages shows:

The provider API now has a field called: emptyConnectionMarkdownDescription
Proposed text (extracted from https://developers.redhat.com/products/openshift-local/overview)
Red Hat OpenShift Local is the quickest way to get started building OpenShift clusters. OpenShift Local is designed for local development and testing on an OpenShift cluster.

Proposed empty connection description is fine for me


Gauge fixing for nontrivial symmetries and unit cells

I was trying out the new updates on a model with $\mathbb{Z}_2$ symmetry and a $2 \times 2$ unit cell as a test, and I ran into some issues with the gauge fixing.
Unit cells should be fine in principle, but in the current implementation this can give some space mismatches when the edge tensor spaces aren't the same for every site, I think due to this line
https://github.com/quantumghent/PEPSKit.jl/blob/a24ac36321dfbccb0e1e12b3eb9378411f0a4ab5/src/algorithms/ctmrg.jl#L95
not taking into account the site dependence, which is easily fixed.
Symmetries are bit more tricky, since there's two steps where the block structure isn't taken into account,
https://github.com/quantumghent/PEPSKit.jl/blob/a24ac36321dfbccb0e1e12b3eb9378411f0a4ab5/src/algorithms/ctmrg.jl#L82-L83
and
https://github.com/quantumghent/PEPSKit.jl/blob/a24ac36321dfbccb0e1e12b3eb9378411f0a4ab5/src/algorithms/ctmrg.jl#L93-L95
For the first one, projecting out one specific configuration of physical indices isn't very natural in the presence of symmetries. We could just do it, but I'm not sure if this is then still what we want. The second one seems more involved, mainly because I'm not sure what's happening exactly. Just trying the closest block-diagonal analogue to what's there breaks the $\mathbb{Z}_2$ version of the test_gauge_fixing.jl test, so I didn't manage to patch it without understanding it.
Probably the case of symmetries just requires the use of a different gauge-fixing procedures, but just wanted to point this out in case there's a quick fix after all. Any thoughts @pbrehmer, @lkdvos?

Ok, after some more messing around I gave up on not thinking and actually implemented the "general" gauge fixing algorithm from the paper. This works for $\mathbb{Z}_2$ and unit cells, but it breaks the actual AD optimization example since KrylovKit.eigsolve is not differentiable (yet). I think Lukas has an rrule for that somewhere, so I'll see if I can get the whole thing to work after I get my hands on that.

Thanks for following up on that! I also had an implementation lying around for the "general" gauge fixing algorithm which didn't AD, but your implementation using MPSKit routines is much nicer. So this is finally a good time to get it working. Great to hear that this works with unit cells and symmetries (I was struggling with unit cells previously). Maybe we can discuss the details next week.

Closed by #19.


Love2D targetted colour picker

Love2D colour picker that automatically converts to the 0-1 rgb system and removes the hexadecimal check. Fork of pkulchenko colour_picker

@suburbMage, is it the same change as was submitted in #87? I thought that one was to accommodate love2d format too.

@pkulchenko oh wow yeah! That request has an even better way of doing what I wanted haha. Apologies

That request has an even better way of doing what I wanted haha.

Oh thank you :blush: I hope it will be useful!


Features/IHasInputs

Implementation of IHasInputs.
Note: not yet tested

Closing PR.  Update has been merged into feature/4series-and-actions-updates branch.


CHANGELOG.md: Set release date for 1.19.1

The change log was missing the release date for 1.19.1.

@rchande looks like this PR got lost. Please review when you have a chance.


Editprofile

QR Code belongs on the EdistArtistProfile page, not the fan viewable artist profile page. Functionality is great, just move where the component is rendered!


Instructions for AP mode

Needs instuctions for what IP address to use when in AP mode.

Ah. I found them in the RCCTL. But can you also put on the github read.md page?


fix: remove source .ts code from published npm package

This PR is for issue - https://github.com/lancedb/lancedb/issues/1358

@universalmind303 updated PR as per your comments


Allow only ingredients that have a recipe to be inserted into machines

As title.
Note to self: remember different handling is required for automation vs GUIs.

This would require building lists of potential inputs for each machine and since it can potentially change at all sorts of different times, is probably unfeasible.


Improve performance of remove on large graphs

Right now remove works by looking for string matches on URIprefixes.  This is very slow on large graphs.  Need a better scheme to remove an entire Collection.

Replace the recursive strategy for fetching and removing SBOL with specific queries for each type of TopLevel.

This might be helped by adding a "I'm a child of this TopLevel" reference on each child.

Good enough for current release.  More testing and improvements for future releases.


Gzip svg

Gzip doesn't compress .svg by default. How can I set default extensions + svg?

Submit a PR to add .svg to this list: https://github.com/mholt/caddy/blob/a8c9d47805f17e6ae1e067b6fbc773d69cbb0ff4/middleware/gzip/request_filter.go#L18

Submitted https://github.com/mholt/caddy/pull/510

Here is another issue. The default ext list includes empty ext "", but in a Caddy file I can't set "" for urls without extension.

What do you mean exactly? (And thanks for the PR!)

I'm trying to add to a Caddyfile this:
gzip {
    ext "", ".html", ".md"
}

To gzip any pages without extension and specified extensions.
But get an error. Something like extension must start from .

The extensions should be space-separated - no commas needed. And thanks for the report; I've committed a fix that will allow the empty value!


Header::Base.bind_header is messy

Current beahviour is merely broken: :op keyword change how to handle multiple fields. But adding others bindings through others calls to .bind_header breaks that as these calls use first defined :op, and not operator define by these calls.

.bind_header is messy but cannot break compatibility out of major version.
An idea is to deprecate it and create a new API to bin headers to other ones. This new API should be simpler. First idea:

on a single call, if there are multiple fields defined, all fileds should match to bind (AND case),
to define more than one possibility, multiple calls to new API should occur.

Examples:
IP.bind IGMP, protocol: 2, frag: 0, ttl: 1, tos: ->(v) { v.nil? 0 : v != 0xc0 }

Will bind IGMP to IP if, and only if, IP protocol is 2, IP frag field is 0, IP TTL is 1 and TOS is not 0xc0.
TCP.bind DNS, dport: 53
TCP.bind DNS, sport: 53

Will bind DNS to TCP if TCP destionation port is 53 or TCP source port is 53.
UDP.bind BOOTP, sport: 67, dport: 68
UDP.bind BOOTP, sport: 68, dport: 67

Will bind BOOTP to UDP if UDP source port is 67 and UDP destination port is 68.
Will also bind BOOTP to UDP if UDP source port is 68 and UDP destination port is 67.


[provider-local] Use default Deployment strategy

How to categorize this PR?

/area dev-productivity
/kind bug
What this PR does / why we need it:
Running a Deployment with replicas=1 and maxUnavailable=1 causes the Available condition to always be True, even if the pod is gone/unhealthy. This effectively renders the health checks useless.
Special notes for your reviewer:
We copied the deployment strategy values from some other provider extension, so those should be double-checked as well if they have the desired settings.

/test pull-gardener-integration


feat: remove pre-commit

Description
This PR removes pre-commit and all related code.
While the idea of pre-commit was a good one, IMO today it brings developers more problems than good. The number of errors that can occur, even if we haven't touched some files, is simply too high. This can cause many users (even experienced ones) to abandon the changes they are preparing and not send a PR.
A side effect may be that maintainers will have more work to do in handling PRs, but it's worth the risk.
Checklist:

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

Regarding the extra work for the maintainers I believe to have seen bots respond to PRs in other repositories, where they automatically call out the failed CI Checks and give hints on how to fix.
Like:
"Code style check failed. Please run php-cs-fixer..."
If this is possible it could replace the very frequent comment of "Please fix the coding style", "Commits must be signed" and so on.

I use it. But if you all agree, I don't disagree.
But the current checks are so basic that I don't see why even @paulbalandan is disabling it.

@michalsn Can we keep pre-commit and setup.sh?
If they are installed automatically, there is no harm.

@kenjis So you only want to remove it from the composer.json so people can apply it manually? Since you seem to actively using it - sure.

But the current checks are so basic that I don't see why even @paulbalandan is disabling it.

For a couple of days, we had our checks failing on the develop branch. I also remember a few cases when errors pop up when we change unrelated things. All these cases would prevent users from sending a PR. Not everyone knows how to skip verification or remove pre-commit entirely. At this point, this seems to be an issue for contributors.

@michalsn Yes, thanks.
The recent php-cs-fixer errors are caused by the update of cs-fixer.
Unfortunately it happens sometime these days.
I agree with making the hook opt-in.

Thanks, everyone!


Update ui tests due to changes to fileInfo's default value.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/2149/
Test PASSed.


Enhancement: Add support for "lazy val" semantics

This issue was originally filed by @Andersmholmgren

When writing immutable classes you often have to trade off between what you calculate in getters vs what you precalculate in ctrs.
If something is somewhat expensive to create, then if you know it is likely to be retrieved more than once in typical usage then you are better off pre calculating (although this leads to uglier code). Otherwise you are better off calculating it on the fly in a getter.
Problem is that you can't always predict how your classes will be used in the future (particularly for reusable libraries) so this choice is difficult to make well.
Languages like Scala have "lazy val" that creates object when first accessed. I'd like to see this kind of thing in Dart.
Note it may not need that kind of syntax, but may instead be a VM optimisation, if the VM can detect that the same value will always be returned and the getter is being called enough to warrant caching the value. I imagine https://code.google.com/p/dart/issues/detail?id=501 would make detecting this easier.
If it is a VM optimisation though it may be good to have an annotation so that the developer can express their expectations about whether the return value should be idempotent as this would allow tooling to warn if it detects it isn't

This comment was originally written by<EMAIL_ADDRESS>2-cents suggestion to avoid adding a lazy keyword:
class X {
  @cached get y => someComputation;
}
Also, null could be a valid value (and computing null could be very expensive :-D), so maybe an extra bool is needed?
Would be nice if the naming was guaranteed

It's great idea! What is the status of this suggestion?


HCX on-site appliance upgrades

I would like to recommend that there is an easy path to upgrade the HCX connectors as they are updated with additional features for both the cloud and the onsite appliance. It is important to make sure they are updated to the same level to reduce failures. Plus with the most updated versions patches and feature enhancements are then available for our customers to use.

@michielvanschaik  @khushal08  could you please check on this?

@khushal08 Can you follow up on this?

Hi @patthiel455 Thanks for the feedback. Can you please elaborate on your comments? or point me to the easy path upgrade you mentioned?

Hi @patthiel455, can you please provide a link to the easy path to upgrade the HCX connectors?

https://docs.vmware.com/en/VMware-HCX/4.8/hcx-user-guide/GUID-02DB88E1-EC81-434B-9AE9-D100E427B31C.html#:~:text=Navigate to the Administration tab,receives the latest service update.
Pat Thiel
From: Michiel van Schaik @.>
Date: Thursday, December 14, 2023 at 2:38 AM
To: Azure/Enterprise-Scale-for-AVS @.>
Cc: Thiel, Pat @.>, Mention @.>
Subject: Re: [Azure/Enterprise-Scale-for-AVS] HCX on-site appliance upgrades (Issue #287)
External Message - Please be cautious when opening links or attachments in email
Hi @patthiel455https://github.com/patthiel455, can you please provide a link to the easy path to upgrade the HCX connectors?
—
Reply to this email directly, view it on GitHubhttps://github.com/Azure/Enterprise-Scale-for-AVS/issues/287#issuecomment-1855501764, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BB3XATV3JNXRVITZWE2YRBLYJLCIJAVCNFSM6AAAAAA6ZSM7OSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVGUYDCNZWGQ.
You are receiving this because you were mentioned.Message ID: @.***>

Victor, please add this to the ADO board.

This Issue will be now tracked in the ADO board.

@patthiel455, there is already a page in the AVS documentation about how to upgrade HCX: https://learn.microsoft.com/en-us/azure/azure-vmware/upgrade-hcx-azure-vmware-solutions.


I got a different results on test.

I run the test code. The result I got is far different from the result of yours.
For example, the result of BERTNLU-RuleDST-RulePolicy-TemplateNLG model is
complete number of dialogs/tot: 0.901     success number of dialogs/tot: 0.571     average precision: 0.7524100652627299   average recall: 0.905928745583918   average f1: 0.7967497596208643   average book rate: 0.905176116838488   average turn (succ): 10.325744308231174   average turn (all): 12.374   percentage of domains that satisfy the database constraints: 0.752   percentage of dialogs that satisfy the database constraints: 0.617
Is that normal?

we are now updating the evaluator. It will be more strict (check whether the entity appears in the database). When we finish, we will update the end2end result.


Remove testnet subdir

Move the modules from testnet to src.

https://github.com/input-output-hk/cardano-node/issues/4558

merge after: https://github.com/input-output-hk/cardano-node/pull/4544

So now I would do the following:

cardano-testnet/src/Testnet/Commands -> cardano-testnet/src/Parsers
cardano-testnet/src/Testnet/{Babbage,Byron,Cardano,Shelley}.hs should remain where they are and the test moved to the src dir

bors r+

bors r+


Improved wording in S2I appendix

Put each sentence on a separate line (Asciidoctor recommendation).
Removed superfluous words.
Minor fixes for consistency.

Partially resolves #670.

Should maybe "Builder" be "builder"?

@tradej @inoxx03 please hold this for now

@rhoads-zach, can we un-WIP and merge this?

merging...

merged: a151556bdc6ba24241f4dd2c5424137033f5f720


[Feat] Add a todo list

Description
@beRajeevKumar assign me this issue under gssoc-ext , hacktoberfest-accepted and level2 labels plzzz
Screenshots
No response
Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I'm a GSSoC'24-Extd contributor
[X] I'm a Hacktoberfest'24 contributor
[X] I am willing to work on this issue (optional)

@beRajeevKumar pls assign me this issue


Multiple Select and Numerical Answer Type Questions + (Dynamic #choices)

Is your feature request related to a problem? Please describe.
Currently the app only provides MCQ type questions. If I was creating a test, I would expect to put in a healthy mix of NAT and MSQ as well.
Describe the solution you'd like
(Assuming backward compatibility is required)
The QuestionSchema model can be extended to hold a information about the type of question. A member like category, since type is already used. The Update() in the tests controller can then be updated to handle scoring for the selected type.
For NAT questions, this is rather simple to implement - answer holds the correct number. For MSQ, the answer string can be used as an adhoc bitfield.
(No backwards compatibility)
QuestionShema is very rigid right now and provides very little scope for improvement down the road. Here are some simple ways it should be refactored.
QuestionSchema.options should be an array, instead of 4 statically defined members. This allows for

Dynamic number of choices
Partial scoring/negative marking for each choice

QuestionSchema.answer should be a bit field (integer) describing which question are correct. In case of NAT, this would be the answer itself. This also allows an easy way to fix the issue of the answer needing to be retyped when creating the question. This current method presents an opportunity for human error, namely typos. With a bitfield, the teacher only needs to select which question(s) are correct and the clientside can generate the bitfield in the background.
QuestionSchema.group would point to the group of the question (currently what type does)
QuestionSchema.type would point to the type of the question [MCQ|MSQ|NAT]
Describe alternatives you've considered
The system doesn't provide any way to give MSQs or NATs.
Additional context
nada, nothing here yet. I can provide mocksup to show the program flow and possible UI depending on whether the maintainer wants backwards compatibility.

@aavishkarmishra please let me know how important backwards compatibility is.

@aavishkarmishra please let me know how important backwards compatibility is. 🙌🏼

Backward compatibility is not required as much,  we anyway have to update test view and create test according to this issue.
So according to me this will not create any problem, feel free to create pull request.

Cools. I'll start working on a PR


Default ssh from centos machine doesnot connect to netopeer server

Hi,
I have compiled Netopeer2 using QNX 652 ppc cross compilation and ran the netopeer2 , it works fine .
I am facing an issue while doing ssh to netopeer server . Following is the command I used
ssh<EMAIL_ADDRESS>-p 830 -s netconf
on enabling verbose mode on both client and server following are the logs obtained:
NETOPEER2 SERVER SIDE:
[INF]: Accepted a connection on <IP_ADDRESS>:830.
[2019/12/02 18:55:10.005959, 2] ssh_pki_import_privkey_base64:  Trying to decode privkey passphrase=false
[2019/12/02 18:55:10.011959, 2] ssh_server_connection_callback:  SSH client banner: SSH-2.0-SSHJ_0.21.2_dev.0.uncommitted+9d4f8fc
[2019/12/02 18:55:10.011959, 2] ssh_analyze_banner:  Analyzing banner: SSH-2.0-SSHJ_0.21.2_dev.0.uncommitted+9d4f8fc
[2019/12/02 18:55:10.019959, 2] ssh_kex_select_methods:  Negotiated curve25519-sha256@libssh.org,ssh-rsa,aes128-ctr,aes128-ctr,hmac-sha1,hmac-sha1,none,none,,
[2019/12/02 18:55:10.636959, 2] ssh_packet_server_curve25519_init:  SSH_MSG_KEX_ECDH_REPLY sent
[2019/12/02 18:55:10.637959, 2] ssh_init_rekey_state:  Set rekey after<PHONE_NUMBER> blocks
[2019/12/02 18:55:10.637959, 2] ssh_init_rekey_state:  Set rekey after<PHONE_NUMBER> blocks
[2019/12/02 18:55:10.637959, 2] ssh_packet_server_curve25519_init:  SSH_MSG_NEWKEYS sent
[2019/12/02 18:55:11.940959, 2] ssh_packet_newkeys:  Received SSH_MSG_NEWKEYS
[INF]: Received an SSH message "request-service" of subtype "ssh-userauth".
[INF]: Received an SSH message "request-auth" of subtype "password".
[INF]: User "guest" authenticated.
[INF]: Received an SSH message "request-channel-open" of subtype "session".
[INF]: Received an SSH message "request-channel" of subtype "subsystem".
[2019/12/02 18:55:16.525958, 2] grow_window:  growing window (channel 43:0) to 1280000 bytes
[INF]: Generated new event (netconf-session-start).
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 7: thread 3 event new RPC.
[INF]: Session 7: thread 3 event new RPC.
[INF]: Session 7: thread 3 event session terminated.
[INF]: Generated new event (netconf-session-end).
[INF]: Accepted a connection on <IP_ADDRESS>:830.
[2019/12/02 19:07:57.251882, 2] ssh_pki_import_privkey_base64:  Trying to decode privkey passphrase=false
[2019/12/02 19:07:57.256882, 2] ssh_server_connection_callback:  SSH client banner: SSH-2.0-OpenSSH_5.3
[2019/12/02 19:07:57.256882, 2] ssh_analyze_banner:  Analyzing banner: SSH-2.0-OpenSSH_5.3
[2019/12/02 19:07:57.256882, 2] ssh_analyze_banner:  We are talking to an OpenSSH client version: 5.3 (50300)
[2019/12/02 19:07:57.259882, 2] ssh_kex_select_methods:  Negotiated diffie-hellman-group-exchange-sha256,ssh-rsa,aes128-ctr,aes128-ctr,hmac-sha1,hmac-sha1,none,none,,
[2019/12/02 19:07:57.449882, 2] ssh_packet_server_dhgex_request:  dh-gex: DHGEX_REQUEST[1024:2048:8192]
[2019/12/02 19:07:57.463882, 2] ssh_retrieve_dhgroup_file:  Selected 4096 bits modulus out of 28 candidates in 30 lines
[2019/12/02 19:08:18.675880, 2] ssh_init_rekey_state:  Set rekey after<PHONE_NUMBER> blocks
[2019/12/02 19:08:18.675880, 2] ssh_init_rekey_state:  Set rekey after<PHONE_NUMBER> blocks
[ERR]: SSH key exchange timeout.
CLIENT SIDE:
$ssh -v<EMAIL_ADDRESS>-p 830 -s netconf
OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to <IP_ADDRESS> [<IP_ADDRESS>] port 830.
debug1: Connection established.
debug1: identity file /home/vburman/.ssh/identity type -1
debug1: identity file /home/vburman/.ssh/identity-cert type -1
debug1: identity file /home/vburman/.ssh/id_rsa type -1
debug1: identity file /home/vburman/.ssh/id_rsa-cert type -1
debug1: identity file /home/vburman/.ssh/id_dsa type -1
debug1: identity file /home/vburman/.ssh/id_dsa-cert type -1
debug1: identity file /home/vburman/.ssh/id_ecdsa type -1
debug1: identity file /home/vburman/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version libssh_0.9.0
debug1: no match: libssh_0.9.0
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-sha1 none
debug1: kex: client->server aes128-ctr hmac-sha1 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<2048<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '[<IP_ADDRESS>]:830' is known and matches the RSA host key.
debug1: Found key in /home/vburman/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
Connection closed by <IP_ADDRESS>
While searching through google I found that either MTU size or algorithms needs to be changed.
I tried using the algorithm change and it worked.
Following is the command I used:
ssh -o KexAlgorithms=diffie-hellman-group14-sha1<EMAIL_ADDRESS>-p 830 -s netconf
While debugging more I tried using ssh -vvv , following is the details of client and server I got :
$ssh -vvv<EMAIL_ADDRESS>-p 830 -s netconf
OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to <IP_ADDRESS> [<IP_ADDRESS>] port 830.
debug1: Connection established.
debug1: identity file /home/vburman/.ssh/identity type -1
debug1: identity file /home/vburman/.ssh/identity-cert type -1
debug1: identity file /home/vburman/.ssh/id_rsa type -1
debug1: identity file /home/vburman/.ssh/id_rsa-cert type -1
debug1: identity file /home/vburman/.ssh/id_dsa type -1
debug1: identity file /home/vburman/.ssh/id_dsa-cert type -1
debug1: identity file /home/vburman/.ssh/id_ecdsa type -1
debug1: identity file /home/vburman/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version libssh_0.9.0
debug1: no match: libssh_0.9.0
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.3
debug2: fd 4 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug3: Wrote 960 bytes for a total of 981
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-dss-cert-v00@openssh.com,ssh-rsa,ssh-dss
debug2: kex_parse_kexinit<EMAIL_ADDRESS>debug2: kex_parse_kexinit<EMAIL_ADDRESS>debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group18-sha512,diffie-hellman-group16-sha512,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: rsa-sha2-512,rsa-sha2-256,ssh-rsa
debug2: kex_parse_kexinit: aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-cbc
debug2: kex_parse_kexinit: aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-cbc
debug2: kex_parse_kexinit: hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: kex_parse_kexinit: hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: kex_parse_kexinit: none
debug2: kex_parse_kexinit: none
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_setup: found hmac-sha1
debug1: kex: server->client aes128-ctr hmac-sha1 none
debug2: mac_setup: found hmac-sha1
debug1: kex: client->server aes128-ctr hmac-sha1 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<2048<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug3: Wrote 24 bytes for a total of 1005
debug2: dh_gen_key: priv key bits set: 192/320
debug2: bits set: 2012/4096
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug3: Wrote 528 bytes for a total of 1533
debug3: put_host_port: [<IP_ADDRESS>]:830
debug3: put_host_port: [<IP_ADDRESS>]:830
debug3: check_host_in_hostfile: host [<IP_ADDRESS>]:830 filename /home/vburman/.ssh/known_hosts
debug3: check_host_in_hostfile: host [<IP_ADDRESS>]:830 filename /home/vburman/.ssh/known_hosts
debug3: check_host_in_hostfile: match line 1
debug3: check_host_in_hostfile: host [<IP_ADDRESS>]:830 filename /home/vburman/.ssh/known_hosts
debug3: check_host_in_hostfile: host [<IP_ADDRESS>]:830 filename /home/vburman/.ssh/known_hosts
debug3: check_host_in_hostfile: match line 1
debug1: Host '[<IP_ADDRESS>]:830' is known and matches the RSA host key.
debug1: Found key in /home/vburman/.ssh/known_hosts:1
debug2: bits set: 2046/4096
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: Wrote 16 bytes for a total of 1549
Also when I tried putting each one of the algorithm listed in client's side (i.e diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1) , 2 of them failed.
for "diffie-hellman-group-exchange-sha1"  server logs said:
SSH key exchange error (kex error : no match for method kex algos: server [curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group18-sha512,diffie-hellman-group16-sha512,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1], client [diffie-hellman-group-exchange-sha1]).
for "diffie-hellman-group-exchange-sha256" server behaves the same as what direct ssh to the server will do , as mentioned at the start.
Other 2 Algo worked fine
ISSUE:
How can I make direct ssh (ssh<EMAIL_ADDRESS>-p 830 -s netconf) to work?
Thanks & Regards,
Vishal

Hi,
if you use the latest libnetconf2, all the key types supported by libssh should be allowed. If it still does not work then there is nothing more I can do and you will have to use a newer ssh(1) version.
Regards,
Michal


User Management Panel UI

as-is: only display components if the user has identifier
to-be: display components if project supports identifier. If user doesn't have the identifier, add an option to add it

as-is: only display components if the user has identifier to-be: display components if project supports identifier. If user doesn't have the identifier, add an option to add it

Need to add a new public frontend api v2 endpoint that returns which identifier types (+ full name) are enabled?

At first I thought the updated @corbado/types code needs to be published to npm registry, but it seems the issue is bigger than that:
Simply using LoginIdentifierType from packages/react breaks the lerna build command. If I add @corbado/types to packages/react/webpack.prod.js and packages/web-js/tsconfig.bundler.json, lerna build is fixed but running react playground fails.
Since everything works correctly outside this branch, it seems that modifying interdependent packages (react, shared-ui, types) simultaneously seems to cause the problem. Is there a best-practice for this that i'm not aware of?

At first I thought the updated @corbado/types code needs to be published to npm registry, but it seems the issue is bigger than that:
Simply using LoginIdentifierType from packages/react breaks the lerna build command. If I add @corbado/types to packages/react/webpack.prod.js and packages/web-js/tsconfig.bundler.json, lerna build is fixed but running react playground fails.
Since everything works correctly outside this branch, it seems that modifying interdependent packages (react, shared-ui, types) simultaneously seems to cause the problem. Is there a best-practice for this that i'm not aware of?

It works when I use LoginIdentifierType from shared-ui instead of from corbado/types... why??? :(

Improve the UI together with @Dopeamin => TODO: make a list of required changes
Check for usage of translations (compare with PasskeyList)
Include into previewui
Think about documentation in README.mds of the javascript repo and in docs.corbado.com (compare with PasskeyList)
Think about pentesting


Dark Axe crashes server

Whenever I shift-right click with the Dark Axe the server crashes.

Can you post a crash log?

Here it is! http://pastebin.com/JVcg2S6B

Update to EnderIO 2.2.8 build 367


pts-stage1: scripts for benchmarking perf.

git_info.py and spec.py are prepared in advance for pts website backend.
calling ./hipblastlt-perf can produce the csv for our current interested problem sets (first version in this PR)
This PR shows how to add benchmark set for matmul (using client.cpp) and amax (using client_extop_amax.cpp)
A quick example is to run clients/scripts/performance/hipblaslt-perf --suite all and then you can get csv files

Has fixed more Copyright year in .py files


Extreme Lag & CPU Usage (1080p = PC Killer)

I'm using this library make an application to view and record from multiple cameras at the same time, sort of like a virtual camera DVR system.
I started with Adobe AIR, but Flash has a terrible camera API, and there's no way to detect camera plugging in/unplugging, so I ported all the code to Java. It does work, but unfortunately it lags WAY too much to be useful. I'm getting 6 to 10 redraws/sec at 720p with just the 2 built-in ones, and with 6 cameras at 1080p, which is what I want to support, the lag is just insane. The fans kick in, the CPU goes into overdrive, and if you leave it running long enough, you'll have yourself a great glass cook-top.
Hmm... simple camcorder app using more resources that CoD Black Ops 3? Yeah that sounds about right.
Seriously though, even when using the native driver, and with just one camera at 1080p, it still lags badly and takes CPU usage to 100% consistently on all 4 cores. Is there just no hardware acceleration or something?
It's a great library, if only I could actually use it without setting the resolution to less than 640x480. And this isn't a Raspberry Pi or anything, this is a high-end gaming PC. (well, technically gaming tablet PC)
The AIR version can handle 6 webcams fine without lag on the same device. (Although, sometimes the internal cameras don't want to work with external ones connected. Again, the Flash camera API is terrible.)
EDIT: I just found out that with native camera driver, using literally any resolution other than 1080p (including higher at 1920x1440), significantly reduces the lag. It also gets rid of the random connection issues that occur when set to 1080p. I guess it's just an HDTV hater? The default driver still lags severely even at lower resolutions, though.

Hi @Pecacheu,
In regards to your question:

Simple camcorder app using more resources that CoD Black Ops 3? Yeah that sounds about right.

If you consider what components and processes are used in these products?
Does CoD Black Ops 3 transfers megabytes of data from USB and copy memory from native to direct buffers and to offscreen using processor? Nope. It uses GPU for most of the load.
Does USB uses hardware acceleration or GPU for data transfer? This would be nice, but unfortunately USB 2.0 uses CPU-based polling model in order to receive device communications. You can imagine CPU asking USB controller "Is it done?" over and over again.
When you add things like memory operations, e.g. copy from webcam buffers, to direct buffers, then to heap, then again to heap (e.g. image resize which is the most expensive operations of all), and finally to offscreen. This is all done by CPU. Only drawing can be sometimes accelerated. All other operations are done by CPU. I'm sorry to disappoint you but Java was never good at this.

Is there just no hardware acceleration or something?

Java has "some" hardware acceleration, but it works in some cases, not always, so forget about features from Black Ops 3 where GPU is used for 95% of work. Java uses hardware acceleration only for drawing, and only in some case when buffer is not modified (e.g. resized). If you touch even one pixel from the buffer Java will silently give up trying to accelerate it.

And this isn't a Raspberry Pi or anything, this is a high-end gaming PC.

You may have the best graphic card in the world, 1024 GB of RAM, but bottleneck will always be USB controller and CPU.

sometimes the internal cameras don't want to work with external ones connected

This is probably due to USB capacity limit (60 MB/s).

I just found out that with native camera driver, using literally any resolution other than 1080p (including higher at 1920x1440), significantly reduces the lag. It also gets rid of the random connection issues that occur when set to 1080p. I guess it's just an HDTV hater?

That's really hard to tell. I'm not sure what is the difference, but maybe for 1080p different format is used than for the other ones, e.g. RGB instead of JPG.

The default driver still lags severely even at lower resolutions, though.

Yes, default driver was never the best one to use, but it was the most portable one. You can use it on almost every OS and that's why it'd default. The webcam-capture-driver-native performs much better since it uses JNI instead of BridJ and use modern framework under the hood, namely libyuv instead of outdated libvideoinput which is used by OpenIMAJ in default driver on Windows.

And in regards to:

I just found out that with native camera driver, using literally any resolution other than 1080p (including higher at 1920x1440), significantly reduces the lag.

Maybe it's worth to ask directly https://github.com/frankpapenmeier/webcam-capture-driver-native

I will concede your point about video games using the GPU mostly rather than than CPU.
Also, the issue with Adobe AIR was defiantly not a bandwidth issue, since it only happens in the latest version.
Anyway, the native driver mostly works well, so I'll probably just use that. It does error out (NullPointerExcepton, I think) every once and a while while opening a Webcam, which has happened with only one camera connected, but otherwise it usually works.
I also just tested on my (not as powerful as the tablet) MacBook Pro, and things don't go quite so well there.
On the default driver, even with only the built-in iSight at low-res, it's already full-blast with the fans, and it's getting hot FAST.
As for the native driver, there's no lag, including at 1080p, but it has a lot more connection issues on the Mac, and it doesn't even recognize the built-in iSight. It also crashes the whole app if no cameras are connected, and occasionally spews out an exception if one is unplugged. I could probably just open a new issue on the native driver Github for that.
Oh, also is there a way to draw over the camera view? Currently, I'm hijacking the paintComponent method by extending the WebcamPanel class, but it draws my geometry offset by the X,Y of the component, and I can't figure out how to correct that.

In regards to:

It does error out (NullPointerExcepton, I think) every once and a while while opening a Webcam

I would create issue with detailed explanation, code sample, stack trace and debug info. You can make this project better just by doing this because good software cannot be build without a good testers.
Resolving issues is another matter. Often problems reported by one user cannot be reproduced by the other one. Problems differs from system to system and strongly depend on the hardware. This is where people with programming skills are welcome. These projects are open source, to be used for free by everyone and from everywhere. Therefore everyone with programming skill can improve them and fix bugs.

On the default driver, even with only the built-in iSight at low-res, it's already full-blast with the fans, and it's getting hot FAST.

Since I do not own Mac I'm pretty sure there can be some bugs and performance issues. When I was writing webcam-capture code I was able to test only on Windows and Linux. The only fixes I did for Mac was when I borrowed it from my colleague for several days but I haven't observe CPU overload in any scenario in that time. However, I'm aware that other users reported problems on newer Macs (e.g. https://github.com/sarxos/webcam-capture/pull/257) but I have no way to verify and test it.

Oh, also is there a way to draw over the camera view? Currently, I'm hijacking the paintComponent method by extending the WebcamPanel class, but it draws my geometry offset by the X,Y of the component, and I can't figure out how to correct that.

Yes there is. You have two options:

Use WebcamImageTransformer to draw on the image before it's returned from webcam, so when you invoke webcam.getImage() the changes in image are already made, or
Use WebcamPanel.Painter interface to draw on WebcamPanel's Graphics2D without a need to override paintComponent(..) or extending WebcamPanel itself.

Examples:

Webcam Capture Image Transformer Example (check this file for more details, especially take special care to check how transform(BufferedImage) method work and webcam.setTransformer(...))
Webcam Capture Custom Painter Example (check MyPainter class in this file and two methods: paintPanel(..) and paintImage(..))

These two approaches differs in such a way that the first one (namely image transformation) draws directly in image and modifies it, and the second one (namely panel painter) draws on a component (panel itself) and do not modify image.

I didn't read everything, (just the first post) but i was trying to build something similar, with the same issue.
Iam NO expert to this libary but i try to explain what I think is going wrong:
This library is using Java Swing for the Panels which is using some kind of Hardware acceleration in the background. However this acceleration is horrible slow and causes a huge CPU overhead. Addionaly you can't realy access this accelleration asynchronously. So you have one single thread which needs to resize and draw all of your images with realy poor GPU acceleration. I was gaining signifficant fps gains by using a CPU based Multithreaded resizing method, but painting was still too slow.
So I moved away from Swing and the JMF to get better GPU accelleration using OpenGL, with great success. I can record and display 4x 1080p cams @60fps at the same time, without any lags.
You can clone this repo: https://github.com/Crigges/ShootAlyzzerGL if you want to see the full project or just take a look @ https://github.com/Crigges/ShootAlyzzerGL/blob/master/core/src/systems/crigges/gui/CameraActor.java and https://github.com/Crigges/ShootAlyzzerGL/blob/master/core/src/systems/crigges/gui/CameraController.java

Thanks for the suggestion. In fact, I spent the last 3 days (except for yesterday, I had to help set up the Christmas lights) porting the code to use LibGDX. Naturally, most of that time was spent googling for help and errors. From your code I used most of your draw() method from CameraActor.java and a bit of the ImageFetcher class from CameraController.java. I couldn't get any menu drop-down interfaces of LibGDX to work no matter what I tried, so for the menu bar I just used my existing Swing code, and made the JFrame fullscreen, always-on-top, and transparent, so it looks like a Mac menu bar at the top of the screen.
Anyway, LibGDX does not disappoint, significantly improving the performance of the default driver, getting nearly 30 fps with 2 cameras 1080p, and even 6 at 1080p only takes it down to 12 or 15 fps. That's even better than the native driver was before! Not as good as the buttery-smooth Adobe AIR version, but still, impressive.
I can't test it with the native driver, though. If I turn on the native driver, I get this error on a line where I call synchronized(camSync) { cam.getImageBytes(buf); }. The thread in question doesn't do anything but call that every so often, then calculate average the FPS over the last 5 frames. And the buffer should be the right size, assuming that cam.getViewSize() (called after webcam was opened) reported the correct dimensions.

[CamView3] Video thread for 'Rear Camera' error:
com.github.sarxos.webcam.WebcamException: Cannot execute task
        at com.github.sarxos.webcam.WebcamProcessor$AtomicProcessor.process(WebcamProcessor.java:72)
        at com.github.sarxos.webcam.WebcamProcessor.process(WebcamProcessor.java:140)
        at com.github.sarxos.webcam.WebcamTask.process(WebcamTask.java:46)
        at com.github.sarxos.webcam.ds.cgt.WebcamReadBufferTask.readBuffer(WebcamReadBufferTask.java:22)
        at com.github.sarxos.webcam.Webcam.getImageBytes(Webcam.java:722)
        at com.pecacheu.camview.VideoPane.lambda$0(Camera.java:109)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.nio.BufferOverflowException
        at java.nio.DirectByteBuffer.put(Unknown Source)
        at com.github.sarxos.webcam.ds.nativeapi.NativeWebcamDevice.getImageBytes(NativeWebcamDevice.java:168)
        at com.github.sarxos.webcam.ds.cgt.WebcamReadBufferTask.handle(WebcamReadBufferTask.java:41)
        at com.github.sarxos.webcam.WebcamProcessor$AtomicProcessor.run(WebcamProcessor.java:81)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        ... 1 more

Hi @Pecacheu,
Just to clarify. You wrote:

LibGDX does not disappoint, significantly improving the performance of the default driver, getting nearly 30 fps with 2 cameras 1080p, and even 6 at 1080p only takes it down to 12 or 15 fps. That's even better than the native driver was before!

Please note that driver performance is not related to drawing at all and therefore LibGDX does not increase driver performance. The driver job is to download image from webcam and only that. Different drivers differs in such a way that the download speed (via UVC interface) is faster or slower. It's also measured in FPS, but this is how fast frames can be downloaded from webcam, not how fast frames can be painted. Just to summarize - it's your drawing code performance increased by LibGDX, not the driver performance.


Update CS rates

Update rates according to this document page 75 of the PDF, 67 of the document

May as well replace CS with IT too 😛

@sboots I think you're the only one with merge rights here


build optimizer flag only reduces app size 0.1% max

Bug Report or Feature Request (mark with an x)
- [ x] bug report -> please search issues before submitting (though not sure it is a bug)
- [ ] feature request

Versions.
@angular/cli: 1.4.4
node: 6.10.3
os: darwin x64
@angular/animations: 4.1.3
@angular/common: 4.1.3
@angular/compiler: 4.1.3
@angular/core: 4.1.3
@angular/forms: 4.1.3
@angular/http: 4.1.3
@angular/platform-browser: 4.1.3
@angular/platform-browser-dynamic: 4.1.3
@angular/router: 4.1.3
@angular/cli: 1.4.4
@angular/compiler-cli: 4.1.3
@angular/language-service: 4.1.3
typescript: 2.3.4
Repro steps.
I ran these commands and compared the output:
ng build --prod --build-optimizer --aot false --env=dev-nl --sm false --base-href="/app/"
ng build --prod --aot false --env=dev-nl --sm false --base-href="/app/"
Command outputs:

Desired functionality.
angular.io apparantly reduced there output size by 50%. I do not expect results anywhere near that size. But I would have thought to gain a little more then 0.1%.
What do you think about this?

Oh my.. noticing --aot false just now, as I am first testing this functionality on the Dev environment. Will be back with new results soon...

Ok, with AOT the new results.
Commands
ng build --prod --env=dev-nl --sm false --base-href="/app/"
ng build --prod --build-optimizer --env=dev-nl --sm false --base-href="/app/"
Outputs

The build optimizer is designed to remove unused code with the primary target being vendor libraries (angular, etc.).  However, the more of the vendor libraries the application uses the less the build optimizer can do.  Also, as an application grows larger the ratio of vendor code to application code moves toward application code; making the potential savings percentage decrease as the ratio shifts toward the application.
In general, rather than the total size of the application, the more important metric is the size of the files on the critical path.  These affect the first render time of the application and in this case they would be inline, polyfills, main, and styles.  A decrease here will lower the wait time a user will experience before using the application.  This is in contrast to the lazy loaded bundles which can be prefetched in the background while the user is interacting with the application.

Ah thanks for the explanation., I was not aware that the build-optimizer was mainly intended for libraries and not actual application code. Although it makes sense, because all code we write should be in use and not stripped away like library code. I Guess the application/library ratio of our codebase is the reason for the small gain.


Remove all default styling

I might be missing something, but I cannot find out how you can remove the default styling, except for overwriting it. What I'm doing now is adding a custom class that resets all styling of the Toaster component, like this:
.resetToaster {
  background: transparent !important;
  color: currentColor !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

Is there a way to not add the styling in the first place?

Hi! Instead of removing all styles, I'd recommend to create your own renderer, which doesn't come with any styles.
import { Toaster, resolveValue } from 'react-hot-toast';

// In your app
<Toaster>
  {(t) => (
    <div
      style={{
        opacity: t.visible ? 1 : 0,
        background: 'white',
        padding: 8,
        display: "flex"
     }}>
      {t.icon}
      {resolveValue(t.message, t)}
    </div>
  )}
</Toaster>;

@timolins thanks, that works!


Error while deploying extension with Terraform

Hello,
While deploying with Terraform, I have the following error

Helm installation failed : Unable to render the helm chart and substitue helm values to get a valid yaml : Recommendation Please check if the config settings provided are valid : InnerError [failed to install CRD crds/prometheus-crd.yaml: customresourcedefinitions.apiextensions.k8s.io is forbidden: User "system:serviceaccount:kube-system:ext-installer-azureml-extension" cannot create resource "customresourcedefinitions" in API group "apiextensions.k8s.io" at the cluster scope]

Here's a part of the Terraform code:
data "azurerm_key_vault_certificate_data" "aml" {
  key_vault_id = var.keyvault_id
  name         = var.machine_learning_extension.ssl_keyvault_certificate_name
}

resource "azurerm_resource_provider_registration" "kubernetes_configuration_registration" {
  name = "Microsoft.KubernetesConfiguration"
}

resource "azurerm_resource_provider_registration" "extension_manager_registration" {
  count = var.providers_registration_enabled ? 1 : 0

  name = "Microsoft.ContainerService"

  feature {
    name       = "AKS-ExtensionManager"
    registered = true
  }
}

resource "azurerm_kubernetes_cluster_extension" "machine_learning" {
  name           = "azureml-extension"
  cluster_id     = azurerm_kubernetes_cluster.aks.id
  extension_type = "Microsoft.AzureML.Kubernetes"

  configuration_settings = {
    enableTraining               = true
    enableInference              = true
    inferenceRouterServiceType   = "loadBalancer"
    allowInsecureConnections     = false
    internalLoadBalancerProvider = "azure"
    privateEndpointILB           = true
    sslCname                     = var.machine_learning_extension.endpoint_fqdn
  }

  configuration_protected_settings = {
    sslKey  = data.azurerm_key_vault_certificate_data.aml.key
    sslCert = data.azurerm_key_vault_certificate_data.aml.pem
  }

  depends_on = [azurerm_resource_provider_registration.kubernetes_configuration_registration, azurerm_resource_provider_registration.extension_manager_registration]
}

Deployment is made with a Service Principal.

The issue is that the extension must be deployed with the azureml namespace, default value does not work.

I do not think so....
You are missing a couple of needed configuration settings and also use some not existent (privateEndpointILB)
check
https://github.com/Azure/AML-Kubernetes/blob/master/files/terraform-template.tf
and
https://github.com/Azure/AML-Kubernetes/blob/master/docs/deploy-extension.md#review-azureml-deployment-configuration-settings
Also, reconsider using "Microsoft.AzureML.Kubernetes".
https://github.com/MicrosoftDocs/azure-docs/issues/110642


Option to run Deno with minimal privileges

Hello! First of all, congratulations on this runtime, it's a gem.
I was wondering if it would be possible to add an option to run functions with minimal privileges. In our case, we want the functions to not have permission to access the network, or only have access to a few specific domains.
Best regards and thanks!

Hi! Currently the --allow-all is hard-coded, but I would be open to a pull request making it configurable.
Note though that the Lambda Runtime API requires access to the HTTP server located at the value container in env var AWS_LAMBDA_RUNTIME_API, so that will need to always be allowed.


Unable to handle deleted or rejected attachments without Name tags

When the lambda encounters a deleted or rejected (manually) attachment, the tag has not yet been populated with the Name attribute, on processing the lambda encounters a null pointer exception and crashes.
See the following excerpt of the offending lines
nameTag, _ := a.Tags["Name"]
if nameTag != allocation.Name {
  return TagAttachment, "name tag does not match allocation", nil
}

We do a direct reference to the value with key, instead of using the standardised method to make safe calls.
The below method adds a guard when fetching key values.
if nameTag, ok := a.Tags["Name"]; ok {
  if nameTag != allocation.Name {
	  return TagAttachment, "name tag does not match allocation", nil
  }
}

I'll shortly add a PR that correctly handles this.

Ah, sorry about that one! Great fix 👍

Ah, sorry about that one! Great fix 👍


[Remove Six] Remove dependency on six

Description

Remove Six from python dependencies.

Changes included

Removed Six from following files:

grpc_python_deps.bzl
setup.py
requirements.bazel.txt
requirements.txt
Multiple prepare build rc files.
Multiple BUILD.bazel files.

Testing

Since Six was installed on our testing docker images, tested manually by those steps:

Import Six in __init.py__ file and print no_six_found in case of ImportError.
Uninstall Six before running tests by adding python3 -m pip uninstall -y six command to grpc_python_bazel_test_in_docker.sh
Run test and verified that all tests passed.

Test log.
Only _logging_test failed because no_six_found was printed.

A couple meta notes:

I removed the [Python] tag from the title since we already have the lang/python label.
I changed the labels to ensure this ends up in the release notes.

Looks like merging that broke the arm64 tests:
+ tools/run_tests/run_tests_matrix.py -f basictests_arm64 linux csharp --inner_jobs 4 -j 1 --internal_ci --bq_result_table aggregate_results
Traceback (most recent call last):
  File "/tmpfs/altsrc/github/grpc/tools/run_tests/run_tests_matrix.py", line 24, in <module>
    from python_utils.filter_pull_request_tests import filter_tests
  File "/tmpfs/altsrc/github/grpc/tools/run_tests/python_utils/filter_pull_request_tests.py", line 21, in <module>
    import six
ModuleNotFoundError: No module named 'six'
+ FAILED=true
+ echo 'Exiting gRPC main test script.'
Exiting gRPC main test script.
+ '[' true '!=' '' ']'
+ exit 1

https://source.cloud.google.com/results/invocations/6530cc84-a964-4fa9-9be6-be9f5093e431

We kept six in run_test/* directory intentionally, looks like we need keep it in some of the dependency files too.

@jtattermusch Is there a reason why this test is not part of PR presubmit?

Created PR to fix this: https://github.com/grpc/grpc/pull/31390


Update documentation about init_state

Codecov Report

Merging #115 (8b8c582) into develop (11c86c2) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           develop      #115   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           33        34    +1
  Lines          905       940   +35
=========================================
+ Hits           905       940   +35

Impacted Files
Coverage Δ

pfhedge/instruments/european.py
100.00% <ø> (ø)

pfhedge/instruments/underlier.py
100.00% <ø> (ø)

pfhedge/features/_getter.py
100.00% <0.00%> (ø)

pfhedge/features/__init__.py
100.00% <0.00%> (ø)

pfhedge/features/features.py
100.00% <0.00%> (ø)

pfhedge/features/functional.py
100.00% <0.00%> (ø)

Continue to review full report at Codecov.

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


py-spy: disable failing test

Description of changes
Fix build (https://hydra.nixos.org/build/211604961)

Things done

Built on platform(s)

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

[ ] 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/)
23.05 Release Notes (or backporting 22.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

[ ] Fits CONTRIBUTING.md.

@ofborg build py-spy

Result of nixpkgs-review pr 221057 run on x86_64-linux 1

3 packages built:

py-spy
python310Packages.ray
python311Packages.ray

@ofborg build py-spy python310Packages.ray python311Packages.ray


CustomMultiDayConfiguration haven't the property showHeader like MonthConfiguration

Hello team ,
i see that in the last release was added for MonthConfiguration the boolean property showHeader that hide or show the header for month view;
Is possible introduce this feature for  CustomMultiDayConfiguration  with the property number of days set to 1?
i remember that for the old version this property is present also for CustomMultiDayConfiguration
Thank you a lot for your work
Regards

Hi this already exists there are two parameters here:
_showDayHeader / showDayHeader
and
_showMultiDayHeader / showMultiDayHeader

Hi this already exists there are two parameters here: _showDayHeader / showDayHeader and _showMultiDayHeader / showMultiDayHeader

Ok , but if in CustomMultiDayConfiguration   set the property showDayHeader to false the Headerof calendar is not hidden

I believe that the showHeader in the monthView does not hide the "calendarHeader" it just hides the day names.

Oh I see what you mean the weekNumber/dayNumber is still shown even if you hide the header. will fix.

Oh I see what you mean the weekNumber/dayNumber is still shown even if you hide the header. will fix.

yes i am sorry not the header but yes the day number


[Critical bug] fix: default Activity's taskQueue

What was changed

Change the default value of Activity's taskQueue from default to null.
Why?

It allows automatically propagating Workflow's queue to the Activity queue name by default, as described in the documentation
Checklist

Closes

How was this tested:

Tested locally.

Any docs updates needed?

Nope.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Oleg Coroliov seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Oleg Coroliov seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

It can be breaking change.
@wolfy-j wdyt?

Tests have been fixed and the code has been rebased.
Locally I have a bug(?) with the tests
Error: Class "Grpc\ChannelCredentials" not found

Probably it will be ok in CI
@roxblnfk

It can be breaking change.
It could.

@roxblnfk Some tests failed, but they probably just need to be re-run.

@roxblnfk Some tests failed, but they probably just need to be re-run (I see the same problem in other PRs)

Yea. Don't worry about it

Hi @ruscon. Could you sing CLA again?

@roxblnfk

license/cla — Contributor License Agreement is signed.

Ok. Thank you!

@roxblnfk Could you tag it, please?

@roxblnfk Could you tag it, please?

Certainly!


cquery returns a non-conforming textDocument:documentHighlight reply

While playing around with cquery support in eglot (a minimal Emacs language server library), I was having trouble getting the text document highlighting to work, I noticed that an extra member was getting appended to the documentHighlight replies:
client-request (id:10):
(:jsonrpc "2.0" :id 10 :method :textDocument/documentHighlight :params
          (:textDocument
           (:uri "file:///home/josh/Upstream/net-next/net/core/dev.c")
           :position
           (:line 9114 :character 9)))

server-reply (id:10):
(:jsonrpc "2.0" :id 10 :result
          [(:range
            (:start
             (:line 9111 :character 2)
             :end
             (:line 9111 :character 21))
            :kind 1 :role 32)])

This causes the eglot message-parsing to choke and abort the document highlight request.
From looking over the code it seems like Role is used internally for richer call trees, but it doesn't look like either the Emacs or VS Code clients use it. Is there any particular reason it was added? I've got a local patch applied to my eglot checkout that handles this, but I could see this biting future language server clients implementing cquery support down the road.

We can readd if someone notices this is missing, but I suspect there are no users. I've been trying to remove cquery extensions that are very unlikely to be added to the spec as well.

I think I broke the tests… they're probably expecting the Role to be sent in the documentHighlight reply, I'll have a PR up shortly fixing that.


fix: Second logEvent does not schedule a flush

Summary
Currently, a second logEvent does not trigger a flush in the next event loop.
This is because the null check from L87 fails.
Checklist

[x] Does your PR title have the correct title format?
Does your PR have a breaking change?:  No

@dubchoi thanks again for catching this. We've gone ahead and published this (along with others) in v1.0.4 - the release notes are here

no problem, and thank you for the quick release.

@dubchoi just a heads up - the first release had an issue we are currently resolving in our build process. This fix is now correctly included in v1.0.5 (and our release docs correctly reflect that)