support prereleases

Here is the workflow I'm following for my project (assuming last release is 3.11)
'master' branch is for stable releases, 'next' is for development.
On 'next':

First, alpha release: 3.12a1 to start implementing exciting new features
When all new features are implemented: first release candidate: 3.12rc1
Fix bugs found during beta-testing: 3.12rc2
(optional: 3.12rc3, 3.12rc4 ... until all blocking bugs are fixed)
Final release: 3.12  (merge 'next' into 'master')

On 'master';

Bugs found after 3.12 was released, release 3.12.1
Optional, 3.12.3, 3.12.4...,

This version scheme is modeled after PEP440
Here's what I've tried:
[bumpversion]
current_version = 3.12a1
files = setup.py cmake/qibuild/version.cmake doc/source/conf.in.py python/qisys/main.py
message = qibuild {new_version}
commit = True
tag = True
parse = (?P<major>\d+)                             # major: 3.12 -> 3
        \.
        (?P<minor>\d+)                             # minor 3.12 -> 12
        (\.(?P<patch>\d+))?                        # either a maintenance release 3.12.1 ...
        ((?P<release>a|rc)(?P<rel_num>\d+))?       # or a rc, or an alpha 3.12a1, 3.12rc2
serialize =
  {major}.{minor}
  {major}.{minor}.{patch}
  {major}.{minor}{release}{rel_num}

[bumpversion:part:release]
values =
  a
  rc

But then I get:
$ bump_version rel_num
Parsing version '3.12a1' using regexp '(?P<major>\d+)\.(?P<minor>\d+)(\.(?P<patch>\d+))?((?P<release>a|rc)(?P<rel_num>\d+))?'
Parsed the following values: major=3, minor=12, patch=0, rel_num=1, release=a
Attempting to increment part 'rel_num'
Values are now: major=3, minor=12
Did not find key u'patch' in <bumpversion.Version:major=3, minor=12> when serializing version number
Opportunistic finding of new_version failed: Did not find key u'patch' in <bumpversion.Version:major=3, minor=12> when serializing version number
...
bumpversion: error: argument --new-version is required

Digging in the source code, I suspect the problem is somewhere near:
class VersionConfig(object):

    # ....

    def order(self):
        # currently, order depends on the first given serialization format
        # this seems like a good idea because this should be the most complete format
        return self._labels_for_format(self.serialize_formats[0])

But maybe there's something I've missed in the documentation...

I've found that this almost works (presumably you could add any number of "release" part values rather than "dev"):
[bumpversion]
current_version = 0.1.0
parse = (?P<major>\d+)
        \.(?P<minor>\d+)
        \.(?P<patch>\d+)
        ((?P<release>[a-z]+)(?P<num>\d+))?
serialize =
        {major}.{minor}.{patch}{release}{num}
        {major}.{minor}.{patch}

[bumpversion:part:release]
optional_value = placeholder
first_value = dev
values =
        dev
        placeholder

The only problem I have ATM is that if you specify "num" as the part to increment when it doesn't already exist, the "release" part is initialized to "0" rather than "dev".

Yeah but in my use case there's no 'patch' component when I'm making a prerelease

I'm having the same issue (also like to omit "patch" on a prerelease). Is there a workaround?

@twall So I'm doing what you're doing, and it fits my use case quite nicely. However, I am experiencing something weird and I'm not quite sure why.
I took your solution and I added
[bumpversion:part:num]
first_value = 1

so that the numbering would start at 1 instead of 0 (I'm going for 1.0.0rc1, 1.0.0rc2, 1.0.0)
When I do this, however, the text placeholder appears when I run bumpversion release. This only happens when I try to change the first_value for num.

The weird thing is, given
[bumpversion]
current_version = 0.1.0
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<pre>\d+)\.(?P<prenum>\d+))?
serialize =
	{major}.{minor}.{patch}-{pre}.{prenum}
	{major}.{minor}.{patch}

(note the absence of explicit pre and prenum parts declaration, hence both are being implicitly set to default numeric part definitions under the hood), I can
0.1.0 →
bumpversion pre→ 0.1.0-1.0 →
bumpversion prenum → 0.1.0-1.1 →
bumpversion prenum → 0.1.0-1.2 →
bumpversion major → 1.0.0.
However, whenever custom values are set in any of extra part definitions, -{pre}.{prenum} gets appended no matter what part is bumped.

@webyneter
I ran into this same issue. I was able to get it to work properly by specifying the first_value field to the optional one. I'm not 100% sure why this works, but it seems to:
[bumpversion]
commit = True
tag = True
current_version = 4.1.7
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<releaselevel>[a-z]+)\.(?P<preversion>\d+))?
serialize =
	{major}.{minor}.{patch}-{releaselevel}.{preversion}
	{major}.{minor}.{patch}

[bumpversion:part:releaselevel]
first_value = final
optional_value = final
values =
	alpha
	beta
	final

Hi! Does anyone know if bump2version or ADVbumpversion have made improvements in supporting pre-releases?

In case this helps, we've built an alternative called tbump
Prelease support looks like this:
[version]
current = "1.6.0"

regex = '''
  (?P<major>\d+)
  \.
  (?P<minor>\d+)
  \.
  (?P<patch>\d+)
  (
    -
    (?P<lifecycle>alpha|beta|r)
    (?P<release>\d+)
  )?

And then you can use tbump 1.6.1.
Cons:  you have to type the whole version number on the command line instead of the 'part' you want to bump
Pros: the implementation is much simpler and supports many use cases.

@dacox FWIW, the bumpversion docs state that the default value for optional_value is actually  The first entry in values =, not the last. I think bumpversion should be updated to handle traversing entries in any order, but I imagine this would get complicated if the user were to unexpectedly put placeholder in a spot not at the beginning or end of a values array of length greater than 2.
Instead, put placeholder at the beginning rather than the end and remove optional_value (or leave it in so you don't forget that that is what placeholder is).
As an example, the following .bumpversion.cfg works well for me:
[bumpversion]
current_version = 0.0.0
tag = False
tag_name = {new_version}
commit = True
parse =
    (?P<major>\d+)
    \.
    (?P<minor>\d+)
    \.
    (?P<patch>\d+)
    (\-(?P<pre>[a-z]+)\.(?P<prenum>\d+))?
serialize =
    {major}.{minor}.{patch}-{pre}.{prenum}
    {major}.{minor}.{patch}

[bumpversion:part:pre]
optional_value = placeholder
values =
    placeholder
    alpha
    beta
    rc

[bumpversion:part:prenum]
first_value = 1

[bumpversion:file:pyproject.toml]

In your case, see if this
[bumpversion]
current_version = 0.1.0
parse = (?P<major>\d+)
        \.(?P<minor>\d+)
        \.(?P<patch>\d+)
        ((?P<release>[a-z]+)(?P<num>\d+))?
serialize =
        {major}.{minor}.{patch}{release}{num}
        {major}.{minor}.{patch}

[bumpversion:part:release]
values =
        placeholder
        dev

or this
[bumpversion]
current_version = 0.1.0
parse = (?P<major>\d+)
        \.(?P<minor>\d+)
        \.(?P<patch>\d+)
        ((?P<release>[a-z]+)(?P<num>\d+))?
serialize =
        {major}.{minor}.{patch}{release}{num}
        {major}.{minor}.{patch}

[bumpversion:part:release]
optional_value = placeholder
values =
        placeholder
        dev

suits your needs (where in the latter case we are just being explicit about the fact that placeholder is in fact an optional_value),

@peritus and @c4urself As a followup to the above, would it be prudent to update bump2version to use list slicing, search for the optional_value, and traverse the array from here through the rest of the values? In addition, adding another flag traverse_reversed = True/False  # default: False might help as well.

@dacox As another item, when going from rapid-development (0.x.y) or final major releases (#.x.y) to the next pre-release (#+1.x.y-alpha.1), if you have bumpversion set to commit with each bump, you'll want to override that on the commandline so you can bump both the major part and the pre-release part, like this:
bumpversion --no-comit major
bumpversion pre --message 'Bump version: {0.x.y} → {new_version}'

replacing x and y obviously with the last version (or N.x.y, as appropriate).

I used bumpversion in mostly all my projects, but dealing with prereleases became frustrating. Basically, I wanted something like:
0.1.0 -> 0.2.0-dev.1 -> 0.2.0-dev.2 -> 0.2.0-dev.3 -> 0.2.0

and it required some gymnastics to achieve it and I ended up using custom scripts. Also, I wanted to bump some files only for non-prereleases (e.g. I wanted the CHANGELOG file to be updated only for non-prereleases), and this also required some custom scripting.
I ended up writing semver. The approach that I adopted is to let the user specify a custom JS function in the configuration on how to bump the prerelease part of the version.
You can have a look at the configuration used by semver itself here. In particular, you can see the JS function:
[semver.prerelease]
bump_script = '''
var PREFIX = "dev.";
function bump(version) {
  var counter = !version.prerelease ? 0 : parseInt(version.prerelease.slice(PREFIX.length));
  return `${PREFIX}${counter + 1}`;
}
'''

As an example, let's say that the starting version is 0.1.0:

semver bump -c .semver.toml --part minor --new-prerelease -> 0.2.0-dev.1,
semver bump -c .semver.toml --part prerelease -> 0.2.0-dev.2,
semver bump -c .semver.toml --part prerelease -> 0.2.0-dev.3,
semver bump -c .semver.toml --finalize-prerelease -> 0.2.0,
semver bump -c .semver.toml --part patch -> 0.2.1,
semver bump -c .semver.toml --part minor -> 0.3.0,
semver bump -c .semver.toml --part major -> 1.0.0.

Though, semver only works with versions that comply with semver specification.


App force closing on restart

Describe the bug
When is installed new Version (Clean Install) I set the necessary IP. port is Normal 9001. When I check connection its Ok. But then when ot tries to get into "normal" mode the app is force closing.
With 1.2.3 no issues.
Have to say I appreciate your work and effort nevertheless.
Smartphone:

Device: [Pixel 4]
OS: [Android 10]
App Version [1.2.4]

Thanks for your report, I am going into searching for the bug right now.
But tomorrow we will go into holidays so maybe it will take a bit longer, I'm very sorry for the circumstances.
Maybe you can use 1.2.3 until then.
Greetings!

Yes of course. I will do. Wish best holidays.
Best regards.

I have not completely fixed it, but because you anyways use port 9001 I built a hopefully working temporary version until I will have time to finish the fix:
LogViewer_for_openHAB_temp.zip

Thats awesome. Works flawless. Thanks alot.

Nice to hear that it works. It's only temporary because it currently only supports port 9001 (and it's enough for your use).
That's the reason, why this issue is not already solved I'm going to reopen it again, until I release a new update where it works again.

I think I found the bug, please try this version:
LogViewer_for_openHAB_temp.zip

@goofy1988 Does it work now?

Hey cyb3rko,
I tested the new version and its working flawless. Thanks alot for trying to solve the issue so fast :-)

Nice to hear that, thanks!

Published in Version 1.2.5


Add PATH on Jenkinsfile

When trying to run builds on the new Jenkins agents using the swarm client, we were receiving the following error:
jenkins.sh: bundle: not found

We need to explicitly set the path so it is able to run bundler. This could be passed in a different way in the future but for now set it on the Jenkinsfile.
This didn't occur on the Jenkins master because we believe environmental variables are set by Jenkins itself.

I think we can set this in the global environment variables to avoid having to do it in every app.

https://github.com/alphagov/govuk-puppet/pull/5172


x/net/http2: h2c requests can't be sent when *http.Request.Close is true

Go version
go version go1.22.0 windows/amd64
Output of go env in your module/workspace:
not relevant

What did you do?
Setting *http.Request.Close to true to disable persistent connections in proxyprotocol reverse proxy scenarios. This comes from this issue.
It can be reproduced,
server:
	server := httptest.NewUnstartedServer(h2c.NewHandler(http.HandlerFunc(func(writer http.ResponseWriter, request *http.Request) {
		_, _ = io.WriteString(writer, request.Proto)
	}), new(http2.Server)))
	fmt.Println(server.Listener.Addr().String())
	server.Start()
	select {}

client:
func TestSingle(t *testing.T) {
	h2t := &http2.Transport{
		DialTLSContext: func(ctx context.Context, network, addr string, _ *tls.Config) (net.Conn, error) {
			return (&net.Dialer{}).DialContext(ctx, network, addr)
		},
		AllowHTTP: true,
	}
	req, _ := http.NewRequest("GET", "http://<IP_ADDRESS>:51905", nil)
	req.Close = true
	for range 100 {
		resp, err := h2t.RoundTrip(req)
		if err != nil {
			t.Error(err)
		}
		_ = resp.Write(io.Discard)
	}
}

The error is http2: client conn not usable.
What did you see happen?
It works for https request but not for h2c requests.
What did you expect to see?
It should work in both cases.

CC @neild


Akka Stream integration

Hi folks,
I'm looking for a replacement to the postgresql-async Netty driver and found this one, which is very cool. I've taken a look at the rxJava2 API and I've been attempting to integrate with Akka Streams with limited success.
Integration between rxJava and Akka Streams seems fine when we're publishing data (select), but becomes problematic when we just want to insert data and end the stream. Based on the Java docs I've found the following, which looks promising:
Completable completable = pool
  .rxBegin()
  .flatMapCompletable(tx -> tx
    .rxQuery("INSERT INTO Users (first_name,last_name) VALUES ('Julien','Viet')")
    .flatMap(result -> tx.rxQuery("INSERT INTO Users (first_name,last_name) VALUES ('Emad','Alblueshi')"))
    .flatMapCompletable(result -> tx.rxCommit()));

completable.subscribe(() -> {
  // Transaction succeeded
}, err -> {
  // Transaction failed
});

From what I can tell, Completable will never work as a Subscriber, so Akka Streams cannot take advantage of the above code, some it would need to be extended to accept something like Completable (which naively seems like a Future).
Akka Streams does have the handy mapAsync for such deferred computation, but normally takes a Future as input. My thought then is could a query/transaction return a Future, aside from a Handler callback?
Thanks in advance!
Cheers,
Rowland

Just saw this issue: https://github.com/reactiverse/reactive-pg-client/issues/270, Single can also be wrapped as a java.util.concurrent.Future:
Single.just(contract)
              .map(JsonObject::mapFrom)
              .map(Json::create)
              .flatMap( foo -> pool.rxPreparedQuery(CREATE_QUERY, Tuple.of(foo)) )
              .map(ar -> uuid)
              .toFuture()

I'll try this, cheers!

@rowlandwatkins a Completable can be converted to a Publisher. I'm curious how that doesn't work for you?

Hi @tsegismont, I'm not sure how a publisher will help, since I need a Subscriber... Or am I looking at this the wrong way?

@rowlandwatkins can't Akka streams create a subscriber from any Publisher?


Devices view in the eve app

Hello @nicoduj,
I have displayed my Harmony Hub as a device in the Home app. When I select the device, my Harmony Actions are displayed as subordinate buttons.
When I use the Eve app, the Harmony Hub is not shown as a device but the Actions are shown one by one.
So I wanted to ask you if you have an idea how I can show my Harmony Hub as a device in the Eve app?
Here is my config:
{
"platform": "HarmonyHubWebSocket",
"name": "Fernseher Wohnzimmer",
"hubIP": "192.168.XXX.XX",
"showCommandsAtStartup" : "false",
"showTurnOffActivity": "false",
"TVAccessory" : "false",
"switchAccessories" : "true",
"publishSwitchActivitiesAsIndividualAccessories": "false",
"addAllActivitiesToSkippedIfSameStateActivitiesList": "true",
"mainActivity" : "TV",
"devicesToPublishAsAccessoriesSwitch": [
],

Thanks a lot!

Note:
When I select one of the Actions in the eve app, the Harmony Hub is displayed correctly as TV Living Room with all Actions as subordinated switches.

Hi,
Home app can split or group services of an accessory. By default it groups them, so that is why you have this result since you are not publishing your switches as individual accessories.
I have no control on how the eve app is working, It seems that it shows each services separately (except in accessoreis section in settings which seems logic),and not grouped by accessories (which is not the case Please also note that eve won't show any TV accessory.
So I can't do anything about this, sorry !


pull request for e2e test at 01/07/2017 20:56:11

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Remove errors from Typescript usage

Disable non-critical eslint rules
Add react rules for eslint
Update ts-eslint parser to fix latest bugs
Minor changes to fix bugs and avoid variable check errors

Thanks, @barrymay heaps for the PR, I will take a look this soon. ❤ 👏

only one minor comment :) looks good

thank you :) merging in


Some rows have excess whitespace

This dashboard is awesome! Just one trivial issue I noticed: some rows are inexplicably bigger than others--see screenshot. I'm using Chrome on a Mac

.

Thanks for the kind words. I think this is a quirk of datatables, the Javascript library I used to automatically render these. What might be happening is that it calculates the width as if they were all showing. I'll let you know if I find a fix


change how CV stats are saved and reported #188

fixed the comment you made -good catch.   We also have to re-run the example to save the list of CV stats instead of single value (it will work as is but won't be what Chris wants to see).


cglm: init at 0.6.0

https://github.com/recp/cglm
"{film_projector} Highly Optimized Graphics Math (glm) for C"
Things done

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

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Notify maintainers
cc @

(draft, I'm still working on getting an app built to test e2e)

As metioned above, this PR is superseded so I close this.


webpack-dev-server has been initialised using a configuration object that does not match the API schema.

Note: for support questions, please use one of these channels: Chat: AngularClass.slack or Twitter: @AngularClass

I'm submitting a ...
[X ] bug report
[ ] feature request
[ ] question about the decisions made in the repository

report a bug?**
Invalid configuration object. webpack-dev-server has been initialised using a configuration object that does not match the API schema.
 - configuration.port should be a number.

What is the current behavior?
Fresh git clone fails on npm run server:dev

What is the expected behavior?
Trying to get initial setup to run server:dev

Please tell us about your environment:

Angular version: 2.2.1
Browser: N/A didn't get that far

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

0 info it worked if it ends with ok
1 verbose cli [ '/home/ubuntu/.nvm/versions/node/v7.2.1/bin/node',
1 verbose cli   '/home/ubuntu/.nvm/versions/node/v7.2.1/bin/npm',
1 verbose cli   'start' ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>6 silly lifecycle<EMAIL_ADDRESS>no script for prestart, continuing
7 info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>8 verbose lifecycle<EMAIL_ADDRESS>unsafe-perm in lifecycle true
9 verbose lifecycle<EMAIL_ADDRESS>PATH: /home/ubuntu/.nvm/versions/node/v7.2.1/lib/node_modules/npm/bin/node-gyp-bin:/home/ubuntu/workspace/angular2-webpack-starter/node_modules/.bin:/home/ubuntu/.nvm/versions/node/v7.2.1/bin:/usr/local/rvm/gems/ruby-2.3.0/bin:/usr/local/rvm/gems/ruby-2.3.0@global/bin:/usr/local/rvm/rubies/ruby-2.3.0/bin:/mnt/shared/bin:/home/ubuntu/workspace/node_modules/.bin:/home/ubuntu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/mnt/shared/sbin:/opt/gitl:/opt/go/bin:/mnt/shared/c9/app.nw/bin:/usr/local/rvm/bin
10 verbose lifecycle<EMAIL_ADDRESS>CWD: /home/ubuntu/workspace/angular2-webpack-starter
11 silly lifecycle<EMAIL_ADDRESS>Args: [ '-c', 'npm run server:dev' ]
12 silly lifecycle<EMAIL_ADDRESS>Returned: code: 1  signal: null
13 info lifecycle<EMAIL_ADDRESS>Failed to exec start script
14 verbose stack Error<EMAIL_ADDRESS>start: `npm run server:dev`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (/home/ubuntu/.nvm/versions/node/v7.2.1/lib/node_modules/npm/lib/utils/lifecycle.js:279:16)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at EventEmitter.emit (events.js:191:7)
14 verbose stack     at ChildProcess.<anonymous> (/home/ubuntu/.nvm/versions/node/v7.2.1/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at ChildProcess.emit (events.js:191:7)
14 verbose stack     at maybeClose (internal/child_process.js:885:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid<EMAIL_ADDRESS>16 verbose cwd /home/ubuntu/workspace/angular2-webpack-starter
17 error Linux 4.2.0-c9
18 error argv "/home/ubuntu/.nvm/versions/node/v7.2.1/bin/node" "/home/ubuntu/.nvm/versions/node/v7.2.1/bin/npm" "start"
19 error node v7.2.1
20 error npm  v4.0.5
21 error code ELIFECYCLE
22 error<EMAIL_ADDRESS>start: `npm run server:dev`
22 error Exit status 1
23 error Failed at the<EMAIL_ADDRESS>start script 'npm run server:dev'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the angular2-webpack-starter package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     npm run server:dev
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs angular2-webpack-starter
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls angular2-webpack-starter
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

process.env.PORT was resolving to a string '8080' instead of a number.

You wrote the issue but I don't find a solution


"Use this field’s values as search keywords" checkbox not saved

Bug Description
When creating or editing a field using quick field, the Craft "Use this field’s values as search keywords" checkbox value isn't saved.
Steps to reproduce

Go to a section settings
Edit one of its entry types
Create a field using the quick field modal
Select the "Use this field’s values as search keywords"
Save the field
Edit the field using Craft native UI to see the "Use this field’s values as search keywords" isn't checked

Expected behaviour
The "Use this field’s values as search keywords" value should be saved
Quick Field version
2.0.5
Craft CMS version
<IP_ADDRESS>

Thanks for reporting that - fixed now in 2.0.6.


feat: support web3js

An MR for internal reviews. However, after discussing and agreeing here, later the MR https://github.com/WalletConnect/web3modal/pull/2205 will be marked as ready for review.
This MR is to support using web3.js with web3modal.
Breaking Changes
N/A
Changes

feat: support web3js
chore: read EMAIL_DOMAIN from env variable (and default to 'web3modal.msdc.co' if not provided).

Associated Issues
N/A

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: Muhammad-Altabba:x: chris13524You have signed the CLA already but the status is still pending? Let us recheck it.

Hi all, is there any eta about that package to be released in stable version?

Hi all, is there any eta about that package to be released in stable version?

@Muhammad-Altabba what are next steps pending for v1.0.0?

@jdevcs @Muhammad-Altabba is this PR active?
I mean do you provide support for Appkit and the new features enabled by WalletConnect?


Cannot read properties of null (reading 'domNode')

I was playing around with a GH issues notebook, changing between an empty profile without extensions and a profile where I was able to use the notebook. I think I was undoing changes from the changes view.
[79622:0607/133653.509806:INFO:CONSOLE(244)] "%c  ERR color: #f33 Cannot read properties of null (reading 'domNode'): TypeError: Cannot read properties of null (reading 'domNode')
    at NotebookCellListView.updateItemInDOM (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/base/browser/ui/list/listView.js:638:22)
    at NotebookCellListView.render (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/base/browser/ui/list/listView.js:547:26)
    at NotebookCellListView.render (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/workbench/contrib/notebook/browser/view/notebookCellListView.js:19:19)
    at NotebookCellListView.updateElementHeight (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/base/browser/ui/list/listView.js:309:18)
    at NotebookCellList.updateElementHeight2 (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/workbench/contrib/notebook/browser/view/notebookCellList.js:983:34)
    at doLayout (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js:1732:28)
    at NotebookEditorWidget.layoutNotebookCell (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js:1743:17)
    at CellOutputContainer._relayoutCell (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js:584:33)
    at CellOutputContainer.render (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js:392:22)
    at new CodeCell (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js:76:43)
    at InstantiationService._createInstance (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/platform/instantiation/common/instantiationService.js:91:28)
    at InstantiationService.createInstance (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/platform/instantiation/common/instantiationService.js:62:31)
    at CodeCellRenderer.renderElement (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js:262:83)
    at PipelineRenderer.renderElement (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/base/browser/ui/list/listWidget.js:869:26)
    at NotebookCellListView.insertItemInDOM (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/base/browser/ui/list/listView.js:610:23)
    at NotebookCellListView._splice (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/base/browser/ui/list/listView.js:404:26)
    at NotebookCellListView.splice (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/base/browser/ui/list/listView.js:322:29)
    at vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/base/browser/ui/list/splice.js:14:45
    at Array.forEach (<anonymous>)
    at CombinedSpliceable.splice (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/base/browser/ui/list/splice.js:14:30)
    at vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/base/browser/ui/list/listWidget.js:1121:67
    at EventBufferer.bufferEvents (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/base/common/event.js:1090:23)
    at NotebookCellList.splice (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/base/browser/ui/list/listWidget.js:1121:32)
    at NotebookCellList.splice2 (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/workbench/contrib/notebook/browser/view/notebookCellList.js:391:19)
    at vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/workbench/contrib/notebook/browser/view/notebookCellList.js:309:22
    at Array.forEach (<anonymous>)
    at NotebookCellList._updateElementsInWebview (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/workbench/contrib/notebook/browser/view/notebookCellList.js:291:33)
    at vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/workbench/contrib/notebook/browser/view/notebookCellList.js:257:26
    at Listener.invoke (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/base/common/event.js:660:27)
    at PrivateEventDeliveryQueue.deliver (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/base/common/event.js:836:38)
    at Emitter.fire (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/base/common/event.js:800:37)
    at compute (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js:163:44)
    at vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js:200:25
    at Listener.invoke (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/base/common/event.js:660:27)
    at PrivateEventDeliveryQueue.deliver (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/base/common/event.js:836:38)
    at Emitter.fire (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/base/common/event.js:800:37)
    at vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/workbench/contrib/notebook/common/model/notebookTextModel.js:199:46
    at Listener.invoke (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/base/common/event.js:660:27)
    at PrivateEventDeliveryQueue.deliver (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/base/common/event.js:836:38)
    at NotebookEventEmitter.fire (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/base/common/event.js:800:37)
    at NotebookEventEmitter.resume (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/base/common/event.js:931:31)
    at NotebookTextModel.applyEdits (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/workbench/contrib/notebook/common/model/notebookTextModel.js:407:40)
    at NotebookTextModel.reset (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/workbench/contrib/notebook/common/model/notebookTextModel.js:309:18)
    at NotebookFileWorkingCopyModel.update (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/workbench/contrib/notebook/common/notebookEditorModel.js:210:33)
    at async StoredFileWorkingCopy.doUpdateModel (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js:372:17)
    at async StoredFileWorkingCopy.resolveFromContent (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js:345:17)
    at async StoredFileWorkingCopy.resolveFromFile (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js:295:17)
    at async StoredFileWorkingCopyManager.doResolve (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js:339:17)
    at async StoredFileWorkingCopyManager.reload (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js:259:13)
    at async Object.factory (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js:144:25

Merging this issue into https://github.com/microsoft/vscode/issues/173500


Adding new optional fields for taxii connector

MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Changelog
Please ensure to add changelog with this PR by answering the following questions.

What's the purpose of the update?

[ ] new service onboarding
[ ] new API version
[ ] update existing version for new feature
[x] update existing version to fix swagger quality issue in s360
[ ] Other, please clarify

When you are targeting to deploy new service/feature to public regions? Please provide date, or month to public if date is not available yet.
03/05/2021
When you expect to publish swagger? Please provide date, or month to public if date is not available yet.
If it's an update to existing version,  please select SDKs of specific language and CLIs that require refresh after swagger is published.

[ ] SDK of .NET (need service team to ensure code readiness)
[ ] SDK of Python
[ ] SDK of Java
[ ] SDK of Js
[ ] SDK of Go
[ ] PowerShell
[ ] CLI
[ ] Terraform
[ ] No, no need to refresh for updates in this PR

Contribution checklist:

[ ] I commit to follow the Breaking Change Policy of "no breaking changes"
[ ] I have reviewed the documentation for the workflow.
[ ] Validation tools were run on swagger spec(s) and errors have all been fixed in this PR. How to fix?

If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist

[ ] Ensure to check this box if one of the following scenarios meet updates in the PR, so that label “WaitForARMFeedback” will be added automatically to involve ARM API Review. Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs, all “removals” and “adding a new property” no more require ARM API review.

Adding new API(s)
Adding a new API version
Adding a new service

[ ] Please ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

[ ] If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist
If there are following updates in the PR, ensure to request an approval from Breaking Change Review Board as defined in the Breaking Change Policy.

[ ] Removing API(s) in stable version
[ ] Removing properties in stable version
[ ] Removing API version(s) in stable version
[ ] Updating API in stable or public preview version with Breaking Change Validation errors
[ ] Updating API(s) in public preview over 1 year (refer to Retirement of Previews)

Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.
Please follow the link to find more details on PR review process.

We had a departure from our team and I am taking over this PR.
I made no modifications to it other than importing the changes and bringing it to the latest of master.
@lirenhe Was assigned to the original PR
@ArcturusZhang  is assigned to this one.
I just thought I'd drop a note to make sure you guys are aware of each other to avoid duplicating work.

Looks like Hung beat me to it, and he checked in the same change with another PR. I am withdrawing this PR to avoid causing wasted time on it.


[collector] So I tested the new helm chart version 0.97.2 with the helm template command and the result gives me a serviceMonitor which appears to have a wrong intend for the relabelings and metricRelabelings:

          So I tested the new helm chart version 0.97.2 with the `helm template` command and the result gives me a serviceMonitor which appears to have a wrong intend for the `relabelings` and `metricRelabelings`:

k apply -f - <<-EOT
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: otel
  namespace: default
  labels:
    helm.sh/chart: opentelemetry-collector-0.97.2
    app.kubernetes.io/name: otel-metrics
    app.kubernetes.io/instance: opentelemetry-collector
    app.kubernetes.io/version: "0.104.0"
    app.kubernetes.io/managed-by: Helm
spec:
  selector:
    matchLabels:
      app.kubernetes.io/name: otel-metrics
      app.kubernetes.io/instance: opentelemetry-collector
      component: standalone-collector
  endpoints:
  - port: metrics
  relabelings:
    - action: replace
      replacement: my-cluster
      targetLabel: cluster
  metricRelabelings:
    - action: keep
      regex: otelcol_process_memory_rss|target_info
      sourceLabels:
      - __name__
EOT

when I try to apply this manualy I get: Error from server (BadRequest): error when creating "STDIN": ServiceMonitor in version "v1" cannot be handled as a ServiceMonitor: strict decoding error: unknown field "spec.metricRelabelings", unknown field "spec.relabelings"
Am I the only one having this problem?
Originally posted by @toporek3112 in https://github.com/open-telemetry/opentelemetry-helm-charts/issues/1240#issuecomment-2259391817

@rl0nergan please investigate

I am not familiar with prometheus, but it looks to me like relabelings and metricRelabelings need to be part of Endpoint.

Ah yep, that's my bad. Didn't indent enough. PRs for the fixes are below:
https://github.com/open-telemetry/opentelemetry-helm-charts/pull/1288
https://github.com/open-telemetry/opentelemetry-helm-charts/pull/1289

closed by #1288 and #1289

Sorry for the late response, but I just wanted to say thank you for the support!
Everything is working perfectly now :)


VH is not rendered correctly - only fixed size

[X] You are using the latest [1.0.0-rc.1]
[?] You are testing using the non-minified version of html2canvas and checked any potential issues reported in the console -> I am using Laravel Mix and Webpack to compile the module. Is that a good answer? I logged the html2canvas operations and there's no error.

What I think is going wrong
TLDR; The VH css size is not rendered correctly, is there a way to avoid that? I can't use fixed pixel size, since I'm creating dynamic elements according to viewport.
Long report
I have a dynamic element created by Javascript.
I create a X number of circles according to the data provided, I move some elements around with interactjs and then I want to capture the screenshot.
This was the result:

After a npm update,  in which I updated this package from v1.0.0-alpha.12 to current release, I now have this result:

This is how I created the screenshot:
let opt =  {
optimized: true,
logging: true,
scale: 2
};

html2canvas(document.getElementById("sortingc"),opt).then(function(canvas) {
// next page
document.getElementById("sortingdisplay").appendChild(canvas);

// save the base64 to vue data
self.interview.structure.sortingscreenshot = canvas.toDataURL("image/png").toString();
});

The circles are resized, and for some reason the height is 150px. When I log in the size of document.getElementById("sortingc"), it log the correct one (which is the Viewport size and may vary according to the browser size).
The outer circles is created like this:
document.querySelector(".round-sorting"+this.circles).style.top = "0vh";
document.querySelector(".round-sorting"+this.circles).style.left = "0vh";
document.querySelector(".round-sorting"+this.circles).style.width = "80vh";
document.querySelector(".round-sorting"+this.circles).style.height = "80vh";
document.querySelector(".round-sorting"+this.circles).style.borderRadius = "50%";

Every other circle inside has this property:
for (var i = 1; i <= this.circles-1; i++) {
document.querySelector(".round-sorting"+(i).toString()).style.width = (((i)/this.circles)*80).toString()+"vh";
document.querySelector(".round-sorting"+(i).toString()).style.height = (((i)/this.circles)*80).toString()+"vh";
                }

What I did:

Rolled back package json to the oldest version available: no result.
Rolled back Vue, html2canvas and every singular package involved in the update: no result. I rebuilt every time the packages
Set a fixed height and/or windowHeight: now the canvas is more than 150px, but the circles are still small.
Set the heigth to 100%: no result.

Specifications:

html2canvas version tested with: 1.0.0-rc.1
Browser & version: latest chrome or firefox or safari
Operating system: tested on macOs and Windows

So, since I needed it to work today I just converted every single size in pixels, and it works!

// convert the container to pixel
document.querySelector("#sortingc").style.height =  document.documentElement.clientHeight * 0.80+"px";

document.querySelector(".circle_container").style.height =  document.documentElement.clientHeight * 1+"px";
document.querySelector(".sorting-container").style.height =  document.documentElement.clientHeight * 1+"px";

// convert the outer circle to pixel
document.querySelector(".round-sorting"+self.circles).style.width = document.documentElement.clientHeight * 0.80+"px";
document.querySelector(".round-sorting"+self.circles).style.height = document.documentElement.clientHeight * 0.80+"px";

// convert all the inner circles to pixels
for (var i = 1; i <= self.circles-1; i++)
 {
document.querySelector(".round-sorting"+(i).toString()).style.width = document.documentElement.clientHeight * ((((i)/this.circles)*80)/100) +"px";
document.querySelector(".round-sorting"+(i).toString()).style.height = document.documentElement.clientHeight * ((((i)/this.circles)*80)/100) +"px";
}

I still keep this open, shouldn't this be done by html2canvas?

Would you be able to make reproducible example on jsfiddle that I could work with for verifying and fixing?

https://jsfiddle.net/jhc6bfq3/13/
Sorry, I had to do it fast and dirty, but it replicates at 99% the problem I have.
I also included the temporary solution I implemented, converting all the relative sizes in pixel size.

thanks, i'll investigate


Remove DEV login from suppressDevErrors

Hi man, why did you wish to remove the __DEV__  flag?

Sorry about that. I meant to create the pull request on my fork ;-(
Yes, I felt that having the DEV flag was pretty restrictive in my workflow. I just needed a single flat to disable/enable sending of dev errors. Also, found a @{} on line 26 of RNBugsnag.m that needed to be change to nil.

Ah ok then man..!


ENH: Enable mesh module factory registration

Also address a few minor style issues.

Looks good to me from (what I remember of the factory registration mechanisms). If there are some tests that utilize this and if they pass, it is good to go.


Can't load model TypeError: unhashable type: 'dict'

Currently, spacy==2.0.18 fails like this when trying to load the coref model: https://github.com/huggingface/neuralcoref/issues/120
I downgraded to spacy==2.0.12 and thinc==6.10.3 and when I try to load the coref model, and now I get:

(venv) motoki@tmjr:~/repo-name$ python -c "import spacy; nlp = spacy.load('en_coref_md')"

...

  File "/home/motoki/repo-name/venv/lib/python3.6/site-packages/spacy/util.py", line 114, in load_model
    return load_model_from_package(name, **overrides)
  File "/home/motoki/repo-name/venv/lib/python3.6/site-packages/spacy/util.py", line 135, in load_model_from_package
    return cls.load(**overrides)
  File "/home/motoki/repo-name/venv/lib/python3.6/site-packages/en_coref_md/__init__.py", line 14, in load
    nlp = load_model_from_init_py(__file__, **overrides)
  File "/home/motoki/repo-name/venv/lib/python3.6/site-packages/spacy/util.py", line 173, in load_model_from_init_py
    return load_model_from_path(data_path, meta, **overrides)
  File "/home/motoki/repo-name/venv/lib/python3.6/site-packages/spacy/util.py", line 156, in load_model_from_path
    return nlp.from_disk(model_path)
  File "/home/motoki/repo-name/venv/lib/python3.6/site-packages/spacy/language.py", line 653, in from_disk
    util.from_disk(path, deserializers, exclude)
  File "/home/motoki/repo-name/venv/lib/python3.6/site-packages/spacy/util.py", line 511, in from_disk
    reader(path / key)
  File "/home/motoki/repo-name/venv/lib/python3.6/site-packages/spacy/language.py", line 641, in <lambda>
    self.vocab.from_disk(p) and _fix_pretrained_vectors_name(self))),
  File "vocab.pyx", line 380, in spacy.vocab.Vocab.from_disk
  File "vectors.pyx", line 391, in spacy.vectors.Vectors.from_disk
  File "/home/motoki/repo-name/venv/lib/python3.6/site-packages/spacy/util.py", line 511, in from_disk
    reader(path / key)
  File "vectors.pyx", line 369, in spacy.vectors.Vectors.from_disk.load_key2row
  File "vectors.pyx", line 370, in spacy.vectors.Vectors.from_disk.load_key2row
  File "/home/motoki/repo-name/venv/lib/python3.6/site-packages/msgpack_numpy.py", line 175, in unpack
    return _unpack(stream, **kwargs)
  File "msgpack/_unpacker.pyx", line 229, in msgpack._unpacker.unpack
  File "msgpack/_unpacker.pyx", line 200, in msgpack._unpacker.unpackb
TypeError: unhashable type: 'dict'

I've been trying various msgpack versions to no avail
msgpack==0.5.4
msgpack-numpy==<IP_ADDRESS>
msgpack-python==0.5.6

Thanks

Hi this should all be fixed in the new release (4.0) and with SpaCy 2.1+.
Please open a new issue if you still experience issues.


Fix memory issues in C code

fix memory leaks in decodeToArray and blurHashForPixels
fix use after free in dart blurhashDecode that resulting in broken image. Maybe this solve #13 (not tested on windows)

https://github.com/folksable/blurhash_ffi/issues/13#issuecomment-1862002784
I think commit 4ea6639 does fix #13. Thanks!

@dhikshith12 Would you like to make a new release? It's definitely helpful for Windows users

Yes, v1.2.2 release is out now


Improve apparmor and selinux support.

Previous behavior:

If selinux is not supported (not built / OS not support):

EnableSelinux=true: cri-containerd doesn't report any error, but won't set any selinux options. (Not Expected)
EnableSelinux=false: cri-containerd doesn't set selinux options.

If apparmor is not supported (not built / OS not support):

EnableAppArmor=true: cri-containerd always applies default to container and we'll never be able to start a container.(Not Expected)
EnableAppArmor=false: cri-containerd won't apply apparmor profile.

With this PR, for either selinux or apparmor, if the feature is not supported, cri-containerd will:

EnableXXX=true: cri-containerd will log an error at start up, and not set corresponding options. The log will be something like:

E0922 04:43:31.108763   17069 cri_containerd.go:74] Selinux is not supported

EnableXXX=false: cri-containerd won't set corresponding options.

Another option is to let cri-containerd fail at start up directly if a non-supported feature is enabled, I'm not sure which is better.
@miaoyq @mikebrow
Signed-off-by: Lantao Liu<EMAIL_ADDRESS>

LGTM

@mikebrow Done

@mikebrow Done. Thanks for your suggestion.


feat(flat-context): context needs to be flattened

Fixes #

Codecov Report

Merging #78 (a99086c) into main (2b1ad7b) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main       #78   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            2         2
  Lines          125       125
  Branches        21        21
=========================================
  Hits           125       125

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


[MSINTEROP-826] Create Jira class - 42

[Auto generated]
Number: [#42]

qe-metrics(E7zSZ)[PR 42]: Closing issue for PR:  [MSINTEROP-826] Create Jira class.
PR was closed.


refactor!: move everything to remix :sweat:

Yea, uhh, yes

can u fix conflicts pls lol

Done :rofl:


[Popover] horizontal scroll sometimes appears in Firefox

Get a really long Menu an put it into a Popover so it exceeds screen height and vertical scroll appers.
Close it.
Open it (repeat if it doesn't show first time).

Now for some reason there's also a horizontal scroll even if the content fits perfectly. You can remove the scroll by specifing "overflow-x: hidden" on the Popover container, but I'm not sure if it's the right solution.

 causes horizontal scrolling for me.


atom_map doesn't do anything in the relative FEP setup

https://github.com/choderalab/perses/blob/33a6b4c41da2414c727c7980cb400d6402b24f3d/perses/app/relative_setup.py#L60
This variable doesn't do anything

I was just about to make an issue after I noticed the same thing!


[win10/settings] User input always messed up if I type fast

(It does not has this issue on macos.)
Version: 1.0.134
See the attached recording (I was inputting fixed in the Font input area). On my system (win10) it can reproduce for at least the following input area in Settings:

Appearance > Font
Appearance > Fallback font
Application > Custom CSS

This is most annoying as it's a multi-line area. When I'm typing a bit fast, the cursor would jump to the end.

Terminal > Word separators

https://user-images.githubusercontent.com/157076/109625450-5196dc80-7b7a-11eb-8f33-a22dd700c1bb.mov

Custom CSS now works fine with v1.0.136 which started using a much bigger text area.


NetInfo.getConnectionInfo() return unknown for iOS

I have the following code to detect the connection type. Android works fine but for iOS it returns unknown
 NetInfo.getConnectionInfo().then((connectionInfo) => {       console.tron.log('connectionInfo')       console.tron.log(connectionInfo)     })
I am currently using RN version : 0.50.4 and iOS 11.3

Hi, here is a workaround if you want to make it work for both Android/iOS
const getConnectionInfo = async () => {
  if (Platform.OS === 'ios') {
    return new Promise((resolve, reject) => {
      const connectionHandler = connectionInfo => {
        NetInfo.removeEventListener('connectionChange', connectionHandler)

        resolve(connectionInfo)
      }

      NetInfo.addEventListener('connectionChange', connectionHandler)
    })
  }

  return NetInfo.getConnectionInfo()
}

and then when you want to use it instead of directly call
const connectionInfo = await NetInfo.getConnectionInfo()
you do it that way
const connectionInfo = await getConnectionInfo()
From, of course, an asynchrone function other wise it won't work because of the "await" word

@capozzid Thanks for the workaround!


The method 'getElementForInheritedWidgetOfExactType' was called on null

Stacktrace:
Thread 0 main thread CRASHED
NoSuchMethodError: The method 'getElementForInheritedWidgetOfExactType' was called on null.
Receiver: null

Tried calling: getElementForInheritedWidgetOfExactType()
at Actions._visitActionsAncestors	(actions.dart:457)
at Actions.invoke	(actions.dart:608)
at ShortcutManager.handleKeypress	(shortcuts.dart:330)
at _ShortcutsState._handleOnKey	(shortcuts.dart:472)
at FocusManager._handleRawKeyEvent	(focus_manager.dart:1625)
at RawKeyboard._handleKeyEvent	(raw_keyboard.dart:594)
at BasicMessageChannel.setMessageHandler.<anonymous closure>	(platform_channel.dart:75)
at BasicMessageChannel.setMessageHandler.<anonymous closure>	(platform_channel.dart:74)
at _DefaultBinaryMessenger.handlePlatformMessage	(binding.dart:283)
at _invoke3.<anonymous closure>	(hooks.dart:282)
at _rootRun	(zone.dart:1190)
at _CustomZone.run	(zone.dart:1093)
at _CustomZone.runGuarded	(zone.dart:997)
at _invoke3	(hooks.dart:281)
at _dispatchPlatformMessage	(hooks.dart:156)

CC @gspencergoog

Can you give me some more context?  This looks like the actions widget doesn't have any ancestors, which is possible, but unlikely.
I'll put together a PR to prevent this from throwing.

Actually, in trying to build a regression test for this, I don't see how this can happen. In order for this to happen, there needs to be an _ActionsMarker at the root of the widget tree, which is a private class that is only added by a parent Actions class (which means it won't be at the root).
I can protect against this throwing for this reason, but I don't think I can make a regression test for it without more information.

Could this be caused by some race between the widget tree being disposed and the key being handled? During navigation perhaps?

Yes, I suppose so. From what I can tell, if this was a debug build it would have asserted long before it got to this state, probably in ShortcutManager.handlKeypress.

We don't have a repro for this primarily because it is happening in the wild (a release build).

Although we're going to patch this problem with #64472, it's not really resolved until we find a way to reproduce the problem. In other words #64472 should be viewed as temporary, pending further analysis.
@mehmetf - please help us out by encouraging the devs who ran into this issue to continue trying to find a reproducible test case.

I have the same problem when I upgrade to flutter 1.2.4


getting the url of fileObj works only on browser's developers tools not on client

hey, i'm trying to get FS.file obj url on the client side - right after i insert it.
'click button.submit': (e)->
		file = $(e.currentTarget).parents('.panel-body').find('input')[0].files[0]
		if file
			doc = @
			Uploads.insert file, (err, fileObj) ->
                                 console.log fileObj.url()

returns null.
but as i execute this:
Uploads.findOne("the_id").url()

on the browser developer tool window it returns an actual address.
can you tell me what could be the problem?

Hi, I think after the insert process the stores are not updated yet, try to use the url call in something reactive


Max latency/last hour is a good parameter

In nostr.watch website will be useful see the max latency value in the last hour and in the last 12 hours.
These are good parameters because show the health of the service.
Of course sorted from lower to higher.

I'll think about how to implement this, thanks!


Vulnerability scan 302 redirect Issue behind proxy

When configuring a proxy for clair in Harbor 1.5.2, the default settings result in the requests towards the clair api (http://registry:5000/v2) being redirected to http://www.registry.com/v2.  As a result, the uploaded images are not scanned.
The image 'vulnerability column' shows 'view log' and the error inside shows:
2018-07-23T09:41:12Z [ERROR] [job_logger.go:81]: Failed to scan layer: xxxxxxxxx, error: Unexpected status code: 400, text: {"Error":{"Message":"could not find layer"}}
I was able to fix this issue by adjusting the no_proxy directive in harbor.cfg:
From:
no_proxy = <IP_ADDRESS>,localhost,ui
To:
no_proxy = <IP_ADDRESS>,localhost,ui,registry
Harbor Version: v1.5.2
OS: CentOS Linux release 7.5.1804 (Core)
Docker Engine: docker-1.13.1-68
Docker Compose: 1.21.2

Thanks for raising this issue.

Fixed in #5400


Case insensitive HTTPHeaders, HTTPResponse context manager and some fixes

Added separate class for HTTP headers, that allows accessing headers using case-insensitive names.
Also, changed some docstrings the were unclear and one that was misleading as it was inconsistent with the code.
Changed the order of Docs References, so that the most "important" ones are on the top, with enums and dataclass-like classes below.
Updated library version to 1.1.0 in sphinx configuration file.
Fixes #26
Fixes #28

@michalpokusa Any thoughts on this 404 issue? https://github.com/adafruit/Adafruit_CircuitPython_HTTPServer/issues/28#issuecomment-1362933127 I don't see anything obvious in this PR that would have affected it.

@michalpokusa Any thoughts on this 404 issue? #28 (comment) I don't see anything obvious in this PR that would have affected it. Maybe it came in with the refactor and just wasn't noticed until now. Worth a separate issue?

Working on it, also I see that other PR was merged and there are merge conflicts, so I will fix both before proceeding

After merging recently updated main branch i noticed some inconsistencies wit hthe HTTPResponse API, mainy the fact that some function would accept conn and some not. Also in chunked response sending headers and empty chunk to finish transfer should be implicit.
I decided to modify the HTTPResposne API to be unified by using context managers, by doings so i was able to reduce abstraction and number of lines of actual code, the PR may not show this as I added/extended some docstrings.
Also fixed the 404 problem in #28.

That for sure looks a lot cleaner.  Thanks for doing that

In the meantime I updated examples to new "context manager way" of serving response. Did some testing on my own and I believe that it works as it should. Also I added raising error if someone tries to use .send() or .send_file() multiple times per response.

@anecdata Could be please take a look at the current state of this PR. I believe there is everything I wanted to add and that it is ready to be merged.
In the c758e51 commit I also "included" the #30.

1.1.0 was PR 22, not sure why that does't show up in the Releases sidebar as the latest version. I think it gets assigned at release time, probably 1.2.0 is sufficient if that's enough of a clue that people need to rewrite their routes.

This should be 2.0.0 if there are incompatible API or use changes. A major version change means a code rewrite is needed.

This should be 2.0.0 if there are incompatible API or use changes. A major version change means a code rewrite is needed.

If I understand correctly, the code stays the same, only tag changes, so no futher edits are needed on my part to make it 2.0.0

Closing #30 then. Thanks for taking care of it!

If I understand correctly, the code stays the same, only tag changes, so no further edits are needed on my part to make it 2.0.0

Right, when I or whoever makes a release, it will be 2.0.0. There are incompatible API or use changes, right?

There are incompatible API or use changes, right?

Yes, instead of returning HTTPResponse instance in route handlers, the function should call a method on HTTPResponse, so all handlers need to be slightly modified, but still.

Great - I will make a release now.
I only found one use of this library in the Learn guides:
https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/PicoW_CircuitPython_HTTP_Server/code.py
Could someone take a look at that and see if there are any changes to be made? Thanks.

Great - I will make a release now.
I only found one use of this library in the Learn guides: https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/PicoW_CircuitPython_HTTP_Server/code.py Could someone take a look at that and see if there are any changes to be made? Thanks.

Thanks for merging.
Yes, there will be a small change in base and buttonpress functions. I could make the required changes, but I will be unable to test it as I do not own a Raspberry Pico W.

Maybe if Liz still has it set up, it would be easy for her to test. I have a Pico W and could test the routes, but I don't have the peripherals, so I'd stub out the I/O (possibly introducing or masking an issue).
Any network code  written for raspberrypi should run on espressif (but not necessarily vice versa since there are some things not implemented / not implementable).

If you either of you could make a draft PR, I'll test it by simplifying or setting up the base hardware. Thanks.

https://github.com/adafruit/Adafruit_Learning_System_Guides/pull/2375


✨ Drag and drop selected text

Description
Users should be able to drag and drop selected text anywhere in the same file to move it there. They should also be able to drag it to other text views to insert it there.

Closing as duplicate of #42


tesstrain.py cleanup

Remove commented out code for legacy engine as well as code not used for lstm training

I am not sure whether removing the legacy training code is a good idea.
Maybe it would be better to maintain that part as long as the legacy recognition is useful.

Good point! Keeping this alive does not cost much, but offers many options (that other engines don't). One scenario is retraining the osd.traineddata to include more scripts and improve its discriminative ability (esp. regarding Greek which I find very weak).


Fix typo jlong -> jdouble for seek method of the Video (android only)

fixes #2531
In java native part, the seek method got double parameter instead of long, but in cpp part, the casting wan't changed, what caused the issue of incorrect value.

@william-candillon let's merge this and create a next version, as this is the critical fix.

signed the Contributor License Agreement (CLA) just in case

@wcandillon thank YOU! also found one more issue, making a PR :)


Chain animations (array) not working with when, but works individually

Hello. I have PromiseKit 6.8.3 installed via CocoaPods and this is my code:
let indexes = collectionView
            .indexPathsForVisibleItems.map { $0.row }.filter { $0 != 7 }
            .shuffled()

func expandCell(_ row: Int) -> Guarantee<Bool> {
        guard let cell = self.collectionView.cellForItem(at: IndexPath(item: row, section: 0)) else {
            return Guarantee.value(false)
        }
        cell.contentView.transform = CGAffineTransform(scaleX: 0, y: 0)
        cell.contentView.alpha = 1

        return UIView.animate(.promise, duration: 1, animations: {
            cell.contentView.transform = CGAffineTransform(scaleX: 1, y: 1)
        })
    }

I also have a Promise version of it, but I'm not using it
func expandRandomCell(_ row: Int) -> Promise<Bool> {

        return Promise { seal in

            guard let cell = self.collectionView.cellForItem(at: IndexPath(item: row, section: 0)) else {
                seal.reject(WooshError.genericFailureReason(message: "no cell"))
                return
            }

            cell.contentView.transform = CGAffineTransform(scaleX: 0, y: 0)
            cell.contentView.alpha = 1

            UIView.animate(withDuration: 1.1, animations: {
                cell.contentView.transform = CGAffineTransform(scaleX: 1, y: 1)
            }) { completed in
                seal.fulfill(completed)
            }

        }

    }

I am trying to zoom 14 cells one after another.
Basically I tried using when, and it fired all of them at once. But when I chained them individually, it was working. Also tried when directly, without firstly
firstly{
          when(fulfilled: indexes.map { self.expandCell($0).asVoid() })
        }
        .done { _ in
            log.verbose("done with animations")
        }.ensure {
            log.verbose("ensure everything is good")
        }.catch { error in
            log.error("error : \(error)")
        }

vs. (which works)
        firstly {
            expandCell(indexes[0]).asVoid()
        }.then {
            self.expandCell(indexes[1]).asVoid()
        }.then {
            self.expandCell(indexes[2]).asVoid()
        }.then {
            self.expandCell(indexes[3]).asVoid()
        }.then {
            self.expandCell(indexes[4]).asVoid()
        }.then {
            self.expandCell(indexes[5]).asVoid()
        }.then {
            self.expandCell(indexes[6]).asVoid()
        }.done { _ in
            log.verbose("done with animations")
        }.ensure {
            log.verbose("ensure everything is good")
        }.catch { error in
            log.error("error : \(error)")
        }

Do I have an alternative to copy pasting the same line 14 times? 😄 Or am I doing anything wrong?

‘when’ executes all the promises at once.
Our docs have a pattern you can use to clean up the sequential chain which is what you want.

Thank you so much @mxcl for your response. would you be kind enough to point me to that?, cause I haven't been able to found it in the docs. I found different versions of the docs and went through a bunch.

Problem is just by doing this:
let indexes = collectionView
            .indexPathsForVisibleItems.map { $0.row }.filter { $0 != 7 }
            .shuffled()
            .map { self.expandCell($0.row).asVoid() }

automatically fires the events. I don't even schedule them

Yes, if you want them scheduled you have to do something that schedules them, the above map immediately iterates over all the index paths and immediately animates them. If you want them to work sequentially you have to queue them so they depend on each other somehow:
https://github.com/mxcl/PromiseKit/blob/master/Documentation/CommonPatterns.md#chaining-sequences

Thanks @mxcl. I ended doing it imperatively:
var index = 0
        let indexes = collectionView
            .indexPathsForVisibleItems.filter { $0.row != 7 }
            .shuffled()

        Timer.scheduledTimer(withTimeInterval: 0.05, repeats: true) { timer in

            let indexPath = indexes[index]
            guard let cell = self.collectionView.cellForItem(at: indexPath) else { log.verbose("no chicklet"); return }

            self.expandCell(cell)

            index = index + 1
            if index == indexes.count {
                timer.invalidate()
                self.expandMainChicklet()
            }
        }

PS: I think the sample you sent should be converted to:
var fade = Guarantee()
		for cell in tableView.visibleCells {
			fade = fade.then {
				UIView.animate(.promise, duration: 0.1) {
					cell.alpha = 0
				}.asVoid()
			}
		}
		fade.done {
			// finish
		}

I'll close this in the meantime.


Question: is there a way to not reset the sizes of windows when adding a new window?

Today, if I have 2 windows in a bsp layout, and one is smaller than the other, it will reset when adding a new window.
i.e.
if it's like this:
+-------------+
|   |         |
|   |         |
|   |         |
|   |         |
+-------------+

it becomes like
+-------------+
|      |      |
|      |      |
|      +------+
|      |      |
|      |      |
+-------------+

and it should be like this:
+-------------+
|   |         |
|   |         |
|   |---------+
|   |         |
|   |         |
+-------------+

Is there a setting I'm missing, or does this require signals/etc. Or is this not even possible?
My yabairc looks like:
# -- {{{ script injection
# for this to work you must configure sudo such that
# it will be able to run the command without password
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
sudo yabai --load-sa
# -- }}}

# -- {{{ basic
yabai -m config layout bsp
yabai -m config auto_balance on
yabai -m config focus_follows_mouse autofocus
yabai -m config mouse_follows_focus on
yabai -m config window_topmost off
yabai -m config window_shadow float
# -- }}}

# -- {{{ application specific
applications="(Calendar|Mail|Reminders|Notes|Discord|Messages|Slack|Arc|Preview|Terminal|QuickTime|Player|Spotify|Music|Kitty)"
yabai -m rule --add app="^${applications}$" manage=on layer=below
yabai -m rule --add app="^System Settings$" manage=off
# -- }}}

yabai -m config auto_balance off

Thanks!


fix: Edit physical dataset from the Edit Dataset modal

SUMMARY
It renames the onChange event that was conflicting with the Fieldset onChange event, blocking the Dataset editor from saving the changes to the data source successfully.
Fixes #14592
BEFORE
https://user-images.githubusercontent.com/60598000/126084699-de7a33d9-5deb-4936-8ed9-2d54c3421327.mp4
AFTER
https://user-images.githubusercontent.com/60598000/126084703-aa166402-e2e3-4ea4-af76-946bad6f8f74.mp4
TESTING INSTRUCTIONS

Go to the Datasets page
Click the edit icon on an existing Physical dataset
In the Edit Dataset modal, click the lock icon to make changes to the dataset
Select a different database from the current database. Then select a schema/table
Save changes
Open the Edit Dataset modal again and make sure the changes have been saved successfully

ADDITIONAL INFORMATION

[x] Has associated issue: #14592
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

/testenv up

Hey @rusackas. Thanks for spotting that issue. It appears that the conflict was much deeper in the component, causing the onChange event to affect the other fields. I have removed the conflicting event and tested all the possible combinations of changes manually. This should be good for another round of testing.
@junlincc @adam-stasiak @rosemarie-chiu @jinghua-qa

/testenv up

/testenv up

Awesome thank you for the quick fix! Testing now

/testenv up

Verified changing database on virtual dataset works. Launching in explore, in sql lab all works as expected.
https://user-images.githubusercontent.com/52086618/126207060-b6746bc8-7220-453e-8b41-52e06c6089c0.mp4
verified changing physical dataset's database works too
https://user-images.githubusercontent.com/52086618/126207287-d9231c0a-00e1-4d93-9d03-d092a711fa52.mp4

🏷 2021.27


Feature request: Treat the Chinese text as a Chinese sequence when usingCtrl+Left/Right

Now the VSCode treats a long Chinese text as one “word”. Each time use Ctrl+Left/Right, it will move the cursor to the begin or end.
The feature request is that treat the Chinese text as a Chinese sequence, then each Ctrl+Left/Right, it just move one step. This act is the system text program default.
Example: (use | as the cursor )
|本文的学习公式
// Ctrl+Right
本文的学习公式|

Expected:
|本文的学习公式
// Ctrl+Right
本|文的学习公式
// Ctrl+Right
本文|的学习公式
// Ctrl+Right
本文的|学习公式

(Of course, It would be better if it can support Word Segmentation.)

However, it doesn't move once a sentence. Actually, it also can't recognize the Chinese punctuations.
Examples:
|output gate 会影响结果，因此该模型有两个版本，分别为是否使用
// <Ctrl+Right>
output| gate 会影响结果，因此该模型有两个版本，分别为是否使用
// <Ctrl+Right>
output gate| 会影响结果，因此该模型有两个版本，分别为是否使用
// <Ctrl+Right>
output gate 会影响结果，因此该模型有两个版本，分别为是否使用|

I'd like to remind you of Ctrl + Delete, which I think may share the same logic as Ctrl + Arrow, and performs even more upset because you may easily delete too many characters by accident.

@rebornix This issue was once included in iteration plans, but I'm seeing no recent activity. Since we're nearing the end of the housekeeping iteration, can I ask if you have any update on this?

Let's see if we can have time for it during holiday time.

Is there any progress now, guys?

I found a vscode extension CJK word handler, will it be offically adopt? @kieferrm @rebornix

Any updates?
Actually in any chromium based applications, a proper word segmentation library is bundled. You can try it in i.e. file renaming input box with common key bindings. This is however seems not available to the JavaScript interface: https://bugs.chromium.org/p/chromium/issues/detail?id=129706 .
While I am appreciative of japanese-word-handler by @sgryjp and CJK word handler by @SharzyL, it seems a bit redundant to include another segmentation JavaScript library, especially when we already have a much faster one in C++. I wonder if an alternative workaround would work: copy the current line to a hidden input box and synchronize the cursor movement.

The segmenter is available in JavaScript: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter
For example:
console.log(
  JSON.stringify(
    Array.from(
      new Intl.Segmenter("en", { granularity: "word" }).segment(
        "本文的学习公式",
      ),
    ),
    undefined,
    4,
  ),
);

(In my test, it can segment any CJK language no matter which locale is specified in the constructor)
outputs
[
    {
        "segment": "本文",
        "index": 0,
        "input": "本文的学习公式",
        "isWordLike": true
    },
    {
        "segment": "的",
        "index": 2,
        "input": "本文的学习公式",
        "isWordLike": true
    },
    {
        "segment": "学习",
        "index": 3,
        "input": "本文的学习公式",
        "isWordLike": true
    },
    {
        "segment": "公式",
        "index": 5,
        "input": "本文的学习公式",
        "isWordLike": true
    }
]

The segmenter is available in JavaScript: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter

Just recently I developed an extension that takes advantage of it.
I really wanted to make a pull request to the main body of VS Code, but my technical capabilities were limited to releasing it as an extension.

Marketplace: Word Divider
Repository: yutotnh/word-divider

Image in operation

I was surprised, since VS Code is based on browser technology and browsers handle this stuff great.
Also issue with Thai:
คนไทยที่นับถือศาสนาพุทธเกินห้าสิบเปอร์เซ็นต์
Should be broken down as คน  ไทย  ที่  นับถือ  ศาสนา  พุทธ  เกิน  ห้า  สิบ  เปอร์เซ็นต์
https://fuqua.io/thai-word-split/browser/


React capstone project - Metrics webapp (Commodity Market Price)

Project requirements:

Choose an API to base the development of the webapp.
Design:
* I have followed these design guidelines, including
Interactions:

Home page.
Details page

Testing requirements.
Technical requirements.

For details requirements please click HERE.

Rename the branch name


test: netlify edge deployment

closes https://github.com/dotansimha/graphql-yoga/issues/1127

very outdated


Slash automatically added to URI with fragment and no path

> URI('http://example.com#foo').toString()
'http://example.com/#foo'

As far as I know, http://example.com#foo is a valid URI.  This is quite a big issue for me because if the URI changes after loading/serialization, it completely invalidates my RDF.

Related to #221.

Seems you're right as far as normalisation guidelines go for HTTP - RFC 3986 says:
In general, a URI that uses the generic syntax for authority with an
empty path should be normalized to a path of "/".  Likewise, an
explicit ":port", for which the port is empty or the default for the
scheme, is equivalent to one where the port and its ":" delimiter are
elided and thus should be removed by scheme-based normalization.  For
example, the second URI above is the normal form for the "http"
scheme.

However, this is HTTP specific and shouldn't happen for URIs with other protocols.

You are correct, http://example.com#foo is a valid URI, as path-abempty may indeed be the empty string (per RFC 3986 Collected ABNF).
toString() runs URI.build() behind the scene, which adds the path if required:
var u = URI('http://example.com#foo');
u.toString()
// "http://example.com/#foo"

u._parts.path = null;
u.toString()
// "http://example.com#foo"

The slash is added by URI.parseAuthority() in case there is no path. Replacing "/" with "" (empty string) would not help, as URI.build() would interpret the empty string to mean /. However, returning null instead of the empty string would solve your problem - and make 13 tests fail, thus has to be considered a breaking change.

However, this is HTTP specific and shouldn't happen for URIs with other protocols.

I agree, but your example showed an http url?

Thanks,

I agree, but your example showed an http url?

Yes - I only found out about the difference with HTTP afterwards.
Maybe permitting empty paths could be an option to avoid breaking tests?

Maybe permitting empty paths could be an option to avoid breaking tests?

how do you suggest we do that?


RSC: Resetting secret key?

Assuming one has an asynced state of the secret key between the DB and the RSC instance, how would one resolve it for k8s deployments?
I am aware of https://docs.rstudio.com/connect/admin/appendix/cli/#rscadmin and rscadmin --reset-secret-key. However, in this state the RSC pod does not even start and hence one cannot run rscadmin to solve the issue (as on a host or docker install where the startup can more easily be overriden).
Is there an easy solution which I am overlooking?

Oops, apologies for the delay getting back to you here!! One simple (ugly) solution is to set sleep as your command:
command: ["sleep"]
args: ["infinity"]
readinessProbe:
  enabled: false

However, we are tracing through some work that we did on a project called rskey that makes it easier to generate this value elsewhere and then make use of it in helm values / etc..
https://github.com/rstudio/rskey
Getting this working definitely involves a bit of nuance that we have not yet documented adequately IMO. If you're interested in using rskey, I would definitely be happy to help get you the order of operations though!

Thanks for the workaround! Looking forward to the integration of rskey!


First pass at disk quotas

This is an attempt to implement the diskQuota and diskUsage features in DEP-0003. This is a draft implementation, and my first homebase contribution, so I'm sure there is a lot of room for improvement and it could use an extra set of eyes. There are a bunch of console logs in here which won't be in the final version, as well, but are included for the sake of debugging during development.
Basic features follow.
Add a diskQuota variable to the config
There is now a diskQuota field in the config that accepts a quota in bytes. I couldn't find a library that parses "human" byte strings like "100MB" or "1GB" to a byte Number, and in fact that might be an antipattern so I'm just sticking to raw bytes. Since the users of homebase are sysadmins of some flavor, I think this should be okay.
Return diskQuota and diskUsage on GET account call
When you send GET /v1/accounts/account, you now get the quota and space used, per DEP-0003.
Rejects a new pinning request if accepting the request would put the user over quota
On a call to /v1/dats/add, the sparse statistics for the dat are downloaded. This tells us how big the full dat is, and we do the math based on the existing diskUsage and return a 403 error and message, User is over quota: requested dat is ${datSize} bytes, user has ${config.diskQuota - config.diskUsage} bytes remaining.
On downloading a chunk of a dat, check to see if we are over quota
On a 'download' event, if the chunk being downloaded would put us over quota, we stop downloading this particular dat.
We keep a running estimatedDiskUsage that is occasionally synced to the "real" diskUsage so we don't have to parse the entire directory tree every time a chunk is downloaded from an active dat. estimatedDiskUsage is synchronized to the real value every five minutes and on startup.
Re-allow all downloads if we go back under quota
When we check the real diskUsage every five minutes, if we are under quota, we restart all dats, which allows for downloads again. Currently this will restart all dats every five minutes. I'm not sure if this is a "free" operation for a dat that is currently already active. Maybe we should make activeDats available somehow and only restart dats that are not in that object?

Oh and I do plan to update the README as well but will save that for a time when the implementation is final.


"KaTeX parse error: Expected 'EOF', got '' at position 1" when input pure Chinese character(s)

Bug Reproducing Instructions

Browse KaTeX – The fastest math typesetting library for the web
Input any C(JK) characters, this attempt uses "測試"

Expected Behavior
"測試" printed in "See how it renders with KaTeX: " field, presumably to be in italic just as any regular text
Current Behavior
The "See how it renders with KaTeX: " field spews out the following error:
KaTeX parse error: Expected 'EOF', got '測' at position 1: 測̲試

@Lin-Buo-Ren awesome bug report.  You can use CJK characters within \text.  I'm curious about the use cases of natural language strings outside of \text?

@kevinbarabash

I'm curious about the use cases of natural language strings outside of \text?

I'm not sure as I'm not really acquainted with LaTeX and simply using it to write math equations in Markdown documents on GitBook, never used \text before ;)

I know it is utf8 characters related... looked into sources of katex on font and there are only printable english chars maybe it is related to multy-byte-ness of non ascii chars
PS. czech chars  like "ěščřžýáíéťňůú" and theri capitalizated version"ĚŠČŘŽÝÁÍÉŤŇŮÚ" do not work also and  utf-8 emoji also not work 😭.....only sotlution  is ( if input box is utf-8) do utf 8 filter if it thinking it is procesing ascii)
it can look like this ( is not corect im writing in hurry) //will return nuber of bytes that )
function utf8(char input) var locarvar=0; { if (input>128){ shr input; // shift right input for (var i=0;i<7;i++) { if (odd(input)){ localvar++; } shr input; } return localwar; }else return 0;  }

To be clear, \text{測試} works fine (with any CJK character); it's just 測試 in math mode that doesn't work.  I don't see any particular reason to forbid CJK characters in math mode, so we should look at adding support for that.

FYI, PR #992 adds support for CJK characters in math mode.  We're still resolving some accent-related issues there.  If they don't get resolved soon (or the PR gets rejected), I could split off the CJK-in-math-mode part into a separate PR.

@tanjhysj0 On the master branch, you can set the unicodeTextInMathMode to true, and this should work.


Update cisco-user-management-for-secure-access-provisioning-tutorial.md

Add mapping from originalUserPrincipleName to UserName to enable a Microsoft Entra guest user account.

@twimmers
Can you review this PR? Sign-off or approve if you're okay with the changes.
NOTE: To sign off, add #sign-offto a comment."
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

This pull request adds information about mapping a guest Azure account to the UserName attribute in the Cisco User Management app.

@microsoft-github-policy-service agree company=cisco

Hi @kbhawkey do you work with Cisco team or are you a customer of Cisco team? Could you please drop an email to the alias<EMAIL_ADDRESS>with the tutorial change ask so that we can implement it soon on the tutorial

#sign-off

Closing this PR as we didn't any response from the user on our previous ask.
#please-close


FlutterInappPurchase.purchaseUpdated is never called on iOS event though native dialog says the purchase is successful

Version of flutter_inapp_purchase
FlutterInappPurchase.purchaseUpdated.listen(
(value) {
print('PURCHASE UPDATED');
},
onDone: _onDone,
);
Platforms you faced the error (IOS or Android or both?)
iOS
Expected behavior
Callback is triggered
Actual behavior
Nothing happens
Tested environment (Emulator? Real Device?)
Real device with Sandbox account
Steps to reproduce the behavior
I simply subscribe to the stream like this
FlutterInappPurchase.purchaseUpdated.listen(
      (value) {
        print('FFFFFFFFFFF');
      },
    );

then buy a test product like so:
FlutterInappPurchase.instance.requestPurchase(
        item.productId,
      );

The product is successfully bought and I see a native dialog informing me of a successful buy but the
stream callback if never triggered

I have the exact same issue. I have called getPurchaseHistory() and can see the sandbox purchase in there too.

At the dispose part add:
super.dispose()
if you have existing issue, call this:
if (_conectionSubscription != null) {
      _conectionSubscription.cancel();
      _conectionSubscription = null;
    }

I guess, the code did not close the previous connection, that's why it give back a fake "successful" message.

At the dispose part add:
super.dispose()
if you have existing issue, call this:
if (_conectionSubscription != null) {
      _conectionSubscription.cancel();
      _conectionSubscription = null;
    }

I guess, the code did not close the previous connection, that's why it give back a fake "successful" message.

It has nothing to do with the issue

At the dispose part add:
super.dispose()
if you have existing issue, call this:
if (_conectionSubscription != null) {
      _conectionSubscription.cancel();
      _conectionSubscription = null;
    }

I guess, the code did not close the previous connection, that's why it give back a fake "successful" message.

It has nothing to do with the issue

Then what should I do with the subscription method? Change the pub? Or do you have any advice?

At the dispose part add:
super.dispose()
if you have existing issue, call this:
if (_conectionSubscription != null) {
      _conectionSubscription.cancel();
      _conectionSubscription = null;
    }

I guess, the code did not close the previous connection, that's why it give back a fake "successful" message.

It has nothing to do with the issue

Then what should I do with the subscription method? Change the pub? Or do you have any advice?

Canceling subscriptions is a must, of course, and you should really cancel them when they are not necessary anymore. But in this case the issue happens inside platform code and is surely not related to the dart side

Any solution for that one ?


Implementing LIFX API for turning on lights with fade-in when alarm goes...

I added a few things so that the app uses the LIFX (smart lights) cloud API to turn on lights with a fade-in when an alarm goes off. The website would also have to be updated with these changes so that the users can update their LIFX token which is needed for the API.

Hi, happy to include this - sorry I've been out of the loop for a little while. It seems like a nice addition to Morpheuz - thanks. My next release, is, as you'd expect, to include colour and support for Pebble Time but after that I want to get this one in.

Implementing in version 3.1 - if you want to beta test this, please reply.

I would love to participate in testing. Is LIFX conpatible with philis hue?

I believe not.

@alin256 Unfortunately not, I would have to implement a different interface for the Hue, and I don't own one so testing would be difficult.
@JamesFowler42 Sure thing, let me know what I can do to help with testing.


THRIFT-5506 + THRIFT-5505

THRIFT-5506 C26495 variable "t_field::req_" not initialized, t_field.h:40
Compiler General
Patch: Jens Geyer

THRIFT-5505 error: 'close_generator' overrides a member function but is not marked 'override'
Client: netstd
Patch: Jens Geyer

@Jens-G When I download the 0.16.0 source and build locally on my Mac, I get the THRIFT-5505 errors. Do you have any plans to release a 0.16.1 that includes this fix, by any chance?
We don't use the netstd generator so I stubbed it out by removing the files. That's how I was able to get it to build.

Do you have any plans to release a 0.16.1 that includes this fix, by any chance?

Not yet, no.
You probably could cherry pick the patch without much problems yourself, or what am I overlooking?

Yeah, it might be a better idea for us to maintain a fork.
Is there any way we can help prevent these kinds of problems in the future, before the release? Do you need additional integration tests, or specific git workflows or something?

Is there any way we can help prevent these kinds of problems in the future, before the release? Do you need additional integration tests, or specific git workflows or something?

Great question. It would help to see the builds fail in the existing CI runs. Not sure what needs to be changed (assuming its not a compiler specific thing) but that would certainly help.

I was building on an M1 Mac.
I see there are homebrew bottles built; how do those happen? Can you point me to that?
I also see in .travis.yml that the osx builds were causing timeouts, but that looks like a relatively old comment. How was that working?

Don't know either. I sent a request to the dev mailing list.

I see how homebrew is building bottles. The homebrew recipe includes ENV.deparallelize, which removes the MAKEFLAGS environment variable. In my build log, I see this:
clang++ called with: -std=c++11 -DHAVE_CONFIG_H -I./src -Wall -Wextra -pedantic -Werror -g -O2 -MT src/thrift/generate/thrift-t_netstd_generator.o -MD -MP -MF src/thrift/generate/.deps/thrift-t_netstd_generator.Tpo -c -o src/thrift/generate/thrift-t_netstd_generator.o src/thrift/generate/t_netstd_generator.cc
superenv removed:  -Wall -Wextra -pedantic -Werror -g -O2
superenv added:    -pipe -w -Os -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk --sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -isystem/opt/homebrew/include -isystem/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers<EMAIL_ADDRESS>superenv executed: clang++ -pipe -w -Os -std=c++11 -stdlib=libc++ -std=c++11 -DHAVE_CONFIG_H -I./src -MT src/thrift/generate/thrift-t_netstd_generator.o -MD -MP -MF src/thrift/generate/.deps/thrift-t_netstd_generator.Tpo -c -o src/thrift/generate/thrift-t_netstd_generator.o src/thrift/generate/t_netstd_generator.cc -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk --sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -isystem/opt/homebrew/include -isystem/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers<EMAIL_ADDRESS>
So ENV.deparallelize is removing the -Wall -Wextra -pedantic -Werror settings, which means that the command-line flag that triggered that error has been removed for homebrew builds.


http://azure.archive.ubuntu.com is throwing back 404 Not Found errors

Description
For a couple of hours we are constantly getting these errors on GitHub runners when trying to install certain packages. See example here: https://github.com/pyansys/python-installer-qt-gui/actions/runs/4717996936/jobs/8367148080?pr=79#step:2:370
Get:55 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 cups-bsd amd64 2.4.1op1-1ubuntu4.1 [37.0 kB]
Err:8 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libgs9-common all 9.55.0~dfsg1-0ubuntu5.1
  404  Not Found [IP: <IP_ADDRESS> 80]
Err:12 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libgs9 amd64 9.55.0~dfsg1-0ubuntu5.1
  404  Not Found [IP: <IP_ADDRESS> 80]
Err:19 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 ghostscript amd64 9.55.0~dfsg1-0ubuntu5.1
  404  Not Found [IP: <IP_ADDRESS> 80]
Err:20 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 ghostscript-x amd64 9.55.0~dfsg1-0ubuntu5.1
  404  Not Found [IP: <IP_ADDRESS> 80]
Fetched 161 MB in 4s (38.4 MB/s)
E: Failed to fetch [http://azure.archive.ubuntu.com/ubuntu/pool/main/g/ghostscript/libgs9-common_9.55.0%7edfsg1-0ubuntu5.1_all.deb](http://azure.archive.ubuntu.com/ubuntu/pool/main/g/ghostscript/libgs9-common_9.55.0~dfsg1-0ubuntu5.1_all.deb)  404  Not Found [IP: <IP_ADDRESS> 80]
E: Failed to fetch [http://azure.archive.ubuntu.com/ubuntu/pool/main/g/ghostscript/libgs9_9.55.0%7edfsg1-0ubuntu5.1_amd64.deb](http://azure.archive.ubuntu.com/ubuntu/pool/main/g/ghostscript/libgs9_9.55.0~dfsg1-0ubuntu5.1_amd64.deb)  404  Not Found [IP: <IP_ADDRESS> 80]
E: Failed to fetch [http://azure.archive.ubuntu.com/ubuntu/pool/main/g/ghostscript/ghostscript_9.55.0%7edfsg1-0ubuntu5.1_amd64.deb](http://azure.archive.ubuntu.com/ubuntu/pool/main/g/ghostscript/ghostscript_9.55.0~dfsg1-0ubuntu5.1_amd64.deb)  404  Not Found [IP: <IP_ADDRESS> 80]
E: Failed to fetch [http://azure.archive.ubuntu.com/ubuntu/pool/main/g/ghostscript/ghostscript-x_9.55.0%7edfsg1-0ubuntu5.1_amd64.deb](http://azure.archive.ubuntu.com/ubuntu/pool/main/g/ghostscript/ghostscript-x_9.55.0~dfsg1-0ubuntu5.1_amd64.deb)  404  Not Found [IP: <IP_ADDRESS> 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Platforms affected

[ ] Azure DevOps
[X] GitHub Actions - Standard Runners
[ ] GitHub Actions - Larger Runners

Runner images affected

[ ] Ubuntu 20.04
[X] Ubuntu 22.04
[ ] macOS 11
[ ] macOS 12
[ ] Windows Server 2019
[ ] Windows Server 2022

Image version and build link
Version: 20230409.1
PR: https://github.com/pyansys/python-installer-qt-gui/pull/79
GH Job: https://github.com/pyansys/python-installer-qt-gui/actions/runs/4717996936/jobs/8367148080
Is it regression?
https://github.com/pyansys/python-installer-qt-gui/actions/runs/4700414779/jobs/8335081053
Expected behavior
When doing sudo apt-get install libegl1 we shouldn't be getting this error...
Actual behavior
Artifacts not found in archive
Repro steps
Follow the workflow steps.. Aparently if you just checkout an ubuntu-latest runner and run sudo apt-get install libegl1, this should fail.

Hello @RobPasMue . As I see you already add apt update to your workflow. Did it fixed error and can I close the issue?

We added apt-get update indeed. But shouldn't the runners come with an updated version of the repositories? This is the first time something like this happens to us

Runner images updates usually come once a week and package lists in repos are being updated quite more often than it so it's normal.
From official documentation :  Note: Always run sudo apt-get update before installing a package. In case the apt index is stale, this command fetches and re-indexes any available packages, which helps prevent package installation failures.
I am closing this issue for now. If you have additional question, feel free to ask.


Error for Hyper-V available check when management tools not installed

The line:
https://github.com/crc-org/crc/blob/e43de8dfca711be4f76acef3d07b67ea121cbe1f/pkg/drivers/hyperv/powershell_windows.go#L47
will fail when Management tools aren't installed:
INFO Creating CRC VM for OpenShift 4.13.3...
panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
github.com/crc-org/crc/pkg/drivers/hyperv.hypervAvailable()
        /builddir/build/BUILD/crc-2.23.0/pkg/drivers/hyperv/powershell_windows.go:47 +0xb4
github.com/crc-org/crc/pkg/drivers/hyperv.(*Driver).PreCreateCheck(0xc0005edef0)
        /builddir/build/BUILD/crc-2.23.0/pkg/drivers/hyperv/hyperv_windows.go:119 +0x3c
github.com/crc-org/crc/pkg/crc/machine.createHost({{0xc000bb0d9a, 0x17}, {0x2320065, 0x3}, 0x2400, 0x4, 0x1f, {0xc0004f4940, 0x3a}, {0xc000dc1398, ...}, ...}, ...)
        /builddir/build/BUILD/crc-2.23.0/pkg/crc/machine/start.go:723 +0x19c
github.com/crc-org/crc/pkg/crc/machine.(*client).Start(0xc000daa5c0, {0x26cc6d8, 0xc000daad40}, {{0xc000bb0d80, 0x3b}, 0x2400, 0x4, 0x1f, {0x0, 0x0}, ...})
        /builddir/build/BUILD/crc-2.23.0/pkg/crc/machine/start.go:329 +0x9d8
github.com/crc-org/crc/pkg/crc/machine.(*Synchronized).Start(0xc000daa600, {0x26cc780?, 0xc000c805a0?}, {{0xc000bb0d80, 0x3b}, 0x2400, 0x4, 0x1f, {0x0, 0x0}, ...})
        /builddir/build/BUILD/crc-2.23.0/pkg/crc/machine/sync.go:93 +0xca
github.com/crc-org/crc/cmd/crc/cmd.runStart({0x26cc780, 0xc000c805a0})
        /builddir/build/BUILD/crc-2.23.0/cmd/crc/cmd/start.go:111 +0x5ad
github.com/crc-org/crc/cmd/crc/cmd.glob..func11(0x3751c20, {0x5?, 0x2336a0c?, 0xc?})
        /builddir/build/BUILD/crc-2.23.0/cmd/crc/cmd/start.go:57 +0x57
github.com/crc-org/crc/cmd/crc/cmd.executeWithLogging.func1(0x3751c20, {0x3cfc9f0, 0x0, 0x0})
        /builddir/build/BUILD/crc-2.23.0/cmd/crc/cmd/root.go:170 +0x102
github.com/spf13/cobra.(*Command).execute(0x3751c20, {0x3cfc9f0, 0x0, 0x0})
        /builddir/build/BUILD/crc-2.23.0/vendor/github.com/spf13/cobra/command.go:916 +0x862
github.com/spf13/cobra.(*Command).ExecuteC(0x3753600)
        /builddir/build/BUILD/crc-2.23.0/vendor/github.com/spf13/cobra/command.go:1044 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
        /builddir/build/BUILD/crc-2.23.0/vendor/github.com/spf13/cobra/command.go:968
github.com/spf13/cobra.(*Command).ExecuteContext(...)
        /builddir/build/BUILD/crc-2.23.0/vendor/github.com/spf13/cobra/command.go:961
github.com/crc-org/crc/cmd/crc/cmd.Execute()
        /builddir/build/BUILD/crc-2.23.0/cmd/crc/cmd/root.go:105 +0xd9
main.main()
        /builddir/build/BUILD/crc-2.23.0/cmd/crc/main.go:8 +0x17

not related maybe related #2555

This resp[0] pattern appears multiple times over this file. Since we only look at resp[0], maybe parseLines should return a string instead of an array whose length we need to check.

If there is no response, we have to fail... but perhaps be even more specific in the check.

and yes, @adrianriobo this might be related. we have to make sure how this interacts. the report I saw spoke that the setup succeeded, but start would fail. It should always fail on setup (checks) first.

will fail when Management tools aren't installed:

Looking at hypervAvailable, it is:

func hypervAvailable() error {
	stdout, err := cmdOut("@(Get-Module -ListAvailable hyper-v).Name | Get-Unique")
	if err != nil {
		return err
	}

	resp := parseLines(stdout)
	if resp[0] != "Hyper-V" {
		return ErrNotInstalled
	}

	return nil
}

If the tools aren't available, why isn't cmdOut returning an error?

cmdOut

IIRC, this can not return an error as this is executed as a different user. In tht case you can only get the value, but not the error


fix(go): map values incorrectly handled though de/serialization

Map values were not handled in the de/serialization routines, resulting
in incorrect behavior.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

AWS CodeBuild CI Report

CodeBuild project: AutoBuildProject89A8053A-6Jw05QLuWWwe
Commit ID: 7681a4da4c35d227811b6e64f5ba112419945d89
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: AutoBuildProject89A8053A-6Jw05QLuWWwe
Commit ID: 1fc9c3e7819fc9d2ef7112694c4e3127c0602301
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: AutoBuildProject89A8053A-6Jw05QLuWWwe
Commit ID: 7681a4da4c35d227811b6e64f5ba112419945d89
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: AutoBuildProject89A8053A-6Jw05QLuWWwe
Commit ID: c1b8e4fcb6ee0a0fbb214e4613d69da10078dbfa
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository