Use consistent import aliases for config APIs

How to categorize this PR?

/area dev-productivity
/kind cleanup
What this PR does / why we need it:
This is a prefactoring for https://github.com/gardener/gardener/issues/11043:
When we start using the external version of the operator config API, we will have overlapping import aliases with the current configuration, which will get confusing:

github.com/gardener/gardener/pkg/apis/operator/v1alpha1 -> imported as operatorv1alpha1
github.com/gardener/gardener/pkg/operator/apis/config/v1alpha1 -> also imported as operatorv1alpha1

Therefore, this PR updates the import aliases to be consistent across all components:

github.com/gardener/gardener/pkg/*/apis/config/v1alpha1 -> imported as *configv1alpha1
github.com/gardener/gardener/pkg/*/apis/config/validation -> imported as *validation (unchanged)
github.com/gardener/gardener/pkg/*/apis/config/v1alpha1/validation -> imported as *validation (not used yet)

Which issue(s) this PR fixes:
Part of https://github.com/gardener/gardener/issues/11043
Special notes for your reviewer:
Release note:

NONE

/test all

/retest


dupe_finder: limit search for duplicates by resource ID

Next: add support for resource ID ranges to resource_dasm.

This is a good idea - thanks for building it. When it's merged, I might use it in resource_dasm as well to make --target more versatile. Requesting changes for some style nitpicks.
Edit: Missed your comment above :) I'll add it myself in a few days if you don't get around to it.

My basic plan was:

--target-type=<type>:<ids> limits the disassembled IDs of <type> (this would change existing behavior)
--target-id=<ids> limits the disassembled IDs in general
--skip=<ids> excludes the IDs in general

What do you think? Or would the change make --skip redundant?
What about !<id> to mean -32768..32767 except <id> (and similarly for ID ranges: !<min id>..<max id>) to integrate the functionality of --skip into --target-id?

My basic plan was:

--target-type=<type>:<ids> limits the disassembled IDs of <type> (this would change existing behavior)
--target-id=<ids> limits the disassembled IDs in general
--skip=<ids> excludes the IDs in general

What do you think? Or would the change make --skip redundant?
What about !<id> to mean -32768..32767 except <id> (and similarly for ID ranges: !<min id>..<max id>) to integrate the functionality of --skip into --target-id?

The behavior proposed here sounds good. I think even if we add the !id syntax, we should retain the --skip options, but they could essentially become shorthand for e.g. --target-id=!<ids>. I suspect the !id syntax would be more useful for dupe_finder than for resource_dasm, but it does seem like a logical extension of this change and we might as well use the same syntax in both tools.


[BUG]: pgEnum -> type "xxx" already exists during migration

What version of drizzle-orm are you using?
"^0.35.3"
What version of drizzle-kit are you using?
"^0.26.2"
Describe the Bug
Hi
In a nextjs app with "drizzle-orm/pg-core"  i have this enum
export const xxxEnum = pgEnum("xxx", [
  "x1",
  "x2",
"x3"
]);

And when I migrate my schemas first time all is ok,
but after a new migration i got the error
❌ Migration failed
PostgresError: type "xxx" already exists
at ErrorResponse (D:\Work\webapps\damhub\node_modules\postgres\cjs\src\connection.js:788:26)
at handle (D:\Work\webapps\damhub\node_modules\postgres\cjs\src\connection.js:474:6)
at Socket.data (D:\Work\webapps\damhub\node_modules\postgres\cjs\src\connection.js:315:9)
at Socket.emit (node:events:519:28)
at addChunk (node:internal/streams/readable:559:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
at Readable.push (node:internal/streams/readable:390:5)
If I do a db: push all works fine.
regards
Expected behavior
I expected a success migration after new migration. Not only the first time
Environment & setup
This is my package
{
"name": "xxx",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev --turbo",
"build": "next build",
"start": "next start",
"lint": "next lint",
"db:generate": "drizzle-kit generate",
"db:migrate": "tsx lib/db/migrate.ts",
"db:drop": "drizzle-kit drop",
"db:pull": "drizzle-kit introspect",
"db:push": "drizzle-kit push",
"db:studio": "drizzle-kit studio",
"db:check": "drizzle-kit check"
},
"dependencies": {
"@kinde-oss/kinde-auth-nextjs": "^2.4.3",
"@radix-ui/react-avatar": "^1.1.1",
"@radix-ui/react-checkbox": "^1.1.2",
"@radix-ui/react-collapsible": "^1.1.1",
"@radix-ui/react-dialog": "^1.1.2",
"@radix-ui/react-dropdown-menu": "^2.1.2",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-label": "^2.1.0",
"@radix-ui/react-separator": "^1.1.0",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.3",
"@t3-oss/env-nextjs": "^0.11.1",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"dotenv": "^16.4.5",
"drizzle-orm": "^0.35.3",
"drizzle-zod": "^0.5.1",
"lucide-react": "^0.453.0",
"nanoid": "^5.0.7",
"next": "14.2.16",
"next-themes": "^0.3.0",
"postgres": "^3.4.4",
"react": "18.3.1",
"react-dom": "18.3.1",
"sonner": "^1.5.0",
"tailwind-merge": "^2.5.4",
"tailwindcss-animate": "^1.0.7",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"drizzle-kit": "^0.26.2",
"eslint": "^8",
"eslint-config-next": "14.2.15",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"tsx": "^4.19.1",
"typescript": "^5"
}
}

<EMAIL_ADDRESS>also has this problem

<EMAIL_ADDRESS>has the same problem
export function enumToPgEnum<T extends Record<string, any>>(
  myEnum: T,
): [T[keyof T], ...T[keyof T][]] {
  return Object.values(myEnum).map((value: any) => `${value}`) as any
}

export enum USER_ROLE {
  ADMIN = 'ADMIN',
  USER = 'USER',
}

export const userRoleEnum = pgEnum('user_role', enumToPgEnum(USER_ROLE))

export const user = pgTable('user', {
  id: serial('id').primaryKey(),
  email: varchar('email').notNull().unique(),

  role: userRoleEnum().default(USER_ROLE.USER).notNull(),

running migrate ends up with:
Using 'pg' driver for database querying
[⣷] applying migrations...error: type "user_role" already exists
    at /Users/user/Desktop/Projects/api/node_modules/pg/lib/client.js:535:17
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async <anonymous> (/Users/user/Desktop/Projects/api/node_modules/src/pg-core/dialect.ts:102:7)
    at async NodePgSession.transaction (/Users/user/Desktop/Projects/api/node_modules/src/node-postgres/session.ts:193:19)
    at async PgDialect.migrate (/Users/user/Desktop/Projects/api/node_modules/src/pg-core/dialect.ts:95:3)
    at async migrate (/Users/user/Desktop/Projects/api/node_modules/src/node-postgres/migrator.ts:10:2) {
  length: 89,
  severity: 'ERROR',
  code: '42710',
  detail: undefined,
  hint: undefined,
  position: undefined,
  internalPosition: undefined,
  internalQuery: undefined,
  where: undefined,
  schema: undefined,
  table: undefined,
  column: undefined,
  dataType: undefined,
  constraint: undefined,
  file: 'typecmds.c',
  line: '1169',
  routine: 'DefineEnum'
}

<EMAIL_ADDRESS>also has the same problem. Push works, but generate+migrate does not.
  length: 84,
  severity: 'ERROR',
  code: '42710',
  detail: undefined,
  hint: undefined,
  position: undefined,
  internalPosition: undefined,
  internalQuery: undefined,
  where: undefined,
  schema: undefined,
  table: undefined,
  column: undefined,
  dataType: undefined,
  constraint: undefined,
  file: 'typecmds.c',
  line: '1177',
  routine: 'DefineEnum'

Still a problem.

Has anyone found the solution to this ?


errors on server start (since <IP_ADDRESS> unturned update)

this is what it spam for a few seconds after it says after it says successfully set the map stuff - https://gyazo.com/dda3b55727557a901f5217f8d590da3c
then after all the spam rocket loads. everything seems to work fine from hte brief testing i did with commands.
not sure if this is a unturned or rocket bug/issue
ps: im rocket build #784

This is a strange bug, I've seen this on some of my server's on one comp(all of them on one comp), but not any of the other comps I have server's on.

@cartman-2000  you know a fix for this?

No, I'm not sure what's causing the error message pericely.

This indeed looks like an unturned bug, please report it to nelson.


Always getting wierd error messages when attempting to use esmufl

I am working on Lilypond 2.24.4, and I recently heard of esmufl as a powerful LilyPond library for SMuFL support in comparison to openlilylib's SMuFL library. However, when I'm attempting to switch my LilyPond SMuFL library from openlilylib's smufl to esmufl, for every score document there seems to be different types of errors. Even I made a test document using only one example from the PDF document I still got a strange error. I don't know why. Is it possible for me to use esmufl anyway?
If more information is needed I will provide it later.
The source code is:
\version "2.24.4"
\include "./assets/ly/lib/ekmelily/esmufl.ily"

\score {
  \new Staff \with {
    \ekmSmuflOn #'trill
  }
  \relative c'' {
    \ekmSmuflOn #'notehead
    \override NoteHead.style = #'triangle
    c4 a
    \ekmSmuflOff #'notehead
    \revert NoteHead.style
    \autoBeamOff
    a8
    \ekmFlag #'straight
    a <a d> a16 <a d>
    \ekmPitchedTrill #'slash #'bracket
    d2 \ekmStartTrillSpan #4 e d4 c \stopTrillSpan
    \ekmSmuflOn #'tremolo
    \ekmTremolo unmeasured { c4:16 a: }
    \ekmSmuflOff #'tremolo
    \ekmTremolo unmeasured { c4:16 a: }
  }
  \layout {
    \context {
      \Score
      \ekmSmuflOn #'flag
    }
  }
}

And the error message I get is:
Starting lilypond.exe 2.24.4 [test.ly]...
Processing `C:/Users/<my username>/AppData/Local/Temp/frescobaldi-32ks6vs_/tmpkxnhb12_/test.ly'
Parsing...
C:/Users/<my username>/AppData/Local/Temp/frescobaldi-32ks6vs_/tmpkxnhb12_/test.ly:19:24: error: Guile signaled an error for the expression beginning here
d2 \ekmStartTrillSpan #
                       4 e d4 c \stopTrillSpan

Unbound variable: #{\xad;4}#
C:/Users/<my username>/AppData/Local/Temp/frescobaldi-32ks6vs_/tmpkxnhb12_/test.ly:19:23: error: wrong type for argument 1.  Expecting integer, found #<unspecified>
d2 \ekmStartTrillSpan
                      #4 e d4 c \stopTrillSpan

Interpreting music...
Exited with return code -1073741819.

Also, for my other two scores, below are the error messages I got respectively (some paths names is replaced by general identifiers wrapped in <>):
Starting lilypond.exe 2.24.4 [etudina-35.ly]...
Processing `<lilypond work dir>/etudina/etudina-35.ly'
Parsing...
Interpreting music...[8][16][24][32][40][48][56][64][72][80][88][96][104][112][120][128][136][144][152][160][168][176][184][192][200][208][216][224][232]
Preprocessing graphical objects...
<lilypond work dir>/etudina/etudina-35.ly:302:86: programming error: cyclic dependency: calculation-in-progress encountered for Beam.direction
  | g4 d'16( c b a | g fs e d c) d c ds | e( c bf gs) a gs a b a fs d c \lowerStaff a
                                                                                \jsOnceOffset "13" "positions" #'(1.57 . 0.4) [ \upperStaff c d fs] |

<lilypond work dir>/etudina/etudina-35.ly:302:86: continuing, cross fingers
<lilypond work dir>/etudina/etudina-35.ly:302:150: programming error: cyclic dependency: calculation-in-progress encountered for Stem.direction
  | g4 d'16( c b a | g fs e d c) d c ds | e( c bf gs) a gs a b a fs d c \lowerStaff a\jsOnceOffset "13" "positions" #'(1.57 . 0.4) [ \upperStaff c d
                                                                                fs] |

<lilypond work dir>/etudina/etudina-35.ly:302:150: continuing, cross fingers
fatal error: make-ekm-char-markup: Invalid argument in position 1.  Expect: integer, found: (57508 #f 1 . 0.3).
Exited with return code 1.

Starting lilypond.exe 2.24.4 [prelude-2.ly]...
Processing `<lilypond work dir>/prelude-2.ly'
Parsing...
Interpreting music...[8][16][24][32][40]
Preprocessing graphical objects...
<lilypond work dir>/prelude-2.ly:120:72: programming error: cyclic dependency: calculation-in-progress encountered for Stem.direction
\relative c'' { | r16_\exprMark"rit." ds e ds b cs b g fs g fs cs ds e
                                                                       ds \lowerStaff b | fs1^^ | }

D:/New Homeland/Creations/Music/Scores/Source Files/LilyPond/prelude-2.ly:120:72: continuing, cross fingers
C:/ProgramData/chocolatey/lib/lilypond/lilypond_v2.24.4/lilypond-2.24.4/share/lilypond/2.24.4/ly/init.ly:65:2: error: Guile signaled an error for the expression beginning here
#
 (let ((book-handler (if (defined? 'default-toplevel-book-handler)
In procedure zero?: Wrong type argument in position 1: calculation-in-progress
Exited with return code 1.

The first error is caused by a soft hyphen ("shy" U+00AD) instead of the correct minus sign (U+002D)  in the pdf for #-4.  This is due to the fonts I used for the pdf. I changed this so that copy-paste now works correctly.
The second error - cyclic dependency - is caused by beamed cross-staff notes. This is a new issue (#11) which I'm still trying to fix.

Thanks for the explanation. Hope esmuflily will work for me in the future.

Found a solution that should work in most cases. Only (cross-staff) beamed notes with a note-head style like triangle (where the heads are different for up and down stem) can be wrong. But no error messages should occur.

Thanks a lot! I'll try the new version later.


Allow using type parameters and return types with overloaded class constructors

Search Terms
Generic Class Constructor Declaration Overloads Type Parameters

Suggestion

This is partially a request to revisit some of the discussion from here:
https://github.com/microsoft/TypeScript/issues/10860
But it's also to provide some examples of cases that are difficult/impossible to type using classes today.
A class may frequently assign different types to its properties depending on how it was instantiated. While we can type those properties as unions of all their possible types (or even use completely separate classes), it would be amazing if we could "narrow" a class's type based on how it was instantiated.
We CAN handle this type of complexity with regular function overloads, because the relevant call signature is narrowed by both function parameters and type parameters. Class constructors, however, only pay attention to the parameters being passed and can't have type parameters.
Use Cases

// Using type parameters with overloaded generic function
function func(): void;
function func<T extends string>(requiredThing: T): void
function func(requiredThing?: string) { }
func()              // Ok
func<'hello'>()     // Expects 1 argument, as expected

// Attempting to use type parameters with overloaded class constructor
class Example<T> {
    constructor()
    constructor(blah: T)    // How do we connect this to the presence of T?
    constructor(blah?: T) {}
}
new Example()           // Ok
new Example<'hello'>()  // We want this to expect 1 argument somehow

As was also discussed in https://github.com/microsoft/TypeScript/issues/10860, return types on a constructor could theoretically represent narrowed versions of the instance type. Currently there's not an easy way to narrow a property's type based on how the class was instantiated:
class Example {
    prop?: string | number

    constructor()    // When this is used, prop should be string | number | undefined
    constructor(prop: string)    // When this is used, prop should be string
    constructor(prop: number) // When this is used, prop should be number
    constructor(prop?: string | number) {
        // implementation
    }
}

Examples

Ideally, maybe something like this for narrowing by type parameters:
class Example {
    constructor()
    constructor<T extends string>(blah: T)
    constructor(blah?: string) {}
}
new Example()           // Ok
new Example<'hello'>()  // Would expect 1 argument

And maybe something like this for return types:
interface IExampleString extends Example {
    prop: string
}
interface IExampleNumber extends Example {
    prop: number
}
class Example {
    prop?: string | number

    constructor()    // When this is used, prop should be string | number | undefined
    constructor(prop: string): IExampleString    // When this is used, prop should be string
    constructor(prop: number): IExampleNumber    // When this is used, prop should be number
    constructor(prop?: string | number) {
        // implementation
    }
}

Checklist
My suggestion meets these guidelines:

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

I also wanted to provide a possible response for a point that @RyanCavanaugh made here, https://github.com/microsoft/TypeScript/issues/10860#issuecomment-246456721, where he points out that there is ambiguity in how to specify a class's type parameter vs the constructor's type parameter (e.g. new SomeClass<T>() could either be specifying the class type parameter or the constructor type parameter)
My suggestion would be that users should not be allowed to define both class-level and constructor-level type parameters. Essentially, a class-level type parameter would be a shorthand way of specifying the type parameters for all constructor overloads, but if a type parameter on one or more constructor overloads is specified, then the class's type parameter essentially becomes T extends Constructor1Param | Constructor2Param | Constructor3Param | ...etc (or similar to however function overloads with different type parameters are handled)
I'm more than happy to be pointed towards alternative ways of accomplishing the above cases!

Workaround: build the closest thing you can with a regular generic class and rename it out of the way.  Then make a type and a value of the desired name of the desired types and use type assertions where necessary:
class _Example<T extends string | undefined> {
    constructor(blah?: T) { }
}
type Example<T extends string | undefined> = _Example<T>;
const Example = _Example as {
    new(): Example<undefined>;
    new <T extends string>(requiredThing: T): Example<T>;
}

new Example()          // Ok
new Example<'hello'>()  // error, expected 1 argument

and
class _Example<T extends string | number | undefined> {
    prop: T;
    constructor(prop?: T);
    constructor(prop: T) {
        this.prop = prop;
    }
}

type Example<T extends string | number | undefined> = _Example<T>;
const Example = _Example as {
    new(): Example<string | number | undefined>;
    new(prop: string): Example<string>;
    new(prop: number): Example<number>;
}

new Example().prop  // string | number | undefined
new Example("a").prop  // string
new Example(1).prop // number

Playground link

Thanks @jcalz - this is a nice summary of how to work with trickier construct signatures.
Would you agree though that being able to accomplish the above through the class's own type would be preferable to creating a constant that is imitating that class?
It certainly won't be intuitive to users when they see a class's type shown as const Example when they know it to be a class.
And if a workaround like you provided is already possible, it seems likely that this could also be accomplished under the hood 🤞🏻

Would you agree though that being able to accomplish the above through the class's own type would be preferable to creating a constant that is imitating that class?

Sure

It certainly won't be intuitive to users when they see a class's type shown as const Example when they know it to be a class.

Maybe, but do note that most of the built-in constructors are declared with type definitions like this and nobody seems to care much.  Write new Array and see what IntelliSense tells you about Array.  I get something like this: var Array: ArrayConstructor and not class Array.

Wow that's enlightening about ArrayConstructor. It's interesting how 'Go to Definition' on Array manages to go to the interface Array and not the declared var or ArrayConstructor...but its construct signatures are indeed overloaded through ArrayConstructor...
I can roll with this for now, but I would love if someday class could handle all this itself 🙂
Great examples - thanks for providing those!

So actually...I don't think I'm going to be able to use the workaround 🙁 because users of the library whose types I'm working on expect to be able to do class CustomExample extends Example {} (to borrow the example classes from above).
By abstracting the class' constructor behavior to a const, we successfully made new work as we would want...but it breaks anything trying to extend the original class with an error Base constructors must all have the same return type.

do note that most of the built-in constructors are declared with type definitions like this and nobody seems to care much

I don't care when writing code, that's true, but I do start to care when I do a Peek Definition on types like these to, e.g., see available methods.  It often takes me to the wrong half of the definition and the two halves don't always seem to be kept together.  Promise being a good example of that.

Do remember that there is some capacity to do this already, but as pointed out, it is encumbered by the aforementioned problem of adding typing to the constructor [Type parameters cannot appear on a constructor declaration.(1092)]:
TSPlayground
class VariClass<T extends string|number> {
  prop?: T extends string ? string : number;
    constructor(prop?: T) {
        // implementation
    }
}

var vs = new VariClass<string>()
var ps = vs.prop //:string

var vn = new VariClass<number>()
var pn = vn.prop //:number

Ok - so I'm back to thinking that the workaround by @jcalz can accomplish what I want to do, but I wanted to provide some additional observations after noticing some limitations and helpful patterns:
Here's an example of what I initially wanted to do:
declare namespace Test {
    interface Example<T extends object = object> {
        someProp: T
    }
    const Example: {
        new(): Example
        new <T extends object>(): Example<Partial<T>>
        new <T extends object>(someProp: T): Example<T>
    }
}

const example1 = new Test.Example()
example1.someProp       // object 👍🏻

const example2 = new Test.Example<{ numberThing: number }>()
example2.someProp.numberThing   // number | undefined 👍🏻

const example3 = new Test.Example<{ stringThing: string }>({ stringThing: 'hello' })
example3.someProp.stringThing   // string 👍🏻

// The following attempt will throw 'Base constructors must all have the same return type.'
class Child<T extends object = object> extends Test.Example<T> {
    someChildProp = 'stuff'
}

The goal with the above was to accomplish something similar to what can be done with functions like this:
declare namespace FuncTest {
    function someFunc(): object
    function someFunc<T extends object>(): Partial<T>
    function someFunc<T extends object>(val: T): T
}

const func1 = FuncTest.someFunc()   // object
const func2 = FuncTest.someFunc<{ thing1: string }>()    // Partial<{ thing1: string }>
const func3 = FuncTest.someFunc({ thing2: 200 })    // { thing2: number }

It's the difference between the "Have type parameter but no function parameter" and the "Have type parameter AND function parameter" cases that doesn't seem to be possible when dealing with overloaded construct signatures.
So, instead I settled for removing the middle construct signature - effectively forcing the user to pass the constructor parameter when the type parameter is provided. There is no "Partial" case any more. This is arguably totally fine, and it just means the user will possibly need to make assertions to accomplish what would have otherwise been possible via a type parameter.

Also, I think it would be great to add an example somewhere to the documentation that displays this "separate instance type and constructor type" pattern that we've been talking about. I've found this setup below to be pretty powerful (in ambient contexts, anyway), but it took some mental hoop jumping to understand the idea of having an interface with the same name as a const, and the opportunity that it provides:
    interface SomeClassName {
        // All instance props and methods go here
    }
    const SomeClassName: {
        // All static props and methods AND overloaded construct signatures go here
        new(): SomeClassName
    }

Yeah, I'm also still looking for this feature. The workaround proposed by Jcalz has 2 majour downsides:

no overload possible
Not possible to use Example as a type.

Currently there is no easy way to have different constructors returning different generics. :(


Add info about git-crypt for encrypting

Hi, just added some info about other tool than ansible-vault.
Cheers

Thanks spk.


Issue on materialbox + card-reveal + col

I'm having an issue with materialbox, I have a materialbox inside a card inside a row, but when I click the image it's limited by the column edge, thus the image appears cutted. My html looks like:

	Card Title

	Card Title \

fixed by removing attribute overflow: hidden; from .card css class.

Please search existing issues as well.

Added issue to reveal, but nothing more than a style feature.


Make access to string content in json explicit.

Attempting to implicitly convert the returned json object to a string can be ambiguous.

Codecov Report
Base: 93.00% // Head: 93.00% // No change to project coverage :thumbsup:

Coverage data is based on head (580ce20) compared to base (1679d49).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1622   +/-   ##
=======================================
  Coverage   93.00%   93.00%
=======================================
  Files         349      349
  Lines       24750    24750
=======================================
  Hits        23019    23019
  Misses       1731     1731

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

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Slow fps on generated video

Thanks for sharing this amazing tool.
I tried and succeded in using my own files, however the output is slowed down and a 30 sec video turns into 45 sec.
I tried to change the fps=fps parameter in

imageio.mimsave('../generated.mp4', [img_as_ubyte(frame) for frame in predictions], fps=fps)

to fps=30, fps=30.0 or fps=60 but without much changing at all!
Is there another method to generate a video at the same speed as the original?

Well this is weird. This should work. For sure you can always postprocess the generated video using ffmpeg. Something like this
https://stackoverflow.com/questions/45462731/using-ffmpeg-to-change-framerate/45465730


Feature: model capturing items on outer levels in dom-repeat

quote from Handling events in dom-repeat templates

When handling events generated by a dom-repeat template instance, you frequently want to map the element firing the event to the model data that generated that item.

When you add a declarative event handler inside the  template, the repeater adds a model property to each event sent to the listener. The model is the scope data used to generate the template instance, so the item data is model.item
This feature seems to support only one (the inner-most) level. i in the following example is not captured. Please click on <input>'s to experiment:
<!DOCTYPE html>

    <link rel="import" href="proto-element.html">

    <proto-element></proto-element>

<link rel="import" href="bower_components/polymer/polymer.html">
<link rel="import" href="bower_components/iron-input/iron-input.html">
<dom-module id="proto-element">
    <template>
        <template is="dom-repeat" items="{{rows}}" as="row" index-as="i">
            <template is="dom-repeat" items="{{row}}" as="column" index-as="j">
                <input is="iron-input" bind-value="[[column]]" on-tap="clicked">
            </template>
        </template>
    </template>
</dom-module>

I can repro this issue, but I'm not sure if it's a documentation issue, a code issue, or both.
Here's the breakdown: examining the results, it appears that e.model only includes the values that are bound in that scope. Since the inner template repeat doesn't bind to {{i}}, it doesn't get attached to the model object.
Binding i in the inner scope fixes this:
http://jsbin.com/tinuda/1/edit?html,output
However, binding i in the outer scope doesn't make it available in e.model in the inner scope.
It seems to me that this is probably incorrect, and that perhaps we should take index-as and item-as as cues that the data is interesting even if it's not bound.
As a workaround, you can assign an ID to the outer dom-repeat, and then use indexForElement, like this:
        var outerIndex = this.$.outerDomRepeat.indexForElement(e.target);

http://jsbin.com/tinuda/5/edit?html,output
@kevinpschaaf, is the current behavior WAI? If so, it seems like the docs should be updated to note that only paths bound in the current scope are available in e.model. Please advise.

Right now it is working as intended, although I acknowledge the use case presented that we don't cover.
For performance reasons, only notifications for properties actually used in inner scope are forwarded in, hence the inner instance not having access to outer scope properties that were not referenced in bindings.
The workaround @arthurevans provided works well for two nested dom-repeats, where you can access the outer dom-repeat by id.  More generally, you could do something like bind the outer i to the inner dom-repeat, and access that from event.model.dataHost (where dataHost of the model will be that dom-repeat that created it):
        <template is="dom-repeat" items="{{rows}}" as="row" index-as="i">
            <template is="dom-repeat" items="{{row}}" as="column" index-as="j" outer-index="{{i}}>
                <input is="iron-input" bind-value="[[column]]" on-tap="clicked">
            </template>
        </template>

        clicked:function(e){
            alert(e.model.dataHost.outerIndex + "->" + e.model.j);
        }

We'll keep this issue open to consider better API to meet this use case.

@kevinpschaaf I fail to figure out the reason that the following alert() yields the first two undefined,undefined:
<link rel="import" href="bower_components/polymer/polymer.html">
<link rel="import" href="bower_components/iron-input/iron-input.html">
<dom-module id="proto-element">
    <template>

        <template is="dom-repeat" items="{{rows}}" as="row" index-as="i">

            <template is="dom-repeat" items="{{row}}" as="column" index-as="j" row-index="[[i]]">

					<template is="dom-if" if="[[yes()]]">
						<input is="iron-input" bind-value="[[column]]" on-tap="clicked" data-row-index$="[[i]]">
					</template>

            </template>

        </template>

    </template>
</dom-module>

Perhaps this issue is relative to this issue.
My recent workaround for this missing feature is adding data-index attributes to dom-repeat children. Then the script can find its own position by referencing to these attributes like this:
   <template is="dom-repeat" items="{{rows}}" as="row" index-as="i">
        <template is="dom-repeat" items="{{row}}" as="column" index-as="j">
                    <input is="iron-input" bind-value="[[column]]" on-tap="clicked" data-row-index$="[[i]]" data-column-index$="[[j]]">
        </template>
    </template>

    clicked:function(e){
            console.log(e.target.getAttribute("data-row-index"),e.target.getAttribute("data-column-index"));
    }

I used event.model.dataHost.dataHost.. in an on-click function inside the inner dom-if template to retrieve the . in the dom-repeat template. It works!

Thanks yingqiaogit, good find!

Given the performance characteristics of <dom-repeat>, the workaround as posted by @yingqiaogit is the trade-off we have to make. We have considered exposing explicit API for this use-case, but we are not convinced there are a lot of benefits to that API, other than the current workaround. Therefore I am closing this issue.


Unsuccessful optimization when running UPnPRANSAC

Hello,
When I pick at least 5 points in both lidar and camera of plane object I get the result but with "unsuccessful" flag. What might cause this ?
Thanks.

You may try other solver methods as shown here. Try increasing reprojectionError or iterationsCount. Make sure you have the correct camera calibration data published on the camera_info topic, else the re-projection error might be high.


Add support for Drupal's inc, module and install extensions

Drupal uses the .inc, .module and .install file extensions and it is currently
not recongised by GitHub as being a PHP based file.

Sorry for the incredibly slow response rate here - over the past few weeks I've been systematically trying to get through old pull requests.
To answer your question @rivimey - the issue with .inc is that there are many different languages that use the extension. Tackling this is a fairly major task and so IMO its better for them to remain unclassified than have some of them correct and the majority correct.
Digging into this pull request a little more, it turns out that .module and .install are both also used outside of Drupal which means we have the same issue again.
The current state of the Linguist classifier is that it has to return a Language result if the extension is 'known' and to be honest this is rather dumb.
We have a Google Summer of Code project this year to completely re-write the Linguist classifier to address problems just like this one. It definitely should be possible to make contributions like this to Linguist (that is, adding support for a single language use of an extension) but for now it's not and so I'm afraid this pull request can't be merged.

I also meant to add that if this is causing you issues on your current repositories then we have a number of self-serve override solutions that you can use to force Linguist to classify these files as PHP: https://github.com/github/linguist#overrides

Hi @arfon, thanks for getting back to us re this issue.
I have looked at the linked issue and the linguist overrides, and the .gitattributes solution is a possible one, though sadly manual (I presume). Maybe the github website could offer an interface to set it?
In posting my comment I was thinking that while I fully understand that file extensions are widely duplicated, the solution was to implement language-specific tests, in the manner of Unix file (magic) database. For example, .info, .module and .install in a drupal context will, I think in all cases, be in the same directory, and the .info file must be present. Moreover, .module and .install will almost certainly have a <?php in the first few lines. I think that would make a fairly robust check on its own for the 'Drupal' meaning of those extensions.
.inc is trickier, in that it is as you suggest widely used. If I was trying to detect it I would start by saying there must be a <?php tag in the first few lines. That might not be sufficient, but it would be a very good start to say this is a 'php' file. To differentiate further may be helpful, but I'd need use-cases I think.
As for performance, the tests could be cached, surely, so you only need to check file types when a file is added (or changed?), not for every access.

@rivimey Working on it at #2180 ;)


R5 and R6 at wrong location? (Classic Composite v2.1e)

I tried loading the gerber, BOM, and POS files for Classic Composite v2.1e into https://jlcpcb.com/ and the position of R5 and R6 are not in the correct location.
Other minor things:

J3, J4, J5 are missing from POS (the 3 RCA connectors)
C11 50uP 50V cap has no inventory.  There were a couple 47uP 50V caps with same 0805 package to choose from.
C8 220uF cap only had 5 in stock and I couldn't find an alternative with same dimensions

I saw in previous issue you are working on a new board so I'll hold off on this for now.

Thank you for the feedback.  I will be removing this design once the new one is available but I appreciate you finding these.
The newer design (which I am currently testing) will have easier to source parts that can be bought at places like DigiKey/Mouser but also assembly at JLCPCB.
For an alternative to C8, you can use LSCS C2757945
I didn't include the Jacks in the POS as I just did those myself instead of having it assembled.  I didn't feel it was worth the cost of those connectors and soldering compared to just doing it myself.  I can include that in later releases.
Thanks again,
-Merlin Shaw

Just read the "NES Revival RGBNES Companion Power Module" page.  If I am not doing NESRGB, can the 3.0 board be used as a replacement power supply with legacy composite video/internal audio?  Maybe just needs a jumper from J1 video to J8 comp.

The NESRGB "Companion" Power Board can do internal audio/video.  These are
selected with the slide switches that are on the board.
On Wed, Jan 17, 2024 at 3:08 PM Bitdo @.***> wrote:

Just read the "NES Revival RGBNES Companion Power Module" page. If I am
not doing NESRGB, can the 3.0 board be used as a replacement power supply
with legacy composite video/internal audio? Maybe just needs a jumper from
J1 video to J8 comp.
—
Reply to this email directly, view it on GitHub
https://github.com/ShawMerlin/NES-Power-Module-Redesign/issues/9#issuecomment-1897051405,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQZJHHUJVHLUWA5VG5DN76TYPBDUZAVCNFSM6AAAAABB5TH3IOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJXGA2TCNBQGU
.
You are receiving this because you commented.Message ID:
@.***>


Create a custom implementation of a path

We need a custom class representing a path to a Block.

Proposed by @ljiazh3ng at #8
interface Path {
    public String[] getPath();
}

Hey @ljiazh3ng, I moved your proposed implementation of the Path interface from #8 to here, for ease of reference.
In addition, let's change String[] to List<String> (since List is more convenient than a regular array) and add a isAbsolute() method!

@firzanarmani Hey firzan, please take a look and let me know what you think!

@kevinputera I think this is good enough for now!


Security Vulnerability Disclosure

Hi,
I have found a high-risk security vulnerability which may result in remote code injection in this project. Who can I contact to responsibly disclose it?
Thanks,
Indiana Moreau

CC: @DavertMik  @PeterNgTr

Closing as I've received no answer.


Ram 1500 rebel 2022 ECU version update

Can you post your dongle id?

Sorry for the late reply
c8e9367360cf9f96
On Sat, 13 May 2023 at 7:39 AM Shane Smiskol @.***>
wrote:

Can you post your dongle id?
—
Reply to this email directly, view it on GitHub
https://github.com/commaai/openpilot/pull/28155#issuecomment-1546524462,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A7VHAIALKKPG5QUP6KU44TDXF4F6JANCNFSM6AAAAAAX4GMJNI
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Best Regards
Ali Alkuwari


Implement PermBFT in terms of "real" implementation

The first integration (#168) is in terms of the executable spec, which is not intended for production use.

Note on time estimate: allowing a bit of time here despite the previous integration, since the "real" implementation uses a different software stack as the executable spec.

https://github.com/input-output-hk/ouroboros-network/pull/409

Closing this as done; PR will be merged soon. Chain selection must still be done, but we have a separate ticket for that (#422).


[BUG] Unable to push images due to Podman/Docker incompatibility

Version
redhat-actions/push-to-registry@v2
Describe the bug
The base ubuntu images used in GitHub actions have updated to docker 26.1.3 which has bumped the client API version requirements for talking with the local docker daemon to 1.24.
That base ubuntu image is stuck on version 3.4.4 for Podman which uses the 1.22 docker client.
This causes the step in the action that attempts to copy images from the local docker registry to the podman registry to fail with the following error message:
podman pull docker-daemon:hello-world:latest
  Error: initializing source docker-daemon:hello-world:latest: loading image from docker engine: Error response from daemon: {"message":"client version 1.22 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version"}

A bug has been filed with the GitHub run images here:
https://github.com/actions/runner-images/issues/10225
Steps to reproduce, workflow links, screenshots
Use the example code in the main README.
Or the following to test the specific issue with the podman pull docker-daemon:
name: test

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - name: test docker-daemon
        run: |
          echo "Docker Version"
          docker version
          docker pull alpine:latest
          echo
          echo "Podman Version"
          podman version
          podman pull docker-daemon:alpine:latest

As a work around I was able to successfully get the action to work by downgrading docker to version 24 in an action.  I have attempted to also upgrade the version to a newer version in the action but it does not appear anything newer than 3.4.4 is available in Ubuntu.

@strangiato would you care to share how you downgraded Docker? I'm in the same situation where all of my builds have broken and downgrading Docker seems the easiest workaround for now...


How do you use CSinterface file ?

hi @jieliu218 , the file is being loaded on startup. look at the session-src folder
as one of the managers use it

Hi (from Jerusalem 🖐)!
I'm building a CEP panel for InDesign with React.
So far everything is working amazing.
But I can't find a way to access CSinterface from React.
I saw you did manange, but how?
Thanks! תודה רבה!!!

@newgraph hi,
you just have to instantiate it from wherever you like:
var interface = new CSInterface()

also see,
https://github.com/HendrixString/adobe-cep-react-create/blob/master/src/session-src/src/ScriptLoader.js#L12

you just have to instantiate it from wherever you like:

That doesn't work - React throws a build error 'CSInterface' is not defined.
I got around this issue by adding the CSInterface object to the global window object, so it is accessible from within the React app.
Probably not the most legitimate way... but it works...

a build or runtime error ?
CSInterface.js is included in the main html file and therefore should be
fine for usage. I do use it inside the session object.
basically, it works for me when used and tested inside the adobe product.
I do recommend using the version I published as it also gives you
infrastructure for evaluating host jsx files for adobe products.


Userscript should provide a STOP (D) button so I can just control the bots

Hello Everyone i have this cool idea for the script :+1:
If u press Letter D ur cell stops at its cords just like agarbot.ovh!
so u can control ur bots as if u were teaming with the bot feeding you!
Would be seriously useful!

This is basically #87

@MasonBurdette its not......

@mayed505 explain.  i may have read you issue incorrectly. to me it looks the same.

@MasonBurdette it's not the same, he's talking about stop ball movement.

@WJKH ah i see

@WJKH  and @MasonBurdette  Yeah :D

Will be implementing this shortly :smiley:

@gcsoftware nice, thanks!

@mayed505 @WJKH @MasonBurdette Fulfilled :grin:

@davidmann4 Needs closed, gcsoftware has made a pull request implementing this.

Closed


Bugfix germsel correctness tests

This PR updates the germ selection correctness/integration checks added to the unit tests in test_packages in a recent update to develop. These tests can be sensitive to various difference among OS and python version and so were failing on some runners. Additional solutions have been added to the tests to account for these local variations, and we now have all of the tests in the test_packages workflow passing. With the exception of python 3.11 on macOS which is failing because of an unrelated build error with CVXOPT.
~Note: New commits are 52a793ddf1ccab2f71fd0df365caa4fde828b2aa and onward. The other commits are from the bugfix-stricter-line... branch which has already been merged in, but they still seem to show in the history as new in this branch.~ It is because I had accidentally selected to merge into master, fixed now.

I merged this in now because these tests were now the failing ones on beta. I'd like to get a clean set of tests before merging in other branches in for the release.


find scsi disk device if scsi addr is given

scsi disk name is not consistent with scsi addr. find the
device through scsi addr.
Signed-off-by: Gao feng<EMAIL_ADDRESS>

LGTM


Using the "Include" on GetAll method

Hi Eduardo,
If we consider that the Customer entity has a list of another entity like IEnumerable AddressList;. At the CustomerController, when I use GetAll(), how can I use the Include() to fill the AddressList ?? Is there a way that I can override the GetAll method?
Thank you

There is a project on github
https://github.com/digipolisantwerp/dataaccess_aspnetcore
i think good one to Paging include ext. , this kind problems.
Also can easyly integrate this project.
I am using it with mysql with Equinox

It's in aspnet core 2.1
Upgrade?
That'd be a good feature request ...

Further EF Core features (include for derived types) https://blogs.msdn.microsoft.com/dotnet/2018/02/27/announcing-entity-framework-core-2-1-preview-1/

The new improvements took care of that.


chore: bump<EMAIL_ADDRESS>

Cherry-pick from https://github.com/microsoft/vscode/pull/137241

@deepak1556 this worries me a bit:
https://github.com/microsoft/vscode/runs/4313175343?check_suite_focus=true#step:15:892
 42 passing (922ms)
  8 pending
./scripts/test-integration.sh: line 82:  5736 Segmentation fault      (core dumped) "$INTEGRATION_TEST_ELECTRON_PATH" $LINUX_EXTRA_ARGS $ROOT/extensions/typescript-language-features/test-workspace --enable-proposed-api=vscode.typescript-language-features --extensionDevelopmentPath=$ROOT/extensions/typescript-language-features --extensionTestsPath=$ROOT/extensions/typescript-language-features/out/test/unit $ALL_PLATFORMS_API_TESTS_EXTRA_ARGS
Error: Process completed with exit code 139.

Agreed, will take the new version with Electron 16 update.


Remote control with MQTT

First implementation of https://github.com/MiczFlor/RPi-Jukebox-RFID/issues/581

depends on paho-mqtt lib (pip3 install paho-mqtt)
can connect via user/password or certificate-based authentication
to be done

create service file
include in install script

Hi @andreasbrett
could you write here a few lines about how to operate this? As I said, I have no smart home...
It's a daemon, so it should be started. Even without the install script, how would that be done manually? I can then make an attempt to include it in the install script.
Thank! micz

@MiczFlor of course, let me see...
Starting the daemon
The daemon is run by executing the daemon_mqtt_client.py script. It's just like the rfid reader daemon script and will run in an endless loop.
How it works
Phoniebox' MQTT client connects to the MQTT server that is defined in the SETTINGS section of the script itself. It is able to connect by authenticating via

user/password or
with server/client certificates

depending on what the server expects (typically Mosquitto by Eclipse is used as a MQTT server in the smart home communities). Once connected it will publish messages to the mqttBaseTopic that is defined in SETTINGS (defaults to phoniebox). Other MQTT clients that are e.g. part of a smart home solution can listen and respond to this base topic and its sub-topics.
Phoniebox' MQTT client will do the following things:

at startup send state and version info about Phoniebox to

mqttBaseTopic/version (e.g. 1.2-rc1)
mqttBaseTopic/edition (e.g. classic)
mqttBaseTopic/state (online)

at shutdown send state info to

mqttBaseTopic/state (offline)

periodically send attributes to mqttBaseTopic/attributes/$attributeName (interval in seconds is defined in refreshInterval)
listen for attribute requests on mqttBaseTopic/get
listen for commands on mqttBaseTopic/set

mqttBaseTopic/get
MQTT clients can request an attribute of Phoniebox. Sending a payload of e.g. volume to mqttBaseTopic/get will trigger Phoniebox' MQTT client to fetch the current volume from MPD and send the result to mqttBaseTopic/attributes/volume.
Possible attributes

volume
mute
repeat
random
state
file
artist
albumartist
title
album
track
elapsed
duration
trackdate
last_card

Help
Sending payload help will be responded by a list of all possible attributes to mqttBaseTopic/available_attributes
mqttBaseTopic/set
MQTT clients can send commands to Phoniebox. Sending a payload of e.g. volumeup to mqttBaseTopic/set will trigger Phoniebox' MQTT client to send that command to playout_controls.sh.
Possible commands

volumeup
volumedown
mute
playerpause
playernext
playerprev

Help
Sending payload help will be responded by a list of all possible commands to mqttBaseTopic/available_commands

Hi @andreasbrett
thanks for the contribution!!!
Please have a look here at the wiki and possible make changes as your work progresses.
https://github.com/MiczFlor/RPi-Jukebox-RFID/wiki/Smart-Home-remote-control-with-MQTT
I will merge this to master now, because it's not interferring with anything else.

Awesome. Guess I got to give it another try. Last one failed. Stuck with a working MQTT polling.


Put peripherals to sleep on deepsleep

This includes:

LEDs
SDcard
E-ink

LEDs / SDcard → we can disable the power to the LEDs/SDcard.
(use both badge_power_leds_disable() and badge_power_sdcard_disable())
E-ink →call badge_eink_deep_sleep()

@basvs Can you make those API's available to python? I think I should be able to manage that as well, but I know it costs you a fraction of that time :)

will have a look at it

pr #151 contains the hooks for the led and sdcard.

pr #153 contains the hooks for the eink deep sleep

@Roosted7 the api's are merged

So, is this one done?

@Roosted7 / @rnplus are these now called on deepsleep?
Should they be added to deespleep.py ?

Done
Awesome work @basvs


Fixed bug causing bot to walk on same spot

Short Description:
The bot just walks on 1 point the jumps to the next pokestop as the position isn't incremented per step.
@OpenPoGo/maintainers

:+1: nice find

👍


error: variable or field ‘debug’ declared void    13 |         inline void debug(spdlog::string_view_t fmt, const Args &...args)

when I try to "make",it occurs.
/home/ustc/PycharmProjects/CoACD/src/logger.h:13:21: error: variable or field ‘debug’ declared void
13 |         inline void debug(spdlog::string_view_t fmt, const Args &...args)
|                     ^~~~~
/home/ustc/PycharmProjects/CoACD/src/logger.h:13:35: error: ‘string_view_t’ is not a member of ‘spdlog’
13 |         inline void debug(spdlog::string_view_t fmt, const Args &...args)
|                                   ^~~~~~~~~~~~~
/home/ustc/PycharmProjects/CoACD/src/logger.h:13:54: error: expected primary-expression before ‘const’
13 |         inline void debug(spdlog::string_view_t fmt, const Args &...args)
|                                                      ^~~~~
/home/ustc/PycharmProjects/CoACD/src/logger.h:19:21: error: variable or field ‘info’ declared void
19 |         inline void info(spdlog::string_view_t fmt, const Args &...args)
|                     ^~~~
/home/ustc/PycharmProjects/CoACD/src/logger.h:19:34: error: ‘string_view_t’ is not a member of ‘spdlog’
19 |         inline void info(spdlog::string_view_t fmt, const Args &...args)
|                                  ^~~~~~~~~~~~~
/home/ustc/PycharmProjects/CoACD/src/logger.h:19:53: error: expected primary-expression before ‘const’
19 |         inline void info(spdlog::string_view_t fmt, const Args &...args)
|                                                     ^~~~~
/home/ustc/PycharmProjects/CoACD/src/logger.h:25:21: error: variable or field ‘warn’ declared void
25 |         inline void warn(spdlog::string_view_t fmt, const Args &...args)
|                     ^~~~
/home/ustc/PycharmProjects/CoACD/src/logger.h:25:34: error: ‘string_view_t’ is not a member of ‘spdlog’
25 |         inline void warn(spdlog::string_view_t fmt, const Args &...args)
|                                  ^~~~~~~~~~~~~
/home/ustc/PycharmProjects/CoACD/src/logger.h:25:53: error: expected primary-expression before ‘const’
25 |         inline void warn(spdlog::string_view_t fmt, const Args &...args)
|                                                     ^~~~~
/home/ustc/PycharmProjects/CoACD/src/logger.h:31:21: error: variable or field ‘error’ declared void
31 |         inline void error(spdlog::string_view_t fmt, const Args &...args)
|                     ^~~~~
/home/ustc/PycharmProjects/CoACD/src/logger.h:31:35: error: ‘string_view_t’ is not a member of ‘spdlog’
31 |         inline void error(spdlog::string_view_t fmt, const Args &...args)
|                                   ^~~~~~~~~~~~~
/home/ustc/PycharmProjects/CoACD/src/logger.h:31:54: error: expected primary-expression before ‘const’
31 |         inline void error(spdlog::string_view_t fmt, const Args &...args)
|                                                      ^~~~~
/home/ustc/PycharmProjects/CoACD/src/logger.h:37:21: error: variable or field ‘critical’ declared void
37 |         inline void critical(spdlog::string_view_t fmt, const Args &...args)
|                     ^~~~~~~~
/home/ustc/PycharmProjects/CoACD/src/logger.h:37:38: error: ‘string_view_t’ is not a member of ‘spdlog’
37 |         inline void critical(spdlog::string_view_t fmt, const Args &...args)
|                                      ^~~~~~~~~~~~~
/home/ustc/PycharmProjects/CoACD/src/logger.h:37:57: error: expected primary-expression before ‘const’
37 |         inline void critical(spdlog::string_view_t fmt, const Args &...args)
|                                                         ^~~~~
CMakeFiles/_coacd.dir/build.make:110: recipe for target 'CMakeFiles/_coacd.dir/src/clip.cpp.o' failed
make[2]: *** [CMakeFiles/_coacd.dir/src/clip.cpp.o] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/_coacd.dir/all' failed
make[1]: *** [CMakeFiles/_coacd.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

It seems like 'string_view_t' is missing in spdlog, what version do you use?
I am using 1:1.5.0-1.

I‘m using  Version 1.11.0

It seems like 'string_view_t' is missing in spdlog, what version do you use? I am using 1.5.0-1.
with the following command line
$ git clone https://github.com/gabime/spdlog.git
$ cd spdlog && mkdir build && cd build
$ cmake .. && make -j

It seems like 'string_view_t' is missing in spdlog, what version do you use? I am using 1.5.0-1.
with the following command line
$ git clone https://github.com/gabime/spdlog.git
$ cd spdlog && mkdir build && cd build
$ cmake .. && make -j
and I also tried this:conda install -c conda-forge spdlog
it didn't work

I replace it with spdlog1..5.0,but it still doesn't work.I don't know what's happened.

What platform do you use? Have you tried sudo apt install -y libspdlog-dev?

What system do you use? Have you tried sudo apt install -y libspdlog-dev?

ubuntu18.04,I have tried.it doesn't work

have you tried make install for spdlog?

I didn't,what's the difference between them


Apollo 3.0 Camera device setup Not working

System information

20.04
Apollo version 3.0
I'm trying to configure my camera settings for USB cameras. However, for apollo 3.0 the configuration files are different. Do I need to modify https://github.com/ApolloAuto/apollo/blob/r3.0.0/modules/drivers/usb_cam/launch/start_leopard.launch and then the other files in this directory? My cameras are on /dev/video2 and /dev/video4. I modified the other file https://github.com/ApolloAuto/apollo/blob/r3.0.0/modules/drivers/usb_cam/launch/start_one_leopard.launch but when I use the test command my /dev/video0 camera turns on (and off) instead of the intended camera. I also get errors. I'm trying to use navigation mode but it is quite difficult to use on the newer apollo version with cyber so that's why I'm using 3.0 Anyone know the command I need to use to send line data to dreamview on the newer apolloversions? Any help on this would be appreciated. Thank you

No need anymore closing issue


Backport version bumps

Backport version bumps for #1939

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

:exclamation: No coverage uploaded for pull request base (v1.1.x@cb8347b). Click here to learn what that means.

Additional details and impacted files
@@            Coverage Diff            @@
##             v1.1.x    #1940   +/-   ##
=========================================
  Coverage          ?   75.33%
=========================================
  Files             ?       67
  Lines             ?     6815
  Branches          ?        0
=========================================
  Hits              ?     5134
  Misses            ?     1311
  Partials          ?      370

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


[3.2] - WSO2AM 3.2.0 Upgrade : Admin Portal : Not able to type search string.

Description:
Create few applications from the developer portal.
Go to the admin portal and navigate to the applications page.
Try to search for applications by typing in the search box.
The focus of the cursor goes away and the user has to click the text field for each letter.

The implementation is different in the public branch with backend pagination.


Black Hole

It don't move and is black
There's a cloud around it, if you touch the cloud the sprite will be locked and the black hole will slowly shrink the mass
While shrinking the celestial body mass, the black hole cloud will become orange

https://github.com/FOSS-Supremacy/celestis/issues/4


[SPARK-50424][INFRA] Extract the common content of Dockerfile from Docs, Linter, and SparkR test images

What changes were proposed in this pull request?
The pr aims to extract the common content of Dockerfile from Docs, Linter, and SparkR test images.
Why are the changes needed?
In the following files,

dev/spark-test-image/docs/Dockerfile
https://github.com/apache/spark/blob/9bab16a854d8c4e6decbb8812b332ae5e8825993/dev/spark-test-image/docs/Dockerfile#L20-L32

dev/spark-test-image/lint/Dockerfile
https://github.com/apache/spark/blob/9bab16a854d8c4e6decbb8812b332ae5e8825993/dev/spark-test-image/lint/Dockerfile#L20-L32

dev/spark-test-image/sparkr/Dockerfile
https://github.com/apache/spark/blob/9bab16a854d8c4e6decbb8812b332ae5e8825993/dev/spark-test-image/sparkr/Dockerfile#L20-L32

there are some common contents that we should extract for future maintenance and updates.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Pass GA.
Was this patch authored or co-authored using generative AI tooling?
No.

cc @zhengruifeng @dongjoon-hyun @HyukjinKwon

IMHO, we don't need .r and .py.
For R, we just let it alone, will finally remove it in the future;
For Python, I plan to add more images with different python versions

IMHO, we don't need .r and .py. For R, we just let it alone, will finally remove it in the future; For Python, I plan to add more images with different python versions

Updated.

Please make it sure the image size difference is reasonable because Dockerfile.apt-get will have a side-effect which increases the intermediate image layer size.
Previously, we have a trick pattern to remove the intermediate image layer size, @panbingkun . After this PR, Dockerfile.apt-get removes that guard. So, we need to check the size difference manually to be safe, @panbingkun .

Okay, let me check it again.


Effort estimation for variables and mathematical operators

Hello,
I am in the process of looking for an environment for an educational institution. Robot Karol online would be very suitable for this, but we lack the possibility to create variables (at least simple numerical values) and to change them with mathematical operators. Also, some kind of simple list/array would be very helpful.
How do you estimate the effort required to implement these features?
If the effort is justifiable, I would do the implementation myself.

Hello! These features are on the roadmap and I have already started to set up the IDE for it. I can give you a summary of the plans I have.
The initial support will only include the java mode in German. Because the main focus is on beginners, the block mode and the robot karol text mode is feature frozen.
So my first question: Will adding variables and mathematical operators in the java mode in German be sufficient for your use case? If yes, then we can start a collaboration here :)
I will give you a small technical summary in the follow up post.

If you haven't looked into it yet, this is how the mode looks like right now:

Hey, thank you for your fast reply!
I think advanced features in Java and German are perfectly fine, since the lessons are also in German and focused on Java.
Variables and mathematical operators are the mist important part and I think would be enough. However, some simple implementation of an array would also be nice, I think an int[] would be enough.

I'm starting to work on it in #709

@AljoshaVieth I'm quite busy the next few weeks.
You can start by taking a look at https://karol.arrrg.de/test-java.html and the file https://github.com/Entkenntnis/robot-karol-online/blob/cc3f76b16ec5242d55a92d3ffb8fda61f4585343/lib/language/compileJava.ts. These two should give you a good starting point for working on this.
I'm admitting that the compiler code was written in a bit of a hurry and could need a bit of cleaning up in some spaces, it's also not perfectly structured yet. I'm interested in your estimation if you feel confident working on this code base?

Some progress is made:


⚠ Bofrost.de has degraded performance

In e3c8052, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 792 ms

Resolved: Bofrost.de performance has improved in b8c99cb after 20 minutes.


ApplyProjectTransposeRule should consider the impure expression

          > > Oh my - this is scary. Are there any other optimizations we should be careful about?

I am not sure 🥵 I think we can only find them case by case currently. Do you have any idea to handle the impure function in the optimizer? @chenzl25

Another concern is ApplyProjectTransposeRule where impure functions could be used in the subquery.
Originally posted by @chenzl25 in https://github.com/risingwavelabs/risingwave/issues/9133#issuecomment-1506633980

If an apply is blocked by an impure expression it could lead to a query that cannot be untested, so I intend to don't consider impure expression in ApplyProjectTransposeRule


Async Service Brokers can return unrestricted operation data in response body

Issue
In the Service Broker API there only a database size restriction on the new "operation" string returned on the body of the provisioning and update. This could cause issues with the CC DB filling up if the service broker returns large amounts of data.
Context
Looking at the PR, I quickly searched for size restriction on the operation field, and could only see potential limitation on the cc_db. The schema migration seems to declare the field as a TEXT column (from Sequel datatype). On mysql, the TEXT seems a variable length datatype according to 1 and 2. On postgresql, it is also a variable unlimited length.
Steps to Reproduce

Create an async service broker
On async provision, requests return in the body operation field with a 10mb payload.
See the 10mb payload ends up in the CC DB
Repeat until CC DB is full...

Expected result
CC DB could run out of storage.
Current result

Possible Fix
Limit the payload size for the response body to ~10kb?
name of issue screenshot
?

@avade It would be interesting to double check the handling of other service broker returned data is enforcing a specific size besides the DB schema enforcement:

the /catalog endpoint accepts

meta-data (I guess mapping to the extra field in the cc-db, currently mapped as a TEXT type)
tags stored as TEXT

the binding endpoint returns credentials also stored as TEXT type

Large db content injections may also come from the user provided content through the CLI, such as the service tags. However in this specific example, the CC seems to properly control this size: https://github.com/cloudfoundry/cloud_controller_ng/commit/666eda058c398dd1990226de664a2d5d3174f0f0

Hi @avade,
We think it's reasonable to apply a validation on a broker provided operation field. We're hesitant to limit this field too much in case it would break an existing service broker. We think the next course of action is to poll the CF-dev community and ask whether there are any objections to setting a limit of [to be decided with input from @SocalNick. 10KB?].
@michaelxupiv & @utako, CF CAPI Team

Sounds like a good next step.
@socalnick - do you want to poll the community?
On Tue, Nov 1, 2016 at 10:57 PM, Michael Xu<EMAIL_ADDRESS>wrote:

Hi @avade https://github.com/avade,
We think it's reasonable to apply a validation on a broker provided
operation field. We're hesitant to limit this field too much in case it
would break an existing service broker. We think the next course of action
is to poll the CF-dev community and ask whether there are any objections to
setting a limit of [to be decided with input from @SocalNick
https://github.com/SocalNick. 10KB?].
@michaelxupiv https://github.com/michaelxupiv & @utako
https://github.com/utako, CF CAPI Team
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/cloudfoundry/cloud_controller_ng/issues/695#issuecomment-257723940,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAeB19oyI4K8vdeIr2xIvO0DJDwXu-umks5q58PUgaJpZM4KSp6V
.

This is a very new feature. I'm not sure that polling the community is necessary, shouldn't we just fix it?

@SocalNick: My concern is that there are already brokers that return operations bigger than 10KB, but I'm fine with this as a new feature if you feel like that's unnecessary.

I'd like to fix this bug by reducing the size of broker_provided_operation field in the service_instance_operations table to 10k

This feels like it's bad because we have a service, but we've lost the provision response. This seems like an undesirable state. Would it be better to truncate the response?
cf cs fake-service-c5f81bae-9657-47a9-8bb9-3d4d3c5a07d0 fake-async-plan nope             1208ms
Creating service instance nope in org system / space system as admin...
FAILED
Server error, status code: 400, error code: 60003, message: The service instance is invalid: broker_provided_operation max_length

cf s                                                                                1341ms
Getting services in org system / space system as admin...
OK

name   service                                             plan              bound apps   last operation
nope   fake-service-c5f81bae-9657-47a9-8bb9-3d4d3c5a07d0   fake-async-plan

cf curl /v2/service_instances                                                             733ms
{
   "total_results": 1,
   "total_pages": 1,
   "prev_url": null,
   "next_url": null,
   "resources": [
      {
         "metadata": {
            "guid": "3cac0c98-28f6-446a-9a1d-552660213477",
            "url": "/v2/service_instances/3cac0c98-28f6-446a-9a1d-552660213477",
            "created_at": "2016-12-08T22:47:10Z",
            "updated_at": "2016-12-08T22:47:10Z"
         },
         "entity": {
            "name": "nope",
            "credentials": {},
            "service_plan_guid": "0855c61a-ef3a-4984-846f-b070a67cee76",
            "space_guid": "d2357fe4-a9f2-4c76-99d9-321b7668fde4",
            "gateway_data": null,
            "dashboard_url": null,
            "type": "managed_service_instance",
            "last_operation": null,
            "tags": [],
            "service_guid": "c9b03c64-5ef7-47ad-811f-f5502b69dbb1",
            "space_url": "/v2/spaces/d2357fe4-a9f2-4c76-99d9-321b7668fde4",
            "service_plan_url": "/v2/service_plans/0855c61a-ef3a-4984-846f-b070a67cee76",
            "service_bindings_url": "/v2/service_instances/3cac0c98-28f6-446a-9a1d-552660213477/service_bindings",
            "service_keys_url": "/v2/service_instances/3cac0c98-28f6-446a-9a1d-552660213477/service_keys",
            "routes_url": "/v2/service_instances/3cac0c98-28f6-446a-9a1d-552660213477/routes",
            "service_url": "/v2/services/c9b03c64-5ef7-47ad-811f-f5502b69dbb1"
         }
      }
   ]
}

I investigated and the current implementation (raising an exception if > 10k characters) results in the following:

User presented with error from Nick's comment above
Delete request is issued to broker for orphan mitigation
Service instance in CC is stranded without a last operation or backing service instance (reverse orphan)

It's interesting to note that we could get in this same state if the database deadlocked while persisting the service instance operation.

I'm not convinced that truncation is the correct strategy here. This field is meant to allow brokers to persist data in the CC, so that they don't have to maintain their own data store. Broker authors will likely serialize their data into this field, and truncating serialized JSON etc will definitely break brokers. This could cause service instances to get stuck in "In Progress" state while their brokers throw 4XX/5XXs due to the garbled data coming from CC (until the operation times out 1 week later).

If we want to keep something like the current implementation (fail fast), maybe the validation should live in response parser instead of the model, so it is more in line with the other broker response validations.
What do you think @avade?

I will defer this question to @jamesjoshuahill, way on the engineering side 👍

Hi! 10k characters feels like a lot. For example, a typical on-demand service broker response would be: {"bosh_task_id":123456,"operation_type":"create"}. I think the column could be reduced from text to string, i.e. varchar(255).
I agree with @Gerg that truncation would be unhelpful. I suggest rejecting a response with operation data that exceeds the limit.

I think 255 is too small, given we don't know how large other brokers response is.
@SocalNick are you suggesting 10k characters or 10kb? 10kb would be 2560 characters if all chars were 4 bytes.

@avade we did 10k characters. @zrob and @Gerg made two decisions / changes:

For non-async, ignore the operation, it won't be used anyway
If we receive more than 10k characters for the operation, it's considered a bad response and we enter our existing orphan mitigation strategy.


Deployment

Deployment
User guide
USERS are able to access the live URL
Acceptance Criteria
Application deployed at live URL.
Application loads with no errors.

website published. But, README.md file opens by default. To set index.html as starter page.

Tested live URL in different browsers. Links are working.


[fix][broker] Fix PulsarRegistrationClient and ZkRegistrationClient not aware rack info problem.

Fixes #18671

Master Issue: #18671
Before #16825, the method getRack will update the rack info every invoke, so it can get the newest rack info.
After #16825, only Pulsar start or using pulsar admin set-bookie-rack to change zk node /bookies, then update the rack info. When the pulsar start, the PulsarRegistrationClient#bookieServiceInfoCache is empty; it can't resolve bookieId, so can't update the rack info.
Motivation
Make Pulsar and AutoRecovery aware of the rack info after its restart.
Modifications
After writeable bookies change, notify BookieRackAffinityMapping to update the rack info.

Verifying this change

[ ] Make sure that the change passes the CI checks.

(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end deployment with large payloads (10MB)
Extended integration test for recovery after broker failure

Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes

[ ] Dependencies (add or upgrade a dependency)
[ ] The public API
[ ] The schema
[ ] The default values of configurations
[ ] The threading model
[ ] The binary protocol
[ ] The REST endpoints
[ ] The admin CLI options
[ ] Anything that affects deployment

Documentation

[ ] doc
[ ] doc-required
[x] doc-not-needed
[ ] doc-complete

Matching PR in forked repository
PR in forked repository:

Codecov Report

Merging #18672 (8ed4a29) into master (bc1e0cb) will decrease coverage by 23.38%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             master   #18672       +/-   ##
=============================================
- Coverage     47.50%   24.12%   -23.39%
+ Complexity    10505     3024     -7481
=============================================
  Files           698      383      -315
  Lines         67984    41919    -26065
  Branches       7272     4280     -2992
=============================================
- Hits          32297    10111    -22186
+ Misses        32112    30194     -1918
+ Partials       3575     1614     -1961

Flag
Coverage Δ

unittests
24.12% <ø> (-23.39%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...ava/org/apache/pulsar/broker/admin/v1/Brokers.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...va/org/apache/pulsar/broker/admin/v1/Clusters.java
0.00% <0.00%> (-100.00%)
:arrow_down:

.../org/apache/pulsar/broker/admin/v1/Properties.java
0.00% <0.00%> (-100.00%)
:arrow_down:

.../apache/pulsar/broker/admin/v2/ResourceGroups.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...sar/broker/stats/metrics/ManagedLedgerMetrics.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...ar/common/naming/PartitionedManagedLedgerInfo.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...naming/RangeEquallyDivideBundleSplitAlgorithm.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...e/pulsar/broker/admin/impl/ResourceQuotasBase.java
0.00% <0.00%> (-96.43%)
:arrow_down:

...he/pulsar/broker/service/AnalyzeBacklogResult.java
0.00% <0.00%> (-92.31%)
:arrow_down:

.../apache/pulsar/broker/admin/v1/ResourceQuotas.java
0.00% <0.00%> (-91.43%)
:arrow_down:

... and 501 more

@horizonzy Thanks for your contribution. We have changed the resolver and would you please help add a test to cover both two resolvers?

@horizonzy Thanks for your contribution. We have changed the resolver and would you please help add a test to cover both two resolvers?

Fine

Great work, fix the https://github.com/apache/pulsar/issues/18834

btw, the else logic  MetadataStore store should use the broker metadataStoreUrl, because when we set the rack info by admin bookies set-bookie-rack the configured json info on the broker used meta store url.
eg:
 run autorcovery standlone  `./bin/pulsar autorecovery`

- String metadataServiceUri = ConfigurationStringUtil.castToString(conf.getProperty("metadataServiceUri"));
+ String metadataServiceUri = ConfigurationStringUtil.castToString(conf.getProperty("metadataStoreUrl"));

            String url;
            String metadataServiceUri = ConfigurationStringUtil.castToString(conf.getProperty("metadataServiceUri"));
            if (StringUtils.isNotBlank(metadataServiceUri)) {
                try {
                    url = metadataServiceUri.replaceFirst(METADATA_STORE_SCHEME + ":", "")
                            .replace(";", ",");
                } catch (Exception e) {
                    throw new MetadataException(Code.METADATA_SERVICE_ERROR, e);
                }
            } else {
                String zkServers = ConfigurationStringUtil.castToString(conf.getProperty("zkServers"));
                if (StringUtils.isBlank(zkServers)) {
                    String errorMsg = String.format("Neither %s configuration set in the BK client configuration nor "
                            + "metadataServiceUri/zkServers set in bk server configuration", METADATA_STORE_INSTANCE);
                    throw new RuntimeException(errorMsg);
                }
                url = zkServers;
            }
            try {
                int zkTimeout = Integer.parseInt((String) conf.getProperty("zkTimeout"));
                store = MetadataStoreExtended.create(url,
                        MetadataStoreConfig.builder()
                                .metadataStoreName(MetadataStoreConfig.METADATA_STORE)
                                .sessionTimeoutMillis(zkTimeout)
                                .build());
            } catch (MetadataStoreException e) {
                throw new MetadataException(Code.METADATA_SERVICE_ERROR, e);
            }
        }
        return store;

https://github.com/apache/pulsar/blob/master/pulsar-broker-common/src/main/java/org/apache/pulsar/bookie/rackawareness/BookieRackAffinityMapping.java#L79-L108

@hangc0276 Do we need to cherry-pick to branch-2.9? I noticed you have added the label release/2.9.5

ping @eolivelli @codelipenghui @mattisonchao

@hangc0276 Do we need to cherry-pick to branch-2.9? I noticed you have added the label release/2.9.5

@codelipenghui This Pr doesn't need to be cherry-picked to branch-2.9. I removed the label.


ext4fuse refuses to install

brew config output
HOMEBREW_VERSION: 3.2.0
ORIGIN: https://github.com/Homebrew/brew
HEAD: 09f7bc27a99469cf947431df4754737dfbadb31d
Last commit: 9 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 9d2063685565b06c5b19a285ffda3b094e222d1f
Core tap last commit: 61 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.5FTsCfgHuS/org.xquartz:0
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_NO_ANALYTICS: set
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 12.0.5 build 1205
Git: 2.30.1 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.4-arm64
CLT: <IP_ADDRESS>.1.1623191612
Xcode: 12.5
Rosetta 2: false

brew doctor output
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Unbrewed '.pc' files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected '.pc' files:
  /usr/local/lib/pkgconfig/blkid.pc
  /usr/local/lib/pkgconfig/com_err.pc
  /usr/local/lib/pkgconfig/e2p.pc
  /usr/local/lib/pkgconfig/ext2fs.pc
  /usr/local/lib/pkgconfig/ss.pc
  /usr/local/lib/pkgconfig/uuid.pc

[X] I ran brew update and am still able to reproduce my issue.
[x] I have resolved all warnings from brew doctor and that did not fix my problem.

What were you trying to do (and why)?
I want to install ext4fuse because I don't want to buy Paragon's extFS. I need to be able to read/write on my Linux partitions (external drives).
What happened (include all command output)?
Error: ext4fuse has been disabled because it requires FUSE!
What did you expect to happen?
Its installation to proceed successfully and be usable.
Step-by-step reproduction instructions (by running brew commands)
1) brew install --cask macfuse
2) brew install ext4fuse

Note that all FUSE builds on M1 machines currently fail due to compiler paths enforcement in Homebrew. I'm still trying to find a solution, but if you need to use the formulae urgently, you can use the Intel bottles via a Rosetta Homebrew installation. For all the necessary details, see https://github.com/gromgit/homebrew-fuse#why-cant-i-build-xyz-on-an-m1-mac.

env :std if Hardware::CPU.arm?

might work there.

Assuming I did it correctly, it still doesn't work.
In any event, it seems to be the cc shim that's unconditionally blocking all /usr/local paths when HOMEBREW_PREFIX != "/usr/local/", so any solution likely involves conditionally disabling this check. I'll submit a PR for consideration later.

I used the tap that developer told me to use. It worked. I should have
responded sooner.
On Tue, 29 Jun 2021, 19:11 Adrian Ho, @.***> wrote:

Note that all FUSE builds on M1 machines currently fail due to compiler
paths enforcement in Homebrew. I'm still trying to find a solution, but if
you need to use the formulae urgently, you can use the Intel bottles via a
Rosetta Homebrew installation. For all the necessary details, see
https://github.com/gromgit/homebrew-fuse#why-cant-i-build-xyz-on-an-m1-mac
.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Homebrew/brew/issues/11621#issuecomment-870732075,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALMVD3X5EK7TXEPEXPUFI73TVHWBVANCNFSM47QDNAQQ
.

Last update for everyone using my FUSE tap: I've uploaded some simple changes (credit: @carlocab) that should enable M1 users to build the formulae now. If there are still any issues, please file an issue there.


User-aware relay address generator

Resolves #420
Description
Details of this feature are described in #420.
This PR make following changes:

Added username argument to AllocatePacketConn and AllocateConn callback methods in RelayAddressGenerator
Added/updated corresponding unit tests.

NOTCE: This is a breaking change for TURN server applications.
Reference issue
Fixes #420

Thanks a lot, this makes the code much leaner. I guess we'll have to wait for @Sean-Der to merge this though because API changes will require a new release (I guess we'll be at v5 already!).

The basic idea is sound, but we're breaking backwards compatibility for a fairly ad hoc feature.  If we're going to break compatibility, why don't we do it right, so that we don't need to break it again in the future?
I would suggest defining a new type:
type TurnContext struct {
    Username string
}

and passing that as the new argument.  This way, if we ever feel the need to add extra parameters, we can just add them to TurnContext and not break compatibility again.

Agreed. I will update the code.

As I was making changes, i had a couple of thoughts:
Name the context as AllocationContext instead of TurnContext
I feel it is more descriptive for what it does. @jech
Add Real field to the context as well
@rg0now I remember you suggested this earlier and I now feel it is good to have it as the context.
I will push my local changes shortly. Thanks.

"allocation context" feel right to me, but I agree that it could be confused by context.Context.
I had following candidate in my head:

allocation.AllocationContext (stuttering but might not be too bad)
allocation.UserInfo
allocation.Metadata
allocation.Session

(I will fix the lint error later - I have just noticed)

Updated the code, and fixed the lint error also.
@jech I chose "Metadata". It is concise and generic enough to accommodate other possible information we may have in the future.

Metadata is fine.  (Although frankly, why not just use data?  What's so meta about it?)
Perhaps you could squash the commits, it would make review easier?

Thanks @jech, I have squashed the commits.
I feel "metadata" is a suitable term because it represents contextual information related to the operation. It is not primary data, such as network or port number, nor is it a parameter required for the operation. Instead, it serves as supplemental information.


Add hyperlinks in readme file for each questions and respective answers

Add hyperlinks in readme file for each questions and respective answers

i would like to work on this issue

i would like to work on this issue

Sure!!

Hello, @0shivamh. I'd like to work on this; could you please assign it to me?

Hello, @saty-a . I'd like to work on this; could you please assign it to me?

Hello, @saty-a . I'd like to work on this; could you please assign it to me?

Okay


Update rustls 0.21

This needs updating tokio-rustls as well.

Mostly done in #31. But quinn and h3-quinn needs to be updated for rustls-0.21 as well. Currently we are using the up-to-date quinn (unreleased v0.10) and forked version of h3-quinn on develop branch.


[Bootstrap] - load hook definitions

The Bootstrap must load Hook Definition providers by registering their parent classes. A hook must be defined in a class implementing the Pimple\ServiceProviderInterface, where it receives an instance of the container in the register method, so it can easily create new hook definitions and add them to the Hooks container.

Resolved.


Integrate new authentication flows from apps for user agents without browser extension support

If loading intro modal from app with other user agent (e.g. mobile, desktop Safari), user sees “Use [APP NAME] with Connect” button without icon

If user had triggered intro modal intended for onboarding:

User taken to hosted authenticator with Secret Key generation, persistence and password setting flow triggered automatically
User then taken back to app upon completion

Otherwise, upon install if user had triggered intro modal intended for sign in:

User sees “Continue with Secret Key” screen in popup
Upon submission, user sees account selection screen
Upon account selection or username creation,

If app had passed “publish_data” scope and user hadn’t previously set a username for selected address / account, user is presented with username screen (see design)

Upon submission, user is taken back to the app

Otherwise, user is taken directly back to the app

I'm closing this since we've provisionally decided to drop support for the hosted authenticator.

@jasperjansz I've updated the spec with the hosted authenticator. It'd be good to get your review of the flows and Figma links where mockups aren't yet fully available.


Thanks for this amazing tool

I convert a very big pdf ( 180 MB) in seconds. Thanks
Peter

Thanks for that!


Need access to PHP XSL

http://php.net/manual/en/book.xsl.php

This should be done now.  Binaries are out for the latest PHP releases.


Changing the "No Opportunities " to "Loading Opportunities if any" on all components

This usually creates a dilemma of no opportunities so users generally close the website immediately, we can make this change so that users stay and wait for the results to appear

@promaroy go ahead

Please review my PR.


Write manual test cases for "LatiumPage"

Please write a manual test case for the following pages manual test which involves breaking down the webpage's functionality into specific steps that can be tested.
LatiumPage:
https://prayersconnect.com/mosques/search/Rome%252C%2520Latium%252C%2520Italy/41.9027835%2C12.4963655/41.9027835%2C12.4963655
Please use this Google doc for your test cases.
https://docs.google.com/spreadsheets/d/16mkrQRKKItU2IPNJDxnTzdobZewGN5Wu_SMwWPpzf-o/edit?usp=sharing

Completed

Thank you


Change key/value references in metavars

The metavars.py example wasn't working for me. I had to make the attached change to get something like %{author} to render the variable. I added a minimal test case, metavars.md by way of demonstration:
$ pandoc --filter examples/metavars.py examples/metavars.md

Caleb Hyde

$ pandoc --version
pandoc <IP_ADDRESS>

Thanks


CPI to published program

Is it possible to make a CPI to a program that was published to the anchor registry? I understand how the client can fetch a program IDL from the registry to make deserialize data and make transactions, and am wondering if the same works for anchor programs. I saw the the `[registry]' now has a section in the config file, but I don't understand what exactly that can be used for.
Keep up the great work, it's extremely impressive how quickly this library is developing!

The registry is used to display and allow one to download source code for verified and reproducible smart contract builds. There's some docs here https://project-serum.github.io/anchor/getting-started/publishing.html.
What you're describing is done by crates.io.
For further discussion on this topic, please join the Discord!


How do you grab clicked button's frame?

I've implemented BMB successfully in my app. What I'd like to do is capture the clicked button's frame as the origination for an animated view controller transition.
I've implemented BoomDelegate.
func boomMenuButton(_ bmb: BoomMenuButton, didClickBoomButtonOfBuilder builder: BoomButtonBuilder, at index: Int) {
        loggingPrint(bmb.frame)
        loggingPrint(builder.imageFrame)

        let rect = builder.imageFrame
        let currentRect = convert(rect, to: bmb.superview)

        loggingPrint(currentRect)
    }
}

This delegate method returns the following in the console:
 HeaderView.swift boomMenuButton(:didClickBoomButtonOfBuilder:at:)[315]: (317.0, 8.0, 50.0, 50.0)
 HeaderView.swift boomMenuButton(:didClickBoomButtonOfBuilder:at:)[316]: (10.0, 10.0, 30.0, 30.0)
 HeaderView.swift boomMenuButton(_:didClickBoomButtonOfBuilder:at:)[317]: (10.0, 10.0, 30.0, 30.0)
This return is not giving me anything useful. Any help would be appreciated. Thank you.

I wound up temporarily solving this situation by exposing BoomMenuButton property "endPositions" by changing private keyword to public. The code below wound up working for me:
        let buttonMenuFrame = bmb.frame
        let buttonEndPoint = bmb.endPositions[index]
        let buttonFrame = CGRect(x: buttonEndPoint.x - (0.5 * buttonMenuFrame.width),
                                 y: buttonEndPoint.y - (0.5 * buttonMenuFrame.height - navBarHeight),
                                 width: buttonMenuFrame.width,
                                 height: buttonMenuFrame.height)

        buttonClickedFrame = buttonFrame

buttonClickedFrame can now be referenced by transition manager.
It would be great if the library also exposed endPositions


[BUG] vercel don't build

Environment
Cloud Service (Static)
System
Chrome, mac, cloud
Version
2.1.2
Describe the problem
auto build error ! it's not work

error<EMAIL_ADDRESS>The engine "node" is incompatible with this module. Expected version "8 || 10 || 12 || 14 || 16 || 17". Got "18.19.1"

11:55:09.120

Error: Command "yarn install" exited with 1
Additional info

Please tick the boxes

[X] You have explained the issue clearly, and included all relevant info
[X] You are using a supported version of Dashy
[X] You've checked that this issue hasn't already been raised
[X] You've checked the docs and troubleshooting guide
[X] You agree to the code of conduct

Look here for a fix.
https://github.com/Lissy93/dashy/issues/1499#issuecomment-1981014703

very nice, thinks~


NXP: Add support for frdm-k32l2b3

Added support for the board of frdm-k32l2b3
Add target of K32L2B3

Signed-off-by: Ryan QIAN<EMAIL_ADDRESS>

/morph test

Thanks for the PR!

Updated latest SVD for K32L2B


bump yosys and yosys-plugins

Signed-off-by: Alessandro Comodi<EMAIL_ADDRESS>

As discussed in a meeting, this can be closed. In this repository, those tools are pinned through the conda lock file, so versions don't need to be specified in the environment file.


chore: release 13.13.0

@cacieprins
This PR did not trigger a release to https://hub.docker.com/r/cypress/included/tags.
There was no CircleCI job triggered to do the release and I don't know why.

cypress/included:cypress-13.13.0-node-20.14.0-chrome-126.0.6478.114-1-ff-127.0.1-edge-126.0.2592.61-1 is now published (thanks to a later PR which triggered the release)


Installation Error

Ubuntu 17.10
Python 3.6.3
    Installed /tmp/pip-build-pap1j575/steem/.eggs/pytest_pylint-0.7.1-py3.6.egg
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-pap1j575/steem/setup.py", line 15, in <module>
        tests_require=package_meta.default_requirements+package_meta.dev_requirements)
      File "/usr/lib/python3.6/distutils/core.py", line 108, in setup
        _setup_distribution = dist = klass(attrs)
      File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 325, in __init__
        self.fetch_build_eggs(attrs['setup_requires'])
      File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 446, in fetch_build_eggs
        replace_conflicting=True,
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 858, in resolve
        raise DistributionNotFound(req, requirers)
    pkg_resources.DistributionNotFound: The 'pytest' distribution was not found and is required by the application

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-pap1j575/steem/

Can be resolved by
pip3 install -U pytest
I will test clean installation cases and will PR the documentation

Using cached steem-0.18.103.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\holroyd\AppData\Local\Temp\pip-build-tqwdzgty\steem\setup.py", line 8, in
import package_meta # this is a simple tool for loading metadata from Pipfile and other places
File "C:\Users\holroyd\AppData\Local\Temp\pip-build-tqwdzgty\steem\package_meta.py", line 10, in
from setuptools.config import read_configuration
ModuleNotFoundError: No module named 'setuptools.config'

Setuptools is missing.


Improve detection of JDK location for JNI

Currently on anything other than Debian it is necessary to manually point the build to the JDK location. There is a rudimentary mechanism for automatic detection, but we can do better. Let’s make sure that running make themis_jni ‘just works’ for all operating systems that we support.
We need to have correct include path to be able to access JNI headers. These are installed by JDK somewhere into the system. Normally there are two paths: generic path where "jni.h" is located and a platform-specific directory (usually a subdirectory under the generic path).
First of all, there is user override. If JDK_INCLUDE_PATH contains anything, that’s considered our include path. Prepend -I to every directory in that list and use that.
Otherwise we try to detect the paths automatically. Debian and Ubuntu packages distribute a java_defaults.mk makefile which conveniently defines C compiler flags in the jvm_includes variable. Check if that file exists via Make magic, include it, and use that variable. Note
that this file requires the dpkg-dev package to be installed in addition to JDK package (e.g., openjdk-11-jdk for Debian 10 Buster).
Other systems are not so nice. JNI headers are usually installed into JAVA_HOME. If JAVA_HOME environment variable is not set then ask Java. The includes are usually located under the include directory in the home directory plus there is an platform-specific subdirectory. On macOS it's called darwin. Many Linux distributions use linux (CentOS certainly does).
If automatic detection does not work, use JDK_INCLUDE_PATH. Typically you’ll need something like this:
make themis_jni JDK_INCLUDE_PATH="$JAVA_HOME/include $JAVA_HOME/include/plan9"

P.S. Android uses its own magic for building the library correctly, see jni/Android.mk.
Checklist

[x] Change is covered by automated tests
[x] Benchmark results are attached (not applicable)
[x] The coding guidelines are followed
[x] Public API has proper documentation: external docs
[x] Example projects and code samples are updated if needed (no API changes)
[x] Changelog is updated if needed (in case of notable or breaking changes)

Makes a lot of sense to me as macOS user, because I usually need to use following:
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_11.jdk/Contents/Home

export CFLAGS="-I$JAVA_HOME/include -I$JAVA_HOME/include/darwin"


Change detailed logs in CredentialsProviderChain from info to debug

Motivation and Context
Those logs are written quite often and in current state there can be ~ 4 log lines for each credential retrieval operation: three for providers that didn't provide credentials and one final for provider that does.
Given that some providers in chain not providing credentials is an expected situation, having those logs on INFO level is quite noisy.
Description
This change changes level of commonly written logs from info to debug.
Testing

Checklist

[ ] I have updated CHANGELOG.next.toml if I made changes to the smithy-rs codegen or runtime crates

^  I am not sure what should i put there, what's "tada" f.e.?
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

^ I am not sure what should i put there, what's "tada" f.e.?

We usually use tada (:tada:) for new features or things that a lot of people have been asking for. If you don't think this fits any of tada/bug/breaking, then you can just have all three be false.

I haven't used GitHub in a while and i don't know how to deal with two commits that are from main but show up here.


Blood Donation Analysis

Create a model that can accurately predict which donors are likely to donate blood again.

Need more information about the issue. Follow the issue template for the same.

Please assign this issue to me

Can I get this assigned for me? I am from Kwoc and joined in the discord too with username minato96

sir , assign it to me

Can you share the approach and the dataset url, you want to work with?
@hemant933

https://www.kaggle.com/code/mmmarchetti/predicting-blood-donations - dataset
as for approach i will use random forest or gradient boosting modals

The dataset is well and good. Try to focus on atleast 3-4 machine learning models and 1-2 deep learninf methods for a better comparison and better outcome. Here are the models you can try out,

Random Forest
Decision Tree
SVM
XgBoost
Gradient Boosting
Logistic Regression
MLP Classifier
Lasso Regression
Ridge Regression

Issue assigned to you @hemant933


Viewshed location popover display ios10 compatibility

Restructured to work with iOS 10.
@njarecha Could you confirm that this fixes the issue you were seeing please?

@nixta Yes, it fixes the issue I was seeing. However, I would suggest increasing the margin on left and right. The controls are too close to the edge.

Thanks @njarecha - does this look better?