CI build fixes

Task summary

Some CI builds have been failing for a variety of reasons. Let's look into them and clean them up.
Specification reference

[ ] Fix MacOS builds
[x] Fix Nightly builds

Other information and links

https://github.com/ChainSafe/forest/pull/1154#issuecomment-858810412
https://github.com/ChainSafe/forest/blob/0bd3bc9b8d50b6e740dbca04213430ad8b5961e3/.circleci/config.yml#L289-L300

Thanks to Eric's CI fix in #1163 CI nightly is fixed. MacOS is low priority, so I'm gonna close this to reduce clutter. Feel free to open and rename if MacOS CI builds are ever needed.


react-server-cli should run help without local react-server

The help is what you would want to read to find out that you need a locally-installed react-server.
dougwade packages/generator-react-server ‹dont-run-bower*› » react-server-cli --help                                                                                1 ↵
module.js:327
    throw err;
    ^

Error: Cannot find module 'react-server'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/react-server-cli/target/startServer.js:15:20)
    at Module._compile (module.js:409:26)
    at Module._extensions..js (module.js:416:10)
    at Object.require.extensions.(anonymous function) [as .js] (/usr/local/lib/node_modules/react-server-cli/node_modules/babel-register/lib/node.js:166:7)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
dougwade packages/generator-react-server ‹dont-run-bower*› » react-server-cli -?                                                                                1 ↵
zsh: no matches found: -?
dougwade packages/generator-react-server ‹dont-run-bower*› » react-server-cli -\?                                                                                1 ↵
module.js:327
    throw err;
    ^

Error: Cannot find module 'react-server'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/react-server-cli/target/startServer.js:15:20)
    at Module._compile (module.js:409:26)
    at Module._extensions..js (module.js:416:10)
    at Object.require.extensions.(anonymous function) [as .js] (/usr/local/lib/node_modules/react-server-cli/node_modules/babel-register/lib/node.js:166:7)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)

Yes!

I think this was fixed in https://github.com/redfin/react-server/pull/484
dougwade ~ » react-server --help
Usage: react-server <command> [options]

Commands:
  start     Start the server
  compile   Compile static assets
  init      Initialize a React Server site
  add-page  Add a page to an existing site

Options:
  --routes-file        The routes file to load. Default is 'routes.js'.
  -p, --port           Port to start listening for react-server. Default is 3000
                       .
  --host               Hostname to start listening for react-server     [string]
  --js-port            Port to start listening for react-server's JavaScript.
                       Default is 3001.
  --https              If true, the server will start up using https with a self
                       -signed certificate. Note that browsers do not trust self
                       -signed certificates by default, so you will have to
                       click through some warning screens. This is a quick and
                       dirty way to test HTTPS, but it has some limitations and
                       should never be used in production. Requires OpenSSL to
                       be installed. Default is false.                 [boolean]
  --https-key          Start the server using HTTPS with this private key file
                       in PEM format. Requires https-cert to be set as well.
                       Default is none.                                 [string]
  --https-cert         Start the server using HTTPS with this cert file in PEM
                       format. Requires https-key to be set as well. Default is
                       none.                                            [string]
  --https-ca           Start the server using HTTPS with this certificate
                       authority file in PEM format. Also requires https-key and
                       https-cert to start the server. Default is none.
                                                                        [string]
  --https-pfx          Start the server using HTTPS with this file containing
                       the private key, certificate and CA certs of the server
                       in PFX or PKCS12 format. Mutually exclusive with https-
                       key, https-cert, and https-ca. Default is none.  [string]
  --https-passphrase   A passphrase for the private key or pfx. Requires https-
                       key or https-pfx to be set. Default is none.     [string]
  -h, --hot            Load the app so that it can be hot reloaded in the
                       browser. Default is false in production mode, true
                       otherwise.                                      [boolean]
  -m, --minify         Optimize client JS when option is present. Takes a bit
                       longer to compile. Default is true in production mode,
                       false otherwise.                                [boolean]
  --long-term-caching  Use long-term cache headers for the static JS & CSS files
                       . Default is true in production mode, false otherwise.
                                                                       [boolean]
  --log-level          Set the severity level for the logs being reported.
                       Values are, in ascending order of severity: 'debug', '
                       info', 'notice', 'warning', 'error', 'critical', 'alert
                       ', 'emergency'. Default is 'notice' in production mode, '
                       debug' otherwise.                                [string]
  --timing-log-level   Set the severity level for the timing logs. Values are,
                       in ascending order of verbosity: 'none', 'slow', 'fine
                       ', 'fast. Default is 'none' in production mode, 'fast'
                       otherwise.                                       [string]
  --gauge-log-level    Set the severity level for the gauge logs. Values are, in
                       ascending order of severity: 'no', 'hi', 'lo', 'ok'.
                       Default is 'no' in production mode, 'ok' otherwise.
                                                                        [string]
  --compile-only       Compile the client JavaScript only, and don't start any
                       servers. This is what you want to do if you are building
                       the client JavaScript to be hosted on a CDN. Unless you
                       have a very specific reason, it's almost alway a good
                       idea to only do this in production mode. Defaults to
                       false.                                          [boolean]
  --js-url             A URL base for the pre-compiled client JavaScript.
                       Setting a value for jsurl means that react-server-cli
                       will not compile the client JavaScript at all, and it
                       will not serve up any JavaScript. Obviously, this means
                       that --jsurl overrides all of the options related to
                       JavaScript compilation: --hot, --minify, and --
                       bundleperroute.                                  [string]
  --stats              Output webpack stats to __clientTemp/build/stats.json.
                       Recommended for use with webpack-bundle-size-analyzer.
                                                      [boolean] [default: false]
  -?, --help           Show help                                       [boolean]

Indeed.  Thanks @doug-wade.


"exports is not defined" With Next.js edge runtime functions

Hi there,
I'm using Next.js api, with an edge runtime. When I set up an API handler like this:
// pages/api/bot.ts
import { Bot } from "grammy/web";
import { NextResponse } from "next/server";

export const runtime = "edge";

export default async function handler() {
	new Bot("<token>");

	return new NextResponse("Success", { status: 200 });
}

When accessing the route, I get this server error:
ReferenceError: exports is not defined

This error happened while generating the page. Any console logs will be displayed in the terminal window.
Call Stack
<unknown>
webpack-internal:///(middleware)/./node_modules/grammy/out/web.mjs (4)
eval
webpack-internal:///(middleware)/./node_modules/grammy/out/web.mjs (4:23)

This is related how cjs modules are exported and how it works with edge. Maybe it has to do with swc bundling.
Repo with the error reproduction: https://github.com/va3y/grammy-next-edge

Create a next.js issue as well. But my guess is that it can be fixable on the library side as well. If there is a way to access module.exports, instead of exports

Can you describe the steps that are necessary to reproduce this problem based on the repo?
Alternatively, can you explain what the service expects of the module and what grammY does, i.e. what we need to change in order to fix this?

My bad, please repull main branch. I've forgot to push fully.
How to get error:

Branch main, run npm run dev
Access http://localhost:3000/api/bot

I've noticed that on next edge runtime, they don't have exports variable accessible as global.
import { NextResponse } from "next/server";

export const runtime = "edge";

export default async function handler() {
	console.log(module); // OK
	console.log(module.exports); // OK

	console.log(exports); // ReferenceError: exports is not defined
}

My guess is that code may access it from the grammy/web somehow. Might be the bundler. I'll try to dig deeper, but I'm not that knowledgable about Deno bundling.

It's an ES module. You can just look at the code inside. It uses export { Bot as Not } syntax.

Is this fixed?

No, still there unfortunately. Right now I duck-taped it with manually importing the bundled .mjs file with 'exports' removed

@PonomareVlad is this the type of challenge you would like to tackle? 🤓

@KnorpelSenf I drowned in urgent tasks, I really want to get back to work on grammY, but in the coming days (or weeks) I doubt that I will be free 🥲

Hehe alright, good luck with the other stuff :D
This issue is currently tracked at https://github.com/vercel/next.js/issues/51313, as well. I think that the people there know a lot more about how their runtime works. You'll need to provide a complete reproduction example for them. I will close this issue in favour of the other one.
If you end up finding out that grammY is broken and your setup is correct, and we thus have to adjust something in grammY, please open a new issue. The comment at https://github.com/vercel/next.js/issues/51313#issuecomment-1594888767 seems to imply that the web build grammY is correct, so I don't yet see what we would have to do here.

Is this issue completed? I'm still seeing the error.

Here is a basic reproduction. https://github.com/maccman/grammyjs-nextjs-edge-bug

I have working TypeScript example for Edge Runtime using /api functions
@maccman How this is different from your setup ?

My guess is that something is up with the package.json configuration. I found it's quite a dark art to get it working, but for example I suspect you're missing some exports or typesVersions.
  "main": "./dist/reflect-editor.js",
  "module": "./dist/reflect-editor.js",
  "types": "./dist/reflect-editor.d.ts",
  "exports": {
    ".": {
      "types": "./dist/reflect-editor.d.ts",
      "import": "./dist/reflect-editor.js",
      "default": "./dist/reflect-editor.js"
    },
    "./lite": {
      "types": "./dist/reflect-editor-lite.d.ts",
      "import": "./dist/reflect-editor-lite.js",
      "default": "./dist/reflect-editor-lite.js"
    },
    "./reflect-editor-static": {
      "types": "./dist/reflect-editor-static.d.ts",
      "import": "./dist/reflect-editor-static.js",
      "default": "./dist/reflect-editor-static.js"
    },
    "./dist/styles.css": {
      "default": "./dist/styles.css"
    }
  },
  "typesVersions": {
    "*": {
      "lite": [
        "dist/reflect-editor-lite.d.ts"
      ],
      "reflect-editor-static": [
        "dist/reflect-editor-static.d.ts"
      ]
    }
  },

Is this issue completed? I'm still seeing the error.

No. Did you read my last comment?

@va3y and @maccman can you test Edge build using #501 ?
{
    "dependencies": {
        "grammy": "npm<EMAIL_ADDRESS>    }
}

Also you can check this template for Next.js using /app directory

@abigpotostew and, what about this example ?

@abigpotostew and, what about this example ?

This example does not work for me with the latest version of grammy 1.22.4. It does work with your branch npm<EMAIL_ADDRESS>


Add multi_turn_dialog dataloader.

Add a multi_turn_dialog dataloader and its unit test.
Add .pyc and .swp to .gitignore file.

CodeFactor found multiple issues last seen at 4038a4f224c4fdf8ce4fc24504b7518b7922bc79:
Cell variable turn defined in loop
contk\dataloader\multi_turn_dialog.py:152
contk\dataloader\multi_turn_dialog.py:152

delete .pyc files


Rubinious build fail on OS X 10.10.5

I install with llvm35 and it gives some error.
Dumps that I believe are important:
vm/llvm/disassembler.cpp:77:27: error: allocating an object of abstract class type 'rubinius::JITMemoryObject'
      memory_object = new JITMemoryObject((const uint8_t*)buffer, (uint64_t) size);
                          ^
vm/llvm/disassembler.cpp:115:62: error: no member named 'getInstrInfo' in 'llvm::TargetMachine'
    const llvm::TargetInstrInfo* inst_info = target_machine->getInstrInfo();
                                             ~~~~~~~~~~~~~~  ^
vm/llvm/disassembler.cpp:124:39: error: no viable conversion from 'const rubinius::JITMemoryObject' to 'ArrayRef<uint8_t>'
                                      *memory_object, instruction_pointer,
                                      ^~~~~~~~~~~~~~

Sorry, wrong place for raising issue.


Development docs.

Trying to add a new provider, and I'm really struggling with the development workflow. Any chance someone could put together a short "getting started" guide?
I'm building with go run build/main.go fortios, I've put together some code for basic provider init, then  - then using the resulting binary to try to import my resources.
I run terraformer-fortios import list and get help text (no resources listed).
I run go build -v and then  ./terraformer import fortios list - and get help text. It appears my provider wasn't built.
Probably missing something fundamental, but a simple walkthrough would be very helpful and appreciated.

I've got no experience in this either so might be completely wrong, but it seems that you need to expose possible commands and what you provider does manually as done for others under cmd/, e.g. https://github.com/GoogleCloudPlatform/terraformer/blob/master/cmd/provider_cmd_aws.go
and then you need to add it here: https://github.com/GoogleCloudPlatform/terraformer/blob/fe17310bbb934d01c2b8378707884184e5d48336/cmd/root.go#L39 for cmd to discover it and add necessary sub-commands.


GenericSchema where TOutput does not default to TInput

Currently, the GenericSchema uses TOutput = TInput in the generics.
Only providing <TInput> forces the input and output type to be identical, unless TOutput is specified.
Would it be possible to:

check if the TInput is compatible with the schema
and use the schema output as the TOutput type?

import { GenericSchema, minLength, object, pipe, string, transform } from 'valibot';

const formObject = {
  userId: '' as FormDataEntryValue | null,
};

// Works
const Schema1 = object({
  userId: pipe(string(), minLength(2)),
}) satisfies GenericSchema<typeof formObject>;

// Works
const Schema2 = object({
  userId: pipe(
    string(),
    transform((v) => Number(v)),
  ),
}) satisfies GenericSchema<Record<keyof typeof formObject, unknown>>;

//  Type 'number' is not assignable to type 'FormDataEntryValue | null'.
const Schema3 = object({
  userId: pipe(
    string(),
    transform((v) => Number(v)),
  ),
}) satisfies GenericSchema<typeof formObject>;

I would change it to GenericSchema<typeof formObject, unknown> since you probably don't care about the output in this case.

Thanks! Added to the @hyunbinseo/tools documentation:

https://github.com/hyunbinseo/tools?tab=readme-ov-file#formdata-to-object-with-types
https://github.com/hyunbinseo/tools/commit/79b32f5dac0bbe328ed36882f520768d33d90fc3


Add File event not firing in Laravel

Type of issue

[x] Bug report
[ ] Feature request

Uploader type

[x] Traditional
[ ] S3
[ ] Azure

Note: Support requests cannot be accepted due to lack of time.

Bug Report
Fine Uploader version
5.15.0
Browsers where the bug is reproducible
Firefox and Chrome
Operating systems where the bug is reproducible
Windows 10
Exact steps required to reproduce the issue

Create new laravel project
npm install fine-uploader
Add require code to app.js
Add template code to view
npm run dev

All relevant Fine Uploader-related code that you have written
var qq = require('fine-uploader');

var uploader = new qq.FineUploader({
    debug: true,
    element: document.getElementById('uploader')
});

Your Fine Uploader template markup (if using Fine Uploader UI and the issue is UI-related)

		<form id="upload" method="post" class="col-md-12">

Upload

				Name
				<input type="text" class="form-control" id="name" placeholder="Video Name">

				Description
				<textarea class="form-control" id="description" rows="3"></textarea>

		</form>

Detailed explanation of the problem
I'm writing a project in Laravel and am trying to get Fine Uploader working through webpack. When I put everything together, Fine Uploader seems to grab a hold of the template and set everything up as evidenced by:
[Fine Uploader 5.15.0] Parsing template  app.js:70781:21
[Fine Uploader 5.15.0] Template parsing complete  app.js:70781:21
[Fine Uploader 5.15.0] Rendering template in DOM.  app.js:70781:21
[Fine Uploader 5.15.0] Template rendering complete

in the log, but when I add a file, nothing happens, no console errors no networks requests, nothing.
When I add the fine-uploader.js file to the page and call it manually it works, but using webpack it doesn't seem to.

I believe this is down to my lack of knowledge with JS, not a bug.


Don't use duplicate keysin the NPDM-json format

Currently, the NPDM-JSON format abuses duplicate keys where it should be using arrays instead. While cJSON supports this, most JSON parsers don't. This is causing issues for me currently when building linkle as serde-json (a deserializer for JSON in rust) doesn't support this. While I could probably fix that issue in serde-json, I think moving to a saner format using JSON arrays is a better idea.
This PR will be accompanied by a fix in Atmosphere's boot_100.json/boot_200.json (which seem to be the only users of the offending keys), and a hactool fix.
(There's also an error handling fix in elf2kip snugged in here)
CC @SciresM
Atmosphere PR: https://github.com/Atmosphere-NX/Atmosphere/pull/211
Hactool PR: Comes tomorrow.

I'd personally object to this -- duplicate keys don't conflict with the JSON standard, and allow for greater clarity/better representation of the underlying descriptor output.

I feel very strongly about this. While it's true the JSON standard says nothing about duplicate keys, The JavaScript Object Notation (JSON) Data Interchange Format) (RFC7159) says: "The names within an object SHOULD be unique." Justification is provided in the very link you gave.
I'd also argue it is not clearer at all. Take the IRQs for instance: They're not clearer. You want to accept a list of irqs, the pairing up is just an implementation detail of the NPDM format, which allows for two irqs per entry simply because there was enough bit space. There's 0 reason to reflect that in the JSON. Furthermore, if someone really wanted to, they could use 0x3FF in the array. The only thing you cannot do is intersperse different kinds of KACs.
Furthermore, this is a problem because tools that inspect NPDMs output by hactool will not be able to get, for instance, the list of IRQs used, or maps taken, unless they can somehow get the duplicate keys. Most implementations can't. cJSON really is an outlier here. The JSON parser integrated in JS can't even get those.
Please reconsider this.

Will reopen a new PR which parses JSON formatted such as https://pastebin.com/afbmnCmi


Update scripts to use the new packages.json format

After this https://github.com/valory-xyz/open-aea/pull/423

Addressed https://github.com/valory-xyz/open-autonomy/pull/1535


#48in24: Sync roman-numerals

[x] Run bin/configlet sync -u -e roman-numerals --yes --docs --filepaths --metadata --tests include (updates the Markdown files and maybe tests.toml)
[x] Drop strict types comments from test file and example code (these are useless)
[x] Add and sync test meta data to tests (uuid / @testdox in DocBlocks)
[x] Decide on adding / adjusting / ordering test cases to match current problem specs

roman-numerals: missing 7 test cases
Missing tests.toml file?

Do not redesign the student's interface or add test cases that would invalidate existing community solutions. These are extra tasks, which should be discussed in advance.

Test were added and community solutions are re-tested. The new test cases should not invalidate any good solution.


Enhancement idea: support user authentication with LDAP

I was looking around for something to serve my static files, and I really like droppy. What currently is missing for my needs is to authenticate users with LDAP. Do you plan to support this feature in a foreseable future? Thanks!

Would love to see this added as well!

If there is a Node.js module that abstracts multiple authentication mechanisms like LDAP, OAUTH etc. into a simple function call, I would consider it.

We are using droppy for some internal stuff, and its great, but I need active directory authentication! have you looked any further into this?

would this work?
https://www.npmjs.com/package/passport-ldapauth

Is there a way currently to hook in custom auth code? I'd mainly need overriding the login url, letting my code respond to the login page URL and some way to set the details for the logged in user if the login succeeds.

Would love either LDAP auth or to secure files/folders to the user/profile in a setting that can be available to the admin account only, otherwise this is a great app! thank you so very much!


Visualise number of NTC reads if a variant has been seen in NTC

fixed in issue12 branch

Completed in #18


UTC offset wrong time

I'm on Bogota (UTC -5) but when I pick -5 on the offset , the clock says it's 13:21 while the time is 12:21

Yes the error I can confirm, since I have hin in Germany the summer and winter time, I calculate automatically always one hour up or down.

I will come up with something for the next update :o)


Website Contradiction

"Basics: Performance
Never use jQuery's $.animate() and $.fade() functions. They slow everything else down, including other animation libraries."
"Using Velocity with jQuery
Velocity.js works seamlessly with jQuery; jQuery's $.animate(), $.delay(), and $.fade() functions can be used alongside Velocity. There is no performance degradation from using Velocity with jQuery."

The website needs a major overhaul - it's part of the v2 TODO list, not least because it won't have any jQuery code in it any more.
That's not actually a contradiction, as the order is important (ie, at the beginning it's saying that the jQuery functions are slow, then at the end it's saying that Velocity won't slow down anything), however it isn't the best wording.
I think the best solution would be to not compare to jQuery only - and instead have a table / graph of framerate comparisons to various other ways of animating things (libraries and css native), and simply let it speak for itself.


resolvePath's result is different from the module's path.

Environment
@types/node 20.9.1
mlly 1.4.2
Reproduction
https://stackblitz.com/~/github.com/wiidede/mlly-arco
Describe the bug
resolvePath's result is different from the module's path.
some package.json does not provide exports field.
And the return value of resolvePath is main field. I think it should be the module field.
import '@arco-design/web-vue'

module "/home/wiidede/mlly-arco/node_modules/.pnpm/@arco-design+web-vue@2.53.2_vue@3.3.8/node_modules/@arco-design/web-vue/es/index"

console.log(resolvePathSync('@arco-design/web-vue'))

/home/wiidede/mlly-arco/node_modules/.pnpm/@arco-design+web-vue@2.53.2_vue<EMAIL_ADDRESS>
packageConfig
{
  pjsonPath<EMAIL_ADDRESS>  exists: true,
  main: "lib/index.js",
  name: "@arco-design/web-vue",
  type: "none",
  exports: undefined,
  imports: undefined,
}

Additional context
No response
Logs
No response

Hi.
resolve method imported from path/node:path actually does not resolves a module path from node_modules. It just concatinates current working directory to it's beginning.
module field was an unstandard top level field used by bundlers (such as rollup, webpack, esbuild) to pick the bundler friendly ESM build. Native ESM only allows main and exports.
I have checked @arco-design/web-vue package.json, please consider adding an export field to package.json.

I understand. Thank you for your detailed explanation.


Release 2.12.1

Also fix hack/relprep.sh to work more reliably and have idempotent runs (except generation timestamp)

Checklist

[X] Commits are signed with Developer Certificate of Origin (DCO)
[X] Test that the bundle is deployable and functional on OpenShift instance
[X] Test that the bundle is deployable and functional on a vanilla Kubernetes cluster

looks like your relprep.sh is working pretty well !
/lgtm

Release has been published.
https://github.com/kedacore/keda-olm-operator/releases/tag/v2.12.1
Adding to catalog here:
https://github.com/k8s-operatorhub/community-operators/pull/3879


implement class for fractionals 16.16

This will be useful for gamma corrections (see issue #48 )

Completed. Tested.


adding map feature

hi @SwanandD121 ,
In this project, we can a Map feature, where which will allow users to upload their photos along with geographical tags, enabling others to view photos on an interactive map based on location.
I would love to take on the implementation of this features.

Hey @Harshita9412  the backend of the project is not yet developed. The map feature will only work only after the photo uploading feature is added.
I'll reopen this issue once the photo uploading is set up.


Can this ScrollableLayout be used in fragment's layout?

when i use this in fragment layout, it is just not working.  dont know why.

Hi! I've added a ScrollableFragment to the sample application to show how ScrollableLayout could be used inside a Fragment. Hope this helps

+1

I guess that we are done here...


Beta-1.0_02 corrupted file

Critical error Beta 2 Pre-Release content is corrupted, please wait for download new Pre-Release 3

Solved #5


How to generate migrations for this new ApiAuthorizationDbContext?

Since I can't get access to IOptions<OperationalStoreOptions> from IDesignTimeDbContextFactory

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

ID: 21cb7455-3305-9316-5440-bdc22947a82d
Version Independent ID: 137d4b94-7b26-3911-b22d-42c754a95fc1
Content: Introduction to authentication for Single Page Apps on ASP.NET Core
Content Source: aspnetcore/security/authentication/identity-api-authorization.md
Product: aspnet-core
Technology: aspnetcore-security
GitHub Login: @javiercn
Microsoft Alias: scaddie

There's nothing special to using ApiAuthorizationDbContext. IDesignTimeDbContextFactory.
Create a service collection.
Initialize your container as you would do in your app.
Resolve the required services.
Alternatively, simply avoid using the class, and have your DbContext extend IdentityDbContext and implement the appropriate interfaces as https://github.com/aspnet/AspNetCore/blob/master/src/Identity/ApiAuthorization.IdentityServer/src/Data/ApiAuthorizationDbContext.cs does.

i guess it was my local issue with tooling version. thx!

The following function blows up now. It look like the last time it worked for me was 3.0.0-preview7.19362.6. I get an object reference error on the following:
private static Assembly GetApplicationAssembly(IdentityBuilder builder)
        {
            // Whis is the same logic that MVC follows to find the application assembly.
            var environment = builder.Services.Where(d => d.ServiceType == typeof(IWebHostEnvironment)).ToArray();
            var applicationName = ((IWebHostEnvironment)environment.LastOrDefault()?.ImplementationInstance)
                .ApplicationName;

Below is my design code. My AuthDbContext is extracted out into a library project. The way it should be.
 public class DesignTimeAuthDbContextFactory : IDesignTimeDbContextFactory<AuthDbContext>
    {
        private const string CONN_STRING = "Server=(local);Database=MyDb;Trusted_Connection=True;MultipleActiveResultSets=true";
        public AuthDbContext CreateDbContext(string[] args)
        {
            Debugger.Launch();
            IServiceCollection services = new ServiceCollection();

            var cAuth = new AuthConfiguration()
            {
                ConnectionString = CONN_STRING
            };

            services.AddSingleton<AuthConfiguration>(cAuth);
            services.AddDbContext<AuthDbContext>(options => options.UseSqlServer(cAuth.ConnectionString, x => x.MigrationsHistoryTable(HistoryRepository.DefaultTableName, AuthConfiguration._SCHEMA)));

            services
                .AddDefaultIdentity<ApplicationUser>()
                .AddRoles<IdentityRole>()
                .AddEntityFrameworkStores<AuthDbContext>();

            services.AddIdentityServer()
                .AddApiAuthorization<ApplicationUser, AuthDbContext>();

            var context = services.BuildServiceProvider().GetService<AuthDbContext>();

            return context;
        }

Fixed
    public class DesignTimeAuthDbContextFactory : IDesignTimeDbContextFactory<AuthDbContext>
    {
        private const string CONN_STRING = "Server=(local);Database=MyDb;Trusted_Connection=True;MultipleActiveResultSets=true";
        public AuthDbContext CreateDbContext(string[] args)
        {
            IServiceCollection services = new ServiceCollection();

            var cAuth = new AuthConfiguration()
            {
                ConnectionString = CONN_STRING
            };

            services.AddSingleton<AuthConfiguration>(cAuth);
            services.AddDbContext<AuthDbContext>(options => options.UseSqlServer(cAuth.ConnectionString, x => x.MigrationsHistoryTable(HistoryRepository.DefaultTableName, AuthConfiguration._SCHEMA)));
            services.Configure<IdentityServer4.EntityFramework.Options.OperationalStoreOptions>(x =>{});

            var context = services.BuildServiceProvider().GetService<AuthDbContext>();

            return context;
        }

    }


tf.data.Dataset.from_genertor(generator_fn,output_shapes,output_types,args(sents1,sents2))

Here is a little question.The class of sents1 and sents2 is list of str,but in generator_fn,the class of sents1 and sents2 is list of bytes,why?Is that the effect of  tf.data.Dataset.from_genertor?

Yes, i met some question. Then i readed the doc of tensorflow.data.Dataset.from_generator(), but i didn't finded the reason about 'byte'. But when i search 'byte' on the page, i finded:

For large datasets (> 1 GB), this can waste memory and run into byte limits of graph serialization.
So i guess from_generator() has same  mechanism.


bqfetcher json file path

Hi Team,
I'm trying to use bqfetch library to fetch bigquery table.
I would like to know whether what file are you referring to . can you elaborate more about and where can I JSON file in my project.
since I dont see enough info in github repo, raising this request.
fetcher = BigQueryFetcher('/path/to/service_account.json', table)
Thanks in advance.
Regards
Nirmal NK

Hi,
Thanks for reaching me.
If you have already set the GOOGLE_APPLICATION_CREDENTIALS env variable, you don’t need to put this path as argument to the function. If you don’t have setup this variable you need to provide the path to the service account json file with the corresponding permissions for fetching data from BigQuery.
This file can be downloaded from GCP in service accounts > create a key.
Cheers,
Tristan
On 17 Jun 2022, at 12:09, Nirmalnk05 @.***> wrote:

Hi Team,
I'm trying to use bqfetch library to fetch bigquery table.
I would like to know whether what file are you referring to . can you elaborate more about and where can I JSON file in my project.
since I dont see enough info in github repo, raising this request.
fetcher = BigQueryFetcher('/path/to/service_account.json', table)
Thanks in advance.
Regards
Nirmal NK
—
Reply to this email directly, view it on GitHubhttps://github.com/TristanBilot/bqfetch/issues/3, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJTYC34EUZ45HXMEB53MJYLVPRFEBANCNFSM5ZBY6ZAQ.
You are receiving this because you are subscribed to this thread.Message ID: @.***>


Try to use upstream xdrgen

After the work done at https://github.com/stellar/xdrgen/pull/79, it should be possible to deprecate the custom fork of xdrgen that is referenced in the README.md and use the upstream version instead.
Or, possibly a better idea, try to replace the generated code in xdr_generated.rs with the stellar-xdr crate, though that crate doesn't have a stable release at the moment.

In the meantime, stellar-xdr has had some stable releases.


Add Custom Policy Dashboard

/ok-to-test

Hello @maemmanu thanks for the PR request. It seems like your first commit was not signed off, which is required before merging the PR. When you have the time, please amend the commit and add a sign off. 🙂


Storing LLM's at desided location rather than on C:/

Hello!
I'm unsure if the topic had already been discussed, but I'll start anyway.
My issue is low C:/ capacity, so I can't afford downloading many LLM's to compare the output.
My solution would be to add an option where Models should be stored.
If it had been already implemented please show me the manual to it, so I could handle it myself.
Thank you for your time.

set OLLAMA_MODELS env
@see https://github.com/ollama/ollama/blob/main/docs/faq.md

Thank you. Case closed ;)


Update aws-java-sdk-bundle to 1.12.442

About this PR
📦 Updates com.amazonaws:aws-java-sdk-bundle from 1.12.440 to 1.12.442
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.amazonaws", artifactId = "aws-java-sdk-bundle" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "com.amazonaws", artifactId = "aws-java-sdk-bundle" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #2622.


使用多个插件只生效最后一个

What happen?
只生效最后一个插件,其他插件都没有生效
apiVersion: sealer.cloud/v2
kind: Cluster
metadata:
  name: default-kubernetes-cluster
spec:
  image: kubernetes:v1.19.8
  ssh:
    passwd: root
  hosts:
    - ips: [ <IP_ADDRESS> ]
      roles: [ master ]
#      env:
#        - etcd-dir=/data/etcd
#         - docker_dir=/data/docker
#    - ips: [ <IP_ADDRESS> ]
#      roles: [ node ]
---
apiVersion: sealer.aliyun.com/v1alpha1
kind: Plugin
metadata:
  name: MyHostname # 指定插件名称，将会转储到$rootfs/plugins目录下。
spec:
  type: HOSTNAME #插件类型
  action: PreInit # 指定运行阶段
  data: |
    <IP_ADDRESS> master-1
metadata:
  name: MyBackup
spec:
  type: ETCD
  action: PostInstallo
metadata:
  name: calico
spec:
  path: etc/custom-resources.yaml
  data: |
    apiVersion: operator.tigera.io/v1
    kind: Installation
    metadata:
      name: default
    spec:
      # Configures Calico networking.
      calicoNetwork:
        # Note: The ipPools section cannot be modified post-install.
        ipPools:
        - blockSize: 26
          encapsulation: IPIP
          # Note: Must be the same as podCIDR
          cidr: <IP_ADDRESS>/10
          natOutgoing: Enabled
          nodeSelector: all()
        nodeAddressAutodetectionV4:
          interface: "ens33"
metadata:
  name: MyLabel
spec:
  type: LABEL
  action: PostInstall
  data: |
    <IP_ADDRESS> ingress=true
metadata:
  name: checkCluster
spec:
  type: CLUSTERCHECK
  action: PreGuest
metadata:
  name: install-iscsi and nfs
spec:
  type: SHELL
  action: PostInstall
  data: |
    if type yum >/dev/null 2>&1;then
    yum -y install iscsi-initiator-utils
    systemctl enable iscsid
    systemctl start iscsid
    yum install nfs-utils -y
    elif type apt-get >/dev/null 2>&1;then
    apt-get update
    apt-get -y install open-iscsi
    systemctl enable iscsid
    systemctl start iscsid
    fi

Relevant log output?
No response
What you expected to happen?
No response
How to reproduce it (as minimally and precisely as possible)?
No response
Anything else we need to know?
No response
What is the version of Sealer you using?
No response
What is your OS environment?
No response
What is the Kernel version?
No response
Other environment you want to tell us?

Cloud provider or hardware configuration:
Install tools:
Others:

@Phoebus888 You have to separate each plugin with "---" delimiter


Artifacts example

Would you mind sharing how one might use input and output artifacts with hera? Is that possible?

Would you mind sharing how one might use input and output artifacts with hera? Is that possible?

Hey @tachyus-ryan! Thanks for the question. Artifacts are not currently implemented in Hera. It's quite a stripped down version of Argo Workflows for now. The project aimed to see whether the community would want specific things implemented, such as artifacts, and then implement those with helper methods/approaches to simplify accessibility. Are you interested in contributing this? If you may not have the time, any chance you can submit an issue classified as a feature enhancement so we can introduce it to Hera? 🙂

I'm afraid I don't have a lot of time to contribute just now, but I'll take a look.

I cannot get the environment set up with pipenv either on Windows or Ubuntu. I'll see about creating another issue or reformatting this one in the form of a feature enhancement.

I cannot get the environment set up with pipenv either on Windows or Ubuntu. I'll see about creating another issue or reformatting this one in the form of a feature enhancement.

Oh, that's interesting! What sort of issues are you encountering?

I get an error that choose_shell is missing parameter project in both environments.

choose_shell

Do you happen to have the latest version of pipenv? I see an issue filed with it from a few days ago that has to do with a choose_shell error.

@flaviuvadan I was using the latest version. I'll try an earlier version.

See #13.


Add a final results screen

Issues so far:

Max-width distorted when switching back from landscape to portrait
Results screen still not triggered on game end


[INFRA-3084] Add myself and Antonio to aws-credentials plugin

Description

jira issue: INFRA-3084
Github repository: https://github.com/jenkinsci/aws-credentials-plugin
Ping @escoem as current maintainer
Submitter checklist for adding or changing permissions

Always

[X] Add link to plugin/component Git repository in description above

For a newly hosted plugin only

[ ] Add link to resolved HOSTING issue in description above

For a new permissions file only

[ ] Make sure the file is created in permissions/ directory
[ ] artifactId (pom.xml) is used for name (permissions YAML file).
[ ] groupId / artifactId (pom.xml) are correctly represented in path (permissions YAML file)
[ ] Check that the file is named plugin-${artifactId}.yml for plugins

When adding new uploaders (this includes newly created permissions files)

[X] Make sure to @mention an existing maintainer to confirm the permissions request, if applicable
[X] Use the Jenkins community (LDAP) account name in the YAML file, not the GitHub account name
[X] Make sure to @mention the users being added so their GitHub account names are known if they require GitHub merge access (see below).
[X] All newly added users have logged in to Artifactory at least once

Reviewer checklist (not for requesters!)

[ ] Check this if newly added person also needs to be given merge permission to the GitHub repo (please @ the people/person with their GitHub username in this issue as well). If needed, it can be done using an IRC Bot command
[ ] Check that the $pluginId Developers team has Admin permissions while granting the access.
[ ] In the case of plugin adoption, ensure that the Jenkins Jira default assignee is either removed or changed to the new maintainer.
[ ] If security contacts are changed (this includes add/remove), ping the security officer (currently @daniel-beck) in this pull request. If an email contact is changed, wait for approval from the security officer.

There are IRC Bot commands for it

I'm more than happy so :+1:

Thanks @timja !


Download link was pointing to building link.

Can you fix DCO? Thank you.

Can you fix DCO? Thank you.

Hi @mattklein123, I've fixed the DCO.


Problem with Bson serialization

Hello,
first of all thank you a lot for your product, it is a really cool database!!
I'm struggling however with a little serialization problem. Suppose I have a class
    internal class Partner : IPartner
    {
        public Partner(string partnerId, string hostId)
        {
            this.PartnerId = partnerId;
            this.HostId = hostId;
        }

        public string PartnerId
        {
            get;
        }

        public string HostId
        {
            get;
        }
    }

with
    public interface IPartner
    {
        string PartnerId
        {
            get;
        }

        string HostId
        {
            get;
        }
    }

this class (declared as an interface) is nested into another object. My problem is that when is try to serialize the root object with
BsonMapper.Global.ToDocument</*RootObjectType*/> (rootObject)

I end up with a Bson document having the nested field Partner, but the latter having fields:

_id: PartnerId
HostId: correct
no field PartnerId

basically the value of the PartnerId has been introduced in the field _id. Of course, when I deserialize the document, I end up with a Partner having a PartnerId null.
Now, the doc says an object should always have an Id field, I've tried with but the problem still remains.
Do you have any idea why in this case the _id field isn't simply automatically created, as with other nested objects?
Thank you very much

Hi @QJonny, converting PartnerId to _id fields are ok, but this deserialization must return _id value to PartnerId. I will made an unit test to check this

Hello, thank you for your reply.
I have another question: in order to entirely deserialize my object, I first retrieve the bson document from the db and then convert it to a string before using my own json deserializers.
This is because classes often contain interfaces that can only be deserialized by a custom deserializer (I use Newtonsoft.Json). Is it correct to do it this way?
Returning to the original problem, in my opinion it is ok to put PartnerId value into _id, but why does then the PartnerId value inside the bson become null? Shouldn't it be let as it is?

Hi @QJonny, I add an unit test to test this. And, to use BsonMapper you have to:

Be public class
Have non-parameter ctor
Have get/set on properties

BsonMapper is a simple mapper from/to Object to BsonDocument.
Yes, you can use JSON.NET as serializer/deserializer as you told. But there is some problems here: JsonSerializer, inside LiteDB, works with some special datatype as mongo do, like:
$binary, $oid, $guid, $date, $numberLong, $numberDecimal
To use Json.Net, you must write custom json Converter in JSON.NET. If you do it, lets share this to create an LiteDB.JsonNetSerializer plugin for LiteDB. I'm always want made this "3th party" serialization plugin.

Hi @mbdavid, I don't think the problem is related to these class restrictions, because I also tried this way and the problem persists.
Actually, I realized that if a class is called MyClass and I have a field inside called MyClassId, then the value of the latter is used to fill _id (and the value of MyClassId will be null)
Is it possible to fix this problem (use it to fill _id, but preserve the value of MyClassId) ? Thanks!
Also, yes I've been faced to these serialization problems and I had to write custom json converters (all except $numberLong so far). I can of course share them, but where do I put them?

Hi @QJonny, I dont get it your error. Did you see my unit test about your problem? Can you fork LiteDB and add an unit test about this? In my example works as expected.
About share your converters, you can add as extenal file here in this issue. Maybe in v3.2 I will add support for external conversion and include your source as an external LiteDB.JsonNet project.

In this case, you test for the value of PartnerId after having deserialized with ToObject
var no = m.ToObject<Partner>(doc);

Assert.AreEqual("one", no.PartnerId);
Assert.AreEqual("host1", no.HostId);

Now, this works well. But if I just check for the bson field
Assert.AreEqual ("one", doc["PartnerId"].AsString);

like in the following test
 [TestMethod]
public void InterfaceBase2_Test()
{
    var m = new BsonMapper ();
    var p = new Partner ("one", "host1");

    var doc = m.ToDocument (p);

    Assert.AreEqual ("one", doc["_id"].AsString);
    Assert.AreEqual ("host1", doc["HostId"].AsString);
    Assert.AreEqual ("one", doc["PartnerId"].AsString);
}

then the test breaks saying that the value doc["PartnerId"] is null.
Now, the problem is I can't deserialize using the ToObject method because I have interfaces in my objects and I need several custom deserializers.
Therefore the question is: is there a way you can preserve the value of PartnerId in the bson document?

And here are the converters:
Converters.zip

@QJonny ahhhhh, now I got it :) Ok, I always need an _id in BsonDocument to be my unique key (it's the same think in MongoDB). Without this _id, LiteDB will auto-create a new _id when insert (using ObjectId value).
If want add one more field with same name, you need write a custom BsonMapper implementation, override this method: BuildEntityMapper
protected override EntityMapper BuildEntityMapper(Type type)
{
    var mapper = base.BuildEntityMapper(Type type);

    var id = m.Members.SingleOrDefault(x => x.Name == "_id");

    if(id != null)
    {
        // clone same id properties into new member
        var member = new MemberMapper
        {
            AutoId = false,
            FieldName = id.MemberName, // keep FieldName == MemberName
            MemberName = id.MemberName,
            DataType = id.DataType,
            IsUnique = false, // do not create index
            IsList = false, //
            UnderlyingType = id.DataType,
            Getter = id.Getter,
            Setter = id.Setter
        };

        // add this new Member
        mapper.Members.Add(member);
    }

    return mapper;
}

Ok I see then! Thank you!! :)


Smartadserver Bid Adapter: update parameter description

🏷 Type of documentation

[x] update bid adapter

Hi @krzysztofequativ
Can you reference the related bid adapter update

Hi @muuki88, there isn't any adapter's feature related to the update; we just want to be more precise in the description of the required parameters. However, if it's mandatory to have a reference, we can point to the initial release https://github.com/prebid/Prebid.js/pull/853. Does it work?

Got it 😊 I got the wrong impression as you selected bid adapter update. I would have used "wording changes" , which indicates there's no related code change.


train osnet failed

My osnet config is:
BASE: Base-SBS.yml
MODEL:
BACKBONE:
NAME: build_osnet_backbone
DEPTH: x0_25
HEADS:
EMBEDDING_DIM: 256
INPUT:
DO_AUTOAUG: True
I got RuntimeError: Given groups=1, weight of size [256, 2048, 1, 1], expected input[64, 128, 1, 1] to have 2048 channels, but got 128 channels instead
How to configure osnet correctly？

Change backbone feature dim as following
MODEL:
  BACKBONE:
    FEAT_DIM: 128

Thanks very much, it works!


Test architecture internal dependencies

Since we started to run our tests in parallel, we have to ensure, that the order of execution is independent. For instance a test class
has a static attribute, which is being modified by the individual test methods.
class TestFoo:
    complex_structure = {}

    def test_add_attr1(self):
        self.complex_structure['a'] = 1
        assert len(self.complex_structure) == 1

    def test_add_attr2(self):
        self.complex_structure['b'] = 1
        assert len(self.complex_structure) == 2

Here we see, that we test_add_attr2 would fail, if is executed prior test_add_attr1. If the execution order of the test methods is strict, we can rely on a pytest-xdist feature to distribute all test cases to the nodes on per file basis, which basically circumvents this problem. Generally we should write tests such, that they have no interdependence.
One example where this interdependence occurs is weldx.tests.test_transformation.TestCoordinateSystemManager.test_add_coordinate_system.
This test method is parameterized to add different coordinate systems to the manager and it is being checked if the previous additions are still valid. The methods act on a single (static) instance of the CSM, which grows for every (parameterized-)test executed.
In my opinion we should avoid having static data as much as possible, since it is easy to cause side-effects, which therefore affects the outcome of the tests. Only the side-effect of the actual property of interest should be triggered and tested. What would happen if another programmer adds a test acting on the same static instance and affects the other tests in a non intended way. These kind of problems are hard to debug and should be avoided.
When the same data is needed, we should consider factory functions like pytest.fixtures or unittest.TestCase.setUp to create a clean and defined environment for the actual test case execution.

Agreed. The mentioned tests are leftovers from starting with parametrized tests. The problem we had (and are still facing) was that writing good tests in the sense of readability, understandability, and completeness can be quite challenging and time-consuming. In this particular case (weldx.tests.test_transformation.TestCoordinateSystemManager.test_add_coordinate_system), the setup of the CSM  would have taken multiple lines per test case and using fixtures that depend on multiple parameters makes it necessary to jump in the code when trying to understand what the test is actually doing. However, this didn't consider parallelism back then (at least not at a test case level).
I came to the conclusion that it is often better to write multiple tests with repeating code sections instead of one heavily parametrized one if that keeps each test readable (no multi-line sets of test parameters). So we might want to split the problematic tests into multiple ones when refactoring them to be self-contained.


Extract slot prop types from $$Slots

Description
In ota-meshi/eslint-plugin-svelte#347 I proposed a rule to require slots and their props to be typed. In this package, those types should be used if they're present.
An example of what currently doesn't work:
App.svelte:
<Component let:arrayProp={arrayValue}>
  {#each arrayValue.filter( (val) => val.length > 10 ) as val} <!-- HERE -->
    {val}
  {/each}
</Component>

Component.svelte:
<script lang="ts">
  interface $$Slots {
    default: { arrayProp: Array<string> };
  }
</script>

<slot arrayProp={["Hello", "World", "Hello World"]} />

Here, on the marked line, I get the eslint error @typescript-eslint/no-unsafe-call - I presume that's because the parser does not infer that arrayValue is of type Array<string> and leaves it as any...

Actually, in general, the parser should probably eventually support the whole RFC...

I've also recently run into this.
However, I don't understand why this doesn't already work. It seems like the code is sound.
parser/converts/attrs.ts:buildLetDirectiveType generates:
  return `${String(componentName)}['$$slot_def'][${JSON.stringify(
    slotName,
  )}][${JSON.stringify(letName)}]`;

Which in your example should translate to Component['$$slot_def']["default"]["arrayProp"]
My LSP & my other svelte tools have no problems understanding the type of the let:xyz bind from a $$Slots.
Does anyone know why this isn't working with eslint? I'd be happy to figure out how to fix this but I'm out of ideas right now.

I randomly stumbled into the same problem, coming from a different angle. My observation is, that this line won't work at all when the component is generic. I don't know how this could be fixed, the buildLetDirectiveType code would somehow have to infer the correct generics and put them to the output.

Slots are deprecated in Svelte 5, closing.


Update the project to use jakarta namespace

I'm trying to use Square SDK in my Quarkus 3 project. Because of Quarkus 3 is compiled for jakarta namespace and Square SDK is using apimatic core, which uses javax - it fails on:
Caused by: java.lang.ClassNotFoundException: javax.json.JsonException
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
        at io.quarkus.bootstrap.classloading.QuarkusClassLoader.loadClass(QuarkusClassLoader.java:516)
        at io.quarkus.bootstrap.classloading.QuarkusClassLoader.loadClass(QuarkusClassLoader.java:466)

To reproduce:

Check out this project https://github.com/zeppelinux/square-okhttp-problem
mvn clean compile quarkus:dev
Navigate to http://localhost:8080/hello

To resolve it there is a need to update the apimatic/core-lib-java to use jakarta instead of javax.

I forked it and ported to jakarta here https://github.com/zeppelinux/core-lib-java/tree/feature/port-to-jakarta
Tests are run green from IDE, but fail from cmd line on some jacoco class version exception.

Hi @zeppelinux
Thanks for opening the issues. I appreciate that you have also suggested a workaround for others!
Switching from javax to jakarta isn't on the immediate roadmap for this library.  We'll let you know once it is prioritized.
Thanks!


空指针异常

v1.0.4

java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
at com.liulishuo.okdownload.core.download.DownloadCall.execute(DownloadCall.java:139)

The url in DownloadTask is NonNull, so it doesn't make sense to occur this exception. Please show your code about creating and starting your task and please show a whole log.


Error for each supported audio file type

I have tried running functional audio files for a .flac, .mp3 and .wav but receive different errors for each one. My code is pretty much the same for the 3 different tests:
package main

import(
  "fmt"
  "time"
  "os"
  "github.com/faiface/beep/<file type>"
  "github.com/faiface/beep/speaker"
)

func main() {
  openFile, openFileErr := os.Open("<path/to/file>")
  if openFileErr != nil {
    fmt.Println("FILE OPEN ERROR", openFileErr)
    return
  }
  streamer, format, streamerErr := <file type>.Decode(openFile)
  if streamerErr != nil {
    fmt.Println("AUDIO STREAMER ERROR", streamerErr)
    return
  }
  speaker.Init(format.SampleRate, format.SampleRate.N(time.Second/10))
  speaker.Play(streamer)
  select{}
}

Expected:
Audio plays normally.
WAV Result:
wav: missing data chunk marker
MP3 Result:
mp3: mp3: only layer3 (want 1; got 3) is supported
Flac Result:
flac: flac.parseStreamInfo: invalid FLAC signature; expected "fLaC", got "RIFF"
Here are the files for your own use:
Flac file
MP3 file
WAV file
All the files are generated by the IBM Watson text-to-speech API and run fine on my machine. All error messages occur within the AUDIO STREAMER ERROR block. Is this a bug? Thanks!
Original issue: https://github.com/faiface/beep/issues/11

Mostly solved in original issue. I will need the correct audio files yo reproduce the other problems. Closing for now.

I also have this (and other unsupported files issues) happening fairly frequently. I am happy to provide the files to test with if you need to repro. I keep getting the same 2-3 errors for some .flac files and some .mp3 files. Seems to be coming from the Decode.

Just a heads up in case anyone else winds up here. While it may not be OPs original problem, I too was running into all sorts of playback errors on some mp3s. The reason was because I was trying to use mp3.Decode() on every file type. It only makes sense now that I realize there is a different module for each file type. So my solution was to simply switch on the file extension and use the appropriate decoder for the appropriate file type.

It seems I'm getting the mp3 error mp3: mp3: only layer3 (want 1; got 3) is supported on mp3 files that should work. mpg123 is able to play the files correctly (because another software program I use is able to play the files), but this library has issues with them.
Also important: the error message doesn't make sense. It says only layer3 is supported, but then it says it got 3, and yet it want 1. Why would it want layer1 if it only supports layer 3? Why would it not be playing if it got layer3, which is supposedly supported according to the error message.
Either way, the error message is incorrect. Perhaps 1 and 3 are being reversed and it really got 1 and wanted 3.

I found this same issue from the older hajimehoshi/go-mp3 repo. It looks like one of the bugs was fixed by skipping ID3v2 tags, as shown in this issue: https://github.com/hajimehoshi/go-mp3/issues/9
This leads me to wonder if LAME tags are not being skipped.


Cant scroll

Since I have started using the intel appframework version 3.0 I have not been able to scroll my editor datatables see http://editor.datatables.net/
I am thinking it has something to do with the recent version changes. Any clues on how this can be fixed.

Can you put a demo up?  You may have some code blocking touch events.

I sent you an email with a link to the website. Thank you.

This was resolved


Bank balance overflow

If somebody gets real lucky, they can win enough to overflow their balance.
Shouldn't be able to underflow at least

Seems like python doesn't care about that, so there's actually no issue. Cool beans.


[Bug] Opening kitchen counter inventory issue

The mod worked perfectly the last time I played. Only thing I changed was adding Jurassicraft mod.
I'm running version 1.12.2 of MC. All mods I have currently are 1.12.2 and up to date on those versions.
Mods I'm currently having:
Cooking for Blockheads
Pam's Harvestcraft
Mo' Creatures (+ custom mobspawner)
Galacticraft (galacticraftcore + galacticraftplanets + micdoodlecore)
Jurassiccraft (+ llibrary)
(World I play in is actually a server hosted by friend, forge server)
Issue is that when I open any kitchen counter, the inventory is

Twice as big (size of 2 chests)
It's intertwining with my own inventory.

It sometimes shows the items in the bottom part of my inventory inside the kitchen counter invetory's bottom part.
It also "duplicates" my own items in my invetory to the top part, important is that everything about this bug is that it's not actually changing any value of the items, so everything stays the same when I exit the kitchen counter inventory.

When I try to move anything anywhere, the items disappear from the bottom part of the kitchen counter inventory. (the items which are actually in my own inventory but displayed in the kitchen counter)

Sorry if I'm explaining this very complicated but it's so strange. My explanation might also be non accurate since the bug is behaving in ways that I'm not able to follow the pattern.
http://prntscr.com/nsbkqb

Item from my inventory
Duplicated "ghost" items
My actual items

Ps. the issue seems to stay that when i open my inventory, the items are duplicated, but when i touch any duplicate, all the "ghost" duplicated disappear.

Does your largeCounters option in the config match the one of the server?

Closing due to inactivity.


opt avoid unnecessary mem for variant extracted columns

What problem does this PR solve?
_field_name_to_index and _field_id_to_index is unnecessary for variant subcolumns, since they use column path as identifier
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)

Test

[ ] Regression test
[ ] Unit Test
[ ] Manual test (add detailed scripts or steps below)
[ ] No need to test or manual test. Explain why:

[ ] This is a refactor/code format and no logic has been changed.
[ ] Previous test can cover this change.
[ ] No code files have been changed.
[ ] Other reason

Behavior changed:

[ ] No.
[ ] Yes.

Does this need documentation?

[ ] No.
[ ] Yes.

Check List (For Reviewer who merge this PR)

[ ] Confirm the release note
[ ] Confirm test cases
[ ] Confirm document
[ ] Add branch pick label

run buildall

run buildall


Ability to view all tokens with broken references

Is your feature request related to a problem? Please describe.
There is no easy way to know of there is broken references in the tokens via the plugin, these broken references are generally detected during transformation and can cause broken pipelines. It would be great if there was a way to do a final check in the plugin if there are any broken references before handover.
Currently if we go to each set we can see the broken links which is indicated by a red dot. But this becomes tedious when the number of sets is big.
Proposed Solution
A tab or view that shows all the tokens with broken links based on the sets that are active. The name of the set should be displayed as a heading for the tokens. Clicking on a token will take the user to the actual set where he/she can fix the problem OR the issue can be fixed in the view itself.
Additional things to consider
Tokens have linked references based on Themes. If some themes are not turned on, they would have the possibility of broken references which does not likely mean that the token is broken per se. An ideal solution would be based on Themes and making sure that for each active theme there is no broken references.
In case of teams not using themes the broken links could be displayed based on the token sets that are turned on.
There could also be a case of tokens residing in multiple sets, the tokens should be displayed multiple times for each set.
### Tasks
- [ ] Design a view to check all broken links

A tab or view that shows all the tokens with broken links based on the sets that are active

Yes please :)! I was thinking along the lines of how VS Code's terminal does it,

I think we should show the problems only for the current theme selection and its activated sets, but when you're about to sync to git or export, there should be a warning to the users saying there are certain theme(-permutations) that result in selected tokensets in such a way that there are broken references

Migrated to Featurebase

Migrated to Featurebase

Added to Featurebase Request-	↕ Git sync enhancements - push, pull, merge, branching


Flex 3150 change configuration elster device c73

There seem to be a lot of changes, because the old code style format was incorrect.

Can one of the admins verify this patch?


added a tic tac toe game in typescript

Hi! I made a CLI tic tac toe game in typescript and thought I could add it to this project. hope you like it!
p.s. I put it in the JS folder

Nice.
But remember,create a .gitignore file and put lines in it:
node_modules


Authguard does not work when using hashlocation strategy

I've been trying to get this package to work for a while using authguard and the hashlocation strategie (useHash: true)
But it never worked for me.
Just a simple question Would anyone have a simple example using the authguard to protect the routes by being hashlocation mode strategy (useHash: true) with this package ?
Here is one of the simple examples that I tested that didn't work:
Routes configuration (in app-routing.modules.ts file ):
const appRoutes : Routes = [
  {path: 'welcome', component: WelcomeComponent, canActivate: [AuthGuardVersionTwo],},
}

hashlocation strategy configuration in (in same file):
RouterModule.forRoot(appRoutes, {useHash: true, initialNavigation: "disabled"})

AuthenGuardVersionTwo Class implementation :
@Injectable({
    providedIn: 'root'
  })
  export class AuthGuardVersionTwo implements CanActivate {

    constructor(
        private authService: AuthService) { }

     canActivate(
      next: ActivatedRouteSnapshot,
      state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree {
          if (this.authService.hasValidIdToken())
          {
              return true;
          }
          return false;

      }
  }

And finally in my app.component.ts I add this :
this.oauthService.loadDiscoveryDocumentAndTryLogin({
      onTokenReceived: (info) => {
        if (info.state) this.router.navigate([info.state]);
      }
    }).then(
      info => this.router.initialNavigation()
    );

@manfredsteyer, @damienbod  do  you have a solution to give us that allows us to run the library using the authguard and the hashlocationstrategy at the same time?
I have tried other solutions that work well without the hashlocationStrategy.
@jeroenheijmans do you have a solution ?
Sincerly,

Just a simple question Would anyone have a simple example using the authguard to protect the routes by being hashlocation mode strategy (useHash: true) with this package ?

If you go to my sample implementation and make no change other than add useHash: true to the routing module, everything works as far as I can tell. Hash locations and router guards included.
Here's a screengrab of this:

Hope that helps!


Webapp deployment error

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az webapp deployment source config-zip
Errors:
Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
pip-install-qxmmnr17\knack\knack\cli.py, ln 206, in invoke
cli\core\commands\__init__.py, ln 603, in execute
cli\core\commands\__init__.py, ln 661, in _run_jobs_serially
cli\core\commands\__init__.py, ln 654, in _run_job
Temp\pip-install-qxmmnr17\six\six.py, ln 693, in reraise
cli\core\commands\__init__.py, ln 631, in _run_job
cli\core\commands\__init__.py, ln 305, in __call__
azure\cli\core\__init__.py, ln 485, in default_command_handler
...
    return _default_decoder.decode(s)
CLI2\lib\json\decoder.py, ln 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
CLI2\lib\json\decoder.py, ln 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az webapp deployment source config-zip --resource-group {} --name {} --src {}

Expected Behavior
Environment Summary
Windows-10-10.0.17134-SP0
Python 3.6.6
Shell: cmd.exe

azure-cli 2.0.72

Additional Context

@YuchenWell are you still seeing this issue. From the error looks like the API was not returning a valid JSON object can you re-run & let us know. Thank you.

It works now!


deploy application plans with pricing rules in it

In the 3scale CI/CD pipeline, deploy application plans with pricing rules in it.
Pricing rules are imported from an artefact file using the import/export command.
Low priority task: complete if time allows it.

@nmasse-itix  can I get the example or format of the file which contains plan information and pricing rules.

good point @redhatHameed !
Here is an example :
---
plan:
  name: Basic
  state: published
  setup_fee: 0.0
  cost_per_month: 0.0
  trial_period_days: 0
  cancellation_period: 0
  approval_required: false
  system_name: basic
  end_user_required: false
limits:
- period: eternity
  value: 0
  plan_id:<PHONE_NUMBER>977
  metric_system_name: Say_Hello
- period: month
  value: 1
  plan_id:<PHONE_NUMBER>977
  metric_system_name: Say_Goodbye
- period: week
  value: 3
  plan_id:<PHONE_NUMBER>977
  metric_system_name: Say_Goodbye
- period: day
  value: 42
  plan_id:<PHONE_NUMBER>977
  metric_system_name: hits
pricingrules:
- cost_per_unit: '1.0'
  min: 1
  max: 10
  metric_system_name: Say_Goodbye
- cost_per_unit: '0.5'
  min: 11
  max: 1000
  metric_system_name: Say_Goodbye
- cost_per_unit: '100.0'
  min: 1
  max: 10000
  metric_system_name: Say_Hello
- cost_per_unit: '42.0'
  min: 1
  max: 10
  metric_system_name: hits
plan_features:
- name: Unlimited Greetings
  system_name: unlimited_greetings
  scope: application_plan
  visible: true
metrics:
- name: hits
  system_name: hits
  friendly_name: Hits
  description: Number of API hits
  unit: hit
methods:
- name: Say_Hello
  system_name: Say_Hello
  friendly_name: Say Hello
  description: ''
- name: Say_Goodbye
  system_name: Say_Goodbye
  friendly_name: Say Goodbye
  description: ''
created_at: '2019-06-14T09:16:47Z'
toolbox_version: 0.10.0

The metrics, methods, created_at, toolbox_version and plan.name fields are optional when importing.

Fixed by #21


Disables DWARF debugging.

If you want the binary smaller.
The flags remove the DWARF tables but the information for stacktrace is intact.

Thanks for the suggestion!
For now I prefer keeping debugging symbols in the binary so debuggers like delve can interact with it:
% go build -ldflags "-w -s"
% dlv exec ./knubbis-fleetlock
could not launch process: decoding dwarf section info at offset 0x0: too short - debuggee must not be built with 'go run' or -ldflags='-s -w', which strip debug info

Until disk usage becomes an actual problem I want to prioritise making debugging as simple as possible.


Fairy spell DC using CHA instead of spell casting ability

Solasta  1.5.97
UB <IP_ADDRESS>
passwithouttraceandfairydc.zip
From http://dnd5e.wikidot.com/lineage:fairy
Intelligence, Wisdom, or Charisma is your spellcasting ability for these spells when you cast them with this trait (choose when you select this race).
Wiz fairy 18 INT 10 cha 3 proficiency 11 DC from 8 base + 3 prof. INT should be used to calculate DC.
Cleric fairy 18 WIS 8 cha 3 proficiency 10 DC from 8 base -1 CHA +3 prof. WIS should be used to calculate DC.
Sorc fairy 18 cha 3 proficiency 15 DC from 8 base + 4 CHA + 3 prof.

by design. game won't learn higher level spells if the feature is in a feature set. it is CHA only.


Incorrect python docker version

I was having the following issue in TASK [slingnode.ethereum : Start blockchain stack]:
Configuration error - kwargs_from_env() got an unexpected keyword argument 'ssl_version'

It seems that docker-py has made a change in v7.0.0 that breaks docker compose written in Python (https://github.com/docker/docker-py/issues/3194).
Personally, I've solved it by downgrading the docker python module to version 6.1.3, specifying the version manually:
python_modules:

docker==6.1.3

Thank you for reporting this issue. This is related to incompatibilities between docker-py and docker compose v2. Some info in:

https://github.com/ansible-collections/community.docker/issues/714
https://github.com/docker/docker-py/issues/3194

We have updated the role to use Ansible docker compose module v2 so with the release 0.32.0 this should be fixed.


Twig/React: Create new LogoGrid Component

This is a new component which shows a list of logos arranged in a responsive grid with a light and dark theme and optional link.
Fixes #337

Very cool @justintemps. Looks perfect to me


[FLINK-17504][docs] Update Chinese translation of Getting Started / O…

…verview

What is the purpose of the change
Update Chinese translation of Getting Started / Overview
Brief change log

Translate new Getting Started / Overview Chapter to Chinese, updating the getting-started/index.zh.md

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
The serializers: (yes / no / don't know)
The runtime per-record code paths (performance sensitive): (yes / no / don't know)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn/Mesos, ZooKeeper: (yes / no / don't know)
The S3 file system connector: (yes / no / don't know)

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

Can you help me to review this PR？
@wuchong @klion26

@yangyichao-mango thanks for your contribution, seems there is some conflict to resolve, could you please rebase the newly master?

I've rebased the newly master, Thx for your review. @klion26

@klion26 已经更新，辛苦review~

Thx for your suggestions. I've pushed a new Commits.
@klion26

@yangyichao-mango Thanks a lot for your contribution, and thank you for your review @klion26.
Merging now ...


Adding margin to right

Choose directory to save is not any margin gap it is overflowing outside.

So add proper padding and margin so that text is not overflowing here.

please assign me this issue

Sir can we use the folder icon in place of Choose directory to save

Sir can we use the folder icon in place of Choose directory to save

You can add both by reducing the size of the text and adding an icon next to it.

Only with folder icon

Text with folder icon

please suggest

Only with folder icon

Text with folder icon

please suggest

folder looks better

so only folder will be ok

can i work on this

This issue was fixed so long so long ago, shall we close it


Update README.md

A small, small edit to update the commands to be in line with Vundle.vims documentation, due to how the Bundle-namespace is deprecated.

Thanks!


Fix mirrored and translated regions

mirrored regions in boom box already were working, but dataStation ones weren't for some reason, so i decided to rewrite how mirrored regions are handled, now they work perfectly fine both in boombox and in datastation

merged


more understandable template parse

thanks for this repo

Thanks for this. However, since this repository is used by people taking the course, I think that it's probably a good idea to leave the code as it appears at the end of the course.


[BUG] Rounding issue

Describe the bug
When I convert 0 from fahrenheit to celsius I get -17.777777... number.
To Reproduce
Convert 0 from fahrenheit to celsius
Expected behavior
Rounded value -17.8 or -17.78.
Actual behaviour
Converter returns -17.777777... number.
Additional context

It seems that the issue is fixed in #9


Aggregation

We want to have some flavor of aggregation.

This is a proposal for an aggregation REST API definition.
Aggregation works as a subset of the search API. To perform aggregation, add the aggregation parameter to the search API.
The REST API specification is as follows:
Endpoint
GET api/v1/indexes/<index name>/search

Request body
{
    "aggretations": {
        "<aggregation name>": {
            "<aggregation type>": {
                "<aggregation parameter name>": <aggregation parameter value>,
                "<aggregation parameter name>": <aggregation parameter value>,
                ...
            }
        }
    }
}

Name
Description

aggregation name
Aggregation name. Give it a name that will be unique within the aggregations.

aggregation type
Specifies the type of aggregation to be performed.

aggregation parameter name
The name of the parameter given to the aggregation to be performed.

aggregation parameter value
The value of the parameter given to the aggregation to be performed.

Respons body
{
    "aggregations": {
        "<aggregation name>": {
            "<aggregation result name>": <aggregation result value>,
            "<aggregation result name>": <aggregation result value>,
            ...
        }
    }
}

Name
Description

aggregation name
Aggregation name specified in the request.

aggregation result name
Name of the result of the aggregation performed.

aggregation result value
Value of the result of the aggregation performed.

Closes in favor for #832


Upscaler safety checker false positives

The upscale returns blurred out images a lot, is there a way to decrease this?
Example image

We have made some progress on reducing false positives recently and hope to have an update out soon.


[UPDATED BONUS GUIDE] LNbits 0.10

What
This PR updates LNbits bonus guide:

updates lnbits version: 0.10
changes installation method: venv -> poetry w/ dependencies etc.
fixes uninstall steps

Why
Keeping up with latest developments around LNbits. Deprecation of venv installation method.
How
Baseline docs:

https://github.com/lnbits/lnbits/blob/main/docs/guide/installation.md#option-1-recommended-poetry
https://github.com/raspibolt/raspibolt/pull/1163

Scope

[ ] significant change to core configuration
[x] independent bonus guide
[ ] simple bug fix

Fixes #1250
Pinging lnbits masters around github: @mutatrum @Mynima @TrezorHannes

Legend, I’ll try get this tested/reviewed tomorrow.

LGTM

Thanks for your review!

we good to go on this one? Be nice to close out both the issue and this PR.

Some dependencies or something is likely missing with my setup (Ubutun Server, Odroid HC4), poetry install --only main fails:
...
 • Installing secp256k1 (0.14.0): Failed

  ChefBuildError

  Backend subprocess exited when trying to invoke build_wheel

  0.29.1
  Using bundled libsecp256k1
  running bdist_wheel
  The [wheel] section is deprecated. Use [bdist_wheel] instead.
  running build
  running build_py
  creating build
  creating build/lib.linux-aarch64-cpython-39
  creating build/lib.linux-aarch64-cpython-39/secp256k1
  copying secp256k1/__init__.py -> build/lib.linux-aarch64-cpython-39/secp256k1
  copying secp256k1/__main__.py -> build/lib.linux-aarch64-cpython-39/secp256k1
  running build_clib
  Building experimental
  checking build system type... aarch64-unknown-linux-gnu
  checking host system type... aarch64-unknown-linux-gnu
  checking for a BSD-compatible install... /usr/bin/install -c
  checking whether build environment is sane... yes
  checking for a thread-safe mkdir -p... /bin/mkdir -p
  checking for gawk... gawk
  checking whether make sets $(MAKE)... yes
  checking whether make supports nested variables... yes
  checking how to print strings... printf
  checking whether make supports the include directive... yes (GNU style)
  checking for gcc... gcc
  checking whether the C compiler works... yes
  checking for C compiler default output file name... a.out
  checking for suffix of executables...
  checking whether we are cross compiling... no
  checking for suffix of object files... o
  checking whether we are using the GNU C compiler... yes
  checking whether gcc accepts -g... yes
  checking for gcc option to accept ISO C89... none needed
  checking whether gcc understands -c and -o together... yes
  checking dependency style of gcc... none
  checking for a sed that does not truncate output... /bin/sed
  checking for grep that handles long lines and -e... /bin/grep
  checking for egrep... /bin/grep -E
  checking for fgrep... /bin/grep -F
  checking for ld used by gcc... /usr/bin/ld
  checking if the linker (/usr/bin/ld) is GNU ld... yes
  checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
  checking the name lister (/usr/bin/nm -B) interface... BSD nm
  checking whether ln -s works... yes
  checking the maximum length of command line arguments... 1572864
  checking how to convert aarch64-unknown-linux-gnu file names to aarch64-unknown-linux-gnu format... func_convert_file_noop
  checking how to convert aarch64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
  checking for /usr/bin/ld option to reload object files... -r
  checking for objdump... objdump
  checking how to recognize dependent libraries... pass_all
  checking for dlltool... no
  checking how to associate runtime and link libraries... printf %s\n
  checking for ar... ar
  checking for archiver @FILE support... @
  checking for strip... strip
  checking for ranlib... ranlib
  checking command to parse /usr/bin/nm -B output from gcc object... ok
  checking for sysroot... no
  checking for a working dd... /bin/dd
  checking how to truncate binary pipes... /bin/dd bs=4096 count=1
  checking for mt... mt
  checking if mt is a manifest tool... no
  checking how to run the C preprocessor... gcc -E
  checking for ANSI C header files... yes
  checking for sys/types.h... yes
  checking for sys/stat.h... yes
  checking for stdlib.h... yes
  checking for string.h... yes
  checking for memory.h... yes
  checking for strings.h... yes
  checking for inttypes.h... yes
  checking for stdint.h... yes
  checking for unistd.h... yes
  checking for dlfcn.h... yes
  checking for objdir... .libs
  checking if gcc supports -fno-rtti -fno-exceptions... no
  checking for gcc option to produce PIC... -fPIC -DPIC
  checking if gcc PIC flag -fPIC -DPIC works... yes
  checking if gcc static flag -static works... yes
  checking if gcc supports -c -o file.o... yes
  checking if gcc supports -c -o file.o... (cached) yes
  checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
  checking dynamic linker characteristics... GNU/Linux ld.so
  checking how to hardcode library paths into programs... immediate
  checking whether stripping libraries is possible... yes
  checking if libtool supports shared libraries... yes
  checking whether to build shared libraries... no
  checking whether to build static libraries... yes
  checking whether make supports nested variables... (cached) yes
  checking for pkg-config... /usr/bin/pkg-config
  checking pkg-config is at least version 0.9.0... yes
  checking for ar... /usr/bin/ar
  checking for ranlib... /usr/bin/ranlib
  checking for strip... /usr/bin/strip
  checking for gcc option to accept ISO C89... (cached) none needed
  checking dependency style of gcc... none
  checking if gcc supports -Werror=unknown-warning-option... no
  checking if gcc supports -std=c89 -pedantic -Wno-long-long -Wnested-externs -Wshadow -Wstrict-prototypes -Wundef... yes
  checking if gcc supports -Wno-overlength-strings... yes
  checking if gcc supports -Wall... yes
  checking if gcc supports -Wno-unused-function... yes
  checking if gcc supports -Wextra... yes
  checking if gcc supports -Wcast-align... yes
  checking if gcc supports -Wcast-align=strict... yes
  checking if gcc supports -Wconditional-uninitialized... no
  checking if gcc supports -fvisibility=hidden... yes
  checking valgrind/memcheck.h usability... no
  checking valgrind/memcheck.h presence... no
  checking for valgrind/memcheck.h... no
  checking for x86_64 assembly availability... no
  configure: ******
  configure: WARNING: experimental build
  configure: Experimental features do not have stable APIs or properties, and may not be safe for production use.
  configure: Building extrakeys module: yes
  configure: Building schnorrsig module: yes
  configure: ******
  checking that generated files are newer than configure... done
  configure: creating ./config.status
  config.status: creating Makefile
  config.status: creating libsecp256k1.pc
  config.status: creating src/libsecp256k1-config.h
  config.status: executing depfiles commands
  config.status: executing libtool commands

  Build Options:
    with ecmult precomp     = yes
    with external callbacks = no
    with benchmarks         = yes
    with tests              = yes
    with coverage           = no
    module ecdh             = yes
    module recovery         = yes
    module extrakeys        = yes
    module schnorrsig       = yes

    asm                     = no
    ecmult window size      = 15
    ecmult gen prec. bits   = 4

    valgrind                = no
    CC                      = gcc
    CPPFLAGS                =
    SECP_CFLAGS             = -O2  -std=c89 -pedantic -Wno-long-long -Wnested-externs -Wshadow -Wstrict-prototypes -Wundef -Wno-overlength-strings -Wall -Wno-unused-function -Wextra -Wcast-align -Wcast-align=strict -fvisibility=hidden
    CFLAGS                  = -g -O2
    LDFLAGS                 =

    CC_FOR_BUILD            = gcc
    CPPFLAGS_FOR_BUILD      =
    SECP_CFLAGS_FOR_BUILD   = -O2  -std=c89 -pedantic -Wno-long-long -Wnested-externs -Wshadow -Wstrict-prototypes -Wundef -Wno-overlength-strings -Wall -Wno-unused-function -Wextra -Wcast-align -Wcast-align=strict -fvisibility=hidden
    CFLAGS_FOR_BUILD        = -g -O2
    LDFLAGS_FOR_BUILD       =
    CC       src/bench_verify.o
  gcc -DHAVE_CONFIG_H -I/tmp/tmpmo3eejjg/secp256k1-0.14.0/libsecp256k1 -I./src -O2  -std=c89 -pedantic -Wno-long-long -Wnested-externs -Wshadow -Wstrict-prototypes -Wundef -Wno-overlength-strings -Wall -Wno-unused-function -Wextra -Wcast-align -Wcast-align=strict -fvisibility=hidden  -g -O2 -c /tmp/tmpmo3eejjg/secp256k1-0.14.0/libsecp256k1/src/gen_context.c -o gen_context.o
  gcc -O2  -std=c89 -pedantic -Wno-long-long -Wnested-externs -Wshadow -Wstrict-prototypes -Wundef -Wno-overlength-strings -Wall -Wno-unused-function -Wextra -Wcast-align -Wcast-align=strict -fvisibility=hidden  -g -O2  gen_context.o -o gen_context
  ./gen_context
    CC       src/libsecp256k1_la-secp256k1.lo
    CCLD     libsecp256k1.la
    CCLD     bench_verify
    CC       src/bench_sign.o
    CCLD     bench_sign
    CC       src/bench_internal-bench_internal.o
    CCLD     bench_internal
    CC       src/bench_ecmult-bench_ecmult.o
    CCLD     bench_ecmult
    CC       src/tests-tests.o
    CCLD     tests
    CC       src/exhaustive_tests-tests_exhaustive.o
    CCLD     exhaustive_tests
    CC       src/bench_ecdh.o
    CCLD     bench_ecdh
    CC       src/bench_recover.o
    CCLD     bench_recover
    CC       src/bench_schnorrsig.o
    CCLD     bench_schnorrsig
  make[1]: Entering directory '/tmp/tmp1x3xi1f3'
   /bin/mkdir -p '/tmp/tmpmo3eejjg/secp256k1-0.14.0/build/temp.linux-aarch64-cpython-39/lib'
   /bin/bash ./libtool   --mode=install /usr/bin/install -c   libsecp256k1.la '/tmp/tmpmo3eejjg/secp256k1-0.14.0/build/temp.linux-aarch64-cpython-39/lib'
  libtool: install: /usr/bin/install -c .libs/libsecp256k1.lai /tmp/tmpmo3eejjg/secp256k1-0.14.0/build/temp.linux-aarch64-cpython-39/lib/libsecp256k1.la
  libtool: install: /usr/bin/install -c .libs/libsecp256k1.a /tmp/tmpmo3eejjg/secp256k1-0.14.0/build/temp.linux-aarch64-cpython-39/lib/libsecp256k1.a
  libtool: install: chmod 644 /tmp/tmpmo3eejjg/secp256k1-0.14.0/build/temp.linux-aarch64-cpython-39/lib/libsecp256k1.a
  libtool: install: /usr/bin/ranlib /tmp/tmpmo3eejjg/secp256k1-0.14.0/build/temp.linux-aarch64-cpython-39/lib/libsecp256k1.a
  libtool: finish: PATH="/tmp/tmpxm0gcuex/.venv/bin:/home/lnbits/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/bin:/sbin" ldconfig -n /tmp/tmpmo3eejjg/secp256k1-0.14.0/build/temp.linux-aarch64-cpython-39/lib
  ----------------------------------------------------------------------
  Libraries have been installed in:
     /tmp/tmpmo3eejjg/secp256k1-0.14.0/build/temp.linux-aarch64-cpython-39/lib

  If you ever happen to want to link against installed libraries
  in a given directory, LIBDIR, you must either use libtool, and
  specify the full pathname of the library, or use the '-LLIBDIR'
  flag during linking and do at least one of the following:
     - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
       during execution
     - add LIBDIR to the 'LD_RUN_PATH' environment variable
       during linking
     - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
     - have your system administrator add LIBDIR to '/etc/ld.so.conf'

  See any operating system documentation about shared libraries for
  more information, such as the ld(1) and ld.so(8) manual pages.
  ----------------------------------------------------------------------
   /bin/mkdir -p '/tmp/tmpmo3eejjg/secp256k1-0.14.0/build/temp.linux-aarch64-cpython-39/include'
   /usr/bin/install -c -m 644 /tmp/tmpmo3eejjg/secp256k1-0.14.0/libsecp256k1/include/secp256k1.h /tmp/tmpmo3eejjg/secp256k1-0.14.0/libsecp256k1/include/secp256k1_preallocated.h /tmp/tmpmo3eejjg/secp256k1-0.14.0/libsecp256k1/include/secp256k1_ecdh.h /tmp/tmpmo3eejjg/secp256k1-0.14.0/libsecp256k1/include/secp256k1_recovery.h /tmp/tmpmo3eejjg/secp256k1-0.14.0/libsecp256k1/include/secp256k1_extrakeys.h /tmp/tmpmo3eejjg/secp256k1-0.14.0/libsecp256k1/include/secp256k1_schnorrsig.h '/tmp/tmpmo3eejjg/secp256k1-0.14.0/build/temp.linux-aarch64-cpython-39/include'
   /bin/mkdir -p '/tmp/tmpmo3eejjg/secp256k1-0.14.0/build/temp.linux-aarch64-cpython-39/lib/pkgconfig'
   /usr/bin/install -c -m 644 libsecp256k1.pc '/tmp/tmpmo3eejjg/secp256k1-0.14.0/build/temp.linux-aarch64-cpython-39/lib/pkgconfig'
  make[1]: Leaving directory '/tmp/tmp1x3xi1f3'
  running build_ext
  generating cffi module 'build/temp.linux-aarch64-cpython-39/_libsecp256k1.c'
  building '_libsecp256k1' extension
  creating build/temp.linux-aarch64-cpython-39/build
  creating build/temp.linux-aarch64-cpython-39/build/temp.linux-aarch64-cpython-39
  aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DCFFI_ENABLE_RECOVERY -I/tmp/tmpxm0gcuex/.venv/include -I/usr/include/python3.9 -Ibuild/temp.linux-aarch64-cpython-39/include -I/tmp/tmpmo3eejjg/secp256k1-0.14.0/build/temp.linux-aarch64-cpython-39/include -c build/temp.linux-aarch64-cpython-39/_libsecp256k1.c -o build/temp.linux-aarch64-cpython-39/build/temp.linux-aarch64-cpython-39/_libsecp256k1.o
  build/temp.linux-aarch64-cpython-39/_libsecp256k1.c:50:14: fatal error: pyconfig.h: No such file or directory
     50 | #    include <pyconfig.h>
        |              ^~~~~~~~~~~~
  compilation terminated.
  error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1

  at ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/poetry/installation/chef.py:152 in _prepare
      148│
      149│                 error = ChefBuildError("\n\n".join(message_parts))
      150│
      151│             if error is not None:
    → 152│                 raise error from None
      153│
      154│             return path
      155│
      156│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:

Note: This error originates from the build backend, and is likely not a problem with poetry but with secp256k1 (0.14.0) not supporting PEP 517 builds. You can verify this by running 'pip wheel --use-pep517 "secp256k1 (==0.14.0)"'.

...

I had previously older LNbits version installed and running successfully using venv method.

@kristapsk thanks for testing. lnbits advices to run the following if it fails:

If the secp256k1 build fails do
poetry add setuptools wheel

I'll add it to the guide.

@kristapsk thanks for testing. lnbits advices to run the following if it fails:

If the secp256k1 build fails do
poetry add setuptools wheel

I'll add it to the guide.

$ poetry add setuptools wheel
Using version ^67.6.1 for setuptools
Using version ^0.40.0 for wheel

Updating dependencies
Resolving dependencies... (1.7s)

Because lnbits depends on cashu (0.9.0) which depends on wheel (0.38.4), wheel is required.
So, because lnbits depends on wheel (^0.40.0), version solving failed.

Guide should be updated to 0.10.5. https://github.com/lnbits/lnbits/releases/tag/0.10.5

I can finish installation successfully if I specify correct versions for setuptools and wheel (poetry add setuptools=65.7.0 wheel==0.38.4), but then poetry run lnbits --port 5000 --host <IP_ADDRESS> ends with an error. :(
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/home/lnbits/lnbits/lnbits/server.py", line 11, in <module>
    from lnbits.settings import set_cli_settings, settings
  File "/home/lnbits/lnbits/lnbits/settings.py", line 387, in <module>
    wallets_module = importlib.import_module("lnbits.wallets")
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/home/lnbits/lnbits/lnbits/wallets/__init__.py", line 3, in <module>
    from .cln import CoreLightningWallet
  File "/home/lnbits/lnbits/lnbits/wallets/cln.py", line 13, in <module>
    from lnbits import bolt11 as lnbits_bolt11
  File "/home/lnbits/lnbits/lnbits/bolt11.py", line 8, in <module>
    import secp256k1
  File "/home/lnbits/.cache/pypoetry/virtualenvs/lnbits-Me3QFGJB-py3.9/lib/python3.9/site-packages/secp256k1/__init__.py", line 5, in <module>
    from ._libsecp256k1 import ffi, lib
ModuleNotFoundError: No module named 'secp256k1._libsecp256k1'

Probably something is broken with my setup. If this works for others, I'm not against merging.

But I myself will neither ACK nor merge this, as I cannot test.

https://twitter.com/lnbits/status/1654416778804580352

But I myself will neither ACK nor merge this, as I cannot test.

Ok, cool. So having collaborators that cannot test PRs due to incompatible hardware and are also not willing to merge stuff tested by other users (that actually do run raspibolt setups), is not helpful for those who are relying on the raspibolt guide.
We have too few collaborators in here that can approve PRs, so we need to trust experienced users based on their tests and reviews because the guide and all of its bonus parts have grown by a lot. As a result, quite some PRs are stuck for weeks if not months, hunting releases and tags, waiting to be approved.
So for lnbits basically this means, we're sticking to lnbits running on a deprecated installation method and vulnerable versions.

We have too few collaborators in here that can approve PRs

Disagree here, you don't need to have commit access to test, review and ACK/NACK, anybody can do this.

So for lnbits basically this means, we're sticking to lnbits running on a deprecated installation method and vulnerable versions.

Ok, I will merge this. It's better to have guide that does not work for some users than guide that advises installing vulnerable versions of software.