Button text disappears when rotated depending on button width

Was messing around with rotation a bit ago and noticed that buttons seem to have a very weird rendering issue when rotated.
Depending on the width of the button, when rotated the text will flicker in and out of rendering. For very short strings (<= 5 characters or so), this appears to be a non-existent problem. However beyond that, the longer it gets the more it begins to flicker. Confusingly, if it reaches somewhere over 50-60 characters, it begins to stop flickering as much. It seems at the very least it will try to remain visible when at 90-degree angles, until it reaches longer lengths where the relationship feels like it starts to invert.

The following program is able to demonstrate the problem:
import androidx.compose.foundation.layout.*
import androidx.compose.material.Button
import androidx.compose.material.Surface
import androidx.compose.material.Text
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.rotate
import androidx.compose.ui.window.singleWindowApplication
import kotlinx.coroutines.delay

fun main() = singleWindowApplication {
    val rotation = remember { mutableStateOf(0f) }
    LaunchedEffect(Unit) {
        while (true) {
            rotation.value++
            delay(10)
        }
    }
    Surface(Modifier.rotate(rotation.value)) {
        Column(verticalArrangement = Arrangement.Center, modifier = Modifier.fillMaxHeight()) {
            Row(horizontalArrangement = Arrangement.Center, modifier = Modifier.fillMaxWidth()) {
                Column {
                    Text("No vanish even when content is very long")
                    Button(onClick = {}) {
                        Text("T")
                    }
                    Button(onClick = {}) {
                        Text("Longer")
                    }
                    Button(onClick = {}) {
                        Text("Vanishes after reaching a given length")
                    }
                    Button(onClick = {}) {
                        Text("Begins to stop Vanishing after reaching an even greater length")
                    }
                }
            }
        }
    }
}

I have not currently tested if this issue affects any other components, but at the very least it does not seem to affect text objects on their own.

I run you example on Mac and it worked fine. What is your OS and JDK?

I ran this on Windows 10 and the JDK used was Java 15. I believe it affected it regardless of JDK though (got a similar result when I was messing with it on Java 11 too from what I recall).

Could you try adding
System.setProperty("skiko.renderApi", "SOFTWARE_FAST")
to the beginning of your main function?
Let's check if it is a hardware/driver related issue.

Setting it up this way seems to cause the issue to disappear:
fun main() {
    System.setProperty("skiko.renderApi", "SOFTWARE_FAST")

    singleWindowApplication {
        val rotation = remember { mutableStateOf(0f) }
        LaunchedEffect(Unit) {
            while (true) {
                rotation.value++
                delay(10)
            }
        }
        Surface(Modifier.rotate(rotation.value)) {
            Column(verticalArrangement = Arrangement.Center, modifier = Modifier.fillMaxHeight()) {
                Row(horizontalArrangement = Arrangement.Center, modifier = Modifier.fillMaxWidth()) {
                    Column {
                        Text("No vanish even when content is very long")
                        Button(onClick = {}) {
                            Text("T")
                        }
                        Button(onClick = {}) {
                            Text("Longer")
                        }
                        Button(onClick = {}) {
                            Text("Vanishes after reaching a given length")
                        }
                        Button(onClick = {}) {
                            Text("Begins to stop Vanishing after reaching an even greater length")
                        }
                    }
                }
            }
        }
    }
}

I guess if it's a hardware issue, my current GPU is an AMD RX580, and CPU is an i7-6700k if that's at all relevant.

Yes, looks like it. Most probably a driver issue. Could you also try with
System.setProperty("skiko.renderApi", "OPENGL")
?

Setting it as OPENGL also appears to stop the issue from occuring.

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


zC function

Feature description
Is there anyway to fold under cursor recursively?
Describe the solution you'd like
like zC not zM
Additional context
No response

What's the issue for built-in zC?

What's the issue for built-in zC?

it folds every thing not what my cursor is on like zM

Your remap zC issue.


Improve gen_reflection_proto.sh

Add comments in generated files to state how to re-generate them.
Check available protoc and gprc_cpp_plugin

LGTM

Test failures seem irrelevant. Only sanity tests are affected.


Make sure new accounts get commit'ed to the db

Notes:
New users weren't getting committed to the db if our Split feature flag was disabled 😅
Checklist:

[x] I merged latest <base branch>
[x] I manually verified the change
[x] I added labels to my PR
[ ] I tested in multiple browsers
[x] I added relevant unit tests
[ ] I have notified others of changes they need to make locally (migrations, jobs, package updates, etc)

😬


Create wiki page for feature of impersonation

Created the wiki page
Here is the link to it: https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2421.Reimplement_impersonating_users(within_impersonate_controller.rb)


Update to more recent module versions

what
Upgrade the module versions to recent versions:
cloudposse/security-group/aws =  2.0.0
cloudposse/route53-cluster-hostname/aws = 0.12.3
why
To stay in sync with security fixes in the upstream modules
references
closes  #117

/test all


tests: add integration tests to check default filling

Codecov Report

Merging #592 (e9e30d1) into main (7db06c0) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #592   +/-   ##
=======================================
  Coverage   50.39%   50.39%
=======================================
  Files          74       74
  Lines        8277     8277
=======================================
  Hits         4171     4171
  Misses       3728     3728
  Partials      378      378

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 7db06c0...e9e30d1. Read the comment docs.


The load event in mapbox fires before everything has been rendered.

As stated the 'load' event for the rendered map is fired before everything has been properly rendered, resulting in missing features in the image. Current workaround is to listen for the 'render' event and wait in intervals of 500 milliseconds, if no render event happened during that time the map is considered done.
This is undesirable for a multitude of reasons but the primary problem is that the "fix" might fail horribly under some condition such as poor network connectivity or possibly even a slow machine.
Possibly related are the following mapbox-gl -js issues 1, 2.

we are displaying an historical sequence of maps and therefore we need to know when to hide layers (when the new one is fully rendered)... What would be the best way of doing it ? (waiting few times half a second seams a lot...)

@sebastianovide Beats me, the best way I've found is the one described above. If I knew of a better way I'd be using it.


CLDC-1315: Model deletion cascade and foreign key constraints

Code looks good. I think what's missing here now is checking whether this migration will fail on Staging (I suspect it will since we likely have records there that won't satisfy the foreign key constraints) and preparing a script or something for how to deal with those records.

Looks like data is all fine on staging and prod now. Let's merge this after Monday release.


GH-38242: [Java] Fix incorrect internal struct accounting for DenseUnionVector#getBufferSizeFor

What changes are included in this PR?
Fix incorrect implementation of DenseUnionVector.getBufferSizeFor.
Sum the type id counts before calling getBufferSizeFor on the union's child vectors.
Are these changes tested?
Yes. A test verifies the OOB read (requires bounds check), and an example count is correct, fails as expected before fix.
This PR contains a "Critical Fix".
For users of DenseUnionVector the size can calculated incorrectly, as well as cause of out-of-bounds buffer reads which may return garbage (or potentially segfaulting) if bounds checking is off.

Closes: #38242

cc @jduo

Thanks a lot for the update @wotbrew ! CI failure is unrelated, so I'll merge.


SvelteKit v1.0.0-next.146 SyntaxError: Cannot use import statement outside a module

Describe the bug
After upgrade to SvelteKit v1.0.0-next.146 (from 144)
Getting the error in both dev & prod
Reproduction
cd /tmp
npm init svelte@next ttt
all defaults
cd ttt
rm -rf src/routes/*
npm install
npm install sveltestrap @sveltejs/adapter-node@next
src/routes/index.svelte:

{#each placements as placement}

    <Button id={`btn-${placement}`}>Click for {placement}</Button>
    <Popover
      target={`btn-${placement}`}
      {placement}
      title={`Popover ${placement}`}
    >
      This is a Popover on the {placement} of the trigger.
    </Popover>

{/each}

svelte.config.js:
import node from '@sveltejs/adapter-node';

/** @type {import('@sveltejs/kit').Config} */
const config = {
        kit: {
          adapter: node({
            out: 'build',
          }),
          // hydrate the
 element in src/app.html
          target: '#svelte'
        }
};

export default config;

Logs
6:22:04 PM [vite] Error when evaluating SSR module /node_modules/sveltestrap/src/Popover.svelte:
/tmp/ttt/node_modules/@popperjs/core/dist/esm/popper.js:1
import { popperGenerator, detectOverflow } from "./createPopper.js";
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at wrapSafe (internal/modules/cjs/loader.js:988:16)
    at Module._compile (internal/modules/cjs/loader.js:1036:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
    at Module.load (internal/modules/cjs/loader.js:937:32)
    at Function.Module._load (internal/modules/cjs/loader.js:778:12)
    at Module.require (internal/modules/cjs/loader.js:961:19)
    at require (internal/modules/cjs/helpers.js:92:18)
    at nodeRequire (/tmp/ttt/node_modules/vite/dist/node/chunks/dep-c1a9de64.js:73479:17)
    at ssrImport (/tmp/ttt/node_modules/vite/dist/node/chunks/dep-c1a9de64.js:73431:20)
    at eval (/node_modules/sveltestrap/src/Popover.svelte:9:31)

in prod

> Using @sveltejs/adapter-node
> Cannot find module '/tmp/ttt/node_modules/@popperjs/core/dist/esm/popper' imported from /tmp/ttt/.svelte-kit/output/server/app.js
Did you mean to import @popperjs/core/dist/esm/popper.js?
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/tmp/ttt/node_modules/@popperjs/core/dist/esm/popper' imported from /tmp/ttt/.svelte-kit/output/server/app.js
Did you mean to import @popperjs/core/dist/esm/popper.js?
    at finalizeResolution (internal/modules/esm/resolve.js:285:11)
    at moduleResolve (internal/modules/esm/resolve.js:708:10)
    at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:819:11)
    at Loader.resolve (internal/modules/esm/loader.js:89:40)
    at Loader.getModuleJob (internal/modules/esm/loader.js:242:28)
    at ModuleWrap.<anonymous> (internal/modules/esm/module_job.js:73:40)
    at link (internal/modules/esm/module_job.js:72:36)

System Info
System:
    OS: Linux 5.11 Ubuntu 21.04 (Hirsute Hippo)
    CPU: (6) x64 Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz
    Memory: 19.67 GB / 31.23 GB
    Container: Yes
    Shell: 5.1.4 - /bin/bash
  Binaries:
    Node: 14.17.4 - /usr/bin/node
    npm: 6.14.14 - /usr/bin/npm
  Browsers:
    Chrome: 92.0.4515.131
    Firefox: 90.0.2
  npmPackages:
    @sveltejs/adapter-node: ^1.0.0-next.39 => 1.0.0-next.39
    @sveltejs/kit: next => 1.0.0-next.146
    svelte: ^3.34.0 => 3.42.1

Severity
blocking an upgrade
Additional Information
It works fine in SvelteKit v1.0.0-next.144

Thank you for the report! I will file an issue with Vite and try to figure out what's going on.
In the meantime you can work around this and go back to the old behavior with:
kit: {
    ...
    vite: {
      optimizeDeps: {
        entries: []
      }
    }
}

Next time could you add the reproduction to a git repo? :wink:

In the meantime you can work around this and go back to the old behavior with:
kit: {
    ...
    vite: {
      optimizeDeps: {
        entries: []
      }
    }
}

That workaround fixed the error above but there is another fatal error in the browser in my (big) project.
Sorry, I cannot re-produce it in a small example.
Production build work fine though.
PS. I will stay with 144 for a while...
Thanks for your prompt action!

That turned out to be caused by Sveltestrap. I sent a fix here: https://github.com/bestguy/sveltestrap/pull/356
Please do try to find a way to reproduce the other error you're having or some way to share with me. The code isn't going back to the way it was :smile: So otherwise you'll be stuck on an old version forever...

That turned out to be caused by Sveltestrap. I sent a fix here: bestguy/sveltestrap#356
Please do try to find a way to reproduce the other error you're having or some way to share with me. The code isn't going back to the way it was smile So otherwise you'll be stuck on an old version forever...

I think I found it
Here is the repo with minimal code
https://github.com/vfilatov/SvelteKit-2161

I just did npm install and npm run dev with that repo and don't see any issue. Is there something specific I should be looking for or maybe it doesn't reproduce it?

I just did npm install and npm run dev with that repo and don't see any issue. Is there something specific I should be looking for or maybe it doesn't reproduce it?

Sorry, I didn't mention it,
you might want to check devTools console output.
or rename __layout.svelte to index.svelte
PS. Let me rename it in repo

A workaround
import icon directly
import mySpinner from 'svelte-awesome/icons/spinner.js';

I have the same issue when I start a new demo project.
The error: Cannot use import statement outside a module in vscode.
create-svelte version 2.0.0-next.78

Welcome to SvelteKit!

This is beta software; expect bugs and missing features.

If you encounter a problem, open an issue on https://github.com/sveltejs/kit/issues if none exists already.

✔ Which Svelte app template? › SvelteKit demo app
✔ Use TypeScript? … No / Yes
✔ Add ESLint for code linting? … No / Yes
✔ Add Prettier for code formatting? … No / Yes
✔ Copied project files
✔ Added TypeScript support. To use it inside Svelte components, add lang="ts" to the attributes of a script tag.
✔ Added ESLint.
Readme for ESLint and Svelte: https://github.com/sveltejs/eslint-plugin-svelte3
✔ Added Prettier.
General formatting options: https://prettier.io/docs/en/options.html
Svelte-specific formatting options: https://github.com/sveltejs/prettier-plugin-svelte#options

Want to add other parts to your code base? Visit https://github.com/svelte-add/svelte-adders, a community project of commands to add particular functionality to Svelte projects

Next steps:
  1: cd test-bug
  2: npm install (or pnpm install, etc)
  3: git init && git add -A && git commit -m "Initial commit" (optional step)
  4: npm run dev -- --open

To close the dev server, hit Ctrl-C

Stuck? Visit us at https://svelte.dev/chat

And here is the repo that has the problem: https://github.com/tcoopman/sveltekit-repro-bug-vscode
To be clear, npm run dev doesn't give any issues, but the problems show in vscode with Svelte for VS Code.

@lovasoa can you file a new issue with a reproduction? I don't have a way to reproduce and investigate at the moment

@benmccann sorry for issue hijacking, but this happens to me too. this is my open issue https://github.com/sveltejs/kit/issues/4603 thank you

If someone's still facing this issue after upgrading svelteKit version to 1.0.0-next.348 and if the error says something about popperjs, then I recommend adding the ssr: {                 noExternal: ['@popperjs/core']             } option inside svelte.config.js as mentioned here. Adding this fixed my issue and made the popperjs error go away. Thanks @Rich-Harris for the workaround!

Hey, configuring the option within svelte.config.js is no longer supported as all vite configurations need to go in vite.config.js (when I added const config = { 	kit: { 		adapter: adapter(), 		vite: { 			ssr: { 			  noExternal: ['@popperjs/core'] 			} 		  } 	}, };
It says that config.kit.vite has been removed and to use vite.config.js instead. However when I add the sir configuration to vite.config.js the same issue appears with popper.js. Is there an updated way to resolve this issue?

Hey, configuring the option within svelte.config.js is no longer supported as all vite configurations need to go in vite.config.js (when I added const config = { kit: { adapter: adapter(), vite: { ssr: { noExternal: ['@popperjs/core'] } } }, }; It says that config.kit.vite has been removed and to use vite.config.js instead. However when I add the sir configuration to vite.config.js the same issue appears with popper.js. Is there an updated way to resolve this issue?

on vite.config.js, inside the config variable, add something like this:
const config = {
    // ... your other config attribute
    ssr: {
        noExternal: ['@popperjs/core']
    }
}

at least this works for me

My vite.config.ts looks like this:
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';

export default defineConfig({
    plugins: [sveltekit()]
});

Where do I insert your example, @ahmadshiddiqn? Do I insert ssr: { noExternal: ['@popperjs/core'] } after plugins: [sveltekit()]?

My vite.config.ts looks like this:
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';

export default defineConfig({
    plugins: [sveltekit()]
});

Where do I insert your example, @ahmadshiddiqn? Do I insert ssr: { noExternal: ['@popperjs/core'] } after plugins: [sveltekit()]?

AFAIK, the order doesn’t matter, it would act like a JSON obj. But my vite.config.ts on my other sveltekit project looks something like this:
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';

export default defineConfig({
	plugins: [sveltekit()],
	ssr: {
		noExternal: ['@popperjs/core', 'chart.js', 'svelte-select', 'svelte-gantt']
	}
});


Possible issue with kube-proxy on AWS EKS

New aws eks cluster was setup with k8s 1.14. After the cluster is ready, the aws cni was removed.
kubectl delete ds --namespace=kube-system aws-node

Then the Weave net was installed as kubernetes service
curl --silent --location "https://cloud.weave.works/k8s/v1.10/net"  --output weave-net.yaml && kubectl apply -f weave-net.yaml

Then the kubernetes dashboard was installed as per official aws documentation
https://docs.aws.amazon.com/eks/latest/userguide/dashboard-tutorial.html
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta4/aio/deploy/recommended.yaml

Started proxy
kubectl proxy

Opened the dashboard url
http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/#!/login

And the error message is
Error: 'dial tcp <IP_ADDRESS>:8443: i/o timeout'
Trying to reach: 'https://<IP_ADDRESS>:8443/'

Output of
kubectl get pods --all-namespaces -o wide

It would appear that the kube-proxy container is unable to connect to the kubernetes-dashboard container. The kube-proxy has a the aws vpc private IP, whereas all other containers have the weave IP
Also tested this
https://github.com/weaveworks/eksctl/issues/109
by removing all pods.
AWS Security group has ALL TRAFFIC between nodes and between master and nodes are enabled. Any idea why the proxy cannot send traffic to kubernetes-dashboard?

@getvivekv Did you just delete the AWS CNI deamon set and installed Weave net?
That is not sufficient enough. Please see the additional steps needed https://github.com/weaveworks/weave/issues/3335#issuecomment-441522517

I've attempted all those steps. I created cluster using Aws console. Not using eksctl. The worker nodes weren't even setup so it wasn't necessary to remove Aws cni the files in /etc though I confirmed by logging into the worker node that those files aren't there. Iptables flushed. All containers restarted. Still kube-proxy has the Aws ip and it's not able to connect to k8s dashboard.
Let me know if you need anything specific to understand this issue more

I just want to clarify that I'm about to run weavenet and new pods are being assigned an IP by weave. The only problem is to run k8s dashboard

thanks for confirming you ran the necessary steps.
Please try to narrow down the problem. First check if you have basic pod-to-pod connectivity is working as expected. Also check if node can access the pods and services running on the pods.
Use this guide https://kubernetes.io/docs/tasks/debug-application-cluster/debug-service/ to narrow down the problem.

Closing the issue as its related to service proxy. Please reopen with repro steps if you suspect weave-net is causing this problem.

I just want to clarify that I'm able to run weavenet and new pods are being assigned an IP by weave. The only problem is to run k8s dashboard

Hi Vivek
Do you have found a way to access the dashboard in the weave net CNI installed?
Thank you.

I just want to clarify that I'm able to run weavenet and new pods are being assigned an IP by weave. The only problem is to run k8s dashboard

Hi Vivek
Do you have found a way to access the dashboard in the weave net CNI installed?
Thank you.

No. I dropped it. I no longer use the dashboard after started using Lens https://k8slens.dev/

No. I dropped it. I no longer use the dashboard after started using Lens https://k8slens.dev/

Hi Vivek
Thank you for your reply.
I am trying the Lens, but I found Lens still can't connect to the metrics-server pod. :(
So I can't get performance information about Cluster & Node.
I think it's same issue about Weave Net on EKS.
Err Msg:
Liveness probe failed: Get https://<IP_ADDRESS>:4443/livez: dial tcp <IP_ADDRESS>:4443: connect: connection refused

Hi Vivek
Thank you for your reply.
I am trying the Lens, but I found Lens still can't connect to the metrics-server pod. :(
So I can't get performance information about Cluster & Node.
I think it's same issue about Weave Net on EKS.
Err Msg:
Liveness probe failed: Get https://<IP_ADDRESS>:4443/livez: dial tcp <IP_ADDRESS>:4443: connect: connection refused


How to initiate and process SIP MESSAGE and SIP NOTIFY events from drachtio-srf?

If you receive a SIP message outside of a dialog you should be able to handle it in the normal fashion:
srf.message((req, res) => ..);

You can send a SIP message outside of a dialog in the normal fashion:
srf.request(uri, {method: 'MESSAGE', ..});

SIP NOTIFYs are usually going to be received within a SUBSCRIBE dialog, thus
dlg.on('notify', (req, res) => ...);

and
dlg.request({method: 'NOTIFY', ..});

Thanks for providing solution.
I have tried it and it works.
However, I have found 2 issues w.r.t. SIP MESSAGE event. I will post those here in the comments.

Missing Custom Headers w.r.t. SIP MESSAGE
Message to self

Missing Custom Headers w.r.t. SIP MESSAGE
My Code is as follows:
srf.request(req.registration.contact[0].uri, {
                        method: 'MESSAGE',
                        headers: {
                          'Subject': 'Ping',
                          'content-type' : 'text'
                        },
                        body: 'Hi\n'
                    }, (err, req) => {
                        if (err) {
                            return console.log(`Error sending MEssage: ${err}`);
                        }
                        req.on('response', (res) => {
                            console.log(`Response to MEssage ping: ${res.status}`);
                        });
                    });

Based on this, I was expecting that Custom Headers "Subject" and "Content-Type" will be added in outgoing SIP MESSAGE event.
But based on the Drachtio Server Logs (also confirmed via Wireshark Capture), no such headers were added in the outgoing SIP MESSAGE.
Following are the Drachtio Logs:
2020-08-26 22:39:23.785872 Client::read_handler read: 45814afb-3863-4143-b020-f9067448d362|sip||
MESSAGE sip:user.a@..*.2:40260;transport=udp SIP/2.0
Subject: Ping
content-type: text
Content-Length: 3
Hi
2020-08-26 22:39:23.785981 Client::processMessage - got request with 4 tokens
2020-08-26 22:39:23.786051 Client::processMessage - request id 45814afb-3863-4143-b020-f9067448d362, request type: sip transaction id: , dialog id:
2020-08-26 22:39:23.786140 Client::processMessage - sending a request outside of a dialog
2020-08-26 22:39:23.786226 ClientController::addAppTransaction: transactionId 4fd468a0-b271-4fc8-9025-df8dc078c087; size: 1
2020-08-26 22:39:23.786299 ClientController::addApiRequest: clientMsgId 45814afb-3863-4143-b020-f9067448d362; size: 1
2020-08-26 22:39:23.786475 DrachtioController::findTportForSubscription: no transport found for<EMAIL_ADDRESS>2020-08-26 22:39:23.789055 SipTransport::findAppropriateTransport: searching for a transport to reach udp/sip:user.a@...2:40260;transport=udp
2020-08-26 22:39:23.789246 SipTransport::findAppropriateTransport - after filtering for transport we have 9 candidates
2020-08-26 22:39:23.789341 SipTransport::findAppropriateTransport - after filtering for protocol we have 3 candidates
2020-08-26 22:39:23.791756 SipTransport::findAppropriateTransport: - returning the best match 0x55f3e9a5ad00: udp/...9:5060
2020-08-26 22:39:23.791888 SipTransport::getContactUri - created Contact header: sip:...9:5060
2020-08-26 22:39:23.791982 SipDialogController::doSendRequestOutsideDialog selected transport 0x55f3e9a5ad00udp/...9:5060
2020-08-26 22:39:23.792446 makeTags - Adding well-known header 'Subject' with value 'Ping'
2020-08-26 22:39:23.792565 makeTags - Adding well-known header 'content-type' with value 'text'
2020-08-26 22:39:23.792664 SipDialogController::doSendRequestOutsideDialog - from: sip::5060*.*.*.9
2020-08-26 22:39:23.792746 SipDialogController::doSendRequestOutsideDialog - to: sip:user.a@...2:40260;transport=udp
2020-08-26 22:39:23.792831 SipDialogController::doSendRequestOutsideDialog - contact: sip::5060*.*.*.9
2020-08-26 22:39:23.792935 isLocalSipUri: checking to see if this is one of mine: sip:user.a@...2:40260;transport=udp
2020-08-26 22:39:23.793174 nta.c:7558 nta_outgoing_tcreate() nta_outgoing_tcreate(): bad tag ::tag_skip
2020-08-26 22:39:23.793635 send 358 bytes to udp/[...2]:40260 at 22:39:23.793450:
MESSAGE sip:user.a@...2:40260;transport=udp SIP/2.0
Via: SIP/2.0/UDP ...23;rport;branch=z9hG4bK9v8N02t09Uy4e
Max-Forwards: 70
From: sip::5060*.*.*.9;tag=pFDFcKvjQjgDQ
To: sip:user.a@:40260*.*.*.2;transport=udp
Call-ID: bb0d6739-6261-1239-2ab2-f8b46ad197d1
CSeq: 24677089 MESSAGE
Content-Length: 3
Hi
2020-08-26 22:39:23.793823 nta.c:8478 outgoing_send() nta: sent MESSAGE (24677089) to udp/..*.2:40260
2020-08-26 22:39:23.793943 SipDialogController::addRIP adding orq 0x55f3e9b685d0
2020-08-26 22:39:23.794083 ClientController::removeApiRequest: clientMsgId 45814afb-3863-4143-b020-f9067448d362; size: 0
2020-08-26 22:39:23.794368 Client::write_handler - wrote 551 bytes: system:0

You have tried to use invalid syntax for the Content-Type header.  Refer to page 228 of the SIP spec and create a valid Content-Type header, then it will work

Regarding Message to self
My observation is that outgoing SIP MESSAGE works as long as Drachtio Server and SIP Client are working on 2 separate machines
However, when I have one client (Web based SIP Client using SIP.js) running via browser on same machine as that on which Drachtio Server is running, the SIP MESSAGE does not go out.
I receive the error "can not send request to myself".
Now this looks like a normal behavior of Drachtio.
So my question is 2 fold again.

Is there any way I can use a SIP Client on same machine as that of Drachtio server without encountering above error?
IF no, then how come SIP Register event works just fine in this case?

You have tried to use invalid syntax for the Content-Type header. Refer to page 228 of the SIP spec and create a valid Content-Type header, then it will work

Ok...Got it w.r.t. Content-Type
But, SIP MESSAGE will not support custom headers (like we can use in SIP INVITE)?
Thanks

Yes it will support custom headers.  But the invalid header you tried to send caused it to bomb out of setting any.  Fix that and it should work

ok...got it working...thanks


Creating a dataset from s3 bucket with 1GB of data results in ~9000 GB PVC

Hello and thank you for this really cool project.
I am trying to create a dataset on a k8s cluster that is hosted on an open stack provider. And it seems that every time I create a dataset I get a pvc and pv that are very large (9314 Gi) even though the S3 bucket I am using only has dummy data that is less than 1 GB in total.
NAME                  STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   AGE
example-dataset-gcs   Bound    pvc-85d52fa7-ab1e-4a4a-abb9-2ab687455188   9314Gi     RWX            csi-s3         22m

I thought this was happening because I was using open stack s3 compatible storage. However the same thing occurred when using gcs (which is also supposed to be s3 compatible). I apologize I could not try AWS s3 out because I do not have easy access to an account.
Is there a way to specify how big the PV/PVC can be?
This is my only issue. Everything else seems to work.
I followed the templates here for creating the dataset:
https://github.com/IBM/dataset-lifecycle-framework/blob/master/examples/templates/example-dataset-s3-secrets.yaml
https://github.com/IBM/dataset-lifecycle-framework/blob/master/examples/templates/example-s3-secret.yaml
I installed using this command:
kubectl apply -f https://raw.githubusercontent.com/IBM/dataset-lifecycle-framework/master/release-tools/manifests/dlf.yaml

For this I am using kubernetes 1.19.6 on a rke cluster deployed on an openstack provider.

Hi @olevski, thanks for your interest and glad you find it useful!
The value that we set is indeed dummy because we don't have knowledge (and I am not sure if we can discover) the capacity of your bucket in the Object Store.
Just to clarify, this PVC doesn't take up any space on your cluster's storage since it's just mounting a remote bucket.


Checkbox in profile to activate user channels

As an editor I would like to select active channels of the users by a simple checkbox behind e-mail or telegram handle


Cfp

Logged in users can CRUD their own proposals

@sheenarbw   This PR is ok for me :-) . the unit test can be added once my PR is merged after this i think.


Not Transmission, But how possible will it be to create this for SABNZB?

I love the Transmission Card, You would be a hero if you can do the same for SABNZB?
Or allow the cards to be modified with different entities.
Regards

I'm not familiar with the SABNZB or NZBGet integrations, so I do not know how the NZB sensors' data and attributes are provided.
You may however clone the Transmission card repo and take it as a base modifying whatever is needed to work with NZB sensors.

Amaximus, I will have to have a look to see if i understand whats going on. :) But the items are very similar.

You may post here a snapshot about the related sensors and their attributes (what can be seen under Development Tools->States).

Hey Bud,
Thanks for the help.
This is the SABZNB Sensors.
`sensor.sab_daily_total
unit_of_measurement: GB
friendly_name: Daily Total
sensor.sab_disk
unit_of_measurement: GB
friendly_name: Disk Space
sensor.sab_disk_free
unit_of_measurement: GB
friendly_name: sab Disk Free
sensor.sab_left
unit_of_measurement: MB
friendly_name: Left to download
sensor.sab_monthly_total
unit_of_measurement: GB
friendly_name: Monthly Total Downloaded
sensor.sab_queue
unit_of_measurement: MB
friendly_name: Queue
sensor.sab_queue_count
friendly_name: sab Queue Count
sensor.sab_speed
unit_of_measurement: MB/s
friendly_name: Download Speed
sensor.sab_status
friendly_name: Status
sensor.sab_total
unit_of_measurement: GB
friendly_name: Total Downloaded
sensor.sab_weekly_total
unit_of_measurement: GB
friendly_name: Weekly Total Downloaded`
Services available:
sabnzbd.set_speed
sabnzbd.pause
sabnzbd.resume

I also meant the states and attributes values from Developer Tools->States (something like to one below for the Transmission sensors).

There seems to be no attributes, just more sensors.

There seems to be no attributes, just more sensors.

Is there a sensor with tasks detail from the queue (what is being downloaded, what downloads completed)? Or only these statistics related sensors are available?

Unfortunately there is not.
They only have these sensors, But I guess you can calculate the progress on the sensor.sab_left "queue_remaining" sensor?

Hey Bud, Have you had a chance to look at this again?

Hey, I haven't had time to look into it.

Unfortunately I won't have time for development in the near future, so I'm closing this.
I might come back to this topic later.


gauge spark line value text is gone

Hi.
I using skin GAUGE_SPARK_LINE.
But when i switch between layouts value text is gone.

Can you please provide a little code snippet that shows the problem.


Fix import / TypeScript error issues

The import line change in
https://github.com/perses/perses/commit/bcb29c7b98aa880ce662ee842eed53a9e013866f
breaks the app for some reason ("Uncaught TypeError: Cannot read property
'useChartQuery' of undefined"), although there is an index.ts that exports
everything. Let's just revert that change for now to make things run again.
Signed-off-by: Julius Volz<EMAIL_ADDRESS>

thanks @juliusv !


PostgreSQL Error When Running docker-compose up

I cloned the repo, but I cannot get the application to run properly. I can connect to the login page, but authentication fails when you click the sign in button. I ran sudo docker-compose up. However, I get this error.
zach@zach-VirtualBox:~/Documents/Code/Mail-for-Good$ sudo docker-compose up
Creating mailforgood_postgres_1
Creating mailforgood_redis_1
Creating mailforgood_app_1
Attaching to mailforgood_redis_1, mailforgood_postgres_1, mailforgood_app_1
redis_1     | 1:C 01 Jul 06:51:00.151 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis_1     | 1:M 01 Jul 06:51:00.157 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
redis_1     | 1:M 01 Jul 06:51:00.157 # Server can't set maximum open files to 10032 because of OS error: Operation not permitted.
redis_1     | 1:M 01 Jul 06:51:00.157 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients incre
ase 'ulimit -n'.
redis_1     |                 _._
redis_1     |            _.-``__ ''-._
redis_1     |       _.-``    `.  `_.  ''-._           Redis 3.2.9 (00000000/0) 64 bit
redis_1     |   .-`` .-```.  ```\/    _.,_ ''-._
redis_1     |  (    '      ,       .-`  | `,    )     Running in standalone mode
redis_1     |  |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
redis_1     |  |    `-._   `._    /     _.-'    |     PID: 1
redis_1     |   `-._    `-._  `-./  _.-'    _.-'
redis_1     |  |`-._`-._    `-.__.-'    _.-'_.-'|
redis_1     |  |    `-._`-._        _.-'_.-'    |           http://redis.io
redis_1     |   `-._    `-._`-.__.-'_.-'    _.-'
redis_1     |  |`-._`-._    `-.__.-'    _.-'_.-'|
redis_1     |  |    `-._`-._        _.-'_.-'    |
redis_1     |   `-._    `-._`-.__.-'_.-'    _.-'
redis_1     |       `-._    `-.__.-'    _.-'
redis_1     |           `-._        _.-'
redis_1     |               `-.__.-'
redis_1     |
redis_1     | 1:M 01 Jul 06:51:00.158 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
redis_1     | 1:M 01 Jul 06:51:00.158 # Server started, Redis version 3.2.9
redis_1     | 1:M 01 Jul 06:51:00.158 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory =
 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
redis_1     | 1:M 01 Jul 06:51:00.158 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis
. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a r
eboot. Redis must be restarted after THP is disabled.
redis_1     | 1:M 01 Jul 06:51:00.158 * The server is now ready to accept connections on port 6379
postgres_1  | The files belonging to this database system will be owned by user "postgres".
postgres_1  | This user must also own the server process.
postgres_1  |
postgres_1  | The database cluster will be initialized with locale "en_US.utf8".
postgres_1  | The default database encoding has accordingly been set to "UTF8".
postgres_1  | The default text search configuration will be set to "english".
postgres_1  |
postgres_1  | Data page checksums are disabled.
postgres_1  |
postgres_1  | fixing permissions on existing directory /var/lib/postgresql/data ... ok
postgres_1  | creating subdirectories ... ok
postgres_1  | selecting default max_connections ... 100
postgres_1  | selecting default shared_buffers ... 128MB
postgres_1  | selecting dynamic shared memory implementation ... posix
postgres_1  | creating configuration files ... ok
app_1       | npm info it worked if it ends with ok
app_1       | npm info using<EMAIL_ADDRESS>app_1       | npm info using<EMAIL_ADDRESS>app_1       | npm info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>app_1       | npm info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>app_1       |
app_1       | ><EMAIL_ADDRESS>start /usr/src/app
app_1       | > NODE_ENV=production ./node_modules/pm2/bin/pm2 start server/index.js --node-args="--harmony-async-await" server/feedback-consumer/consumer.js --no-daemon
app_1       |
postgres_1  | running bootstrap script ... ok
app_1       |
app_1       |                         -------------
app_1       |
app_1       | __/\\\\\\\\\\\\\____/\\\\____________/\\\\____/\\\\\\\\\_____
app_1       |  _\/\\\/////////\\\_\/\\\\\\________/\\\\\\__/\\\///////\\\___
app_1       |   _\/\\\_______\/\\\_\/\\\//\\\____/\\\//\\\_\///______\//\\\__
app_1       |    _\/\\\\\\\\\\\\\/__\/\\\\///\\\/\\\/_\/\\\___________/\\\/___
app_1       |     _\/\\\/////////____\/\\\__\///\\\/___\/\\\________/\\\//_____
app_1       |      _\/\\\_____________\/\\\____\///_____\/\\\_____/\\\//________
app_1       |       _\/\\\_____________\/\\\_____________\/\\\___/\\\/___________
app_1       |        _\/\\\_____________\/\\\_____________\/\\\__/\\\\\\\\\\\\\\\_
app_1       |         _\///______________\///______________\///__\///////////////__
app_1       |
app_1       |
app_1       |          Welcome to most Advanced Process Manager for Node.js
app_1       |
app_1       |                           Monitoring
app_1       |                         $ pm2 monitor
app_1       |
app_1       |                       Start PM2 at boot
app_1       |                         $ pm2 startup
app_1       |
app_1       |                      Increase Performance
app_1       |                     $ pm2 start api.js -i 4
app_1       |
app_1       |                         -------------
app_1       |
app_1       | pm2 launched in no-daemon mode (you can add DEBUG="*" env variable to get more messages)
app_1       | 2017-07-01 06:51:03: Launching in no daemon mode
app_1       | 2017-07-01 06:51:03: [PM2] Starting /usr/src/app/server/index.js in fork_mode (1 instance)
app_1       | 2017-07-01 06:51:03: Starting execution sequence in -fork mode- for app name:index id:0
app_1       | 2017-07-01 06:51:03: App name:index id:0 online
app_1       | 2017-07-01 06:51:04: [PM2] Done.
postgres_1  | performing post-bootstrap initialization ... ok
app_1       | 2017-07-01 06:51:04: [PM2] Starting /usr/src/app/server/feedback-consumer/consumer.js in fork_mode (1 instance)
app_1       | 2017-07-01 06:51:04: Starting execution sequence in -fork mode- for app name:consumer id:1
app_1       | 2017-07-01 06:51:04: App name:consumer id:1 online
app_1       | 2017-07-01 06:51:04: [PM2] Done.
app_1       | 2017-07-01 06:51:04: ┌──────────┬────┬──────┬─────┬────────┬─────────┬────────┬─────┬───────────┬──────────┐
app_1       | │ App name │ id │ mode │ pid │ status │ restart │ uptime │ cpu │ mem       │ watching │
app_1       | ├──────────┼────┼──────┼─────┼────────┼─────────┼────────┼─────┼───────────┼──────────┤
app_1       | │ consumer │ 1  │ fork │ 42  │ online │ 0       │ 0s     │ 18% │ 27.3 MB   │ disabled │
app_1       | │ index    │ 0  │ fork │ 25  │ online │ 0       │ 0s     │ 3%  │ 26.7 MB   │ disabled │
app_1       | └──────────┴────┴──────┴─────┴────────┴─────────┴────────┴─────┴───────────┴──────────┘
app_1       | 2017-07-01 06:51:04:  Use `pm2 show <id|name>` to get more details about an app
app_1       | 2017-07-01 06:51:04: [--no-daemon] Continue to stream logs
app_1       | 2017-07-01 06:51:04: [--no-daemon] Exit on target PM2 exit pid=15
app_1       | 2017-07-01 06:51:04: [STREAMING] Now streaming realtime logs for [all] processes
postgres_1  | syncing data to disk ... ok
postgres_1  |
postgres_1  | Success. You can now start the database server using:
postgres_1  |
postgres_1  |     pg_ctl -D /var/lib/postgresql/data -l logfile start
postgres_1  |
postgres_1  |
postgres_1  | WARNING: enabling "trust" authentication for local connections
postgres_1  | You can change this by editing pg_hba.conf or using the option -A, or
postgres_1  | --auth-local and --auth-host, the next time you run initdb.
postgres_1  | ****************************************************
postgres_1  | WARNING: No password has been set for the database.
postgres_1  |          This will allow anyone with access to the
postgres_1  |          Postgres port to access your database. In
postgres_1  |          Docker's default configuration, this is
postgres_1  |          effectively any other container on the same
postgres_1  |          system.
postgres_1  |
postgres_1  |          Use "-e POSTGRES_PASSWORD=password" to set
postgres_1  |          it in "docker run".
postgres_1  | ****************************************************
postgres_1  | waiting for server to start....LOG:  could not bind IPv6 socket: Cannot assign requested address
postgres_1  | HINT:  Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
postgres_1  | LOG:  database system was shut down at 2017-07-01 06:51:04 UTC
postgres_1  | LOG:  MultiXact member wraparound protections are now enabled
postgres_1  | LOG:  database system is ready to accept connections
postgres_1  | LOG:  autovacuum launcher started
app_1       | 06:51:06 1|consumer | Feedback consumer started: watching for feedback messages (bounces, complaints, etc) from SQS
app_1       | 06:51:06 1|consumer | An error occurred while creating the table: { SequelizeBaseError: connect ECONNREFUSED <IP_ADDRESS>:5432
app_1       | 06:51:06 1|consumer |     at connection.connect.err (/usr/src/app/node_modules/sequelize/lib/dialects/postgres/connection-manager.js:92:24)
app_1       | 06:51:06 1|consumer |     at Client.<anonymous> (/usr/src/app/node_modules/pg/lib/client.js:201:5)
app_1       | 06:51:06 1|consumer |     at emitOne (events.js:96:13)
app_1       | 06:51:06 1|consumer |     at Connection.emit (events.js:191:7)
app_1       | 06:51:06 1|consumer |     at Socket.<anonymous> (/usr/src/app/node_modules/pg/lib/connection.js:86:10)
app_1       | 06:51:06 1|consumer |     at emitOne (events.js:96:13)
app_1       | 06:51:06 1|consumer |     at Socket.emit (events.js:191:7)
app_1       | 06:51:06 1|consumer |     at emitErrorNT (net.js:1279:8)
app_1       | 06:51:06 1|consumer |     at _combinedTickCallback (internal/process/next_tick.js:80:11)
app_1       | 06:51:06 1|consumer |     at process._tickDomainCallback (internal/process/next_tick.js:128:9)
app_1       | 06:51:06 1|consumer |   name: 'SequelizeConnectionRefusedError',
app_1       | 06:51:06 1|consumer |   parent:
app_1       | 06:51:06 1|consumer |    { Error: connect ECONNREFUSED <IP_ADDRESS>:5432
app_1       | 06:51:06 1|consumer |        at Object.exports._errnoException (util.js:1050:11)
app_1       | 06:51:06 1|consumer |        at exports._exceptionWithHostPort (util.js:1073:20)
app_1       | 06:51:06 1|consumer |        at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1093:14)
app_1       | 06:51:06 1|consumer |      code: 'ECONNREFUSED',
app_1       | 06:51:06 1|consumer |      errno: 'ECONNREFUSED',
app_1       | 06:51:06 1|consumer |      syscall: 'connect',
app_1       | 06:51:06 1|consumer |      address: '<IP_ADDRESS>',
app_1       | 06:51:06 1|consumer |      port: 5432 },
app_1       | 06:51:06 1|consumer |   original:
app_1       | 06:51:06 1|consumer |    { Error: connect ECONNREFUSED <IP_ADDRESS>:5432
app_1       | 06:51:06 1|consumer |        at Object.exports._errnoException (util.js:1050:11)
app_1       | 06:51:06 1|consumer |        at exports._exceptionWithHostPort (util.js:1073:20)
app_1       | 06:51:06 1|consumer |        at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1093:14)
app_1       | 06:51:06 1|consumer |      code: 'ECONNREFUSED',
app_1       | 06:51:06 1|consumer |      errno: 'ECONNREFUSED',
app_1       | 06:51:06 1|consumer |      syscall: 'connect',
app_1       | 06:51:06 1|consumer |      address: '<IP_ADDRESS>',
app_1       | 06:51:06 1|consumer |      port: 5432 } }
postgres_1  |  done
postgres_1  | server started
app_1       | 06:51:06 1|consumer | You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
app_1       | 06:51:06 1|consumer | SequelizeBaseError: connect ECONNREFUSED <IP_ADDRESS>:5432
app_1       | 06:51:06 1|consumer |     at connection.connect.err (/usr/src/app/node_modules/sequelize/lib/dialects/postgres/connection-manager.js:92:24)
app_1       | 06:51:06 1|consumer |     at Client.<anonymous> (/usr/src/app/node_modules/pg/lib/client.js:201:5)
app_1       | 06:51:06 1|consumer |     at emitOne (events.js:96:13)
app_1       | 06:51:06 1|consumer |     at Connection.emit (events.js:191:7)
app_1       | 06:51:06 1|consumer |     at Socket.<anonymous> (/usr/src/app/node_modules/pg/lib/connection.js:86:10)
app_1       | 06:51:06 1|consumer |     at emitOne (events.js:96:13)
app_1       | 06:51:06 1|consumer |     at Socket.emit (events.js:191:7)
app_1       | 06:51:06 1|consumer |     at emitErrorNT (net.js:1279:8)
app_1       | 06:51:06 1|consumer |     at _combinedTickCallback (internal/process/next_tick.js:80:11)
app_1       | 06:51:06 1|consumer |     at process._tickDomainCallback (internal/process/next_tick.js:128:9)
postgres_1  | ALTER ROLE
postgres_1  |
postgres_1  |
postgres_1  | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
postgres_1  |
postgres_1  | LOG:  received fast shutdown request
postgres_1  | LOG:  aborting any active transactions
postgres_1  | LOG:  autovacuum launcher shutting down
postgres_1  | LOG:  shutting down
postgres_1  | waiting for server to shut down....LOG:  database system is shut down
app_1       | 06:51:07 0|index    | Clickthrough tracking: Make sure that geoip data has been downloaded:
app_1       | 06:51:07 0|index    |    $ cd node_modules/geoip-lite
app_1       | 06:51:07 0|index    |    $ npm run-script updatedb
postgres_1  |  done
postgres_1  | server stopped
postgres_1  |
postgres_1  | PostgreSQL init process complete; ready for start up.
postgres_1  |
postgres_1  | LOG:  database system was shut down at 2017-07-01 06:51:06 UTC
postgres_1  | LOG:  MultiXact member wraparound protections are now enabled
postgres_1  | LOG:  database system is ready to accept connections
postgres_1  | LOG:  autovacuum launcher started
app_1       | 06:51:08 0|index    |   ############################
app_1       | 06:51:08 0|index    |
postgres_1  | ERROR:  relation "users" does not exist at character 112
postgres_1  | STATEMENT:  SELECT "id", "googleId", "picture", "token", "email", "name", "sentEmailsCount", "createdAt", "updatedAt" FROM "users" AS "user";
app_1       | 06:51:08 0|index    | You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
app_1       | 06:51:08 0|index    | SequelizeBaseError: relation "users" does not exist
app_1       | 06:51:08 0|index    |     at Query.formatError (/usr/src/app/node_modules/sequelize/lib/dialects/postgres/query.js:350:16)
app_1       | 06:51:08 0|index    |     at Query.query.on.err (/usr/src/app/node_modules/sequelize/lib/dialects/postgres/query.js:93:21)
app_1       | 06:51:08 0|index    |     at emitOne (events.js:96:13)
app_1       | 06:51:08 0|index    |     at Query.emit (events.js:191:7)
app_1       | 06:51:08 0|index    |     at Query.handleError (/usr/src/app/node_modules/pg/lib/query.js:143:8)
app_1       | 06:51:08 0|index    |     at Client.<anonymous> (/usr/src/app/node_modules/pg/lib/client.js:186:26)
app_1       | 06:51:08 0|index    |     at emitOne (events.js:96:13)
app_1       | 06:51:08 0|index    |     at Connection.emit (events.js:191:7)
app_1       | 06:51:08 0|index    |     at Socket.<anonymous> (/usr/src/app/node_modules/pg/lib/connection.js:133:12)
app_1       | 06:51:08 0|index    |     at emitOne (events.js:96:13)
app_1       | 06:51:08 0|index    |     at Socket.emit (events.js:191:7)
app_1       | 06:51:08 0|index    |     at readableAddChunk (_stream_readable.js:178:18)
app_1       | 06:51:08 0|index    |     at Socket.Readable.push (_stream_readable.js:136:10)
app_1       | 06:51:08 0|index    |     at TCP.onread (net.js:561:20)
postgres_1  | ERROR:  column "listsubscriberId" does not exist
postgres_1  | STATEMENT:  CREATE INDEX "campaignsubscribers_listsubscriber_id" ON "campaignsubscribers" ("listsubscriberId")
postgres_1  | ERROR:  column "campaignId" does not exist
postgres_1  | STATEMENT:  CREATE INDEX "campaignsubscribers_campaign_id" ON "campaignsubscribers" ("campaignId")
app_1       | 06:51:09 0|index    | An error occurred while creating the table: { SequelizeBaseError: column "listsubscriberId" does not exist
app_1       | 06:51:09 0|index    |     at Query.formatError (/usr/src/app/node_modules/sequelize/lib/dialects/postgres/query.js:350:16)
app_1       | 06:51:09 0|index    |     at Query.query.on.err (/usr/src/app/node_modules/sequelize/lib/dialects/postgres/query.js:93:21)
app_1       | 06:51:09 0|index    |     at emitOne (events.js:96:13)
app_1       | 06:51:09 0|index    |     at Query.emit (events.js:191:7)
app_1       | 06:51:09 0|index    |     at Query.handleError (/usr/src/app/node_modules/pg/lib/query.js:143:8)
app_1       | 06:51:09 0|index    |     at Client.<anonymous> (/usr/src/app/node_modules/pg/lib/client.js:186:26)
app_1       | 06:51:09 0|index    |     at emitOne (events.js:96:13)
app_1       | 06:51:09 0|index    |     at Connection.emit (events.js:191:7)
app_1       | 06:51:09 0|index    |     at Socket.<anonymous> (/usr/src/app/node_modules/pg/lib/connection.js:133:12)
app_1       | 06:51:09 0|index    |     at emitOne (events.js:96:13)
app_1       | 06:51:09 0|index    |     at Socket.emit (events.js:191:7)
app_1       | 06:51:09 0|index    |     at readableAddChunk (_stream_readable.js:178:18)
app_1       | 06:51:09 0|index    |     at Socket.Readable.push (_stream_readable.js:136:10)
app_1       | 06:51:09 0|index    |     at TCP.onread (net.js:561:20)
app_1       | 06:51:09 0|index    |   name: 'SequelizeDatabaseError',
app_1       | 06:51:09 0|index    |   parent:
app_1       | 06:51:09 0|index    |    { error: column "listsubscriberId" does not exist
app_1       | 06:51:09 0|index    |        at Connection.parseE (/usr/src/app/node_modules/pg/lib/connection.js:567:11)
app_1       | 06:51:09 0|index    |        at Connection.parseMessage (/usr/src/app/node_modules/pg/lib/connection.js:391:17)
app_1       | 06:51:09 0|index    |        at Socket.<anonymous> (/usr/src/app/node_modules/pg/lib/connection.js:129:22)
app_1       | 06:51:09 0|index    |        at emitOne (events.js:96:13)
app_1       | 06:51:09 0|index    |        at Socket.emit (events.js:191:7)
app_1       | 06:51:09 0|index    |        at readableAddChunk (_stream_readable.js:178:18)
app_1       | 06:51:09 0|index    |        at Socket.Readable.push (_stream_readable.js:136:10)
app_1       | 06:51:09 0|index    |        at TCP.onread (net.js:561:20)
app_1       | 06:51:09 0|index    |      name: 'error',
app_1       | 06:51:09 0|index    |      length: 106,
app_1       | 06:51:09 0|index    |      severity: 'ERROR',
app_1       | 06:51:09 0|index    |      code: '42703',
app_1       | 06:51:09 0|index    |      detail: undefined,
app_1       | 06:51:09 0|index    |      hint: undefined,
app_1       | 06:51:09 0|index    |      position: undefined,
app_1       | 06:51:09 0|index    |      internalPosition: undefined,
app_1       | 06:51:09 0|index    |      internalQuery: undefined,
app_1       | 06:51:09 0|index    |      where: undefined,
app_1       | 06:51:09 0|index    |      schema: undefined,
app_1       | 06:51:09 0|index    |      table: undefined,
app_1       | 06:51:09 0|index    |      column: undefined,
app_1       | 06:51:09 0|index    |      dataType: undefined,
app_1       | 06:51:09 0|index    |      constraint: undefined,
app_1       | 06:51:09 0|index    |      file: 'indexcmds.c',
app_1       | 06:51:09 0|index    |      line: '1055',
app_1       | 06:51:09 0|index    |      routine: 'ComputeIndexAttrs',
app_1       | 06:51:09 0|index    |      sql: 'CREATE INDEX "campaignsubscribers_listsubscriber_id" ON "campaignsubscribers" ("listsubscriberId")' },
app_1       | 06:51:09 0|index    |   original:
app_1       | 06:51:09 0|index    |    { error: column "listsubscriberId" does not exist
app_1       | 06:51:09 0|index    |        at Connection.parseE (/usr/src/app/node_modules/pg/lib/connection.js:567:11)
app_1       | 06:51:09 0|index    |        at Connection.parseMessage (/usr/src/app/node_modules/pg/lib/connection.js:391:17)
app_1       | 06:51:09 0|index    |        at Socket.<anonymous> (/usr/src/app/node_modules/pg/lib/connection.js:129:22)
app_1       | 06:51:09 0|index    |        at emitOne (events.js:96:13)
app_1       | 06:51:09 0|index    |        at Socket.emit (events.js:191:7)
app_1       | 06:51:09 0|index    |        at readableAddChunk (_stream_readable.js:178:18)
app_1       | 06:51:09 0|index    |        at Socket.Readable.push (_stream_readable.js:136:10)
app_1       | 06:51:09 0|index    |        at TCP.onread (net.js:561:20)
app_1       | 06:51:09 0|index    |      name: 'error',
app_1       | 06:51:09 0|index    |      length: 106,
app_1       | 06:51:09 0|index    |      severity: 'ERROR',
app_1       | 06:51:09 0|index    |      code: '42703',
app_1       | 06:51:09 0|index    |      detail: undefined,
app_1       | 06:51:09 0|index    |      hint: undefined,
app_1       | 06:51:09 0|index    |      position: undefined,
app_1       | 06:51:09 0|index    |      internalPosition: undefined,
app_1       | 06:51:09 0|index    |      internalQuery: undefined,
app_1       | 06:51:09 0|index    |      where: undefined,
app_1       | 06:51:09 0|index    |      schema: undefined,
app_1       | 06:51:09 0|index    |      table: undefined,
app_1       | 06:51:09 0|index    |      column: undefined,
app_1       | 06:51:09 0|index    |      dataType: undefined,
app_1       | 06:51:09 0|index    |      constraint: undefined,
app_1       | 06:51:09 0|index    |      file: 'indexcmds.c',
app_1       | 06:51:09 0|index    |      line: '1055',
app_1       | 06:51:09 0|index    |      routine: 'ComputeIndexAttrs',
app_1       | 06:51:09 0|index    |      sql: 'CREATE INDEX "campaignsubscribers_listsubscriber_id" ON "campaignsubscribers" ("listsubscriberId")' },
app_1       | 06:51:09 0|index    |   sql: 'CREATE INDEX "campaignsubscribers_listsubscriber_id" ON "campaignsubscribers" ("listsubscriberId")' }
app_1       | 07:04:17 0|index    | Error
app_1       | 07:04:17 0|index    |     at Strategy.OAuth2Strategy.parseErrorResponse (/usr/src/app/node_modules/passport-oauth2/lib/strategy.js:329:12)
app_1       | 07:04:17 0|index    |     at Strategy.OAuth2Strategy._createOAuthError (/usr/src/app/node_modules/passport-oauth2/lib/strategy.js:376:16)
app_1       | 07:04:17 0|index    |     at /usr/src/app/node_modules/passport-oauth2/lib/strategy.js:166:45
app_1       | 07:04:17 0|index    |     at /usr/src/app/node_modules/oauth/lib/oauth2.js:191:18
app_1       | 07:04:17 0|index    |     at passBackControl (/usr/src/app/node_modules/oauth/lib/oauth2.js:132:9)
app_1       | 07:04:17 0|index    |     at IncomingMessage.<anonymous> (/usr/src/app/node_modules/oauth/lib/oauth2.js:157:7)
app_1       | 07:04:17 0|index    |     at emitNone (events.js:91:20)
app_1       | 07:04:17 0|index    |     at IncomingMessage.emit (events.js:188:7)
app_1       | 07:04:17 0|index    |     at endReadableNT (_stream_readable.js:975:12)
app_1       | 07:04:17 0|index    |     at _combinedTickCallback (internal/process/next_tick.js:80:11)
app_1       | 07:04:17 0|index    |     at process._tickDomainCallback (internal/process/next_tick.js:128:9)

Did you authorize "http://localhost:8080/auth/google/callbackDid" to be a fallback uri in your google dashboard ?
also, did you put your Google+ API keys in your .env file ?

I'm facing the same problems.
Alright, you can ignore my questions.
I should have tested before commenting on this issue.
I'll take my afternoon to look at this. If you happen to be available today or tomorrow I'll be ablet to spend an hour or two to get you up and running.

Thank you!

@zhakkarn Do you know which commit @AndrewGHC published to Docker Hub ?

@karuppiah7890 as far as I know, @4iar handled the docker part of the project.

@karuppiah7890 the Docker images are automatically built using the latest commits.
Might this be related to PR #152? This fix has not yet been merged into master so the latest Docker image uses the newer broken Sequelize version (4.x.x).
Maybe you could try running the staging Docker image (which uses the older Sequelize) by editing docker-compose.yml and setting:
Line 6:     image: freecodecamp/mail-for-good:latest
to
Line 6:     image: freecodecamp/mail-for-good:staging
then re-run docker-compose up

Yes, I think we should keep the master branch stable first of all. That's why we have a master and a staging. So, let's merge #152 to master first. And then get the latest docker image built from master branch and upload it to Docker Hub

I have fixed this locally. Shall push changes shortly.

I am still getting these errors. The docker-compose up command doesn't start the app and throws some settings doesn't exist error. I don't get the DB connected message also. The same happens with the staging image too. Are the changes pushed ? I do see that the last push was 4 days ago,
cc @AndrewGHC @4iar


Implement protocol attack tests

A late anchorFile and batchFile Publish is the same as a private/protected anchorFile batchFile, which might have legitimate uses for certain clients / nodes in the future.
We should add tests:

[x] Late publish attack => non transferability under dishonest actors assumption
[x] Private Transactions => Private DIDs => indistinguishable from a late publish attack
[x] Private Transactions => safely published later => path from private to public for DIDs

https://github.com/decentralized-identity/element/pull/17


Fix/import not use for grid

This makes overriding the grid settings possible in products that use the design system.
At the moment, we are @use to import files at higher levels of the scss code, rather than @importing them.  @use requires you to explicitly override variables when you import a module, rather than respecting what the global state of variables in the @used file are.  This changes ensures that the global values of the grid are respected at all layers of the ITCSS triangle, allowing products to override the variables to make their own grids.
The wider issue might be affecting other areas of the code, but I'd like to keep this change small and limited to what I know isn't working at the moment.
See https://acab.slack.com/archives/C060YQ75MGD/p1716370930966639?thread_ts=1716291046.823689&cid=C060YQ75MGD.

👍 LGTM
For when we merge this: We might want to think about whether we do a 5.9.0 release with this in it or push forward with 6.0.0, we can pull some of the more semi-breaking changes out if we need to.

This isn't urgent so I'm happy for it to go into 6.0.0.  Perhaps when #3265 and #3261 are in I can do a 6.0.0-alpha release?


Add Meta-Information to Theme

Use meta-data for layout pages in theme.

done for typemill theme

published with version 1.3.0


Throw 500 error if an exception is encountered

Hello all,
At the moment if a Python exception is encountered it looks like a 200 reponse with a blank body is returned.  This does not result in up{job='jobname'} returning 0.
That's fine if you are using an up_jobname metric alongside the up metric - but some people dual use the up metric so it means exporter OR app are down (as suggested in the documentation).
An option to choose the behavior would be great.
In the meantime is there a way to explicitly throw a 5xx?
Cheers,
James

Dupe of #84


About def get_different_scale(self) and RuntimeError: .....size of tensor must match

I met the same problem after epoch 15. (pytorch1.0, python 3.6.3, my own data, 4 gpus)

through reading previous problems and solutions, I have a guess(uncertain） , the problem is in the dataset.py line53:
def get_different_scale(self):
if self.seen < 4000self.batch_size:
wh = 1332                          # 416
elif self.seen < 8000*self.batch_size:
wh = (random.randint(0,3) + 13)32  # 416, 480
elif self.seen < 12000self.batch_size:
wh = (random.randint(0,5) + 12)*32  # 384, ..., 544
.....
so maybe we get different shape in the same batch(dataset.py line 14):
def custom_collate(batch):
data = torch.stack([item[0] for item in batch], 0)
[X,X,416,X]  and [X,X,317,X]
although shape transfer happended after self.seen < xx*self.batch_size,  maybe the errror  due to multi-gpu?
I just have this guess， but I don't know how to solve it, I found there are many people have same question, maybe the problem is important, looking forward to your reply~
Originally posted by @sgflower66 in https://github.com/andy-yun/pytorch-0.4-yolov3/issues/55#issuecomment-526069860

Now, I set the sample amount to be an integer multiple of batchsize, and it seems working well (it has been worked until now for  more than10 epochs, rather than happened error in 5 epochs )
I hope this way can solve this problem. N

Helped set the sample amount to be an integer multiple of batchsize + reset model.seen parameter

in my case, the problem disappeared when I didn't use savemodel() function. I suppose that the problem appears after cur_model.save_weights(). also in my case i have train dataset that len(train_dataset)%batch_size = 0


Ducktape test - storage node(s) bounced (quorum is [not] achieved)

Following tests toggle the network connection between a server and a replica for a short amount of time, so new session isn't created. Tests simulate sudden short disconnection of storage node(s).
Tests cover two scenarios:
quorum is still achieved with other replicas (bottom two tests).
quorum cannot be achieved until the network connection of the replicas comes back up (remaining 2 test) -> no_of_nodes_to_bounce >= min number of nodes needed to achieve quorum.
How to test it:
add a print statement to see which nodes get disconnected and another print statement just before before step 3 (to know when the nodes actually got disconnected). With this knowledge check the metrics output on storage nodes (to see that transactions aren't stored - just on the affected node / everywhere).
Further testing can me done with tcpdump port 7071 or by checking iptable

When I run this locally, I am seeing the below exception getting printed during the teardown. Its little confusing as the test result shows that the test has passed but even then its printing this exception. Can you take a look and fix it.
_Exception in thread VerifiableClient-0-4418385168-worker-1:
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/Users/smithak/.venv/waltz_test_venv/lib/python2.7/site-packages/ducktape-0.7.6-py2.7.egg/ducktape/services/background_thread.py", line 36, in _protected_worker
    self._worker(idx, node)
  File "/Users/smithak/dev/waltzGit/waltz-test/src/main/python/waltz_ducktape/services/verifiable_client.py", line 43, in _worker
    self.validation_outputs[idx] = node.account.ssh_output(self.validation_cmd)
  File "/Users/smithak/.venv/waltz_test_venv/lib/python2.7/site-packages/ducktape-0.7.6-py2.7.egg/ducktape/cluster/remoteaccount.py", line 399, in ssh_output
    raise RemoteCommandError(self, cmd, exit_status, stderr.read())
RemoteCommandError: smithak@storage-3: Command 'java -Dlog4j.configuration=file:/etc/waltz/waltz-log4j.cfg com.wepay.waltz.tools.client.ClientCli validate --txn-per-client 200 --num-clients 1 --interval 100 --cli-config-path /etc/waltz/waltz_client.yaml --num-active-partitions 1' returned non-zero exit status -1._


Bug/self purchase world

Why
Fix issue with self-purchase form getting stuck
Related Tickets

Closes #291

looks like when you switch datacenters the World doesnt auto update to something in that datacenter
Is this not the behaviour we want?

https://github.com/ff14-advanced-market-search/saddlebag-with-pockets/assets/51456734/28ceb513-2886-4e7b-9273-0796b4037fcf


validator - add limit checking for irradiance, temperature, wind

Reading Ohm98 Baseline Surface Radiation Network (BSRN-WCRP) New Precision Radiometry for Climate Research.pdf for background on uncertainty issues. Table 5 is relevant to this issue.
Direct solar irradiance: Direct solar irradiance with transmission coefficient of 0.9
Diffuse sky irradiance: 700 W m~2, the largest value ever recorded
Global irradiance 2: TOA irradiance for solar zenith angle (z)less than 80°; TOA irradiance + 0.56(z - 93.9)2 for z larger than 80°; upper bound of global irradiance when the sun is near the horizon
Not saying these should be our limits, but maybe something to point to.

This one also: ftp://ftp.cmdl.noaa.gov/g-rad/isis/qcrad_v3/Long_TOAtmosJ.pdf.  This paper is the primary reference for QCRad, which is what NOAA applies to the SURFRAD data.  I have the Fortran code and documents for QCRad, either Chuck Long sent it or pointed me at a download, I don't recall which.

ftp://aftp.cmdl.noaa.gov/data/radiation/QCRad_RadFlux_Workshop/Codes/QCRad/

closed by #29


[Enhance]: eliminate-overwriting code

Description
This PR aims to fix the overwriting code in cloud_dev to provide a consistent dev experience.
Related Issue
Closes AGE-1479
Related PR
https://github.com/Agenta-AI/agenta_cloud/pull/533/files

This is not a very good way to fix the issue, but for a hot-fix I guess this may work
cy.wait(2000)


Create a file ,which contain the code for different types of  Hypothesis testing.

sure @vaibhavgupta2499

I have added a Pull request for this issue, kindly please check that and revert back. Please consider this for LGM-SOC participation.


[ZEPPELIN-3092] GitHub Integration

What is this PR for?
GitHub integration as a storage for notebooks.
What type of PR is it?
Feature
What is the Jira issue?
ZEPPELIN-3092
How should this be tested?

Change the configuration in zeppelin-site.xml to enable GitHub integration (add GitHub url, username, access token and origin) as described in https://github.com/apache/zeppelin/compare/master...mohamagdy:zeppelin-3092-remote-github-integration?expand=1#diff-89104d48f0358450399a6f679bba9c4f
Start the Zeppelin server
Open an existing notebook or create a new notebook
Do some changes to the notebook, for example add a new paragraph
Click on the versioning button on the top menu to commit and save changes
Checkout the changes in the GitHub repository. The changes should be reflected

Questions:

Does the licenses files need update?
No

Is there breaking changes for older versions?
No

Does this needs documentation?
Yes. Documentation is updated as part of the pull request.

@felixcheung, the GitHubNotebookRepo inherits from GitNotebookRepo but the difference is, after the notebook is saved (and committed), the GitHubNotebookRepo updates (pushes the local commits) a remote GitHub repository (notebooks repository on GitHub) configured in the zeppelin-site.xml.
Also, when GitHubNotebookRepo is configured as a storage, everytime the notebook is loaded, the latest changes is pulled from the remote GitHub repository.
Does this make sense?

@Leemoonsoo, thanks a lot for reviewing and testing the branch.
I will fix the Jenkins job with the information you provided.
Regarding the test files, the tests for the GitNotebookRepo was not working because those notebooks were missing from the src folder, so I added them. I ran the tests using Intellij.

Can you restart some failed job on https://travis-ci.org/mohamagdy/zeppelin/builds/317797015 ?

and we should probably check why RAT doesn't pick up the missing ASF header for new files?

@zjffdu all good. I closed and reopened the pull request.
I would suggest making the process of rerunning Jenkins easier than closing and reopening the pull request. This also triggers Travis tests which take around 1.5 hours. Maybe adding a build button in Jenkins so that one can rerun the job? What do you think?

It is awsome if there's such button. But I don't know how to make such button. BTW usually I would force push a dummy commit to trigger the build. And I believe we should also fix these flaky test which cause inconvenience for developers.

Would love to see this merged!


Can't swap on https://treasury.agoric.app/swap

I followed the documentation.
https://github.com/Agoric/agoric-sdk/wiki/Setting-up-an-Agoric-Dapp-Client-with-docker-compose
Running ag-solo and connecting treasury looks fine.
But when I tried to swap RUN to BLD, the Output input box didn't get filled.

Also, I found a console.log message from the browser inspector.

(I can transfer this to the agoric-sdk repo if it seems useful.)


log rotate functionality

Is log rotate functionality is provided. If yes let me know how we can do it

When you new a LogBackend , you can pass a rotated io.Writer,  such as dailyrotate shown at https://github.com/kjk/dailyrotate.


jit(arm64): various conversion instructions

part of #187

ok the left is the notorious ITruncFromF and FConvertFromI..

ok done!!


fix: preserve basket after logout

Codecov Report

Merging #12 into master will increase coverage by 0.28%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #12      +/-   ##
==========================================
+ Coverage   87.74%   88.02%   +0.28%
==========================================
  Files          35       35
  Lines         465      476      +11
  Branches       26       27       +1
==========================================
+ Hits          408      419      +11
  Misses         51       51
  Partials        6        6

Impacted Files
Coverage Δ

shoppingcart/baskets/views.py
96.87% <100.00%> (ø)

shoppingcart/shoppingcart/settings.py
100.00% <100.00%> (ø)

shoppingcart/users/views.py
100.00% <100.00%> (ø)

shoppingcart/utils/tests.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


starship: 0.10.1 -> 0.11.0

Motivation for this change
Fix the parallel tests on darwin issue and other stuff. @lilyball
Things done

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

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

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

nix path-info -S /nix/store/lax8qmvfkdj634ism8jafw4djvxjsxv6-starship-0.10.1
/nix/store/lax8qmvfkdj634ism8jafw4djvxjsxv6-starship-0.10.1	   35764408
nix path-info -S /nix/store/sb4iaff8xksw7x37b4llbiw0938wvh45-starship-0.11.0
/nix/store/sb4iaff8xksw7x37b4llbiw0938wvh45-starship-0.11.0	   35769720

Alas, more test failures when building this on macOS 🤦♀

Looks like this is already being tracked at https://github.com/starship/starship/issues/199

It seems the test failures boil down to starship module directory --path=somethingThatDoesntExist panicking. I'm surprised you were able to build it on NixOS since the check phase fails for me when HOME=/homeless-shelter or when building with sandboxing (due to /etc not being available).
This is being tracked in https://github.com/starship/starship/issues/199. In the meantime, we could just disable the check phase on the package.

I would first try HOME=$TMPDIR, if that doesnt work then, checkPhase = "cargo test --all --exclude=directory". I haven't done too much with rust packages, but there should be a way to selectively disable a subset of tests

or when building with sandboxing (due to /etc not being available).

That's weird. I'm pretty sure I have sandboxing (it's been enabled by default for a while, right?).
➜ nix run nixpkgs.nix-info -c nix-info -m

system: "x86_64-linux"
host os: Linux 4.19.67, NixOS, 19.03.173310.35841f87afa (Koi)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.2.2
channels(bbigras): "home-manager-19.03, unstable-19.09pre188690.8746c77a383"
channels(root): "nixos-19.03.173310.35841f87afa"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

I'm the one who set /etc in that test. It was using /usr before and didn't work for me.
I modified the test to list all directories in / and I saw:

/dev
/etc
/nix
/build
/tmp
/bin
/proc

Is there something wrong on my side?

I would first try HOME=$TMPDIR, if that doesnt work then, checkPhase = "cargo test --all --exclude=directory". I haven't done too much with rust packages, but there should be a way to selectively disable a subset of tests

There's cargo test -- --skip some_test

Maybe sandboxing on NixOS allows access to /etc? I'm only assuming it disallows it on macOS because the test failed. I'm not sure how to actually test what's available right now.

Looking at https://github.com/NixOS/nix/blob/6924bdf2bf8f50f2e6ec5d490571594450aba13a/src/libstore/sandbox-defaults.sb, the macOS sandbox allows for reading the metadata of /etc but does not otherwise allow for reading this directory, which means starship will fail as I assume it's looking for $path/.git.

The test using /etc that I was referring to is test directory::directory_in_root. Not directory::home_directory.
If you want to list all the directory while in the sandbox you can build starship on the starship-list-dirs branch of my fork http://github.com/bbigras/nixpkgs. I added the read_dir() stuff in a new unit test.

If I change test directory::directory_in_root to read /etc2, create it and run the test with strace -f I get:
$ rg etc2 strace.txt
6603:[pid  8080] execve("./target/debug/starship", ["./target/debug/starship", "module", "directory", "--path=/etc2"], 0x7f20c0002180 /* 2 vars */ <unfinished ...>
6800:[pid  8080] openat(AT_FDCWD, "/etc2", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
6906:[pid  8080] lstat("/etc2", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
6907:[pid  8080] stat("/etc2/.git", 0x7ffef836f9a0) = -1 ENOENT (No such file or directory)
6908:[pid  8080] stat("/etc2", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
6909:[pid  8080] stat("/etc2/commondir", 0x7ffef836f770) = -1 ENOENT (No such file or directory)
6910:[pid  8080] stat("/etc2/HEAD", 0x7ffef836f770) = -1 ENOENT (No such file or directory)
6922:[pid  8080] write(1, "in \33[1;36m/etc2\33[0m ", 20) = 20
6927:[pid  8079] <... read resumed> "in \33[1;36m/etc2\33[0m ", 32) = 20

Listing the contents of / isn't helpful, that would only tell you something different if you're building a new FHS userenv (which macOS doesn't even have).

I updated the PR. directory::home_directory should be skipped now.

directory::directory_in_root still fails on macOS though.

OK I excluded that one too.

This now builds on macOS
[2 built, 0.0 MiB DL]
https://github.com/NixOS/nixpkgs/pull/66947
1 package were build:
starship

There's already another release.
Should I update this PR, open a new one or just wait a couple of days between PRs so I don't waste everyone's time. I don't mind doing a PR for every single releases but I know there's a lot of PRs to be reviewed every day.

I would just bump, rebase, and push. You already went through quite a gauntlet of reviews :)

done

Looking at the derivation, it already includes Security, so I guess the problem is actually that it's referencing the system Security framework rather than the Nix one. I'm not sure what's going on there.

The failure is actually when trying to execute the wrapped cargo binary, so maybe something happened upstream.

Ok I've figured out what's going on. This review was done on a different machine, whose /etc/nix/nix.conf doesn't match the one on my previous machine (in particular it's missing the extra-sandbox-paths that allows access to things like /System/Library/Frameworks because darwin impurity requires linking against the system for some of these frameworks). I'm re-running the review on my original machine and I'll figure out how to fix nix.conf on this one later.

darwin sounds fun... :)


My bot is not going online

I followed the tutorial step by step to the letter (both ways- simple way, aka purple button, and the "non simple" way) yet it's still not doing anything even if my build was shown that it was successful in every step. I know that my issue sounds too vague but I can't think of anything which could have led me to this.

Any logs or additional info?

I was wondering how tf do I deploy the bot?? I know it's probably something simple but I need help

Have you tried to read the text below the repository? https://github.com/ScarletKuro/NadekoBot-Heroku-Auto-Deploy
Literally just saying to click the button to automatically deploy it on you heroku account

I deployed it but the bot offline??

@ScarletKuro so is there anything else i may have missed

Well it turned out that this doesn't work on herokus newest stack-20, it was made for stack-16/18, and since I have no time to work on it and fix, I'm going to drop support of nadeko heroku version. So yeah, this won't work from now on.


Not set referer using stream

I use to transmit referer DataSourceListener stream but with an error, the error code "Response code: 403".
Stream for me:

https://live2.bongdaf.net/5998f632d6307767f123645dde6f5e671566419216/i7/playlist.m3u8

My code

public class Data2Source implements DataSourceListener {
private Context context;

public Data2Source(Context context) {
    this.context = context;
}

@Override
public com.google.android.exoplayer2.upstream.DataSource.Factory getDataSourceFactory() {
    //默认数据源工厂
    DefaultHttpDataSourceFactory defaultHttpDataSourceFactory = new DefaultHttpDataSourceFactory(context.getPackageName(), null, DefaultHttpDataSource.DEFAULT_CONNECT_TIMEOUT_MILLIS,
            DefaultHttpDataSource.DEFAULT_READ_TIMEOUT_MILLIS, true);
    defaultHttpDataSourceFactory.setDefaultRequestProperty("User-Agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36");
    defaultHttpDataSourceFactory.setDefaultRequestProperty("Referer", "https://bongdaf.net/truc-tiep/all-boys-vs-central-cordoba-sde-srnENR602.html?ads=1");
    return defaultHttpDataSourceFactory;

}

exoPlayerManager = new VideoPlayerManager.Builder(VideoPlayerManager.TYPE_PLAY_USER, mPlayerView)
.setPlayUri(urlm3u8)
.setDataSource(new Data2Source(M3u8Activity.this))
.create()
.startPlayer();

and I have tried using extends HttpDataSource.BaseFactory but I do not know how to add exoPlayerManager.
Please give me solution. thank u

https://github.com/google/ExoPlayer/issues/5422
https://github.com/google/ExoPlayer/issues/4320

so i won't use your library but instead of exoplayer? . I need to guide getDefaultRequestProperties () set referer from your library !. please support . thank u

When I debug I don't see the getDataSourceFactory method running in the Data2Source class. Please check and support

My reference class library, using the basis of exoplayer

There are no instructions to transmit to your library. I have succeeded with exoplayer but I want to do with your library

Please give me the sample code from your library

error: "Response code: 403".

The core processing is handled by the exoplayer class library, not my class library. My library's original foundation was simplified to simplify access time costs.
Due to the redirection of your video link, this exoplayer issue is also feedback.


Enhancement Proposal: Prioritized Experience Replay and Dueling DQN Implementation in Reinforcement Learning for Market Hedging

Dear Akshat,
I hope this message finds you well. I would like to propose two significant enhancements to our trading agent project that I believe will significantly improve its performance and learning efficiency.
1.Prioritized Experience Replay:
Prioritizes informative transitions in the replay buffer based on their significance for learning.
Enhances training efficiency by sampling transitions with higher priorities more frequently, leading to faster convergence.
2.Dueling DQN:
Separates the estimation of state value and action advantages in the neural network architecture.
Improves learning efficiency by enabling the agent to learn the value of states and actions separately, resulting in more effective decision-making.
Both enhancements involve modifications to the codebase, including adjustments to the memory structure, replay methods, and model architecture. I believe that implementing these enhancements will significantly elevate the performance and robustness of our trading agent. Please give me this I work on it.
Thank You

Thankyou for providing such a detailed description of your proposed approach.You can start working on it.

Thank you for considering I surely work on it and enhance it with the following proposal

Can you please give access as I can't be able to contribute. I have updated the code with the following enhancements which I have given but the thing I can't able to clone the repo and make the push and pull request please tell me what can I do. Can you please check from your side because i can't able to clone the repo in local machine. I have done the changes please reply.

I have checked it, no other people are facing this issue.It is from your side only.You can try installing your github desktop again

Ok thanks I will do and make pull request as soon as possible

This shows when I am cloning this repo to my local machine. Can you please help me in this I have updated the code the only thing I can't able to clone in my local machine. This I have tried from Github Desktop which you have told in your previous comment. Please help me in this.

This is really strange.Let me find the solution

Can you please check I have pulled the request from github only because cloning is not done that's why I have directly done from github without cloning into the repo. I have pulled the request also.Please review my changes.

Can you please check I have pulled the request from github only because cloning is not done that's why I have directly done from github without cloning into the repo. I have pulled the request also.Please review my changes.

@Shubhanshu-356 You can clone repo via vscode
From the given options, select "Git Clone Repository". Here, you will need to enter the URL of the project

Ok thanks for the help but i already done and open the pulled request also. Please review my changes @Akshat111111

Have you checked my pull request as it is not closed. Please check and review the changes

Have you checked my pull request as it is not closed. Please check and review the changes

@Shubhanshu-356 He might be busy due to workload. I'm mentioning this because the mentor is also busy with his examinations. You can work on another issue in the meantime.

Ok no problem thanks for the info

Have you checked my pull request as it is not closed. Please check and review the changes

@Shubhanshu-356 He might be busy due to workload. I'm mentioning this because the mentor is also busy with his examinations. You can work on another issue in the meantime.

Hey, Thanks for it.You are absolutely correct. Apart from it I have GSOC tasks as well.

Have you checked my pull request as it is not closed. Please check and review the changes

@Shubhanshu-356 He might be busy due to workload. I'm mentioning this because the mentor is also busy with his examinations. You can work on another issue in the meantime.

Hey, Thanks for it.You are absolutely correct. Apart from it I have GSOC tasks as well.

I understood, Good luck for GSOC


Command line app

For my application, I have several command line targets with different behaviors. For example:
/appdir/app1
/appdir/app2
Both of which take various command line arguments. In the past I've built the apps in a docker container, then configured X11 forwarding through the container. I'd like to use this GUI baseimage instead, but I'm having a hard time seeing how to execute the apps with arguments as a docker CMD instead of through a fixed startapp.sh script.
The S6 init system allows the user to execute a command-line application (e.g. /init ), which it manages. When the command exits, the init system shuts down. Is there a way to replicate this functionality with the new cinit system?

Yes, that's essentially correct. I assume the full container initialization is required in order for the GUI parts of the container to function properly.

Currently the init system is not designed to perform a such thing.  The application itself is started as a normal service.
Can you use environment variables to control what to do on startup ?


Memory leak runtime/bin/security_context_win.cc (New)

the memory leak is reproducible again, windows and linux
Dart 3.4.3 (stable)
https://github.com/dart-lang/sdk/issues/54251

//cc @aam

https://github.com/dart-lang/sdk/issues/54251#issuecomment-2297029200


[FEATURE] New Command Feature Request - '/teama purge'

Is your feature request related to a problem? Please describe.
Feature Request. I would like to suggest a feature where admins could either manually purge player data with the command '/teama purge' or the plugin to automatically purge data on a set configuration of either daily/weekly/bi-weekly/monthly.
Describe the solution you'd like
/teama purge - betterteams.admin.purge
/teama set purge
Example Command Usage:
/teama set purge day - The data purge would be executed at the end of the day.
/teama set purge week - The data purge would be executed at the end of every week.
/teama set purge biweekly - The data purge would be executed at the end of every 14 days.
/teama set purge month - The data purge would be executed at the end of the month.
For plugin to automatically purge data, the config option example that admins could modify.
Example config:
##Day/Week/BiWeekly/Month
Purge Frequency: Month
Describe alternatives you've considered
None
Additional context
Additionally, before data is purged, the plugin could also reward the top teams/team members a configurable set of rewards. For example, the top 1 team would get $10,000 credited to their team bank, top 2 team would get $5,000, top 3 team would get 2,500 and so on. Rewards could be money/exp/items which is executed from a command or pre-configured rewards etc.

Good idea. Though the scheduling for when purges run will be in the config as to do it, I would need to take a lot of details about the date which would just be annoying to do through commands.

TODO list:

[ ] add /teama purge with a confirm dialogue like /team disband. Purge should reset team score (not balance otherwise players would just withdraw money if they knew a purge was coming.
[ ] add a config option to schedule purges (ie day of week / time) or (date in month / time)
[ ] For giving players rewards. I may either just point you to my plugin chain command, though I have not tested it since 1.11 so I would need to do that. Or I will add it into better teams (this is still undecided)
[ ] Add placeholders for getting a team which is a certain rank in both score and balance

This has been added for the next update.


chore(deps): upgrade compiler dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-compiler-dependencies-k8s-29-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 4911

Questions ?
Please refer to the Backport tool documentation


Fix negative offset for UTC

Specifying ZZ in a format string gives an offest of -00:00 for UTC,
despite the arrow object repr showing +00:00. Detect using >= 0
for consistency.

Cheers for looking at this

Hmmm, the tests failed because of the format change. I guess either they want it to be like that, or they're locking in the behaviour for some other reason. I'll fix the tests, but there's no guarantee that the maintainers will appreciate the patch! 😄

Current coverage is 100% (diff: 100%)

Merging #377 into master will not change coverage

@@           master   #377   diff @@
====================================
  Files          14     14
  Lines        2899   2902     +3
  Methods         0      0
  Messages        0      0
  Branches      207    208     +1
====================================
+ Hits         2899   2902     +3
  Misses          0      0
  Partials        0      0

Powered by Codecov. Last update 5f235bc...a6c9108

I'll merge. This goes against what moment.js does and just is odd behavior. Thanks for the PR


Port BigDataViewer's Overlay Orientation/position indicator

BDV's indicator of scene orientation runs on top of the 2D Graphics obtained from a JPanel, so this also involves the JPanel wrapping of ThreeDViewer

This is related to @xulman's orientation compass https://github.com/xulman/EmbryoGen/blob/master/SimViewer/src/main/java/de/mpicbg/ulman/simviewer/DisplayScene.java#L249

We've added a Compass since this issue. We can reopen if there is interest.


Remove background_color commandline flag

Enhancement proposal
I think that the background_color flag should be removed from manim. It's the odd option in the bunch, and it does not seem like something that belongs there. Colors of every mobject are set in the script, and I think the background color belongs there too.
Additional comments

cc @jsonvillanueva this may be of interest to you with your click update

If there's enough interest, sure; I'm not opposed. I've currently left this in the click PR under the manim render subcommands. It's organized under "Render Options".

It seems most are in favor of removing it


Namespace loses inherited layout setting?

I have a modular app setup with a base Controller like this:
module Controllers
  class Base < Sinatra::Application

    configure do
      set :root, File.expand_path('../../../', __FILE__)
      set :views, settings.root + '/app/views'
      set :erb, layout: :'layouts/layout'
    end

  end
end

Then I have a controller which inherits from that base controller:
module Controllers
  class Content < Base
    namespace '/foo' do

      # this has no layout
      get '/bar' do
        erb :'content/bar'
      end

      # this works if we force the layout
      get '/bar' do
        erb :'content/bar', layout: :'layouts/layout'
      end

    end
  end
end

Am I doing something wrong? If I remove namespace, my layout setting is properly inherited.
For now, I'm just going to avoid using name spacing and add the prefix manually to my routes. Seems more sensible than specifying layouts for each route.
Thanks

This should be fixed in master by #139, thank you!


wsl ubuntu does not start anymore

After removing manually a ubuntu folder in my home directory by mistake, Ubuntu does not start any more. The error message:
wslbridge error: failed to start backend process
note: bash.exe output: Der angegebene Netzwerkname ist nicht mehr verfügbar.
The German part is "The specified network name is not available any more."
I disabled and reenabled WSL for Windows in the Windows feature list. I reinstalled Ubuntu for WSL. But the error message persists.
Windows Version: Microsoft Windows [Version 10.0.17763.973]
Ubuntu Version: 1804.2018.817.0
The detailed logs enabled by logman.exe did not contain any information. The three files were empty after trying to start Ubuntu.
The Feedback Hub recommended for network issues does not start at my system. It's probably disabled by my company.
How could I start my Ubuntu again?
Thank you very much for any hint.
Regards

For recent changes in WSL, particularly WSL mode V2, the new gateway wslbridge2 should be used instead. Many thanks for this further development and maintenance go to Biswapriyo Nath.


3.19.1 master doesn't deploy on 6.3/6.4

Required Information

[AEM6.3 ] AEM Version, including Service Packs, Cumulative Fix Packs, etc: ___
[3.19.1 ] ACS AEM Commons Version: _____
[yes ] Reproducible on Latest? yes/no

Expected Behavior
Bundle is active
Actual Behavior
Bundle is 'installed'

Also on 6.4 there is the same issue

It appears the MCP SFTP code introduced this dependency. I don't see AEM providing this in AEM 6.4.2 either.
I'd much prefer if we can re-write without dependency (or use a dep already provided by AEM).

Our optionals list is already too big (requiring yet-another-install to get features to work)
and we don't want to go back to embedding 3rd party libraries (a bad habit we've already broken).

Might be smart to just revert this feature until we can figure out a good solution.

splitting the huge package of acs-aem-commons into smaller ones? especially if the code adds 3rd party dependencies.

that's what we did for Twitter, but TBH history has proven that is a PITA for just about everyone.
Spitting ACS Commons, in general, has been discussed in previous issues.

Making jcraft optional, and gracefully handling this lack of dependency "in product", is IMO is the best work-around. The right solution is, of course, to figure out how to not rely on 3rd party deps.

FWIW, the problem with the Twitter dependency is pretty specific and not something I'd expect to be necessary in general. The issue there is that Twitter4J is used in an AdapterFactory and AdapterFactories are eagerly instantiated.
In this case, my understanding is that this dependency is used in a MCP process; a similar situation already exists with the S3 Ingestor. Seems like it would apply here.
Actually, this gives me an idea for how to fix the twitter thing...

On 6.4.2 I have this

I'm also seeing the replication issue on 6.4.0

Fixed in #1572

For now I'm just embedding it.  JSCH is an old pre-osgi library.  I'm not sure why it shows up as being present in the copies of AEM I was looking at, but it's safer to assume that if we need a tiny library then we just embed it.  At least for something this small that doesn't get updated, like ever, and also has no readily available OSGi bundling.  For now I just want to address the packaging issue created, we can reassess making it an optional dependency later.  I'm not exporting it so it doesn't make any change to our API surface.

Also given the frequency which I've been asked for SFTP support, it still makes better sense to embed.  It's not something I want to do often, but again it's at least self-contained and also very tiny.  No extra dependencies, etc.

The bundle is still not getting active :-(

same here, but was it merged into master? @badvision ?

same here, but was it merged into master? @badvision ?

Yes, the jsch stuff has been merged to master.

Yes, well I had tested it on a relatively new AEM instance so I didn't see the issue.  Also it's really weird that JZLIB is an optional dependency in the pom but is showing as required here.

Terribly sorry about this guys please let me know if this is a suitable fix, otherwise I can revert the tree back.


[apps][fix] Make examples compilable in Visual Studios 2017 and 2019

Changes are tiny:

app\frame_grabber added to includes path
RPLIDAR_SDK_VERSION macro now separated from quotes with spaces, so compiler don't confuse it with string literals
#include <string> added to stdafx.h in frame_grabber

I would like to bump this PR and stress the importance!
The above mentioned modifications are vital to get the sdk and examples building in current versions of VS.
Per my experience and, the necessary adaptations can be reduced to:

app\frame_grabber added to include path of lidarmgr.cpp
RPLIDAR_SDK_VERSION macro now separated from quotes with spaces, so compiler don't confuse it with string literals
#include  added to stdafx.h in frame_grabber does not seem necessary

Thanks for this! I'm trying to create a VS C++ project with this SDK and openFrameworks. And its working in 2019 👍