Introduce InsecureSkipVerify for RegistryMirrorConfiguration across all providers

What would you like to be added:
Follow up on #1637 where we introduced InsecureSkipVerify only for snow provider. We shall support this option for all providers and update docs accordingly.
Why is this needed:
It's a fairly common use case to skips the registry certificate verification for isolated testing or in a tightly controlled, air-gapped environment.

Easy docs for setting up registry with self-signed certs: https://docs.docker.com/registry/insecure/


VS tsserver crash in openExternalProjects: Error processing request. Debug Failure. False expression.

New in 3.7
This LS crash is the current top hitter in Visual Studio. I have not found a corresponding auto-filed bug, which implies it's not impacting VS Code.
Seen in Visual Studio versions: ["16.5.29521.150","16.5.29504.125","16.4.29519.181","16.4.29519.161","16.4.29411.138","16.3.29503.13","16.3.29519.87","16.3.29411.108","16.3.29326.143","16.3.29509.3"]
TypeScript version: ["3.7.2","3.7.1-rc","3.7.0-beta","3.7.3"]
Command: openExternalProjects
Message: Error processing request. Debug Failure. False expression.
Stack trace:
declareSymbol(tsserver.js:29174:22)
declareSourceFileMember(tsserver.js:30473:19)
declareSymbolAndAddToSymbolTable(tsserver.js:30420:28)
bindThisPropertyAssignment(tsserver.js:31334:25)
bindWorker(tsserver.js:30985:29)
bind(tsserver.js:30867:13)
visitNode(tsserver.js:17584:24)
Object.forEachChild(tsserver.js:17998:21)
bindEachChild(tsserver.js:29481:16)
bindChildrenWorker(tsserver.js:29576:21)
bindChildren(tsserver.js:29451:17)
bind(tsserver.js:30878:21)
bindEach(tsserver.js:29473:21)
visitNodes(tsserver.js:17589:24)
Object.forEachChild(tsserver.js:17978:21)
bindEachChild(tsserver.js:29481:16)
bindChildrenWorker(tsserver.js:29576:21)
bindChildren(tsserver.js:29451:17)
bind(tsserver.js:30878:21)
bindEach(tsserver.js:29473:21)
visitNodes(tsserver.js:17589:24)
Object.forEachChild(tsserver.js:17978:21)
bindEachChild(tsserver.js:29481:16)
bindChildrenWorker(tsserver.js:29576:21)
bindChildren(tsserver.js:29451:17)
bind(tsserver.js:30878:21)
bindEach(tsserver.js:29473:21)
visitNodes(tsserver.js:17589:24)
Object.forEachChild(tsserver.js:17978:21)
bindEachChild(tsserver.js:29481:16)
bindChildrenWorker(tsserver.js:29576:21)
bindChildren(tsserver.js:29451:17)
bind(tsserver.js:30878:21)
bindEach(tsserver.js:29473:21)
visitNodes(tsserver.js:17589:24)
Object.forEachChild(tsserver.js:17978:21)
bindEachChild(tsserver.js:29481:16)
bindChildrenWorker(tsserver.js:29576:21)
bindChildren(tsserver.js:29451:17)
bind(tsserver.js:30878:21)
bindExpressionStatement(tsserver.js:30068:13)
bindChildrenWorker(tsserver.js:29530:21)
bindChildren(tsserver.js:29451:17)
bind(tsserver.js:30878:21)
bindLabeledStatement(tsserver.js:30084:13)
bindChildrenWorker(tsserver.js:29533:21)
bindChildren(tsserver.js:29451:17)
bind(tsserver.js:30878:21)
unknown_function(tsserver.js:29457:94)
bindEach(tsserver.js:29473:21)
bindEachFunctionsFirst(tsserver.js:29457:13)
bindChildrenWorker(tsserver.js:29567:21)
bindChildren(tsserver.js:29451:17)
bindContainer(tsserver.js:29397:17)
bind(tsserver.js:30881:21)
bindSourceFile(tsserver.js:29030:17)
Object.bindSourceFile(tsserver.js:28967:9)
initializeTypeChecker(tsserver.js:64332:20)
Object.createTypeChecker(tsserver.js:33586:9)
Object.getTypeChecker(tsserver.js:95558:79)
synchronizeHostData(tsserver.js:130590:21)
Object.getProgram(tsserver.js:130672:13)
ExternalProject.Project.updateGraphWorker(tsserver.js:135023:53)
ExternalProject.Project.updateGraph(tsserver.js:134966:42)
ExternalProject.updateGraph(tsserver.js:135963:59)
ProjectService.openExternalProject(tsserver.js:138655:29)
ProjectService.openExternalProjects(tsserver.js:138406:26)
Session.handlers.ts.createMapFromTemplate._a.(tsserver.js:139167:46)
unknown_function(tsserver.js:140854:88)
IOSession.Session.executeWithRequestId(tsserver.js:140845:28)
IOSession.Session.executeCommand(tsserver.js:140854:33)
IOSession.Session.onMessage(tsserver.js:140877:35)
Interface.(tsserver.js:142192:27)
suppressed_frame()
suppressed_frame()
suppressed_frame()
suppressed_frame()
suppressed_frame()
suppressed_frame()
suppressed_frame()
suppressed_frame()
suppressed_frame()

ADO link: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1034740

Sample user report:
https://developercommunity.visualstudio.com/content/problem/852813/javascript-intellisense-not-working-after-update-1.html

Made a repro from the call stack
this["a" + "b"] = 0;

@RyanCavanaugh  @sandersn  this may be a dupe, but I'm not sure since the callstack is slightly different. Could you confirm?  https://developercommunity.visualstudio.com/content/problem/851128/using-typescript-37-for-intellisense.html

New and exciting call stack for the code:
this["a" + "b"] = 0
module.exports.foo = function () { return 1 }

The cause (and fix) is almost certainly the same, the module code path just gets further than the global path before crashing.
TypeError: Cannot read property 'flags' of undefined
    at Object.getCheckFlags (/home/nathansa/ts/built/local/tsserver.js:16294:23)
    at getTypeOfSymbol (/home/nathansa/ts/built/local/tsserver.js:39757:20)
    at checkFunctionExpressionOrObjectLiteralMethod (/home/nathansa/ts/built/local/tsserver.js:56882:24)
    at checkExpressionWorker (/home/nathansa/ts/built/local/tsserver.js:58359:28)
    at checkExpression (/home/nathansa/ts/built/local/tsserver.js:58260:38)
    at checkBinaryLikeExpression (/home/nathansa/ts/built/local/tsserver.js:57521:29)
    at checkBinaryExpression (/home/nathansa/ts/built/local/tsserver.js:57496:20)
    at checkExpressionWorker (/home/nathansa/ts/built/local/tsserver.js:58380:28)
    at checkExpression (/home/nathansa/ts/built/local/tsserver.js:58260:38)
    at checkExpressionStatement (/home/nathansa/ts/built/local/tsserver.js:60635:13)
    at checkSourceElementWorker (/home/nathansa/ts/built/local/tsserver.js:63045:28)
    at checkSourceElement (/home/nathansa/ts/built/local/tsserver.js:62928:17)
    at Object.forEach (/home/nathansa/ts/built/local/tsserver.js:151:30)
    at checkSourceFileWorker (/home/nathansa/ts/built/local/tsserver.js:63249:20)
    at checkSourceFile (/home/nathansa/ts/built/local/tsserver.js:63218:13)
    at getDiagnosticsWorker (/home/nathansa/ts/built/local/tsserver.js:63296:17)
    at Object.getDiagnostics (/home/nathansa/ts/built/local/tsserver.js:63282:24)
    at /home/nathansa/ts/built/local/tsserver.js:95944:85
    at runWithCancellationToken (/home/nathansa/ts/built/local/tsserver.js:95909:24)
    at getSemanticDiagnosticsForFileNoCache (/home/nathansa/ts/built/local/tsserver.js:95932:20)
    at getAndCacheDiagnostics (/home/nathansa/ts/built/local/tsserver.js:96185:26)
    at getSemanticDiagnosticsForFile (/home/nathansa/ts/built/local/tsserver.js:95929:20)
    at getDiagnosticsHelper (/home/nathansa/ts/built/local/tsserver.js:95871:24)
    at Object.getSemanticDiagnostics (/home/nathansa/ts/built/local/tsserver.js:95884:20)
    at Object.getSemanticDiagnostics (/home/nathansa/ts/built/local/tsserver.js:131020:47)
    at /home/nathansa/ts/built/local/tsserver.js:140369:140
    at IOSession.Session.getDiagnosticsWorker (/home/nathansa/ts/built/local/tsserver.js:140239:35)
    at IOSession.Session.getSemanticDiagnosticsSync (/home/nathansa/ts/built/local/tsserver.js:140369:29)
    at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (/home/nathansa/ts/built/local/tsserver.js:139744:61)
    at /home/nathansa/ts/built/local/tsserver.js:141239:88
    at IOSession.Session.executeWithRequestId (/home/nathansa/ts/built/local/tsserver.js:141230:28)
    at IOSession.Session.executeCommand (/home/nathansa/ts/built/local/tsserver.js:141239:33)
    at IOSession.Session.onMessage (/home/nathansa/ts/built/local/tsserver.js:141262:35)
    at Interface.<anonymous> (/home/nathansa/ts/built/local/tsserver.js:142577:27)
    at emitOne (events.js:116:13)
    at Interface.emit (events.js:211:7)
    at Interface._onLine (readline.js:282:10)
    at Interface._normalWrite (readline.js:424:12)
    at Socket.ondata (readline.js:141:10)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)
    at Socket.Readable.push (_stream_readable.js:208:10)
    at Pipe.onread (net.js:607:20)

@minestarks the important parts -- bindThisPropertyAssignment and declareSymbolAndAddToSymbolTable -- are the same. It's a dupe.

We forget to handle dynamic names in the source file binding case. There's nothing sensible we can do, so dynamic names should in a top-level this-property assignment should be skipped.

Fix is ready.

This is now in 3.7 as well.

@sandersn  what about this bug? Confirmed dupe or would you need more info? The callstack doesn't have declareSymbolAndAddToSymbolTable, but bindThisPropertyAssignment is there.

It's likely related but I need to look at the code in bindThisPropertyPropertyAssignment again.

Yes, it's extremely likely to be related:

There are three calls to declareSymbol in bindThisPropertyAssignment; two are guarded by !hasDynamicName.
The stack you give hits the same !hasDynamicName assert in declareSymbol.

I'm looking at tsserver.js for 3.7.2 and 3.7.3, though, and the line numbers don't match up with the quoted line number in the bug; 31331 should be 1 of the 3 calls to declareSymbol, but isn't in either version. Any idea how to interpret line numbers in the stack of that bug?

Here's a callstack confirmed to be from 3.7.3. I think this lines up?
    "declareSymbol(tsserver.js:29196:22)",
    "bindThisPropertyAssignment(tsserver.js:31350:25)",
    "bindWorker(tsserver.js:31004:29)",
    "bind(tsserver.js:30886:13)",
    "bindExpressionStatement(tsserver.js:30090:13)",
    "bindChildrenWorker(tsserver.js:29552:21)",
    "bindChildren(tsserver.js:29473:17)",
    "bind(tsserver.js:30897:21)",
    "unknown_function(tsserver.js:29479:94)",
    "bindEach(tsserver.js:29495:21)",
    "bindEachFunctionsFirst(tsserver.js:29479:13)",
    "bindChildrenWorker(tsserver.js:29589:21)",
    "bindChildren(tsserver.js:29473:17)",
    "bindContainer(tsserver.js:29419:17)",
    "bind(tsserver.js:30900:21)",
    "bindSourceFile(tsserver.js:29052:17)",
    "Object.bindSourceFile(tsserver.js:28989:9)",
    "initializeTypeChecker(tsserver.js:64368:20)",
    "Object.createTypeChecker(tsserver.js:33606:9)",
    "Object.getTypeChecker(tsserver.js:95596:79)",
    "synchronizeHostData(tsserver.js:130629:21)",
    "Object.getProgram(tsserver.js:130711:13)",
    "ExternalProject.Project.updateGraphWorker(tsserver.js:135062:53)",
    "ExternalProject.Project.updateGraph(tsserver.js:135005:42)",
    "ExternalProject.updateGraph(tsserver.js:136017:59)",
    "ProjectService.openExternalProject(tsserver.js:138714:29)",
    "ProjectService.openExternalProjects(tsserver.js:138465:26)",

Nope :(
My locations show more 16 lines -- I'm using the version published to NPM, which might be different from 3.7.3 in VS? That would be weird.

That would be weird, wouldn't it? I'm looking at this. It claims to correspond to the 3.7 tag. The VS side is built in a different pipeline so maybe the output is slightly different? Scary but possible in theory

@weswigham,
Only this issue has 3.7.4 milestone label, so I'm posting my question here.
NPM has 3.7.4 version, but github have not tag/release. Could you fix this?

@DanielRosenwasser you wanna proof the draft GitHub release?


Should article date reflect date of most recent change?

There are updates from this year, however the date on the article is 10/11/2018.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: fd0b8848-c2af-28e9-28bf-761d1cdf3d6d
Version Independent ID: 7cc1bef7-ef0c-5c62-2b5f-45910764ba80
Content: Supported Code Changes (C# and Visual Basic) - Visual Studio
Content Source: docs/debugger/supported-code-changes-csharp.md
Product: visual-studio-windows
Technology: vs-ide-debug
GitHub Login: @Mikejo5000
Microsoft Alias: mikejo

@mrlife Great feedback, thanks! I'll update the date.


RedshiftTarget update_id too long for marker table

The following exception was raised when executing an S3CopyToTable task:
Traceback (most recent call last):
  File "/home/kian/workspaces/contrib/luigi/luigi/worker.py", line 137, in run
    new_deps = self._run_get_new_deps()
  File "/home/kian/workspaces/contrib/luigi/luigi/worker.py", line 88, in _run_get_new_deps
    task_gen = self.task.run()
  File "/home/kian/workspaces/contrib/luigi/luigi/contrib/redshift.py", line 181, in run
    self.output().touch(connection)
  File "/home/kian/workspaces/contrib/luigi/luigi/postgres.py", line 163, in touch
    str(datetime.datetime.now())))
DataError: value too long for type character varying(256)

which was occurring when the value inserted into the marker table update_id
column was longer than 256 characters.
The offending code:
https://github.com/spotify/luigi/blob/master/luigi/task.py#L277
which is called from here:
https://github.com/spotify/luigi/blob/master/luigi/contrib/rdbms.py#L98-L102
Since the default update_id (by default, the task_id) is set to a string
containing the task class name and its parameters, in my case it was:
MyRedshiftTask(host=<really long AWS endpoint>:5439,
               database=dev, user=<username>,
               password=<really long password>,
               table=test_redshift_table_5439,
               local_tsv=./test.tsv,
               aws_access_key_id=xxxxxxxxxxxxxxxxxxxx,
               aws_secret_access_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,
               s3_load_path=s3://xxxxxxx/test.tsv)

which was considerably longer than 256 chars, due to the long AWS
endpoint, keys, and login details.
I avoided this exception by sub-classing S3CopyToTable and overriding
S3CopyToTable.update_id:
class MyS3CopyToTable(S3CopyToTable):
    .
    .
    .

    def update_id(self):
        return "<some ID < 256 chars long>"
    .
    .
    .

Just ran into this issue as well.  Thanks @kianho for figuring out the root cause.

Same as above, thanks @kianho.

Yup same. Thanks @kianho

I have run into this error before and just overwrote the update_id (as you did). If this is just an issue where we will handle the edge cases ourselves, can we close this?

I think this fixed by #1444.  Unfortunately it introduces a migration problem, see #1578.

Very timely comment @joeshaw. Appreciate it. I was just trying to figure out why my hacked update_id was all of a sudden causing "psycopg2.ProgrammingError: can't adapt type 'method'" and your message explained it. Just need to go through my ETL now and undo all my subclassing of S3CopyToTable.

@drewfustin the "method" thing bit me as well.  It turns out that update_id was changed from a method to a property.  I found #1463 very helpful in showing me what I needed to change in my own code.
It is very frustrating the number of breaking changes that are generally introduced in each Luigi version, and in 2.1.0 specifically.  The release notes for 2.1.0 make no mention of them, so unless you follow all the Luigi pull requests between released, you're just on your own when your own code breaks inexplicably.

Appears to have been fixed.


Tidy up docs

I was looking at the docs for this project on NPM the other day and noticed some bits that could be tidied up. Happy to squish this to a single commit if you want to keep the commit history small or remove parts of it if you don't want to use ES6 syntax for example.

Coverage remained the same at 94.611% when pulling f9a07a535cb508234953806ff5bf64b73ba31cda on dekatron:tidy-up-docs into 85a57ea3827d8d1c417f4b84f2de8657b7280d47 on mdevils:master.

Thank you for your contribution!


Just a const wrong? it works fine but ide gives warning

382 │   const val   = (fbits & 0x7fffffff) + 0x1000; // rounded value
╵         ~~~
Build failed with 1 error:
examples/jsm/textures/IDWMapGenerator.js:401:1: ERROR: Cannot assign to "val" because it is a constant
for now i changed it to let :D
i just copied the examples folder to my project, since i dunno how to alias subimport on non published npm

Yes, this is actually a bug. Good catch and I will fix this bug.
The npm package is expected to be released in the next two weeks.
But if you want to import it as a local package and use build tools like rollup and webpack, you may be able to solve the alias problem of 't3d' with the help of plugins like @rollup/plugin-alias, or webpack resolve settings...？

No problem, i wait npm.. im prototyping ;)

Maybe thanks to vite, because in webpack i can import submodules without alias, in vite no way, maybe with plugins.... so i dropped the folder...
but i dunno if i drop with webpack it would check that also, because i didn´t imported idw.. idk even what´s idw map. lol, i see the example looks thermal stuff but i can be wrong :D


Make password more secure while signing up

Current Behavior
It accepts any password we give

Desired Behavior
For password to be strong there have to be checks while clicking on sign up button

Screenshots / Mockups

Kindly assign me this under gssoc23

I would like to contribute to this issue. Please assign me this task under GSSOC'23.


Create Generic Pages “about”

Automatically generated by Netlify CMS

👷 Deploy Preview for singular-moonbeam-50eeea processing.

Name
Link

🔨 Latest commit
ec78b070182a8007d803757305b06714c42f80e2

🔍 Latest deploy log
https://app.netlify.com/sites/singular-moonbeam-50eeea/deploys/6422c6bfc807fe0008f7036f


Add warning/test for timezone differences

Sometimes users run the tool and fails because comparing logs is using a bad TZ and those will fail.

provide a test to see if everything works
check at the difference between logs in the docker vs. base host
print the difference and warn users

This doesn't make sense anymore because we moved to markers.


Bump go version to 1.22.5

Bump go version to 1.22.5

Can we, as part of this PR also change the test that is failing? I am assuming it is just changing to a different image or SHA that exists in docker hub.
Thanks

Can we, as part of this PR also change the test that is failing? I am assuming it is just changing to a different image or SHA that exists in docker hub. Thanks

@joaopapereira It was failing as the image for cloudfoundry/capi-kpack-watcher doesn't exist anymore in dockerhub. So I have removed the check for capi-kpack-watcher image from the relevant tests


Mysql support

its still WIP. But would be nice to get feedback.

@alvarudras Thank you. I don't think the maintainer is going to maintain this project anymore. I am willing to merge your repos to my repo as well.

@kcauchy I'm still maintaining the project :). Alvar's changes are great, but they couple us to MySQL libraries. What we need is a better configuration system that enables turning different DB backends on and off during compilation time. Would you want to try implementing this perhaps?


add dist: trusty to use oraclejdk8

I cannot sure that this change can use oraclejdk8 in travisCI, but I saw this issue on travis community link.
Could you try to apply this change to use travis CI correctly?

Coverage remained the same at 98.39% when pulling 8806eb3502872d81bf6f065a9f271801c5661d3b on widian:change-travis-ci into ed815a224b986e5a5d03fbd8f5c8d154e84e5b40 on open-korean-text:master.

Thanks!


Hard to scratch-build

Looks like the PPA is no longer available and bootstrap-from-web seems to be unable to find a bootstrappable base.

I've updated the PPA to have packages for Bionic and Focal. I'm not sure why bootstrap-from-web isn't working for you. It there's a package for the latest version of head: http://docs.flabbergast.org/bootstrap/bootstrap-7aaa90b04586fb217e74220a34accc9511d03c37.tar.bz2
Which commit are you on?
You can also pull working JARs from Maven: https://search.maven.org/search?q=g:com.github.apmasell.flabbergast

The git repo is a git clone from yesterday.
$ git log --pretty=format:%H "HEAD~5..HEAD"
7aaa90b04586fb217e74220a34accc9511d03c37
455632b6e9f5b254686741acab2a6a6e8a52195d
6f7d2306734159f795f369181fc2c4e76cb0ee65
dd9d1d35d3b1f1527e6656a3b5fcd8ab2147ba0b
94933733c341bbc81bb9cb7ceb63b8b6400b825f

With hashes printed during the bootstrapping (and limit cutr down to 10):
$ ./bootstrap-from-web
DEBUG: HASH is 7aaa90b04586fb217e74220a34accc9511d03c37
DEBUG: HASH is 455632b6e9f5b254686741acab2a6a6e8a52195d
DEBUG: HASH is 6f7d2306734159f795f369181fc2c4e76cb0ee65
DEBUG: HASH is dd9d1d35d3b1f1527e6656a3b5fcd8ab2147ba0b
DEBUG: HASH is 94933733c341bbc81bb9cb7ceb63b8b6400b825f
DEBUG: HASH is 09cc07693c45b1367a3cfd89c4ebe35bf4680c55
DEBUG: HASH is beb37a16c0b31e90965ab39c7b09c0bc4834f650
DEBUG: HASH is fa32d29b1aac3408f58ba48d020f29f533654d78
DEBUG: HASH is e4bbb9992768e6e9c4e6e4950c804e28688a0747
DEBUG: HASH is 46892c73e907dca393227f5e5c9c1330a203a8a3
Could not find a boostrappable revision.

Weirdly, when I do what I would've expected the script to do, I do get a tarball:
$ curl -s http://docs.flabbergast.org/bootstrap/bootstrap-7aaa90b04586fb217e74220a34accc9511d03c37.tar.bz2 | tar xvjf -
flabbergast_sql.7
platform/jvm/compiler-jvm.a
platform/jvm/runtime/flabbergast/db-jvm.java

I have NO idea why the web boostrap is doing what it does.

Well, that's super weird. I'm not sure either. If you have the bootstrap package, you can extract it on top of the build directory and it should be fine.

I'll try blowing my clone out of the way and try again. Worst case, it doesn't change the current state of things on my end.

$ vi bootstrap-from-web
$ ./bootstrap-from-web
Bootstrapped to revision 7aaa90b04586fb217e74220a34accc9511d03c37.
$ git diff bootstrap-from-web
diff --git a/bootstrap-from-web b/bootstrap-from-web
index df547e7..5a06ff4 100755
--- a/bootstrap-from-web
+++ b/bootstrap-from-web
@@ -1,6 +1,6 @@
 #!/bin/sh

-URL="http://docs.flabbergast.org/bootstrap/"
+URL="http://docs.flabbergast.org/bootstrap"
 LIMIT=20

 set -eu

Ah. I see.

After many attempts, I now seem to have a runnable flabbergast, so I shall quietly continue with my plans (but not implementing a lisp interpreter, this time).


Convert Cuboid2D to/from KITTI 3D data

Summary
CVS-151427
New features

New Cuboid2D methods:

Cuboid2D.from_3d(dimensions, location, rotation_y, P, Tr_velo_to_cam): Creates a Cuboid2D object from KITTI 3D bbox annotation data. Matrix P (P2 in Kitti format context) is a 3x4 projection matrix in the left color camera coordinate system. Matrix Tr_velo_to_cam is a 3x4 projection matrix between LiDAR and camera coordinate systems.
cuboid_2d.to_3d(P_inv): Reconstructs approximate KITTI 3D bbox annotation data (dimensions, location and rotation_y) from 2D projection coordinates. P_inv matrix is a pseudo-inverse of camera-to-image projection matrix.

How to test
See unit test changes
Checklist

[x] I have added unit tests to cover my changes.
[ ] I have added integration tests to cover my changes.
[x] I have added the description of my changes into CHANGELOG.
[ ] I have updated the documentation accordingly

License

[x] I submit my code changes under the same MIT License that covers the project.
Feel free to contact the maintainers if that's a concern.
[ ] I have updated the license header for each file (see an example below).

# Copyright (C) 2024 Intel Corporation
#
# SPDX-License-Identifier: MIT

Could you update the documents and explanation of this feature in this pr too?

@sooahleex, documentation is added in 657bf1b. PR description is extended as well.


Add unit test to check for unused exports and remove them

Motivation
The goal is this PR is to:

create a reproducible unit test to check for unused exports (values used within the same module - but unused in the same package or cross-package) or dead-code (exported values that's never used, even within the same module)
remove detected unnecessary export keywords and delete detected dead code

Only 1. has been done for now.
How does it work?

get the dependency tree
get the directories per package
get the list of subpackages per package
get the list of unused exports per subpackage (using ts-prune). It will only look for usage within the same package the subpackage is in
get the list of imported values per subpackage (using ripgrep)
compare the list of exports created in 4. with the list of imports created in 5. and conclude

Why not just use ts-prune?

ts-prune does not support monorepo & lerna. There have been PRs - here and there but the repo is in maintenance mode so they were closed.
ts-prune only search for usages within a package
but in our case, almost all exports are used cross-package (think @lodestar/api)
it is still useful to get a first list of potential unused exports

Why ripgrep?

it is fast and widely used
I know it
there is an npm package to use it in nodejs, used by vscode

Known limitations and possible improvements:

the way it detects actual usage from import * as foo from 'subpkg' is potentially incomplete or inaccurate
it's relatively slow - it wasn't optimized for speed, I just wanted to make it work first
it only supports ES Module import, not CommonJS (but we don't really care)
it would be nice if it was just an external tool that we would use as a CLI instead of creating a specific package for this test
maybe adding monorepo support to a fork of ts-prune would have been better

What I need from you:

the test seems to work as expected: it fails with the list of unused exported values. The values I manually checked do seem to be unused across packages.
I need to know which of the unused exported values I should really act upon? (removing 'export' or deleting dead-code)

For convenience, I have put here the list of unused exported values that the test has found. You can log the same value by running the failing test (it will just not output a beautiful json like the one I provided).
Closes #2209
Steps to test or reproduce
cd packages/check-dead-code
yarn test:unit

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Hey @nicobao :wave:
Thank you so much for this contribution! This is indeed a very interesting approach. Your PR shows that there must be a way to say what exposed variables are ok and which are not. In most libraries almost everything is exposed, some of which could be considered dead code and others not. This libraries are published to NPM so we must account for arbitrary usage.
@wemeetagain a potential first step would be to restrict exports to only expose exactly what we want to be used externally. Then this tool cleans up the rest.
@nicobao while this tool is very useful I don't think it should live in the Lodestar monorepo as is completely independent. If that's of interest to you could you move it to an independent repo and PR the usage of it strictly?

Hi @dapplion :)
Thank you for the kind comments. I am glad that you appreciate my contribution.
The goal of the test is precisely to compare the expected unused values (the one we actually want to expose as an api in our npm packages) with the actual unsued values (generated by the tool I wrote).
The still unknown parameter that we need for the test is the expected values. It should not be empty, it was just a placeholder. I believe that's the data you mentionned to @wemeetagain.
By writing the exports we want to be used externally in this expected variable instead of on a comment in GitHub or in a .doc file, we can compare it with the output of the tool, and we obtain a reproducible test.
@dapplion, where do you want to run the test? The tool, when I externalize it - let's call it ts-prune-monorepo, will need to have access to the whole lerna project. It can run as a TS library but it will execute child processes in many folders of the project. The tool assumes npx, yarn & lerna are available in the host computer: that's the only dependencies that I didn't internalize. Maybe there is a way though.

Moving forward we should also consider that ts-prune is went into maintenance mode and it's future seems not clear. I am not confident to use it in current state.

@nazarhussain Maintenance mode means that they will not add new features, not that ts-prune current features are unmaintained:
However, due to the popularity of ts-prune, it has absorbed more use cases, and complexity has bloated to the point that I'm no longer comfortable to add more features or do any other changes to the core system.

The most important thing for ts-prune is to be backwards compatible and reliable for existing use cases.

If you want it to use the tool I made, I can link only the usage but I need to know how you want it to be used in Lodestar. Is that okay to do it in a unit test like I did here? How do you see it?

Closing to clear stale PRs from our queue
Even if we didn't merge, thank you so much for contributing @nicobao

This is a pretty good starting point and can be used without merging it when someone with a good knowledge of the codebase wants to take the time and look into https://github.com/ChainSafe/lodestar/issues/2209. I checked the json results, there are definitely false positives and changes need to be manually reviewed but will help a lot to get an overview. The fact that the Lodestar libraries can be used by anyone makes things a lot harder though, we have to assume everything that is exported at this points is used, should only remove exports in a new major release.
Generally, I would rather see this as a CLI / general purpose tool as it might also be useful to other projects.

Happy to have been of some help. Unfortunately, I won't have time to make it an external tool. My goal was not to make a general-purpose tool but a script that solve the specific problem lodestar has, and for that purpose the solution as is works. To make it general-purpose, It would require a bit of refactoring as to how things are loaded, and I am pretty sure the approach I took wasn't the most appropriate in terms of performance and reliability. If somebody wants to make a general-purpose tool, I'd rather look at ts-prune and other similar tool, eventually fork one of them and use this project as inspiration only.


Follow execs with allocation profiling

Description
When a program executes another program, we do not follow with the allocation profiling.
Motivation
Today we need to be especially careful when launching applications through bash scripts (as we will only profile the bash script when wrapping)
Design
We currently register watchers during startup.
An exec can happen at any time in the program's lifetime.
Possible solution
Keep our IPC mechanism open. Send a message when we want to register a new PID, listen on a new ring buffer.

Implemented in https://github.com/DataDog/ddprof/pull/342


latest pip package is missing images

Make sure these boxes are checked before submitting your issue - thank you!

[x ] I have checked the superset logs for python stacktraces and included it here as text if any
[ x] I have reproduced the issue with at least the latest released version of superset
[ x] I have checked the issue tracker for the same issue and I haven't found one similar

Superset version
0.20.6
Expected results
when selecting a visualization type it is expected to see all of the images for the types.
Actual results
these images are missing -  deck_grip.png, deck_hex.png, deck_scatter.png and deck_screengrid.png
Steps to reproduce
install from pip install, select slices and either create a new slice or open existing and select to change visual type.

newer versions fixed this


Update translations

Add Espanol and Esperanto
Full language names in their own language
Link to translation helper page (transifex)

Codecov Report

Merging #268 into master will not impact coverage.

@@           Coverage Diff           @@
##           master     #268   +/-   ##
=======================================
  Coverage   98.83%   98.83%
=======================================
  Files         119      119
  Lines        1883     1883
=======================================
  Hits         1861     1861
  Misses         22       22

Impacted Files
Coverage Δ

...nts/_languageChooser/languageChooser.controller.js
100% <ø> (ø)
:white_check_mark:

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 5cd6057...835b938. Read the comment docs.


Translation of First Five chapters of this book in HINDI language fix issue #136 (changes-made)

What type of PR is this? (check all applicable)
'This PR is the translation of the first five chapters of the book INTODUCTION TO BASH SCRIPTING in HINDI LANGUAGE

[ ] ♻ Refactor
[ ] ✨ Feature
[ ] 🐛 Bug Fix
[ ] 👷 Optimization
[ ] 📝 Documentation Update
[x] 🚩 Other

Added to documentation?
Yes

[ ] 📜 Tranlation of the book
[ ] 🙅 no documentation needed

[optional] What gif best describes this PR or how it makes you feel?

Sure

@bobbyiliev Is it okay now?

@bobbyiliev  changes are made successfully. Do checkOut!


Make Determinant progressbar for coin wallets on Balance screen

somehow overlooked the issue, the requested feature is already implemented as the client already displays the "synced until" for each supported blockchaip


Not render long inline fields.

What happened?
I updated Dataview from 4.22 to 5.36. After that not render long inline fields.

DQL
No response
JS
No response
Dataview Version
0.5.36
Obsidian Version
0.14.15
OS
Windows

Just to check, does new-data instead of new_data work?

Just to check, does new-data instead of new_data work?

Yes)

@Az-Tart
I guess @blacksmithgu asking for data-field instead of data_field.

@Az-Tart I guess @blacksmithgu is asking for data-field instead of data_field.

O, then no, only ["data-field"].

Inline fields have an implicit 2048 character limit on a single line; I've raised it to 32768. The limit is mainly to avoid pathological behavior in certain bad scenarios, like having :: inside of large json blobs in a codeblock or something similar.

Fix incoming in 0.5.37.

Fix incoming in 0.5.37.

Thx.
P.S. Is it possible to make inline-fields multi-line?
I use inline-fields for render executable JS code to other child-pages from mother-page. Editing a single -line code is inconvenient.


[#114] Add Dockerfiles for building and running HTTP API (main)

This includes compiling GenQuery2.
This currently compiles and runs on Ubuntu 22. ~I have to work out some issues with invoking the GenQuery2 parser before this is ready.~
I'm also still settling on the design.
Thoughts and opinions welcome.

The current design clones the required repos. However, perhaps it should compile the project on disk (i.e. like the dev environment). Then people can modify the project in-place and build a custom version of the HTTP API.
That gives us more flexibility and is in line with how we've made other projects.
Will handle that tomorrow.

Yes, this probably shouldn't clone itself.   Changes on disk should be reflected via mountpoint in the builder.. and just build the source as is (with any changes).   I think that's what you've already said.

Still working on the wording, but everything is working so far.
I may add a dummy irods_environment.json file to the runner image to satisfy whatever is calling getRodsEnv.

This PR is ready for final comments.
This should be good enough for 0.1.0.
The only items remaining are the process stash fix and maybe API documentation. I'll likely start working on that today.

Squashed.

#'d


Drop-in UI will not display the Apple Pay sheet

Updating to the latest version 2.3.1, I am not able to process payment using ApplePay.
I debugged the code and the setup seems to be enabled. I can select ApplePay however the apple pay sheet would not appear.
I am surely missing something in my code.
if (self.configuration.isApplePayEnabled && !self.dropInRequest.applePayDisabled && [PKPaymentAuthorizationController canMakePayments]) {
                [activePaymentOptions addObject:@(BTDropInPaymentMethodTypeApplePay)];
            }

Flutter request
applePayRequest: BraintreeApplePayRequest
                                        (
                                          paymentSummaryItems: [
                                            ApplePaySummaryItem(label: "Total", amount: amount, type: ApplePaySummaryItemType.Final)
                                            ],
                                          displayName: displayName,
                                          currencyCode: 'GBP',
                                          countryCode: 'GB', //Country code is 2-digit and not 3-digit as per the plugin documentation
                                          appleMerchantID: accountSettings.appleMerchantId,

                                        ),

I am facing the same issue. Did you find any solution?

@bhaveshbusa, @PrathamDev: did you have solved this problem?

Version 3.0.0 adds more options and an example for Apple Pay, please try if this resolves the issue.


Fixed #34380 -- Allowed specifying a default URL scheme in forms.URLField.

Issue: https://code.djangoproject.com/ticket/34380#ticket
This PR adds the keyword argument assume_scheme to URLField and defaults to "https".
To have the old behaviour: URLField(assume_scheme="http").

Tests fail in https://github.com/django/django/actions/runs/4368736951/jobs/7641689596 with below error.
I'm not sure how to mark unittest.loader._FailedTest.model_forms.tests with ignore_warnings as it is outside the Django source code.
Hints are appreciated!
======================================================================
ERROR: model_forms.tests (unittest.loader._FailedTest.model_forms.tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\hostedtoolcache\windows\Python\3.11.2\x64\Lib\unittest\case.py", line 57, in testPartExecutor
    yield
  File "C:\hostedtoolcache\windows\Python\3.11.2\x64\Lib\unittest\case.py", line 623, in run
    self._callTestMethod(testMethod)
    ^^^^^^^^^^^^^^^^^
  File "C:\hostedtoolcache\windows\Python\3.11.2\x64\Lib\unittest\case.py", line 579, in _callTestMethod
    if method() is not None:
    ^^^^^^^^^^^^^^^^^
  File "C:\hostedtoolcache\windows\Python\3.11.2\x64\Lib\unittest\loader.py", line 34, in testFailure
    raise self._exception
    ^^^^^^^^^^^^^^^^^
ImportError: Failed to import test module: model_forms.tests
Traceback (most recent call last):
  File "C:\hostedtoolcache\windows\Python\3.11.2\x64\Lib\unittest\loader.py", line 407, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\hostedtoolcache\windows\Python\3.11.2\x64\Lib\unittest\loader.py", line 350, in _get_module_from_name
    __import__(name)
  File "D:\a\django\django\tests\model_forms\tests.py", line 903, in <module>
    class FieldOverridesByFormMetaForm(forms.ModelForm):
  File "D:\a\django\django\django\forms\models.py", line 300, in __new__
    fields = fields_for_model(
             ^^^^^^^^^^^^^^^^^
  File "D:\a\django\django\django\forms\models.py", line 225, in fields_for_model
    formfield = f.formfield(**kwargs)
                ^^^^^^^^^^^^^^^^^^^^^
  File "D:\a\django\django\django\db\models\fields\__init__.py", line 1242, in formfield
    return super().formfield(**defaults)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\a\django\django\django\db\models\fields\__init__.py", line 1084, in formfield
    return form_class(**defaults)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "D:\a\django\django\django\forms\fields.py", line 757, in __init__
    warnings.warn(
django.utils.deprecation.RemovedInDjango60Warning: The URLField assumes 'http' if no scheme is specified. From Django 6.0, the URLField will assume 'https'. A new keyword argument 'assume_scheme' has been introduced. To retain the previous behavior, use URLField(assume_scheme='http').

I'm not sure how to mark unittest.loader._FailedTest.model_forms.tests with ignore_warnings as it is outside the Django source code.

It's unfortunate, using forms.URLField is not crucial for these tests so I'd add a subclass as a temporary workaround for the deprecation period:
diff --git a/tests/model_forms/tests.py b/tests/model_forms/tests.py
index da49b86dee..cc526304f5 100644
--- a/tests/model_forms/tests.py
+++ b/tests/model_forms/tests.py
@@ -899,7 +899,13 @@ class ModelFormBaseTest(TestCase):
         self.assertEqual(m2.date_published, datetime.date(2010, 1, 1))

-@ignore_warnings(category=RemovedInDjango60Warning)
+# RemovedInDjango60Warning.
+# It's a temporary workaround for the deprecation period.
+class HttpsURLField(forms.URLField):
+    def __init__(self, **kwargs):
+        super().__init__(assume_scheme="https", **kwargs)
+
+
 class FieldOverridesByFormMetaForm(forms.ModelForm):
     class Meta:
         model = Category
@@ -923,11 +929,10 @@ class FieldOverridesByFormMetaForm(forms.ModelForm):
             }
         }
         field_classes = {
-            "url": forms.URLField,
+            "url": HttpsURLField,
         }

@allcaps Do you have time to keep working on this?

@felixxm Thank you for the feedback and the ping. I'll work on it.

@felixxm Oops, I also (accidentally forced pushed) the warning message change. Since you did the last to push, I think this will be okay. I don't want to be in the way, and won't do any updates no more.
I see you also choose to use the def __init__(self, *, assume_scheme=None, **kwargs): signature. Cool! that was something I wasn't sure about.
Thank you for the guidance. I learned some new things.

buildbot, test on selenium.

buildbot, test on selenium.

I’ve made a forum post proposing we change this to a hard cut rather than using the deprecation warning: https://forum.djangoproject.com/t/stop-the-django-5-0-press-move-urlfield-assume-scheme-change-from-deprecation-to-hard-cut/25652


winit ignores monitor selection in fullscreen

Bevy version
0.8.1
[Optional] Relevant system information
Windows 10
What you did
app.insert_resource(WindowDescriptor {
            mode: WindowMode::BorderlessFullscreen,
            position: WindowPosition::Centered(MonitorSelection::Number(42)),
            ..default()
        });

What went wrong
Primary monitor is always selected, no error whatever the monitor number asked (which obviously is nonsense in this example).
Additional information
Primary monitor is hard-coded here:
https://github.com/bevyengine/bevy/blob/7a29c707bf6c79b3dab6e79048818836cdc26bbe/crates/bevy_winit/src/winit_windows.rs#L29
WindowDescriptor::position (which contains the monitor ID) is only ever used when not in fullscreen.

This was closed 6 months ago, but doesn't work on 0.10.1:
.set(WindowPlugin {
    primary_window: Some(Window {
        mode: WindowMode::BorderlessFullscreen, /* #5875 - does not work with
                                          * MonitorSelection */
        //mode: WindowMode::Windowed,
        position: WindowPosition::Centered(MonitorSelection::Index(1)),  //< doesn't do anything
        ..default()
    }),
    ..default()
}),

However the code on main seems to have changed again, so no idea if this needs reopen or not?


Trigger notifications

I couldn't find if msteams javascript sdk has abillity to show notifications like when you receive messages. If there is a way can someone show me example or code and if this does not exist yet, is it possible to have it in future?

@Mihael479 , Could you please from where you want to send the notifications? is it Tab or Bot?
Sending notification through tab is not supported scenario as Teams client SDK don't support this. But you can sent notification using Bot

Please feel free to reopen if you further query

I would like to send notification from Tab. I have a chat application in tab to communicate between teams and our web apps using signal. What I want to do is show notification when message arrives to teams user just like in normal chat. Is it possible? Thank you.


Extend Rosetta to work with MyCelo testnets

Description

Adds geth.networkid flag

This is nessary when genesis ChainID != networkID, as is the case for some mycelo-based testnets

Adds functionality to fetch necessary state for Rosetta (core contract addresses, GPM, CarbonOffsetPartner) from a static block when initializing the monitor & specifically prompted via --monitor.initcontracts; note this is not done by default.

This is necessary for mycelo testnets where this information is already configured at genesis. (Rosetta by default only listens for updates which is not sufficient if there is initial state at genesis.) While this is primarily useful for testing with mycelo-based testnets right now, this should also help with future L2 changes.
Design note: this follows the structure of block_processor. A larger refactor is possible here but I felt that to be overkill for now (especially since we will need to make more sweeping changes for L2 work in the future) and would unnecessarily introduce possible complexity/changes to a relatively stable part of the Rosetta service.

Tested

Manually tested this:

using the globaltestnet (with longer reconciliation tests)
spun up a 1-validator mycelo testnet and ran a rosetta node against this

The changes look good, I'm just wondering if we can remove the --monitor.initcontracts flag and instead somehow detect if the initial state is set in the genesis block. But maybe that's not worth the effort.

Thanks! and yeah I couldn't find a non-hacky way immediately (and wanted to make sure this minimally affects existing rosetta, i.e. needing to explicitly turn this on) but I imagine with L2 stuff in the future we can spend more time finding a way to do that! If any ideas occur to you later, happy to update!


Utopia 229 ppq

Description
This PR includes the following proposed change(s):
ticket UTOPIA 229

Also add husky config for both backend and frontend
please note: i am still working on css and unit tesing, this just a preview for everyone
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x ] New feature (non-breaking change which adds functionality)
[ ] Refactoring / Documentation
[ ] Version change

How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Development Dependency Working Agreement

[ ] My code DOES NOT include the importing of new dependencies into the DPIA ecosystem
[x ] My code DOES include the importing of new dependencies into the DPIA ecosystem
If new dependencies are being introduced to the DPIA ecosystem:
[ ] The functionality of the dependency drastically reduces code complexity and makes my changes more easily maintainable and readible
[ ] The dependency being introduced does not contain multiple layers of nested dependencies introducing maintainability complexity to the DPIA ecosystem

Frontend Development Changes

[ ] N/A
[ ] I have performed a self-review of my own code
[ ] I have made corresponding changes to project documentation or diagrams that reflect my changes
[ ] New and existing unit tests pass locally with my changes
[ x] My code follows Airbnb React Style Guidelines

API Development Changes

[ x] N/A
[ ] I have performed a self-review of my own code
[ ] My code follows standards and practices outlined in the BC Government API Development Guidelines
[ ] New and existing unit tests pass locally with my changes
[ ] My changes includes Swagger documentation updates that reflect the changes I am introducing

@kushal-arora-fw your changes need to be approved by yourself before we merge this.


Bots have lagg?

When i start the bots at the beginning it works fine when i have like 20bots but then is goes up to 70-80 than they don't follow me anymore they just go where i was like 30 seconds ago. anyone know how to fix this please tell me.

And yes i'm on a vps if anyone asks c9

Use a better VPS, get better internet, get a better PC. Could be all sorts of reasons.


Select content with .setSelectionRange()

I would like the value to be selected when tapping the field:
myInput.onFocus ->
    this.setSelectionRange(0, this.value.length-1)

Unfortunately, this doesn't do anything.
How can I select the input's content when tapping it?

Do you want to select the full text or only a part?
For the full input this should work:
input.onFocus ->
  input.focus()

This should work:
myInput.onFocus ->
  @input.select() # For browsers
  @input.setSelectionRange 0, @input.value.length # For mobile safari

I haven't tested it, so please tell me if it doesn't work

It doesn't. I added a bit more code for context:
@valueLayer = new InputModule.Input
	parent: @textLayerGroup
	text: '110'
	setup: false
	virtualKeyboard: false
	padding: 0
	type: "number"
	fontSize: 26*2
	width: @textLayerGroup.width
	goButton: false
	x: Align.center()
	y: 72
# Select number when tapping input field
@valueLayer.onFocus ->
	@input.select() # For browsers
	@input.setSelectionRange 0, @input.value.length # For mobile safari

When tapping the field: "TypeError: undefined is not an object (evaluating this.object.select)."

Ok sorry, now I made a test, this works:
myInput.onFocus ->
	Utils.delay .1, =>
		@select() # For browsers
		@setSelectionRange 0, @value.length # For mobile safari

You need to add a small delay or it will be deselected after it's selected. Adding this 0.1 delay makes it work properly :)

Thanks, this works!


Macro infinite recursion throw a invalide memory access error

Hi,
Take this (dumb) code:
macro one(name)
  {% puts name %}
  one({{name}})
end

one(Test)

When compiling it, after a lot of puts (8567) it fails with:
Invalid memory access (signal 11) at address 0x7ffca5ffaf18
[0x7f80c148b366] ???
[0x7f80c13d607d] ???
[0x7f80c2422326] ???

I know the compiler cannot know if the code will ever stop (halting problem), but maybe it should stop after an arbitrary level of macro recursion. 8k seems to be too much, somethink like a few tens or a couple of hundreds should be enough.

Duplicate of #9413.


Which board is compatible to the RAK2270 is it WisDuo RAK3172 E or T

Which board is compatible to the RAK2270 is it WisDuo RAK3172 E or T
@carlrakwireless  Is the compatible board the WisDuo  RAK3172 Evaluation board or the WisDuo RAK3172 T Board

It should be WisDuo RAK3172-T Board.

It should be WisDuo RAK3172-SiP Board.

I agree, but that isn't one of the options in the image. The image shows the WisDuo RACK3272-SiP board.
The main chip used on the RAK2270 is the WisDuo Module RAK3172-SiP/RAK3172LP-SiP (pin-to-pin and software compatible). This chip has STM32WL SoC which is a combination of MCU and LoRa/SubGhz transceiver. The firmware written on this is based on [RUI3](https://docs.rakwireless.com/RUI3/). You can start creating your own firmware using this [RAK3172-SiP guide](https://docs.rakwireless.com/Product-Categories/WisDuo/RAK3172-SiP/Quickstart/#rak3172-sip-as-a-stand-alone-device-using-rui3).

I see. You can choose RAK3272-SiP Board. It will work fine.

Sounds, good thanks.


Filter license information from README if found

If a license is found in a README, we don't need to display the entire README - only display the license itself.

In this case we will be linking to the README not attempting to parse the file ourselves.


Removed GroupName as required option in get_group_member module,  reverted a commit that broke the RESTful API

Heya,
As the title says, the GroupName option was required when executing the get_group_member module. This is fine unless we want to query the members of a group by the group SID instead of the name.
Edit: also, seems like ec13f26056d8048db6f86a69e5f50bee0dc5b78c broke the RESTful API again, reverted that commit.
Cheers

Tested and confirmed. Thanks @byt3bl33d3r !

@xorrior happy to help! :)


Adds a 'Coming Soon' tag to Wendy concept on Key Concepts page

Deploy preview:
https://deploy-preview-402--vega.netlify.app/key-concepts/


BUG: SVG Hex code getting converted to RGBA

There is a bug when I try to import webfonts in SVG format with a very long HEX code at the end of the font url. The hex code is being converted automatically to RGBA. This is caused by cssnext, when I disable cssnext everything works correctly.
This is how I import the SVG format of the font:
url("Fonts/e4d5b881-6835-45b7-8766-3e5b9e7cab8b.svg#e4d5b881-6835-45b7-8766-4e5b9e7cab7c") format("svg");
And this is the output:
url("Fonts/e4d5b881-6835-45b7-8766-3e5b9e7cab8b.svgrgba(228,213,184,.50588)-6835-45b7-8766-4e5b9e7cab7c") format("svg");
Is this a known issue? Or is there any work around?

I guess it's a bug from https://github.com/postcss/postcss-color-hex-alpha

I've worked around this by disabling postcss-color-hex-alpha in my postcss.config.js:
module.exports = {
  plugins: {
    ...
    'postcss-cssnext': {
      features: {
        colorHexAlpha: false
      }
    },
    ...
  }
}

postcss-cssnext has been deprecated in favor or postcss-preset-env. Read more at https://moox.io/blog/deprecating-cssnext/


Waiting for root filesystem on boot with VMWare

Downloaded fresh 1.9 image. Created new 64 bit vm, 2 cores 1 GB ram and used the drive image downloaded. Tried to boot and got stuck at boot menu, saw another issue about deleting the CDROM. So I deleted CDROM and Floppy, then it let me pick System 0 and started to boot but gets stuck waiting for root filesystem.

Change the disk mode to SATA worked for me ....

Yes, we should also add other driver. What is the default disk driver?

Vmware is scsi by default
On Wed, Aug 15, 2018, 7:45 PM Pascal Vizeli<EMAIL_ADDRESS>wrote:

Yes, we should also add other driver. What is the default disk driver?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/home-assistant/hassos/issues/159#issuecomment-413374727,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAKE3Hp_i2yv_blKmo2qSYmYKaAWbDacks5uRLKmgaJpZM4V5h4x
.

I hope SCSI will be supported as its not working had to change to IDE with proxmox.


Add styling guide for React Aria Components

This adds a Styling page for React Aria Components that covers styling and animation topics at a high level. It moves the content off of the main Overview page, and expands on it.
Also included a few updates from #4999.

Moved drag and drop into the interactions section.
Updated the status on the overview page to beta. The badge in the sidebar will update upon release based on the package.json.
Removed mentions of virtualized scrolling.

I was thinking we could link to Sam Selikoff's Tailwind + RAC video and/or a codesandbox template for quick startup. Personally speaking, I do better with a walkthrough/some form of project quick start so I can easily copy pasta code block examples

Good ideas. I would like to get Sam's videos in our docs. I was originally thinking they'd go on the component pages he was covering but maybe putting one on the overview page could work. A codesandbox template, or multiple for different setups, would also be great additions!


Add github actions

This adds github actions, which are run on every PR and push to master/main, and every month.
The time it takes for CI is reduced significantly, a rustfmt seems to take less than 30 seconds, with the full suite taking about 5 minutes. The crates are now tested on ubuntu, mac, and windows, but the suitesparse_bindings are only built on ubuntu.
Some differences between travis and github actions (these can be added if wanted):

No longer running the heat example
Tests are not run with release
Nightly feature is not enabled for sprs-benches

If this PR is merged, the actions will automatically be run, without any futher setup.
The workflow is inspired mostly by the implementation in ripgrep (license: unlicense)

That's nice, thanks!


Fix missing dependency

The build depends on an unpublished version of derevo. Change version to the latest one available on Central.

Also fixed in #5


feat: Confirmation plugin

Implement it through ConfirmationMiddleware
Expose error action(placed in system module) to trigger the displaying of ConfirmationModal
Unit tests for ConfirmationMiddleware and ConfirmationModal
Samples

@pacific0437 Is there any progress on it?


LoginResult (from UserDialogs) is set to true when Cancelling on iOS

Hi,
When cancelled, the login dialog retuns « true » as a result on iOS Devices instead of false.
The bug comes from the line 94 of UserDialogService of iOS :
93 - dlg.AddAction(UIAlertAction.Create(config.OkText, UIAlertActionStyle.Default, x => config.OnResult(new LoginResult(txtUser.Text, txtPass.Text, true))));
94 - dlg.AddAction(UIAlertAction.Create(config.CancelText, UIAlertActionStyle.Default, x => config.OnResult(new LoginResult(txtUser.Text, txtPass.Text, true))));
Second line should pass false instead of true.
I absolutely have no idea how to help fixing it, I've never done a pull request unfortunately :-/

No worries.  I can fix it.  Thanks for the report

Glad I could be of some help !


Upgrade to released CRA 5

Could you please upgrade to the new CRA 5?

Yeah I'm just testing and fixing a couple of issues

Done and fixed typescript import resolution issue too.


Improve full query logging for failed queries.

Imported from http://trac.propelorm.org/ticket/1331.html

Log full sql of failed queries to propel.log in addition to the current practice of just logging the exception.
Include full sql of failed queries in thrown exception in addition to the current practice of just reporting the sql error.

I have patched 1.6.x branch with this; I just need to forward-port it to the Propel2 structure. It wasn't clean and I had to abort due to time at the moment.
https://github.com/apinstein/Propel/commit/a5ef64e8a3c3fdf8dc3bd297ea7eaab8e74425e7


[5.8] Assert that the session contains a given piece of data using a closure

Just like $response->assertViewHas() accepts a closure as a second parameter which is called to evaluate the contents of the view data, $response->assertSessionHas() could implement a similar behavior.

What are you trying to test in your application that requires this? Sessions generally only contain simple values?

Good question. I am actually storing an eloquent model in the session, so I can later retrieve it in a controller that uses Socialite. This model then will be associated with the Socialite user.
The reason I'm not storing only the id of the model is that there are multiple models that can be associated with Socialite users. E.g. App\User, App\Team. I feel this is not the best way to achieve this, but I haven't found an elegant way for this use case:
Example A: As a User I want to connect my personal Github account for myself.
Example B: As a User I want to connect my company's Github account for my Team.
In my tests I want to assert that the model in the session is the one I expect, so would like to do something like this:
// Before
$response->assertSessionHas('account');
$this->assertTrue($user->is(session('account')));

// After
$response->assertSessionHas('account', function ($account) use ($user) {
    return $customer->is($user);
});

Thank you for merging this! Do you have any better suggestions than putting eloquent models in the session for such cases?


Implement a preprocessor to improve CSS development

PeerPad is currently using PostCSS for prefixing and variables.
Adding a preprocessor could improve the experience and clarity of CSS development (for the custom CSS outside of Tachyons patterns).
Sass (most ubiquitous) is a good option or Stylus (preferred by &yet team).
Are there any concerns with adding this to the stack?

I talked with @jacobheun and we both think Stylus is the way to go. Sass isn't as reliable across multiple Node versions and what we do here could also help guide the direction the Blog goes.
We are strong and comfortable with Stylus and can help others with it.
@diasdavid @pgte @olizilla Any thoughts or objections to using Stylus here?


How to ignore properties on model if I'm not using Newtonsoft.Json

In ASP.NET Core 3.0, Newtonsoft.Json has been removed from Microsoft.AspNetCore.App, so there's no Newtonsoft.Json.JsonIgnore by default anymore. Instead, it uses System.Text.Json by default.
How can I ignore properties on model if I'm not using Newtonsoft.Json? Is there any way to config a custom ignore attribute?

Ref: https://github.com/RicoSuter/NSwag/issues/2243

System.Text.Json and Newtonsoft both have their own ignore attributes. So if you use them, you are coupled with that particular serialiser. No doubt when #2243 is done, you'd opt to use System.Text.Json and then all your generated model classes will have the appropriate attribute rather than newtonsofts.
However Newtonsoft also honours DataContract's i.e System.Runtime.Serialisation attributes - which is awesome as DataContracts are a way that models can opt properties into serialisation in a way that doesn't couple them with a particular serialiser. However microsoft have no plans to extend System.Text.Json to support System.Runtime.Serialisation data contract attributes - which imho is crazy.  https://docs.microsoft.com/en-us/dotnet/api/system.text.json.serialization.jsonignoreattribute?view=netcore-3.0
If Microsoft did do that, it would be possible for tools like NSwag to generate less serialiser specific code, as models could use data contracts.

How about the attribute BindNeverAttribute from assembly Microsoft.AspNetCore.Mvc.Core?  [BindNever] ignores the properties on the model. Give it a try!

We probably need to set the property to ignored when the System.Text.Json ignore attribute is on the property:
https://github.com/RicoSuter/NJsonSchema/blob/master/src/NJsonSchema/Generation/SystemTextJsonUtilities.cs#L56


Pretty reporter implementation

It's seems like you broke something in Exception reporting.
Please check it, for me it's more complicated, that for you :smiley:

I think I'm almost done, only need to harmonize all reporters to obtain the same kind of look and feel and I will probably merge both pretty & verbose which deserve almost the same goal.

All reporters have now the same look & feel https://github.com/crysalead/kahlan/commit/df90682214fce7e3f16e8129441275a6b898c9f2

:+1: nice work!


Add class transform to babel config

Forcing transformation of classes to cater for @tusbar/cache-control should be enough for now.
I could not really test it, as I could not build the project in Windows, but it should work.
Resolves #78  (possibly).

Hey @nolde ! Sorry for taking so much time to get back to you.
The plugin @babel/plugin-transform-classes is the right one but it needs to be passed to the plugins option of babel-loader like so:
// The complete webpack build rule
{
  test: /\.js$/,
  exclude: /node_modules/,
  use: [{
    loader: 'babel-loader',
    options: {
      presets: [
        ['@babel/preset-env', {
          useBuiltIns: 'usage',
          exclude: [
            'es6.promise',
            'web.dom.iterable',
            'es6.string.iterator',
            'es6.array.index-of',
            'es6.date.now',
            'es6.regexp.match',
            'es6.array.filter'
          ]
        }]
      ],
      plugins: ['@babel/plugin-transform-classes']
    }
  }]
}

And the plugin needs to be added to the devDependencies in package.json
npm install --save-dev @babel/plugin-transform-classes

I checked the build locally and it seems to fix the issue.
I'll do the build when making the release.
Cheers!

Hi @RasCarlito!
Are you sure this is the way it works? By reading babel-preset-env docs, the way I have done seems to be correct. I didn't add it as a dependency in your package.json because this is already a dependency of babel-preset-env, we've just forced it to be used, instead of allowing the preset to decide.
Documentation about include: https://babeljs.io/docs/en/babel-preset-env#include
If you still want me to do the change, just let me know and I'll push it in.

Right the babel docs do tell it should be possible to include the plugin via the include option of preset-env but I didn't manage to get it working 🙁
Maybe it's because of how babel-loader uses preset-env.
If you can change it to what I suggested then we can get a release with the fixes out quickly 😄
Thanks a lot for your help on this!
Cheers

Ah! It worked fine here. This is pretty weird.
Anyway, I'll do the change shortly.

Done! ;-)


Extreme degradation of existing model when running the Dreambooth script

Describe the bug
I did some testing regarding the impact of Dreambooth on different prompts, using the same seed.
Pretty much all of my tests produced results similar to this, when running running Dreambooth with class "man" and concept "johnslegers" :

Reproduction
Just run Dreambooth once, with "man" as a class and pretty much anything as a concept identifier.
Then compare output of "man" & a celebrity (eg. "Johnny Depp") of the original model with the new model. You'll notice rather extreme degradation.
I've tried using different config, but to no avail. The degradation persists. The degradation persists no matter how many input pics I use, how many class pics I use, what value I use for prior preservation, etc.
Logs
No response
System Info
The issue is system-independent.
See also https://github.com/huggingface/diffusers/issues/712

Hi, I have made some updates, Try out the new colab.

I tried it out after the updates yesterday, but I barely noticed a difference.
IMO the issue is far from fixed!

You may be using old code, I have yet to encounter overcooking in any of experiments after the update.
Do share all your training parameters and inference code.

The script I've been using can be found on https://github.com/jslegers/diffusers/blob/main/examples/dreambooth/DreamBooth_Stable_Diffusion.ipynb. It's basically just your Google Colab script with a few changes for my own convenience.
I recloned https://github.com/jslegers/diffusers from https://github.com/ShivamShrirao/diffusers yesterday to make sure the code underneath the Colab script was identical to yours, and I added the new flag to my Colab.
So everything should be up to date!
I tried several different values for number of training steps (between 800 and 3000), number of class images (between 400 and 3500), weigh loss weight (between 0.1 and 1.0), learning rate (between 5e-7 and 5e-5) and adam weight decay (between 1e-3 and 1e-2), but those only produced worse results. The rest of the parameters in the script, I believe, we the ones that produced the BEST results.

@jslegers Most of your parameters seem different to me along with having different schedulers and such. Even colab has changed a lot than yours. I suggest you try out my colab directly with it's default parametrs and report the results. Do not change any parameter in this colab. Just upload your 5-10 images and specify the class.

All parameters are default parameters except for the ones I listed...

@jslegers your inference code is also different using wrong scheduler which causes the overcooking. Just try out the new colab.

What do you mean by "wrong scheduler"?
Which parameter are we talking about?

@jslegers check the inference section of my colab.
import torch
from torch import autocast
from diffusers import StableDiffusionPipeline, DDIMScheduler
from IPython.display import display

model_path = WEIGHTS_DIR             # If you want to use previously trained model saved in gdrive, replace this with the full path of model in gdrive

scheduler = DDIMScheduler(beta_start=0.00085, beta_end=0.012, beta_schedule="scaled_linear", clip_sample=False, set_alpha_to_one=False)
pipe = StableDiffusionPipeline.from_pretrained(model_path, scheduler=scheduler, safety_checker=None, torch_dtype=torch.float16).to("cuda")

g_cuda = None

So you're replacing the scheduler with a different scheduler AFTER the training is completed?
Shouldn't this scheduler be part of the model generated by the script? Shouldn't it be integrated in the CKPT?
It makes no sense to me to have to load a different scheduler just to get the model to work normally. This should be part of the model...

@jslegers Schedulers are basically algorithms which specify how to produce the noise for the diffusion process. They aren't part of the network. They aren't trained. Idea is to be able to use any scheduler with any diffusion model. That's why you can also see many scheduler/sampler options in Automatic111's webui too. The ckpt only contains the weights(matrices), not code. Scheduler can't be part of it, it is not weights.

Every SD model has a file named scheduler_config.json in the scheduler folder that contains the configuration for the scheduler SD will be used for that model.
For example, the 1.5 release has a scheduler_config.json file with the following content :
{
  "_class_name": "PNDMScheduler",
  "_diffusers_version": "0.6.0",
  "beta_end": 0.012,
  "beta_schedule": "scaled_linear",
  "beta_start": 0.00085,
  "num_train_timesteps": 1000,
  "set_alpha_to_one": false,
  "skip_prk_steps": true,
  "steps_offset": 1,
  "trained_betas": null
}

If, to get my new model to behave nicely, I should use an DDIMScheduler with parameters beta_start=0.00085, beta_end=0.012, beta_schedule="scaled_linear", clip_sample=False and set_alpha_to_one=False, then the file scheduler_config.json of the model should contain the following content :
{
  "_class_name": "DDIMScheduler",
  "_diffusers_version": "0.6.0",
  "beta_start": 0.00085,
  "beta_end": 0.012,
  "beta_schedule": "scaled_linear",
  "clip_sample": false,
  "set_alpha_to_one": false
}

This should happen BEFORE the CKPT file is being generated, so it's baked into the CKPT file.

That is part of the diffusers format weights. The diffusers has always had PNDMScheduler as default. While I have also changed the saved scheduler for diffusers so it has been saving with DDIM scheduler, but when talking of ckpt which is then used for inference in other webuis like automatic111, it can't contain the scheduler. The CKPT is a different format than the diffusers save format you are seeing here.

If the scheduler params can't be baked into the CKPT, I prefer not to use the CKPT at all. I never did with my Dreambooth generated models anyway.
And this is also one of several reasons why I prefer my own custom variation of your script. I don't want to be forced to use the CKPT file if I don't want to. And I want to choose me own "concept" name (I've been using johnslegers so far, which should be rare enough and a better option than sks, which is a gun).
Anyway, this is the scheduler that was generated by my script and the one that produced the output I sent several comments ago :
{
  "_class_name": "PNDMScheduler",
  "_diffusers_version": "0.6.0",
  "beta_end": 0.012,
  "beta_schedule": "scaled_linear",
  "beta_start": 0.00085,
  "num_train_timesteps": 1000,
  "set_alpha_to_one": false,
  "skip_prk_steps": true,
  "steps_offset": 1,
  "trained_betas": null
}

So I WAS using the right scheduler!

@jslegers Your code must be old. As I have been saying, please just try my new colab first and then compare.
And you should use the ckpt with the webuis. They provide so many more options, the web uis decide from the many different schedulers from which u can choose along with having some good defaults. If you had used ckpt with the webuis, you likely wouldn't have gotten the overcooking issue either. I suggest you to explore more and understand what these mean.

our code must be old.

I used code from yesterday. I see it's been updated since, so I'll give it another try today.
Anyway, I just replaced the default scheduler with the scheduler you proposed and checked it on the model that provided the best output.
Johnny Depp looks even more overcooked with your scheduler :

Btw your concept name johnslegers isn't rare cause it first gets divided into tokens of common words so kinda like john-sleg-ers or something.

I see...
I guess this would explain the impact it has on Johnny Depp.
Hmmmm...
Will have to try a few other identifiers...
Will come back to this...

@jslegers I have nothing more to say until you try out the new colab with its defaults.

I made the following changes oy my Colab notebook :

I used the latest version of your repo to run the training script from
I added --pretrained_vae_name_or_path="stabilityai/sd-vae-ft-mse" to the parameters

Not sure why, but this seems to fix the issue. My Johnny Depp now looks perfectly crisp after 1100 learning steps.
I tried using both js and johnslegers as an identifier, but that didn't make any difference. The identifier johnslegers seems to work just as well as js...
The only issue I've had with this, is that the output dir for the model is now eg. johnslegers-1-5-0.16_1100 instead of `johnslegers-1-5-0.16 as is should be, which is pretty annoying. But that's something that can easily be fixed...

output_dir contains the number at the end to indicate the number of training steps as now the script also supports saving models at different step intervals.

output_dir contains the number at the end to indicate the number of training steps as now the script also supports saving models at different step intervals.

If the user chooses /content/data/sks as output dir, it doesn't make sense to have output in eg. /content/data/sks_1000, especially if they are not interested at saving at different intervals.
Why not use sub-directories? So, for example, if you want to save after 1000 and 2000 steps, you have subdirectories 1000 and 2000 of directory /content/data/sks. And if you do NOT want to save at different intervals, you no subdirectories would be needed...


Provide list of bundles when generating a demo page

Right now, the generator assumes that you have a single bundle when generating a demo page, and just links to that one.  However, it should be possible to actually use Webpack to detect all of the bundles, and provide an interface by which multiple bundles can be selected to link to.

[ ] Continues to link based on the component name for the index page (we don't have a Webpack config that can be read from at the time of creation)
[ ]  On subsequent generations, use webpack to generate a JSON file that can be read from to provide a multi-select of bundles to include

See webpack visualizer

Old "demo" concept going away in favor of using Storybook


Added stack and queue data structures.

Coverage remained the same at 100.0% when pulling 285ede605cf5c10d46f194cb1f1cd4e453c66e9b on add-stack-and-queue into 150e97441736abca9b2afd6a61f2c5eb83acb8ee on master.


Kubeadm vs Kubernetes Ansbile.

More of a question. For a production system, what are the advantages/disadvantages of using kubeadm to deploy kubernetes vs contrib/ansible?
Currently we are using terraform to create the infrastructure to aws/vsphere and use kubeadm to deploy kubernetes. I have also used contrib/ansible to deploy to CentOs vms and now considering  which option to choose.

@smenon78 Were you able to decide on this? Currently there is kubespray as well that adds to the confusion. Also read somewhere that Kubeadm shouldnt be used in production.


refactor(providers): treat failed transaction as successful inclusion result in PendingInclusion

Description
A failed transaction is still an inclusion in a block. Simplifies error handling: instead of having to look for a failed receipt via error matching, you now always get a receipt as long as the tx has been included.

Solution

#99  👈
master

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @ArtificialPB and the rest of your teammates on  Graphite


Avoid coerceContractId

While looking for uses of coerceContractId as part of https://github.com/digital-asset/daml/issues/17450, I found a single one in this repo, but it turns out that the stronger-typed fromInterfaceContractId works just fine because interface Lockable requires interface Disclosure
Since I don't have permission to push to this repo, I had to push to my fork. Please feel free to copy the changes and open a new PR from this repo if needed for CI.

Opened https://github.com/digital-asset/daml-finance/pull/1072


Editor choices.

Offer choice of editors. Options to include Eclipse, QTCreator, Atom, Vim, Gedit, Nano, etc.
Pre-loading config.lua when first used is preferred.

All but QTCreator as that loads a ton of libs we don't need bloating the box (IMHO)
I added atom in latest 1.4.1 code and will have on basebox soon.

Agreed. QTCreator is included in debian repos and is a rare choice. Users that desire this choice will know how to find it.
sudo apt-get install qtcreator
Resolved.


Remove aad and b2c auto-configuration conditional on resource conditions

The current implementation of aad and b2c starter comes with an *.enable.config, which is not very neat for a starter project. But aad and b2c starter doesn't like other data plane sdk's starter, which could derive a condition, @ConditionalOnClass(***Client.class), so in this PR I added two opt-in switches for aad and b2c autoconfiguration.

Chose the wrong targeting branch, will create a new one.


setup-hangs-fails-at-final-step-3

Having the same problem as this person
http://superuser.com/questions/777811/trovebox-openphoto-setup-hangs-fails-at-final-step-3
Followed all the advice.  Yours, the "good" answer.
Used your 3 minute script on ubuntu 14.04 with latest Apache and Php5.
Phpinfo confirms mcrypt loaded.
ownership good on three directories set in script
all good with databse,  recreated it and user to be sure.
(have serveral other mysql/php based installs including recent wordpress)
From apache logs:Doesn't seem to be getting the info from put in to page 2.
No errors in mysql log because of missing variable values I suppose
[Fri Mar 27 00:54:07.111737 2015] [:error] [pid 17430] [client <IP_ADDRESS>:35005] PHP Notice:  Undefined variable: mySqlHost in /var/www/openphoto/src/templates/setup.php on line 99, referer: http://photos.duranguito.org/setup/2
[Fri Mar 27 00:54:07.111770 2015] [:error] [pid 17430] [client <IP_ADDRESS>:35005] PHP Notice:  Undefined variable: mySqlUser in /var/www/openphoto/src/templates/setup.php on line 102, referer: http://photos.duranguito.org/setup/2
[Fri Mar 27 00:54:07.111784 2015] [:error] [pid 17430] [client <IP_ADDRESS>:35005] PHP Notice:  Undefined variable: mySqlPassword in /var/www/openphoto/src/templates/setup.php on line 105, referer: http://photos.duranguito.org/setup/2
[Fri Mar 27 00:54:07.111798 2015] [:error] [pid 17430] [client <IP_ADDRESS>:35005] PHP Notice:  Undefined variable: mySqlDb in /var/www/openphoto/src/templates/setup.php on line 108, referer: http://photos.duranguito.org/setup/2
[Fri Mar 27 00:54:07.111811 2015] [:error] [pid 17430] [client <IP_ADDRESS>:35005] PHP Notice:  Undefined variable: mySqlTablePrefix in /var/www/openphoto/src/templates/setup.php on line 111, referer: http://photos.duranguito.org

All other than the three directories set in the script are set root:root.   Is that ok?
Deleted openphoto folder and reran the script without --quiet.  All seems good.  Issue persists.

Most failures on this page are due to missing extensions (e.g. mcrypt, oauth) or failure to connect to MySQL. If localhost doesn't work, try <IP_ADDRESS>. Ensure the DB is empty. If you're running MySQL on a non-standard port (e.g. not 3306), add this to the setup page.
Depending on your config, check php_error.log  for any exceptions caught via EPI. This will include enough information to troubleshoot the cause of failure.

(e.g. mcrypt, oauth)
both loaded confirmed by phpinfo and looking in php5 directory

or failure to connect to MySQL. If localhost doesn't work, try <IP_ADDRESS>.
tried both, I use localhost in all my other php/msql installs and that
works.

Ensure the DB is empty.
checked.

running on standard port

If you're running MySQL on a non-standard port (e.g. not 3306), add this
to the setup page.

Depending on your config, check php_error.log for any exceptions caught
via EPI. This will include enough information to troubleshoot the cause of
failure.

errors below but above this is the errors I already shared which indicate
that that the database values are not getting lifted from the form on
page two and or not getting written before getting used to create the
database tables. This is confirmed by these errors where FROM in sql has no
value.   Am I having a write permission problem?  I checked userdata and
userdata/config folder has owner:group www-data:www-data
This is becoming a time suck.  Can I just do this manually?  I see a
template.ini in configs folder.  If I fill that out to what name/where do I
save it (userdata/config?) ?   How do I run the sql statement to generate
the tables? then how to to turn off the setup pages from loading?
As I mentioned I have several other apache/php/mysql web app installs on
this server with no write/install issues including wordpress.
*Notice*: curl_setopt(): CURLOPT_SSL_VERIFYHOST no longer accepts the value
1, value 2 will be used instead in
*/var/www/openphoto/src/libraries/external/aws/lib/requestcore/requestcore.class.php*
on line *613*

*Notice*: curl_setopt(): CURLOPT_SSL_VERIFYHOST no longer accepts the value
1, value 2 will be used instead in
*/var/www/openphoto/src/libraries/external/aws/lib/requestcore/requestcore.class.php*
on line *613*

*Fatal error*: Uncaught exception 'EpiDatabaseQueryException' with message
'Query error: SQLSTATE[42S02]: Base table or view not found: 1146 Table
'trovebox.user' doesn't exist - SELECT * FROM `user` WHERE `id`=:owner ' in
/var/www/openphoto/src/libraries/external/epi/EpiException.php:13 Stack
trace: #0
/var/www/openphoto/src/libraries/external/epi/EpiDatabase.php(120):
EpiException::raise(Object(EpiDatabaseQueryException)) #1
/var/www/openphoto/src/libraries/external/epi/EpiDatabase.php(79):
EpiDatabase->prepare('SELECT * FROM `...', Array) #2
/var/www/openphoto/src/libraries/adapters/DatabaseMySql.php(922):
EpiDatabase->one('SELECT * FROM `...', Array) #3
/var/www/openphoto/src/libraries/models/User.php(246):
<EMAIL_ADDRESS>#4
/var/www/openphoto/src/libraries/models/User.php(159):
<EMAIL_ADDRESS>#5
/var/www/openphoto/src/html/assets/themes/fabrizio1.0/templates/partials/titles.php(9):
<EMAIL_ADDRESS>#6
/var/www/openphoto/src/libraries/ in
*/var/www/openphoto/src/libraries/external/epi/EpiException.php* on line

*13```*

With your preferred MySQL tool, connect to the EC2 DB from your machine using the same credentials and database. Drop any existing tables which exist. Try creating a table to verify permissions. If all is good, setup should work. However, the manual approach, should all else fail:

Can I just do this manually?  I see a
template.ini in configs folder.  If I fill that out to what name/where do I
save it (userdata/config?) ?   How do I run the sql statement to generate
the tables? then how to to turn off the setup pages from loading?

On local dev, do the install, SQL dump the database and backup /userdata/configs/%host%.ini .
Copy this file to the EC2 instance and rename %host% to match the server's hostname.
Import the SQL database and the setup process will be bypassed.

For this to work, MySQL credentials on dev/ec2 need to match, since they're written encrypted in site.ini

don't have a local lamp installed.  No SQL available to generate database?
On Sat, Mar 28, 2015 at 10:56 AM, nakedgun<EMAIL_ADDRESS>wrote:

With your preferred MySQL tool, connect to the EC2 DB from your machine
using the same credentials and database. Drop any existing tables which
exist. Try creating a table to verify permissions. If all is good, setup
should work. However, the manual approach, should all else fail:
Can I just do this manually? I see a template.ini in configs folder. If I
fill that out to what name/where do I save it (userdata/config?) ? How do I
run the sql statement to generate the tables? then how to to turn off the
setup pages from loading?

On local dev, do the install, SQL dump the database and backup
/userdata/configs/%host%.ini .
Copy this file to the EC2 instance and rename %host% to match the
server's hostname.
Import the SQL database and the setup process will be bypassed.

For this to work, MySQL credentials on dev/ec2 need to match, since
they're written encrypted in site.ini
—
Reply to this email directly or view it on GitHub
https://github.com/photo/frontend/issues/1572#issuecomment-87274073.

--
Cheers, Cuidate, TTFN http://www.youtube.com/watch?v=5Gu50vq5ux4
David

ok, did a local lamp install.  Now database tables are created but page 3
gives 500 error and no ini file written in /userdata/configs
beyond mysql and S3 entries what else needs to be filled in in the
template.ini
Honestly, not very confident that trovebox will work once I follow your
last instructions given this install is pretty much a failure.  Any
thoughts on why?  Some particular issue with Ubuntu lamp?
On Sun, Mar 29, 2015 at 7:11 AM, David Kebler<EMAIL_ADDRESS>wrote:

don't have a local lamp installed.  No SQL available to generate database?
On Sat, Mar 28, 2015 at 10:56 AM, nakedgun<EMAIL_ADDRESS>wrote:

With your preferred MySQL tool, connect to the EC2 DB from your machine
using the same credentials and database. Drop any existing tables which
exist. Try creating a table to verify permissions. If all is good, setup
should work. However, the manual approach, should all else fail:
Can I just do this manually? I see a template.ini in configs folder. If
I fill that out to what name/where do I save it (userdata/config?) ? How do
I run the sql statement to generate the tables? then how to to turn off the
setup pages from loading?

On local dev, do the install, SQL dump the database and backup
/userdata/configs/%host%.ini .
Copy this file to the EC2 instance and rename %host% to match the
server's hostname.
Import the SQL database and the setup process will be bypassed.

For this to work, MySQL credentials on dev/ec2 need to match, since
they're written encrypted in site.ini
—
Reply to this email directly or view it on GitHub
https://github.com/photo/frontend/issues/1572#issuecomment-87274073.

--
Cheers, Cuidate, TTFN http://www.youtube.com/watch?v=5Gu50vq5ux4
David

--
Cheers, Cuidate, TTFN http://www.youtube.com/watch?v=5Gu50vq5ux4
David

@dkebler what's in your error log when you receive the 500?

@dkebler hi, I am also facing the same issue. Did you find a solution to that ?

The setup script does not enable mycrpt.so , (fixed)
With the DB user in question having complete access. setup fails.
"<IP_ADDRESS>           | root             | *0F95AFF51C9ACE907CA57DAEB3404D97675A0117 | Y           | Y           | Y           | Y           | Y           | Y         | Y           | Y             | Y            | Y         | Y          | Y               | Y          | Y          | Y            | Y          | Y                     | Y                | Y            | Y               | Y                | Y                | Y              | Y                   | Y                  | Y                | Y "
The database setup, appears to fails due to the user table not existing. Before its actually created.

Devops FTW.
I found the SQL that is not provided anywhere in the source, Enclosed in PHP tags and using PHP vars
/var/www/openphoto/src/configs/upgrade/db/mysql/mysql-base.php
I stripped the PHP completely and came up with this,
https://gist.github.com/russmac/a4498037c8300b717b56
Piping this to my DB encountered errors,
root@photoxx:/var/www# mysql photos < trovebox.sql -p
Enter password:
ERROR 1064 (42000) at line 125: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'group (
id varchar(6) NOT NULL,
owner varchar(127) NOT NULL,
`ac' at line 1
Hamburgers! So I inspected the DB and saw that the other tables WERE being generated.
This gave me an idea, to just use the users table.
mysql>   CREATE TABLE IF NOT EXISTS user (
->    id varchar(255) NOT NULL COMMENT 'User''s email address',
->    password varchar(64) NOT NULL,
->    extra text NOT NULL,
->    timestamp timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
->    PRIMARY KEY (id)
->   ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Query OK, 0 rows affected (0.01 sec)
BAM , I was sure it would work now .
[Sat May 09 04:25:06.775178 2015] [:error] [pid 26855] [client <IP_ADDRESS>:19548] {severity:crit, description:"SQLSTATE[HY000] [2005] Unknown MySQL server host '<IP_ADDRESS>:3306' (0)", additional:}, referer: http://photo.private.net/setup/3
[Sat May 09 04:25:06.775529 2015] [:error] [pid 26855] [client <IP_ADDRESS>:19548] {severity:warn, description:"Query error: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry<EMAIL_ADDRESS>for key 'PRIMARY' - INSERT INTO user (id,password,extra) VALUES (:id,:password,:extra)", additional:}, referer: http://photo.private.net/setup/3
[Sat May 09 04:25:07.196306 2015] [:error] [pid 26855] [client <IP_ADDRESS>:19548] PHP Notice:  Undefined variable: mySqlHost in /var/www/openphoto/src/templates/setup.php on line 99, referer: http://photo.private.net/setup/3
[Sat May 09 04:25:07.196321 2015] [:error] [pid 26855] [client <IP_ADDRESS>:19548] PHP Notice:  Undefined variable: mySqlUser in /var/www/openphoto/src/templates/setup.php on line 102, referer: http://photo.private.net/setup/3
[Sat May 09 04:25:07.196326 2015] [:error] [pid 26855] [client <IP_ADDRESS>:19548] PHP Notice:  Undefined variable: mySqlPassword in /var/www/openphoto/src/templates/setup.php on line 105, referer: http://photo.private.net/setup/3
[Sat May 09 04:25:07.196330 2015] [:error] [pid 26855] [client <IP_ADDRESS>:19548] PHP Notice:  Undefined variable: mySqlDb in /var/www/openphoto/src/templates/setup.php on line 108, referer: http://photo.private.net/setup/3
[Sat May 09 04:25:07.196334 2015] [:error] [pid 26855] [client <IP_ADDRESS>:19548] PHP Notice:  Undefined variable: mySqlTablePrefix in /var/www/openphoto/src/templates/setup.php on line 111, referer: http://photo.private.net/setup/3
[Sat May 09 04:25:07.264825 2015] [:error] [pid 26855] [client <IP_ADDRESS>:19548] PHP Notice:  Undefined variable: mySqlHost in /var/www/openphoto/src/templates/setup.php on line 99, referer: http://photo.private.net/setup/3
[Sat May 09 04:25:07.264837 2015] [:error] [pid 26855] [client <IP_ADDRESS>:19548] PHP Notice:  Undefined variable: mySqlUser in /var/www/openphoto/src/templates/setup.php on line 102, referer: http://photo.private.net/setup/3
[Sat May 09 04:25:07.264842 2015] [:error] [pid 26855] [client <IP_ADDRESS>:19548] PHP Notice:  Undefined variable: mySqlPassword in /var/www/openphoto/src/templates/setup.php on line 105, referer: http://photo.private.net/setup/3
[Sat May 09 04:25:07.264847 2015] [:error] [pid 26855] [client <IP_ADDRESS>:19548] PHP Notice:  Undefined variable: mySqlDb in /var/www/openphoto/src/templates/setup.php on line 108, referer: http://photo.private.net/setup/3
[Sat May 09 04:25:07.264851 2015] [:error] [pid 26855] [client <IP_ADDRESS>:19548] PHP Notice:  Undefined variable: mySqlTablePrefix in /var/www/openphoto/src/templates/setup.php on line 111, referer: http://photo.private.net/setup/3
[Sat May 09 04:25:07.333280 2015] [:error] [pid 26855] [client <IP_ADDRESS>:19548] PHP Notice:  Undefined variable: mySqlHost in /var/www/openphoto/src/templates/setup.php on line 99, referer: http://photo.private.net/setup/3
[Sat May 09 04:25:07.333291 2015] [:error] [pid 26855] [client <IP_ADDRESS>:19548] PHP Notice:  Undefined variable: mySqlUser in /var/www/openphoto/src/templates/setup.php on line 102, referer: http://photo.private.net/setup/3
[Sat May 09 04:25:07.333296 2015] [:error] [pid 26855] [client <IP_ADDRESS>:19548] PHP Notice:  Undefined variable: mySqlPassword in /var/www/openphoto/src/templates/setup.php on line 105, referer: http://photo.private.net/setup/3
[Sat May 09 04:25:07.333300 2015] [:error] [pid 26855] [client <IP_ADDRESS>:19548] PHP Notice:  Undefined variable: mySqlDb in /var/www/openphoto/src/templates/setup.php on line 108, referer: http://photo.private.net/setup/3
[Sat May 09 04:25:07.333304 2015] [:error] [pid 26855] [client <IP_ADDRESS>:19548] PHP Notice:  Undefined variable: mySqlTablePrefix in /var/www/openphoto/src/templates/setup.php on line 111, referer: http://photo.private.net/setup/3
It didnt, Hamburgers. However it DID produce a shitload of different errors.
So I did the devops things and tried something completely different, I tried entering a non existent DB from the same browser session, Considernig different erros from the last attempt would have parsed more code and therefor the actions would have a slighttly different namespace exposed at the very least.
And it worked. I was able to upload to s3 through the UI.

Delete me.

Alternatively use the install script which I fixed and submitted a pull request for.
https://github.com/russmac/frontend/commit/66c2440778830d0e7f55fadc6d5cdf8192522a6b
https://github.com/russmac/frontend/blob/master/documentation/guides/InstallationUbuntuApache.sh

Would like to better understand the issue here. It looks like it fails at 'User::getNameFromEmail()` which shouldn't be called yet (I don't think). It should only be called if you have a session and you shouldn't yet in the setup unless.
Can you confirm if this error came up after you already tried to set Trovebox up unsuccessfully?

Yes I can confirm that if the setup fails subsequent tries with the same e-mail address will also fail. The only way is to manually delete the user entry from the mysql database or try again with a different e-mail address:

[Tue May 26 16:27:46.643249 2015] [:error] [pid 27686] [client x.x.x.x:60662] {severity:warn, description:"Query error: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry<EMAIL_ADDRESS>for key 'PRIMARY' - INSERT INTO `user` (`id`,`password`,`extra`) VALUES (:id,:password,:extra)", additional:}, referer: http://x.x.x.x/setup/3 ```