Add support for laravel 11

Looks like the tests are failing

@rubenvanassche looks like inertiajs/inertia-laravel not supported yet with Laravel 11

@rubenvanassche I hope this change will fixed the issue

Looks like this PR depends on inertia-laravel package. Will prepare a PR for that one as well today

Looks like laravel-typescript-transformer is still causing problems, do you have some time to PR Laravel 11 over therre?

Looks like laravel-typescript-transformer is still causing problems, do you have some time to PR Laravel 11 over therre?

On it 🫡

@rubenvanassche laravel-typescript-transformer depends on this PR


More work on the RAC transition

The app compiles :tada: Now I'm running a smoke test to verify things work as expected before addressing the unit tests.

Cool yeah, looks :+1:

@orta I've made initial headway on converting the unit tests – this is a pretty sizeable chunk if you want to review now.

Alright, nothing in there surprises me, the mapReplace stuff isn't a blocker :+1:


Hm9000

i got dmesg info as below:

Please provide an informative title and a detailed description of the problem you're experiencing.  Do you have a CF deployment that's failing?  What's the failure? What version of CF, stemcell, etc.  Or were you just exploring and were concerned about the "Tainted" string in the dmesg output?  If so, what is your particular concern?


Cannot reconnect. Please reload the window.

I installed the code-server with package code-server-3.4.1-amd64.rpm on centos 7.When I visit on browser ,it always show up
Cannot reconnect. Please reload the window   dialog a few seconds  .I don't known what to do . I need help .

and also show this on terminal:
(node:2785) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 exit listeners added to [ChildProcess]. Use emitter.setMaxListeners() to increase limit
(Use node --trace-warnings ... to show where the warning was created)
(node:2785) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ChildProcess]. Use emitter.setMaxListeners() to increase limit

Could you post the full output of code-server?

Keep reminding me to reload

When I reload a few times,this show up:
info  Using config file ~/.config/code-server/config.yaml
info  Using user-data-dir ~/.local/share/code-server
info  code-server 3.4.1 48f7c2724827e526eeaa6c2c151c520f48a61259
info  HTTP server listening on http://<IP_ADDRESS>:8090
info    - No authentication
info    - Not serving HTTPS
events.js:292
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at TCP.onStreamRead (internal/stream_base_commons.js:205:27)
Emitted 'error' event on Socket instance at:
at emitErrorNT (internal/streams/destroy.js:100:8)
at emitErrorCloseNT (internal/streams/destroy.js:68:3)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
errno: -104,
code: 'ECONNRESET',
syscall: 'read'
}
error VS Code exited unexpectedly with code 1

Hmmmm, that's definitely not good but I don't think it's enough to pinpoint the issue.
Could you run code-server with the --log debug flag to get further debugging information? Then post the code-server logs again after trying to access it. It would also help to check the VS Code logs. Those can be found at ~/.local/share/code-server/logs/[date].

Hi, I have the exact same error.
However I am using Freenas (freebsd 11.4 R2). So I am not sure it is the same problem.
Please let me know if I should raise a new ticket.
During installation with the script, two things where noticable:

the detected Freebsd version is different from the actual one.
Error, that is a unmet dependancy.

During running of the code-server, The following logging was vissible.
Used screenshot, because I had some trouble creating log files. Sorry about that.

The error in the webbrowser was visible during the last couple of lines of the last screenshot. (about T14:55:22).
Nog log files are present in the log folder.

@Bob2b hmm yeah this might be a different issue. I've seen this error before when the native Node modules don't seem to install quite properly. It might be caused by missing libraries although I'm not sure why the install would succeed if that was the case. But it might be worth checking the build requirements to make sure you have everything: https://github.com/Microsoft/vscode/wiki/How-to-Contribute#prerequisites
If you cd into the code-server directory (cd $(yarn global dir)/code-server) and rebuild the modules it might fix it (npm rebuild).

@code-asher Oke thank you for the suggestions. I will look in to that.

FYI:
Indeed. Some missing dependancies. This solved it for me.
https://github.com/cdr/code-server/issues/1826#issuecomment-651210655

Awesome, glad you sorted it out. I wonder if it would make sense for us to check for the required dependencies in the installation script.

You have got my vote 👍


Add new new metric: Comet

Added dependency
Added wiring for using it by default in a translation task
(We should discuss the above -- i.e. is it desired?)
Uses the same framework as SARI -- expects a doc_to_rawtext to be
implemented

TODOs

Test on a translation task. (Tentatively works, but I'm having memories issues on my laptop running the associated model or else some other problem is coming up. I will look into it further.)
Determine if we want to run it by default on all translation tasks (as is setup right now)

@rbawden, do you think we should use this as the default?

I'm not really sure. BLEU is still the most used metric by far I'd say, so we should include results for it and it might be wise to keep it as default (despite all the criticisms). I would tentatively say COMET could be a secondary metric, but it could be worth checking with some other people to see what the consensus is.

Update: I think that computing COMET after the pipeline has been run would be cleaner. I will return to this in a few days.


More Tinkers Integration

Nether Smeltry?

That could be something, but maybe you could start with adding weapon materials out of NetherStone?

Nether smeltery? Cool idea. 7/10, implement for better score.


SWAT 4 lighting issues

Please describe your issue as accurately as possible. If you run into a problem with a binary release, make sure to test with latest master as well.
Important: When reporting an issue with a specific game or application, such as crashes or rendering issues, please include log files and a D3D11/D3D9 Apitrace (see https://github.com/apitrace/apitrace) so that the issue can be reproduced.
In order to create a trace for D3D11/D3D10: Run wine apitrace.exe trace -a dxgi YOURGAME.exe.
In order to create a trace for D3D9: Follow https://github.com/Joshua-Ashton/d9vk/wiki/Making-a-Trace.
DO NOT use DXVK together with apitrace!
Software information
SWAT 4 (GOG)
System information

GPU: Nvidia GeForce GTX 960
Driver: 430.34.0
Wine version:  4.13 TKG
DXVK version: https://github.com/Joshua-Ashton/d9vk/commit/b25eaf65e7731d42263b78d091de672cdc791e05

Apitrace file(s)
https://drive.google.com/file/d/1g4kMfCHT7UrwSqDo-8MtOY0Xo84VgLSG/view?usp=sharing (Around 2 GB compressed, 6 GB uncompressed)
Log files

d3d9.log: Swat4_d3d9.log

d3d11.log: N/A

dxgi.log: Swat4_dxgi.log

Hello. SWAT 4 has some mild to moderate lighting issues, hopefully highlighted below.
Helmets, some weapons, and certain articles of clothing seem to be much darker than they should be:
D9VK:

Windows:

Also, the lighting feels just a little off:
D9VK:

Windows:

The worst of it seems to be the from the "Optiwand" viewfinder device.
D9VK:

Windows:

Thanks and sorry for the pictures and the massive trace. Also, fog might be involved, so it may be related to #289, and if so, sorry in advance.
EDIT: Changed trace to tar.xz.

Should be fixed by f475fed4069998a3f38f8795db3e1b48a8f06c5d, can you confirm?

With the current commit and apitrace, the viewfinder issue looks fixed, the lighting looks more or less fixed (the police headlights appear correctly), but the dark textures issue remains.

Can you check if you still encounter issues with latest master?

Right, I'll take a look.

Well, it looks fixed now.
Closing #293.


Users able to bypass LDAP/SAML if LDAP is enabled for an organization.

When LDAP and SAML are configured as authentication methods, a user is able to visit the /register link and have a registration email sent to them.  By clicking this link, they are able to login to the realm bypassing both LDAP and SAML authentications.

@droobah just to be clear, what's the precise situation?  If you have several authentication backends enabled, generally, one is able to authenticate using any of them.  My guess is you have EmailAuthBackend enabled as well, and the user is just using the signup flow using that backend.
Can you stop by chat.zulip.org and start a thread in #production help?  I think it'll be easier to figure out interactively there.

To add detail to this, with the following configured in settings.py:
AUTHENTICATION_BACKENDS = (     # 'zproject.backends.EmailAuthBackend',     # 'zproject.backends.GoogleAuthBackend',     # 'zproject.backends.GitHubAuthBackend',     # 'zproject.backends.AzureADAuthBackend',      'zproject.backends.SAMLAuthBackend',     # 'zproject.backends.ZulipLDAPAuthBackend',     # 'zproject.backends.ZulipRemoteUserBackend', )
(line breaks after commas if formatting is broken - preview shows no breaks)
It is possible for users to send invite emails / links to non-members from within Zulip.
(I know this is possible to disable in an upcoming patch, but this would also apply to existing links that might predate disabling of invites and perhaps other ways to generate these links might exist)
The links that are generated in this way bypass authentication backends and create a Zulip user directly. The user is then logged into Zulip immediately after their account is created.
Once their login session expires they are then required to authenticate with a configured method, but they could potentially just create more throwaway user account to keep accessing a server in a way that bypasses configured backend auth systems.

This is a tricky product issue.  The settings introduced last summer to better configure invitations are helpful, but structurally we probably want the "post invitation" signup flow to more exactly match the "no invitation" signup flow, in terms of allowed authentication methods.  But certainly we should at least adjust documentation around this topic, especially since the behavior for SAML differs from that for LDAP, which is documented:
You may also want to configure Zulip's settings for [inviting new
users](https://zulip.com/help/invite-new-users).  If LDAP is the
only enabled authentication method, the main use case for Zulip's
invitation feature is selecting the initial streams for invited users
(invited users will still need to use their LDAP password to create an
account).

@mateuszmandera FYI
(The concern about existing links isn't a product issue, since they expire after a week and one can, but could be worth documenting).


[Bug] time filter idx is expected to be a number

An 0 value was treated as an invalid filterIdx since its falsey, when any finite number should be a valid index.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

30 of 41 (73.17%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+7.6%) to 26.641%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

modules/core/src/animations/kepler-animation.js
5
16
31.25%

Totals

Change from base Build<PHONE_NUMBER>:
7.6%

Covered Lines:
217

Relevant Lines:
708

💛  - Coveralls


fix(website): sidebar style

before:

after:

@kovsu
Much love <3

@cschroeter ark's website has the same problem.

@kovsu
It's the same code 😳

Should I go to update it?


Infinite renders when using output of useQueries in useEffect dependency array

Describe the bug
When using the output of useQueries in the dependency array of a useEffect, the containing component will rerender infinitely.  This bug seems to have been introduced in v3.9.0 and exists in all later versions.
Please see the Codesandbox I created below and change the version of react-query from 3.8.3 to any later version.
To Reproduce
Steps to reproduce the behavior:

Go to https://codesandbox.io/s/wild-dust-p7swc?file=/src/QueryExample.js
Change the react-query version from v3.8.3 to v3.9.0 or greater to see the issue. (Warning, might freeze your browser due to infinite rerenders)

Expected behavior
Expect the results of v3.8.3 and lower, where the useEffect is only called once when needed.
Desktop (please complete the following information):

OS: MacOS
Browser: Chrome - Version 96.0.4664.55 (Official Build) (arm64)
Version: >v3.9.0

It was a tradeoff we had to do in 3.9.0. from https://github.com/tannerlinsley/react-query/pull/1775

Unfortunately I was not able to keep the referential integrity of the result object between renders because we do not know which optimistic result will eventually get committed.

What’s your use-case, because what you are in the example can be done without useEffect…
I think you can also memoize the input as per https://github.com/tannerlinsley/react-query/issues/2991, but results will still come in gradually from your api so the effect will get called multiple times..

Oh I see, thanks for the clarification.
This example  is closer to my real use-case. The sandbox's react-query version is set to v3.8.3 to prevent nuking your browser window haha
Basically I would like to create a separate hook that takes a dynamic array as an argument, which is used to generate multiple urls and fetch data from those urls.  Then the hook performs an expensive operation to reformat the data for consumption in a component.
I can't really put the expensive logic into the hook body because then it will get called every time the component rerenders.  Being able to put that expensive logic into a useEffect would prevent this issue.
Do you have any ideas for how to get around this?

I think what we would need to do is wrap the result creation in useMemo as well, because right now, you will get
I think it would just mean changing this line:
https://github.com/tannerlinsley/react-query/blob/693ae251104dd18cf2bb983760ecc5a27a8f8616/src/reactjs/useQueries.ts#L136
to:
  const result = React.useMemo(
    () => observer.getOptimisticResult(defaultedQueries),
    [observer, defaultedQueries]
  )

as observer is stable, and defaultedQueries depend on the query input, which you could also then memoize yourself with useMemo, like:
  const responses = useQueries(
    useMemo(
      () =>
        words.map((word) => ({
          queryKey: word,
          queryFn: () =>
            fetcher(`https://api.dictionaryapi.dev/api/v2/entries/en/${word}`)
        })),
      [words]
    )
  );

Do you want to PR that, ideally with a test that checks for referential stability when a re-render occurs that doesn't change any input?
until then, you might need to use-deep-compare-effect to get around the issue.
that being said, I still wouldn't do it in an effect + local state, but with a useMemo, which is made to memoize expensive computations:
  const definitions = useMemo(() => {
    const defs = [];
    responses.forEach((res) => {
      if (!res?.data) return;
      defs.push(res?.data[0]?.meanings[0]?.definitions[0].definition);
      // imagine other expensive data operations
    });
   return defs
  }, [responses]);

Unfortunately that fix does not seem to work.
I tried what you said by memoizing result in useQueries and memoizing the argument queries passed into the useQueries() call, and unfortunately this fix doesn't fully work.
It actually gives responses too much referential stability... responses doesn't get updated at all after the first return and gets stuck in a response.isLoading = true and response.data = undefined state.
Are there any other variables in useQueries that we can use to tell the useMemo to update as the query results as the response data populates?

yeah, sorry for the wrong direction. calculating the result depends on other factors as well, not just the options. If the fetch returns, we also need the new result. So this doesn't work.

use-deep-compare-effect should help me get around this issue for now though. Thanks for suggesting that!

👍

Thanks @TkDodo for working with me on this haha.
Is there really no way that we could add referential stability to the results, except when the response data is actually updated?  It seems like my use-case would be a fairly common one.

Is there really no way that we could add referential stability to the results, except when the response data is actually updated? It seems like my use-case would be a fairly common one.

the result is computed optimistically on every render so that we can give information ahead of time, so that we can e.g. go to loading state before the fetch has happened (in an effect). If we don't do that, it would lead to more re-renders with in-between states, so I don't think there is a way for now.
FYI, in v4, we will change the useQueries api to allow for top-level options:
useQueries({
  queries: [query1, query2, query3]
})

this will theoretically give us the option to allow for a top-level select or combine function that can run once all queries have fetched to do transformations. But its just an idea at the moment, nothing concrete yet.

https://github.com/tannerlinsley/react-query/issues/2923

closing because I don't think we can improve this for now, and we have a workaround.

What's the current status of this? I am running into the same issue with useEffect -> set state. Some times it works, some times it does not. I guess switching to useMemo will not make a difference? Actually I'd be fine with a few reruns, until all queries are fetched. Will there be a workaround in v4?

@carstenblt why do you need useEffect + setState? It's often an anti-pattern.

@TkDodo yes, so I learned. Hence my question if useMemo fixes this. I need to run code with all the combined queries.

at least useMemo wouldn't do infinite re-renders, but if you set it up wrongly, it's as if you hadn't used useMemo at all. This would be my first attempt: Just recompute an on every render, and optimize with useMemo when necessary.

const processedData = useMemo(
() => queryResults.map(processData),
[...queryResults.map((qr) => qr.data)],
);

I'd rather write like this
const processedData = useMemo(
  () => queryResults.map(processData),
  [queryResults.reduce((acc, cur) => acc + cur.dataUpdatedAt, 0)],
);

So, whenever a query is refetched or a new array of queries is fetched, the 'processData' will be re-processed again. Since the return value of 'reduce' is a 'scalar' type - in this case, it is a number type -, as long as the resulting number is the same, useMemo won't be re-rendered.

dataUpdatedAt changes on every refetch, but data might not. If the same data is returned from the backend, react-query will re-use the previous data. That concept is called structural sharing:
https://tkdodo.eu/blog/react-query-render-optimizations#structural-sharing

Any suggestions of how to handle this suituation when the number of queries changes between renders?


Fix builtins.divmod to reflect rdivmod

No test for right now but after merging #893 or #896, I can enable divmod tests

Codecov Report

Merging #898 into master will increase coverage by 0.01%.
The diff coverage is 60%.

@@            Coverage Diff             @@
##           master     #898      +/-   ##
==========================================
+ Coverage   64.05%   64.07%   +0.01%
==========================================
  Files          88       88
  Lines       14920    14921       +1
  Branches     3320     3318       -2
==========================================
+ Hits         9557     9560       +3
  Misses       3178     3178
+ Partials     2185     2183       -2

Impacted Files
Coverage Δ

vm/src/builtins.rs
67.41% <60%> (+0.43%)
:arrow_up:

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 177704f...14dd85a. Read the comment docs.


tests: add JA4 test cases

This PR introduces test cases for TLS and QUIC JA4 calculation.
Ticket
Redmine ticket: https://redmine.openinfosecfoundation.org/issues/6379

Next PR: #1408


Document timeout format limitation

When I try to set a timeout to 2month: P2M I get an error:
[ERROR]         [error]: Build step org.kie.kogito.quarkus.common.deployment.KogitoAssetsProcessor#generateSources threw an exception: org.kie.kogito.codegen.process.ProcessCodegenException: Processes with errors are Invalid process: '/home/kogito/serverless-workflow-project/src/main/resources/m2k.sw.yml'. Found error: java.lang.IllegalArgumentException: An invalid "eventTimeout": "P2M" configuration was provided for the state "WaitForSaveTransformationCompletionEvent" in the serverless workflow: "Move2Kube workflow".When configured, it must be set with a greater than zero ISO 8601 time duration. For example PT30S. Or a valid expression, for example $CONST.myDuration, where 'myDuration' is defined in the constant section of the workflow

but according to https://en.wikipedia.org/wiki/ISO_8601#Durations it should be fine

To resolve ambiguity, "P1M" is a one-month duration and "PT1M" is a one-minute duration (note the time designator, T, that precedes the time value).

According to @wmedvede

a P1M (on month) in the context of the workflows can't be translated into how much time to wait.
When we say 1 month, are we talking about January -> 31 days, February -> 29/28 days, etc.

So this needs to be documented

This issue is related to: https://github.com/apache/incubator-kie-kogito-runtimes/issues/3388


Optimize Queue.summary query

This issue was raised by @thomasmodeneis in #37.
It looks like the Queue.summary performance leaves a little to be desired. The method was originally added to support testing and made public just as a convenience. Thomas is using it and it needs some love.
Can the RethinkDB query be improved?
Here is the current query code from the queue-summary.js file:

return q.r.db(q.db).table(q.name)
    .hasFields('status')
    .group((job) => {
      return job.pluck('status')
    }).count()

Performance points off the top of my head:

The .hasFields('status') call is to prevent the state document from adding an undefined entry to the summary. This could be removed or changed. Removed post query as an example.
There is no index defined in the query.

I am not an "expert" at RethinkDB so there is probably a lot of room for improvement here.

I've tested the original query with last night run, there was about 30k rows on the queue.
1.54s round-trip time
1.48s server time
8 shard accesses
Then looking for optimisation I've found on the reference something:
https://www.rethinkdb.com/api/javascript/group/
So, Then I created a new index status and changed the query a bit to use the index:
r.db('test').table('analyticsQueue').group({index:'status'}).count()
865ms round-trip time
819ms server time
8 shard accesses
Still is not the best performance but is a little better already.  :)
Cheers.

Thanks @thomasmodeneis  and great work.
I'll add an index on status and add it to the summary query.
Can you please test if there is a significant difference between having the hasFields operative and without?

Yes, ok, so I will make a fork and introduce the change today and test.
I will let you know asap the results.
Cheers.

@thomasmodeneis No need to fork mate. You can just comment out the hasFields line from the package in your node_modules directory. Or you could use the Data Explorer in RethinkDB.

Oh that would work, but I'm looking to understand better this module and this looks like a good chance for doing it :)
Besides I also need to run the tests to check weather my changes are valid or not.
Cheers.

Hey @grantcarthew
I did my changes and got adapted to your code, is a bit weird because you don't use ; anywhere, besides you also add spaces on the closure = > and my editor was complaining saying its supposed to be =>. Never mind, I'm now trying to run the tests with this thing tape, its my first time using this so and I'm having an error, so I changed to node 7.0.0; I've tried with node 6.9.1 and also nothing happens, I can change the assertions to something invalid but nothing happens.
How do you output anything from this tests when you are building one ?
console.log is the way out ?
This is the err when running with node 6.
$ tape tests/queue-summary.spec.js
/opt/node-rethinkdb-job-queue/tests/queue-summary.spec.js:17
      let jobs = []
      ^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

However it actually works when I run with npm run test, is there a way to run only one specific test and not the whole test suite ?
Cheers.

Oh I see now; npm run test-current is the way to run single specs right?
Please let me reformulate my question: Is there a way to run only one of the tests in a single spec without commenting out other tests ?
Also for file indentation I see you used 2 lines, is this correct ?
Cheers.

I've submitted this pull request with the changes + test fixed.
Cheers.

As stated by the badges on the README, I use JavaScript Standard Style.
Also, this should answer the testing questions: https://github.com/grantcarthew/node-rethinkdb-job-queue/wiki/Testing
Changing the test-current.js file is probably not the best way of testing a single module. I haven't put much thought into it.

Are you happy with the performance now @thomasmodeneis ?

I'm going to close this now @thomasmodeneis
Open it if you think there could be more options to improve it.
Thanks mate.


Relational Struct Type Not Querying For One To Many Relationship

As far as I'm aware, I've set up everything in order for the User struct to have a one to many relationship with the Profile struct. But on performing a query to retrieve a user from the database, the struct returned has a null value for the Profiles field.
This code is mostly copied from the gorm docs so I have reason to believe there's an issue here.
code:
package main

import (
    "encoding/json"
    "fmt"
    "github.com/jinzhu/gorm"
    _ "github.com/jinzhu/gorm/dialects/mysql"
)

type Profile struct {
    gorm.Model
    Name      string
    UserRefer uint
}

type User struct {
    gorm.Model
    Profiles []Profile `gorm:"ForeignKey:UserRefer"`
}

func main() {
    db, err := gorm.Open("mysql", "root:1234@tcp(<IP_ADDRESS>:3306)/database?parseTime=True")
    if err != nil {
        panic("failed to connect database")
    }
    defer db.Close()

    // Migrate the schema
    db.AutoMigrate(&Profile{}, &User{})

    // Create
    db.Create(&User{
        Profiles: []Profile{
            {Name: "awesome profile"},
        },
    })

    // Read
    var user User
    db.First(&user, 1) // find user with id 1

    userJSON, err := json.MarshalIndent(user, "", "  ")
    if err != nil {
        panic(err)
    }

    fmt.Println(string(userJSON))
}

outputs:
{
  "ID": 1,
  "CreatedAt": "2016-10-14T12:24:57Z",
  "UpdatedAt": "2016-10-14T12:24:57Z",
  "DeletedAt": null,
  "Profiles": null
}

with:
db.LogMode(true)

output:
(/home/pmonk/Projects/go/src/test/main.go:38)
[2016-10-14 13:31:23]  [1.23ms]  INSERT INTO `users` (`created_at`,`updated_at`,`deleted_at`) VALUES ('2016-10-14T13:31:23+01:00','2016-10-14T13:31:23+01:00','<nil>')

(/home/pmonk/Projects/go/src/test/main.go:38)
[2016-10-14 13:31:23]  [4.36ms]  INSERT INTO `profiles` (`created_at`,`updated_at`,`deleted_at`,`name`,`user_refer`) VALUES ('2016-10-14T13:31:23+01:00','2016-10-14T13:31:23+01:00','<nil>','awesome profile','6')

(/home/pmonk/Projects/go/src/test/main.go:42)
[2016-10-14 13:31:23]  [0.53ms]  SELECT * FROM `users`  WHERE `users`.deleted_at IS NULL AND ((`users`.`id` = '1')) ORDER BY `users`.`id` ASC LIMIT 1
{
  "ID": 1,
  "CreatedAt": "2016-10-14T12:24:57Z",
  "UpdatedAt": "2016-10-14T12:24:57Z",
  "DeletedAt": null,
  "Profiles": null
}

db.Preload("Profiles").First(&user, 1)
Related structs are not loaded by default, you have to manually specify which relations you want to retrieve. Please consider skimming through documentation next time.

Preload
Which part of documentation should I skim to find this? Thanks


Live View

Messages should also be displayed in the GUI.

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 23 May 2014 at 7:14

The current version of the Glow Logger Proxy now shows all Ember+ Messages in the UI.


Linter rule to control  does not have types available.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
We deploy from a master bicep file with all resources declared as modules. We see alot of these warnings making it difficult to debug errors.
Describe the solution you'd like
A clear and concise description of what you want to happen.
I would like to control or suppress these warning as we get them for alot of resources

You can use #disable-nextline to suppress the types warnings:
#disable-next-line BCP081
resource test 'foo/bar@2020-01-01' = {
  name: 'resourceName'
  location: 'eastus'
}

Thanks, that's a great workaround. It would still be useful to have it under global config though.

Closing as we are tracking the ask with #5568


Adding multi language support system✨

I want to add multi language support system to the website which can help us understand in their native language.
@ANSHIKA-26 can you assign me this issue.

@ANSHIKA-26 can i work on this issue


Accumulate errors during merge

Problem
One of the "pain points" we experience when using assembly is the iterative way in which we generate an application's MergeStrategy.
Unfortunately, some of our applications wind up having a rather large MergeStrategy, and this is only figured out over the course of many assembly invocations.
For example, when building a fat jar to run MapReduce jobs on our Hadoop cluster the following MergeStrategy is used:
case fp if fp.contains("LICENSE")         => MergeStrategy.discard
case fp if fp.contains("README")          => MergeStrategy.discard
case fp if fp.contains("cmdline.arg")     => MergeStrategy.discard
case fp if fp.endsWith("pom.properties")  => MergeStrategy.discard
case fp if fp.endsWith("pom.xml")         => MergeStrategy.discard
case fp if fp.endsWith(".sample")         => MergeStrategy.discard
case fp if fp.endsWith(".class")          => MergeStrategy.last
case fp if fp.endsWith(".html")           => MergeStrategy.discard
case fp if fp.endsWith(".xml")            => MergeStrategy.last
case fp if fp.endsWith(".properties")     => MergeStrategy.concat
case fp if fp.endsWith(".tooling")        => MergeStrategy.discard

Our workflow of building this strategy consists of the following steps: invoke assembly, experience an error, resolve by way of adding a new partial function, invoke assembly, experience an error, resolve... ad nauseum.
Solution
Accumulating the errors during the "merge" phase of assembly could drastically improve this process.
The following pull request accumulates the errors encountered during both the "rename" and "merge" phases and outputs each error message to the user if the task fails.
For example, the output of the mergefail and mergefail2 test cases would be now be:
> assembly
[info] Updating {file:/Users/jeffo/Projects/jvm/sbt-assembly/src/sbt-test/sbt-assembly/mergefail/}testmerge...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Including: 2.jar
[info] Including: 3.jar
[info] Including: 1.jar
[info] Including: scala-library.jar
[info] Checking every *.class/*.jar file's SHA-1.
[info] Merging files...
[warn] Merging 'a' with strategy 'singleOrError'
[warn] Merging 'b' with strategy 'singleOrError'
[warn] Merging 'c' with strategy 'singleOrError'
[warn] Merging 'd' with strategy 'singleOrError'
[warn] Merging 'e' with strategy 'singleOrError'
[error] 5 errors were encountered during merge
[trace] Stack trace suppressed: run last *:assembly for the full output.
[error] (*:assembly) singleOrError: found multiple files for same target path:
[error] /Users/jeffo/Projects/jvm/sbt-assembly/src/sbt-test/sbt-assembly/mergefail/lib/1.jar:a
[error] /Users/jeffo/Projects/jvm/sbt-assembly/src/sbt-test/sbt-assembly/mergefail/lib/2.jar:a
[error] /Users/jeffo/Projects/jvm/sbt-assembly/src/sbt-test/sbt-assembly/mergefail/lib/3.jar:a
[error] singleOrError: found multiple files for same target path:
[error] /Users/jeffo/Projects/jvm/sbt-assembly/src/sbt-test/sbt-assembly/mergefail/lib/1.jar:b
[error] /Users/jeffo/Projects/jvm/sbt-assembly/src/sbt-test/sbt-assembly/mergefail/lib/2.jar:b
[error] /Users/jeffo/Projects/jvm/sbt-assembly/src/sbt-test/sbt-assembly/mergefail/lib/3.jar:b
[error] singleOrError: found multiple files for same target path:
[error] /Users/jeffo/Projects/jvm/sbt-assembly/src/sbt-test/sbt-assembly/mergefail/lib/1.jar:c
[error] /Users/jeffo/Projects/jvm/sbt-assembly/src/sbt-test/sbt-assembly/mergefail/lib/2.jar:c
[error] /Users/jeffo/Projects/jvm/sbt-assembly/src/sbt-test/sbt-assembly/mergefail/lib/3.jar:c
[error] singleOrError: found multiple files for same target path:
[error] /Users/jeffo/Projects/jvm/sbt-assembly/src/sbt-test/sbt-assembly/mergefail/lib/1.jar:d
[error] /Users/jeffo/Projects/jvm/sbt-assembly/src/sbt-test/sbt-assembly/mergefail/lib/2.jar:d
[error] /Users/jeffo/Projects/jvm/sbt-assembly/src/sbt-test/sbt-assembly/mergefail/lib/3.jar:d
[error] singleOrError: found multiple files for same target path:
[error] /Users/jeffo/Projects/jvm/sbt-assembly/src/sbt-test/sbt-assembly/mergefail/lib/1.jar:e
[error] /Users/jeffo/Projects/jvm/sbt-assembly/src/sbt-test/sbt-assembly/mergefail/lib/2.jar:e
[error] /Users/jeffo/Projects/jvm/sbt-assembly/src/sbt-test/sbt-assembly/mergefail/lib/3.jar:e
[error] Total time: 2 s, completed Feb 1, 2015 4:31:35 PM

> assembly
[info] Updating {file:/Users/jeffo/Projects/jvm/sbt-assembly/src/sbt-test/sbt-assembly/mergefail2/}testmerge...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Including: 2.jar
[info] Including: 3.jar
[info] Including: 1.jar
[info] Including: scala-library.jar
[info] Checking every *.class/*.jar file's SHA-1.
[info] Merging files...
[warn] Merging 'META-INF/MANIFEST.MF' with strategy 'discard'
[error] 4 errors were encountered during merge
[trace] Stack trace suppressed: run last *:assembly for the full output.
[error] (*:assembly) deduplicate: different file contents found in the following:
[error] /Users/jeffo/Projects/jvm/sbt-assembly/src/sbt-test/sbt-assembly/mergefail2/lib/1.jar:a
[error] /Users/jeffo/Projects/jvm/sbt-assembly/src/sbt-test/sbt-assembly/mergefail2/lib/2.jar:a
[error] /Users/jeffo/Projects/jvm/sbt-assembly/src/sbt-test/sbt-assembly/mergefail2/lib/3.jar:a
[error] deduplicate: different file contents found in the following:
[error] /Users/jeffo/Projects/jvm/sbt-assembly/src/sbt-test/sbt-assembly/mergefail2/lib/1.jar:b
[error] /Users/jeffo/Projects/jvm/sbt-assembly/src/sbt-test/sbt-assembly/mergefail2/lib/2.jar:b
[error] /Users/jeffo/Projects/jvm/sbt-assembly/src/sbt-test/sbt-assembly/mergefail2/lib/3.jar:b
[error] deduplicate: different file contents found in the following:
[error] /Users/jeffo/Projects/jvm/sbt-assembly/src/sbt-test/sbt-assembly/mergefail2/lib/1.jar:c
[error] /Users/jeffo/Projects/jvm/sbt-assembly/src/sbt-test/sbt-assembly/mergefail2/lib/2.jar:c
[error] /Users/jeffo/Projects/jvm/sbt-assembly/src/sbt-test/sbt-assembly/mergefail2/lib/3.jar:c
[error] deduplicate: different file contents found in the following:
[error] /Users/jeffo/Projects/jvm/sbt-assembly/src/sbt-test/sbt-assembly/mergefail2/lib/1.jar:d
[error] /Users/jeffo/Projects/jvm/sbt-assembly/src/sbt-test/sbt-assembly/mergefail2/lib/2.jar:d
[error] /Users/jeffo/Projects/jvm/sbt-assembly/src/sbt-test/sbt-assembly/mergefail2/lib/3.jar:d
[error] Total time: 2 s, completed Feb 1, 2015 4:36:35 PM

Error accumulation is done using the org.scalactic library (for its philosophy of working with the stdlib and its small footprint), however, similar constructs exist across other popular scala libraries (scalaz Validation, etc.), so this can be swapped out for whatever implementation is preferred.

Nice feature. Thanks for working on this.


Code profiling and speed up

[ ] Profile the code and find the bottleneck
[ ] Optimize code for possible speedup

There is nice introduction on python profiler
https://supercomputingwales.github.io/SCW-tutorial/08-estimating-pi/
@MichaelCasaletto


Renaming site while after exiting remote view breaks the UI

Steps to reproduce:

Set up a site as normal
Open remote view
Open the rename dialog
Close remote view
Hit "Do It!"

The site will then still have the buttons as if you were in remote view, locking you out of viewing that site. YARM will ask you to call reset_player if you try to exit again, but saving/loading also appears to fix it (and doesn't stop achievments).

Huh, that's a sequence I didn't think of. Thanks for the report, I'll need to consider the solution (probably cancel the rename if you stop viewing).
Also, I think you can view a different site to fix it; at the very least, give that a try and let me know if it doesn't work.

Yes, that does also fix it.
On Tue, Sep 25, 2018 at 12:12 AM narc0tiq<EMAIL_ADDRESS>wrote:

Huh, that's a sequence I didn't think of. Thanks for the report, I'll need
to consider the solution (probably cancel the rename if you stop viewing).
Also, I think you can view a different site to fix it; at the very least,
give that a try and let me know if it doesn't work.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/narc0tiq/YARM/issues/82#issuecomment-424231980, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AGhiyw0n3Zpw5Ina287v30ltDQrld1boks5ueddKgaJpZM4W3Ixr
.

Fixed in v0.8 by the removal of the remote viewer fake player -- remote view now simply opens the map to the right place.


Periodic distributed test failures on osx

We've been seeing some periodic test failures on osx CI for the last couple days. Example failure report: https://github.com/dask/dask/runs/5543476482?check_suite_focus=true.

        Returns an instance of EventLoop or raises an exception.
        """
        if (self._local._loop is None and
                not self._local._set_called and
                isinstance(threading.current_thread(), threading._MainThread)):
            self.set_event_loop(self.new_event_loop())

        if self._local._loop is None:
>           raise RuntimeError('There is no current event loop in thread %r.'
                               % threading.current_thread().name)
E           RuntimeError: There is no current event loop in thread 'Dummy-1'.

../../../miniconda3/envs/test-environment/lib/python3.8/asyncio/events.py:639: RuntimeError

I touched code related to this several months ago, (https://github.com/dask/distributed/pull/5531, https://github.com/dask/distributed/pull/5593), but am not sure what (if anything) changed recently. cc @fjetter.

We removed a lot of special treatmenents in check_thread_leak function to track down leakages. One of the changes was that we now "warm up" the BaseTCPConnector Threadpool, see https://github.com/dask/distributed/blob/2fffe74dde40238a3387d12740ff9a54c16acb9f/distributed/utils_test.py#L1573-L1576
https://github.com/dask/distributed/blob/2fffe74dde40238a3387d12740ff9a54c16acb9f/distributed/comm/tcp.py#L411-L419
since otherwise the thread leakage check would detect false positives
That was part of https://github.com/dask/distributed/pull/5771
This seems to trigger the exception when Tornado tries to initialize the netutil.ExecutorResolver. Not sure why this raises but this resolver has been deprecated in tornado 5+, see also https://github.com/dask/distributed/pull/5771/files#r800928588


Make a new release

Before:

[x] Decide on a version number
[x] Ensure changelog is up to date
[x] Merge #208
[x] Merge #211
[x] Merge #213

During:

[x] Update version number in changelog, commit, push
[x] Wait until tests complete
[x] Tag the version in Git (need to use git tag -a)
[x] Compile and check that strobealign --version output is correct
[x] git push --tags
[x] :tada:

After:

[x] Update Bioconda recipe
[ ] Announce

The plan looks good.
Regarding version number, is it not big enough to merit v0.8? (I know there are more strict guide lines for version numbering though).

Definitely 0.8.0. A very popular versioning scheme is semantic versioning, which requires bumping the minor version (the 7 in 0.7.1) when adding new features. Strictly speaking, SemVer also says that you don’t have to follow that rule as long as you are pre-1.0.0, but it’s nice to do it anyway.
SemVer also wants you to always use all three components of the version number, so it would be 0.8.0 instead of 0.8.
Of course you don’t have to use SemVer, and it is sometimes not obvious how to apply its rules, but I think it’s a good start.
(And as a note for the future: You could continue to use 0ver, but I suggest you don’t ...)

I had a quick read through both SemVer and 0ver. Let us go with SemVar and version 0.8.0 for the upcoming release. I think I was trying to mimic SemVar versioning style earlier without knowing exactly what I was doing.

(0ver is a joke, not sure if that was clear.)

Haha I skimmed 0ver and was like,, "why?!", but too occupied with teaching etc to invest more time understanding, so I did not catch the joke (facepalm)

Everything is ready for the release. Shall I make one?

Let's do it! 💯

Done!
I’ll take care of the Bioconda recipe soon.

The Bioconda recipe has been merged.
Do you want to tweet/toot this, or should we fix issue #222 first? Currently, the files available for download from the release page cannot be used to compile strobealign.

Nice!  I am okay with tweeting/tooting/advertising on mailing lists now that the bioconda version is updated. Will get back to you over email about the ad.


⚠ Bofrost.de has degraded performance

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

HTTP code: 200
Response time: 2077 ms

Resolved: Bofrost.de performance has improved in b0a755e after 6 minutes.


More lib specific lock prefix

Sorry, this cannot be changed.
When deploying a version of this library the new version will not respect existing locks that are held (that were acquired by the version that does not have this change).

@willemstuursma good point, but the original prefix can not be used in some enviroments like we have
Until now, we used a fork of this lib, but all offered all customizations as a PRs. If we can not change this, I will still have to maintain that fork... :(
Is this possible to change and release a new major version?

Did you consider using a dedicated redis database for locking then?

We have only one DB per deploy.

@willemstuursma please reconsider merging this PR

@willemstuursma please reconsider merging this PR

We can do a PR where the lock name or prefix is configured in a protected function (which can be overridden) or a constructor argument.
For more info on Redis databases (which are a way of namespacing as well) see https://www.mikeperham.com/2015/09/24/storing-data-with-redis/#:~:text=Out of the box%2C every,conf).
A single server supports 16 databases (0-15).

We can do a PR where the lock name or prefix is configured in a protected function (which can be overridden) or a constructor argument.
For more info on Redis databases (which are a way of namespacing as well) see https://www.mikeperham.com/2015/09/24/storing-data-with-redis/#:~:text=Out of the box%2C every,conf).
A single server supports 16 databases (0-15).


Update jump extension

Description

Refactor checking for defaults, so people can remove them if they want to (#9668)
Change display of weights to be rounded up to 5 decimals
Update dependencies

Screencast

Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

Looks good to me and works as expected. Thanks!

@pernielsentikaer Can we merge these changes?


Setup Cloudflare deploys via Github Action

Requires: CLOUDFRONT_API_TOKEN and CLOUDFRONT_ACCOUNT_ID secrets on repo level
https://github.com/oasisprotocol/explorer/settings/secrets/actions
Setup:

API Token (https://github.com/cloudflare/pages-action#generate-an-api-token)
https://dash.cloudflare.com/profile/api-tokens -> Create ->
At the bottom under Custom Token -> Get started ->
Provide Token name ->
Under Permissions, select Account, Cloudflare Pages and Edit
Select Continue to summary > Create Token.

Account ID
Dashboard home -> Left side navigation -> Workers -> Overview -> Account ID is listed on the right side

Suspend Github CloudFlare github app https://github.com/oasisprotocol/explorer/settings/installations

CloudFlare builds&deploys are slow (> 3m)
Currently we control everything via CloudFlare dashboard options and most of us cannot access it
GH action would allow us to omit CloudFlare Pages limit (1 deploy per repo) if we would like to deploy Storybook one day

Sample output:
default: https://github.com/buberdds/explorer/pull/20
skipped for Renovate bot: https://github.com/buberdds/explorer/pull/22

@tjanez API Token description updated. We only need Cloudflare Pages Edit permission. Tested on fork https://github.com/buberdds/explorer/pull/30

Thanks, secrets look Ok. We can remove Github App integration https://github.com/oasisprotocol/explorer/settings/installations

Something is wrong:
Old bot: Latest commit: 62f8165, Preview URL: https://ee885e51.oasis-explorer.pages.dev/
open, see footer "Version: 62f8165"
New workflow: Latest commit: 62f8165d829668803f55e405d4d33ddc2af61b37, Preview URL: https://b773861d.oasis-explorer.pages.dev
open, see footer "Version: aad8eec" :warning:

hmm how this is even possible that footer getBuildData has a different commit ?

https://github.com/actions/checkout#checkout-pull-request-head-commit-instead-of-merge-commit

that might work - even on push event
the other alternative is https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target but looks like it carries extra risk

I will merge and disable until switch


The new pip resolver is not backwards compatible

Fixes #5405
Adding error handling and a retry if the pip-compile is not new enough to have the --resolver argument.

Instead of having to rely on a relatively slow retry, could we somehow detect that it's not available and get it right the first time? 🤔

Possibly, I took the python approach of "ask forgiveness not permission" initially.  I contemplate using the python version which we have at hand though that might not be specific enough for all cases, it would be best if we could use the pip-compile or pip-tools version, but I didn't see a quick/easy way to get that other than shelling out, so went this direction.  I'll make another attempt.


Nix IO bloated file

I want to save the results of my analysis scripts in a format that is more reliable in the future than a simple pickle file. As I understand that Nix is the best supported, I tried that, but it results in incredibly bloated files (not to mention that it takes hours to write them). To give you an idea: As a pickle file, it takes about 100 MB, in the neo .mat format it is 85 MB, whereas nix runs up to 8 GB. Since mat-files don't support all the details of my metadata, I would prefer to try nix. Any ideas on why this bloat occurs, or how I could find out more about it?
Perhaps I can try to create a minimal example that demonstrates this behavior.

Thanks for the reply. Yes, both of these requirements are met. I used the neo commit 4e903124e66123746da721211ea00dd70b99434b (only 1 commit behind of current, which seems to be unrelated to this issue). I have one block with 85 segments with 1 AnalogSignal each.

@achilleas-k Any ideas for further improvements? Does the latest beta version including repacking / removing of unlinked data chunks already or would this be another potential source for the bloat?

Storage optimisation changes were included in v1.5.0b5.  From the description of the file (85 AnalogSignals) it seems like 8 GB is extremely large, even before we fixed the allocation issue.
The main source of the problem was metadata properties: Each annotation would be allocated much more space than it needed which resulted in the unnecessarily large files.  Is there a lot of metadata (annotations) attached to each signal and segment?

Each of the segments' unique analogsignals has a few annotations, but not that many. To be precise it is something like
{'boundaries': array([1173615, 1190863], dtype=int64), 'meanValue': 0.3989286825268318, 'samplingRate': 10000.0, 'numel': 17248} .
I am not really familiar with the HDF5 format, but perhaps the API does some sort of duplicate key checking when writing, leading to a long duration when writing and adding "unnecessary" bloat? (I seem to remember a PR that was mentioning something along those lines, but can't find it again...)
On the other hand, the block itself holds a lot of annotations, including some derived from python dicts using int and float as keys. I know that the latter causes trouble for the MatlabIO (because struct fields cannot be numbers), but the consequences are very different. Do you think that might be part of the problem here as well?

On the other hand, the block itself holds a lot of annotations, including some derived from python dicts using int and float as keys.

The keys shouldn't be an issue, but the number of annotations might be.  In your first message you offered to create a minimal example to demonstrate.  I think that would help.  Perhaps there are some edge cases we haven't considered, or even something fundamental that I missed.

So, after testing several slices of data, IMHO there is something more fundamental going on, or perhaps I misunderstood how to use the IO properly. The chunks of data that are contained in each segment has the size 103488 data points (6x17248) of float64 type, resulting in about 800 KB per segment.
The block.annotations alone take up about 14 MB both as a nix- or mat-file. When we add a single segment to the files, their size grows to about 90 MB for nix, and only 15 MB for mat (as expected by segment size). Removing all annotations from the segment has only a marginal effect.
Adding more segments (different but same size) pretty much adds always the same amount to the file size.
I will append the two simplest cases as mat-files, sou you can inspect them (remove the '.txt' of course). I'll also add the part my code that concerns the IO without the rest of the analysis class to keep it simple.
For now I'll stick to mat-files, but if we can figure this out, it would be great for hte future. I'm willing to contribute as much as I can.
myNeoIO_minimal.py.txt
example_1segment.neomat.txt
example_onlyAnnotations.neomat.txt

I think I found the cause of the problem.  The NIXIO splits 2-dimensional signals into multiple 1-dimensional DataArrays.  It's a little difficult to describe the reasons in detail briefly, but generally it's done to keep the structure of the objects in the file logically consistent with respect to how NIX handles tagging (points and/or regions of interest).
The split is done so that each DataArray represents a signal and all arrays share the same time dimension.  In Neo AnalogSignals, dimension 0 is time and dimension 1 is channel index.  So for a given AnalogSignal asig in Neo, taking asig[0] returns the first value of each signal (at t=0) and taking asig[:, 0] returns the entirety of the first signal (it actually returns an AnalogSignal object).
It seems that, in your minimal example at least, the data that's placed in the AnalogSignal is transposed (this is a guess on my part, so please confirm).  I made some edits to your script for testing:
script.zip
The important change is L51:
ch = np.transpose(ch)

where I transpose the channel data before creating the AnalogSignal.
After creating the object, I use the IPython pretty representation which Neo objects implement to show some very handy information about.  With the transpose, the pretty print shows:
AnalogSignal with 6 channels of length 17248; units V; datatype float64
name: 'flyIndex 0,groupIndex 0,flying 1'
annotations: {'boundaries': array([1173615, 1190863]),
'meanValue': 0.3989286825268318,
'samplingRate': 10000.0,
'numel': 17248}
sampling rate: 10000.0 Hz
time: 0.0 s to 1.7248 s

Is this correct?
If we remove the transpose line, it instead becomes
AnalogSignal with 17248 channels of length 6; units V; datatype float64
name: 'flyIndex 0,groupIndex 0,flying 1'
annotations: {'boundaries': array([1173615, 1190863]),
'meanValue': 0.3989286825268318,
'samplingRate': 10000.0,
'numel': 17248}
sampling rate: 10000.0 Hz
time: 0.0 s to 0.0006 s

You'll also notice the lines in main at the bottom where I print the number and shape of the DataArrays in the NIX file:
    blk = nf.blocks[0]
    print(f"File has {len(blk.data_arrays)} data arrays")
    print(f"First data array has shape {blk.data_arrays[0].shape}")

Without transposing, this prints:
File has 17248 data arrays
First data array has shape (6,)

and the NIX file size grows to 89 MiB, which is consistent with your previous message.
With the transposing of the signal, this prints:
File has 6 data arrays
First data array has shape (17248,)

and the NIX file size is 15 MiB, which is much closer to what we expect.
The cause of the size bloat is (likely) due to object size overhead.  Some metadata is duplicated.  Annotations are shared between all arrays, but each array requires its own dimension descriptors, for instance.  17k extra objects certainly adds up.  There might also be some issue with the arrays being so small that HDF5's automatic chunk sizing preallocates a bit of extra space for resizing, which also adds up over 17k objects.
We made some change recently in NIX that makes tagging more flexible.  This solves the issue we had that required DataArrays to be split in order to keep the file consistent.  I was hoping to make the change once we had a proper release of 1.5.
For now though, if I'm right about your signal shapes, transposing the channel data should make your files much smaller.  Let me know how it goes.

That is exactly what happened! And taking the transpose solves the issue. Now the size in the NIX format is in between the mat- and pickle-file (about 20% more than the matfile, which is fine). I was not aware that NEO makes assumptions about the array shape, let alone NIX.
If I understand you right, the change you were planning to do would solve this issue already anyways. In that case there is nothing more to do in this thread.

Not to forget, thanks a lot!

That is exactly what happened! And taking the transpose solves the issue. Now the size in the NIX format is in between the mat- and pickle-file (about 20% more than the matfile, which is fine). I was not aware that NEO makes assumptions about the array shape, let alone NIX.

NIX itself doesn't make assumptions about the dimensions, the user sets defines the meaning of each dimension of an array, but since Neo does, the Neo-NIXIO relies on that assumption to set the dimensionality.

If I understand you right, the change you were planning to do would solve this issue already anyways. In that case there is nothing more to do in this thread.

Great!

Not to forget, thanks a lot!

Happy to help!  :)


Change edit command to include nusId prefix

added prefix id/ to ids in editCommand in order to standardize convention for commands


AxEventsDisplayWidget: missing ngSanitize declaration

The AngularJS module ngSanitize is currently used by the AxEventsDisplayWidget without explicit declaration. This breaks the spec test.

Fixed on master (v1.5.0) and release-1.4.x (v1.4.1).


Change DynamoDB read and write reserved capacity

Hi,
I try to change the default in amplify/backend/api/<myapi>/cloudformation-template.json and adding parameters to amplify/backend/api/<myapi>/parameters.json but both files are reset running amplify push.
I try to add parameters in amplify/backend/awscloudformation/nested-cloudformation-stack.yml under "myapiname"->"Parameters" but nothing, amplify push say that are no changes.
How can be changed DynamoDBModelTableReadIOPS and DynamoDBModelTableWriteIOPS parameters set by default set to 5?

I need this too currently i'm stucked because i have a lot of Types in my GraphQL schema and i don't want 5 R/W units x table.
The opportunity to set units for the GSI created by a connection would be appreciated too.

+1 here as well... I actually want to scale down though

I would like to be able to also change to on-demand pricing,


Benchmark script's improvement calculation is off a bit

See https://github.com/nolanlawson/optimize-js/pull/14#issuecomment-249357864, need to re-run the benchmark and double-check the math to make sure everything is correct down to two decimal places.

It's definitely off.  The results for Chrome & Lodash show a positive improvement, when actually it's a performance regression.
Minified: 20.70ms
Minified+Opt: 24.45ms
Stated Improvement:  3.78%  <-- wrong

Just a heads up afteroptimize-js  was release I updated Lodash to use this technique.

@robpalme Yeah thanks, something got messed up. I'll just re-do the calculations in Excel and fix the README for now.
@jdalton Cool, okay, now I understand #20. :) Will need to update Lodash when I re-run the benchmarks; most likely optimize-js will have zero impact.
Note though that your fix will cause Uglify to remove the parentheses, and then optimize-js will not add them back because it currently doesn't detect named functions that are immediately-invoked.

OK, it turned out that #14 actually introduced some errors in the calculation (while fixing other errors). That should teach me to triple-check PRs before merging... >_<
In any case I've re-run all the calculations in Excel and quadruple-checked that everything looks right. See a1c41a07dc6ba6815255ba78c32d016370495316 for the fix.


Can't create index pattern when using index permissions on roles

I've have indices like prodapps-yyyyMMdd, prodother-yyyMMdd and prodsystem-yyyMMdd
I want to hide prodsystem* indices to users so i created a role myrole like
myrole:
  index_permissions:
  - index_patterns:
    - "/^(?!prodsystem).*/"
    allowed_actions:
    - "*"
  - index_patterns:
    - "prodsystem*"
    allowed_actions:
    - "indices:data/read/field_caps*"
    - "indices:data/read/search*""`

When user mapped to the role wants to create an index_pattern prodsystem*, indices are not shown and he can create prodapp* index pattern ==> Good
BUT index pattern prod* can not be created because of  No index-level perm match for User ... [Action [indices:admin/resolve/index]] error
I added this permission to the role but now user has access to prodsystem* indices in index pattern and discovery

I have this problem too. I use multi-tenancy and I want that users can create theirs index patterns themselves in Kibana. But they can't do this because they haven't special permissions. And most important that users must not see other indexes which not include theirs roles. How can I do this?

Same issue here on Amazon Elasticsearch.

A not-good workaround...

Create a file with code from the codeblock below. Ensure this file has the extension .ndjson
Modify the code, replacing PATTERN with the index pattern you wish to use and save the file
Go to Kibana, and ensure you are in the tenant you wish to create the index pattern for and ensure you have permissions to do so.
Go to Menu -> Stack Management -> Saved Objects -> Import
Drag this file onto the import icon and click Import
Click on the newly imported index pattern and refresh the field list

Please note that this assumes the use of @timestamp as the date field you intend on keying off of.
{"attributes":{"fields":"[{\"name\":\"@timestamp\",\"type\":\"date\",\"esTypes\":[\"date\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true}]","timeFieldName":"@timestamp","title":"PATTERN"},"type":"index-pattern"}
{"exportedCount":1,"missingRefCount":0,"missingReferences":[]}

We are doing some "spring cleaning in the fall", and to make sure we focus our energies on the right issues and we get a better picture of the state of the repo, we are closing all issues that we are carrying over from the ODFE era (ODFE is no longer supported/maintained, see post here).
If you believe this issue should still be considered for current versions of OpenSearch, apologies! Please let us know by re-opening it.
Thanks!


Path variable from the environment is not respected

Windows Terminal version
1.22.240926002-preview
Windows build number
10.0.22621.819
Other Software
No response
Steps to reproduce
run:
cmd.exe
type:
set path=c:\tweet;%path%
type your path to terminal:
"C:\Users\Admino\AppData\Local\Temp\WindowsTerminal\x64\WindowsTerminal.exe"
open a cmd window in terminal and type:
path
WindowsTerminal.exe shows the right path "c:\tweet;...."
OpenConsole.exe also shows the right path "c:\tweet;...."
but then cmd.exe has a different path
Expected Behavior
to see the active environment
to see "c:\tweet"
Actual Behavior
shows the wrong path
probably the environment is retrieved from the registry instead of the environment

Checked with ProcessHacker to see the environment of individual executables
WindowsTerminal.exe shows the right path "c:\tweet;...."
OpenConsole.exe also shows the right path "c:\tweet;...."
cmd.exe has a different path

Windows Terminal treats each tab and pane like a "container" of sorts. Each one gets its own fresh environment variables. You can disable that behavior here:

i see, indeed that works for new tabs but not for the one that is there when launched.
i also use these settings
default profile:  Command Prompt
when terminal starts: open tab with default profile

Also it does not show the correct path wen a tab is created with a new instance.
i have this setting
new instance behavior:  attach to the most recently used window

Thanks for filing! Assuming Windows Terminal is set as your default terminal, start cmd should create a new window and immediately hand off to windows terminal, which would then have the expected environment block. This can be used as a workaround for your scenario. If you do wt new-tab -w0 cmd, that should work too. Does that work for you ?
Note #16226 may be involved here.

Thanks for filing! Assuming Windows Terminal is set as your default terminal

Don't even know how to do that, it most likely can't be automated as MS implemented encryption for default file associations, so no it is not the default

Does that work for you ?

it does, but not my preferred solution

Note #16226 may be involved here.

Good find buddy
Indeed, seems to be a reoccurring issue, you can not expect all users to start hunting for command line parameters, when the default behaviour is that a app inherits the environment from the caller.
I used --inheritEnvironment from there as the cleaner outcome
To bad MS does not respect the environment and reads the registry instead, now many other devellopers also do that, a example WindowsTerminal writes to %LocalAppdata% but uses the one from the registry, i am not gonna mess with that, i attempted it years ago, but that is a global change and all other crappie apps will start to write at the new location too, so sad :(
Maybe that should be a different issue.

i am not gonna mess with that, i attempted it years ago, but that is a global change and all other crappie apps will start to write at the new location too, so sad :(
Maybe that should be a different issue.

You know that redirecting the known folders like AppData/LocalAppData is not supported. Please don't file bugs on us, or anyone else, for that.

Thanks for filing! Assuming Windows Terminal is set as your default terminal

Don't even know how to do that, it most likely can't be automated as MS implemented encryption for default file associations, so no it is not the default

Windows Terminal is the default console host on your version of Windows unless you've turned it off explicitly, and it does not work by using "file associations".

Windows Terminal is the default console host on your version of Windows unless you've turned it off explicitly, and it does not work by using "file associations".

Doubt that, i am on win 11 and never have i seen "windows terminal" it always shows cmd.exe or consolehost.exe

At its heart, this is a /duplicate of #15496.
You can use the --inheritEnvironment argument or the profile setting compatibility.reloadEnvironmentVariables (set to false).


No line separator in CompositeJsonLayout

CompositeJsonLayout does not terminate lines with a line separator. In contrast, CompositeJsonEncoder does.
The result is that log output using the layout would look like this:
{"field":"value1"}{"field":"value2"}

whereas with the encoder, it would look like this:
{"field":"value1"}
{"field":"value2"}

I'm not totally sure if CompositeJsonLayout ought to use a line separator, but my gut feeling is that it should.
Is this an oversight? Or am I perhaps missing something else?

Thanks for the report!
I just added line separator support to CompositeJsonLayout.  I left the default as no separator for backwards compatibility purposes for now.  I'll likely change the default to be the same default as CompositeJsonEncoder in a future major release.

Cool, thanks!


⚠ 한경주요지수-코스피200 has degraded performance

In 43e3d6b, 한경주요지수-코스피200 (https://markets.hankyung.com/indices/kospi200) experienced degraded performance:

HTTP code: 200
Response time: 27828 ms

Resolved: 한경주요지수-코스피200 performance has improved in 47f892b.


Develop Resource Page: Governance - Board/Council Diversity

This issue is for coordinating around developing the resource page for Governance - Board/Council Diversity.
The resource page lives in the following google document for easy editing, commenting, and revision:
https://docs.google.com/document/d/13toY8vWR5OGwiuLKzI7cmhnjqc7H8L9u-iUyRmE9egg/edit?usp=sharing
Once the page is in a decent shape, we will put a copy of it in the repository as a markdown file.
To work on this issue, feel free to leave a comment here and start editing the document. For questions, feedback requests, and other coordination tasks, please leave a comment here on the issue.
Please edit the google document directly and add your ideas to it. We can help with cleaning it up later.

I've added a few comments on top of the existing document.

One of the strategies to ensure representativeness is open election of the board members.

@aserebrenik , would you say that this is a good policy to be more inclusive? This might be helpful to be part of the qualitative set of metrics in the 'Sample Success Metrics' section.

@dicortazar not necessarily so. One of the objectives is "A project member needs to know that someone in the board or council is representing their interest": elections can help with ensuring that the interests of (some of) the project participants are represented. However, as elections go, they do not necessarily further diversity/inclusion since the majority can easily elect the candidates representing them as opposed to those representing a minority.

Thanks @aserebrenik and @dicortazar  --- I added a method for observing open elections and made a comment referencing this thread. Take a look and see if this is helpful.

After reviewing this ticket, I've realized that this was already merged.
The existing doc at https://github.com/chaoss/wg-diversity-inclusion/blob/master/focus_areas/governance/board_council_diversity.md follows the required template.
We may want to close this ticket.

Closing this ticket as this was already resolved. Thanks to all for your valuable comments and please feel free to re-open the ticket if there's anything missed.

Thanks @dicortazar


Running into RecursionError: maximum recursion depth exceeded

Running a fairly simple workload to test out the expr. But quickly ran into a RecursionError issue
I can not share data but the code is following. I have ran it on coiled as well as on my laptop
pdf_raw = dd.read_parquet(
    files,  # list of 100 parquet files on s3
    columns=["cid, "pid", "pg", "pa"],
)

pdf_raw = pdf_raw.rename(columns={"pid": "product_id"})
pdf_raw = pdf_raw.fillna(value={"pg":"", "pa":""})
pdf_raw = pdf_raw[pdf_raw.pa.isin(['','YWRkdG9jYXJ0','cHVyY2hhc2Vk'])]

pdf_raw = pdf_raw.set_index("cid")

pdf_raw.head()

It begins by taking forever to "think". At least with regular dask, you can see task stream marching with each partitions to know its loading data etc.
In any case, almost within 5 seconds, it fails here
File ~/Code/python/revealwise/.venv/lib/python3.10/site-packages/pandas/core/dtypes/generic.py:38, in create_pandas_abc_type.<locals>._check(inst)
     37 def _check(inst) -> bool:
---> 38     return getattr(inst, attr, "_typ") in comp

RecursionError: maximum recursion depth exceeded while calling a Python object

My System details:  I have ran it on coiled as well as on my laptop
Python version       : 3.10.13
IPython version      : 8.17.2

Compiler    : Clang 16.0.3
OS          : Darwin
Release     : 22.6.0
Machine     : arm64
Processor   : arm
CPU cores   : 8
Architecture: 64bit

s3fs     : 2023.10.0
pandas   : 2.1.3
numpy    : 1.26.2
coiled   : 1.1.14
dask     : 2023.11.0
dask_expr: 0.2.0

Thx for the report. We are a little susceptible to recursions still because a few things aren't supported yet, I will take a look

I was able to fix the issue (is already on main)
I pushed out a release to pypi, conda-forge will follow after their bots pick up the release
A note regarding it takes a little to load: We do a bunch of optimisations before we start running actual code, your reproducer failed during the optimization step, that's why you can't see anything on the dask dashboard

Thanks Patrick for the ⚡ response!
Confirming that RecursionError is gone.

A note regarding it takes a little to load: We do a bunch of optimisations before we start running actual code, your reproducer failed during the optimization step, that's why you can't see anything on the dask dashboard

At least locally, I see that it has created something called a readparquet_fused_chunks and number of tasks has dropped by a lot. But I am assuming its reading in larger number of files at a time so the experience is a touch jarring perhaps.
Do you recommend any graph that might be useful to stare at whilst its thinking.
Thanks again for the speedy fix

Do you recommend any graph that might be useful to stare at whilst its thinking.

I'd expect thinking time to be sub-second at this stage for any reasonably sized query.  Do you experience something different?

It might be a little longer since we access the parquet file to get the columns. But not much longer if the internet connection is stable.
How many different files are you accessing?

At least locally, I see that it has created something called a readparquet_fused_chunks and number of tasks has dropped by a lot. But I am assuming its reading in larger number of files at a time so the experience is a touch jarring perhaps.

Previously, dask looked at the size of one file to figure out if one file should be a single partition in the Dask DataFrame. This didn't take dropped columns into account, which means that you could end up with tiny partitions if you only read a very small number of columns from the file. dask-expr takes the ration from columns to dropped columns into account and fuses different files together to avoid these issues

Hey All 👋🏽
first off ... this is not super pressing. I am embarrassed that I am bugging you about this.
Please take it as very minor feedback on ux. Matt is right that the thinking is sub-second. But now there maybe some additional optimization that is happening whereby it fuses all the reading in one step. Instead of seeing many tiny little read tasks on the graph, it seems to be doing the reading in one go. Might be purely psychological
See the little video to see what I mean. BTW, I am using 100 s3 files here. The work begins at 17:39:20 and ends at ~17:39:52 and no discernible visual indication of work (other than
https://recordit.co/Ovr3VeZHOs

Looks like it's small enough that it was all put into a single partition,
and so we lost parallelism.  Probably we should be sensitive to this case
and not fuse too aggressively.
Asif, thanks for being sensitive to what is urgent and non-urgent.  I
encourage you not to worry about over saturating us.  We're both quite
experienced at ignoring users when appropriate.  Dask-expr is at a state
where lots of micro-feedback is useful.
On Mon, Nov 20, 2023, 4:52 PM Asif Imran @.***> wrote:

Hey All 👋🏽
first off ... this is not super pressing. I am embarrassed that I am
bugging you about this.
Please take it as very minor feedback on ux. Matt is right that the
thinking is sub-second. But now there maybe some additional optimization
that is happening whereby it fuses all the reading in one step. Instead of
seeing many tiny little read tasks on the graph, it seems to be doing
the reading in one go. Might be purely psychological
See the little video to see what I mean. BTW, I am using 100 s3 files
here. The work begins at 17:39:20 and ends at ~17:39:52 and no discernible
visual indication of work (other than
https://recordit.co/Ovr3VeZHOs
—
Reply to this email directly, view it on GitHub
https://github.com/dask-contrib/dask-expr/issues/402#issuecomment-1819933761,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACKZTARORCR7SN4PK4VEYLYFPNJ7AVCNFSM6AAAAAA7TJZIF2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJZHEZTGNZWGE
.
You are receiving this because you commented.Message ID:
@.***>

Can you tell us the ratio of total number of columns to the number of columns you extracted from the file?

~ 50:1  (hey, we all have tech debts we are not proud of ;-)

Could you check what the number of partitions of pdf_raw is after the persist?, e.g. pdf_raw.npartitions will tell you that

Its been reduced to 1! This part is super super-surprising since I have been trying to use set-index after our phone convo. There should be at least 96 customer-ids (my index col). When I use vanilla dask.dataframe, I get 96

~ 50:1

Yeah, it seems like the io-fusion factor will indeed try to reduce the number of partitions by a lot for a case like this. This is a good data point for us to have right now.

Yes this is very helpful!
This gets us a lot closer to the single task we are seeing. I'd have expected 2 tasks though. Any chance that the optimiser was able to drop another couple of columns because they aren't used? I guess not, but want to be sure.
I think a good solution is to make the fusion factor dependent on the total number of partitions and adjust if we are fusing to agressively

Any chance that the optimiser was able to drop another couple of columns because they aren't used? I guess not, but want to be sure.

Nope. (In fact, I just noticed that I hand wrote the columns filter in the read_parquet)
Lovely! Happy to provide more data points if necessary. But glad to hear things are making sense to the experts.
I will try with lot (lot) more files next to see if it does anything different

Fine by me.  My guess is that in the future we'll want to be sensitive to the number of threads, but I'm happy to defer that to when it occurs.

I agree but we don't have access to this information at the moment
On Tue, Nov 21, 2023 at 3:14 PM Matthew Rocklin @.***>
wrote:

Fine by me. My guess is that in the future we'll want to be sensitive to
the number of threads, but I'm happy to defer that to when it occurs.
—
Reply to this email directly, view it on GitHub
https://github.com/dask-contrib/dask-expr/issues/402#issuecomment-1821003843,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOYQZGHICYPSBU5FT5FKTTLYFSZLBAVCNFSM6AAAAAA7TJZIF2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRRGAYDGOBUGM
.
You are receiving this because you were mentioned.Message ID:
@.***>

@aimran-adroll
I've pushed another release to pypi (0.2.2) that should give you 10 tasks instead of 1 if you want to give it a try.


Add Autopilot.ConfTarget attr and open channels with it

Description
This PR adds two configuration options for Autopilot:

Autopilot.OpenChanFeeRate typed as SatoshiPerVByte
Autopilot.ConfTarget typed as uint32

Both concern the fees that the autopilot will include in the open channel mainchain transactions. The former is an explicit satoshis per byte integer target, and the latter is a "attempt to confirm this transaction in n blocks or fewer".
Documentation
Here is the related issue.
TODOs

[x] add 'satoshis per byte' fee target option as well (currently I've only done 'confirm in n blocks please autopilot')
[ ] add tests?
[ ] document the new config option(s)

@Roasbeef @halseth could I get a quick review here please?

@halseth looks like this behavior has been in part implemented here... is that correct?  Is this PR still desired?

@mecampbellsoup That is a bit different, so this PR is still relevant. However, it looks like it needs a rebase :)

Implemented by #3177


Tree Traversal

Description

...
...
...

Related issue(s)

@UtkarshKislay Thanks for the PR! 🚀
Could you please add the documentation for it as well, as mentioned in the issue


Vitest

It looks like Vitest is not quite ready for us to use right now.
Let's close this PR for the moment and revisit in a few months when Vitest has moved forward.
Thanks for exploring @JacobMGEvans .


add "Credential Sync" error troubleshooting steps

It would be good to add a section for troubleshooting credential sync errors.
This typically happens when joining a new node to an existing IR.

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

ID: a0ed29b5-d097-26fd-eef8-2900d4bb8b51
Version Independent ID: 1d0127ec-3b86-c0b6-ba13-8b4e8cbc808c
Content: Troubleshoot self-hosted integration runtime in Azure Data Factory - Azure Data Factory
Content Source: articles/data-factory/self-hosted-integration-runtime-troubleshoot-guide.md
Service: data-factory
GitHub Login: @nabhishek
Microsoft Alias: abnarain

@jasonhorner - Thanks for your feedback. I have shared it with content owner for review.
@nabhishek - Can you please review the above feedback and update the document if appropriate.

@jasonhorner Thanks for the suggestion. @nabhishek Can you take a look at this suggestion for a future content improvement to this article? If you want to make it now, please do so. Or if you want to track it for later, reply back before closing the git issue so we can close the loop on the feedback. Thank you!

#reassign @lrtoyou1223

We have already added several credential sync troubleshooting in our public docs, please see:
Credential sync issue causes credential loss from HA
Self-hosted integration runtime nodes out of the sync issue

#please-close


Picking Stable Diffusion Model

Choose a pre-trained stable diffusion model from Huggingface and place it under shared google drive.
Given a general reason why choose it.
Create a Python script or collab notebook to generate images based on the input text.

Done, zitian picked Huggingface v1-5, see https://huggingface.co/runwayml/stable-diffusion-v1-5


[Bug]: npm run build error  import { toTypedSchema } from "@vee-validate/zod";          ^^^^^^^^^^^^^

Reproduction
https://vite.new
Describe the bug
script to run › build

<EMAIL_ADDRESS>build /Users/shadcn-vue
pnpm --filter www build

<EMAIL_ADDRESS>build /Users/johnny/safeis/shadcn-vue/apps/www
vitepress build

vitepress v1.4.1
⠏ building client + server bundles...
(!) Some chunks are larger than 500 kB after minification. Consider:

Using dynamic import() to code-split the application
Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
Export "Content" of module "../../node_modules/.pnpm/vitepress@1.4.1_@algolia+client-search@4.24.0_@types+node<EMAIL_ADDRESS>was reexported through module "../../node_modules/.pnpm/vitepress@1.4.1_@algolia+client-search@4.24.0_@types+node<EMAIL_ADDRESS>while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.
Either change the import in ".vitepress/theme/layout/MainLayout.vue?vue&type=script&setup=true&lang.ts" to point directly to the exporting module or reconfigure "output.manualChunks" to ensure these modules end up in the same chunk.
✓ building client + server bundles...
build error:
Named export 'toTypedSchema' not found. The requested module '@vee-validate/zod' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

import pkg from '@vee-validate/zod';
const { toTypedSchema } = pkg;
file:///Users/shadcn-vue/apps/www/.vitepress/.temp/app.js:43
import { toTypedSchema } from "@vee-validate/zod";
^^^^^^^^^^^^^
SyntaxError: Named export 'toTypedSchema' not found. The requested module '@vee-validate/zod' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from '@vee-validate/zod';
const { toTypedSchema } = pkg;
at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:217:5)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
at async build (file:///Users/shadcn-vue/node_modules/.pnpm/vitepress@1.4.1_@algolia+client-search@4.24.0_@types+node@22.7.7_postcss@8.4.47_search-insigh_godqktsonvfnxxvm7zg6qe46z4/node_modules/vitepress/dist/node/serve-4DnZ8_Si.js:48721:24)

/Users/johnny/safeis/shadcn-vue/apps/www:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL<EMAIL_ADDRESS>build: vitepress build
Exit status 1
 ELIFECYCLE  Command failed with exit code 1.
System Info
System:
    OS: macOS 14.6.1
    CPU: (8) arm64 Apple M1 Pro
    Memory: 91.69 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.14.0 - ~/.nvm/versions/node/v20.14.0/bin/node
    Yarn: 1.22.22 - ~/.nvm/versions/node/v20.14.0/bin/yarn
    npm: 10.8.2 - ~/.nvm/versions/node/v20.14.0/bin/npm
    pnpm: 9.14.4 - ~/.nvm/versions/node/v20.14.0/bin/pnpm
  Browsers:
    Chrome: 131.0.6778.109
    Safari: 17.6

Contributes

[ ] I am willing to submit a PR to fix this issue
[ ] I am willing to submit a PR with failing tests

rm  pnpm-lock.yaml
pnpm install
✅


Speedup data tests

replaces cifar data with dummy data of same structure. Reduces test time from ~1min on my local machine to ~1 second

@philswatton @jack89roberts happy to merge?


[A11y] Android voiceover doesn't announce individual numbers when moving the cursor

b/200100958

Steps to Reproduce
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Testing nested talkback app',
      theme: ThemeData(
        primaryColor: Colors.white,
      ),
      home: HomePage(),
    );
  }
}

class HomePage extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Testing nested talkback'),
      ),
      body: TextField(controller: TextEditingController(text: 'how are you'),),
    );
  }
}

turned on talkback and focus the textfield
double tap to start editing
use volumn keys to move the cursor

expects: the character is announced
actual: silence
Logs

Logs

@chunhtai
Android voiceover doesn't announce individual characters when moving the cursor with volume keys, it looks like a duplicate of https://github.com/flutter/flutter/issues/84920

close as duplicat


Glossary update

some gls adornments - need latest lsst-texmf

@drphilmarshall this is only glossaey update you can merge to your branch I think without issue.


join page does not work

I am using Firefox on android at https://huggingface.co/join
Filled in the form and tapped create a count and...

Can you give a screenshot of the error?

Must have been a temporary glitch your side or mone.  Working now


Documentation: start new documentation using GitBook

https://www.gitbook.com

As I suggested in channel, I think we should use the Asciidoc(tor) toolchain they have available. It has better features for the broader requirements in full docs.

Related but interesting, there's a theme for publishing API documentation in GitBook. Possibilities! https://plugins.gitbook.com/plugin/theme-api

It also does FAQ, cool! https://help.gitbook.com/basics/for-faq-documentation.html

Using readme.io for this.


Homarr just updated and erased my entire configuration.

Environment
Docker
Version
0.14.4
Describe the problem
Homarr just updated and erased my entire configuration.
Logs
https://pastebin.com/raw/nFUGBvbH
Context
Homarr just updated and erased my entire configuration. Its very frustrating.
Please tick the boxes

[X] I confirm that I attached the proper logs
[X] I've read the docs
[X] I've checked for duplicate issues
[X] I've tried to debug myself

Hi, please post your compose.
When did you set up Homarr?
Can you restore a backup?

Hello 👋, since there hasn't been any activity from OP, we'll close this issue. Thanks for your understanding


Update recovering-your-ssh-key-passphrase.md

Why:
Closes [issue link]

What's being changed:

Check off the following:

[ ] I have reviewed my changes in staging (look for the latest deployment event in your pull request's timeline, then click View deployment).
[ ] For content changes, I have completed the self-review checklist.

Writer impact (This section is for GitHub staff members only):

[ ] This pull request impacts the contribution experience

[ ] I have added the 'writer impact' label
[ ] I have added a description and/or a video demo of the changes below (e.g. a "before and after video")

@nylzen This seems to be opened accidentally, I am going to close it now :yellow_heart: Take a look at the contributing.md to learn how to contribute in this repo. You can open a discussion if you have any questions :sparkles:


Suggestion: Time Format setting

I have attached a suggestion for adding a setting for the time format for the interstitial notes.
I use this for brief follow-up notes after meetings, and they are usually not the same day, so I want to log the date of the note as well.
I thought about applying the time format when the note is displayed instead of hard-coding it into the actual note (e.g. entering "<$view tiddler="20230328132131" field="title" format="date" template=<<kara-time-format>> />" into the actual note), but that would require a global macro.
kara_timeformat.zip

I ended up creating my own plugin, somewhat based on/inspired by Kara, since what I want isn't really "interstitial journaling", but follow-up notes. I also save the additional notes as their own tiddlers.
A demo here: https://cdaven.github.io/tiddlywiki/postscript.html


Comparable map type

Part of #634.
Follow-up for #822.

Codecov Report

Merging #847 (d20f5fe) into feature/map-type (5d302c7) will not change coverage.
The diff coverage is n/a.

@@                Coverage Diff                @@
##           feature/map-type     #847   +/-   ##
=================================================
  Coverage             81.66%   81.66%
=================================================
  Files                   362      362
  Lines                 33884    33884
=================================================
  Hits                  27672    27672
  Misses                 6212     6212

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 5d302c7...d20f5fe. Read the comment docs.


Issue in configuring ros_bridge

Hi Guys,
This  issue has been reported before, however the approach I used is different so I am posting it as a new issue.
System : Ubuntu 16.04
Carla Version : 0.8.4 - Pre-compiled (downloaded from https://drive.google.com/file/d/18OaDbQ2K9Dcs25d-nIxpw3GPRHhG1r_2/view)
I have built the Carla from the source code (using the master branch from Github) however I was not able to find the CarlaUE4.sh file to launch the simulator. So I have used the below approach to configure the ros_bridge.

Downloaded the pre-compiled Carla (0.8.4)
Found there is no carla_ros_bridge in the directory.
Copied the carla_ros_bridge from built code to the pre-compiled one
Followed the procedure given in the below link  https://github.com/carla-simulator/carla/tree/master/carla_ros_bridge
While running the below command
rostest carla_ros_bridge ros_bridge_client.test
Got the error : [ros_bridge_client.test] is neither a launch file in package [carla_ros_bridge] nor is [carla_ros_bridge] a launch file name
Fixed it by sourcing the catkin workspace  source ~/ros/catkin_ws_for_carla/devel/setup.bash
Now I am getting the below error, could you please help me to get the solution for this please.

... logging to /home/kk/.ros/log/rostest-kk-Lenovo-ideapad-320-15ISK-7012.log
[ROSUNIT] Outputting test results to /home/kk/.ros/test_results/carla_ros_bridge/rostest-test_ros_bridge_client.xml
Traceback (most recent call last):
  File "/home/kk/ros/catkin_ws_for_carla/src/carla_ros_bridge/src/carla_ros_bridge/client.py", line 8, in <module>
    from carla.client import make_carla_client
  File "/home/kk/Carla/CARLA_0.8.4/PythonClient/carla/client.py", line 14, in <module>
    from . import sensor
  File "/home/kk/Carla/CARLA_0.8.4/PythonClient/carla/sensor.py", line 19, in <module>
    from .transform import Transform, Translation, Rotation, Scale
  File "/home/kk/Carla/CARLA_0.8.4/PythonClient/carla/transform.py", line 18, in <module>
    from . import carla_server_pb2 as carla_protocol
  File "/home/kk/Carla/CARLA_0.8.4/PythonClient/carla/carla_server_pb2.py", line 6, in <module>
    from google.protobuf import descriptor as _descriptor
  File "/home/kk/.local/lib/python2.7/site-packages/google/protobuf/__init__.py", line 37, in <module>
    __import__('pkg_resources').declare_namespace(__name__)
  File "/home/kk/.local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 55, in <module>
    from pkg_resources.extern import six
  File "/home/kk/.local/lib/python2.7/site-packages/pkg_resources/extern/__init__.py", line 43, in load_module
    __import__(extant)
  File "/home/kk/.local/lib/python2.7/site-packages/pkg_resources/_vendor/six.py", line 1, in <module>
    """Utilities for writing code that runs on Python 2 and 3"""
KeyboardInterrupt
Traceback (most recent call last):
  File "/opt/ros/kinetic/share/rostest/nodes/publishtest", line 155, in <module>
    rostest.run(PKG, NAME, PublishTest, sys.argv)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rostest/__init__.py", line 141, in rosrun
    suite = unittest.TestLoader().loadTestsFromTestCase(test)
  File "/usr/lib/python2.7/unittest/loader.py", line 56, in loadTestsFromTestCase
    loaded_suite = self.suiteClass(map(testCaseClass, testCaseNames))
  File "/opt/ros/kinetic/share/rostest/nodes/publishtest", line 94, in __init__
    rospy.init_node(NAME)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/client.py", line 323, in init_node
    raise rospy.exceptions.ROSInitException("init_node interrupted before it could complete")
rospy.exceptions.ROSInitException: init_node interrupted before it could complete
[Testcase: testtestTopics] ... ERROR!
ERROR: max time [20.0s] allotted for test [testTopics] of type [rostest/publishtest]
  File "/usr/lib/python2.7/unittest/case.py", line 329, in run
    testMethod()
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rostest/runner.py", line 148, in fn
    self.test_parent.run_test(test)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rostest/rostest_parent.py", line 132, in run_test
    return self.runner.run_test(test)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/launch.py", line 684, in run_test
    (test.time_limit, test.test_name, test.package, test.type))
--------------------------------------------------------------------------------

[ROSTEST]-----------------------------------------------------------------------

SUMMARY
 * RESULT: FAIL
 * TESTS: 0
 * ERRORS: 1
 * FAILURES: 0

rostest log file is in /home/kk/.ros/log/rostest-kk-Lenovo-ideapad-320-15ISK-7012.log

Is the approach I used is feasible ?
In case if we build the project from Scratch I dont see the CarlaUE4.sh in the built directory. Could you please clarify?
Thank you,
KK

Hi @kk2491.

I have built the Carla from the source code (using the master branch from Github) however I was not able to find the CarlaUE4.sh file to launch the simulator.

First of all, take a look at well-known issue #22 ;)

Hi Guys,
This issue has been reported before, however the approach I used is different so I am posting it as a new issue.
System : Ubuntu 16.04
Carla Version : 0.8.4 - Pre-compiled (downloaded from https://drive.google.com/file/d/18OaDbQ2K9Dcs25d-nIxpw3GPRHhG1r_2/view)
I have built the Carla from the source code (using the master branch from Github) however I was not able to find the CarlaUE4.sh file to launch the simulator. So I have used the below approach to configure the ros_bridge.

Downloaded the pre-compiled Carla (0.8.4)
Found there is no carla_ros_bridge in the directory.
Copied the carla_ros_bridge from built code to the pre-compiled one
Followed the procedure given in the below link  https://github.com/carla-simulator/carla/tree/master/carla_ros_bridge
While running the below command
rostest carla_ros_bridge ros_bridge_client.test
Got the error : [ros_bridge_client.test] is neither a launch file in package [carla_ros_bridge] nor is [carla_ros_bridge] a launch file name
Fixed it by sourcing the catkin workspace      source ~/ros/catkin_ws_for_carla/devel/setup.bash
Now I am getting the below error, could you please help me to get the solution for this please.

... logging to /home/kk/.ros/log/rostest-kk-Lenovo-ideapad-320-15ISK-7012.log
[ROSUNIT] Outputting test results to /home/kk/.ros/test_results/carla_ros_bridge/rostest-test_ros_bridge_client.xml
Traceback (most recent call last):
  File "/home/kk/ros/catkin_ws_for_carla/src/carla_ros_bridge/src/carla_ros_bridge/client.py", line 8, in <module>
    from carla.client import make_carla_client
  File "/home/kk/Carla/CARLA_0.8.4/PythonClient/carla/client.py", line 14, in <module>
    from . import sensor
  File "/home/kk/Carla/CARLA_0.8.4/PythonClient/carla/sensor.py", line 19, in <module>
    from .transform import Transform, Translation, Rotation, Scale
  File "/home/kk/Carla/CARLA_0.8.4/PythonClient/carla/transform.py", line 18, in <module>
    from . import carla_server_pb2 as carla_protocol
  File "/home/kk/Carla/CARLA_0.8.4/PythonClient/carla/carla_server_pb2.py", line 6, in <module>
    from google.protobuf import descriptor as _descriptor
  File "/home/kk/.local/lib/python2.7/site-packages/google/protobuf/__init__.py", line 37, in <module>
    __import__('pkg_resources').declare_namespace(__name__)
  File "/home/kk/.local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 55, in <module>
    from pkg_resources.extern import six
  File "/home/kk/.local/lib/python2.7/site-packages/pkg_resources/extern/__init__.py", line 43, in load_module
    __import__(extant)
  File "/home/kk/.local/lib/python2.7/site-packages/pkg_resources/_vendor/six.py", line 1, in <module>
    """Utilities for writing code that runs on Python 2 and 3"""
KeyboardInterrupt
Traceback (most recent call last):
  File "/opt/ros/kinetic/share/rostest/nodes/publishtest", line 155, in <module>
    rostest.run(PKG, NAME, PublishTest, sys.argv)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rostest/__init__.py", line 141, in rosrun
    suite = unittest.TestLoader().loadTestsFromTestCase(test)
  File "/usr/lib/python2.7/unittest/loader.py", line 56, in loadTestsFromTestCase
    loaded_suite = self.suiteClass(map(testCaseClass, testCaseNames))
  File "/opt/ros/kinetic/share/rostest/nodes/publishtest", line 94, in __init__
    rospy.init_node(NAME)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/client.py", line 323, in init_node
    raise rospy.exceptions.ROSInitException("init_node interrupted before it could complete")
rospy.exceptions.ROSInitException: init_node interrupted before it could complete
[Testcase: testtestTopics] ... ERROR!
ERROR: max time [20.0s] allotted for test [testTopics] of type [rostest/publishtest]
  File "/usr/lib/python2.7/unittest/case.py", line 329, in run
    testMethod()
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rostest/runner.py", line 148, in fn
    self.test_parent.run_test(test)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rostest/rostest_parent.py", line 132, in run_test
    return self.runner.run_test(test)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/launch.py", line 684, in run_test
    (test.time_limit, test.test_name, test.package, test.type))
--------------------------------------------------------------------------------

[ROSTEST]-----------------------------------------------------------------------

SUMMARY
 * RESULT: FAIL
 * TESTS: 0
 * ERRORS: 1
 * FAILURES: 0

rostest log file is in /home/kk/.ros/log/rostest-kk-Lenovo-ideapad-320-15ISK-7012.log

Is the approach I used is feasible ?
In case if we build the project from Scratch I dont see the CarlaUE4.sh in the built directory. Could you please clarify?
Thank you,
KK

hi, have you already fixed this problem? I compiled the ros_bridge.py without any problem, but it still doesn't work. Do you know what may happens?