refactor(lib): update serde and serde_json to 0.9

The Serde update breaks its API, introducing a wrapper around the previous type alias for a BTreeMap. It also updates to_value to return a Result instead of a Value directly. I've updated the uses of BTreeMap to refer to the new Map struct instead, and added a .expect to the use of to_value - I don't think there's any reason it should fail, since our data is definitely serializable, but let me know if you'd prefer a different technique there.
This is a breaking change, since it requires users of queryst to update their serde_json.

@s-panferov bumping this PR, any chance this could get merged some time soon? I'm looking to publish a crate soonish that depends on serde_json being updated here.

@lord thanks for the ping, I'll looks through it soon.

There were the following issues with your Pull Request

Commit: 53e5713ab560c8e74198a75dd219af5860b998d1
Commits must be in the following format: %{type}(%{scope}): %{description}

Guidelines are available at https://github.com/rustless/queryst/blob/master/CONTRIBUTING.md

This message was auto-generated by https://gitcop.com


Reactivity doesn't work?

So I've been trying to code a tiny app just to figure out how this works. I'm running it with tns preview and Android preview app.
The part that breaks is that it's supposed to display one icon or the other:
      {#if alive}

      {:else}

      {/if}

Instead what I see is this when I get life to positive / negative is this:

I tried a bunch of variants of this code (life >= 0, some extra reactive variable, with and without else block etc.) and result is always the same - the element that's supposed to be removed isn't removed.
I'm pretty sure it would work in regular Svelte.
So I think that's a bug in Svelte Native?

It could be, sometimes it is a problem with the nativescript widget itself,
some of which don't support element removal. In which case, instead of
wrapping with an if, you need to toggle the visibility of the element
(instead of add remove from the Dom)
On Sun, 16 Aug 2020, 11:56 am Tomasz Wegrzanowski<EMAIL_ADDRESS>wrote:

So I've been trying to code a tiny app just to figure out how this works
https://github.com/taw/svelte-native-life-counter/blob/master/app/LifeCounter.svelte.
I'm running it with tns preview and Android preview app.
The part that breaks is that it's supposed to display one icon or the
other:
  {#if alive}

  {:else}

  {/if}

Instead what I see is this when I get life to positive / negative is this:
[image: 2020-08-16 02 51 46]
https://user-images.githubusercontent.com/17444/90324846-cc483380-df6b-11ea-9b29-eb2004333476.jpg
I tried a bunch of variants of this code (life >= 0, some extra reactive
variable, with and without else block etc.) and result is always the same

the element that's supposed to be removed isn't removed.

I'm pretty sure it would work in regular Svelte.
So I think that's a bug in Svelte Native?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/halfnelson/svelte-native/issues/166, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEGS5G7AXFXWBKMULFXPZ3SA44FHANCNFSM4QASHCDQ
.

Is there any documentation of what works and what doesn't?

Issues tab on GitHub outlines the ones we know about
On Sun, 16 Aug 2020, 1:42 pm Tomasz Wegrzanowski<EMAIL_ADDRESS>wrote:

Is there any documentation of what works and what doesn't?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/halfnelson/svelte-native/issues/166#issuecomment-674474570,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEGS5AMGAYX4M5YQAALHDTSA5IQ7ANCNFSM4QASHCDQ
.

Here's something closer to minimum test case. This one does CATDOGCATDOGCATDOG...
  let cat = true;
</script>

<page>
	<stackLayout>
		<button on:tap={() => cat=true}>CAT</button>
		<button on:tap={() => cat=false}>DOG</button>

			<formattedString>
				{#if cat}

				{:else}

				{/if}
			</formattedString>

	</stackLayout>
</page>

I guess the whole formattedString would need to get nuked and regenerated on every update inside it?

Here's another one. This one doesn't update at all, stays as CAT regardless of component state:

<page>
  <stackLayout>
    <button on:tap={() => cat=true}>CAT</button>
    <button on:tap={() => cat=false}>DOG</button>

      {#if cat}
        <formattedString>

        </formattedString>
      {:else}
        <formattedString>

        </formattedString>
      {/if}

  </stackLayout>
</page>

Finally this one works:

<page>
  <stackLayout>
    <button on:tap={() => cat=true}>CAT</button>
    <button on:tap={() => cat=false}>DOG</button>
    {#if cat}

        <formattedString>

        </formattedString>

    {:else}

        <formattedString>

        </formattedString>

    {/if}
  </stackLayout>
</page>

It's still 2 components not updating their contents properly, failing in different ways (label just not updating; formattedString adding only).

Thanks for the repro,  I'll check it out.
On Wed, 19 Aug 2020, 7:26 pm Tomasz Wegrzanowski<EMAIL_ADDRESS>wrote:

Finally this one works:

 cat=true}>CAT
 cat=false}>DOG
    {#if cat}

    {:else}

    {/if}

It's still 2 components not updating their contents properly, failing in
different ways (label just not updating; formattedString adding only).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/halfnelson/svelte-native/issues/166#issuecomment-676022666,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEGS5AO5AK3ZBLFCID22Y3SBOLFRANCNFSM4QASHCDQ
.

Deployed in 0.8.5.
Thanks for the bug report and repro, this fix will help other components too 👍


Use Case: Size of Logo determines padding at the top of the Use Case Landing

Adding a container for the logo file of 600x200 may fix this problem.  (Eventually, we want to have a LinkedIn/FB style logo edit interface for the user so that the logo formatting doesn't cause any CX changes to the site).
When we are using user-submitted logos - there is no padding - so the top nav and the bottom line are pushed straight up against the Function, Industry blocks at the top of the screen.  If we create a logo container, then the page should render consistently with space so that the look/feel of the site remains intact.

Looks better, let's center the logo up and down on the page between the top nav and the separation bar.


UC 27: As a developer, I want to be able to manage URL for a component in an easy way

As a developer, I want to be able to expose a component to the outside world in an easy way, only requiring the common minimal information (hostname, path, secure)
Routes scenarios:

Create a route
Modify route
Delete Route

$ ocd url create [name] [--hostname] [--path] [--secure] [--component]
$ ocd url update [name]  [--hostname] [--path]  [--component]
$ ocd url delete [name]  [--component]  [--secure]
-------------
$ ocd url create
$ ocd url create --secure

-------------
$ ocd url delete
$ ocd url delete --secure

NOTE: When name is not specified, it defaults to the name of the current component (as in all the other commands). When a non-secure route is being created, the name is defaulted to “” vs. when a secure route is being created and a name is not explicitly stated, it is defaulted to “-secure”.
Eventually we would probably want to have commands or support for:

A/B?
Blue/Green?

Tasks (create issues if tasks are deferred):

[x] Create a route

[x] To active component

[x] With default values
[ ] With user provided values

[x] To specified component

[x] With default values
[ ] With user provided values

[ ] Create a secure route

[ ] To active component

[ ] With default values
[ ] With user provided values

[ ] To specified component

[ ] With default values
[ ] With user provided values

[ ] Modify route

[ ] To active component

[ ] With default values
[ ] With user provided values

[ ] To specified component

[ ] With default values
[ ] With user provided values

[ ] Modify secure route

[ ] To active component

[ ] With default values
[ ] With user provided values

[ ] To specified component

[ ] With default values
[ ] With user provided values

[x] Delete Route

[x] To active component
[x] To specified component

Subtasks:

#65
#231

it needs to be decomposed to subtasks.
At least create needs to be there for MVP

url create, delete and  list added in  PR #252. This should enough for MVP

From this issue, we almost have everything except --secure flag

secure will be addressed later in a separte issue based on the need
/close


Update transfer allowance input and button are disabled

Describe the bug (required)
Cannot update transfer allowance
Expected behavior (required)
Text input field and buttons should not be disabled
To Reproduce (required)
Steps to reproduce the behavior:

Enable transfer allowance of N LPT
Bond N/2 LPT to a transcoder
Bond N/2 LPT to a 2nd transcoder (thereby moving N LPT)
The bonding goes through, but it seems to get stuck where I can't see where I've bonded my LPT nor can I unbond. https://www.supermax.cool/livepeer/mainnet/activity?filter={"search"%3A"0x6c3f28abb2c24c2b531e77eea5c9edecc1778694"}

Device (required):

Device: MacBook Pro
OS: Mac
Browser Chrome
Version 74

Screenshots (optional)

Additional context (optional)
Add any other context about the problem here.

maybe related to #416

Closing since the classic explorer is no longer maintained.

Closing since the classic explorer is no longer maintained.


1.6 Backport 19 08 06

PRs:
#8792
#8791
#8779
#8755
#8764
#8757
#8773
#8768
#8765
#8747
#8754
#8731
#8749
#8715

This change is

test-me-please

@tgraf please review https://github.com/cilium/cilium/pull/8802/commits/9c4f5034fca71f6e8384d10ee34b31a3d11d9dbf there were some conflicts.

OK need to rework the helpers patch my conflict resolution is obviously broken.

test-me-please


chore: improve dx of reading env vars

Try out this version of the Hiro Wallet - download extension builds.

This has bothered me for a while, many libraries take this approach to make reading env vars make sense

@kyranjamie should this be merged?

Closing for now, introduced more type errors than I care to fix


Positioning issue if FEN string changes completely

Hi! Here is an example of issue:
https://github.com/Clariity/react-chessboard/assets/93901579/9f04b2f2-6d34-4ef5-8078-b37636946ddd
If I change FEN to a couple of moves it's ok, but if I change it to the start of the game it messes things up :(
Is there any way to fix it?

Hi @Makavto! Can you please provide code how FEN position's change works, and check which value for start position do you set, when you click on first move. Also please tell me which version of react-chessboard do you use?

I guess the problem is here in useEffect: The game.load() method change's Chess objects, but doesn't make your Chessboard component rerender
  useEffect(() => {
    if (!!startingFen) {
      game.load(startingFen);
      checkDangerSquares();
      // here will be setGame() call which will be make your component rerender `Chessboard`
    }
  }, [startingFen])

I've tried it with setGame() like this:
useEffect(() => {
    if (!!startingFen) {
      setGame(new Chess(startingFen));
      checkDangerSquares();
    }
  }, [startingFen])

and it didn't work either :(
I will try useMemo approach

Can you please also try to  comment customSquare={CustomSquare} line and check, is the issue still appears? Make sure your custom style squares have right css position props

Yes! You are right, the problem was in custom squares! I will edit styles for them.
Thanks a lot for your help!


x/tools/internal/lsp: TestLSP/GOPATH failure with "race detected during execution of test"

2022/08/02 19:20:54 New session
	create_session=1
2022/08/02 19:20:56 go/packages.Load #1
[...]
==================
WARNING: DATA RACE
Read at 0x00c0086205a0 by goroutine 34461:
  golang.org/x/tools/internal/lsp/cache.(*snapshot).load()
      /tmp/workdir/gopath/src/golang.org/x/tools/internal/lsp/cache/load.go:144 +0x11a6
  golang.org/x/tools/internal/lsp/cache.(*snapshot).loadWorkspace()
      /tmp/workdir/gopath/src/golang.org/x/tools/internal/lsp/cache/view.go:710 +0x38b
  golang.org/x/tools/internal/lsp/cache.(*snapshot).initialize()
      /tmp/workdir/gopath/src/golang.org/x/tools/internal/lsp/cache/view.go:645 +0x229
  golang.org/x/tools/internal/lsp/cache.(*Session).createView.func4()
      /tmp/workdir/gopath/src/golang.org/x/tools/internal/lsp/cache/session.go:268 +0x8d

Previous write at 0x00c0086205a0 by goroutine 34426:
  golang.org/x/tools/internal/lsp/cache.(*View).SetOptions()
[...]
2022/08/02 19:22:47 go/packages.Load #30
	snapshot=1
	package="command-line-arguments"
	files=[/tmp/workdir/go/src/builtin/builtin.go]
2022/08/02 19:22:47 go/packages.Load #30: updating metadata for 1 packages
2022/08/02 19:22:49 no signature help: no signature help within a string literal
	position={49 5}
2022/08/02 19:22:49 no signature help: no signature help within a function declaration
	position={76 2}
--- FAIL: TestLSP (119.09s)
    --- FAIL: TestLSP/GOPATH (48.73s)
        testing.go:1319: race detected during execution of test
    testing.go:1319: race detected during execution of test
FAIL
FAIL	golang.org/x/tools/internal/lsp	119.292s

2022-08-02T18:52:36-0d04f65-4345620/freebsd-amd64-race

Dupe of #54214.

Thanks and sorry I missed it. I changed the prefix in the title of #54214 to follow the usual convention so it'll be easier to find.

Thanks, don't know what I was thinking with that issue title! (how many issues have I filed...?!)


Migrate to 3.6

I wanted to help you get this ready for 3.6. I hope the changes are ok. I've tested it roughly and everything seems to work as expected. Let me know if you have any questions.

Everything seems to work smoothly indeed! Thanks you!


Amazon S3 upload shows error "undefined"

I am trying to set-up Amazon S3 upload, the resulting error says
VM459:1 OPTIONS https://undefined.amazonaws.com/undefined net::ERR_NAME_NOT_RESOLVED
Any idea why this might be happening?
CORS is set-up, my credentials are valid.

It looks like you are not setting it correctly. Make sure you follow the example:
https://github.com/froala/editor-php-sdk-example/blob/337c5e61489e68779e805e2dc0759b2d567b7b88/index.php#L12
https://github.com/froala/editor-php-sdk-example/blob/337c5e61489e68779e805e2dc0759b2d567b7b88/index.php#L322


ci: add golangci to linters

Signed-off-by: Boris Glimcher<EMAIL_ADDRESS>

see https://github.com/opiproject/sztp/pull/85


app_metadata is not accessible in WebApp-OpenIdConnect-Sample.

Hello,
I added the following to the app_metadata of a user in our account at Auth0, and saved it.
{
"tenantid": "123",
"plans": [
{
"abcplan": {
"roles": [
"admin",
"reports",
"staff"
]
}
}
]
}
I set the following in the config.json file to our values:
"Auth0": {
"ClientId": "AAAAAA",
"ClientSecret": "BBBBbbbbBBBBB",
"Domain": "abcdef.auth0.com",
"RedirectUri": "http://localhost:59383/"
},
When I log in using Google, which is how the user is set at Auth0, I hit a breakpoint in ConfigureServices in Startup.cs.  When I look at the claims, I do not see the app_metadata items.  Can you please tell me what is wrong?
Thanks,
Mike

Make sure you request that information in the scope when you show the Lock:
    lock.show({
        closable: false,
        callbackURL: window.location.origin + '/signin-oidc',
        authParams: {
            nonce<EMAIL_ADDRESS>            state<EMAIL_ADDRESS>            scope: 'openid nickname email plans tenantid',
            response_type: 'code'
        }
    });

Ahhh...  The sample did not indicate that I needed to add them to the scope; Now, I understand why they weren't there.  Thank you very much for your help and I hope that you will have a great holiday.


Too many connections open

Do the connections not get closed? I'm using a cheap database on elephantSQL and get constant errors that I have too many connections. I'm currently allowed 10 connections on my plan.
Connections just seem to be sat there still open?

What exception are you getting? I assume that the application is concurrently processing requests with disabled pooling in the connection string. Is it?

I'm currently allowed 10 connections on my plan.

Isn't the default maximum limit of pooled connection set to 100? See https://www.npgsql.org/doc/connection-string-parameters.html#pooling.


Remove guava as a dependency of bazel-java-sdk

I am working on a new project (non-IDE related) that needs the bazel-java-sdk. I just copied it out of BEF into that other repo for now. We have #188 to move the bazel-java-sdk to a new Git repo so it is standalone and more easily shared.
But another thing we need to do is strip Guava from it. It uses it for just two reasons: ImmutableList and Precondition. Those aren't enough to add a big dep like Guava. I removed Guava in that other repo's copy, but we need to do it here too.

Removed in #222


TypeError: slice indices must be integers or None or have an index method

Solution in https://github.com/radames/Real-Time-Latent-Consistency-Model/issues/5 did not resolve issue in my case.

hi @tralala87 , the issue is the pipeline doesn't have a bounding yet for when you set strength, inference steps and lcm_original_steps , for now just make sure you don't go to very low levels for steps + strength

I've tried different combinations of setting those two parameters, but I always get this error. Although my video is about 1 minute long. Is that too long? Btw, I also get the same error when just runnin ghte img2img

solved for now, I've remove the option to set the LCM steps, however you will still get an error if the number of steps is too low and the strength


Next greater element

issue #25
please add hacktoberfest accepted tag on all my pull req.

okayyy, as i was having my soln ready from past few days so i just created pr, no worries you can check all pr, and i'll keep in mind your words.


Dependency bundle ignored by SystemJs

I am trying to get my angular application to the point where it is ready for distribution and I have managed to create 2 bundles, one for my angular application and one for my dependencies (which include the angular framework and the rxjs framework). Both bundles are produced and my custom bundle (which contains my code) is loaded by the front end but the vendor/dependency bundle is ignored and the dependencies are still loaded from the node_modules folder.
My solution is based mostly on this previous answer on Stack Overflow with a couple of exceptions like not including/inlining my html templates and adding node_modules to the exclusion path of the dependencies.
I will include everything I believe is relevant to the problem, if more is needed please let me know. I'm thinking that it is an issue with my dist-system-config.js file that I use in the final distribution, I am sure there is something I just do not fully understand.
I have also created a question on Stack Overflow. Any pointers would be very much appreciated.

What I have observed:

The 2 bundles are generated. The file app.bundle.js is 12KB in size. The file dependencies.bundle.js is 773KB in size.
Both bundles are found and loaded by the browser, I can open them both from the browsers dev. console under sources (I am using Chrome for testing)
In the browsers development console output I see the angular and rxjs scripts still being loaded from the node_modules folder. primary issue
In the browsers development console output I do not see my application files being loaded which is expected (they are being loaded from the created bundle)
The angular application loads the expected component on the screen

Index.html
<!DOCTYPE html>
<html lang="en">
<head>
	<script>document.write('<base href="/" />');</script>
	<meta charset="utf-8"/>
	<title>Test bed</title>
</head>
<body>

<RootComponent>Loading content...</RootComponent>

<script src="/node_modules/core-js/client/shim.min.js"></script>
<script src="/node_modules/zone.js/dist/zone.min.js"></script>
<script src="/node_modules/reflect-metadata/Reflect.js"></script>
<script src="/node_modules/systemjs/dist/system.js"></script>

<script src="/bundles/dependencies.bundle.js"></script>
<script src="/bundles/app.bundle.js"></script>
<script src="/Scripts/dist-system-config.js"></script>

<script>
    System.import('app/boot').catch(function(err) {
        console.error(err);
    });
</script>
</body>
</html>

app/boot.ts
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { enableProdMode } from '@angular/core';
import { AppModule } from './app.module';

enableProdMode();
const platform = platformBrowserDynamic();
platform.bootstrapModule(AppModule);

Scripts/dist-system-config.js
System.config({
	baseURL: '/',
	paths: {
		'npm:': 'node_modules/'
	},
	map: {
		'app': 'dist/app',

		// angular bundles
		'@angular/core': <EMAIL_ADDRESS>		'@angular/common': <EMAIL_ADDRESS>		'@angular/compiler': <EMAIL_ADDRESS>		'@angular/platform-browser': <EMAIL_ADDRESS>		'@angular/platform-browser-dynamic': <EMAIL_ADDRESS>		'@angular/http': <EMAIL_ADDRESS>		'@angular/router': <EMAIL_ADDRESS>		'@angular/forms': <EMAIL_ADDRESS>		'rxjs': 'npm:rxjs'
	},
	packages: {
		'app': { main: './boot.js', defaultExtension: 'js' },
		'rxjs': { defaultExtension: 'js' }
	}
});

gulpfile.js
var gulp = require('gulp'),
	tsc = require('gulp-typescript'),
	Builder = require('systemjs-builder');

gulp.task('bundle', ['bundle-app', 'bundle-dependencies'], function(){});

gulp.task('app-components', function () {
	return gulp.src('Scripts/app/**/*.ts')
		.pipe(tsc({
			"target": 'es5',
			"module": 'commonjs',
			"moduleResolution": 'node',
			"lib": [ 'es2015', 'dom', 'es2015.iterable' ],
			"sourceMap": true,
			"emitDecoratorMetadata": true,
			"experimentalDecorators": true,
			"removeComments": true,
			"noImplicitAny": false
		}))
		.pipe(gulp.dest('dist/app'));
});

gulp.task('bundle-app', ['app-components'], function() {
	// optional constructor options
	// sets the baseURL and loads the configuration file
	var builder = new Builder('', 'Scripts/dist-system-config.js');

	return builder
		.bundle('dist/app/**/* -<EMAIL_ADDRESS>- [node_modules/rxjs/**/*.js]', 'bundles/app.bundle.js', { minify: true})
		.then(function() {
			console.log('Build complete');
		})
		.catch(function(err) {
			console.log('Build error');
			console.log(err);
		});
});

gulp.task('bundle-dependencies', ['app-components'], function() {
	// optional constructor options
	// sets the baseURL and loads the configuration file
	var builder = new Builder('', 'Scripts/dist-system-config.js');

	return builder
		.bundle('dist/app/**/*.js - [dist/app/**/*.js]', 'bundles/dependencies.bundle.js', { minify: true})
		.then(function() {
			console.log('Build complete');
		})
		.catch(function(err) {
			console.log('Build error');
			console.log(err);
		});
});

package.json (Relevant versions only)
"@angular/***": "4.2.6",
"canonical-path": "0.0.2",
"gulp": "3.9.1",
"gulp-typescript": "^3.2.0",
"rimraf": "2.6.1",
"rxjs": "5.4.2",
"systemjs": "0.20.14",
"systemjs-builder": "0.16.9",
"typescript": "2.4.1",

The issue was the order of the script tags in the html file as pointed out in the answer by Lious on the SO thread. Changing it to this fixed the problem, which loads the systemjs config file first before loading the dependencies and the application.
<script src="/Scripts/dist-system-config.js"></script>
<script src="/bundles/dependencies.bundle.js"></script>
<script src="/bundles/app.bundle.js"></script>


FreeBSD support

This PR adds support for building solana platform tools on FreeBSD.
I have also cleaned up portions of the build script.
Note edits were also required to the solana-labs/rust repository - I have incorporated the edits them below in build.sh in as embedded ed scripts applied after the subordinate repository has been git cloned however they should ultimately be put in a PR to the downstream repo (assuming this PR gets merged).
Rather than use amd64 which is FreeBSD's preferred platform code, I have used x86_64 (I see this was already done for Darwin).
I have built this on FreeBSD 13.2-RELEASE-p2 GENERIC amd64; I do not have access to an FreeBSD ARM64 host and have not I tested it there.
The default version of swig on FreeBSD 13.2 is 4.1.2 which failed building lldb with a syntax error so I have used swig 4.0.2 which is available in pkg (and ports) as swig40.
I would welcome comments and suggestions as I hope this might be useful to others.

The script in this repo is merely to automate building the Solana toolchains on CI and releasing the precompiled toolchain binaries.  We currently don't have self-hosted Actions runners, and I don't think that GitHub provides FreeBSD based runners.  I appreciate your efforts, but I think at this point we are not going to support FreeBSD host for Solana toolchains.

Thanks for looking at this.
My interest is in moving all of our Solana stuff - dev, ops, nodes, etc. - on to FreeBSD, which doesn't look too difficult.
I do need platform tools on freebsd though and building it locally with this script seemed the most straightforward way.
I did look through the Github CI docs quickly and you're right Github don't support FreeBSD runners - apparently one would need a self-hosted macOS runner and build the *BSD versions within a local container (i.e. docker) which is ... not great.
Certainly with little other demand there's no point in adding FreeBSD to the CI/CD pipeline but it would be nice if the platform tools could be built on *BSD out of the box.
I can reduce the PR to the essentials and leave out the other refactoring (i.e. it would be just case statement at top, realpath, CC_FOR_BUJILD and gmake) if that would help. Or put it in a separate script (build_local.sh or similar) (though seems somewhat redundant).
Or I can simply withdraw the PR if that makes the most sense here and maintain a private fork.
(I suppose the real solution would be to contribute blockchain/solana to the FreeBSD Ports Collection...)

We can update build.sh in solana-labs/rust repository, to include FreeBSD host, so no need to patch it from this script. I'd rather not to add any targets to the script in this repository that cannot be build on CI.

Thanks that would be much appreciated.
I'd be happy to submit the two line PR to solana-labs/rust but I don't understand the branches there as master seems to be older than solana-tools-v1.38 and setup.sh there is hardcoded for apple darwin.

Thanks that would be much appreciated.
I'd be happy to submit the two line PR to solana-labs/rust but I don't understand the branches there as master seems to be older than solana-tools-v1.38 and setup.sh there is hardcoded for apple darwin.

You can submit to the default branch, which is solana-1.68.0 at the moment. Thank you.

I have opened this PR against the rust repo [https://github.com/solana-labs/rust/pull/84] and am closing this one.


Please invite me to the GitHub Community Organization

Please invite me to the GitHub Community Organisation.

Name: Isha

Discord Username(if exists): ahsi#7583

Additional Context:

:nerd_face:

@Isha307 you were added to the organisation, so I will close this issue. Any questions let us know 🤓


metricsreader: fix TestLocal

What problem does this PR solve?

Issue Number: close #564
Problem Summary:
The test case is unstable because if the machine is very slow, the health check result doesn't contain any backends.
What is changed and how it works:
Check the query result of the map.
Check List
Tests

[x] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Notable changes

[ ] Has configuration change
[ ] Has HTTP API interfaces change
[ ] Has tiproxyctl change
[ ] Other user behavior changes

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.
None

/retest


update gradio make more easy and automatic

hi @SWivid  i just make a lot update in gradio add title and link here https://github.com/SWivid/F5-TTS/discussions/143
in create you can select z pinyin or char
when now create new project you can see easy in list and you can select form here

in train data you can change your Tokenizer  path and pretrain model
for this i add in finetune-cli.py new value --pretrain

make better auto config (can you please check the part with epochs i think something wrong in line 612 - 629 )
i get from count_max_epoch.py i get 133225 epochs? this correct to calcuale the epochs ?

now in resude you can save also safetensors

4 in test model now you can easy select checkpoint for combo list when you select the project up automatic find checkpoints
and also you can see device you use
when you train the model and you run test  model the device it's cpu for crash memory problem
also when you use with out train device it's cuda

last fix utf-8 and speed up stuff
also i update finetune-cli.py
i change setting make nice
i hope you like new update  !

Thanks~


It cant run in Xcode 6.3 ?

It cant run in Xcode 6.3 ?

That's a pretty ... informative answer.

ExSwift works just fine in Xcode 6.3, follow the instructions in the README to add the library to your project.

In the README? the are not instructions.

If wanted https://github.com/pNre/ExSwift/pull/110

+1


Spelling

Misspellings identified by the check-spelling action.
It reported: https://github.com/jsoref/reviewdog/commit/de0ec0920bb49e49c5a9f78a17ce35fbab13da0b#commitcomment-39961125
And it validated that the changes in this PR made it happy: https://github.com/jsoref/reviewdog/commit/cf492f0ef8df1d5925f2c56652d2ee9e4f7cc47a
Note: this PR does not include the action, if you're interested, that can be offered separately.

[x] Updated Unreleased section in CHANGELOG or it's not notable changes.

@jsoref Thanks! 👍


Add support for VoidLinux

I have updated the code.

I'm sorry for opening a new pull request. I don't know how to update the pull request.

I'm sorry for opening a new pull request. I don't know how to update the pull request.

Don't worry about that! 🙃


Howto checkbox redux

This is a different approach on the checkbox. This version uses internal properties like this._checked. I feel this makes it easier to understand than the previous version which relied entirely on attributes.
I realize this is a departure from how we've been coding things but I really disliked all of the cleverness that the previous PR was relying on in order to do attribute/property reflection. I feel this version is just much more straightforward.

So you wanna land this instead of #30? Or in addition to #30?

I think that's the plan, yeah

K I think I'm done. For reals this time 😸
The one thing I chose not to do is mimic the super bizarre behavior of value in the native checkbox. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#Value
This checkbox can't be submitted by a form anyway, so didn't seem necessary to mimic the weirdness that seems to have been caused by browsers extending <input>.

Just have that one remaining comment regarding not mimicking value. Feel free to do that later. Merge at will 🎉

LGTM


Stacked images

I've noticed that under some circumstances the images will stack up on top of each other and not fan out. Noticed seemingly randomly in Chrome 28, Mac. Was immediately fixed by reloading the page. Not sure how to reproduce, but I'll investigate when I can.

This issue should be resolved in version 1.0. Please test it out and let us know if you encounter this again!


Integration of NBadgeAuth for access permissions.

This is still in the Research phase.
The functional (but not ideal) version can be found at: https://github.com/nftchance/n-badge
An experimental version can be found at: https://github.com/nftchance/remus
Neither version is ready to be ported into Labor Markets and requires further research.

This is going to be a significant update -- @masonchain should we plan on building this as 1.7 even if app team goes from 1.6 -> 2.0 so that if they catch up to us they can implement N-Badge while we finalize economics?

Yep, I think N-Badge is a very acceptable feature to roll out ASAP to get the front-end integrated.


Add structure support to AdsSymbol class

This addresses #207 .
It adds structure_def and array_size parameters to Connection.get_symbol. This way symbols can be created for structures and arrays of structures.

@RobertoRoos would you mind to give this PR a quick review?

I have to say a part of me dislikes these features-on-top-features types of code, with if-else to steer it's behavior.
This is not entirely rational, and for now it should definitely be fine. If in the future more big features are added, we should consider creating symbol sub-classes. A struct-symbol for example could be its own class.

I am definetly with you on that. Maybe we can tackle this  in some future PRs.


Playermodels (and other stuff) never work. Always a big ERROR !

Hello !
I tried many times to find out why the playermodels never work. (Also weapons and trails...)
I don't think it's a problem like : People don't have the models.
They have theme because when they load the server, they download it, and the file comes in their download folder (steam/steamapps/common/garrysmod/garrysmod/download/).
So please... Can you help me !
Thanks !

not a bug with pointshop, just literally resource.AddFile your models.

I did that !


Change direction of a GPIO pin.

Hi,
I am trying to interface Raspberry Pi with AM2302 sensor using this datasheet. It requires the GPIO to be set to input direction for first few cycles and then set to output direction to start reading off the sensor.
I am trying to use the set_int in the input mode to listen for any change in the signal. But, I keep getting the below error
GPIO chip pinctrl-bcm2835: gpis_lock_as_irq: tried to flag a GPIO set as output for IRQ

It sounds like even after setting the output to input, the GPIO doesn't seem to revert to input.
Below is the code I am using.
spawn(fn-> temperature_sensor_input_state(23) end)

defp temperature_sensor_input_state(pin_number) do
    {:ok, input_pid} = GPIO.start_link(pin_number, :input)
    GPIO.write(input_pid, @low_value)
    sleep(1)

    GPIO.write(input_pid, @high_value)
    sleep(1)

    case GPIO.release(input_pid) do
       :ok ->
         temperature_sensor_input_state(pin_number)
    end
  end

  defp temperature_sensor_input_state(pin_number) do
    {:ok, output_pid} = GPIO.start_link(pin_number, :output)

    returned_value = GPIO.set_int(output_pid, :both)
    listen()
  end

  defp listen() do
    receive do
      {:ok, sender, message} ->
       Logger.debug("Returned Value is sender = #{sender}, message = #{message}")
    end

    listen()
  end

Please advice.
Thanks.

The protocol that you're looking for is call OneWire and ElixirALE doesn't support it. It is supported by the Raspberry Pi. A google search led me to this blog post which might help you: http://www.carstenblock.org/post/project-excelsius/. It looks good from a quick pass. You may also want to try other combinations of DHT-22 and Elixir and Nerves.

Awesome ! Thanks !


Corrupted master.bs

The master.bs file on one of our production deployments was overwritten with all 0s. We are still collecting information to try and figure out how this might have happened.
Is there a way to rebuild the master.bs?
This is something that I have never seen before so I was also wondering if this is something that anyone else might have insight into...

I'm afraid to say that there isn't a way to rebuild master.bs from the data.bs file - the master contains the entry points to the data.bs file for each commit and that information isn't currently stored anywhere else in the file formats :-/ This might be something to keep in mind should we change the store file format at some point.
Please keep me updated on your findings - especially if you have cause to believe that BrightstarDB itself somehow corrupted the master.bs file. In general, updates to master.bs are append-only, but master file contents are also held in a cache so I suppose it might be possible that some memory corruption/overwrite may have resulted in a bad cached value getting flushed to disk.

Thanks for the insight!
I'll update if/when I collect some more information surrounding the situation.


Example of running a Transformer based model?

Hello --
I'm interested in running one of your Transformer-based models -- is there a run.py command that runs one of these models?  All the ones I've tested so far use the GNN-based models ...
Thanks!

Yes, see models section in the README
https://github.com/facebookresearch/diplomacy_searchbot#models
Everything but the first 2 are transformer models


[BUG] Some dependencies not being detected as open source

Is there an existing issue for this?

[X] I have searched the existing issues

Konveyor version
0.3.0-alpha.5
Priority
Critical
Current Behavior
Some dependencies are not being detected as open source, and therefore being analyzed when using scope Application and internal dependencies only and mode Source + dependencies.
See for instance the following screenshot, in which an issue is being detected for a known library, despite the analysis not including known libraries:

Expected Behavior
When analyzing an application with scope Application and internal dependencies only, only the application code and its internal dependencies should be analyzed, without any known libraries (like the javaee-api library in this case).
How Reproducible
Always (Default)
Steps To Reproduce

Using the given environment, analyze the sample.daytrader7 app (master branch) with Source + dependencies mode and Application and internal dependencies only scope.
Notice how some known dependency libraries are included for analysis.

Environment
* Fedora 38
* minikube version: v1.31.2
* Konveyor 0.3.0-alpha.5
* [sample.daytrader7 app (master branch)](https://github.com/WASdev/sample.daytrader7)
* Analysis configuration:
** Source code + dependencies
** eap8, quarkus, openjdk17, azure, cloud-readiness, camel3
** Application and internal dependencies only
** No custom rules
** No additional advanced options

Anything else?
No response

Is this in the list, and if it is supposed to be, I wonder if the pulling things from maven is not working?

@shawn-hurley I think this issue has to be because of failing dependency flow in multi-module. @jmle can you please confirm if this is fixed, I think it should be.

Cannot reproduce this anymore - closing


Added a troubleshoot section to the english build guide.

replaces https://github.com/foostan/crkbd/pull/30
(This one is with conflicts resolved, otherwise the same)

Thank you so much!


Create new API which retrieves parent files by lumi section

Precondition is at least dataset parentage needs be know.

provide file parentage by given file and parent dataset
provide file parentage by given block and parent dataset
provide file parentage by given dataset and parent dataset

Option 3 will take big performance hit.

@ticoann @yuyiguo I don't think there is a label higher than higher priority.
can we please have an update on this.


Set operation on key "value" failed when returning readonly ref in SSR

Reproduction
https://stackblitz.com/edit/nuxt-starter-ytsmbt?file=store%2Ffoo.ts
Steps to reproduce the bug
Hi 👋
Start the project in dev mode.
Expected behavior
No warnings in the console.
Actual behavior
You can see in the console:
[Vue warn] Set operation on key "value" failed: target is readonly.

Additional information
I suggest skipping the readonly properties during hydration.

@posva But the question is, should readonly be hydrated at all? Shouldn't we treat them as computeds that are not hydrated?

Because currently we should do something like when we need to mark something as readonly:
export const useAuthStore = defineStore('auth', () => {
  const foo = ref('foo')

  return {
    bar: skipHydration(readonly(foo))
    // another option, but with redundant computed
    // bar: computed(() => foo.value)
  }
})

State shouldn't be readonly. It must be writable. If you skip hydration but change it on the server, it will create a hydration mismatch.

Maybe I'm missing something 🙈, but readonly is always a proxy to some other reactive object (in some way similar to computed(() => other.value)), so why we skip computed but can't skip readonly? I think devtools can just mark them as readonly.


Windows 10 Driver Error

Hello.  trying to make a Bluetooth mouse/keyboard for a Windows 10 PC and starting with the "HID_test" Example from the Arduino BLEPeripheral Library on a Sparkfun nRF52832 Breakout Board using only the mouse portion of HID_test for now.  The PC sees "HID" local name and starts to pair but then after few seconds displays "Driver Error" and drops the connection.  A commercial Bluetooth mouse pairs and works with the same PC however.
Also found the function:
bleHID.clearBondStoreData();
from HID_test conflicts with the nRF52832 Breakout Board bootloader so just using a J-Link to program the application for now.
Hoping someone might have some insight into that Driver Error ?

@mholin1 I haven't tried this setup myself, but I recall the Windows pairing process being a bit weird compared to Android and iOS.

Thanks for taking a look.  Someone on the Nordic Developer Zone was getting a similar "Driver Error" and the resolution seemed to be something about bonding?  Admittedly I am not familiar enough with the BLE spec. or the Library to know how to implement bonding.
Also, can you say if that bleHID.clearBondStoreData(); statement is necessary for pairing?  And any idea why it is conflicting with the bootloader?  It looks like you are putting the bond store up at the last page of flash memory which should be fine as far as I can tell.

I moved the bond store to just under the bootloader (from default 0x7F000 to 0x79000) but still getting "Driver Error" messages from Windows 10 while attempting to pair.  Has anybody ever used this Library successfully with a Windows 10 HID application (mouse or keyboard)?

Hi Sandeep,
Can you suggest any way I can get help with this?  I set up Nordic's BLE Sniffer and had the Nordic guys take a look but it is not their code and so they really could not help me.  Is there anyone who has used the Library on a Windows 10 HID application?
Thanks,
Mark

On Sun, 6/18/17, Sandeep Mistry<EMAIL_ADDRESS>wrote:
Subject: Re: [sandeepmistry/arduino-BLEPeripheral] Windows 10 Driver Error (#160)
To: "sandeepmistry/arduino-BLEPeripheral"<EMAIL_ADDRESS>Cc: "mholin1"<EMAIL_ADDRESS>"Mention"<EMAIL_ADDRESS>Date: Sunday, June 18, 2017, 10:02 AM
@mholin1 I haven't
tried this setup myself, but I recall the Windows pairing
process being a bit weird compared to Android and iOS.
—
You are receiving this because you were mentioned.
Reply to this email directly, view
it on GitHub, or mute
the thread.

Same problem with me as well..... Would some one help us with this issue?
Regards
Varun

Hello Varun,  I eventually had to give up.  No real support from any entity involved.  Tried the Cypress PSoC 4 parts and it works fine.  PSoC Creator light years simpler development environment.  Cypress tech support is as abysmal as this Nordic platform but at least the parts work as advertised.
Note:  At least Nordic Tech Support tried to help but it was not their code.

I had a problem with the GATT HID driver in windows 10 as well. Uncommenting the line
"bleHIDPeripheral.setReportIdOffset(1);" solved it for me.

Thanks for your input.  I don't see that line in the original Example HID_test.ino.  Is it in one of the header files?  Also i do recall there was a conflict between the bootloader so moving the bond store offset to 0x79000 solved that problem but I still got the Win 10 Driver Error.
So does your device (mouse in my case) now work on Win 10?  If so could you please attach your sketch?
Thanks for posting.
Mark

On Fri, 12/8/17, RicoKirstein<EMAIL_ADDRESS>wrote:
Subject: Re: [sandeepmistry/arduino-BLEPeripheral] Windows 10 Driver Error (#160)
To: "sandeepmistry/arduino-BLEPeripheral"<EMAIL_ADDRESS>Cc: "mholin1"<EMAIL_ADDRESS>"Mention"<EMAIL_ADDRESS>Date: Friday, December 8, 2017, 7:24 AM
I had a problem with the GATT HID
driver in windows 10 as well. Uncommenting the line
"bleHIDPeripheral.setReportIdOffset(1);" solved it
for me.
—
You are receiving this because you were mentioned.
Reply to this email directly, view
it on GitHub, or mute
the thread.

I have my BLE nano 2 on a swd probe, so I haven't ran into any bootloader issued.
The line was in the HID_Keyboard example. I haven't had any successful inputs send from the device yet, but the driver error went away and the device is loaded correctly according to windows. I'm currently on the windows 10 1709 thing. My sketch is just the HID_Keyboard example with the ifdef surrounding bleHIDPeripheral.setReportIdOffset(1) removed.

Thanks.  That ifdef isn't even in HID_test.  If you are having issues with Win 10 versions, I do recall one of the recent Microsoft "upgrades" no longer reports the Driver Error but the mouse still does not function.  A commercial BLE mouse does function on the same PC however.
Good Luck.  Please post if you find anything further.

On Fri, 12/8/17, RicoKirstein<EMAIL_ADDRESS>wrote:
Subject: Re: [sandeepmistry/arduino-BLEPeripheral] Windows 10 Driver Error (#160)
To: "sandeepmistry/arduino-BLEPeripheral"<EMAIL_ADDRESS>Cc: "mholin1"<EMAIL_ADDRESS>"Mention"<EMAIL_ADDRESS>Date: Friday, December 8, 2017, 9:15 AM
I have my BLE nano 2 on a swd
probe, so I haven't ran into any bootloader issued.
The line was in the HID_Keyboard example. I haven't had
any successful inputs send from the device yet, but the
driver error went away and the device is loaded correctly
according to windows. I'm currently on the windows 10
1709 thing. My sketch is just the HID_Keyboard example with
the ifdef surrounding bleHIDPeripheral.setReportIdOffset(1)
removed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view
it on GitHub, or mute
the thread.

Hai thank you very much for the info. I too moved to TI's CC2541 chip(HM 10
module). Its working in win 10 with some bugs. Trying to debug them.
Regards
Varun h r
On Fri, Dec 1, 2017 at 6:01 PM, mholin1<EMAIL_ADDRESS>wrote:

Hello Varun, I eventually had to give up. No real support from any entity
involved. Tried the Cypress PSoC 4 parts and it works fine. PSoC Creator
light years simpler development environment. Cypress tech support is as
abysmal as this Nordic platform but at least the parts work as advertised.
Note: At least Nordic Tech Support tried to help but it was not their code.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/sandeepmistry/arduino-BLEPeripheral/issues/160#issuecomment-348483227,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AUX_zNrvN9sZ7ynpTPNr50npaEdElOt9ks5s7_GZgaJpZM4N0AdS
.

Can you post a link to the libraries you're using? Maybe it's just a problem with the descriptor used in this library.
Cheers
Rico

As I recall it is just the Arduino BLEPeripheral Library downloaded straight from the Arduino IDE.  Where you referring to a different Library?
Thanks for the help :)

On Mon, 12/11/17, RicoKirstein<EMAIL_ADDRESS>wrote:
Subject: Re: [sandeepmistry/arduino-BLEPeripheral] Windows 10 Driver Error (#160)
To: "sandeepmistry/arduino-BLEPeripheral"<EMAIL_ADDRESS>Cc: "mholin1"<EMAIL_ADDRESS>"Mention"<EMAIL_ADDRESS>Date: Monday, December 11, 2017, 9:02 AM
Can you post a link to the
libraries you're using? Maybe it's just a problem
with the descriptor used in this library.
Cheers
Rico
—
You are receiving this because you were mentioned.
Reply to this email directly, view
it on GitHub, or mute
the thread.

It seems we're missing 2 BLE reports. The standart says there should be 2 more for keyboards at least.
BootKeyboardOutputReport and BootKeyboardInputReport
For Mouse it should be BootMouseInputReport.
Can you check with a BLE explorer tool if your working devices have those services?
Cheers
Rico

Interesting.  You mean the Nordic sniffer on the commercial BLE mouse ?

On Mon, 12/11/17, RicoKirstein<EMAIL_ADDRESS>wrote:
Subject: Re: [sandeepmistry/arduino-BLEPeripheral] Windows 10 Driver Error (#160)
To: "sandeepmistry/arduino-BLEPeripheral"<EMAIL_ADDRESS>Cc: "mholin1"<EMAIL_ADDRESS>"Mention"<EMAIL_ADDRESS>Date: Monday, December 11, 2017, 10:51 AM
It seems we're missing 2 BLE
reports. The standart says there should be 2 more for
keyboards at least.
BootKeyboardOutputReport and BootKeyboardInputReport
For Mouse it should be BootMouseInputReport.
Can you check with a BLE explorer tool if your working
devices have those services?
Cheers
Rico
—
You are receiving this because you were mentioned.
Reply to this email directly, view
it on GitHub, or mute
the thread.

Yes

Hi @sandeepmistry  is it correct the BLEPeripheral Library does not support Windows 10? I tried for many hours to get the HID example working, bonding with Windows 10, but without result.  The sample works fine with Macbook & iPhone, but not with Windows 10. I'm really desperate, because I like to control my powerpoint presentation via a Neoplc UC + NRF52 board. Can you confirm Windows 10 HID is not supported so I can look after alternatives? Greetz from The Netherlands, Klaas Heek

Same here on BLE400 + Core51822 on windows 10. It connects then disconnects and shows "driver error".

Sorry to open this, but wondering if anyone has any thoughts on this and have tried getting it working with a BLE HID Gamepad. I've got something working perfectly in OSX, but windows 10 will pair and connect, but display no input. Playing with the offset seems to allow some kind of data to be input appear, but definitely not valid.

Moving bond store actually DOES solve the problem, at least for me...but not with a shift of 6(as mentioned in  #https://github.com/sandeepmistry/arduino-BLEPeripheral/issues/164).
I tried a shift of 10(i.e. BLEBondStore(10) ), and it works. Evil magic numbers.
And i'm not sure if anyone still cares about this in 2020...hope this might help someone.

Moving bond store actually DOES solve the problem, at least for me...but not with a shift of 6(as mentioned in ##164). I tried a shift of 10(i.e. BLEBondStore(10) ), and it works. Evil magic numbers. And i'm not sure if anyone still cares about this in 2020...hope this might help someone.

Even in 2023!
Where to change what to do this? And does then also needs to change smth in e.g. clearBondStoreData();?

Hey thanks for the update. I don't recall if I tried different offsets. Very painful experience I really do not care to go back to :( Cypress app code worked right out of the box but good to know you had success.
Thx,
M.
On Thursday, May 25, 2023, 06:53:20 AM EDT, Fressco0 @.***> wrote:
Moving bond store actually DOES solve the problem, at least for me...but not with a shift of 6(as mentioned in ##164). I tried a shift of 10(i.e. BLEBondStore(10) ), and it works. Evil magic numbers. And i'm not sure if anyone still cares about this in 2020...hope this might help someone.
Even in 2023!
Where to change what to do this? And does then also needs to change smth in e.g. clearBondStoreData();?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>


Perf/cp/get company teams

🎢 Motivation
A brief summary of the purpose of this PR.
🔧 Solution
How the implementation works or fixes the issue.
🚨  Testing
A brief description of how the reviewer can test my PR.
🃏 Task Card
Link to issue on Jira

BUD22-123

🔗 Related PRs
This PR is related to some other PRs in different services, they are:

project#PR_NUMBER

🍩 Validation
Who tested this PR?
Canary

[ ] Marcelo
[ ] Gustavo
[ ] Aline

Dev

[ ] Perin
[ ] Guilherme
[ ] Rodrigo
[ ] Diego

Fixed on #344


Site Update is removing stand alone devices from api dicts

A site Update is removing all devices from the API devices dict which are not boundary to a site. This is done to avoid keeping orphaned device info in Api dict. However, that means stand alone devices are cleared even if the are available for account owners.
Orphaned devices need to be cleaned by device Update Routine.

The active devices per account is a combination of devices listed in scene_info query for a site and devices listed for bind_devices.
The cleanup of orphaned devices was moved from the update_sites method (which is now just saving the active devices in a set) to the get_bind_devices method, that is called at the beginning of the device details method.
The get_bind_device method adds all listed devices with details to the api devices dict.
After this step, the combination of recorded active site  devices and reported bind devices form the overall device list managed by the account. Any device not contained in that combined list will be removed from the api devices dict.


Making a new menu mode for the menu to only show up on tap/hover.

Is your feature request related to a problem? Please describe.
The menu button overlays video. While that functionlity is good and useful, it does not show up all the time.
Describe the solution you'd like
The menu button to be hidden by default but to come up on hover/click.
Describe alternatives you've considered
Removing the menu button and putting a separate card in a separate tab.
Additional context
The video controls from the browser also come up on hover. No need for the menu button overlay to be omnipresent.

Thank you.


Adding Snyk and updating Request package

The version of Request we were using had a vulnerability, it's been upgraded to use a more recent patched version.

@rob Is there a way to run this so that if I don't have an authenticated snyk account, I can still successfully run npm test? It currently fails on the first snyk test command.


Android 'Webview is null' onTransitionReceived

Hi,
I'm having a problem on Android when a transition is received when the app is not already running in the background. If the app is running it's fine. The app process starts (Task Manager shows it has a 5MB footprint) but doesn't appear to load the CordovaWebView. Here's the log output:

D/GeofencePlugin(29512): ReceiveTransitionsIntentService - onHandleIntent
D/GeofencePlugin(29512): Geofence transition detected
D/GeofencePlugin(29512): Webview is null

I'm not sure if this is an issue with the plugin or the way I'm using it but I've tried fiddling with a number of things and haven't got any closer. It's working on iOS, so any tips on the Android side would be gratefully received.
Regards,
Tom

This is just an information, you can't run javascript code if app is closed, at least on android.

@TomCrowder I did something that could help. In my case, I needed to send a request to a server each time the user enter or exit a geofence.
https://github.com/ElieSauveterre/cordova-plugin-geofence/commit/f53549963e5f9e2bf0569f0e924b206462c9d60a

@ElieSauveterre you should consider using HttpURLConnection instead of Apache HTTP client as it has been removed in Android 6. See http://developer.android.com/about/versions/marshmallow/android-6.0-changes.html


Modifying the type signatures of Mutable's methods could make a good IORef

By making the side effect's explicit (using IO<>s for get and set), you end up with an IORef.
Would this be a nice way to go?, or too much noise?
It may help people from miss-using Mutable.

Maybe SafeIO<> as it wont crash when using get/set

I like the idea, please go ahead.
BTW, I'm on vacation for the next two weeks, probably without internet.


TS Syntax highlighting breaks after trailing type declarations

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.77.1
OS Version: PopOS

Steps to Reproduce:

add let someVar: string | undefined above code
Observe as all highlighting below breaks

Issue is fixed by initializing the someVar like let someVar: string | undefined = undefined
Uninitialized

Initialized

Minimal code repo:
let abc: string
abc.prop


--diff --new-window broken since 1.59.0

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.59.0
OS Version: macOS 10.15.7

Steps to Reproduce:

Run code --diff --new-window --wait file1.ts file2.ts.
New window appears, but no tab with diff contents shown; only tab visible is "Welcome".
Removing --new-window opens a new tab with diff contents in one of several existing windows, as expected.
Adding --disable-extensions along with --new-window doesn't help.
Run the same command using VSCode 1.58.2 (previous release) works.

Maybe a regression related to getting started and how it appears.

I can not reproduce, can you share your workbench.startupEditor setting?
Also, there have been some recent changes here so it would be helpful if you could check if this is working as expected in Insiders.

My workbench.startupEditor setting is welcomePage—I assume that's the default since I've never changed it.
I also tried the Insiders build from today, but it bahaves the same as 1.59.0 stable.
On my MBP, with 1.58.2, the new window appears in about a second, followed by the diff tab almost immediately afterwards.
With 1.59.0+, the window also appears in about a second, but then nothing happens for 2 more seconds until the Welcome tab is shown.
I don't see any error popups on the status nor any output in the console, so can't tell if it's even trying to show the diff.

@erhhung I cannot reproduce. Some questions:

does it reproduce when you remove the --wait
does it reproduce when you have no instance of VSCode running and remove the --new-window argument

Can you share a gif?

Here are some more data points about the issue—my original steps to reproduce isn't quite accurate:

I first noticed the issue recently because I normally use VSCode as part of Git's "difftool", using this simple setup in my .gitconfig:

[alias]
dt = difftool
[diff]
tool = vscode
[difftool]
prompt = false
[difftool "vscode"]
# for "git dt" alias
cmd = code --diff --new-window --wait $LOCAL $REMOTE

So I would normally just run git dt to review changes before committing, but the command no longer shows diff contents when the new window appears.
When I manually compare 2 files in the same project folder, it works:

$ pwd
/Users/erhhungy/dev/open-source/exif-js/

$ ls -l exif*.js
-rw-r--r--  1 erhhungy  staff  40487 Apr 27  2020 exif.js
-rw-r--r--  1 erhhungy  staff  40487 Apr 27  2020 exif0.js
-rw-r--r--  1 erhhungy  staff  40458 Aug 21 22:43 exif1.js

# this works just fine
$ code --diff --new-window --wait ./exif0.js ./exif1.js

# this doesn't work
$ git dt

# I found the full command that git-difftool--helper tried to run
# using htop, then I tried that same command from another shell
$ /usr/local/bin/code --diff --new-window --wait /var/folders/lb/r6s0bsf17n1dpfmy58zp3b9w0000gn/T//rzh5Ma_exif.js exif.js

I thought it may have been the weird path with a double-slash, so I copied that temp file several directories up, but it still didn't work. It only worked if that file is in my project (current) directory.
I then tried this:

$ pwd
/Users/erhhungy/dev/open-source/exif-js/

$ cp ./exif1.js ../exif.js
$ cp ./exif1.js ../../exif.js
$ cp ./exif1.js ../../../exif.js # in $HOME dir, where ~/.vscode/ also lives
$ cp ./exif1.js ~/temp/exif.js

$ code --diff --new-window --wait ../exif.js exif.js       # works
$ code --diff --new-window --wait ../../exif.js exif.js    # works
$ code --diff --new-window --wait ../../../exif.js exif.js # doesn't work!
$ code --diff --new-window --wait ~/temp/exif.js exif.js   # doesn't work!

It doesn't matter if I remove --new-window or add --disable-extensions from the last command.
This issue seems to be dependent on where one of the files is located—but relative to what?
Relative to the other compare file or to ~/.vscode/?
Downloaded fresh copies of different versions again (both Intel-chip versions) and reran:

# this works!
$ ~/Downloads/vscode-1.58.2/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code --diff --new-window --wait ~/temp/exif.js ./exif.js

# this doesn't!
$ ~/Downloads/vscode-1.59.1/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code --diff --new-window --wait ~/temp/exif.js ./exif.js

I tried to reproduce just that and could not:

Can you try with a fresh user data directory, passing --user-data-dir <some empty folder> to rule out any configuration issues?

I have exactly the same symptoms, and some more info.  First my version (on Mac):
Version: 1.59.1
Commit: 3866c3553be8b268c8a7f8c0482c0c0177aa8bfa
Date: 2021-08-19T11:53:52.479Z
Electron: 13.1.7
Chrome: 91.0.4472.124
Node.js: 14.16.0
V8: 9.1.269.36-electron.0
OS: Darwin x64 20.5.0

Passing --user-data-dir /tmp/foo doesn't fix things.  And my workbench.startupEditor is also the default welcomePage.
Here's one way I've found to repro:
# Setup some test files
echo "This is foo" > /tmp/foo
echo "This is bar" > /tmp/bar

# This is bad, I only see the welcome page
code --diff --new-window --wait /tmp/foo /tmp/bar

If I try to diff the same file, I do see the file, but it complains about "Restricted Mode".  Maybe that has something to do with it?
code --diff --new-window --wait /tmp/foo /tmp/foo

I've also noticed that the diff works if both files are under the directory for a saved workspace.

I am finally able to reproduce and see that the following promise never returns:
https://github.com/microsoft/vscode/blob/4b254e6288662bed1702268bcaaefb670adae023/src/vs/workbench/services/editor/browser/editorService.ts#L594-L594
Steps to reproduce:

have one instance of VSCode insiders running (empty window is fine)
add a breakpoint into IEditorService#openEditors
from the command line run code-insiders --diff /tmp/foo /tmp/bar (after making sure these 2 files exist)
step through the code and realise how the promise never finishes

This is weird, it seems to depend on the trust state of the opened window. I.e. the files open fine in a workspace that I trusted before.
Now in an empty window I see this popping up:

So the full correct steps seem to be this:

close all code instances
from the command line run: code-insiders --diff /tmp/foo /tmp/bar --new-window
in that window open dev tools and install your breakpoints
from the command line then run: code-insiders --diff /tmp/foo /tmp/bar

I think it ends up here returning a promise that is possibly not resolved:

Thanks @bpasero for the analysis! @sbatten and myself will take it from here!


Update generate_from_simbev to work with SimBEV v1.0.0

Fix #11
Changes proposed in this pull request:

Update generate from simbev to use metadata and new output format
Add new command line option to choose one region to generate from

The following steps were realized, as well (required):

[x] Correct linting with flake8 path_to_script
[ ] Check if tests pass locally (pytest ./src/tests.py)

Also the following steps were realized (if applies):

[x] Write docstrings to your code
[ ] For new functionalities: Explain in readthedocs
[ ] Write test(s) for your new patch of code

Getting the following error when using the option --save-timeseries:
  File "C:\Users\mosc\PycharmProjects\spice_ev\src\scenario.py", line 282, in run     report.save_gc_timeseries(self, gcID, output_path)   File "C:\Users\mosc\PycharmProjects\spice_ev\src\report.py", line 407, in save_gc_timeseries     if gcID not in scenario.flex_bands.keys(): AttributeError: 'Scenario' object has no attribute 'flex_bands'

The output grafic from SpiceEV could be adjusted, @stefansc1. I think it would help the user, if all subplots would have the same x-axis (ticks).

The charging behaviour seems to be correct. However, I found one issue:
In the example files (region1), the medium-BEV has a start_soc of 0.449, which is read correct:

At the first charging station it charges with 150 kW, over 15 minutes to charge to soc=0.8. This charging power is saved in the timeseries output. But the simulation says the soc before the charging event is 0.786533333333333 and soc_delta=-0.0583.

In my understanding this doesn't add up. What is the reason for these values? @stefansc1 @mosc5

I addressed the time axis issue in commit fd222c97
Maybe the second issue (deviation of SoC from expected value) is caused by when the SoC is updated. In the SimBEV-files, the SoC is given when plugging in, but in SpiceEV, the vehicle SoC (in the output) is given after the first charging interval. Charging from 0.4 to 0.8 in 15 minutes with 150 kW sounds plausible.


When are there plans to support multi-window on the desktop?

Use case
When are there plans to support multi-window on the desktop?
Proposal
When are there plans to support multi-window on the desktop?

Closing as a duplicate of https://github.com/flutter/flutter/issues/30701
Please see also https://github.com/flutter/flutter/wiki/Issue-hygiene#when-will-my-bug-be-fixed


Fix admin page bots controls.

Automated message from Dropbox CLA bot
@timabbott, it looks like you've already signed the Dropbox CLA. Thanks!

@armooo @lfaraone it'd be great to get a review on this.

Cool added another commit on top that refactors to only access active_user_row when it's needed and track a "row" variable through.  Still has some duplicatey code but it's better.

LGTM FFTP


CLI: Improve formatting of un-authenticated error log

What is the location of your example repository?
No response
Which package or tool is having this issue?
Hydrogen
What version of that package or tool are you using?
latest
What version of Remix are you using?
No response
Steps to Reproduce
npm run dev when unauthenticated
Expected Behavior
Pretty warning log instead of raw log
Actual Behavior
A raw consoe log

Using the login command renders the error properly:

Looks like we are handling the error wrong in the dev command 🤔


[ aesthetics ] Replace the header "dot" with a square

In Comfy UI, when a node has rectangular shape, the "dot" is a square, instead.

I think this would also look better in the Controller, with it's rectangular shapes.

And also, the Controller's header text seems more readable, to me, if it's in the front of a square shape.
mockup:

original:

Agree. Oddly, it seems to be more intuitive that it serves as a collapse/expand button somehow, too


Fix profile page on mobile

Right now seems some container is not working well on mobile and horizontal scroll shouldn't not be there.
Worth fixing
Test url
https://kodadot.xyz/rmrk/u/CocvTCrHM2bcLGNFTVGd71AuvVPFVPbJknDiLJAmNEAfLzi
https://user-images.githubusercontent.com/5887929/134555280-0b4cb161-f42b-489d-8909-d574f305df59.mp4

@yangwao I'll check this


Enable phoenix Query Server

This Pull Request enables the phoenix query server.  In current mode of operation PQS uses the HTTP/ principal to enable SPNEGO and then (sadly) to proxy users.  Also made ubuntu user a superuser to perform HBASE operations.
Verification Steps (please add to wiki after merging)
Connecting to server
phoenix-sqlline-thin http://f-bcpc-vm1
Interacting with phoenix/PQS
create table stuff (id integer primary key, price integer);
upsert into stuff (id, price) values (1,2);
upsert into stuff (id, price) values (3,4);

select * from stuff;

+-----+--------+
| ID  | PRICE  |
+-----+--------+
| 1   | 2      |
| 3   | 4      |
+-----+--------+

Security Notes
Kerberos and PROXY USER
Currently PQS uses HTTP/ principal for both SPNEGO auth and for proxying users, since access to HTTP/ is fairly common, any system service that uses HTTP/ presents an attack surface, hence the following does not have any attribute defaults and is only added in the Test-Laptop environment for testing purposes
       "core": {
           "site_xml": {
             "hadoop.proxyuser.HTTP.hosts": "*",
             "hadoop.proxyuser.HTTP.users": "*"
            }
         },

In a production environment it is recommended that hadoop.proxyuser.HTTP.users": "*" is replaced with an appropriate group permission that will limit proxy user access.
PHOENIX-4533, will hopefully address this in near future.  In preparation for that, the included recipes already generate a phoenixqs/ principal.  Furthermore for core-site.xml generation, I replaced the mapping of HTTP/ principal to mapred https://github.com/pu239ppy/chef-bach/blob/f5149e814fd83cefda319de5adf45d68fe0ea1fc/cookbooks/bcpc-hadoop/recipes/core_site.rb#L30 as proxyuser was failing with a non obvious error, as is this does not seem to serve any purpose.
Process ownership
Currently due to the limitations of the PQS init script, the service has to run as root, the template take a pqs_runas user and interpolates into the init script, but then init script does nothing with it.  In the future will work to modify this to improve security.  This means that default['bcpc']['hadoop']['phoenix']['phoenixqs']['username']  is used to assign keytab ownership, but not to launch the process.

@bijugs can you please help review this PR?

This needs review from @bijugs before merge

This eventually needs to be refactored to a separate Phoenix cookbook.
We will merge this for now.

Don't run this on a physical cluster yet.
Wait until the new hortonworks pqs that includes init scripts.


Edit button on documentation pages produces unacceptable PRs

Expected Behavior
If there's an Edit button on the docs, it should produce usable PRs that meet the repo's standards for acceptance.
Current Behavior
I ran into some issues with the documentation page, so I clicked Edit to submit the changes.  The result was a PR missing a DCO statement - and so it couldn't be merged.  See https://github.com/backstage/backstage/pull/5798

This is unfortunately a process that don't work automatically in the GitHub UI and the best we can do is to provide documentation, the same issue occurs when accepting suggestions on a PR and is something that the user has to add manually in the UI or by amending the commit message later on.


fix(parser) support same-name services across NSes

What this PR does / why we need it:
Correctly build upstreams for multiple backends where multiple services in the backends share the same name in different namespaces. Previously services were indexed by name alone in the rule builder, resulting in one clobbering the other(s).
Which issue this PR fixes:
Fix #3860
Special notes for your reviewer:
PR Readiness Checklist:
Complete these before marking the PR as ready to review:

[x] the CHANGELOG.md release notes have been updated to reflect any significant (and particularly user-facing) changes introduced by this PR

This encountered a flake with TestGatewayWithGatewayClassReconciliation in envtests. Could not replicate, and don't think we have an equivalent of the integration dumps to try and analyze why it happens when it does.


Convert mdns Builder classes to use PacketBufferHandle

Problem
Code should use PacketBufferHandle rather than PacketBuffer
directly.
Summary of Changes
Convert mdns::Minimal::QueryBuilder and mdns::Minimal::ResponseBuilder
to take and hold PacketBufferHandle.
Part of issue #2707 - Figure out a way to express PacketBuffer ownership in the type system

@kpschoedel Merge conflicts?

also #4102 has some conversions to PacketBufferHandle (not sure if the same, but if we could make them similar it may be easier to merge)

also #4102 has some conversions to PacketBufferHandle (not sure if the same, but if we could make them similar it may be easier to merge)

Yes, I think #4102 makes the ResponseBuilder part of this PR redundant, so I'll just remove it.

Converted to draft as this now depends on #4102
Removed ResponseBuilder changes (redundant after #4102) and converted QueryBuilder to use the same interface pattern as ResponseBuilder there.


Removed Debug Symbols not Working Limitation

Removed debugging symbols not working as this seems to not be a problem. For example: I was able to use code on the issue below with minor change as I noted in my comment and was able to debug the template... So I assume this is no longer an issue. (?)
https://github.com/Antaris/RazorEngine/issues/315

OK. I think I understand this statement a little better now. Was getting confused I think.


chore: add udir logo

logo is a bit small, but I have not changed any css

Fikk vi lov å legge den til i hvit? :o

Fikk vi lov å legge den til i hvit? :o

yes :)

The logo is a bit too small since we are using height to set the logo size. Is it possible to make the height 30px for that logo? Then it looks a bit more balanced.


Blanco County, TX parcels

http://mapsatbis.com/bisgis/rest/services/BlancoWeb/MapServer

Exurbs west of Austin, TX, but already in state wide coverage.


Support a denylist for all-features Cargo metadata key

Docs.rs currently supports metadata of this format:
[package.metadata.docs.rs]
all-features = true

Sometimes crates have "private" features; which shouldn't be documented on docs.rs. It is possible to use doc(hidden) on these, but it would be preferable if docs were not broken for these features when they're actually desired.
It would be nice to be able to supply a denylist of features that do not get run with all-features. AIUI the code currently just passes --all-features in, so it would probably need to be tweaked to use cargo metadata to get the full feature list.

Why does this need to be a new feature instead of just using features = ["..."]? It seems weird to have both a way to say "these exact features" and "all features except these exact exceptions".

@jyn514 Because features do get added often, especially on the scale of projects like ICU4X where we have a large number of crates. I think the intent of the key matters; "all-features" is "all features including ones added in the future", whereas an explicit list of features is "just these features".
For prior art, https://github.com/frewsxcv/cargo-all-features does support this kind of thing.
But yeah, I would understand if this is considered rather niche.


Issue 1576 Fix for duplicate nodes with deep with_associations

Fixes #1567
This pull introduces/changes:

Changes the way we add recorded to association proxy cache. We are checking if node already exists in cache.

Codecov Report

Merging #1577 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master    #1577   +/-   ##
=======================================
  Coverage   93.24%   93.24%
=======================================
  Files         105      105
  Lines        4779     4779
=======================================
  Hits         4456     4456
  Misses        323      323

Impacted Files
Coverage Δ

lib/neo4j/active_node/has_n.rb
99.24% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


feat(spindle-icons): update icons

["embed","emotion_fill","link","title","amebapick","articledesign","keyboard_down_fill","megaphone"]

あれ、この変更が入ってない・・？ 🤔

修正：embed
追加：amebapick

figma側の修正をしてもらったので再tryします


chatId in sends commands may by Long or String

To send messages, we can use a number or a string to chat or channel.
But to send to a channel, we usually use the channel name and the channel id is unknown.
The api telegram says that chatId

chat_id | Integer or String | Yes | Unique identifier for the target chat or username of the target channel (in the format @channelusername)

https://core.telegram.org/bots/api#sendmessage

Thanks for reporting! I'll add support to send messages with a channel name


The formulation of Diffusion Convolution is wrong

In DCRNN, there is no diffusion process in the graph, because we cannot find any restart probability alpha in the code. Here, I offer a correct Diffusion Matrix as below:

The probabilities are absorbed into the trainable weights in the neural networks.


Check how to scale up the cluster on AWS

Overview / Motivation
We need to be able to scale up the cluster on AWS in order to be able to create network for tests with more spacemesh nodes.
The Task
Check how to scale up the k8s cluster
Implementation Notes
TODO: Add links to relevant resources, specs, related issues, etc...
Contribution Guidelines
Important: Issue assignment to developers will be by the order of their application and proficiency level according to the tasks complexity. We will not assign tasks to developers who have'nt introduced themselves on our Gitter dev channel

Introduce yourself on go-spacemesh dev chat channel - ask our team any question you may have about this task
Fork branch develop to your own repo and work in your repo
You must document all methods, enums and types with godoc comments
You must write go unit tests for all types and methods when submitting a component, and integration tests if you submit a feature
When ready for code review, submit a PR from your repo back to branch develop
Attach relevant issue to PR

Moved to GCP for now.
Will look on how exactly to scale tests in the future


Add functionalities for SAML Providers

Adds ability to do CRUD mocking for IAM SAML provider types :D

Coverage decreased (-0.02%) to 92.472% when pulling 57fa11136b3c04d53195653dfca36e55d1485693 on Joeskyyy:master into ed861ecae1039a048a6350a4ff832ef094cdf2c2 on spulec:master.

Coverage decreased (-0.02%) to 92.472% when pulling 57fa11136b3c04d53195653dfca36e55d1485693 on Joeskyyy:master into ed861ecae1039a048a6350a4ff832ef094cdf2c2 on spulec:master.

Looks great; thanks!


"Show in winget" may be a good idea for the package context menu.

This would help in case there aren't easily-accessible manifest files, such as if the Store source is being shown. It could also help if the user wants to double-check something for a particular package. Clicking "Show in winget" will run cmd /k winget show (PackageId) -v (PackageVersion). May need to turn off multi-select for this; will have to check Synaptic for that. Probably wouldn't make sense to allow multi-select for this anyway, since most people probably wouldn't mark multiple packages at once.

Synaptic allows multi-select, so may as well keep it.

Probably could just prevent running "show in winget" by disabling the menuitem if there are multiple packages selected.

Feature's in there now.


[SCB-1233] Release version removes eureka dependencies

eureka-client.jar dependent a (LGPL 3.0 license) Compact HashMap
(com.github.vlsi.compactmap:compactmap:1.2.1 -
https://github.com/vlsi/compactmap/compactmap)
I have removed the dependency on eureka from the release version. use '-Pspring-cloud-eureka' build support eureka version

Coverage decreased (-0.04%) to 90.122% when pulling ca9612cd1044de2f82426366224813e8c18c3e38 on coolbeevip:SCB-1233 into 1ba63649fbe23d3830f8848cd68fc3340ca4b8b7 on apache:master.


alternative way to write pom definition

I am following the gradle-bintray guide and the config works. The problem occurs, when I also activate the the license-gradle-plugin.
Without the license-plugin the following config works (the pom file is created correctly):
// Create the pom configuration:
def pomConfig = {
    licenses {
        license {
            name "The Apache Software License, Version 2.0"
            url "http://www.apache.org/licenses/LICENSE-2.0.txt"
            distribution "repo"
        }
    }

When I also activate the license plugin, I need to configure it like this:
apply plugin: "com.github.hierynomus.license"
license {
    header rootProject.file('LICENSE_HEADER')
    ext.year = Calendar.getInstance().get(Calendar.YEAR)
    ...
}

Now the bintray plugin creates an invalid pom file. The license node is missing. I think, the problem is that the configuration of the license plugin is now used in the pom config object definition:
// Create the pom configuration:
def pomConfig = {
    licenses {
        license { # THIS DOES NOT WORK ANYMORE!
            name "The Apache Software License, Version 2.0"

How can I solve this?

I solved this problem. See https://github.com/hierynomus/license-gradle-plugin/issues/138 for details but the trick is to use license([:]) instead of just license inside the pomConfig def.


OneDrive can skip single file upload

What is the problem you are having with rclone?
When uploading a single file to a OneDrive folder, it can get skipped if the file already exists in the root folder and the destination folder does not exist.
This happens because readMetaDataForPath calls f.dirCache.Get("") and assumes the it got the right folder ID.
If f.root (foldera or foldera/folderb in the log below) does not exist, the returned folder ID is actually the drive root and f.dirCache.foundRoot is still false.
I assume the right function in this case should be f.dirCache.FindRoot(false) instead of f.dirCache.Get(""), but I'm not sure if this would break the issue in onedrive.go#L379 again.
@Cnly any thoughts how this should be fixed?
What is your rclone version (output from rclone version)
v1.47.0-032-gb9e16b36-beta
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Linux Fabian-Desktop 5.0.9 #1-NixOS SMP Sat Apr 20 07:17:05 UTC 2019 x86_64 GNU/Linux
Which cloud storage system are you using? (eg Google Drive)
OneDrive
The command you were trying to run (eg rclone copy /tmp remote:tmp)
rclone copy a.txt TestOneDrive:foldera
A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)
% rclone copy -vv a.txt TestOneDrive:
2019/05/03 23:44:20 DEBUG : rclone: Version "v1.47.0-032-gb9e16b36-beta" starting with parameters ["rclone" "copy" "-vv" "a.txt" "TestOneDrive:"]
2019/05/03 23:44:20 DEBUG : Using config file from "/home/fabian/.config/rclone/rclone.conf"
2019/05/03 23:44:21 DEBUG : a.txt: Couldn't find file - need to transfer
2019/05/03 23:44:21 DEBUG : a.txt: Starting multipart upload
2019/05/03 23:44:22 DEBUG : a.txt: Uploading segment 0/29 size 29
2019/05/03 23:44:22 INFO  : a.txt: Copied (new)
2019/05/03 23:44:22 INFO  :
Transferred:   	        29 / 29 Bytes, 100%, 15 Bytes/s, ETA 0s
Errors:                 0
Checks:                 0 / 0, -
Transferred:            1 / 1, 100%
Elapsed time:        1.8s

2019/05/03 23:44:22 DEBUG : 9 go routines active
2019/05/03 23:44:22 DEBUG : rclone: Version "v1.47.0-032-gb9e16b36-beta" finishing with parameters ["rclone" "copy" "-vv" "a.txt" "TestOneDrive:"]

% rclone copy -vv a.txt TestOneDrive:foldera
2019/05/03 23:44:35 DEBUG : rclone: Version "v1.47.0-032-gb9e16b36-beta" starting with parameters ["rclone" "copy" "-vv" "a.txt" "TestOneDrive:foldera"]
2019/05/03 23:44:35 DEBUG : Using config file from "/home/fabian/.config/rclone/rclone.conf"
2019/05/03 23:44:37 DEBUG : a.txt: Size and modification time the same (differ by -638.252406ms, within tolerance 1s)
2019/05/03 23:44:37 DEBUG : a.txt: Unchanged skipping
2019/05/03 23:44:37 INFO  :
Transferred:   	         0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors:                 0
Checks:                 1 / 1, 100%
Transferred:            0 / 0, -
Elapsed time:        1.3s

2019/05/03 23:44:37 DEBUG : 6 go routines active
2019/05/03 23:44:37 DEBUG : rclone: Version "v1.47.0-032-gb9e16b36-beta" finishing with parameters ["rclone" "copy" "-vv" "a.txt" "TestOneDrive:foldera"]

% rclone copy -vv a.txt TestOneDrive:foldera/folderb
2019/05/03 23:44:39 DEBUG : rclone: Version "v1.47.0-032-gb9e16b36-beta" starting with parameters ["rclone" "copy" "-vv" "a.txt" "TestOneDrive:foldera/folderb"]
2019/05/03 23:44:39 DEBUG : Using config file from "/home/fabian/.config/rclone/rclone.conf"
2019/05/03 23:44:41 DEBUG : a.txt: Size and modification time the same (differ by -638.252406ms, within tolerance 1s)
2019/05/03 23:44:41 DEBUG : a.txt: Unchanged skipping
2019/05/03 23:44:41 INFO  :
Transferred:   	         0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors:                 0
Checks:                 1 / 1, 100%
Transferred:            0 / 0, -
Elapsed time:        1.3s

2019/05/03 23:44:41 DEBUG : 6 go routines active
2019/05/03 23:44:41 DEBUG : rclone: Version "v1.47.0-032-gb9e16b36-beta" finishing with parameters ["rclone" "copy" "-vv" "a.txt" "TestOneDrive:foldera/folderb"]

% rclone tree TestOneDrive:foldera
2019/05/03 23:45:07 ERROR : : error listing: directory not found
2019/05/03 23:45:07 Failed to tree: directory not found

@Cnly are you going to have a go at fixing this?

@ncw I haven't looked into it yet because I've been pretty busy... :( But I expect to have time for this in two or three days. Of course if you (or anybody else) have a fix already or have a plan to fix it, I'd really appreciate it!

I'm able to reproduce this with the latest master version and OneDrive Personal, and thanks so much to @B4dM4n for digging into the problem. I think your analysis is correct that readMetaDataForPath shouldn't assume dc.findRoot == true even if dc.Get("") returns an ID. But I think instead of calling dc.FindRoot(false) in readMetaDataForPath, it may be better to call dc.RootParentID() and see if it returns an error. That way we don't need to have network traffic.
dc.RootParentID() returns an error immediately if any of the following is true:

!dc.findRoot
dc.rootParentID == "" (which is impossible because the code after onedrive.go#379 only runs if root is inside a folder so it must have a parent)
dc.rootID == dc.trueRootID (which is also impossible because root is inside a folder)

And if dc.RootParentID() returns an error, we know dc.findRoot == false and will proceed with the "query manually" branch.
Finally, there should also be a unit test for this.
@ncw @B4dM4n Would like to hear your comments.

The different betwen calling dc.RootParentID() and dc.FindRoot(false) is that the latter will actually find the root if needed.  The old code dc.Get("") didn't find the root so I think dc.RootParentID() is probably the better choice here.

I've pushed a fix here, but I'm unsure how to add the tests because it seems we need to access/modify contents under the absolute root of a backend.

I've pushed a fix here, but I'm unsure how to add the tests because it seems we need to access/modify contents under the absolute root of a backend.

Hmm, I try to keep the tests contained within a directory so you can use them on repositories with data you care about in.  Can we do a test without writing to the root?  If not then I think we'll have to skip it.

I agree with you that we should not touch things outside the specified directory, and now I came up with a way to do the test.
Say we're testing using a remote whose and remote.Root() == "user/given/path/rclone-test-1234567890". Then before the FsMkdir test finishes, we do
deepRemote, err := fs.NewFs(remote.Name() + ":" + remote.Root() + "/deeper/nonexisting/directory")
require.NoError(t, err)

firstSlashIndex := strings.IndexRune(deepRemote.Root(), '/')
firstDir := deepRemote.Root()[:firstSlashIndex]
_, err = deepRemote.NewObject(firstDir)
require.Equal(t, fs.ErrorObjectNotFound, err)

The first two lines create a remote whose dirCache.foundRoot == false. The last four lines try getting the object at the absolute path user/given/path/rclone-test-1234567890/deeper/nonexisting/directory/user, which doesn't exist. And if the backend code is assuming dirCache.Get("") to be the ID of user/given/path/rclone-test-1234567890/deeper/nonexisting/directory (while it's actually the ID of the absolute root), deepRemote.NewObject will not return fs.ErrorObjectNotFound and the test will fail.
I tested with OneDrive before and after the fix and it worked. Now one thing I'm concerned about is whether there is any backend that returns fs.ErrorObjectNotFound in NewObject because it thinks "there is a directory, not an object, so the object is not found".

@ncw Can we run this new test against all backends and see if it breaks things?


Reset chart

Is your feature request related to a problem? Please describe.
Just simple feature to reset the chart.
Describe the solution you'd like
Added this function to LineChart class to reset the chart
def reset(self):
    self.__reset_chart_info()

Is your feature request related to a problem? Please describe.
Just simple feature to reset the chart.
Describe the solution you'd like
Added this function to LineChart class to reset the chart
def reset(self):
    self.__reset_chart_info()

Sure i'll do that , thank for the  idea


x/exp/cmd/gorelease: support -json and -f flags

gorelease prints its findings to stdout as plain text. The report format may change over time and can't be safely read by tools.
gorelease should accept -json and -f flags, which should produce either JSON or text/template output.

I've started looking into the json side of things in https://go-review.googlesource.com/c/exp/+/280772. I think it's approachable, but will require adding JSON methods and implementing json.Marshaler in various places.
Some questions though:

Are we intending on still panic'ing/log.Exit'ing normally, or should those be json format too?
I'm fairly new to text/template. Does it start by defining the data structure (same struct as JSON struct?) and then basically template.New(...).Parse(-f flag)?

I'd rather hold off on -json and -f until basically everything else is done. These flags will let other programs consume gorelease output, but the output isn't stable yet, so it wouldn't be safe to use these flags.
About implementation, we'll need to change or at least export the field names in the report type so that encoding/json and text/template can see them via reflection. Hopefully, we won't need to implement json.Marshaler or define any special methods.

I'd rather hold off on -json and -f until basically everything else is done. These flags will let other programs consume gorelease output, but the output isn't stable yet, so it wouldn't be safe to use these flags.
About implementation, we'll need to change or at least export the field names in the report type so that encoding/json and text/template can see them via reflection. Hopefully, we won't need to implement json.Marshaler or define any special methods.


Cannot brew upgrade fzf

When I try to brew upgrade fzf on mac, I get Warning: fzf 0.20.0 already installed.  I know there are other ways to install fzf on mac, but curious if you think another fzf release will be tagged again soon? 🙂

Hopefully soon, but there are some outstanding issues and pull requests I'd like to include in the next release. Note that brew formula of fzf supports --HEAD option, so you can build and install fzf from the latest source.

Ah good call, will use the HEAD option, thanks!


helio-workstation: 3.6 -> 3.7

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/helio-workstation/versions.
meta.description for helio-workstation is: "One music sequencer for all major platforms, both desktop and mobile"
meta.homepage for helio-workstation is: "https://helio.fm/"
meta.changelog for helio-workstation is: ""
Updates performed

Version update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
Warning: no invocation of /nix/store/qj8p4gmhk37d485zkh22mplpdfl9z188-helio-workstation-3.7/bin/Helio had a zero exit code or showed the expected version
Warning: no invocation of /nix/store/qj8p4gmhk37d485zkh22mplpdfl9z188-helio-workstation-3.7/bin/.Helio-wrapped had a zero exit code or showed the expected version
0 of 2 passed binary check by having a zero exit code.
0 of 2 passed binary check by having the new version present in output.
found 3.7 with grep in /nix/store/qj8p4gmhk37d485zkh22mplpdfl9z188-helio-workstation-3.7
found 3.7 in filename of file in /nix/store/qj8p4gmhk37d485zkh22mplpdfl9z188-helio-workstation-3.7

Rebuild report (if merged into master) (click to expand)

3 total rebuild path(s)

2 package rebuild(s)

2 x86_64-linux rebuild(s)
1 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
docbookrx
helio-workstation

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/qj8p4gmhk37d485zkh22mplpdfl9z188-helio-workstation-3.7 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A helio-workstation https://github.com/r-ryantm/nixpkgs/archive/5e7600a374117caaee186adc2f6929e6bc4c633d.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/qj8p4gmhk37d485zkh22mplpdfl9z188-helio-workstation-3.7
ls -la /nix/store/qj8p4gmhk37d485zkh22mplpdfl9z188-helio-workstation-3.7/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

helio-workstation

Maintainer pings
cc @suhr for testing.

Worth noting that this is still behind by 1 release: https://github.com/helio-fm/helio-workstation/tree/3.8

There's a new one: https://github.com/NixOS/nixpkgs/pull/150213


add fmt command to format YAML files

now that yaml.v3 is out and supports preserving comments on yaml nodes, it would be nice to have ytt fmt -R -f . command that would format yaml files in place.

not planning to rely yaml.v3...

first pass: https://github.com/k14s/ytt/commit/d7c7e0afa683d54d48f1359fb0dfdce32fbe26eb

The Hardest Program I've Ever Written – How a code formatter works (2015) (stuffwithstuff.com) has some good discussion about code formatting.

In place formatting would be nice :)

In place would actually be very nice ;)

This is only partially done: comments are still not preserved.
We're doing some exploration with yaml.v3 (even if only for rendering): #638


Card #2433: FlexMiddleware: PSR7+PSR15

Card #2433: FlexMiddleware: PSR7+PSR15

merge with squash!


move lerna to devDependencies

Having lerna in dependencies forces a user-developer to install a huge amount of sub-dependencies (lerna has 75 dependencies)

yess!! tks somuch


Question: Any way to nest ToC up to h4?

Operating system: Mac OS High Sierra
Browser version(s): Safari 11.0.1
Ruby version (run ruby -v): 2.3.1
I'm trying to have an additional level of nesting than as described in the Wiki, and having a little trouble.
I added these lines:
<% if h3[:children].length > -1 %>
    <%= h3[:children].length %>

        <% h3[:children].each do |h4| %>

                <a href="#<%= h4[:id] %>" class="toc-h4 toc-link" data-title="<%= h3[:content] %>"><%= h4[:content] %>

        <% end %>

<% end %>

and the issue seems to be that my h4 headings don't count as children of h3. The line <%= h3[:children].length %> prints 0. Any ideas?

Hello, I'm stating to work with Slate (BTW it is great!) and I want to include a fourth level to the TOC, I followed all the instructions from the Wiki and this comment and still getting the same, no nested children's for level 3 elements. Any ideas?
Here my modifications for toc_data.erb, I'm doing something wrong? (don't know much of ruby):
LINE 8 ->html_doc.css('h1, h2, h3, h4').each do |header|
LINE 18 -> [4,3,2].each do |header_level|
Thanks in advance!

Hello, I'm starting to work with Slate (BTW it is great!) and I want to include a fourth level to the TOC, I followed all the instructions from the Wiki and this comment and still getting the same, no nested children's for level 3 elements. Any ideas?
Here my modifications for toc_data.erb, I'm doing something wrong? (don't know much of ruby): LINE 8 ->html_doc.css('h1, h2, h3, h4').each do |header| LINE 18 -> [4,3,2].each do |header_level|
Thanks in advance!

Hey @lisdey did you ever solve this?


Change internal read functions to return TdsOperationResult

Split out from https://github.com/dotnet/SqlClient/pull/2608 per discussion detailed in https://github.com/dotnet/SqlClient/pull/2608#issuecomment-2239803005

@Wraith2 please add me, @David-Engel  and @cheenamalhotra  as reviewers once you publish this PR and move it out of the draft stage.

Ready for review @saurabh500 @David-Engel @cheenamalhotra

LGTM ! @David-Engel  and @cheenamalhotra . No changes to the code in this PR. This brings in the "noisy" but important part of the Multiplexer PR.
Please help move this along.

Excellent. I'll get started on part 2


Support log level

Fixes: https://github.com/remind101/empire/issues/929

It would be cool to have a standard for doing these debug messages.
ie. i like in node that you can use: https://github.com/visionmedia/debug where each file inits a debugger with some common prefix like "http"
then all the messages are prefixed:
http: message
which makes it easier to see where something is coming from (ie. i usually make the prefix the filename)

It would be cool to have a standard for doing these debug messages.

I think we should be able to do that pretty easily with CallerFileHandler middleware in log15, or something similar that uses the stack from the Record.
👍

Oh nice, I say we start with CallerFileHandler and see if we need the stack details

Should we enable this for debug only?

Yeah, probably only for debug 👍