[BUG]: password auth fails in postgres

What version of drizzle-orm are you using?
v0.28.6
What version of drizzle-kit are you using?
v0.19.13
Describe the Bug
Drizzle fails to run migrations. Also using<EMAIL_ADDRESS>adapter. This is how I'm connecting to it:
export default fp(async (app: FastifyInstance) => {
	const migrationClient = postgres(app.config.DATABASE_URL, { max: 1 });
	const queryClient = postgres(app.config.DATABASE_URL);

	const db = drizzle(queryClient, { schema });

	app.decorate('db', db);
	app.decorate('schema', schema);
	app.decorate('migrations', {
		migrate: async () => {
			await migrate(drizzle(migrationClient), {
				migrationsFolder: path.join(__dirname, '../../../drizzle'),
				migrationsTable: 'migrations',
			});
		},
		seed: async () => {
			await migrate(drizzle(migrationClient), {
				migrationsFolder: path.join(__dirname, '../db/seeds'),
				migrationsTable: 'seeds',
			});
		},
	});
});

I have a docker compose config with the following layout:
version: '4'
services:
  db:
    image: postgres:16-alpine
    command: postgres -c fsync=off -c synchronous_commit=off -c full_page_writes=off -c random_page_cost=1.0
    environment:
      POSTGRES_DB: gateway
      POSTGRES_USER: gateway
      POSTGRES_PASSWORD: password123
      PGDATA: /var/lib/postgresql/data
    tmpfs: /var/lib/postgresql/data
    ports:
      - 5432:5432
    expose:
      - 5432
    restart: unless-stopped

Create the following drizzle config:
import type { Config } from 'drizzle-kit';
import "dotenv/config"

if (!process.env.DATABASE_URL) {
	console.error(
		'No DATABASE_URL environment variable found. Please set one in your .env file.'
	);
	process.exit(1);
}

console.info('Using DATABASE_URL: ', process.env.DATABASE_URL);

export default {
	schema: './src/server/db/schema/index.ts',
	out: './drizzle',
	driver: 'pg',
	dbCredentials: {
		connectionString:
			process.env.DATABASE_URL
	},
	verbose:
		process.env.NODE_ENV !== 'production' || process.env.VERBOSE === 'true',
} satisfies Config;

Run the following:
DATABASE_URL=postgres://gateway:password123@<IP_ADDRESS>:5432/gateway npx drizzle-kit push:pg --config=drizzle.config.ts

Expected behavior
Migrations to push to db.
Environment & setup
 $ DATABASE_URL=postgres://gateway:password123@<IP_ADDRESS>:5432/gateway npx drizzle-kit push:pg --config=drizzle.config.ts

><EMAIL_ADDRESS>migrations:push
> drizzle-kit push:pg --config=drizzle.config.ts

drizzle-kit: v0.19.13
drizzle-orm: v0.28.6

Custom config path was provided, using 'drizzle.config.ts'
Reading config file '/home/phr3nzy/work/twig/gateway/drizzle.config.ts'
Using DATABASE_URL:  postgres://gateway:password123@<IP_ADDRESS>:5432/gateway
/home/phr3nzy/work/twig/gateway/node_modules/drizzle-kit/index.cjs:40722
        const message = name === "notice" ? new messages_1.NoticeMessage(length, messageValue) : new messages_1.DatabaseError(messageValue, length, name);
                                                                                ^

error: password authentication failed for user "gateway"
    at Parser.parseErrorMessage (/home/phr3nzy/work/twig/gateway/node_modules/drizzle-kit/index.cjs:40722:98)
    at Parser.handlePacket (/home/phr3nzy/work/twig/gateway/node_modules/drizzle-kit/index.cjs:40563:25)
    at Parser.parse (/home/phr3nzy/work/twig/gateway/node_modules/drizzle-kit/index.cjs:40487:34)
    at Socket.<anonymous> (/home/phr3nzy/work/twig/gateway/node_modules/drizzle-kit/index.cjs:40763:44)
    at Socket.emit (node:events:514:28)
    at addChunk (node:internal/streams/readable:343:12)
    at readableAddChunk (node:internal/streams/readable:316:9)
    at Readable.push (node:internal/streams/readable:253:10)
    at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {
  length: 103,
  severity: 'FATAL',
  code: '28P01',
  detail: undefined,
  hint: undefined,
  position: undefined,
  internalPosition: undefined,
  internalQuery: undefined,
  where: undefined,
  schema: undefined,
  table: undefined,
  column: undefined,
  dataType: undefined,
  constraint: undefined,
  file: 'auth.c',
  line: '335',
  routine: 'auth_failed'
}

@phr3nzy Did you able to find a workaround?

@LynxTR No unfortunately. Quit trying to fix it and switched orms

@phr3nzy  Apparently it was my fault, the db user's password had a # character in it. And I didn't wrap it in quotes in the env file. I am using node-postgres.

I am having same issue when doing ssh port forwarding. I need to apply migrations on the remote instance, seems like I need to include migration files and add a code to migrate them automatically. This was working recently though, and I think this may not be a drizzle specific issue.
unitythemaker@blazingfast ~/p/d/website-v2 (main)> pnpm drizzle-kit studio
drizzle-kit: v0.21.4
drizzle-orm: v0.30.10

No config path provided, using default path
Reading config file '/home/unitythemaker/proj/defencemore/website-v2/drizzle.config.ts'
Using 'postgres' driver for database querying

[Warning] Drizzle Studio is currently in Beta. If you find anything that is not working as expected or should be improved, feel free to create an issue on GitHub: https://github.com/drizzle-team/drizzle-kit-mirror/issues/new or write to us on Discord: https://discord.gg/WcRKz2FFxN

Drizzle Studio is up and running on https://local.drizzle.studio
PostgresError: password authentication failed for user "postgres"
    at ErrorResponse (/home/unitythemaker/proj/defencemore/website-v2/node_modules/.pnpm/drizzle-kit@0.21.4/node_modules/drizzle-kit/bin.cjs:71410:27)
    at handle (/home/unitythemaker/proj/defencemore/website-v2/node_modules/.pnpm/drizzle-kit@0.21.4/node_modules/drizzle-kit/bin.cjs:71187:7)
    at Socket.data (/home/unitythemaker/proj/defencemore/website-v2/node_modules/.pnpm/drizzle-kit@0.21.4/node_modules/drizzle-kit/bin.cjs:71010:9)
    at Socket.emit (node:events:518:28)
    at addChunk (node:internal/streams/readable:559:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
    at Readable.push (node:internal/streams/readable:390:5)
    at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
    at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
  severity_local: 'FATAL',
  severity: 'FATAL',
  code: '28P01',
  file: 'auth.c',
  line: '323',
  routine: 'auth_failed'
}

I also cant connect to the db for some reason.
I found out that it doesn't have anything todo with drizzle, because i cant even connect using the psql command in the terminal.
For some reason it doesn't accept my password, even though its correct (i reset it multiple times).
Im working in WSL, so maybe that has something todo with it...

This is not an issue specific to Drizzle, but rather, it's connection to it.


Raise DeprecationWarning on 0-dim arrays in numpy.nonzero to match NumPy 1.17 behavior

See the description of #2387.

Jenkins, test this please

Jenkins CI test (for commit 9bac8b93d0891e2283cad9d6fb354d4b15ff0c52, target branch master) failed with status FAILURE.

Jenkins, test this please

Jenkins CI test (for commit 9bac8b93d0891e2283cad9d6fb354d4b15ff0c52, target branch master) failed with status FAILURE.

@niboshi This pull-request is marked as to-be-backported, but the corresponding backport PR could not be found. Could you check?

@emcastillo Removed to-be-backported label.


chore: fix testgrid docker specs are not running on rhel 8

What this PR does / why we need it:
2023-03-24 20:23:36+00:00 ⚙  Running install with the argument(s): airgap
2023-03-24 20:23:36+00:00 Docker 20.10.17 is not supported on centos 8.4.
2023-03-24 20:23:36+00:00 The containerd addon is recommended. https://kurl.sh/docs/add-ons/containerd
2023-03-24 20:23:36+00:00 Continue? (y/N) main: line 4824: /dev/tty: No such device or address
+ KURL_EXIT_STATUS=1
+ export KUBECONFIG=/etc/kubernetes/admin.conf
+ KUBECONFIG=/etc/kubernetes/admin.conf
+ export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
+ PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
+ '[' 1 -eq 0 ']'
+ echo ''
+ echo 'failed kurl install with exit status 1'

also yaml yes is true not "yes"

also yaml yes is true not "yes"

Good catch!


(#601) Add documentation for hook scripts

Description Of Changes
Adds documentation around hook scripts. What they why, how to use them, why they exist. Etc.
Motivation and Context
Hooks are a new feature, and need docs
Testing

[x] I have previewed these changes using the Docker Container or another method before submitting this pull request.

Change Types Made

[ ] Minor documentation fix (typos etc.).
[ ] Major documentation change (refactoring, reformatting or adding documentation to existing page).
[x] New documentation page added.
[ ] The change I have made should have a video added, and I have raised an issue for this.

Issue #

Change Checklist

[ ] Requires a change to menu structure (top or left hand side)/
[x] Menu structure has been updated

Related Issue
Fixes #601

@steviecoaster did you realize there is already an existing documentation page on hooks here: https://docs.chocolatey.org/en-us/features/hook

I didn't because the PR wasn't linked to the existing issue and searching the docs for hook returned no results.

Do we agree that the existing documentation, now that I see it exists should be extended with information from the commit included in this PR? I will happily amend the commit with the proper changes.
Additionally, should we still provide a link in the menu structure that this commit adds that allows users to find hook information both via features and the create packages documentation?

searching the docs for hook returned no results.

Hmm, we probably should fix that.

Do we agree that the existing documentation, now that I see it exists, should be extended with information from the commit included in this PR?

Yup, sounds good to me.

Additionally, should we still provide a link in the menu structure that this commit adds that allows users to find hook information both via features and the create packages documentation?

I don't have a strong opinion on that one.

@steviecoaster @ryanrichter94 I have made some changes to the content of this PR, in order to get it over the line.  The change will be merged once the CI build is finished.
Thanks for getting these changes added, as I think they are valid.


Update theme/style sheet handling to enable napari-console to use napari font_size setting

References and relevant issues
Closes #32
Description
Depends on/related to napari/napari#6753
A preview:

Notes

While working on this, I noticed that with napari latest main a deprecation warning appears (related with using the as_dict kwarg from the get_theme function). Added a note about that here.
To preserve compatibility with napari 0.4.x (at least 0.4.19) the previous logic was left. The new style_sheet kwarg added to the _update_theme method defines if the previous logic needs to be used (napari 0.5.0 will use the new style_sheet kwarg, see https://github.com/napari/napari/pull/6753)

@Czaki does @dalthviz's latest commit address your concerns?

I just installed this PR and I do not see any changes when update theme or font size.
I do not see connection to any proper signal in the code

Did you check this alongside https://github.com/napari/napari/pull/6753 @Czaki ? I checked again and works for me on Windows 🤔 (although as mentioned I see a deprecation warning related with the as_dict kwarg):

Anyhow, maybe the work over https://github.com/napari/napari/pull/6753 and here is not the correct approach and these PRs should be closed?

@Czaki do you want to have another look at this after Daniel's last comment? Should this PR be closed or is it the right approach?

Amazing! Thanks both!


Attaching async-profiler as an agent breaks java.lang.management.ManagementFactory

I was trying to profile a play application using the Java agent approach, but got this weird error:
Profiling started
Oops, cannot start the server.
java.lang.UnsatisfiedLinkError: no management in system library path<EMAIL_ADDRESS>	at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2403)
	at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:818)
	at java.base/java.lang.System.loadLibrary(System.java:1989)
	at java.management/java.lang.management.ManagementFactory.lambda$static$8(ManagementFactory.java:1016)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
	at java.management/java.lang.management.ManagementFactory.<clinit>(ManagementFactory.java:1015)
	at play.core.server.RealServerProcess.pid(ServerProcess.scala:50)
	at play.core.server.ProdServerStart$.createPidFile(ProdServerStart.scala:145)
	at play.core.server.ProdServerStart$.start(ProdServerStart.scala:45)
	at play.core.server.ProdServerStart$.main(ProdServerStart.scala:29)
	at play.core.server.ProdServerStart.main(ProdServerStart.scala)

The problematic code is in the java.lang.management.ManagementFactory static initialiser
static {
        AccessController.doPrivileged((PrivilegedAction<Void>) () -> {
            System.loadLibrary("management");
            return null;
        });
    }

If I launch the application with the async-profiler agent it works. Also if I disable all the code that makes use of java.lang.management.ManagementFactory the agent works correctly
My environment:
Mac M1 arm64
java -version
openjdk version "<IP_ADDRESS>" 2022-08-12
OpenJDK Runtime Environment Homebrew (build <IP_ADDRESS>+0)
OpenJDK 64-Bit Server VM Homebrew (build <IP_ADDRESS>+0, mixed mode, sharing)

Let me know if more details are needed or even a small reproducer...

Yes, a reproducer would be helpful: a .jar or a .class file with the exact run command.
Thanks.

Yes, a reproducer would be helpful: a .jar or a .class file with the exact run command. Thanks.

Ok, I will work on it. I am wondering if this is related to Mac M1 arm64, as I recently moved from Linux to Mac and I am still figuring things out.

No, mac should not be an issue. I just tested a Java app that uses ManagementFactory on JDK <IP_ADDRESS> on my M1 mac with async-profiler and everything worked fine. So more details will be highly appreciated. Btw, which version of async-profiler did you use?

which version of async-profiler did you use?

2.8.3

Reproduction steps:
$ git clone git@github.com:playframework/play-samples.git
$ cd play-samples/
$ cd play-scala-hello-world-tutorial/
$ sbt stage

the above will generate an app ready to run in the folder ./target/universal/stage/ which contains a launcher script in ./target/universal/stage/bin/play-scala-hello-world-tutorial
Running without agent is okay
$ ./target/universal/stage/bin/play-scala-hello-world-tutorial -Dplay.http.secret.key='QCY?tAnfk?aZ?iwrNwnxIlR6CTf:G3gf:90Latabg@5241AB`R5W:1uDFN];Ik@n'
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/Users/joao/git/play-samples/play-scala-hello-world-tutorial/target/universal/stage/lib/com.google.inject.guice-4.2.3.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[info] play.api.Play - Application started (Prod) (no global state)
[info] p.c.s.AkkaHttpServer - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
^C
[info] p.a.i.l.c.CoordinatedShutdownSupport - Starting synchronous coordinated shutdown with ServerStoppedReason reason and<PHONE_NUMBER> milliseconds timeout
[info] p.c.s.AkkaHttpServer - Stopping Akka HTTP server...
[info] p.c.s.AkkaHttpServer - Terminating server binding for /0:0:0:0:0:0:0:0:9000
[info] p.c.s.AkkaHttpServer - Running provided shutdown stop hooks

Running with -J-agentlib:asyncProfiler=start,event=cpu,file=profile.html
./target/universal/stage/bin/play-scala-hello-world-tutorial -Dplay.http.secret.key='QCY?tAnfk?aZ?iwrNwnxIlR6CTf:G3gf:90Latabg@5241AB`R5W:1uDFN];Ik@n'  -J-agentlib:asyncProfiler=start,event=cpu,file=profile.html
Error occurred during initialization of VM
Could not find agent library asyncProfiler on the library path, with error: dlopen(libasyncProfiler.dylib, 0x0001): tried<EMAIL_ADDRESS>(no such file<EMAIL_ADDRESS>(no such file<EMAIL_ADDRESS>(no such file), 'libasyncProfiler.dylib' (no such file), '/usr/local/lib/libasyncProfiler.dylib' (no such file), '/usr/lib/libasyncProfiler.dylib' (no such file), '/Users/joao/git/play-samples/play-scala-hello-world-tutorial/libasyncProfiler.dylib' (no such file)

The above error is expected and I fix it by copying the libasyncProfiler.dylib to the current dir cp ~/async-profiler-2.8.3-macos/build/libasyncProfiler.so libasyncProfiler.dylib (because setting LD_LIBRARY_PATH does not work https://stackoverflow.com/a/60128194 🤷 )
$ /target/universal/stage/bin/play-scala-hello-world-tutorial -Dplay.http.secret.key='QCY?tAnfk?aZ?iwrNwnxIlR6CTf:G3gf:90Latabg@5241AB`R5W:1uDFN];Ik@n'  -J-agentlib:asyncProfiler=start,event=cpu,file=profile.html
Profiling started
Error: LinkageError occurred while loading main class play.core.server.ProdServerStart
	java.lang.UnsatisfiedLinkError: no nio in java.library.path: [/Users/joao/Library/Java/Extensions, /Library/Java/Extensions, /Network/Library/Java/Extensions, /System/Library/Java/Extensions, /usr/lib/java, .]

Which is different from initial reported, but still related? I now wonder if this is related to async-profiler at all or my system is not properly configured (I am using homebrew and jenv)
$ java -version
openjdk version "<IP_ADDRESS>" 2022-08-12
OpenJDK Runtime Environment Homebrew (build <IP_ADDRESS>+0)
OpenJDK 64-Bit Server VM Homebrew (build <IP_ADDRESS>+0, mixed mode)

OK, I was able to reproduce the issue.
The problem is in Homebrew JDK.
All other JDK builds I tried (Oracle, Liberica, Azul Zulu) seem to work fine. I'll check later what's wrong with Homebrew builds. Meanwhile try installing JDK from other vendors.

It seems like -rpath is not set correctly in Homebrew JDK binaries: in particular, libjvm.dylib does not appear on @rpath. This results in failures when calling dlopen on JDK libraries from async-profiler.
I found a related issue reported previously: https://github.com/Homebrew/homebrew-core/issues/66953
Unfortunately, it has never been fixed.
I committed a workaround in async-profiler. Please try if it helps.

I just ran into this problem today on OpenNMS with Homebrew OpenJDK 11.0.6 and your patch, @apangin, fixes it for me. Thanks! Now, onto debugging what brought me here. :)

FYI, the underlying problem in Homebrew OpenJDK has been addressed: https://github.com/Homebrew/homebrew-core/pull/111255


corrected minor typo

aphabetical -> alphabetical

Thanks. Resolved this issue and made some additional minor fixes in the following commit.
https://github.com/eriklindernoren/ML-From-Scratch/commit/443b96196449a681deb44783e41a9ab0b4b87988


Budget Binder App

Budget Binder
Budget Binder is a Ruby On Rails application designed to keep track of transactions.
Functionality :

Allows the user to create an account or log in with an already created account.
The user can create new categories to organize their transactions.
The user can create new transactions and add them to one or more groups.
The user can see all their groups and the transactions contained in them.

Pages :
The Application contains the following pages :

Home page :

Categories page :

Entities page :

Create a Group page :

Create Entity page :

Video:
https://www.loom.com/share/d9b68a3ddfec49aea3180ee341c34153
Render Link :
https://budget-binder.onrender.com/

Reference in new is
I am pretty sure this is wrong, as I cheked literaly the projects from  all people I know from Microverse, Everyone is emrgin from dev into main as this is a Capstonem and it wouldn't make sense to have all the code in a single branch


[Feature Request] Mirror Mode/Flip Viewmodels Mode

Is it possible to create a mirror mode where everything in the levels and CI are mirrored to get rid of PD familiarity so the game feels like a new experience, and flip viewmodels mode where every gun is left handed and the right gun will appear with dual wielded guns? Now the big issue would be, with these 2 modes, if you had both on, would the whole game, even the guns be mirrored, and if FV mode was used with it, would that allow the gun to be on the right in mirror mode? Or would mirror mode effect every thing but the 1st person, and the gun would be on the right, unless used with FV mode, to have it on the left? Maybe the latter would be easier to implement?

More precisely, this feature tends to be called "flip viewmodels" (For lefty view models). Southpaw instead tends to refer to a feature in shooters where the thumbsticks are swapped, which this PC port already has.

The feature you are referring to for the gun models tends to be called "flip viewmodels" (For a lefty look). Southpaw instead tends to refer to a feature in shooters where the thumbsticks are swapped, which this PC port already has.

Ah yes, thanks!

Mirroring the model is probably easy enough, but mirroring all the stuff that comes out of it probably requires a lot of small edits everywhere.


Collapsed Layout?

It would be really helpful to support a collapsed layout as well for situations where you want to show some content, then expand to show more. In my case the description of an article.

Do you mean showing a bit of the layout in the collapsed state?
I guess that would be possible by configuring the collapsed size, but honestly I struggle to find a common use case for it.
I'll leave this issue open for now.

Yes, I think it could be helpful for anyone looking to have a preview of something(image, text, comments in a list, etc). Something similar to a minHeight would be really useful! Thanks for considering.

I've done was like this:
 <LinearLayout>//root
     <LinearLayout/>//child
     <net.cachapa.expandablelayout.ExpandableLayout/>
 </LinearLayout>

Then i created a view with a listener inside Linear Layout Child that can toggle the expandable layout.

Hi, i used this lib, but not work correct.
When i scroll my recyclerview the data is changed and the item that i expand it, collapse automatically!!!

@cachapa you're closing the issue, but how to fix it? I see you have this problem very long time, so you haven't found a solution yet yes?

@cachapa but where is the "collapsed_height" attribute, I can't see it.

@cachapa https://github.com/AAkira/ExpandableLayout . in this library there is a method expandableLayout.setClosePosition(int value); and that is doing what I need, but the library not works good, I had some problems using this library, because I'm using your library. So you can see how he does the collapsed state part, when some part is visible.

@Hayko985 please read my message. The "collapsed_height" attribute doesn't exist yet, all I said is it would be a possible solution for the issue.
If someone wants to implement it, I'll gladly accept it. Otherwise you need to wait until I have the time to do it myself.


APIs Refactor

This PR is conceptually a simple one, but with lots of naming updates in the code, thus the high "files changed" count. Files that don't contain any comments can just be considered as having simple naming updates to accommodate the refactor.
This PR doesn't functionally change anything about go-tableland, but sets the stage for some upcoming changes to support improved read query parameters in both the REST and JSON RPC APIs, as well as making it easy to add or remove any existing or new API service (for example, we may choose to not have a JSON RPC API).
The main change here is to free the tableland.Tableland interface and its implementation TablelandMesa from JSON RPC duties. The goal is to make it the core API that can be used by any other component of go-tableland, using whatever expressive API makes sense, and not be forced to conform to JSON RPC rules.
The tableland.Tableland interface was updated to reflect this goal (not using Request and Response structs for every function), and additional, more fluent Go interactions will be added in an upcoming PR to support the new read query parameters.
The REST API UserController was updated to use the new core API.
A new RPCService was created to actually provide the JSON RPC service. This service uses the core API in its implementation.

Very nice! Great to see this.


Setup continuous integration

Some of our existing tests fail on Windows.  We need cross-platform CI to help catch these issues.

[ ] Travis CI (or equivalent) for Linux and macOS
[ ] Appveyor for Windows

I can help with these configurations, but we probably need accounts setup in each service.

Sounds great, if you could create the configurations I can set up the accounts and the required integrations.

We can close this one now, right?


Switching "Tab"/"All Channels" view

When switching between tab view/all channels view, and on a fixture, the new tab should be set to All fixtures not General.

Open the Functions tab
Select a scene with fixtures. The editor will open with the "General" tab selected.
Select a fixture to edit
Click the "Switch between tab view and all channels view" button
Fixture tabs are replaced with "All fixtures" tab and tab switches to the "General" tab

Expected behavior:

"All fixtures" tab is selected

(The extra click to switch to the "All fixtures" tab that should be default is somewhat annoying.)
Alternatively:
Remove button for "Switch between tab view and all channels view" and show "General", "All fixtures", and individual fixture tabs.

Fixed


chore(themes): corp bluetint

Перевод corp тимизации на bluetint, приведение компонентов Select, Input к core тимизации

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 79.686%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
8102

Relevant Lines:
9203

💛  - Coveralls


Add support for abstract sockets

In #146, I introduced a bug that prevented abstract sockets from
working. I passed the path straight into
rustix::net::SocketAddrUnix::new, which fails if it receives an abstract
socket.
This commit fixes this issue by explicitly checking for abstract
sockets. If it sees that the path it's receiving is abstract, it will
pass the path's bytes to new_abstract_socket() instead.
This should fix the issue that is occurring in dbus2/zbus#517

LGTM. Thanks so much for looking into this. Would be great to have a test case for abstract sockets btw.

Added a test, and in the process found a bug that I'd missed.


BUG: JavaSript seems to be causing issues with fonts/layout

Hi, just started to notice this problem with the latest update... Definitely gets fixed when I uninstall the custom node suite

and here it is with the custom node removed

Removing the nodes from the workflow does not resolve the issue. It worked fine earlier today.
Cheers and thank you for an awesome set of nodes.

Here is a short screen grab to show how it is behaving.
https://github.com/rgthree/rgthree-comfy/assets/32348862/cc1fa7fe-3565-4ac4-83e1-63dacdb769fd

UPDATE:
The problem goes away when you enable the new BETA ComfyUI Menu Bar ...
Disabling this new feature and going back to the floating Toolbar does not re-introduce the issue. Looks like the way to fix it is to at least enable the new menu bar once. Will keep an eye on it.
Thank you.

Nah, spoke too soon... it is back :( I am using the side bar floating toolbar and the text/layout is once again distorted.

Same here. And I fixed it by enabling the new BETA ComfyUI Menu Bar.

I actually can't see the textbox's offset like this, but I think I know what the issue is, similar to #275. A fix just now should have fixed it. LMY if it's still present after the latest.


Update dependency: deps/pyk_release

At commit cc404ee, the build is failing due to a RuntimeError: Empty response received (source here). I was not able to replicate this locally.

I believe this is due to a hook being unevaluated, when I ran it locally. It probably is related to: https://github.com/runtimeverification/hs-backend-booster/issues/468.

It did replicate on my machine. I'm not sure what the difference would be; is your k version correct?

@nwatson22  I think so, I build it using
kup install k.openssl.procps --version v$(cat deps/k_release)

make poetry

poetry -C kevm-pyk run kdist clean

CXX=clang++-14 poetry -C kevm-pyk run kdist --verbose build evm-semantics.plugin

poetry -C kevm-pyk run kdist --verbose build -j4

But I only ran the failing proof with this command instead of running the whole suite.
make -C kevm-pyk/ test-integration PYTEST_ARGS+="-k test_pyk_prove[benchmarks/encode-keccak00-spec.k]"


[operations] Implement process_bls_to_execution_change

https://github.com/lambdaclass/lambda_ethereum_consensus/blob/dd0a0523e6be2a21fa3f6a96d4466926307d236c/docs/specs/beacon-chain.md?plain=1#L2921-L2943
See Spec tests format: https://github.com/ethereum/consensus-specs/tree/dev/tests/formats/operations
Acceptance criteria:

Run corresponding spec tests

can I take this?

Sure

Merged in #430


Expose OIDC as standalone policy

We would like to use OIDC without 3scale, so we need a standalone OIDC policy for authentication.
Requirement for https://github.com/3scale/ostia/issues/14
/cc @3scale/ostia

Shouldn't this policy have an apicast-policy.json ?

That would show it in the UI. I'm not sure we are ready for that. What would happen when a customer would add this policy to existing OIDC service? IMO we should think a bit more how that should work before exposing it.


Updating metadata to correct a few tags

#sign-off

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-ref-services/hdinsight.md
:white_check_mark:Succeeded
View (azure-node-latest)

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

#sign-off


Node v0.6.x compatibility

Error: require.paths is removed. Use node_modules folders, or the NODE_PATH environment variable instead.
    at Function.<anonymous> (module.js:376:11)
....

Maybe I can try to adress this during the weekend...

It just needs the dependency require-like to be bumped up to 0.1.1 in package.json - the fix has been applied to that module.


chore: update start-server-and-test

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

Current dependencies on/for this PR:

#6  👈
#5
#4
#3
#2
#1
main

This stack of pull requests is managed by Graphite.


Multiples downloads dont work

First of all I apologize for my English, it is really bad.
When Downloading a QR (Angular) and generating a new one without updating the component, the download returns to the old QR.
I am working on a site that makes QRs for which I need that after downloading a QR I can generate another without refreshing the WEB. The problem is that when I generate the second one I download the first one again. I think the error is here but I'm really not sure
export default function downloadURI(uri: string, name: string): void {
  const link = document.createElement("a");
  link.download = name;
  link.href = uri;
  document.body.appendChild(link);
  link.click();
  document.body.removeChild(link);
}

The download works on the same file it should always be destroyed after downloading or they should be different.

experiencing same issue

I had the same issue. As of right now, 1.5.0 works without the issue. Anything past that and the downloaded QR code doesn't update.

I cant make multiples QR to work even at current 1.5.0 version.
<EMAIL_ADDRESS>)
For example this code gives me the same QR image .:
let q1 = new QRCodeStyling({ width: 300, height: 300, type: "png", data: 'uno', image: `yourlogo.jpg`,
      dotsOptions: { color: "#1568B0", type: "extra-rounded" },
      backgroundOptions: { color: "#fff", },
      imageOptions: { crossOrigin: "anonymous", margin: 0 } });

let q2 = new QRCodeStyling({ width: 300, height: 300, type: "png", data: 'dos', image: `yourlogo.jpg`,
      dotsOptions: { color: "#1568B0", type: "extra-rounded" },
      backgroundOptions: { color: "#fff", },
      imageOptions: { crossOrigin: "anonymous", margin: 0 } });

q1.append(document.getElementById('qr'+1));
q2.append(document.getElementById('qr'+2));

Any ideas?

I manage to use it with getRawData method:
HTML:

JS
 document.getElementById('qr1').src =  URL.createObjectURL(await q1.getRawData('png'))
 document.getElementById('qr2').src =  URL.createObjectURL(await q2.getRawData('png'))

Hi @xunorus @JoaquinDecima @JosephShepin , it seems like a duplicate of https://github.com/kozakdenys/qr-code-styling/issues/210


Revert subsegment synchronization changes

Issue #, if available:
#303
Description of changes:
This PR reverts the changes to the segment/subsegment synchronization logic made in the following previous PRs:
https://github.com/aws/aws-xray-sdk-java/pull/250
https://github.com/aws/aws-xray-sdk-java/pull/278
https://github.com/aws/aws-xray-sdk-java/pull/279
https://github.com/aws/aws-xray-sdk-java/pull/306
This should revert the SDK's synchronization behavior to a known good state in v2.8.0 and resolve the deadlocking issues. We maintained the public methods introduced by these PRs for backwards compatibility.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

Merging #350 (63bdaf3) into master (5bab3e5) will decrease coverage by 0.58%.
The diff coverage is 78.83%.

:exclamation: Current head 63bdaf3 differs from pull request most recent head c581f5e. Consider uploading reports for the commit c581f5e to get more accurate results

@@             Coverage Diff              @@
##             master     #350      +/-   ##
============================================
- Coverage     58.82%   58.24%   -0.59%
- Complexity     1207     1210       +3
============================================
  Files           131      131
  Lines          5076     4948     -128
  Branches        594      590       -4
============================================
- Hits           2986     2882     -104
+ Misses         1817     1791      -26
- Partials        273      275       +2

Impacted Files
Coverage Δ

...java/com/amazonaws/xray/entities/DummySegment.java
17.75% <ø> (+2.80%)
:arrow_up:

...a/com/amazonaws/xray/entities/DummySubsegment.java
0.00% <ø> (ø)

.../main/java/com/amazonaws/xray/entities/Entity.java
100.00% <ø> (ø)

...ava/com/amazonaws/xray/entities/FacadeSegment.java
16.66% <ø> (ø)

...n/java/com/amazonaws/xray/emitters/UDPEmitter.java
42.85% <16.66%> (+19.45%)
:arrow_up:

...va/com/amazonaws/xray/entities/SubsegmentImpl.java
69.81% <66.66%> (-2.02%)
:arrow_down:

...zonaws/xray/strategy/DefaultStreamingStrategy.java
87.50% <72.72%> (-8.80%)
:arrow_down:

...n/java/com/amazonaws/xray/entities/EntityImpl.java
85.58% <84.02%> (-1.47%)
:arrow_down:

.../java/com/amazonaws/xray/entities/SegmentImpl.java
91.07% <94.28%> (-0.07%)
:arrow_down:

...va/com/amazonaws/xray/entities/NoOpSubSegment.java
92.68% <0.00%> (-1.22%)
:arrow_down:

... and 6 more

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


dd: should return 1 when stderr is redirected to /dev/full but returns 101

GNU dd v9.4.113-c01ee:
$ : | dd 2> /dev/full; echo $?
1

uutils dd:
$ : | ./target/debug/dd 2> /dev/full; echo $?
101

This test case appears in GNU test suite file tests/dd/stderr.sh.

A panic! ends the process with status 101: https://doc.rust-lang.org/std/macro.panic.html#current-implementation Maybe this is a panic whose error message is not displayed because stderr is being redirected to /dev/full?
Maybe related to https://github.com/uutils/coreutils/issues/2925


Survey planner: respect when problem instance specifies actions were completed

What doesn't change: The edited scripts plan_survey.py and problem_generator.py should continue to support previously used interfaces without changes. These changes are intended improve feature coverage and output quality.
Substantive changes:

plan_survey.py: Now respects completed predicates asserted in the problem instance and will not try to perform the relevant actions again. This could be important if we need to replan partway through an ISS activity after some goals have been completed. The PlanSys2 problem expert should already be tracking which goals were completed, meaning the operator shouldn't need to handle this issue manually (e.g., edit the relevant problem config to remove completed goals).
plan_survey.py: While testing the above change, I noticed and fixed a bug where the collision avoidance check in plan_survey.py was not specified as strictly as it was in the PDDL model. When a robot requests to move to a location to_pos, the PDDL model specifies that the move should be blocked depending on whether another robot has reserved either to_pos or one of its immediate neighbors. Before this fix, the check of to_pos itself was being omitted in plan_survey.py. It's kind of an edge case and it's hard to make it perform a dangerous move except with stereo actions. I should add that it's possible there are other collision check edge cases, especially for the stereo action, that are present both in plan_survey.py and in the PDDL model. But I think they're very unlikely to cause any dangerous moves in practice.
problem_generator.py: Added an optional completed flag to goals specified in the input config. This causes the corresponding completed-x predicates to be asserted in the output problem instance. It also removes the relevant need-stereo predicates -- this may affect OPTIC/POPF but is ignored by plan_survey.py. This new feature is not intended for use during ops (you could just as easily delete a goal as mark it completed), but is helpful for testing the planner.
Added test cases with completed goals in the new data/test_cases folder. See the README there for more.

Tangential changes:

Some previous changes had broken linter rules and I brought the files I touched back inline with the coding standards I'm working to.
Fixed some inaccurate comments.

Closes #130

Looks good to me. @marinagmoreira , I know you were thinking about this, what do we want to do about the CI running out of memory? (does this happen every time or should we try re-running?)

Looks good to me. @marinagmoreira , I know you were thinking about this, what do we want to do about the CI running out of memory? (does this happen every time or should we try re-running?)

I think the CI is running out of storage, not memory.
I skimmed through how we are doing these builds with an eye to saving space.  But we already have an example in ci_push.yml of how to build each image individually, and if these builds were separated into different jobs so they used different workers, the space required for any single worker would be greatly reduced. It's possible the fancy build is also pulling down an irrelevant baseline ros image that's not needed to build our custom images.
I'm curious why this space issue is just starting now. Possibly GitHub reduced how much storage they provide to workers, or the overhead of their default built-in worker tools is increasing so there's less space left for us.

The same CI failure happens on develop. See https://github.com/nasa/isaac/actions/runs/7835088932
This seems like it should be 100% consistent. It's running out of space while downloading base Docker images before it even begins building anything new.


On AZP Packaging with VS2008 limit link jobs

To address timeout presumably from swapping during multiple linkages,
limit the number of concurrent linkages.

py27 is no longer supported


Doc update.

@sougou I'll squash before submitting, but the first commit is just reformatting the doc (with minor edits), the second one is adding a section.

LGTM


Feature: File input button

<input type="file" /> has always been very hard to style.
I've seen that there is a .custom-file but this shows the filepath.
https://v4-alpha.getbootstrap.com/components/forms/#file-browser
What if you want the same look and feel as a button?
My proposal is to be able to style a file input as a btn.
What do you guys think?
Proof of concept
Check out this plunkr
https://plnkr.co/edit/feW4kk?p=preview
I've tested the button with successful results in:
Chrome 55
Safari 10
Firefox 49
IE Edge
IE 11
IE 10
The code if you don't want to look at the plunkr
<div class="btn btn-default btn-file">
  <input type="file" />
  Upload a file
</div>

.btn-file {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-file input {
  position: absolute;
  top: 0;
  right: 0;
  max-width: 100%;
  min-height: 100%;
  margin: 0;
  opacity: 0;
  transform: translate(-100%, 0) scale(3);
  direction: ltr;
  cursor: pointer;
}

/* Hack for forcing webkit to show a cursor all the time */
.btn-file input::-webkit-file-upload-button {
  cursor: pointer;
}

#21812
/* Hack for forcing webkit to show a cursor all the time */
.btn-file input::-webkit-file-upload-button {
  cursor: pointer;
}

Going to pass on this given we have a custom file input and I don't think further divorcing it from browser default styling is a good idea for us to implement. I'd rather let folks set that kind of custom styling for themselves. Thanks though!


Move MouseInput from TermAdapter to TermInput

Summary of the Pull Request
Move the contents and functionality of MouseInput from TerminalAdapter
to TerminalInput.
References
#545 - VT Mouse Mode (Terminal)
#376 - VT Mouse Mode (ConPty)
Detailed Description of the Pull Request / Additional comments
Pretty straightforward. The MouseInput class was a bit large though so I
split it up into a few files. This should make TerminalInput a bit
easier to manage.

mouseInputState: enable some of the modes for mouse input. All saved
to _mouseInputState.
mouseInput: basically just HandleMouse() and any helper functions

Validation Steps Performed
Tests should still pass.

I was wondering about the merging too. I dunno; did we set a bad precedent with TerminalCore? :smile:

At the same time, if you don't dislike it too much (@zadjii-msft), i guess it consolidates "things about generating VT input" into a single place!

 I dunno; did we set a bad precedent with TerminalCore? 😄

That's exactly what I was looking at... uh oh. But the nice thing now is that all kind of input is consistently in TerminalInput, rather than a random MouseInput object off on the side.
That said, I'll just redirect all calls to terminalMouseInput to go through the input buffer instead. I feel like that's cleaner but both of y'all know the code better so let me know if I'm going down the wrong path here.

@DHowett-MSFT and I investigation findings:

the input sequences are getting added to the input queue but they just stay there
The removed callback would call WakeUpReadersWaitingForData(), whereas the new callback _HandleTerminalInputCallback() does not.

Looks like we need to make the input buffer wake up the reader if it's still asleep. I'll work on a proper fix for this tomorrow morning.

@msftbot make sure @miniksa signs off

Verified that #4859 still works with the newest change.

@msftbot forget everything i just told you


Finalize Arc & azdata display strings

[ ] EULA prompts
[ ] Installation prompts
[ ] Upgrade prompts
[ ] "SQL managed instance - Azure Arc"
[x] "PostgreSQL Hyperscale - Azure Arc"
[ ] Azure Data CLI instead of azdata
[x] Preview title for Arc controller deployment

The tiles on the Deployment hub should continue to show the suffix "(preview)" while we are still in preview, though.

Please fix string in below message:
No Azure ARC controllers are currently connected. Please run the command: 'Connect to Existing Azure Arc Controller' and then try again


Update Composer dependencies (2022-01-25-00-08)

Visual regression test passed!
View the visual regression test report


add node type for cisco 8000

This pull request adds support for dockerized emulation of cisco 8000 product family (e8000). The main changes are:

add node type E8000 to represent e8000 products. I understand that node type will be deprecated in the future. However, we still need the node type to be added, since Ondatra KNE binding does not work without this (will send another pull for Ondatra). We do not use node type for node registration, so we can remove the added node types if Ondatra does not require that.
Add interface mapping for different models of E8000
Add unit tests to test the new changes
Replace the xrd package with Cisco packages that support both node type xrd and e8000.
Add sample kne cluster using e8000 and xrd nodes

Please note that I have already signed the CLA.

Will fix the cla issue and reopn ....


[BUG, MRG] Revisit affine registration

The affine registration of the CT with the MR wasn't working optimally, alignments were slightly off, thanks for reporting @leosunpsy.
So I went back and looked and it looks like the Dipy method was to use the pre-alignment affines as we had at one point. I'm not sure why that wasn't working but it seems to work just fine now.

Did you run tests locally? I'd expect that perhaps some tolerances in tests/test_transforms.py might need to be adjusted, and/or some in tests/test_morph.py and tests/test_source_estimate.py

Did you run tests locally? I'd expect that perhaps some tolerances in tests/test_transforms.py might need to be adjusted, and/or some in tests/test_morph.py and tests/test_source_estimate.py

I forgot which tests would fail so I was running all the tests here before going back and fixing those but I can check those two now.

Ok all the tests should pass now. I changed most of the test_morph back to how it was in 0.24 stable but the SDR morph caused one failed test with test_morph::test_mixed_source_morph. If you want to look and see if that looks okay @larsoner, that would be really helpful.
I will actually check that the ieeg tutorial that uses it runs okay now, I haven't done that yet.

The SDR morph on the tutorial looked terrible so I think we should not use pre-align for the SDR morph, which might also fix the test. I'll try that now.

Ok this should be the best solution. It involved applying the registration before the SDR morph but not on each of the steps which is a bit curious but seems to tick all the boxes for passing the tests. I just touched the ieeg tutorial as well so I'll need to double check that that turns out okay.

Looks like that's the strategy we used originally and in 0.23 -- we should probably backport this as a fix

mne/tests/test_surface.py:351: in test_warp_montage_volume
    assert np.linalg.norm(  # off by less than 1.5 cm
E   AssertionError: assert 0.029795600495524505 < 0.015

mne/tests/test_surface.py:351: in test_warp_montage_volume
    assert np.linalg.norm(  # off by less than 1.5 cm
E   AssertionError: assert 0.029795600495524505 < 0.015

Yeah, it looks off in the tutorial as well, I checked and the affine registration works great but then the SDR misaligns them, looking into it, just a minute

Okay, not only did all the tests pass locally but I was able to increase the threshold of the montage warp to the default as long as zooms=4! All the tests pass locally, it was just a small affine typo, I just had to walk away and come back with fresh eyes.

Thanks @alexrockhill !


Feature: triple-slash directive to reference declarations that file "implements"

Search Terms

implement declaration
Suggestion
I would like to introduce new triple-slash directive:
/// <reference implements="declarations.d.ts">

If you use that directive inside you file it means that it must have the same exports as referenced declaration. In other words - if you created d.ts file out of it, it would be the same as referenced declaration.
Use Cases

Consider example from docs: https://www.typescriptlang.org/docs/handbook/module-resolution.html.
You have virtual directories:
{
  "compilerOptions": {
    "rootDirs": [
      "src/en",
      "src/pl",
      "src/$locale"
    ]
  }
}

src/$locale/messages.d.ts:
export declare const messages: {
  hello: string;
  title: string;
};

src/en/messages.ts:
/// <reference implements="../$locale/messages.d.ts">
export const messages = {
  hello: 'Hello',
  title: 'Homepage',
};

src/pl/messages.ts:
/// <reference implements="/../$locale/messages.d.ts">
export const messages = {
  hello: 'Witaj',
  title: 'Strona domowa',
};

The directive would tell the compiler to check whether the file actually "implements" the declaration and it should produce error if not:
/// <reference implements="../$locale/messages.d.ts">
export const messages = {
  helo: 'Hello', // ERROR: {helo, title} is not compatible with {hello, title}
  title: 'Homepage',
};

Checklist
My suggestion meets these guidelines:

[x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[x] This wouldn't change the runtime behavior of existing JavaScript code
[x] This could be implemented without emitting different JS based on the types of the expressions
[x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
[x] This feature would agree with the rest of TypeScript's Design Goals.

Duplicate #420


Cannot change the way errors are handled in PDI_init

PDI_errhandler can not be called before PDI_init so it always uses the default behaviour

Mentioned in commit 5789bccb0bedcb09d227e42737ccaadb66566c37

This will be required to correctly write tests/test1.c

Mentioned in commit 5cad3f13d1a6f4bcdee678b26cc3bc78dec1b75a

Status changed to closed by commit 5cad3f13d1a6f4bcdee678b26cc3bc78dec1b75a

Mentioned in commit e11f3febef1ffd75ec858bad34be75216f3efb7d

In GitLab by @Roussel-C on Nov 14, 2016, 15:33
Mentioned in commit 43ec133a5cc2c12f4a5b56196ada04b04b27501b


How to integrate into koa2 application？

Can I intergrate easyrtc into koa2 application? And then how to create easyrtc instance?

I don't know what is koa2 unless your provide information.
It's not to me to look for what is the thing you trying to achieve.


Organization Types pop up descriptions

Several of the Organization Types are sharing the same pop up description for BC Corporation. For example Extraprovincial Company, BC Community Contribution Company, Private Act, Foreign Registration, and others.

Where others like Cooperative and General partnership have their own description:

Each Organization Type should have it's own pop up description.

That's OK for now, but we'll have to look into it.  When you return @wadeking98 , please point out where the source of this information can be found (I think it is a spreadsheet?) and we'll ask Dwayne to have BC Registries review the data.

Extra-provincial information is in the same place where the "BC Corporation" info came from:

Please get that meeting going and get this issue resolved.  Please include in the discussion a more generic message separate from BC Organization as the fall back.
Priority for cleanup.


What happened to coverageprocessor.js ?

Issue
I am using jest and ts-jest in my project. I updated to ts-jest 21 and I get the error that coverageprocessor.js can't be found .This is my configuration:

"transform": {
".(ts|tsx)": "/node_modules/ts-jest/preprocessor.js"
},
"testResultsProcessor": "/node_modules/ts-jest/coverageprocessor.js"
I am not sure if I understand correctly, but now with the new version I should delete the "transform" and set mapCoverage to true. But I don't see where I should place mapCoverage, any help ?

It has been a while since that was removed in #200
Here's more info on how to get coverage

Here's one of our tests that you can take a look at to see how it can be done https://github.com/kulshekhar/ts-jest/tree/master/tests/simple


Deprecation message from Symfony Console

After I run composer global update, I'm seeing this:
$ sculpin generate
PHP Deprecated:  \Symfony\Component\Console\Helper\DialogHelper is deprecated since version 2.5 and will be removed in 3.0. Use QuestionHelper instead. in /home/tasso/.composer/vendor/symfony/console/Symfony/Component/Console/Helper/DialogHelper.php on line 14

Deprecated: \Symfony\Component\Console\Helper\DialogHelper is deprecated since version 2.5 and will be removed in 3.0. Use QuestionHelper instead. in /home/tasso/.composer/vendor/symfony/console/Symfony/Component/Console/Helper/DialogHelper.php on line 14
PHP Deprecated:  The "ProgressHelper" class is deprecated since version 2.5 and will be removed in 3.0. Use "ProgressBar" class instead. in /home/tasso/.composer/vendor/symfony/console/Symfony/Component/Console/Helper/ProgressHelper.php on line 17

Deprecated: The "ProgressHelper" class is deprecated since version 2.5 and will be removed in 3.0. Use "ProgressBar" class instead. in /home/tasso/.composer/vendor/symfony/console/Symfony/Component/Console/Helper/ProgressHelper.php on line 17
PHP Deprecated:  The TableHelper class was deprecated in version 2.5 and will be removed in 3.0. Use Symfony\Component\Console\Helper\Table instead. in /home/tasso/.composer/vendor/symfony/console/Symfony/Component/Console/Helper/TableHelper.php on line 38

Deprecated: The TableHelper class was deprecated in version 2.5 and will be removed in 3.0. Use Symfony\Component\Console\Helper\Table instead. in /home/tasso/.composer/vendor/symfony/console/Symfony/Component/Console/Helper/TableHelper.php on line 38
PHP Deprecated:  Definition::setFactoryMethod() is deprecated since version 2.6 and will be removed in 3.0. Use Definition::setFactory() instead. in /home/tasso/.composer/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Definition.php on line 133

Deprecated: Definition::setFactoryMethod() is deprecated since version 2.6 and will be removed in 3.0. Use Definition::setFactory() instead. in /home/tasso/.composer/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Definition.php on line 133
PHP Deprecated:  Definition::setFactoryService() is deprecated since version 2.6 and will be removed in 3.0. Use Definition::setFactory() instead. in /home/tasso/.composer/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Definition.php on line 200

Deprecated: Definition::setFactoryService() is deprecated since version 2.6 and will be removed in 3.0. Use Definition::setFactory() instead. in /home/tasso/.composer/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Definition.php on line 200
PHP Deprecated:  The ability to pass file names to Yaml::parse() was deprecated in 2.7 and will be removed in 3.0. Please, pass the contents of the file instead. in /home/tasso/.composer/vendor/symfony/yaml/Symfony/Component/Yaml/Yaml.php on line 58

Deprecated: The ability to pass file names to Yaml::parse() was deprecated in 2.7 and will be removed in 3.0. Please, pass the contents of the file instead. in /home/tasso/.composer/vendor/symfony/yaml/Symfony/Component/Yaml/Yaml.php on line 58
PHP Deprecated:  The ability to pass file names to Yaml::parse() was deprecated in 2.7 and will be removed in 3.0. Please, pass the contents of the file instead. in /home/tasso/.composer/vendor/symfony/yaml/Symfony/Component/Yaml/Yaml.php on line 58

Deprecated: The ability to pass file names to Yaml::parse() was deprecated in 2.7 and will be removed in 3.0. Please, pass the contents of the file instead. in /home/tasso/.composer/vendor/symfony/yaml/Symfony/Component/Yaml/Yaml.php on line 58
Detected new or updated files
Generating: 100% (126 sources / 0.01 seconds)
Converting: 100% (130 sources / 0.23 seconds)
Formatting: 100% (130 sources / 0.05 seconds)

I'll try to downgrade global Symfony Console (2.7.x-dev), but someone else can have the same problem and I guess it may be important in Sculpin development.

That's a long year! :–)


Switching debug profiles causes a build failure with no further information

Latest D15Rel build.

New .net core console application
r-click on project node and open properties
navigate to the Debug tab and create a new profile
Change the launch from executable to Project
Save
Build - builds fine
In the debug dropdown change profiles to the new one
Build - builds fine
Switch the profile to the original one
Build - It fails with no further information.
1>------ Build started: Project: ConsoleApp4, Configuration: Debug Any CPU ------
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

The diagnostic output shows nothing of interest from msbuild.
BuildFailureOutput.txt

Likely the same as https://github.com/Microsoft/msbuild/issues/1526

@rainersigwald - does this look similar?

Yes it does. Trying with my fix from https://github.com/Microsoft/msbuild/pull/1547.

I can walk through all of those steps using that fix successfully.

Thanks for verifying @rainersigwald - closing as a dupe of https://github.com/Microsoft/msbuild/issues/1526


update: Add manual action to consumer handler & expose function for Publishing with deferred confirmation

I would want to spin up goroutines to do some other processing on the message and use the amqp.Delivery object to send acknowledgements later from the routine. Currently the consumer handler expects a compulsory type which doesn't let us do any processing from a routine.

Please re-pull to trigger a new CI flow! Thanks

@wagslane done!

Exposed the function from the base amqp llibrary to publish with deferred confirms. This is useful in correlating published messages with publisher confirms via NotifyPublish()

@wagslane sorry, you must be busy, but does this look good to merge? Wanted to switch our dependency from our fork to this main repo. Would be great if you can get it merged


Inline aliases inside of IIFEs

Inline any constant alias within a scope that is executed exactly once. Enables aliases inlining in IIFEs created by module rewriting (require.ensure calls).

This change is

What exactly is the code pattern that needs to be typechecked? I've been hoping to get rid of inlineAliases by doing file-local rewriting of modules instead.

Yeah I'm not happy with this either. Here's the code pattern:
(function() {
  const Foo = module$foo;
  new Foo();
})();

This code pattern can occur when:
require.ensure(['./foo'], function(require) {
  const Foo = require('./foo');
  new Foo();
});

Hmm, I think that the require module rewriting should inline the imports to end up with:
(function() {
  new module$foo();
})();

rather than
(function() {
  const Foo = module$foo;
  new Foo();
})();

That's at least how goog.module rewriting works.

That makes much more sense. I'll work towards that then. It'll need to be changed for both ES6 and commonjs modules.

@blickly I found a more difficult case:
Foo module:
module.exports = {
  Foo
};

(function() {
  const Foo = require('./foo').Foo;
  new Foo();
})()

It's this level of unwinding that makes ES6 and CommonJS modules more difficult. However, perhaps we could have an InlineModuleImports pass right after module rewriting that ONLY affected modules? Then we could run it in all scopes as well.

We've recently disallowed this syntax for goog.module in favor of const {Foo} = require('./foo'); which more closely resembles the ES6 import syntax.
But either way, yes, it's a little more work to inline a name reference with a qualified name. Would reusing the safeSetMaybeQualifiedString help?
https://github.com/google/closure-compiler/blob/master/src/com/google/javascript/jscomp/ClosureRewriteModule.java#L1320-1333

And if you prefer to make a separate pass, that seems reasonable too. The important thing from my perspective is that the rewriting is local on a per-file level rather than global like inlineAliases.  (For reference, the goog.module rewriting is a single CompilerPass but does two passes over the AST)


Add service authentication support for starter kit + kubernetes

This PR authenticates with VCAP_SERVICES (cloud foundry) first, and then falls back on the environment variables passed to the application in a starter kit + kubernetes deployment.

@dolph can you make this two PRs? I can merge the first set of changes to the app without having to change the starterkit tag

@stevemart removed the second commit, and revised the PR title & PR message to reflect accordingly.


Support for Hamming distance (l0 norm)

Currently, Lp distance when using p=0 is broken. It tries to calculate 1/0. I have implemented Hamming Distance  (l0 norm) that counts the number of positions which have different values.
Also, I changed the distance tests to increase code readability and norm symmetry/homogeneity checks.

Codecov Report

Merging #233 (1adcb88) into master (870107f) will increase coverage by 0.08%.
The diff coverage is 72.50%.

:exclamation: Current head 1adcb88 differs from pull request most recent head f3f9a3b. Consider uploading reports for the commit f3f9a3b to get more accurate results

@@            Coverage Diff             @@
##           master     #233      +/-   ##
==========================================
+ Coverage   55.37%   55.45%   +0.08%
==========================================
  Files          96       96
  Lines        8918     8955      +37
==========================================
+ Hits         4938     4966      +28
- Misses       3980     3989       +9

Impacted Files
Coverage Δ

algorithms/linfa-nn/src/distance.rs
48.38% <72.50%> (+11.72%)
:arrow_up:

algorithms/linfa-nn/src/lib.rs
50.00% <0.00%> (-7.15%)
:arrow_down:

algorithms/linfa-nn/src/linear.rs
43.75% <0.00%> (-1.71%)
:arrow_down:

algorithms/linfa-kernel/src/lib.rs
60.00% <0.00%> (-0.22%)
:arrow_down:

algorithms/linfa-nn/tests/nn.rs
78.04% <0.00%> (ø)

algorithms/linfa-logistic/src/lib.rs
69.55% <0.00%> (ø)

algorithms/linfa-pls/src/pls_generic.rs
69.64% <0.00%> (ø)

algorithms/linfa-hierarchical/src/lib.rs
41.66% <0.00%> (ø)

algorithms/linfa-svm/src/classification.rs
60.11% <0.00%> (ø)

src/dataset/mod.rs
88.96% <0.00%> (+0.34%)
:arrow_up:

... and 4 more

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 870107f...f3f9a3b. Read the comment docs.

IDK if it should be referred to as L0 norm, since the Wiki article states that Hamming distance is not technically a "real" norm. I think it'd be better to rename it to something like Hamming and leave the 0-case for Lp distance broken, since we don't technically support the real "L0" norm.


Xilinx ISE 14.7 synthesis

A few changes are needed for successful synthesis by the legacy Xilinx ISE toolchain:

xst incorrectly implements the register file with ENABLE_REGS_DUALPORT = 1, but ENABLE_REGS_DUALPORT = 0 works fine
xst doesn't like memory in an always @* combinational block
xst has some problems with parameterized macros

I did look at issues #2 and #25, and I'm a little puzzled as to how synthesis even completed, unless they made the same changes to the RTL as I did.  I haven't seen problems with the PC register once the design is in runnable shape.
Attached is an example project targeting the Spartan 3E Starter board.  It contains a picorv32 core with the plain memory interface, some block RAM, a UART, and some test software in C.
I'm just putting this out there in the hope it will make picorv32 more useful for older Spartan-6 or Spartan-3E designs; the main repository probably doesn't want to deal with irksome `ifdef OLD_XILINX stuff.  I have some Spartan-6 hardware for which I'd like to use picorv32 (currently using picoblaze).
picorv32-Xilinx-ISE.tar.gz

@pmonta This explains a lot. I thought I had a bug in my cache implementation. Eventually I reduced the problem to the picorv32, and that's when I did a Google search that found this issue. Thanks for providing your fixes and the other files!
(I'm using a Papilio Pro, with a Xilinx Spartan 6 LX9. Too bad the Spartan 6 isn't supported by the newer Xilinx tools, and they have stopped maintaining the old ones...)

you shoud do this to prevent cpuregs to be synthesised to block RAM
(* ram_style = "distributed" *)
reg [31:0] cpuregs [0:regfile_size-1];

For always @* try using xst new parser


specify quality format with redtube doesn't work...

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like this: [x])
Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.09.02. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

[x] I've verified and I assure that I'm running youtube-dl 2017.09.02

Before submitting an issue make sure you have:

[x] At least skimmed through the README, most notably the FAQ and BUGS sections
[x] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[x] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj']
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
[debug] youtube-dl version 2017.09.02
[debug] Python version 2.7.11 - Windows-2003Server-5.2.3790-SP2
[debug] exe versions: ffmpeg N-75573-g1d0487f, ffprobe N-75573-g1d0487f, rtmpdump 2.4
[debug] Proxy map: {}
...
<end of log>

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Single video: https://www.youtube.com/watch?v=BaW_jenozKc
Single video: https://youtu.be/BaW_jenozKc
Playlist: https://www.youtube.com/playlist?list=PL4lCao7KL_QFVb7Iudeipvc2BCavECqzc

Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.

Description of your issue, suggested solution and other information
Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
i use this -f "best[height<=480]" on youtube/dailymotion/vimeo etc & it work but for redtube this doesn't work even if the video have 480p/240p, i only get 720p using -f "best[height<=480]/best"...
...
eg, http://www.redtube.com/1513831

Refer to https://github.com/rg3/youtube-dl/issues/14121#issuecomment-327207460


Navbar clickBack event doesn't work.

Framework7 version: 5.5.3
Svelte version: 3.18.1
Platform and Target: Cordova App Android 9, Chrome browser
Live Link or JSFiddle/CodeSandbox: CodeSandbox

Describe the bug
I have code:
<Navbar title="AboutTest" backLink="Back"  on:clickBack={() => { console.log("test") }}></Navbar>

I want to run my function when user click on back link in Navbar, but it doesn't work.
To Reproduce
Steps to reproduce the behavior:
Into CodeSandbox I added my code into Navbar of About page.

In CodeSandbox go to About page
Click to back link in Navbar

Expected behavior
I expect that my function: on:clickBack={() => {console.log("test")}} will be run and into console write test output log.
Actual Behavior
Nothing. Only go back but my function is not lounched.
Screenshots

Hello after upgrade to framework7 version: 5.7.0
I still cannot handle clickBack or backClick events..
My code is:
  <Navbar backLink on:clickBack={() => { alert("test") }} title="test title">
    <slot name="subnavbar"> </slot>
    <NavRight>
      <Link popoverOpen=".popover-menu">
        <Icon material="reorder" />
      </Link>
    </NavRight>
  </Navbar>
  <Menu name="popover-menu" />

The commit d822832 solved another bug. The onClickBack and onBackClick are not triggering at all. I am using react and have tested this on version 5.1.3 and on 5.7.1 and it is not working in ether one of the two.
This is my code:
 <Navbar
        title="Settings"
        backLink="Back"
        onClickBack={() => this.props.updateAccount()}
 />

Splitting it in to NavLeft and NavTitle does not work ether..
Also I think this worked in version 4 as I was using this feature in an older app..

This what works perfectly for me in latest F7-React:
<Navbar title="About" backLink="Framework7" onClickBack={() => alert('hello world')}>

And in latest F7-Svelte
<Navbar title="About" backLink="Framework7" on:clickBack={() => { alert("test") }}>

If it is still doesn't work for you, create new issue and provide link to JSFiddle or similar with live example

@nolimits4web here you can download test project: https://github.com/Applemann/Backlink-bug
where is latest version framework7 and svelte and clickBack event don't run function alert("test"):
https://github.com/Applemann/Backlink-bug/blob/master/src/components/about.svelte
when you click to back link button in navbar.
I tested it in Android 9 and Chromium Version 80.0.3987.163

@nolimits4web did you try my test project from my last comment or do you will open this issue?
I would like for don't forget this issue.

Hello I have the same issue.

@Applemann any reason why your repo uses different version of F7 and F7-Svelte, they should be the same and latest, all works there!

@nolimits4web Yes I didn't run: npm install framework7-svelte
because I thought that command: npm install framework7 update all framework7 packages..
It's my mistake. I'm sorry..
Now after run: npm install svelte framework7 framework7-svelte
All is OK. Thank you very much ;)


Hold January Style Council meeting and take follow up actions/publish

What
Hold meeting, communicate outcomes and take follow up actions, including publishing any changes
Dependent on
Preparing for the meeting: #792
Done when

[x] Meeting held
[x] Meeting notes shared on NHS.UK content channel
[x]  Meeting notes written up and signed off by clinicians
[ ]  Amendments made to style guide and published
[ ] Amendments to PDFs page published - now in a separate ticket: https://github.com/nhsuk/nhsuk-service-manual/issues/963
[ ]  GitHub updated

Minutes shared in NHS.UK Slack content channel.

Final call in Slack for comments on write up of meeting and latest version of PDF guidance. I'll send to clinicians on Monday.

Sent to clinicians for approval.

Meeting notes approved. Waiting for feedback on PDF.
In the meantime, I've made the following changes:

Added explanation and more examples to the section on hyphens and dashes
Removed the readability tools page and explained that we do not recommend them on our health literacy page. Removed 2 broken links from health literacy page

These are covered in this PR: https://github.com/nhsuk/nhsuk-service-manual/pull/962
I've added the above to the What's new page, along with this note:

Amended the site map page to bring it into line with the site map entry in the style guide.

I need a content designer to 2i the changes. I'm going to see what the best way is to do this. See https://github.com/nhsuk/service-manual-internal/issues/58

Ready for publication. Update GitHub issues when published.


fix(client): wrap all subscription errors in QueryResults

Closes #755 by wrapping all errors thrown in subscribe

:tada: This PR is included in version 4.0.0-beta.5 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

@all-contributors please add micimize for ideas, doc, content, code, bug, example, infra, maintenance, projectManagement, question, review, test, tutorial

:tada: This PR is included in version 4.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 4.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Consider offsetting scatter plot markers when they overlap

This may not be feasible without impacting the accuracy of the graph. Are there any other solutions to this problem?

I was thinking of a "jitter" or slight offset on the x-axis (not the y-axis), so accuracy shouldn't be an issue, but I couldn't see an easy way to do this with Plotly right now (would need to spend some more quality time searching issues, but I found a few posts mentioning "not implemented").

I dug into this a bit and found what is probably the same information Bruce found, here:
https://community.plotly.com/t/add-jitter-to-a-scatter-plot-using-plotly-js/20897
I found a workaround that pulls off a similar effect using invisible box plots, here:
https://stackoverflow.com/a/65065005
Here is my attempt to use this workaround for a precipitation chart:

I don't think this workaround is going to work for us because:

We lose the ability to show different marker symbols for each model
The models/scenarios show up as boxplot outlines in the legend
The historical box plot gets squished horizontally
This seems like a fairly hacky solution that may lead to trouble later down the road

Agree, this was a great try but it's just not going to work great.  Closing!


Build a new dashboard API

Add the dashboard API to the OpenAPI spec
Build the dashboard controller
Update the OpenAPI spec to match the API (examples, field names, etc)

Needs #95 merged first.

Just a note, when I rebased, I overwrote your changes to openapi.yaml because I had co-ordinated all the IDs, and I didn't feel like tracking all of those down again

LGTM, thoughts on having a Delete endpoint for dashboards? We have one for widget configs, so it might make sense.

I'll add that to the dashboard UI branch.


Add Mattermost

Mattermost is an open source, self-hosted Slack-alternative.
Adding a new cask

[x] Checked there aren’t open pull requests for the same cask.
[x] Checked there aren’t closed issues where that cask was already refused.
[x] When naming the cask, followed the token reference.
[x] Commit message includes cask’s name.
[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.
[x] brew cask install {{cask_file}} worked successfully.
[x] brew cask uninstall {{cask_file}} worked successfully.

Thank you for the contribution. It needed some fixes, so they were made in 94143c5ac7f69088bc5ea5767b8741c66d9a397f. Your contribution is still included (and still credited to you), with the appropriate modifications. Please feel free to ask about any of the changes.


solc package fails during testing phase post build

Describe the bug
solc package installation fails post build during testing phase
To Reproduce
Steps to reproduce the behavior:

Attempt to install solc package

Expected behavior
Install package
Additional context
Ubuntu 20.10
Notify maintainers
@dbrock @akru @lionello @sifmelcara
Metadata
0%   10   20   30   40   50   60   70   80   90   100%
|----|----|----|----|----|----|----|----|----|----|
***********/solidity/test/boostTest.cpp(114): error: in "yulOptimizerTests/reasoningBasedSimplifier/addmod": Test expectation mismatch.
Expected result:
  step: reasoningBasedSimplifier

  {
      let x := calldataload(0)
      let y := calldataload(32)
      let z := calldataload(64)
      let result := addmod(x, y, z)
      if 0 { }
      if and(and(lt(x, 1000), lt(y, 1000)), lt(z, 1000)) { if 1 { sstore(0, 9) } }
      if and(and(gt(x, sub(0, 5)), gt(y, sub(0, 2))), eq(z, 3)) { if 0 { } }
  }
Obtained result:
  step: reasoningBasedSimplifier

  {
      let x := calldataload(0)
      let y := calldataload(32)
      let z := calldataload(64)
      let result := addmod(x, y, z)
      if 0 { }
      if and(and(lt(x, 1000), lt(y, 1000)), lt(z, 1000))
      {
          if eq(result, mod(add(x, y), z)) { sstore(0, 9) }
      }
      if and(and(gt(x, sub(0, 5)), gt(y, sub(0, 2))), eq(z, 3)) { if 0 { } }
  }

****************************************

*** 1 failure is detected in the test module "SolidityTests"

For the record: the component being tested there, i.e. the "ReasoningBasedSimplifier", is a highly experimental optimizer stage that is not enabled unless it is explicitly requested, partly because it is not always deterministic in its current state (see https://docs.soliditylang.org/en/v0.8.4/yul.html?highlight=ReasoningBasedSimplifier#optimization-step-sequence). This particular test is known to sometimes produce differing results even with a matching version of Z3.
So this test potentially failing in the test suite is indeed a known issue and nothing to worry about.

Is it possible to skip experimental tests during the post compilation check? as this is currently failing the entire build and therefore the package cannot be installed

FYI: we have removed the offending test case, so hopefully the new release we released right now, will no longer have this problem and won't need any workaround like that anymore.


K.Dᴀᴠɪs: Watch (+1)?518\W{0,3}504\W{0,3}9376

K.Dᴀᴠɪs requests the watch of the watch_keyword (\+1)?518\W{0,3}504\W{0,3}9376. See the Metasmoke search here and the Stack Exchange search here.

(+1)?518\W{0,3}504\W{0,3}9376 has been seen in 0 true positives, 0 false positives, and 0 NAAs.

Coverage remained the same at 65.093% when pulling b0d90699863a4a03a5508f5dc6af777eb6a70e25 on auto-blacklist-1520465131.7699018 into 12a0852e6a4cedb04013a2824fde6c166367400c on master.

We can change this simply to be 518\W{0,3}504\W{0,3}9376. Remove the group at the beginning, not necessary


Add perl-dancer-application and perl-dancer-mysql-application

[test]

[test]

Let's tests on last round.
[test]


Support for Obsidian Chat View

Currently, this plugin displays chat view code blocks as normal code blocks. It would be great for this plugin to support Obsidian Chat View. This could be used to emulate a real chat dialogue and with many other uses.

Since reveal.js does not have a chat component, it would mean that I would have to redevelop large parts of the chat-view plugin. At the moment I don't see the effort for the benefit, so the topic is not a high priority for me

Added to Roadmap (https://github.com/MSzturc/obsidian-advanced-slides/projects/1#card-81812405)


Error Handling

handle course code not found and show error messages (while still building ics)

也許可以 append 詳細資料(which is expandable) 到 textarea 下方

related: #16


DOC: Explains how to upgrade the software to newer releases.

And how to track the release version of the code.

seems fine to me.


Login error

I try to login with my credentials as they have always been
I get an error message: "Invalid username or password"
I choose "Forgot password?" and follow the instructions: I click the link in the mail and re-set the password. For this moment, I am logged in.
I log out
I log in with my username and the new password
I get the error message: "Invalid username or password" again

DOD: Having re-set a password, the error message does not occur again.
EDIT: occured on phaeton-dev

your account "boeselager" is not enabled. This might be the reason, why you cannot log on. The error seems to be the fact that you were logged in to the system through the reset-password-process even though your account is disabled.
I set the account to enabled - that should enable you to log on again.

I'm able to log in again. Thanks for solving. Closing.


Unable to run kivy on raspberry pi with

HI all,
i get the following when trying trying to run kivy on the raspberry pi with a texy 2.8" colour lcd with touch screen.  I have followed the instructions http://kivy.org/docs/installation/installation-rpi.html exactly and all seem to build ok with no errors.
I have tried the dev build and the global build options.
I have tried running from the shell command line and from an xterm in X - same error.
Any ideas?  This is raspbian latest everything with texy ammendments found here http://www.raspberrypi.org/forums/viewtopic.php?f=45&t=64993 for the touch screen.
INFO   ] [Logger      ] Record log in /home/pi/.kivy/logs/kivy_14-04-26_2.txt
[INFO   ] Kivy v1.8.1-dev
[INFO   ] [Python      ] v2.7.3 (default, Mar 18 2014, 05:13:23)
[GCC 4.6.3]
[INFO   ] [Factory     ] 157 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_pygame, img_gif (img_pil ignored)
[ERROR  ]
Traceback (most recent call last):
  File "/home/pi/kivy/kivy/lang.py", line 1186, in execute_directives
    mod = __import__('.'.join(package.split('.')[:-1]))
  File "/home/pi/kivy/kivy/extras/highlight.py", line 3, in <module>
    from pygments.lexer import RegexLexer, bygroups, using
ImportError: No module named pygments.lexer
 Traceback (most recent call last):
   File "main.py", line 212, in <module>
     ShowcaseApp().run()
   File "/home/pi/kivy/kivy/app.py", line 773, in run
     self.load_kv(filename=self.kv_file)
   File "/home/pi/kivy/kivy/app.py", line 593, in load_kv
     root = Builder.load_file(rfilename)
   File "/home/pi/kivy/kivy/lang.py", line 1546, in load_file
     return self.load_string(data, **kwargs)
   File "/home/pi/kivy/kivy/lang.py", line 1593, in load_string
     parser = Parser(content=string, filename=fn)
   File "/home/pi/kivy/kivy/lang.py", line 1122, in __init__
     self.parse(content)
   File "/home/pi/kivy/kivy/lang.py", line 1220, in parse
     self.execute_directives()
   File "/home/pi/kivy/kivy/lang.py", line 1197, in execute_directives
     package)
 kivy.lang.ParserException: Parser: File "./showcase.kv", line 2:
 ...
       1:#:kivy 1.8.0
 >>    2:#:import KivyLexer kivy.extras.highlight.KivyLexer
       3:#:import Factory kivy.factory.Factory
       4:
 ...
 Unable to import package 'kivy.extras.highlight.KivyLexer'

regards
Shifters

Thanks.

To get it to work:
buildozer.spec:
requirements = kivy,pil,sqlite3,pygments

Shouldn't this dependency be actually listed as such? I find it rather annoying that following the official guide on installing Kivy on the RPi you have to dig into the issues on GitHub to find a solution for this problem. After all the demos should be the ones that run without any issues WITH the things that are listed as requirements to get Kivy installed on the system. Please consider adding at least a warning if the required packages for the showcase are not met.


fixed requirements.yml, .gitignore, spellcheck

The requirements.yml file that we use had a large number of unrelated packages, and included version specifications that made it impossible to run on a non-windows machine. I stripped this file down to the bare minimum.
.gitignore did not include checkpoint and cache directories which are frequently created by jupyter. These should not be on giithub, so I added them to the gitignore.
I also fixed one spelling mistake in utils (propogate ==> propagate)

Thanks Luke!


Windows unexpected or badly formatted, MacOS bad protocol version

version: 0.2.12
We're currently facing this issue  https://github.com/rustdesk/rustdesk-server-pro/issues/417
It's the same to https://github.com/seanmonstar/reqwest/issues/2004 and https://github.com/seanmonstar/reqwest/discussions/2411
Sample code
use native_tls::TlsConnector;
use std::io::{Read, Write};
use std::net::TcpStream;

fn main() {
    let connector = TlsConnector::new().unwrap();

    let stream = TcpStream::connect("test.com:443").unwrap();
    let mut stream = connector.connect("test.com", stream).unwrap();

    stream.write_all(b"GET / HTTP/1.0\r\n\r\n").unwrap();
    let mut res = vec![];
    stream.read_to_end(&mut res).unwrap();
    println!("{}", String::from_utf8_lossy(&res));
}

Output
Trace log on Windows
called `Result::unwrap()` on an `Err` value: Failure(Os { code: -2146893018, kind: Uncategorized, message: "The message received was unexpected or badly formatted." })

Trace log on MacOS
called `Result::unwrap()` on an `Err` value: Failure(Error { code: -9836, message: "bad protocol version" })

Curl -vv
* Connected to test.com (<IP_ADDRESS>) port 443 (#0)
* ALPN: offers h2,http/1.1
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
*  CAfile: D:/Program Files/Git/mingw64/etc/ssl/certs/ca-bundle.crt
*  CApath: none
{ [5 bytes data]
* TLSv1.3 (IN), TLS handshake, Server hello (2):
{ [122 bytes data]
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
{ [15 bytes data]
* TLSv1.3 (IN), TLS handshake, Certificate (11):
{ [2838 bytes data]
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
{ [520 bytes data]
* TLSv1.3 (IN), TLS handshake, Finished (20):
{ [36 bytes data]
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
} [1 bytes data]
* TLSv1.3 (OUT), TLS handshake, Finished (20):
} [36 bytes data]
* SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256
* ALPN: server accepted h2
* Server certificate:
*  subject: CN=test.com
*  start date: Oct 15 13:29:24 2024 GMT
*  expire date: Jan 13 13:29:23 2025 GMT
*  subjectAltName: host "test.com" matched cert's "*.test.com"
*  issuer: C=US; O=Let's Encrypt; CN=R10
*  SSL certificate verify ok.
} [5 bytes data]
* using HTTP/2
* h2h3 [:method: GET]
* h2h3 [:path: /api/oidc/auth]
* h2h3 [:scheme: https]
* h2h3 [:authority: test.com]
* h2h3 [user-agent: curl/7.88.1]
* h2h3 [accept: */*]
* Using Stream ID: 1 (easy handle 0x1f41c451480)
} [5 bytes data]
> GET /api/oidc/auth HTTP/2
> Host: test.com
> user-agent: curl/7.88.1
> accept: */*
>
{ [5 bytes data]
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [122 bytes data]
< HTTP/2 405
< allow: POST
< date: Wed, 16 Oct 2024 03:38:35 GMT
< content-length: 0

The most possible reason. https://github.com/rustdesk/rustdesk-server-pro/issues/417#issuecomment-2415843704

https://github.com/rustdesk/rustdesk-server-pro/issues/417#issuecomment-2436798604
Hi, sorry to bother, but is there any progress?


Fix: failed to connect to github when run 'install.sh'

Replace protocol https with git to let install.sh work in an environment where the HTTPS/SSL connection cannot be available somehow.
==== how to retrigger
bash-3.2# GIT_CURL_VERBOSE=1 GIT_TRACE=1 git -c
advice.detachedHead=false clone https://github.com/creationix/nvm.git -b
v0.34.0 --depth=1
21:49:01.676517 git.c:419               trace: built-in: git clone
https://github.com/creationix/nvm.git -b v0.34.0 --depth=1
Cloning into 'nvm'...
21:49:01.678041 run-command.c:643       trace: run_command:
git-remote-https origin https://github.com/creationix/nvm.git
warning: Protocol restrictions not supported with cURL < 7.19.4
* Couldn't find host github.com in the .netrc file; using defaults
*   Trying <IP_ADDRESS>...
* TCP_NODELAY set
* Connected to github.com (<IP_ADDRESS>) port 443 (#0)
* Cipher selection:
* ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
*   CAfile: none
  CApath: /etc/ssl/certs/
* OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
* Closing connection 0
fatal: unable to access 'https://github.com/creationix/nvm.git/':
OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

==== environment
bash-3.2# git --version
git version 2.21.0
bash-3.2# curl --version
curl 7.64.1 (x86_64-pc-linux-gnu) libcurl/7.64.1 OpenSSL/0.9.7m
zlib/1.2.3
Release-Date: 2019-03-27
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps
pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS HTTPS-proxy IPv6 Largefile libz NTLM NTLM_WB SSL
UnixSockets

==== Refer
https://github.com/angular/angular-phonecat/issues/212

Hi ljharb,
I have mentioned in the commit message.
The issue happened after 'chroot'. no ssh key there and need not provide ssh key.  nvm should not assume the user should always have ssh.

Why would you need an ssh key for https? Any environment that can't make HTTPS/SSL connections is utterly broken, if that's what you're implying.

Do you mean curl need to provide HTTPS/SSL connections?
Please see 'Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps' in my commit message.

The patched version with git protocol works well now.
May I know why not use git protocol?

Absolutely, curl needs to be able to connect with SSL. I see that "https" is in "Protocols" so i'm not clear on what's not already working.
Because the git protocol only makes sense when used with git - when used with curl, the only protocol that should be used here is https.

about what's not already working
bash-3.2# curl -k  -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13226  100 13226    0     0   1308      0  0:00:10  0:00:10 --:--:--  3125
=> Downloading nvm from git to '/home/jenkins/.nvm'
=> Cloning into '/home/jenkins/.nvm'...
warning: Protocol restrictions not supported with cURL < 7.19.4
fatal: unable to access 'https://github.com/creationix/nvm.git/': OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
Failed to clone nvm repo. Please report this!

I agree git protocol cannot resolve the nvm install issue. still need check the curl why it does not support SSL connect.
Any help will be appreciated.
I am planning  reinstall the curl

it kind of looks like your system doesn’t have OpenSSL installed

I have openssl
bash-3.2# openssl version -a
OpenSSL 0.9.7m 23 Feb 2007
built on: Wed Jan 13 14:52:56 PST 2010
platform: linux-elf
options:  bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long) blowfish(idx)
compiler: gcc -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DOPENSSL_NO_HW -DOPENSSL_NO_MDC2 -DOPENSSL_NO_RC2 -DOPENSSL_NO_RC5 -DOPENSSL_NO_IDEA -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM
OPENSSLDIR: "/etc/ssl"

let me upgrade it to a new version. Thank you, @ljharb

Sounds like this can be closed?

please give me some time, I will update with the result.

bash-3.2# nvm install 10.15.3
Version '10.15.3' not found - try `nvm ls-remote` to browse available versions.
bash-3.2# mvn ls-remote
OpenJDK 64-Bit Server VM warning: Can't detect initial thread stack location - find_vma failed

any hints?

it is not stable
second time to run and show
bash-3.2# nvm install 10.15.3
Version '10.15.3' not found - try `nvm ls-remote` to browse available versions.
bash-3.2# nvm ls-remote
            N/A
bash-3.2#

$ sudo chroot . /bin/sh /home/bzu/.nvm/bash_completion
/home/bzu/.nvm/bash_completion: line 6: return: can only `return' from a function or sourced script

$ sudo chroot . /bin/bash /home/bzu/.nvm/nvm.sh
/usr/bin/env: node: No such file or directory
sudo chroot . /bin/ls -l /home/bzu/.nvm/
total 208
drwxrwxrwx 3 root root   4096 2019-04-17 23:09 alias
-rwxrwxrwx 1 root root   2122 2019-04-17 23:09 bash_completion
-rwxrwxrwx 1 root root   1057 2019-04-17 23:09 CONTRIBUTING.md
-rwxrwxrwx 1 root root   4011 2019-04-17 23:09 Dockerfile
-rwxrwxrwx 1 root root  13226 2019-04-17 23:09 install.sh
-rwxrwxrwx 1 root root   1078 2019-04-17 23:09 LICENSE.md
-rwxrwxrwx 1 root root   5364 2019-04-17 23:09 Makefile
-rwxrwxrwx 1 root root    344 2019-04-17 23:09 nvm-exec
-rwxrwxrwx 1 root root<PHONE_NUMBER>-04-17 23:09 nvm.sh
-rwxrwxrwx 1 root root   2016 2019-04-17 23:09 package.json
-rwxrwxrwx 1 root root  28679 2019-04-17 23:09 README.md
-rwxrwxrwx 1 root root    910 2019-04-17 23:09 ROADMAP.md
drwxrwxrwx 9 root root   4096 2019-04-17 21:56 test
-rwxrwxrwx 1 root root   2206 2019-04-17 23:09 update_test_mocks.sh
drwxrwxrwx 3 root root   4096 2019-04-17 23:09 versions

strange behavior

This topic can be closed.  I think the chroot jail is wrong somewhere.
Thank you @ljharb

In the future, it may be better to discuss on an issue before making a PR.


Update on recovery issue

It seems perhaps the description was not submitted?

No update on the issue, closing it


NancyContext.CurrentUser returns null when making http POST request [Demo.Authentication.Stateless.Website]

most of  the code just copy the  project of Nancy.Demo.Authentication.Stateless.Website
the only difference is  changing GET into POST , then the code below throws exception when making http POST request.
namespace Nancy.Demo.Authentication.Stateless
{
    using Nancy.Demo.Authentication.Stateless.Models;
    using Nancy.Security;

    public class SecureModule : NancyModule
    {
        //by this time, the api key should have already been pulled out of our querystring
        //and, using the api key, an identity assigned to our NancyContext
        public SecureModule()
        {
            this.RequiresAuthentication();

           Post["secure"] = x =>
            {
                // exception throw
                // Nancy.RequestExecutionException: Oh noes! ---> System.NullReferenceException:
                var identity = (DemoUserIdentity)this.Context.CurrentUser;

                //return the secure information in a json response
                var userModel = new UserModel(identity.UserName);
                return this.Response.AsJson(new
                {
                    SecureContent = "here's some secure content that you can only see if you provide a correct apiKey",
                    User = identity.UserName
                });
            };
        }
    }
}

If you go to the StatelessAuthBootstrapper.cs you can see that code:
var configuration =
  new StatelessAuthenticationConfiguration(nancyContext =>
  {
    //for now, we will pull the apiKey from the querystring,
    //but you can pull it from any part of the NancyContext
    var apiKey = (string) nancyContext.Request.Query.ApiKey.Value;

    //get the user identity however you choose to (for now, using a static class/method)
    return UserDatabase.GetUserFromApiKey(apiKey);
  });

So you just need to pass your apiKey through query string like that:
$.ajax({
  type: 'POST',
  url: 'restapi/secure?ApiKey=' + ApiToken.Get().Key,
  success: function(s) {
    console.log('success');
    console.log(s);
  },
  dataType: "json"
});

If either of you want to send a PR for that area it would be greatly appreciated!

Closed by #2312


The text  in the contenteditable text box don't came back in with the real line-breaks

Setup
Browser:  Chrome 101.0.4951.41
Editor: Emacs  28.1
Description
If the content in the contenteditable text box is as follows in https://ghosttext.fregante.com/test.
(1) This is a contenteditable div
(2) abc
(3) 123

When I click on GhostText, and go to emacs interface. the text in emacs buffer comes back like this:
(1) This is a contenteditable div(2) abc(3) 123

The text don't came back in with the real line-breaks. How can I solve this problem?

GhostText doesn't do content conversion. The content of that contentEditable are divs so the editor receives divs.


pgsql findColumns execute too long time

What steps will reproduce the problem?
when use ActiveDataProvider, it will execute yii\db\pgsql\Schema->findColumns() method, and the sql in this mehod execute more than 250ms。

What is the expected result?
how to avoid this slow operator?
What do you get instead?
Additional info

Q
A

Yii version
2.0.12

PHP version
5.6

Operating system
centos

What's your pgsql version?

In production you can enable cache for DB schema.

Not enough info to reproduce. Closing.


[T4A4][F09-B4] Toni Miharja

(Use class level members) Changed the Parse Method  to be static

Ready for review

@tmiharja Some comments added. Please close the PR after reading comments. Good job! :)