Normal TextInput behaviour on undefined mask property

Describe the Feature
I think it would make sense to make the MaskedTextInput component fallback to the normal TextInput behaviour when the mask property is undefined. This would mean that anything written in the input would be passed on in both text and rawText.
Possible Implementations
export const CustomInput = ({...props}: CustomInputProps) => {
  const [value, setValue] = React.useState('Hello world')

  const handleChangeText = React.useCallback((text, rawText) => {
    console.log('text:', text)
    console.log('rawText:', rawText)
    setValue(text)
  }, [])

  return (
      <MaskedTextInput
        mask={undefined}
        onChangeText={(text, rawText) => setValue(text)}}
        value={value}
        {...props}
      />
  )
}

// Typing "!" suffixed on "Hello world" in the input

// text: Hello world!
// rawText: Hello world!

I can't see a real-world usage for this and don't think that is a good option because if you need to use an input without a mask, is most recommended to use TextInput, and avoid MaskedtTextInput logic.
But of course that it can be implemented because this tends more to help the DX than to make it worse
PR's are welcome!

I think you're right about that MaskedTextInput should not replace TextInput completely. However I do think the behaviour as it is right know, is a bit weird. I don't see why any masking should happen if the mask prop is undefined. If masking should always happen when using the component, then I believe the mask should be a required prop.


get all app connectors

Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Hi @willguibr ,
I would like to get all of our ZPA connectors via terraform to create them as objects in another system. Currently with the ZPA provider I can only get them by their name. I would like to get a full list to use as data source for other terraform configurations.
I found the similar function for the zpa_app_connector_assistant_schedule. For this data source its possible to get all of them as list.
Is the same possible for the connectors?
Thanks in advance and best regards,
Simon
New or Affected Resource(s)

zpa_app_connector_controller (Data Source) with wildcards or with "get all"
Potential Terraform Configuration

Example:
data "zpa_app_connector_controller" "example" {
  name = "*"
}

module zpa_connectors {
  source = "../modules/zpa_connector"

  for_each = data.zpa_app_connector_controller.example
  hostname = format("%s%s%s",each.value.name,".", each.value.description)
  ip = each.value.privateIp
}

References

#0000

@nomisssB We have no plans to implement such feature for operational and performance reasons.
Our recommendation is to have all your app connector's names configured in an input file i.e json or yaml, and have terraform parse / iterate through the file accordingly, so that you can use each app connector as object in the other mentioned system. Here is an example
# Read the list of connectors from the JSON or YAML file
locals {
  connectors_list = jsondecode(file("${path.module}/connectors.json")).connectors
}

# Iterate through each connector from the JSON list and fetch the data
data "zpa_app_connector_controller" "example" {
  for_each = { for conn in local.connectors_list : conn.name => conn }

  name = each.value.name
}

The json file would be formatted in this fashion
{
  "connectors": [
    { "name": "connector1" },
    { "name": "connector2" },
    { "name": "connector3" }
  ]
}

Regards
Zscaler DevRel

Hi @willguibr,
Thanks for the fast response!
Yes, thats how we are doing it today but I would like to not have to maintain the file by hand before deploying the configuration with terraform. I thought getting all connectors in the config via the provider and directly using this information would be the best way.
But it's ok, I understand you need to protect your infrastructure.
I guess I'll just add an external script which gets the information through the ZPA API.
Thanks anyways and best regards,
Simon


Modified default message from hello world to bye on-premises

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

ok

learning...


[BUG] Error Code 268 (Unexpected Client Behaviour) when Joining a Game

Acknowledgement of preliminary instructions

[x] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.

What problem did you encounter?
Whenever I try to Join a Game, I get the error code 268 (Unexpected Client Behaviour). I tried disabling stuff that could be causing this Error but to no avail. (I know this was addressed some time ago, May 4th, 2023. But now it is happening again!) I tried to follow the steps on the Old Bug Report, but those did not work! I would like some help here.

As the preliminary instructions asked, does this happen only when using Bloxstrap? https://github.com/pizzaboxer/bloxstrap/wiki/Switching-between-Roblox-and-Bloxstrap

Seems like there may be something running on your computer (probably in the background) that Roblox doesn't like. Either way, it's not a Bloxstrap issue, so I can't really help you much further.


Library feature

The library function of Windows is very useful, and I use it all the time.Could you add this function

I mean custom libraries which you can all self folder

I mean custom libraries which you can add self folder

Just simply right click the empty area of "Library" and you can add your folders to it

sorry, I didnt say it clearly.
I mean the Library feature in Windows , it contains folders in different paths

If I add a Library it tolds me select folder instead

Unfortunately, this warning is not from RX-Explorer but from Windows. As UWP application, we could not control the "FolderPicker" which provided by Microsoft. So I'm afraid that it might not be able to support this feature


[2050] Sort accredited bodies alphabetically

Context
Fixing a small bug.
Changes proposed in this pull request
Add a method to the decorator to do this wherever it's used.
Guidance to review
:shipit:

 Order provider accredited_bodies field alphabetically


Add postfix expression evaluation

(Put an X inside the [ ] to denote check mark [X].)

[ ] If creating a new file :

[ ] added links to it in the README files ?
[ ] included tests with it ?
[ ] added description (overview of algorithm, time and space compleixty, and possible edge case) in docstrings ?

[ ] if done some changes :

[ ] wrote short description in the PR explaining what the changes do ?
[ ] Fixes #[issue number] if related to any issue

[ ] other

Pull Request Test Coverage Report for Build 760

0 of 20 (0.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.2%) to 71.282%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

algorithms/stack/evaluate_postfix.py
0
20
0.0%

Totals

Change from base Build 753:
-0.2%

Covered Lines:
4304

Relevant Lines:
6038

💛  - Coveralls


bmm150 sensor: bug fix for reading z axis

Describe the bug
The issue was when reading the Z-axis on the BMM150 sensor it returned the same value as X-axis.
To Reproduce
Steps to reproduce the behavior:

build the sample for zephyr/samples/sensor/bmm150
see the output

Expected behavior
when calling sensor_channel_get(mag_dev, SENSOR_CHAN_MAGN_Z, &magz)  it needs to return Z axis value
Impact
the wrong value provided by the driver to the application
Logs and console output
can be observed in the serial console with the sample for bmm150
Environment (please complete the following information):

OS: Linux
Toolchain gcc-none-eabi
NCS1.6.0

@MaureenHelm thank you for the pointers. I think it should be ok now, sorry for the two more unnecessary commits.

@VojislavM please squash commits into a single one

@gmarull now I think it should be ok

Please fix the compliance failure:
Error: See docs.zephyrproject.org/latest/contribute/#commit-guidelines for more details

336a241ea20db990ccbc0d7d8b40463ec39bedc5: author email (voja<EMAIL_ADDRESS>needs to match one of the signed-off-by entries.
336a241ea20db990ccbc0d7d8b40463ec39bedc5: author email (voja<EMAIL_ADDRESS>does not follow the syntax: First Last <email>.
Error: See docs.zephyrproject.org/latest/contribute/#commit-guidelines for more details

3: UC4 Line exceeds max length (84>72): "corrent value is retured when using sensor channel get function to read z axis value"
Error: Process completed with exit code 1.

@avisconti I think now commit message should be ok

@MaureenHelm I do not understand what is the issue now?
Run if [[ ! -s "compliance.xml" ]]; then
Error: See https://docs.zephyrproject.org/latest/contribute/#commit-guidelines for more details

d02ce7c174036a46097599693e8c866a6e758575: author email (voja<EMAIL_ADDRESS>needs to match one of the signed-off-by entries.
d02ce7c174036a46097599693e8c866a6e758575: author email (voja<EMAIL_ADDRESS>does not follow the syntax: First Last <email>.
Error: Process completed with exit code 1.

do I need to change my GitHub name so this can be accepted?

@MaureenHelm I do not understand what is the issue now?
Run if [[ ! -s "compliance.xml" ]]; then
Error: See https://docs.zephyrproject.org/latest/contribute/#commit-guidelines for more details

d02ce7c174036a46097599693e8c866a6e758575: author email (voja<EMAIL_ADDRESS>needs to match one of the signed-off-by entries.
d02ce7c174036a46097599693e8c866a6e758575: author email (voja<EMAIL_ADDRESS>does not follow the syntax: First Last <email>.
Error: Process completed with exit code 1.

do I need to change my GitHub name so this can be accepted?

git config user.name First Last
Then amend your commits with new author name.

@gmarull thank you! Hopefully, now it will pass :)


[Bug] Bun bundle not work with PgLite

What versions are running ?

Bun: 1.1.33
PgLite: 0.2.12

What steps can reproduce the bug ?
Use the following index.ts and package.json files and run
bun build --compile --sourcemap ./index.ts --outfile executable && ./executable

index.ts
import { PGlite } from "@electric-sql/pglite";

const db = new PGlite();
await db.waitReady;
const result = await db.query("select 'Hello world' as message;");
console.log(result);
await db.close();

package.json
{
  "name": "pglite-bundle",
  "private": true,
  "module": "index.ts",
  "type": "module",
  "dependencies": {
    "@electric-sql/pglite": "0.2.12"
  }
}

What is the expected behavior ?
The process runs successfully.
What do you see instead ?
The process fails with error
ENOENT: No such file or directory
   errno: -2
 syscall: "open"
   path: "/$bunfs/root/postgres.data"

/$bunfs/root/postgres.data is a bun generated path and it is wrong.
Just dont use compile until they fix packager ( afaik there are open issues already https://github.com/oven-sh/bun/issues?q=is%3Aissue %2F%24bunfs%2Froot )


Add Hover support to the language server [phab:D1863]

Created by djrenren at 2017-08-11 22:46:26:
Hover is used to provide docstrings on hover.
This change makes the hover request return the rendered marked source
for a given node.

zarko accepted this revision at 2017-08-14 17:19:18

schroederc commented inline (context lost during migration) at 2017-08-14 17:23:32:
Use %q instead of '%s' throughout

schroederc required changes at 2017-08-14 17:23:32

schroederc commented inline (context lost during migration) at 2017-08-14 17:24:20:
Lower-case error messages

djrenren wrote at 2017-08-14 19:34:07:

Fix log and error strings

schroederc accepted this revision at 2017-08-14 19:56:55

djrenren closed via commit 61a4e9950ea11714cc8eb26f9622db1787fbe144 at 2017-08-14 21:33:57


Add upgrade_docker.sh file which will upgrade existing docker versions to 17.06

https://github.com/Shippable/pm/issues/10352

this is done, closing


Fixed visual truncation issue in Config References combo box

Fixes #495
Increases the width of the Config References combo box to prevent visual truncation shown here

After the change:

or make the dialog resizeable and remember its size?

OMG.... what happened to this... how could I not see this PR, or did we loose track after my last comment. I have to check if this got actually fixed.

Not sure how to proceed with this. Setting the ComboBox "configRefComboBox" anchor to "Top, Left, Right" and the other controls as indicated has no effect. I confirmed in an external app that the anchoring works as expected with a similar set of controls, but does nothing in this context. Possibly related to the FlowLayoutPanel in which UI elements reside.

i have fixed this last night

Thanks for helping on this and sorry that i fixed it now myself :( I hope you don't mind!

i have fixed this last night, i had to remove the flowlayout and also i noticed that the combo boxes had the wrong mode and some other details. It is included in the latest beta

Great! I'll review the diff so I can understand the issue in more detail. Thanks!


Limited length JSON schema string is 30x slower than plain str

Here's benchmark of the same text generation on Pydantic with str and constr fields:
Prompt: ### Instruction:
You are an obedient assistant.

### Input:
Write a knock-knock joke in JSON format. The joke should have a preamble, a question, a name, a who, and a punchline, in that order.

### Response:

Answer, with plain str:
{
  "preamble": "Knock knock!",
  "question": "Who's there?",
  "name": "Banana",
  "who": "Banana who?",
  "punchline": "Banana-na-na-na-na-na-na-na-na-na-na!"
}
Answer, with constr:
{
  "preamble": "Knock knock!",
  "question": "Who's there?",
  "name": "Banana",
  "who": "Banana who?",
  "punchline": "Banana-na-na-na-na-na-na-na-na-na-na!"
}
Plain: 2.49 s, Constr: 72.87 s

Relevant code:
question = r'Write a knock-knock joke in JSON format. The joke should have a preamble, a question, a name, a who, and a punchline, in that order.'
prompt = get_prompt(question)
print("Prompt:", prompt)

def plain_str():
    class AnswerFormat1(pydantic.BaseModel):
        preamble: str
        question: str
        name: str
        who: str
        punchline: str

    print("Answer, with plain str:")
    result = vllm_with_character_level_parser(llm, prompt, JsonSchemaParser(AnswerFormat1.schema()))
    print(result)

def with_constr():
    class AnswerFormat2(pydantic.BaseModel):
        preamble: pydantic.constr(max_length=100) # type: ignore
        question: pydantic.constr(max_length=100) # type: ignore
        name: pydantic.constr(max_length=100) # type: ignore
        who: pydantic.constr(max_length=100) # type: ignore
        punchline: pydantic.constr(max_length=100) # type: ignore

    print("Answer, with constr:")
    result = vllm_with_character_level_parser(llm, prompt, JsonSchemaParser(AnswerFormat2.schema()))
    print(result)

plain_time = timeit.timeit('plain_str()', number=1, globals=globals())
constr_time = timeit.timeit('with_constr()', number=1, globals=globals())

print(f"Plain: {plain_time:.2f} s, Constr: {constr_time:.2f} s")

Yes, length-constrained strings can not take advantage of the "json freetext token" caching so they use the full mode. It is possible to develop a length-specific caching to make it faster, I'll leave this issue open for people to vote on it to see how much demand there is for it.

How about instantiating, for example, 128, 64, 32, 16 and 8 long freetext states and hierarchically chomping up the longest sequence that is left?

Hmm, actually, this seems to work:
             # print("Filtering whitespace characters")
             allowed_characters = "".join(c for c in allowed_characters if c not in WHITESPACE_CHARACTERS)
@@ -102,11 +102,12 @@ class JsonSchemaParser(CharacterLevelParser):
             current_parser = self.object_stack[-1]
             if isinstance(current_parser, StringParsingState):
                 if not current_parser.allowed_strings and current_parser.seen_opening_quote and not current_parser.seen_closing_quote \
-                    and current_parser.min_length is None and current_parser.max_length is None:
+                    and current_parser.min_length is None:
                     # Performance optimization: When we are parsing a string that is not from a list of allowed strings, most tokens
                     # are legal. The exploration can be more costly than the LM itself for large tokenizers (because this is pure python),
                     # so we signal that we are in a "freetext" mode, and reuse the allowed token list throughout the run.
-                    return 'json_freetext'
+                    if current_parser.max_length is None or len(current_parser.parsed_string) < current_parser.max_length:
+                        return 'json_freetext'
         return None

Result:
Answer, with plain str:
{
  "preamble": "Knock knock!",
  "question": "Who's there?",
  "name": "Banana",
  "who": "Banana who?",
  "punchline": "Banana-na-na-na-na-na-na-na-na-na-na!"
}
Answer, with constr:
{
  "preamble": "Knock knock!",
  "question": "Who's there?",
  "name": "Banana",
  "who": "Banana who?",
  "punchline": "Banana-na-na-na-"
}
Plain: 2.50 s, Constr: 2.15 s

Is there something that will break despite it looking ok in this test?


help my girlfriend's ssn is in here 018-67-5309

please help her name is jenny and she is really upset please delete her number thx 018-67-5309

submit a pr

PR requires confirmation from boyfriend. Please provide his SSN as well.

Can you tell me the mailing address and phone number and I will open pr.

any mail-in requests are to be sent to the following address:
1600 Pennsylvania Avenue NW, Washington, DC 20500
202-456-1111

Who can you turn to?

Who can you turn to?
please avoid any off topic discussion.


Assignment to object member requires all attributes of all possible members

Bug Report
🔎 Search Terms
union attributes intersection assign object member
🕗 Version & Regression Information

This changed between versions 3.3.333 and 3.5.1
Nightly version at time of test: v5.0.0-dev.20230125

⏯ Playground Link
Playground link with relevant code
💻 Code
interface BoatInstance {
    requiresLicense: boolean;
    maxGroundSpeed: number;
    description: string;
    displacement: number;
    name: string;
}
interface PlaneInstance {
    requiresLicense: boolean;
    maxGroundSpeed: number;
    maxTakeoffWeight: number;
    maxCruisingAltitude: number;
    name: string;
}
interface Vehicles {
    Boat: BoatInstance;
    Plane: PlaneInstance;
}
declare function getVehicleIfAvailable<TN extends keyof Vehicles>(
    vehicleName: TN,
) : Promise<Vehicles[TN] | undefined>;
export const getVehicles = async function(
    vehicleNames: (string & keyof Vehicles)[],
) {
    let results : Partial<Vehicles> = {};
    //The poor-coding practice version of hardcoding every line
    //(worse when the list of vehicle types is longer and/or the
    //function which generates them takes a longer list of parameters
    //and/or the subset to be populated is dynamic) works
    results['Boat'] = await getVehicleIfAvailable('Boat');
    results['Plane'] = await getVehicleIfAvailable('Plane');
    //The more efficient, less-hardcoded, but not-allowed-in-TS version:
    for (let vehicleName of vehicleNames) {
        const vehicleNameConst = vehicleName;
        //ts(2322) Error on next line (where hover over vehicleName reveals "Boat" | "Plane" as expected):
        //Type 'BoatInstance | PlaneInstance | undefined' is not assignable to
        //type '(BoatInstance & PlaneInstance) | undefined'.
        //Type 'BoatInstance' is not assignable to type 'BoatInstance & PlaneInstance'.
        //(Why is it trying to assign to that type?)
        //Type 'BoatInstance' is missing the following properties from type 'PlaneInstance':
        //maxTakeoffWeight, maxCruisingAltitude
        results[vehicleNameConst] = await getVehicleIfAvailable(vehicleNameConst);
    }
    return results;
}

🙁 Actual behavior
TS was successfully able to assign just a single instance of one kind of vehicle before the for loop,
but when assigning to results[vehicleName] for any variably-specified vehicleName (even when a holding constant is used, with the same constant value on the left and right sides of that final assignment line), it expects the type being assigned to have all the properties of all the types that a member of results could have, instead of just the specific type corresponding to the name of the key being assigned to.
🙂 Expected behavior
The assignment inside the for loop does not expect the & combination of all the types that could be members of that object, just the type corresponding to the member of Vehicles corresponding to the keyof Vehicles in use in that particular line. TypeScript should be able to figure out that the type returned from getVehiclesIfAvailable() is the type that corresponds to the vehicleName given.

Locking this instead of a different issue is what I get for having too many tabs open.
From a static analysis perspective, there's nothing distinguishing this code from any number of unsound variants of it wherein the left utterance of vehicleNameConst and the right utterance refer to different variables with different values. In particular, our type system does not attempt to reason about this sort of relationship.

It is possible to do static analysis on this example to figure out that the RHS type, i.e. the resolve type of getVehicleIfAvailable(vehicleNameConst); is Vehicles[TN] where TN is vehicleNameConst and that this type Vehicles[TN] is the same type expected on the LHS for the same TN; static analysis can verify that it's the same.
Yes, there is an infinite number of ways to write unsound code, but this isn't one of them.
This is an example where "working as intended" seems to pit the actually-intended goals of Typescript against the nominal goals of being able to write clean, reusable code and/or easily transition JavaScript already written that way into functional TypeScript without having to rewrite code in a way that actively harms readability, scalability, and usability.
By the presence of the issue, it seems like the TS compiler does not currently do the analysis needed to figure out that this assignment is sound; the Issue proposes that the TS compiler's static analysis capabilities be expanded to recognize cases like this as sound, instead of falsely reporting it as unsound, preventing compilation.

Yes, you can special-case anything. The point is that we don't want to make a type system built out of special cases, as much as we can help it.

I don't think it is a one-off special case; I think this is a reasonably common pattern that should behave correctly, even if not everybody who has code written like this has time to boil it down to a simple example for posting here.  With the logic of the last post, every correct program is a special case and we really should make a type system that can pass as many correct programs as possible.
"Working as intended" suggests that if the code didn't behave like this and actually let the sound case through, that should trigger effort to change the behavior back to prohibiting sound code like this.  If you want to know sources of where the impression comes from about TS work against good coding practices, here's one illustrative design decision.

Happy to clarify that.


private field override does not work (unrelated classes in the same library, override induced with mixins)

found while investigating https://github.com/dart-lang/language/issues/104#issuecomment-440434795
class M {
  int _foo = 42;
  int get foo => _foo;
}
class N {
  int _foo = 123;
}
class C extends M with N {}
main() {
  print(C().foo);
}

dartdevc prints the wrong answer. It should virtualize both M._foo and N._foo.

there's probably an issue with library cycles too: https://github.com/dart-lang/language/issues/104#issuecomment-440440605


Fix invalid condition in Typo3ClassNamingUtilityTrait

There have been multiple issues in the condition
that does check if the given class does implement the
RepositoryInterface when converting the repository name
to a model name.

The condition was not negated
The attributes passed to "is_a()" where in the wrong or order.

So the condition was totally broken and did not do what it should do.

I have overlooked it as well.


Added a new module for SOCKSv5 proxying

When executed, this module connects back to a designated AlmondRocks server under SSL. The AlmondRocks server acts as a SOCKSv5 proxy, and multiplexes all SOCKS communications over the single SSL connection to/through the target, enabling any SOCKSv5 client (e.g. curl, proxychains) to extend past NAT devices into the target network.
This is based on the following work:

https://github.com/klustic/AlmondRocks

** Server Usage **
$ ./almondrocks.py server -d --cert cert.pem --key key.pem

This is great! Appreciate the effort. We will try to get pull requests knocked out soon.
@klustic Do you mind submitting a pull request for the 2.0_beta branch as well?

Sure! Created #478 on 2.0_beta under the Empire project


Improve error handling

If serialization or deserialization fails, this library throws an error.
In other languages this would be fine, because you could use try/catch to handle the error.  Unfortunately, AssemblyScript doesn't yet support try/catch.
  That means even if you override abort, you are still screwed because memory can become corrupted if you continue to use a module after an unreachable.  See https://github.com/AssemblyScript/assemblyscript/issues/302#issuecomment-491933817
Instead of throwing, can you please return null, or perhaps return an Optional or Result type as a wrapper, etc.

https://github.com/yjhmelody/as-container

Yes. Returning an Option object from that library would be acceptable.

Any update on this? Thanks.

@mattjohnsonpint I made a near zero-cost class to handle errors. Its inspired by Rust's Result
https://github.com/JairusSW/as-json/blob/develop/assembly/product.ts
Most of the work on this is happening in the develop branch, but I can move the error handling over to master

Thanks! I'll review soon.

@mattjohnsonpint I think this will be a better option
https://github.com/JairusSW/as-try
I'll expand on the library eventually. It'll have the option to wrap anything in a Result<T>, manage and handle unreachable() instructions, and delegate throws and aborts to the host as an option

TODO

Going to be released in v1.0.0


Remove Reconstructor from init to prevent circular dependency

This should be removed to prevent circular dependency.
https://github.com/TomographicImaging/CIL/blob/5ea9282104423dd0134a8d67fbf599ec60960efe/Wrappers/Python/cil/recon/__init__.py#L20

Instead we will leave this in the init and instead use relative imports in the files in the recon folder


Default Instance props values are used instead of configured ones

When user configure environment properties by sh graddlew props properties are saved under gradle.user.properties file, but during setup execution (sh gradlew setup), those values are not used. Default values is used instead.
This cause fail of setup job in case when user require to setup local environment. Fail happens on instanceUp step, which runs without existing instance.

is is consequence of fork plugin 4.0.0 ; will se how to fix it;
thx for reporting

probably just need to read project.rootProjects.properties in Instance.properties method, checking.

nope, now fork plugin need to be just applied first, before GAP
plugins {
    id("com.neva.fork")
    id("com.cognifide.aem.bundle")
    id("com.cognifide.aem.tooling")
    id("com.cognifide.aem.instance")
}

fixed in https://github.com/Cognifide/gradle-aem-single/commit/d20dfe12f1c99728391079658790884cb550175c


Bug: Offers Quarkus 3.0.0.Alpha4 as default version

Bug report
Today, SDKMAN! offered an alpha version of Quarkus as the default. It shouldn't.
To reproduce

Run these commands with Quarkus installed already:

sdk selfupdate
sdk update
sdk ug

SDKMAN! offers the alpha version 3.0.0.Alpha4 as the default:

Available defaults:
-e quarkus (local: 2.16.1.Final, 2.16.2.Final; default: 3.0.0.Alpha4)

-e -n Use prescribed default version(s)? (Y/n):

System info

macOS Ventura 13.2.1
zsh 5.8.1 (x86_64-apple-darwin22.0)
The output of sdk version

SDKMAN!
script: 5.16.1
native: 0.1.0

Hi @ksilz, this isn't really a bug but a data issue so let's close this. The vendors are responsible for publishing their own versions on SDKMAN, so this should probably be taken up with the likes of @maxanderson. Feel free to chat with us (or Max) on our community slack as per the contributing guidelines


Update musl images

I was trying to build with arm-unknown-linux-musleabi and it was failing on miniz-sys compilation.
After I build the docker image from master branch I successfully build my project.
Since musl is not affected by https://github.com/rust-embedded/cross/pull/164#issuecomment-352188362 can you please update all musl images?

@oblique Thanks for reporting this. The build passes for this architecture on CI. Can you post more details like your openssl version?

I don't use openssl-sys, but in any case my OpenSSL version: 1.1.1a  20 Nov 2018.
Also if I see correctly from the logs, the arm-unknown-linux-musleabihf docker is actually build from git repo. The problem is the that DockerHub image is outdated.
Can you test the following with DockerHub image?
cargo.toml
[package]
name = "issue234"
version = "0.1.0"

[dependencies]
miniz-sys = "0.1.11"

src/main.rs
extern crate miniz_sys;
fn main() {
}

And I build with:
cross build --target arm-unknown-linux-musleabi

If I rebuild docker image from git repo, then everything works.

The same problem is in #161

For these who will find need I published fresh build for armv7-unknown-linux-musleabihf but without OpenSSL
Also surprisingly bigger than older one in japaric's

I guess this should be working now that the new images are available on Docker Hub.


verify args should match requests library documentation

Docstrings for verify args throughout the taxii2client library (example) state that only a bool may be provided. However, this value is ultimately passed to the requests library, which accepts either a bool or string (source).

Looks to me like verify is passed into _HTTPConnection, which sets it on a requests session:
https://github.com/oasis-open/cti-taxii-client/blob/54dabadf1a67517e99e6a8f2961614a2a4f5ad2c/taxii2client/common.py#L261-L262
The docs for that attribute are here.  They don't document a string as being a supported value type.

Thanks for double checking!
session.request does support a string for its verify arg: https://github.com/psf/requests/blob/main/src/requests/sessions.py#L550
It looks like session.verify, set by _HTTPConnection as you point out, ends up getting used as the verify value if one wasn't passed to the session.request call:
https://github.com/psf/requests/blob/main/src/requests/sessions.py#L776
https://github.com/psf/requests/blob/main/src/requests/sessions.py#L70
(sorry, not sure how to embed code previews)
Maybe the requests documentation is out of date? I'll look into this a bit further and see an issue should be opened on their end.


How to target specific framework?

How would I ensure that only a specific framework version of a package is installed? e.g. .NET Core App 2.0 dependencies only, so it doesn't traverse the entire dependency tree.

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

ID: 2b3c1240-cc9b-af42-0cdb-a455bad923b5
Version Independent ID: 7bd8ee0a-5a87-55f2-74d4-40adaa72ea75
Content: NuGet Install-Package PowerShell Reference
Content Source: docs/tools/ps-ref-install-package.md
Product: nuget
GitHub Login: @karann-msft
Microsoft Alias: karann

There is a clarifying note at the top of the page that the page is specific to PowerShell within the Package Manager Console (VS). So, you will have a csproj and sln.


⚠ BCR Bot has degraded performance

In e3e49c2, BCR Bot (https://bcr.alternativasinteligentes.com/BCRApi/web/chatbot) experienced degraded performance:

HTTP code: 500
Response time: 980 ms

Resolved: BCR Bot performance has improved in 2b87d9e.


PHP Warning:  fwrite(): SSL operation failed with code 1. OpenSSL Error messages: error:1409E10F:SSL routines:ssl3_write_bytes:bad length in /var/www/mautic/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php on line 240

Q
A

Bug report?
yes

Feature request?
no

RFC?
yes/no

How used?
Mautic

Swiftmailer version
Default came in Mautic

PHP version
7.2.19

Observed behaviour
While sending concurrent emails through queued jobs getting this exception resulting failure of the job and failure of the email delivery
Expected behaviour
Email should be sent
Example
php app/console mautic:emails:send

php app/console mautic:emails:send
[Swift_TransportException]
Expected response code 250 but got code "451", with message "451 4.4.2 Timeout waiting for data from client.
"
PHP Warning:  fwrite(): SSL: Broken pipe in /var/www/mautic/html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php on line 240

any updates on this issue?

same problem! any updates on this issue?

@victoretibr @Isitar  Working for me now... after disabling ssl for swiftmailer
    stream_options:
        ssl:
            verify_peer: false
            verify_peer_name: false

i have the same problem. does anyone has any suggestion?

having the same problem. any solution?

We encountered this issue today. Why was this issue closed @fabpot ?

in our case the issue occoured only when sending many mails, we ended up doing batch-processing for this application and resolved the issue this way

in our case the issue occoured only when sending many mails, we ended up doing batch-processing for this application and resolved the issue this way

it's a good workaround, but doesn't really fix the issue. :(
How many emails did you make each batch to make it work @Isitar ?

The batch size is 10, then we wait for 1 second


Release new version

Good day,
Would you be able to release a new version of the cookbook in the supermarket? Some interesting additions have been done since the release of v1.31.0 and it would be nice to have them in a new stable version.
Thanks!
Best,
Thijs

:+1:

@erichelgeson would this be possible?

+1

@thoutenbos @zlangbert I'm thinking about releasing a new java cookbook called java_se.  All it would do is install oracle jdk 8x on linux, mac os x, and windows.  Is that something you would be interested in?

@dhoer Personally I'm looking to install openjdk 8 not oracle, which is why I was hoping for an update to this

@zlangbert Thanks, I'm looking for mac and windows installer for oracle jdk.

1.35.0 released.


ChatOpenAI() isn't a BaseLLM and therefore cannot use in ConversationalRetrievalQAChain

I'm trying to use the ConversationalRetrievalQAChain with GPT3.5 because it's cheaper than GPT3.
But when I try to use new ChatOpenAI() as the model for ConversationalRetrievalQAChain it gives an error because it doesn't have the properties of name and _generateUncached that are present in BaseLLM.
Is there anything I can do to resolve this for now?
const chatModel = new ChatOpenAI();

const chain = ConversationalRetrievalQAChain.fromLLM(
  chatModel, // << TYPE ERROR
  vectorStore.asRetriever(),
  { returnSourceDocuments: true }
);

I suggest use
const chatModel = new OpenAI({
      model: CHAT_GPT_MODEL
    });

Try importing this const { OpenAIChat } = await import("langchain/llms"); instead of ChatOpenAI

I made it work with this:
class FixedBaseLLM extends BaseLLM {
      _generate(
        prompts: string[],
        stop?: string[] | undefined
      ): Promise<LLMResult> {
        throw new Error("Method not implemented.");
      }
      _llmType(): string {
        throw new Error("Method not implemented.");
      }
    }

    const llm: FixedBaseLLM = new OpenAIChat({
      openAIApiKey: ...,
    });

    const chain = ConversationalRetrievalQAChain.fromLLM(
      llm,
      this.Documents.asRetriever()
    );

class FixedBaseLLM extends BaseLLM {
  _generate(
    prompts: string[],
    stop?: string[] | undefined
  ): Promise<any> {
    throw new Error("Method not implemented.");
  }
  _llmType(): string {
    throw new Error("Method not implemented.");
  }
}

const llm: FixedBaseLLM = new OpenAIChat({
  openAIApiKey: ...,
});

const chain = ConversationalRetrievalQAChain.fromLLM(
  llm,
  this.Documents.asRetriever()
);

Wow, I didn't realize that openAI() was using GPT 3 instead of 3.5. Please, please make this more obvious in docs as it's not intuitive that the older, 10x more expensive model is the default. Unless for legacy reasons it stayed the same, but I'd imagine things are already moving too fast to be concerned with legacy right now.
@clbarrell @Achalogy @nsantos16 Have you got this working better than if you just called OpenAI() with modelName gpt-3.5-turbo ??

I think it won't work because completion and chat completion have different api endpoints.

@Achalogy looks like the constructor just calls chatOpenAI if the model name is gpt-3.5 turbo or gpt 4

https://github.com/hwchase17/langchainjs/blob/440500d81516ef9260e5da7a0c09a1d3a936ff4c/langchain/src/llms/openai.ts#L108
Done here.
Anyway, swapping this makes things just work indeed!


Types not available on Deno with Hono v4.5.5

What version of Hono are you using?
4.5.5
What runtime/platform is your app running on?
Deno
What steps can reproduce the bug?
After upgrading to Hono v4.5.5, types are no longer working in Deno:

I am using Hono with JSR, and I can see that types.ts is clearly available<EMAIL_ADDRESS>So I'm not sure if this is a bug with Hono, with JSR, or with Deno.
If I ctrl+click the types in VSCode, I cannot click into types.ts, even though I can for other files.
No response
What do you see instead?
No response
Additional information
No response

@alexgleason probably you can resolve if you run
deno cache --reload src/app.ts

@nakasyou That was exactly the problem. Thank you!


Support View method in nydus snapshotter

For now View doesn’t work as expected.

Thanks for reporting. I will fix this.

This should be moved to https://github.com/containerd/nydus-snapshotter now.

I closed this since a replacement now is added to https://github.com/containerd/nydus-snapshotter/issues/2


GROOVY-10516: Script @groovy.transform.Field AST transformation gener…

…ics handling with fully qualified types

Not needed, so closing.


Revert CI changes

Problem: we can't run golden-tests on garnix, because they require write access to the /nix/var and read access to the /nix/store
Soluiton: move back to the github actions CI and disable check on time of nix build

I also removed the Garnix CI requirement

So, I can remove garnix.yaml?

Yeah, you can remove it if you want


Parsing duplicate keys

I'm having some trouble with the following.
<style>
@font-face  {
    font-family: Dosis;
    font-weight: 400;
    src: url({{require('./fonts/Dosis-ExtraLight.ttf')}});,
  }
@font-face {
    font-family: Lato;
    font-weight: 300;
    src: url({{require('./fonts/Lato-Hairline.ttf')}};
  }
</style>

It then compiles to an object with just one @font-face key. Is there a way of handling this?

Thanks for reporting. I'll see how to handle this case. I'm surprised that I missed it.

#https://github.com/jsstyles/jss/issues/199
Referencing this issues here as it's pretty similar and for my use case I'm using your library coupled with jss, would be cool if it compiles to the same syntax, an array with '@font-face' as the key.

@AlastairTaft I was just searching in jss repo for a similar case so I know how to transpiler the CSS. Thanks. Will follow the same format.

👍 Awesome, thanks

@AlastairTaft it's done. There is 5.1.1 version released.
The following:
<style>
	@font-face {
    font-family: Dosis;
    font-weight: 400;
    src: '...';
  }
	@font-face {
    font-family: Lato;
    font-weight: 300;
    src: '...';
  }
</style>

Is now transpiled to:
var s = (function () {
   var _1 = {},
       _2 = {},
       _3 = {};
   _2['font-family'] = 'Dosis';
   _2['font-weight'] = '400';
   _2['src'] = '\'...\'';
   _3['font-family'] = 'Lato';
   _3['font-weight'] = '300';
   _3['src'] = '\'...\'';
   _1['@font-face'] = [_2, _3];
   return _1;
}.apply(this));

Which is actually:
{
  "@font-face": [
    {
      "font-family": "Dosis",
      "font-weight": "400",
      "src": "'...'"
    },
    {
      "font-family": "Lato",
      "font-weight": "300",
      "src": "'...'"
    }
  ]
}

Here is an example of jss that uses @font-face http://krasimir.github.io/cssx/playground/jss/dist/ (I'm not sure why google's fonts are not applied. There are in in the markup though.)


Explicit Syntax Highlighting Support

Right now, Daux seems to be able to detect (reasonably well) what language an indented code block is and use highlight.js to give us syntax highlighting.
Unfortunately, it doesn't seem to work well with PowerShell (which is the majority of code blocks I am testing today). Historically, we've used code fences and explicitly named the language at the top of the fence, as in the example below.
```someLanguage
# a Comment
Something(parameter)
```

This works with GitHub Flavored Markdown and is used by several other mardown-syntax-highlighters.
Is this possible to configure with Daux? I've been going through the documentation today to do up a POC for our team.

Hello,
currently, adding the language to the code fenced block works as you explained.
However, our current build of highlight.js doesn't support powershell.
I updated to the latest version and added all languages highlight.js is able to support.
You can download the latest version on the  development branch and use powershell highlight
composer global require justinwalsh/daux.io:dev-development

Thank you for the crazy fast turn-around! :)

This is now fixed and released in 0.3.0

Thank you!


Migrate marketplace components to v5

Problem solved
Short description of the bug fixed or feature added

PR-Codex overview
The focus of this PR is to expose the max() utility method for bigints and make necessary adjustments to avoid overflow issues.
Detailed summary

Exposed max() utility method for bigints
Updated usage of max() in MarketplaceTable and ListingStatsV3
Added useV5DashboardChain and getContract imports
Modified components to use ThirdwebContract instead of MarketplaceV3

The following files were skipped due to too many changes: apps/dashboard/src/contract-ui/tabs/overview/components/MarketplaceDetails.tsx

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

#4127  👈
main

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

Join @kien-ngo and the rest of your teammates on  Graphite


Solved Images Overlapping Problem

Fixes: #494  Improve Education Page Alignment
Screenshot:

@anushbhatia Sir , can I automate the task of sliding of certificates?

@anushbhatia Sir , can I automate the task of sliding of certificates?

Please read properly what I had requested in your issue . By "remove the carosel" I mean remove the entire section itself

Please read properly what I had requested in your issue . By "remove the carosel" I mean remove the entire section itself

@smaranjitghose  Ohhky, so mean that certificate section is not needed!

@smaranjitghose  Ohhky, so mean that certificate section is not needed!


fix: Orchestrator labels get corrupted with entity data upon successive training

Description
Taking a change from bf-cli to fix an Orchestrator incremental training issue. Smoke-tested and problem no longer exists.
Task Item
closes #6429

Coverage remained the same at 52.892% when pulling 413cfa9e868b05a8f564c91ac425e25947d5d657 on tachou/updateOrchPackage into 7aac46292f3e09774f9b97ff7cf02140dbe6816a on main.


[FLINK-36241] Table API .plus should support string concatenation

What is the purpose of the change
This PR improves handling of + operator in more cases.
Verifying this change
Added tests.
Does this pull request potentially affect one of the following parts:

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

Documentation

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

@flinkbot run azure

@flinkbot run azure

@flinkbot run azure


Merge of branch 'split'

This branch will provide the splitting of the data parsing and sorting part of grsisort from its analysis portion. The latter will make up the split branch with some provisions to handle the parsing/detector libraries.
So far three parsing/detector libraries have been written:

GRSIData for GRIFFIN/TIGRESS experiments (https://github.com/GRIFFINCollaboration/GRSIData)
ILLData for FIPPS data from ILL (https://github.com/UoG-Nuclear-Physics-Group/ILLData)
iThembaData for data from the tape station at iThemba (https://github.com/UoG-Nuclear-Physics-Group/iThembaData)

The new branch will also change the names of objects written to the fragment and analysis files to not be the class name (mostly by dropping the leading T), see #942.

Since there hasn't been any objection to merging this, I will do so.
This means release v<IP_ADDRESS> is the last release of the old GRSISort v3.


Handling events for writing files before piping them as per instructi…

…ons in the Request documentation.
https://www.npmjs.com/package/request#streaming
"To easily handle errors when streaming requests, listen to the error event before piping"

Hey! Looks good, thanks! Gonna merge this a little bit later.

Sure thing!
I've just moved the event listening instructions to be above the piping.
I've looked at the request package implementation and it seems that for
small files there's a serious race for setting the error before the
operation finishes when you do it the other way around (like it was
before). Probably because Node runs the piping in another offloaded thread.
On Mon, Oct 12, 2015 at 2:07 PM, Harri Siirak<EMAIL_ADDRESS>wrote:

Hey! Looks good, thanks! Gonna merge this a little bit later.
—
Reply to this email directly or view it on GitHub
https://github.com/harrisiirak/webhdfs/pull/12#issuecomment-147367034.


Hack for lumi.airer.acn01 to make the current position in HA work

@al-one, thanks for great job!
This pull request is just a hack to illustrate the problem with the fact that the current position is not being thrown for the lumi.airer.acn01 in Home Assistant. Please see the possible ways to fix this problem using as the example this pull request.

Thanks ! But I modify your codes, please test the latest.

Thanks ! But I modify your codes, please test the latest.

Yep, this was not the optimal code just to illustrate the solution.
I checked it, everything works fine.


sync <IP_ADDRESS>x into pr in original

ok

I have created a third party maintenance fork for dealing with bugfixes/updates
at https://github.com/XenoAmess/p3c
In this pr I will link my TPM's release branch into your master branch,
you can chose the fixes you interested in and merge them.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.3 out of 4 committers have signed the CLA.:white_check_mark: XenoAmess:white_check_mark: atuowgo:white_check_mark: tjgykhulj:x: JLLeitschuhYou have signed the CLA already but the status is still pending? Let us recheck it.


ebiten: CursorPosition crashes before the main loop on browsers

As this should not be so a critical issue, I don't plan to backport this unless I find other critical issues.


Bug

Describe the bug
The application crashed when trying to select the path to the project
Logs
MBP-Andrej:KivyMD_Project_Creator mrsmitix$ python3.9 main.py
[INFO   ] [Logger      ] Record log in /Users/mrsmitix/.kivy/logs/kivy_20-12-24_79.txt
[INFO   ] [Kivy        ] v2.0.0
[INFO   ] [Kivy        ] Installed at "/usr/local/lib/python3.9/site-packages/kivy/init.py"
[INFO   ] [Python      ] v3.9.1 (default, Dec 17 2020, 03:56:09)
[Clang 11.0.0 (clang-1<IP_ADDRESS>)]
[INFO   ] [Python      ] Interpreter at<EMAIL_ADDRESS>[INFO   ] [Factory     ] 186 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_imageio, img_dds, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO   ] [Window      ] Provider: sdl2
[INFO   ] [GL          ] Using the "OpenGL ES 2" graphics system
[INFO   ] [GL          ] Backend used
[INFO   ] [GL          ] OpenGL version <b'2.1 INTEL-12.10.17'>
[INFO   ] [GL          ] OpenGL vendor <b'Intel Inc.'>
[INFO   ] [GL          ] OpenGL renderer <b'Intel HD Graphics 4000 OpenGL Engine'>
[INFO   ] [GL          ] OpenGL parsed version: 2, 1
[INFO   ] [GL          ] Shading version <b'1.20'>
[INFO   ] [GL          ] Texture max size <16384>
[INFO   ] [GL          ] Texture max units <16>
[INFO   ] [Window      ] auto add sdl2 input provider
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO   ] [KivyMD      ] 0.104.2.dev0, git-Unknown, 2020-12-23 (installed at "/usr/local/lib/python3.9/site-packages/kivymd/init.py")
[INFO   ] [Text        ] Provider: sdl2
[INFO   ] [KivyMD Project Creator] v0.1.8b
[INFO   ] [GL          ] NPOT texture support is available
[INFO   ] [Base        ] Start application main loop
[ERROR  ] [Image       ] Not found <assets/images/templates/.png>
[ERROR  ] [Image       ] Not found <assets/images/templates/.png>
[ERROR  ] [Image       ] Not found <assets/images/templates/.png>
[ERROR  ] [Image       ] Not found <assets/images/templates/.png>
[ERROR  ] [Image       ] Not found <assets/images/templates/.png>
[ERROR  ] [Image       ] Not found <assets/images/templates/.png>
[ERROR  ] [Image       ] Not found <assets/images/templates/.png>
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/plyer/utils.py", line 93, in _ensure_obj
mod = import(module, fromlist='.')
File "/usr/local/lib/python3.9/site-packages/plyer/platforms/macosx/filechooser.py", line 7, in
from pyobjus import autoclass, objc_arr, objc_str
ModuleNotFoundError: No module named 'pyobjus'
[INFO   ] [Base        ] Leaving application in progress...
Traceback (most recent call last):
File "/Users/mrsmitix/Desktop/KivyMD_Project_Creator/main.py", line 88, in
MainApp().run()
File "/usr/local/lib/python3.9/site-packages/kivy/app.py", line 950, in run
runTouchApp()
File "/usr/local/lib/python3.9/site-packages/kivy/base.py", line 582, in runTouchApp
EventLoop.mainloop()
File "/usr/local/lib/python3.9/site-packages/kivy/base.py", line 347, in mainloop
self.idle()
File "/usr/local/lib/python3.9/site-packages/kivy/base.py", line 387, in idle
Clock.tick()
File "/usr/local/lib/python3.9/site-packages/kivy/clock.py", line 733, in tick
self.post_idle(ts, self.idle())
File "/usr/local/lib/python3.9/site-packages/kivy/clock.py", line 776, in post_idle
self._process_events()
File "_clock.pyx", line 616, in kivy._clock.CyClockBase._process_events
File "_clock.pyx", line 649, in kivy._clock.CyClockBase._process_events
File "_clock.pyx", line 645, in kivy._clock.CyClockBase._process_events
File "_clock.pyx", line 218, in kivy._clock.ClockEvent.tick
File "/Users/mrsmitix/Desktop/KivyMD_Project_Creator/libs/uix/baseclass/get_details_screen.py", line 225, in _open_file_chooser
filechooser.choose_dir(on_selection=self.on_path_selection)
File "/usr/local/lib/python3.9/site-packages/plyer/facades/filechooser.py", line 65, in choose_dir
return self._file_selection_dialog(mode="dir", *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/plyer/facades/filechooser.py", line 70, in _file_selection_dialog
raise NotImplementedError()
NotImplementedError
Screenshots
Application crashed, no screenshot
Versions
Latest at the moment create issue

OS: MacOS Mojave 10.14.6
Python: 3.9.1
Kivy: 2.0.0
KivyMD: 0.104.2.dev0

@MrSmitix This bug is due to the plyer module, to create your project without any crashes, just copy the folder path from the explorer and paste it in the Path to Project input.


Cache Emulate_IsConfigured result

The check is used very often, so this caching reduces necessary
allocations.
(tested with proxy emulated smartcard logon against windows server 2019:

before ~180000 allocations with heaptrack
after ~20000)

@hardening this might explain some lag for FreeRDP, winpr_HexLogDump (and therefore winpr_HexDump) did always allocate/format a log message even if it was discarded.


feat(qr_server): add cloud function to return qr code

⬇ Generated builds by Codemagic for commit 12cc88ecb1400db05326e59af02cec471a6fb294 ⬇
This is a custom message.

iOS
Android
macOS

  Download link
  Download link
  Download link


Enable eslint rule no-useless-escape

Follow-up to #54693.
This actually caught a small number of oopsies where we wrote \r\p but meant \r\np

Sending it was slightly better; at least I had a quick fix but no --fix because there are two quick fixes, the "preserve behavior" button or the "actually I meant \\p" button.


[Snyk] Security upgrade cryptography from 3.2.1 to 3.3.2

Snyk has created this PR to fix one or more vulnerable packages in the `pip` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

requirements/base.txt

⚠ Warning
python3-openid 3.2.0 has requirement defusedxml<=0.4.1, but you have defusedxml 0.6.0.
marshmallow-enum 1.5.1 requires marshmallow, which is not installed.
importlib-metadata 2.1.1 requires zipp, which is not installed.
croniter 0.3.36 requires natsort, which is not installed.

Vulnerabilities that will be fixed
By pinning:

Severity
Priority Score (*)
Issue
Upgrade
Breaking Change
Exploit Maturity

581/1000  Why? Recently disclosed, Has a fix available, CVSS 5.9
Cryptographic Issues SNYK-PYTHON-CRYPTOGRAPHY-1070544
cryptography:  3.2.1 -> 3.3.2
No
No Known Exploit

(*) Note that the real score may have changed since the PR was raised.
Some vulnerabilities couldn't be fully fixed and so Snyk will still find them when the project is tested again. This may be because the vulnerability existed within more than one direct dependency, but not all of the effected dependencies could be upgraded.
Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Codecov Report

Merging #86 (bbd8dbf) into master (022d18d) will increase coverage by 10.29%.
The diff coverage is 65.27%.

@@             Coverage Diff             @@
##           master      #86       +/-   ##
===========================================
+ Coverage   38.07%   48.36%   +10.29%
===========================================
  Files         478      488       +10
  Lines       17251    17301       +50
  Branches     4458     4481       +23
===========================================
+ Hits         6568     8368     +1800
+ Misses      10683     8933     -1750

Flag
Coverage Δ

cypress
48.36% <65.27%> (+10.29%)
:arrow_up:

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

Impacted Files
Coverage Δ

...et-frontend/src/dashboard/actions/nativeFilters.ts
84.21% <ø> (+52.63%)
:arrow_up:

...tend/src/dashboard/components/DashboardBuilder.jsx
85.89% <ø> (+15.38%)
:arrow_up:

...src/dashboard/components/FiltersBadge/selectors.ts
90.00% <ø> (+27.50%)
:arrow_up:

...ponents/nativeFilters/FilterBar/CascadePopover.tsx
96.66% <ø> (ø)

...d/components/nativeFilters/FilterBar/FilterBar.tsx
95.38% <ø> (ø)

...ativeFilters/FilterBar/FilterConfigurationLink.tsx
100.00% <ø> (ø)

...ters/FilterConfigModal/CancelConfirmationAlert.tsx
43.75% <ø> (ø)

...s/nativeFilters/FilterConfigModal/ColumnSelect.tsx
72.41% <ø> (ø)

...tiveFilters/FilterConfigModal/FilterConfigForm.tsx
77.35% <ø> (ø)

...iveFilters/FilterConfigModal/FilterConfigModal.tsx
79.00% <ø> (ø)

... and 181 more

Continue to review full report at Codecov.

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


(S) Users upsert user endpoint

Implement skeleton of users upsert route for later integration into Google OAuth login.

Closing this, implementing these changes along with the finished back-end authentication in #31.


Update variables.md

use word expressions instead of variables

@juliakm
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@gusega Can you give more context to why you'd like to make this change? I'm concerned it will be confusing for customers.


Thinktecture.IdentityModel.Owin.ScopeValidation returns 403 Forbidden insufficient_scope for Token Expiration and Audience Validation failure

public void ConfigureAuth(IAppBuilder app)
        {
            app.UseOAuthBearerAuthentication(new OAuthBearerAuthenticationOptions
            {
                AccessTokenFormat = new JwtFormat(new TokenValidationParameters
                {
                    ValidateAudience = true,
                    ValidAudience = audience,

                    ValidateIssuer = true,
                    ValidIssuer = issuer
                },

                new OpenIdConnectCachingSecurityTokenProvider(issuer + "/.well-known/oauth-authorization-server")
                )
            });

            app.RequireScopes(new Thinktecture.IdentityModel.Owin.ScopeValidation.ScopeValidationOptions
            {
                ScopeClaimType = "http://schemas.microsoft.com/identity/claims/scope",
                AllowAnonymousAccess = false,
                Scopes = new string[] { apiResourceId }
            });
        }

If I INCLUDE the app.RequireScopes() check and I run the following Tests I get the following errors:

Set Audience to an incorrect value
403 Forbidden
WWW-Authenticate: Bearer error="insufficient_scope"
Use a JWT token that has expired
403 Forbidden
WWW-Authenticate: Bearer error="insufficient_scope"

If I REMOVE the app.RequireScopes() check and I run the following Tests I get the following errors:

Set Audience to an incorrect value
401 Unauthorized
{"message":"Authorization has been denied for this request."}
Use a JWT token that has expired
401 Unauthorized
{"message":"Authorization has been denied for this request."}

It seems that app.RequireScopes() is masking the above JWT validation errors.
These validation errors should be returning 401 Unauthorized when using app.RequireScopes().
Am I missing something/doing something wrong?

feel free to fix it. I don't maintain this library anymore.

When ScopeValidationOptions.AllowAnonymousAccess is set to "true" there are no issues if the user is NOT authenticated.
When ScopeValidationOptions.AllowAnonymousAccess is set to "false" there is an issue if the user is NOT authenticated due to token expiration or Audience is not valid. Currently app.RequireScopes()  will return 403 Forbidden WWW-Authenticate: Bearer error="insufficient_scope". One would expect that it would have returned 401 Unauthorized {"message":"Authorization has been denied for this request."}. This is the response you would get if you were not using app.RequireScopes() and would be returned by the [Authorize] attribute.
To correct this change the ScopeValidationMiddleware Invoke() method to the following:
        public async Task Invoke(IDictionary<string, object> env)
        {
            var context = new OwinContext(env);

            if (_options.AllowAnonymousAccess == false)
            {
                var principal = context.Authentication.User;
                if (principal == null || principal.Identity == null || !principal.Identity.IsAuthenticated)
                {
                    context.Response.StatusCode = 401;
                    context.Response.ContentType = "application/json";
                    context.Response.Write("{\"message\":\"Authorization has been denied for this request.\"}");

                    return;
                }
            }

            if (AccessAllowed(context))
            {
                await _next(env);
            }
            else
            {
                context.Response.StatusCode = 403;
                context.Response.Headers.Add("WWW-Authenticate", new[] { "Bearer error=\"insufficient_scope\"" });

                return;
            }
        }

I would further suggest the following:
Ideally the concept of AllowAnonymousAccess should be removed from ScopeValidationOptions and
only if the User is Authenticated should the RequireScopes Filter be applied. AllowAnonymousAccess
should be handled by the attributes  [Authorize] and [AllowAnonymous].
I am interested to hear any contrary opinions.
THANKS!


requests.exceptions.ConnectionError: ('Connection Aborted', Error(32, 'Broken Pipe')

This looks like a duplicate of #292, but since I am running into the same problem I thought I'd provide some more information (and an actual stacktrace).
I installed everything according to the documentation (using method 3: Manual installation). I decided to use Google's tools for both STT and TTS. I generated a public API key for it.
Now when I try to run jasper.py manually (not on boot), it prints the following stacktrace after around 10s: http://hastebin.com/ulohonuhit.mel
The row "No disturbance detected" on row 16 is sometimes not there and sometimes it's replaced by
"CRITICAL:client.stt:Request failed with http status 403
WARNING:client.stt:Status 403 is probably caused by an invalid Google API key."
The traceback afterwards is always the same though, no matter the messsage before that.

I tried doing it with the --debug flag and got the following stack trace: http://hastebin.com/idosarafup.vhdl
My profile.yaml file can be seen (with some secret stuff removed) here: http://hastebin.com/umukeguxap.sm

I get the same problem when using google STT too, more specificly is use a server api key. But i get the same error.

Looks like you have an unstable network connection. But this might also be an upstream bug in python-requests (possibly https://github.com/kennethreitz/requests/issues/2422).
Can you rule out that your network connection is the cause of the problem?

I'm logged into my pi through ssh, and that seems to work properly. I don't know the best way to rule out my network connection, but pinging a public site like google.com works properly with no packet loss and good latency.

Hva anyone any tips to solve this problem?


Alternative to build-essentials for windwos

Currently the python client does not work for me it just hangs on attempting to parse a file.  I realize it maybe because I haven't installed the required dependencies:
"Dependencies
You also will need a curl cli tool to dowload libuast, and a g++ for building libuast Python bindings. The command for Debian and derived distributions would be:
sudo apt install curl build-essential"
Is there a windows alternative for this?
Just as an FYI I get the following in the docker server log
time="2020-01-03T11:22:58.3367974Z" level=info msg="python-driver version: v2.10.3 (build: 2019-10-25T13:40:25Z)" id=01dxnj9snfwpjbr0yq8v7g0t0t language=python
time="2020-01-03T11:22:58.3413548Z" level=info msg="server listening in /tmp/rpc.sock (unix)" id=01dxnj9snfwpjbr0yq8v7g0t0t language=python
time="2020-01-03T11:22:59.2967131Z" level=info msg="new driver instance started bblfsh/python-driver:latest (01dxnj9snfwpjbr0yq8v7g0t0t)"
time="2020-01-03T11:22:59.3601263Z" level=info msg="request processed content 913 bytes" elapsed=1.3212179s filename=ast.py githash=5ca83c1f3e6f816ab3df6e5e4452fd8c4f85e6e7 language=python sha1=a011fd51d314e1e4e4a2fa3cc771a432e21760b1

I tried installing https://nuwen.net/mingw.html but still no error, the command just hangs with no output.

Have you installed python driver on bblfsh server?
Is (bblfshd) running locally or inside a docker container?

Hey Kuba,
I have the bblfshd running in a docker container.
And these are my drivers
PS C:\Users\james> docker exec -it bblfshd bblfshctl driver list
+------------+------------------------------------------+---------+--------+----------+----+--------+
|  LANGUAGE  |                  IMAGE                   | VERSION | STATUS | CREATED  | GO | NATIVE |
+------------+------------------------------------------+---------+--------+----------+----+--------+
| python     | docker://bblfsh/python-driver:latest     | v2.10.3 | beta   | 2 months |    |        |
| cpp        | docker://bblfsh/cpp-driver:latest        | v1.5.0  | beta   | 3 months |    |        |
| java       | docker://bblfsh/java-driver:latest       | v2.7.5  | beta   | 2 months |    |        |
| javascript | docker://bblfsh/javascript-driver:latest | v2.10.2 | beta   | 2 months |    |        |
| bash       | docker://bblfsh/bash-driver:latest       | v2.7.2  | beta   | 2 months |    |        |
| ruby       | docker://bblfsh/ruby-driver:latest       | v2.9.6  | beta   | 2 months |    |        |
| go         | docker://bblfsh/go-driver:latest         | v2.7.3  | beta   | 2 months |    |        |
| csharp     | docker://bblfsh/csharp-driver:latest     | v1.7.1  | beta   | 2 months |    |        |
| php        | docker://bblfsh/php-driver:latest        | v2.8.3  | beta   | 2 months |    |        |
+------------+------------------------------------------+---------+--------+----------+----+--------+
Response time 5.6423ms

ok, could you give me your python file, so I'll try to reproduce it?

Sure, although it happens with every file that I've tried, so I think it is the windows setup.
ast.py
import bblfsh

client = bblfsh.BblfshClient("localhost:9432")
print("parsing")
ctx = client.parse("ast.py")
print("printing ctx")
print(ctx)

I managed to get everything working with ubuntu, I was wondering is it possible to query on a line number?  And is it possible to go from a node up to the parent node?  Or can you only iterate like -
ast = ctx.root it = ast.iterate(bblfsh.TreeOrder.POSITION_ORDER) for node in it:     print(node)

Ohh, ok - in my opinion it can't work well on windows (where bblfshd internally creates subcontainers with communicates over grpc on top of std. IO).
Regarding query -you can filter with xpath whatever you want, e.g. next(ctx.filter("boolean(//*[@startOffset or @endOffset])"))
Every position is a tuple (Type, Col, Line, Offset), so in theory it should be doable.


Grouped code logic together in sql.py

Coverage increased (+0.2%) to 85.302% when pulling 775c16f9b2bc3a29089b16ea6f08d4a50c7e953d on gabrieldemarmiesse:removing_duplicate_in_sql into 37e6fc3bdf4ca7dfc72735742bd90044ef697057 on IDSIA:master.

Dude, you're on a roll! :metal:


Add spread syntax for unpacking an array into a variadic function argument

EdgeQL currently lacks syntax to convert an array into a variadic number of function arguments, which makes the latter unusable in cases where the argument count is not known at the time of writing the query.
Options for the syntax I can think of are:

foo(...arg_array) (JavaScript style)
foo(arg_array...) (Go style)
foo(*arg_array) (Python style)

It might also be useful to extend this syntax to set literals as sugar for array_unpack: {arg_array...}.

@elprans hi, can I work on this issue?


agate: 2.5.3 -> 3.0.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/mbrubeck/agate/releases.
meta.description for agate is: "Very simple server for the Gemini hypertext protocol"
meta.homepage for agate is: "https://proxy.vulpes.one/gemini/qwertqwefsday.eu/agate.gmi"
meta.changelog for agate is: "https://proxy.vulpes.one/gemini/qwertqwefsday.eu/agate.gmi"
Updates performed

Rust version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

/nix/store/76gw2wmsf1vg9ck4k2vi8j5vds7a7g63-agate-3.0.0/bin/agate passed the binary check.

1 of 1 passed binary check by having a zero exit code.

1 of 1 passed binary check by having the new version present in output.

found 3.0.0 with grep in /nix/store/76gw2wmsf1vg9ck4k2vi8j5vds7a7g63-agate-3.0.0

found 3.0.0 in filename of file in /nix/store/76gw2wmsf1vg9ck4k2vi8j5vds7a7g63-agate-3.0.0

directory tree listing: https://gist.github.com/ad8e6629c2c5de225ac90b0f4271fa19

du listing: https://gist.github.com/60c8f345f83c8c945ecd4ba86b3fbfce

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
1 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
agate

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/76gw2wmsf1vg9ck4k2vi8j5vds7a7g63-agate-3.0.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A agate https://github.com/r-ryantm/nixpkgs/archive/e157c846ce22bed9daf4b3ce6a35794f344a6053.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/76gw2wmsf1vg9ck4k2vi8j5vds7a7g63-agate-3.0.0
ls -la /nix/store/76gw2wmsf1vg9ck4k2vi8j5vds7a7g63-agate-3.0.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

agate

Maintainer pings
cc @06kellyjac for testing.

Result of nixpkgs-review pr 117757 run on x86_64-linux 1

1 package failed to build:

agate

Result of nixpkgs-review pr 117757 run on x86_64-linux 1

1 package failed to build:

agate

nixpkgs-review is failing but gh pr checkout 117757 and nix-build -A agate works fine.
I think I'm behind the latest release of nixpkgs-review

nixpkgs-review is failing but gh pr checkout 117757 and nix-build -A agate works fine.
I think I'm behind the latest release of nixpkgs-review

works for me.


Add Godot Engine to the list of known usages

Thank you for this pull request. I was just about to introduce the same change :)


connect failed

os: macOS
ios ssh to mac: test with Termius work fine

adb: test on mac work fine

ios: connect error

Maybe something wrong with the way I sign the app, can you add me to the test group,
UDID: 00008101-0013295921A0001E

Sorry, the first time connect to local network after newly installed requires user allow Local Network Permission, I havn't deal with this case now, you can try to connect again after allow Local Network Permission.

Sorry, the first time connect to local network after newly installed requires user to allow Local Network Permission, I havn't deal with this case now, you can try to connect again after allow Local Network Permission.

I have already enable the allow Local Network Permission and restart the app several times, but still with the error.

Sorry, the first time connect to local network after newly installed requires user to allow Local Network Permission, I havn't deal with this case now, you can try to connect again after allow Local Network Permission.

I have already enable the allow Local Network Permission and restart the app several times, but still with the error.

Can you join my telegram group, send me the detail infomatin. https://t.me/joinchat/I_HBlFpB27RkZTRl

Local Network Permission issue now adapted, please check the newest release.


nixos/scrutiny: cleanup; point collector at web app port by default

Description of changes

remove redundant lib.mdDoc
inherit lib bindings
clean up mkEnableOption definitions
default collector api endpoint port to point at web app port

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

I just tried to build the tests for this, and got a failure:
nix build -L .#nixosTests.scrutiny
error:
       … while evaluating the attribute 'drvPath'

         at /nix/store/gcna7snych2qjfx0mjy5xq5cq1isly3p-source/lib/customisation.nix:268:7:

          267|     in commonAttrs // {
          268|       drvPath = assert condition; drv.drvPath;
             |       ^
          269|       outPath = assert condition; drv.outPath;

       … while calling the 'derivationStrict' builtin

         at /builtin/derivation.nix:9:12: (source not available)

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: cannot coerce an integer to a string

@ofborg test scrutiny

Made the change locally but not in the PR, whoops

Result of nixpkgs-review pr 293413 run on x86_64-linux 1

2 packages blacklisted:

nixos-install-tools
tests.nixos-functions.nixos-test


integration: fuse-agent:/objects/{object_id} not working yet

The submit seems to work:

But fuse-agent doesn't seem to be able to get the provider metadata:

Should look like this:

This was a bug in fuse-agent, fixed.


Patch automerged anndata 0.9.0 that dropped support for Python 3.7

Checklist

[x] Ran python show_diff.py and posted the output as part of the PR.
[x] Modifications won't affect packages built in the future.

noarch::anndata-0.9.0-pyhd8ed1ab_0.conda
-    "python >=3.6",
+    "python >=3.8",

Sequence of events:

anndata 0.9.0 dropped support for Python 3.7 https://github.com/scverse/anndata/pull/820
anndata 0.9.0 PR was automerged without updating the Python pin https://github.com/conda-forge/anndata-feedstock/pull/27
The new anndata 0.9.0 broke Python 3.7 conda envs https://github.com/TileDB-Inc/tiledbsoma-feedstock/pull/11#issuecomment-1505612493
I bumped the Python pin for version 0.9.0 build number 1 https://github.com/conda-forge/anndata-feedstock/pull/28
Modeled this PR off of PR #392

Ready for review

@conda-forge/Core Ready for review

Also, I rebased and re-ran show_diff.py
$ python recipe/show_diff.py
Downloading: https://conda.anaconda.org/conda-forge/noarch/repodata_from_packages.json.bz2
Downloading: https://conda.anaconda.org/conda-forge/noarch/repodata.json.bz2
noarch::anndata-0.9.0-pyhd8ed1ab_0.conda
-    "python >=3.6",
+    "python >=3.8",


Add ukrainian translation

Description
This change adds ukrainian translation (uk_UA locale).
Related Issue
This PR fixes or closes issue: fixes #1334
Motivation and Context
For ukrainian speakers
How Has This Been Tested
Not tested at all
Types of changes

[ ] 🐛 Bug fix (non-breaking change which fixes an issue)
[ ] 🚀 New feature (non-breaking change which adds functionality)
[x] 🌎 Translation (addition or update a translation)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)

Checklist

[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have tested the change locally.
[ ] I followed the steps if I add a new language .

Дякую, пане

ДЯКУЮ 🇺🇦


Error parsing attribute "@@index": The Gin index field type Uuid has no default operator class.

Bug description
When I set a GIN index to a field of type array of UUIDs it throws error. However, as far as I can tell, the GIN operator for UUID has been added in postgres v10.
How to reproduce
This is the schema that reproduces the bug:
model Test {
  id                  String              @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
  arrId               String[]            @db.Uuid
  @@index([arrId], map: "idx_Gin", type: Gin)
}

When hover on @@index it says: Error parsing attribute "@@index": The Gin index field type 'Uuid' has no default operator class.
Expected behavior
Should index the field correctly.
Environment & setup

OS: Debian
Database: PostgreSQL
Node.js version:v16.15.0

Prisma Version
prisma                  : 4.1.1
@prisma/client          : 4.1.1
Current platform        : debian-openssl-1.1.x
Query Engine (Node-API) : libquery-engine 8d8414deb360336e4698a65aa45a1fbaf1ce13d8 (at<EMAIL_ADDRESS>Migration Engine        : migration-engine-cli 8d8414deb360336e4698a65aa45a1fbaf1ce13d8 (at<EMAIL_ADDRESS>Introspection Engine    : introspection-core 8d8414deb360336e4698a65aa45a1fbaf1ce13d8 (at<EMAIL_ADDRESS>Format Binary           : prisma-fmt 8d8414deb360336e4698a65aa45a1fbaf1ce13d8 (at<EMAIL_ADDRESS>Default Engines Hash    : 8d8414deb360336e4698a65aa45a1fbaf1ce13d8
Studio                  : 0.469.0

Getting this when running prisma generate.
Error parsing attribute "@@index": The Gin index field type VarChar has no default operator class.

It's a validation issue. A workaround until we fix the validation is to explicitly to define the operator class:
datasource db {
  provider = "postgres"
  url      = env("DATABASE_URL")
}

model Test {
  id    String   @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
  arrId String[] @db.Uuid

  @@index([arrId(ops: ArrayOps)], map: "idx_Gin", type: Gin)
}

For the dev fixing this: The validation passes if you remove the native type from the field. We should allow the index without explicit ops definition here even if the native type is defined.

I'm having the same issue with
@db.VarChar(255)

How do I set a default for that?

Please open a new discussion for this @blazestudios23. Thanks.

@blazestudios23
I found in https://github.com/prisma/prisma/issues/17518 a workaround
@@index([reference(ops: raw("gist_trgm_ops"))], type: Gist)


Simplify the description of functions.

Just simplified the description of "functions". No need to thank me.
I definitely did not use any popular language augmentation tool resembling an intricate neural network, adept at understanding human language intricacies.

I think it's too simple, you might wanna add a bit more.

@Symmettry Apologies for the oversimplifications.

One day, someone might just very well make an actual project using this 😢


how to parse inline function implementation header?

Hello, I wonder how clangd can parse inline files. for example, these is a header foo.h, and its inline functions are implemented in foo_inl.h which is included in the end line of foo.h. what's the cleanest way to do it? instead of including foo.h in foo_inl.h
Thank you!

This is #45


Iterating result is slow

I have a query with 2000 rows, iterating result takes ~10ms when compiled with --release and ~30ms when not optimized
let result = conn.query(sql)?;
let db_start_time = Instant::now();
for mut row_res in result {
  // nothing
}
println!("DB aggregate complete: {} ms", db_start_time.elapsed().as_millis());

Row look like this:
Ok(
    Row {
        id: Bytes(
            "15671236..",
        ),
        txn_ref: Bytes(
            "a32c8457..",
        ),
        status: Bytes(
            "VERIFIED",
        ),
        amount: Bytes(
            "24000.00",
        ),
        already_verified: Null,
    },
)

Is it expected?

Hi. What do you compare the results to?

I meant that to state that something is "slow" you must compare it with something that's "fast".
What is it in your case?
Please note that in case of this library all rows is "in the wire" during iteration. I.e. if you try to compare with something like PHP, than you need to consider the following rust code (it'll, obviously, show better results):
let result = conn.query(sql)?;
let rows = result.collect::<Vec<Value>>();
let db_start_time = Instant::now();
for mut row_res in rows {
  // nothing
}
println!("DB aggregate complete: {} ms", db_start_time.elapsed().as_millis());

If you want to compare this library performance with performance of some other library, than i suggest you to compare the whole query at first:
let db_start_time = Instant::now();
let result = conn.query(sql)?;
for mut row_res in result {
  // nothing
}
println!("DB aggregate complete: {} ms", db_start_time.elapsed().as_millis());

Also I'm quite interested in this library performance, so please consider to share your results.

Right, I should compare with other libs and languages. Just assumed that iterating over result in a memory must be very fast
Will try to make some benchmarks later

@Paxa, closed by accident.

I made some benchmarks and got similar results for nodejs, ruby and rust-mysql-simple - 3-8ms for simple query with 5 columns and 2000 rows
libmysqlclient has streaming mode, do you mean that this lib start to iterates results before query is complete?

libmysqlclient has streaming mode, do you mean that this lib start to iterates results before query is complete?

Behavior of rust-mysql-simple is similar to a streaming behavior described here.

Btw, could you please share your benchmarks code?

Hi. Closing due to inactivity. Feel free to reopen.


Non-registered packages

I was playing around with an example ploting a dependency graph between packages,
http://juliaplots.org/GraphMakie.jl/stable/generated/depgraph/
but I struggled to bend PkgDeps to my will since it was working with a list of registries, and the package structure I wanted to analyse was completely unregistered, existing only locally.
Is there any way at the moment to analyse code bases that are not registered in a registry? Other than setting up a mock registry to this purpose?

PkgDeps.jl right now is totally registry based, so unfortunately I don't think it can help much. Having a registry is pretty convenient for this since it stores all the dependency relationships in one place.


Master to Live

Docs Build status updates of commit 322bc88:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/device-portal-api-reference.md
:white_check_mark:Succeeded
View

mixed-reality-docs/images/windows-device-portal-mixed-reality-capture-page-1000px.png
:white_check_mark:Succeeded
View

mixed-reality-docs/mixed-reality-capture-for-developers.md
:white_check_mark:Succeeded
View

mixed-reality-docs/unreal-hololens-camera.md
:white_check_mark:Succeeded
View

mixed-reality-docs/unreal-voice-input.md
:white_check_mark:Succeeded
View

mixed-reality-docs/using-the-windows-device-portal.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


How to download Nuscenes dataset easily ?

Hi,
I want to download Nuscence dataset,
but I found that the file on the official site(https://www.nuscenes.org/download) was too large.
If there's anyone who knows how to download this easily, please let me know!
Best,

Hi, what are you downloading exactly on the page? Nuscenes is already divided into chunks to download on the page. You could also download the mini subset of the dataset if you just want to do some manipulations with the data and not train a model.

Thx for reply. :)
Im trying to download Full dataset (v1.0) Trainval because i want to make fully trained model.
btw, I couldn't find a separate link to download Full dataset (v1.0) (including train/val NOT mini dataset).
It just exists together in a formal download official link(https://www.nuscenes.org/download) that collects many kinds of other data.
If there are separate links to download Full dataset (v1.0) Trainval , I think I can download it using wget.
Let me know where this is!

i want download this file

Isn't it possible to download the individual file blobs and then remove the data modalities (such as images) that you don't want ?

um.. it might be possible.
btw individual file's memory is tooo big, so i wanna know how to download it easier.
do you know the Linux command that efficiently downloads files on all pages?

um.. it might be possible. btw individual file's memory is tooo big, so i wanna know how to download it easier.
do you know the Linux command that efficiently downloads files on all pages?

Did you figure out how to download the full v1.0 dataset using the "wget" Linux command?

I'm also looking for the answer to this

@dthuremella  you can use "wget" command

I just wrote a Python script that makes it easier to download the current dataset. You can give it a try here: https://github.com/li-xl/nuscenes-download.

i want to download the training dataset of nuScenes in colab.
will this work?
!wget https://www.nuscenes.org/data/v1.0-trainval.tgz```
!tar -xzf v1.0-trainval.tgz

is above commands worked


Third party S3 services support + #61

This pull request should finalize the work to seamlessly support 3rd party S3 services like minio. It brings three main improvements, which I kept together as they are small enough and they complement each other.

All information to build a file system (bucket, endpoint, credentials, etc.) are now encapsulated in a S3NioConfiguration object that is passed to the constructor; this simplifies quite a bit the constructors and the need of accessors. This should also close #61

Deprecation of constructors taking a URI: in the NIO world, the FileSystem object is usually create indirectly, by the provider or even more subtly by using Files or Path; it is therefore cleaner the provider digests the URIs creating a corresponding configuration object that can then be passed to S3FileSystem's constructor. This brings also the valuable advantage of making the file S3FileSystem completely independent by the URI used to create and configure it.

Last but most importantly, it introduces a new file system provider, which manages the s3x:// URI schema as per the following URI pattern (as discussed earlier in other tickets and PRs):
s3x://[key:secret#@]hostename[:port]/bucket/key

Thanks to bullet 1 above, it handed up to be quite clean, as the new S3XFileSystemProvider extends S3FileSystemProvider with very little code, while S3FileSystem is i completely in common between the two providers.
@markjschreiber , let me know what you think
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

fixed, thanks!

@markjschreiber do we have the new version on central?
Also, I have created a couple of minor "cleanup" PRs. Would you mind review and merge them as well?


Added : Contact page with form validation

@smaranjitghose

@sameersrivastava13:

The theme should be consistent throughout the website, but this form doesn't conform to the one we already have
The color scheme requires a lot of improvement @anushbhatia will give you more elaborate pointers on that
The Nav Bar and Footer should be present in all the pages including the contact page


Netlify checks

Mixed content ✔
Metadata/SEO tests

Some metadata guidance: https://www.npmjs.com/package/@elderjs/plugin-seo-check


initial commit implementing isIntegers

Utilizing ECMAScript 2015 Number.isInteger to validate all parameters are integers

Pull Request Test Coverage Report for Build 123

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

Totals

Change from base Build 122:
0.0%

Covered Lines:
866

Relevant Lines:
866

💛  - Coveralls

@tdnelson2 good call. Looks like I missed that when I updated file names. Thanks for the catch.


Remove generic cruft

Smf being generic over TrackRepr is a feature for advanced users that gets in the way of the documentation for basic users (which should be the large majority if the 80/20 rule is worth anything).
Begginers shouldn't have to pay for features they don't use.
Ideally there should be separate types like Smf like SmfBytemap.
Since deferred parsing already avoids most allocations, why not do it right and avoid all allocations?
Perhaps a standalone function that returns a (Header, TrackIter) tuple, with TrackIter being an iterator yielding actual tracks (not like the current TrackIter that yields events).

I noticed it's kind of a pain to push midi events to tracks when writing a smf file, because MetaMessage and SysEx only take references so all the message data has to be constructed beforehand and stored separately..
(In the loop that pushes the midi msgs it's not possible to push the data (that should be borrowed) to a storage Vec and borrow from that, because rustc gives an error because push borrows the whole Vec mutably so previously elements can't also be borrowed immutably.)
It would be more convenient if they could take owned data as well, without sacrificing read performance.
(Unfortunately, even Cow has some overhead due to the match on every access.)

In 0.5 both problems were solved.
The ergonomics issue could have been solved using arenas (see typed-arena).
In order to save some downloads and reduce friction, a simple arena is now included as midly::Arena.
This way both performance and ergonomics can be achieved :)


Update README.md

Update Mars Protocol
Context:
https://twitter.com/mars_protocol/status/1684216754308894721

cc bump @ethanfrey @uint

@costa2400 what's the problem with this change?

@omniwired accidentally closed but I reopened.


Implement Flutter Hooks

Motivation
The flutter_hooks with the migration to Riverpod (#33) will help to manage the lifecicle of the widgets, mainly of the pages widgets, that for now, is hard to manage the shortcuts for this pages.

Done in #44
The implementation in that PR will be considered complete, besides exists some TODOs to resolve, but no one release will be create until resolve all them.


Required parameter 'orderid' is missing

Just pulled a fresh version, thrown my webapikey and everything in the correct places and tried to test it all out, however seem to be getting error code of "400, Required parameter 'orderid' is missing" even though looking through the code from the git, it includes in perfectly in steamrequest.ts on line 88. Even logging the data even states orderid is included so getting very confused as to why steams Web API is returning this?
Sep 13 22:19:46 ip-172-31-39-27 web: Server <IP_ADDRESS> started at port:8080
Sep 13 22:22:47 ip-172-31-39-27 web: https://partner.steam-api.com/ISteamMicroTxnSandbox/InitTxn/v3/
Sep 13 22:22:47 ip-172-31-39-27 web: {
Sep 13 22:22:47 ip-172-31-39-27 web: key: 'IDWASHEREHIDEENFORTHISISSUE',
Sep 13 22:22:47 ip-172-31-39-27 web: orderid: '1000',
Sep 13 22:22:47 ip-172-31-39-27 web: steamid: 'IDWASHEREHIDEENFORTHISISSUE',
Sep 13 22:22:47 ip-172-31-39-27 web: appid: 'IDWASHEREHIDEENFORTHISISSUE',
Sep 13 22:22:47 ip-172-31-39-27 web: itemcount: 1,
Sep 13 22:22:47 ip-172-31-39-27 web: currency: 'GBP',
Sep 13 22:22:47 ip-172-31-39-27 web: language: 'en',
Sep 13 22:22:47 ip-172-31-39-27 web: usersession: 'client',
Sep 13 22:22:47 ip-172-31-39-27 web: 'itemid[0]': 'item_id_1',
Sep 13 22:22:47 ip-172-31-39-27 web: 'qty[0]': 1,
Sep 13 22:22:47 ip-172-31-39-27 web: 'amount[0]': '199GBP',
Sep 13 22:22:47 ip-172-31-39-27 web: 'description[0]': 'abcd',
Sep 13 22:22:47 ip-172-31-39-27 web: 'category[0]': 'gold'
Sep 13 22:22:47 ip-172-31-39-27 web: }
Sep 13 22:22:47 ip-172-31-39-27 web: error: [STEAM-API CALL][REQUEST][POST]: https://partner.steam-api.com/ISteamMicroTxnSandbox/InitTxn/v3/ {"payload":{"key":"IDWASHEREHIDEENFORTHISISSUE","orderid":"1000","steamid":"IDWASHEREHIDEENFORTHISISSUE","appid":"IDWASHEREHIDEENFORTHISISSUE","itemcount":1,"currency":"GBP","language":"en","usersession":"client","itemid[0]":"item_id_1","qty[0]":1,"amount[0]":"199GBP","description[0]":"abcd","category[0]":"gold"}}
Sep 13 22:22:48 ip-172-31-39-27 web: BODYBad RequestBad RequestRequired parameter 'orderid' is missing
I can clearly see your code is passing through the orderid so getting very confused

I've made some tests and I received Internal server error from steam. It seems tha they are updating something there, but I'll do more tests and get back to you

ahh interesting, cheers for letting me know

@Jimbologo I found an issue on the payload creation. Now instead of sending a json, a formData is been sending to prevent 'orderId' missing parameter


gluer integration

A complete integration of the gluer crate in the frontend, backend and build config. Would be nice of you to look into that

Shouldn't api.ts be excluded from the repo as it is generated now?

I mean, when you think so. The only thing is that then we have to update the README containing a note about it. Like "first run the rust code to make sure that the api is generated" or so...


feat: Update recursion constraint for Honk

Closes https://github.com/AztecProtocol/barretenberg/issues/933.
Please read contributing guidelines and remove this line.

Replaced by https://github.com/AztecProtocol/aztec-packages/pull/6545