'elm' not found

Current behavior
'elm' not found message is shown on the prompt
Expected behavior
no error message even if elm isn't present in the system
Relevant Zsh configuration (.zshrc)
# load zplug
source "${HOME}/.zplug/init.zsh"

zplug "denysdovhan/spaceship-prompt", use:spaceship.zsh, from:github, as:theme

# Install plugins if there are plugins that have not been installed
if ! zplug check --verbose; then
    printf "Install? [y/N]: "
    if read -q; then
        echo; zplug install
    fi
fi

# Then, source plugins and add commands to $PATH
zplug load --verbose

Environment
Spaceship version: 3.7.0
Zsh version: 5.6.2
Zsh framework: None
Zsh plugin manager: zplug
Terminal emulator: Termite & tmux
Operating system: Arch Linux
Screenshot
Provide a screenshot that shows your issue.

Possible solution
check if elm is present otherwise ignore the related section

Section does exits if there is no elm binary in path or if there are no relevant files.
https://github.com/denysdovhan/spaceship-prompt/blob/2e36433aa0aae917986d52b66822be962b3791a7/sections/elm.zsh#L25-L27
But we could go one step and exits section if there are information returned from elm --version command, Which we do some sections. Could you please provide a bit context to the issue.

Do you've elm installed ?
Was there any elm relevant files in the directory ?

Elm wasn't installed, and I have no idea what files could be relevant to
elm, but I'm pretty sure I don't have any since I never installed elm
On Sun, Oct 21, 2018, 2:05 AM Salmanul Farzy<EMAIL_ADDRESS>wrote:

Section does exits if there is no elm binary in path or if there are no
relevant files.
https://github.com/denysdovhan/spaceship-prompt/blob/2e36433aa0aae917986d52b66822be962b3791a7/sections/elm.zsh#L25-L27
But we could go one step and exits section if there are information
returned from elm --version command, Which we do some sections. Could you
please provide a bit context to the issue.

Do you've elm installed ?
Was there any elm relevant files in the directory ?

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/denysdovhan/spaceship-prompt/issues/535#issuecomment-431599636,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAP7d3gaHWBsOorX_yaxR83vvnvQAMHCks5um1fAgaJpZM4Xxzkf
.

I'm unable to reproduce this, This directory containts elm.json file.

Could you please share a gist of setopt xtrace output ?

@salmanulfarzy 	thanks for looking into it. Strange indeed.
Here's the setopt xtrace output:
https://gist.github.com/Fandekasp/2f366e86fa69d6dabffb7b1cae0dc295

This is strange. If you don't have elm in your path, this should be the output (from test setup)
+spaceship::compose_prompt:11> section=elm
+spaceship::compose_prompt:12> spaceship::defined spaceship_elm
+spaceship::defined:1> typeset -f + spaceship_elm
+spaceship::compose_prompt:13> spaceship_elm
+spaceship_elm:1> [[ true == false ]]
+spaceship_elm:3> [[ -f elm.json || -f elm-package.json || -d elm-stuff || -n '' ]]
+spaceship_elm:3> return

Instead of this (from gist:L281-L308)
 +spaceship::compose_prompt:11> section=elm
 +spaceship::compose_prompt:12> spaceship::defined spaceship_elm
 +spaceship::defined:1> typeset -f + spaceship_elm
 +spaceship::compose_prompt:15> spaceship::section red \''elm'\'' not found'
 +spaceship::section:1> local color prefix content suffix
 +spaceship::section:2> [[ -n red ]]
 +spaceship::section:2> color='%F{red}'
 +spaceship::section:3> [[ -n \''elm'\'' not found' ]]
 +spaceship::section:3> prefix=\''elm'\'' not found'
 +spaceship::section:4> [[ -n '' ]]
 +spaceship::section:4> content=''
 +spaceship::section:5> [[ -n '' ]]
 +spaceship::section:5> suffix=''
 +spaceship::section:7> [[ -z '' && -z '' ]]
 +spaceship::section:7> content=\''elm'\'' not found' prefix=''
 +spaceship::section:9> echo -n '%{%B%}'
 +spaceship::section:10> [[ true == true ]]
 +spaceship::section:10> [[ true == true ]]
 +spaceship::section:11> echo -n ''
 +spaceship::section:13> spaceship_prompt_opened=true
 +spaceship::section:14> echo -n '%{%b%}'
 +spaceship::section:16> echo -n '%{%B%F{red}%}'
 +spaceship::section:17> echo -n \''elm'\'' not found'
 +spaceship::section:18> echo -n '%{%b%f%}'
 +spaceship::section:20> echo -n '%{%B%}'
 +spaceship::section:21> [[ true == true ]]
 +spaceship::section:22> echo -n ''
 +spaceship::section:24> echo -n '%{%b%}'

This is skipping conditionals in the elm section, while other sections proceed normally. I'll try to take a look  into it. Meanwhile could you try reinstalling prompt ? Sorry for the trouble.

Related to https://github.com/zplug/zplug/issues/505

Reinstalled spaceship-prompt, no change in behavior.
Confirmed that there is no elm anywhere in my system.
spaceship-prompt works fine with zgen, not zprompt
zprompt works ok without spaceship-prompt
tried installing elm (we're talking about the programming language, right ?) with npm install, and I still have the error shown.

Error Section 'elm' have not been loaded happens if section is not found on sections/elm.zsh or if there is no spaceship::defined spaceship_elm.
Could you please verify there is elm.zsh under $ZPLUG_HOME/repos/denysdovhan/spaceship-prompt/sections and check output of which spaceship_elm ?

Closing because of inactivity. @Fandekasp feel free to reopen if you need any additional help.

I was having this same issue, along with another that said, " Section 'elm' have not been loaded". I fixed both issues by commenting out the terraform section in the SPACESHIP_PROMPT_ORDER: https://github.com/denysdovhan/spaceship-prompt/blob/master/docs/Troubleshooting.md#why-is-my-prompt-slow


Use dynamic probing

Currently, only a pre-defined set of known locations is searched. There are two more options that have a higher chance of success on systems with a custom install location:

Find the openssl binary and run openssl version -d
Find the libcrypto.so library and call SSLeay_version(SSLEAY_DIR)

The thing is, that currently openssl-probe doesn't depend on openssl. It looks for ssl certs.
It is e.g. used in combination with rustls to provide tls features without openssl.


chore: stop the periodic commit when the test EVM chain is stopped

Overview

Checklist

[ ] New and updated code has appropriate documentation
[ ] New and updated code has new and/or updated testing
[ ] Required CI checks are passing
[ ] Visual proof for any user facing features like CLI or documentation updates
[ ] Linked issues closed with keywords

Codecov Report

Merging #123 (3eeb02f) into main (51e39f8) will increase coverage by 6.65%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #123      +/-   ##
==========================================
+ Coverage   54.78%   61.44%   +6.65%
==========================================
  Files          10       11       +1
  Lines         460      625     +165
==========================================
+ Hits          252      384     +132
- Misses        165      194      +29
- Partials       43       47       +4

Impacted Files
Coverage Δ

p2p/querier.go
80.00% <0.00%> (ø)

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


django.core.context_processors depreceated?

I am trying to use the Nexus Reader in python 3.7 and i get the message:
from django.core.context_processors import csrf
ModuleNotFoundError: No module named 'django.core.context_processors'

It looks like context_processors have been moved to django.template.context_processors
https://docs.djangoproject.com/en/1.9/releases/1.8/#django-core-context-processors
I will have a look through the code tomorrow to see if this just requires the name change or somethin more severe.

Wrong package, think you've installed https://pypi.org/project/nexus/, rather than this thing. Try "pip install python-nexus" rather than 'nexus'?

Whoops. Sorry about that. Mostly left this as a note for myself to check in
more detail later. But should've checked more detail first!
On Thu, 12 Dec 2019, 19:37 Simon J Greenhill<EMAIL_ADDRESS>wrote:

Wrong package, think you've installed https://pypi.org/project/nexus/,
rather than this thing. Try "pip install python-nexus" rather than 'nexus'?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/SimonGreenhill/python-nexus/issues/12?email_source=notifications&email_token=AAM3DD57V3W2KAAINZMO72DQYKHF7A5CNFSM4J2B7KZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGXY3ZA#issuecomment-565153252,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAM3DD732DGD66PNFACZCILQYKHF7ANCNFSM4J2B7KZQ
.


use CLA assistant like openui5

https://github.com/SAP/openui5/blob/master/CONTRIBUTING.md
also remove the CLA PDF from the repo.

using https://cla-assistant.io/


[Draft] Make python310Packages usable

Motivation for this change
more "controversial" side of #100384
The python packaging toolchain doesn't support 3.10 yet, this is more opinionated changes to the package set
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Going to close this, and wait for the next dev release.
context: https://github.com/python/cpython/pull/22858


Add conditional monkeypatching for threads (see issue #2250)

Mass monkeypatching via monkey.patch_all() in some setups did lead to double patching and incompatibilities e.g. with boto3 modules, hence there was a proposition to patch only the thread module if it wasn't patched yet.

I dont think that is a good fix, it deadlocked all tests :)
What I meant was "only apply the patches that have not yet been applied", your change makes it so that everything except threading is never patched.

I dont think that is a good fix, it deadlocked all tests :)
What I meant was "only apply the patches that have not yet been applied", your change makes it so that everything except threading is never patched.

Ok. I had a solution like this,
import inspect

[monkey._patch_module(module) for module in inspect.getfullargspec(monkey.patch_all).args
 if not monkey.is_module_patched(module)]

but it seems that gevent's single-module patching function doesn't match the possible imports:
ImportError while importing test module '~/Development/cvat/tests/python/rest_api/test_load_register.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/python/rest_api/test_load_register.py:5: in <module>
    import locust
.env/lib/python3.9/site-packages/locust/__init__.py:12: in <module>
    [monkey._patch_module(module) for module in inspect.getfullargspec(monkey.patch_all).args
.env/lib/python3.9/site-packages/locust/__init__.py:12: in <listcomp>
    [monkey._patch_module(module) for module in inspect.getfullargspec(monkey.patch_all).args
.env/lib/python3.9/site-packages/gevent/monkey.py:462: in _patch_module
    gevent_module, target_module, target_module_name = _check_availability(name)
.env/lib/python3.9/site-packages/gevent/monkey.py:448: in _check_availability
    gevent_module = getattr(__import__('gevent.' + name), name)
E   ModuleNotFoundError: No module named 'gevent.dns'

and if I use it this way:
[monkey.patch_module(module, 'gevent.' + str(module)) for module in inspect.getfullargspec(monkey.patch_all).args
 if not monkey.is_module_patched(module)]

gevent raises a BadImplements error:
tests/python/rest_api/test_load_register.py:5: in <module>
    import locust
.env/lib/python3.9/site-packages/locust/__init__.py:12: in <module>
    [monkey.patch_module(module, 'gevent.' + str(module)) for module in inspect.getfullargspec(monkey.patch_all).args
.env/lib/python3.9/site-packages/locust/__init__.py:12: in <listcomp>
    [monkey.patch_module(module, 'gevent.' + str(module)) for module in inspect.getfullargspec(monkey.patch_all).args
.env/lib/python3.9/site-packages/gevent/monkey.py:400: in patch_module
    raise _BadImplements(source_module)
E   gevent.monkey._BadImplements: Module 'gevent.socket' has a bad or missing value for __implements__

so the solution is probably either creating a list with module names beforehand or mapping module names to patch_x methods.
What am I missing here?

Not sure. if only threading causes issues with double patching (docs are kind of vague on whether it is allowed to double patch), then maybe you can just do patch_all(thread=False) in that case. That reduces the change as well.

Not sure. if only threading causes issues with double patching (docs are kind of vague on whether it is allowed to double patch), then maybe you can just do patch_all(thread=False) in that case. That reduces the change for everyone else as well.

The error emerged not because of thread, but because of ssl double patching, which is stated in the warnings in my bug report:
.env/lib/python3.9/site-packages/locust/__init__.py:11
  /home/inpv/Development/cvat/.env/lib/python3.9/site-packages/locust/__init__.py:11: MonkeyPatchWarning: Monkey-patching ssl after ssl has already been imported may lead to errors, including RecursionError on Python 3.6. It may also silently lead to incorrect behaviour on Python 3.7. Please monkey-patch earlier. See https://github.com/gevent/gevent/issues/1016. Modules that had direct imports (NOT patched): ['urllib3.util (/home/inpv/Development/cvat/.env/lib/python3.9/site-packages/urllib3/util/__init__.py)', 'urllib3.util.ssl_ (/home/inpv/Development/cvat/.env/lib/python3.9/site-packages/urllib3/util/ssl_.py)'].
    monkey.patch_all()

and
.env/lib/python3.9/site-packages/locust/__init__.py:11
  /home/inpv/Development/cvat/.env/lib/python3.9/site-packages/locust/__init__.py:11: MonkeyPatchWarning: Patching more than once will result in the union of all True parameters being patched
    monkey.patch_all()

For example, the solution below works in my case:
if monkey.is_module_patched("ssl"):
    monkey.patch_all(ssl=False)

I think a solution could be to introduce an environment variable that'll disable all monkey patching if it's set, and it'll then be up to the user to patch stuff themselves. I like this because it won't break any existing code.

The updated PR is still broken. If there is no sensible way to iterate over all things that can be patched then something like this is more appropriate (and backwards compatible).
if monkey.is_module_patched("ssl"):
    monkey.patch_all(ssl=False)
else:
    monkey.patch_all()

I dont think we need an env var/setting for this because it is kind of obvious what the user wants (patch all things that have not yet been patched, but not more).

I dont think we need an env var/setting for this because it is kind of obvious what the user wants (patch all things that have not yet been patched, but not more).

There might be cases (such as the original issue in #2250) where a third-party lib is incompatible with monkey patching. Then it might make sense to provide a way to disable it entirely and let the user handle the monkey patching themselves (Locust itself should only need socket monkey patching, I think, but auto-patching all the stuff should provide a better user experience in most cases).

I think my suggestion sovlves the original issue and has no real down sides (nobody should ever want to re-patch stuff)
A settings for bypassing monkey patching entirely might be useful in some cases, but it isnt needed for this issue. The third party lib in this case is not incompatible with monkey patching, just with applying monkey patching twice.


Change variable names from primes to underscores

Elm 0.18 removed primes in variables names in favour of underscores as outlined here: https://github.com/elm-lang/elm-platform/blob/master/upgrade-docs/0.18.md#no-more-primes
This commit is to reflect these changes in the style-guide docs.

This fix looks good to merge to me :)


Performance Issues - Multiple Cacheless Generate Calls

Coming here from this issue over on transformers. Looks like I'm no longer getting the error I was getting earlier but there are still performance issues.
Taking a look at the code, the key issue is that it's calling generate once for every value and there's no caching the key and value tensors so a ton of work is being done multiple times. On my machine the example code takes about 4 seconds to generate when using gpt2 as a model when it normally takes about 0.25 seconds to generate a comparable amount of text with free form generation.
I see two solutions:

Cache the keys and values so that work isn't getting redone every generate call. I thought the transformers library had some built in functionality for this but I went looking just now and couldn't find it. Hopefully I'm missing something.
Use the approach in my implementation. I create a DFA for the desired schema then make a single call to generate, using the DFA to determine which tokens are legal continuations each time the callable passed as the prefix_allowed_tokens_fn argument in generate gets called. My approach does have the problem mentioned in the other issue, which is that it's very slow when implemented in Python so it would need to be done in C/C++/Rust. It would also basically be a complete rewrite of this library.

@Ryul0rd I ran a bunch of performance tests, running generate with max_new_tokens=1 100 times in a loop is not that much slower than running generate once with max_new_tokens=100
The tranformers library's sample implementation seems to be doing this in Python, inside a while loop.
However, I did track down the source of the slowness, which was caused by the non-vectorized implementation of the number logit warper. This should be fixed in 0.11.0, with much better performance (I'm seeing a 4x speedup on the large example in the readme)

I just ran the 1 token 100 times vs the 100 tokens 1 time test and using GPT2 on CPU there's a ~45x speed difference.


585 coin animation on and off switchable

🍰 Pullrequest
coin animation on and off switchable in user settings

Issues

fixes #585

todo: @Elweyn @Mogge
es müssen im store ein neuer punkt eingefügt werden "coinanimation"

dieser sollte wohl auch in der DB für den user exestieren

@ulfgebhardt, @clauspeterhuebner,
@ogerly and me are speaking about this issue. And their would be some todos on the backend.

[ ] Database User stores the coinanimation flag
[ ] Get User in Apollo and LoginServer gives back the coinanimation flag of a User
[ ] Update User in LoginServer can update the coinanimation flag of a User

classe anpassen from style

@einhornimmond Assigned you to this task/PR since we need to store the flag to the database in the user table

So, coinanimation will be stored in new settings table (key-value approach)
It will be saved from frontend and load by login into frontend
Attention: to get database migration to work, database_build volume must be deleted first and database must be builded.
By testing it coinanimation don't seem to stop after disabling it and the locale for it is also missing.

sehr geil


JWT Authentication and RFC7523 fails with Custom Domain

Preflight checklist

[X] I could not find a solution in the existing issues, docs, nor discussions.
[X] I agree to follow this project's Code of Conduct.
[X] I have read and am following this repository's Contribution Guidelines.
[X] This issue affects my Ory Network project.
[X] I have joined the Ory Community Slack.
[X] I am signed up to the Ory Security Patch Newsletter.

Describe the bug
After configuring custom domains for our Ory project, we noticed two features were not working with the Custom Domain.

private_key_jwt grant type for oAuth2 Clients that want to Authenticate with Asymmetric JWT Signing (Authentication Method / JWT Authentication)
RFC7523 Token Exchange using Trusted Relationships

Both are failing to function with the new Custom Domain. However when the *.oryapis.com domain is used, they are able to function and issue tokens with the new custom domain.
Reproducing the bug

Create Ory Network Authorization Server
Create one oAuth Client with JWT Authentication and set public keys
Perform private_key_jwt grant and observe that everything works
Setup Custom Domain for your Authorization Server
Configure your Hydra / Identity to work with the new Custom Domain (issuer url etc)
Try to do private_key_jwt grant with the new custom domain

Relevant log output
Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method). Claim 'audience' from 'client_assertion' must match the authorization server's token endpoint

### Relevant configuration

_No response_

### Version

Ory Network

### On which operating system are you observing this issue?

None

### In which environment are you deploying?

None

### Additional Context

_No response_

Duplicates #299


Add ability to cancel running pomodoro

I'm not very experienced with the pomodoro method, so I don't know if this goes against some sort of principle. But, it would be nice to be able to cancel the currently running pomodoro.
This was especially noticeable when testing out the slack integration and wanting to end the test pomodoro. I could also see use during normal work, though: if you accidentally start a pomodoro (maybe using the wrong command) or start a pomodoro and then realize you won't be able to properly finish it (upcoming meeting, etc.).

I'll think about this, but I've got a bunch of things which will have to come first.
I originally wanted the app to mimic a real physical timer, so not being able to stop it was part of the design, but this is a question that comes up from time to time, so, once I get the rest of the backlog done, I might look at it again.

Yep, that's fair.
As far as modeling a physical timer, another option might be allowing restarting the timer instead of simply canceling it. This would be comparable to cranking the timer back up to 25 min.

Thanks for the work on this! I've been using this with a team of 4 on Slack and it's really helped us. Interrupting or canceling a pomodoro is a part of the process. Here's a link to the wiki page with the relevant section highlighted: http://scrible.com/s/ifwk6
I am thinking a /stopwork, /abandon or /interrupt would be good.
Thanks again!


xorg-server: 21.1.7 -> 21.1.8 fixes CVE-2023-1393

Description of changes
Upstream announcement: https://lists.x.org/archives/xorg-announce/2023-March/003377.html

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

@ofBorg build xorg.xorgserver

For 22.11 we'd patch just the CVE, I expect.

OK, so done in https://github.com/NixOS/nixpkgs/pull/225125


Tableau getting started doc

Design and push a pattern from #1572

27 Nov - first draft to content review (proof reader sent)

4 Dec - image added. TODO: add link (Tableau server) to file.

6 Dec - blocked | discussion call tomorrow (link to Tableau server).

11 Dec - need to verify access request.

18 Dec - Confluence page has been created. Just need the site to be updated and will be merged today,


Redundant notifications

Issue: Redundant notifications appear as seen here
http://i.imgur.com/xt3Y6eU.jpg
Reproduce:
Have port check already fail, then click retry

Thank you for testing and reporting!
On your screenshot I see that the notification Icons do not work for you. How did you run the client? Do you have src/main/resources/font/fontawesome-webfont.ttf?

Once I get home tonight I'll be able to tell you, I set it up with tatsu, he noticed the issue too.


#339 RsPrettyXML is losing

Fix for https://github.com/yegor256/takes/issues/339 (#339 RsPrettyXML is losing )

@dimonn12 Thanks, I will find someone to review this PR soon

@pinaf it's yours, please review

@dimonn12 any specific reason for upgrading saxxon?

@dimonn12 5 comments above

@pinaf old versions of saxon do not have HTML5Emtitter and they can't work in cases where there is no public id or system id. Prior case was to add  which is used for HTML5.

@pinaf fixed. Any more comments?

@rultor merge

@rultor merge

@pinaf Thanks for your request. @yegor256 Please confirm this.

@rultor try to merge

@rultor try to merge

@yegor256 OK, I'll try to merge now. You can check the progress of the merge here

@rultor try to merge

@yegor256 Done! FYI, the full log is here (took me 12min)

@ypshenychka please, let us know what do you think about this ticket, according to our QA rules

@rultor deploy pls

@rultor deploy pls

@davvd OK, I'll try to deploy now. You can check the progress here

@rultor deploy pls

@davvd Done! FYI, the full log is here (took me 10min)

@dimonn12

dimonn12 added a note 3 days ago
html5 specification says that it can have only  or . So if at least one id is not null - it will be not html5 and will be parsed as html4 or xhtml.

According to our QA Rules:

Messages in a ticket always start with a name of a user they are addressed to.

Please correct your message by indicating an addressee in the beginning.

@ypshenychka done

@dimonn12 thanks

@davvd Quality is acceptable.

@davvd Quality is acceptable.

@ypshenychka thanks a lot, next time everybody should try to make it better

@pinaf just added 10 mins to @ypshenychka (for QA), payment ID is 65343440
thanks, I just added 18 mins to your account, payment AP-61R854433W306001V, 51 hours and 14 mins spent
you're getting extra minutes here (c=3)
+18 added to your rating, current score is: +3891


Old Aliases Showing up in Uncategorized

Why are the old aliases showing up in the uncategorized list again?
Uncategorized
  help                                       Alias for list
  list-commands                              Lists help
  selfupdate                                 Updates the pestle.phar file to the latest version
  generate-pestle-command                    Generates pestle command boiler plate
  generate-di                                Injects a dependency into a class constructor
  generate-acl                               Generates Magento 2 acl.xml
  generate-command                           Generates bin/magento command files
  generate-config-helper                     Generates a help class for reading Magento's configuration
  generate-crud-model                        Generates Magento 2 CRUD model
  generate-install                           Generates Magento 2 install
  generate-layout-xml                        ALPHA: Is this needed/working anymore?
  generate-menu                              Generates Magento 2 menu.xml
  generate-module                            Generates new module XML, adds to file system
  generate-observer                          Generates Magento 2 Observer
  generate-plugin-xml                        Generates plugin XML
  generate-psr-log-level                     For conversion of Zend Log Level into PSR Log Level
  generate-registration                      Generates registration.php
  generate-route                             Creates a Route XML
  generate-theme                             Generates Magento 2 theme configuration
  generate-view                              Generates a Magento 2 view
  hello-world                                A Hello World command.  Hello World!
  pestle-clear-cache                         BETA: Clears the pestle cache
  test-output                                A test command for the output function that should probably be pruned
  testbed                                    Test Command
  version                                    One Line Description
  wp-export-xml                              ALPHA: WordPress export script
  wp-urls                                    ALPHA: WordPress file parser

Because the dash versions.  Derp derp derp. Fixed


To help with documentation in the future, please use "WCAG 3" (instead of "WCAG 3.0") in most places.

To help with documentation in the future, please use "WCAG 3" (instead of "WCAG 3.0") in most places.

Use "WCAG 3" in most cases; e.g., WCAG 3 Introduction.
Can use WCAG 3.0 for references to the TR doc.
https://www.w3.org/WAI/EO/wiki/Style#Referring_to_xxAG_.28WCAG_2.3B_singular.29

Let me know if questions or suggestions for amending that. Thanks!
Originally posted by @shawna-slh in https://github.com/w3c/silver/issues/692

I'm not sure what you are talking about. If you explain in more detail I'll reopen the issue.

Explain to me

WCAG3

WCAG 3


Memory leak when using OSMFlutter widget in route causes app crash

Description:
There seems to be a memory leak when using the OSMFlutter widget inside a route. When navigating in and out of this route multiple times, the memory is not released properly, causing the app to crash after a while due to excessive memory usage.
code
class SetLocationView extends StatefulWidget {
  const SetLocationView({super.key});

  @override
  State<SetLocationView> createState() => _SetLocationViewState();
}

class _SetLocationViewState extends State<SetLocationView> {
  late final MapController controller;

  @override
  void initState() {
    controller = MapController(
      initPosition: GeoPoint(
        longitude: -99.503415,
        latitude: 17.547804,
      ),
    );
    super.initState();
  }

  @override
  void dispose() {
    controller.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Consumer<SetLocationViewModel>(
        builder: (context, vm, _) {
          return Stack(
            children: [
              OSMFlutter(
                controller: controller,
                osmOption: const OSMOption(
                  isPicker: true,
                ),
              ),
              AppBarADSGVariant(
                title: AppLocalizations.of(context)!.set_location,
                actions: const [
                  CircleAvatar(
                    radius: 25.0,
                    backgroundColor: ColorsADSG.primary,
                    foregroundColor: ColorsADSG.onPrimary,
                    child: Icon(Symbols.add_location_alt_rounded),
                  )
                ],
                children: [
                  Text(AppLocalizations.of(context)!.last_known_location),
                  const SizedBox(height: 16.0),
                  FilledTextField(
                    margin: EdgeInsets.zero,
                    labelText: AppLocalizations.of(context)!.search,
                    prefix: Container(
                      margin: const EdgeInsets.only(left: 16.0),
                      child: const Icon(Symbols.search)
                    )
                  ),
                ],
              )
            ],
          );
        }
      ),
    );
  }
}

images

do you have any log for crash ?

The app “Runner” has been killed by the operating system because it is using too much memory.
Domain: IDEDebugSessionErrorDomain
Code: 11
Recovery Suggestion: Use a memory profiling tool to track the process memory usage.
User Info: {
DVTErrorCreationDateKey = "2024-09-24 14:08:45 +0000";
IDERunOperationFailingWorker = DBGLLDBLauncher;
}
For more detailed information on the app's behavior when it crashes, please refer to:
https://drive.google.com/file/d/1KLy1qDTLWVjvv0nQBKw4IiCjB_r357P9/view?usp=share_link


Use the G2dTexture type in at least one example or tutorial

Currently, the examples and tutorials never declare the specific type of a Texture. This means that new users will not know what type to use when declaring a reference to a Texture in their game.
All of the current sample code declares local variables like let tex = Texture::from_path(...).  If a user is clever enough, they may figure out that this returns type piston_window::Texture<gfx_device_gl::Resources>. However, this is not the best thing to do since it requires importing the gfx_device_gl crate, creating dependency version skew and coupling the user's game to a specific gfx implementation. Some of the games showcased on the Piston website follow this practice.
Kvark on IRC pointed out that the correct practice is to use the GfxTexture type in the piston_window library which allows a level of indirection between the graphics backend and the application code.

This is a good idea!

I've opened a PR https://github.com/PistonDevelopers/piston-examples/pull/404

Closing.


Ask for new versions release and update docs

Last Release was on 27 Apr 2016. It's been more than one year now. Hoping to give a new release and update docs.

Will start this after v2 release.
Thank you for your report.


Silent break on<EMAIL_ADDRESS>

I am benchmarking an application on CUDA version v12.2, but the CuTropicalGEMM complaints that it can not find the bianry. Then I check the the TropicalGEMMC_jll, it seems the relevant binary was not built.
I am wondering if we can add relevant binaries files to
https://github.com/JuliaBinaryWrappers/TropicalGemmC_jll.jl/tree/main/src/wrappers
Meanwhile, can we provide better error information? Silent break is difficult to debug.

When I built this binary the CUDA version 12.2 seems not support by BinaryBuilder.jl, it reported something like CUDA v12.2 not found.
It seems that it is already added recently (https://github.com/JuliaPackaging/Yggdrasil/pull/7393), I will try add suppor that version.

Meanwhile, can we provide better error information? Silent break is difficult to debug.

Sure, maybe we can detect the CUDA version used and compare with the versions we support? I will check how it can be done.

Sounds great.


After a while, PostNL API no longer responds, need to update password?

Had this happen before, after a month orso, the API no longer lets the component login:
Can't connect to the PostNL API
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/postnlpy/postnlapi.py", line 179, in _request_login
data = response.json()
File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/lib/python3.7/site-packages/simplejson/init.py", line 518, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/postnl/sensor.py", line 43, in setup_platform
api = PostnlApi(username, password, refresh_rate.total_seconds())
File "/usr/local/lib/python3.7/site-packages/postnlpy/postnlapi.py", line 62, in init
self._request_login()
File "/usr/local/lib/python3.7/site-packages/postnlpy/postnlapi.py", line 182, in _request_login
raise (UnauthorizedException())
postnlpy.postnlapi.UnauthorizedException
However, if I test the login details, they work fine on the website. I can get the component to work again, if I change my password.

The PostNL component seems to be broken. See https://github.com/home-assistant/home-assistant/issues/28726

Still broken in 102.1 for me:
Fri Nov 22 2019 12:17:19 GMT+0100 (Central European Standard Time)
Can't connect to the PostNL API
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/postnlpy/postnlapi.py", line 179, in _request_login
data = response.json()
File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/lib/python3.7/site-packages/simplejson/init.py", line 525, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/postnl/sensor.py", line 43, in setup_platform
api = PostnlApi(username, password, refresh_rate.total_seconds())
File "/usr/local/lib/python3.7/site-packages/postnlpy/postnlapi.py", line 62, in init
self._request_login()
File "/usr/local/lib/python3.7/site-packages/postnlpy/postnlapi.py", line 182, in _request_login
raise (UnauthorizedException())
postnlpy.postnlapi.UnauthorizedException

same here + three collegues, all the same error

Same here, a solution or workaround would be nice

Just follow this thread; https://github.com/home-assistant/home-assistant/issues/28726
Closing this issue as it's part of HA and not the card.


need to fix number serialization - 64 bit ints, such as timestamps, were not serializing properly. also, increase buffer size for creating serialized invoices

#121  👈
develop

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

Join @matthappens and the rest of your teammates on  Graphite


[Feature Request]: Add A Freature to get bigquery schema dynamically from a POJO class.

What would you like to happen?
In Bigquery write introduce method "fetchSchemaFromObject" which will dynamically generate schema json from the supplied POJO class.
BigQueryIO.write()
.to(tableSpec)
.fetchSchemaFromObject(Person.class)
..withFormatFunction(
(Person elem) ->
new TableRow().set("name", elem.name).set("age", elem.age))
.withCreateDisposition(CreateDisposition.CREATE_IF_NEEDED)
.withWriteDisposition(WriteDisposition.WRITE_TRUNCATE));
   /** Person.java class **/
   class Person {
           String name;
            int age;
   }
  /**
      Parse Person Object and construct schema json.
  **/
  fetchSchemaFromObject(Object Person)

Issue Priority
Priority: 2 (default / most feature requests should be filed as P2)
Issue Components

[ ] Component: Python SDK
[X] Component: Java SDK
[ ] Component: Go SDK
[ ] Component: Typescript SDK
[ ] Component: IO connector
[ ] Component: Beam YAML
[ ] Component: Beam examples
[ ] Component: Beam playground
[ ] Component: Beam katas
[ ] Component: Website
[ ] Component: Infrastructure
[ ] Component: Spark Runner
[ ] Component: Flink Runner
[ ] Component: Samza Runner
[ ] Component: Twister2 Runner
[ ] Component: Hazelcast Jet Runner
[ ] Component: Google Cloud Dataflow Runner

hey @nivedha1 could you share more context on why schema needs to be generated here, .fetchSchemaFromObject(Person.class) when Person object is directly used.


[CARBONDATA-2945] Support ingest JSON record using StreamSQL

Support ingest JSON record from Kafka/socket stream source in StreamSQL
A tblproperty called "record_format" is added, for example, following creates a stream source table on kafka whose record format is json
CREATE TABLE source (
    id INT,
    name STRING,
    city STRING,
    salary FLOAT,
    file struct<school:array<string>, age:int>
)
STORED AS carbondata
TBLPROPERTIES(
    'streaming'='source',
    'format'='kafka',
    'kafka.bootstrap.servers'='localhost:9092',
    'subscribe'='test',
    'record_format'='json'   // can be csv or json
)

Please refer to StreamSQLExample for more detail

[X] Any interfaces changed?
No

[X] Any backward compatibility impacted?
No

[X] Document update required?
Yes

[X] Testing done
Please provide details on
- Whether new unit test cases have been added or why no new tests are required?
- How it is tested? Please attach test report.
- Is it a performance related change? Please attach the performance test report.
- Any additional information to help reviewers in testing this change.

[X] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.
NA

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder2.1/318/

Build Failed  with Spark 2.3.1, Please check CI http://<IP_ADDRESS>:8080/job/carbondataprbuilder2.3/8564/

Build Failed with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/494/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder2.1/329/

Build Success with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/506/

Build Success with Spark 2.3.1, Please check CI http://<IP_ADDRESS>:8080/job/carbondataprbuilder2.3/8576/


all the required changes made to port to rviz2

I have removed GUI in display Rviz launch file
updated readme with few important commands and description of rviz2
updated Cmakelist as required
chnaged rviz script file for rviz2

Closing this request as it has merge conflicts


How to animate dash lines along a path?

The dash line shall be filled along the path all the way, how should I do that?

There is an example in the docs: http://animejs.com/documentation/#lineDrawing

in case you need it:
var svgAttributes = anime({
    targets: '#line, #banner-svg',
    easing: 'linear',
    strokeDashoffset: (el, i) => -(100 + (i * 100)),
    duration: 1100,
    loop: true
});

I also found this helpful so maybe others will https://www.visualcinnamon.com/2016/01/animating-dashed-line-d3


Can dot-completion be disabled in comments?

Sometimes I write sentences in comments, and if I have auto-dot-completion turned on (as I do) ending those sentences is somewhat problematic :)

It should now be fixed - it wasn't a problem with dot-completion, it was an oversight: completion wasn't disabled in comments


Control Milight

Hello,
I search after a accessory.js file, who execute own bash commands!?
Does anyone have a solution?
I want to control my milight controller.
With bash, for example, this works how follow: "/home/pi/milight_sources/./milight 1 b 19"
Thanks for helping

That's not a HAP but a nodeJS question. Dr. Google shows up with http://www.dzone.com/snippets/execute-unix-command-nodejs for example.

Oh, thanks for that. Now it works with:
"/home/pi/milight_sources/./milight OFF"
But when I hit On (in the MyTouchHome app), by both positions the OFF command is send. How van I use the value variable to control this?

By the way, I use this code:
cType: types.POWER_STATE_CTYPE,
onUpdate: function(value) {
var cmd = "/home/pi/milight_sources/./milight OFF"
         exec(cmd, function(error, stdout, stderr) {
            // command output is in stdout
         });
    },

Here is the OFF command hardcoded...

what about:
var cmd = "/home/pi/milight_sources/./milight";
var cmdOn = cmd + " ON";
var cmdOff = cmd + " OFF";
if (value) {
  // now we now it's "true-ish" (True, >0, a string not empty, whatever javascript likes as true)
          exec(cmdOn, function(error, stdout, stderr) {
            // command output is in stdout
         });
} else {
  // now we now it's "false-ish" (undefined, false, 0, an empty string ... etc)
          exec(cmdOff, function(error, stdout, stderr) {
            // command output is in stdout
         });
};

But really: have a look at javascript documentation, otherwise you are going to have a really hard time configuring your devices!

Woh, thanks for that. It works!! :)


Question: Garbage Collection

Hello,
I have a quick question about the garbage collection of signals, more specifically of the computed type. Lets look at the following code, which should use the signal time direction instead of time.value in the render method, but it is just a simplification for the demonstration:
import { Component, html, signal, computed, render } from './preact.js';

class App extends Component {
  static {
    this.clock = signal(new Date());
    setInterval(() => this.clock.value = new Date(), 1_000);
  }

  render() {
    const time = computed(() => App.clock.value.toTimeString('de').slice(0, 8));
    return html`

Hello World, it is ${time.value} o'clock.

    `;
  }
}

render(html`<${App}/>`, document.body);

The class method render gets called every second in order to do get the latest vdom of the component. But what happens to the previous time signals? Do they automatically get garbage collected or is it my job as developer to clean up those signals to prevent any memory leaks?
Thanks for the clarification!

They should get GC'd just fine.
That being said, you'd avoid any extra GC work by using useComputed in the render function. As it is, time has to be recreated on every rerender.

They should get GC'd just fine.
That being said, you'd avoid any extra GC work by using useComputed in the render function. As it is, time has to be recreated on every rerender.

Thank you very much for the explanation.


Revert "Disable VRAM compression by default for small textures in Detect 3D"

Reverts godotengine/godot#62023

IMHO this shouldn't be reverted, just limited to desktop platforms only.

There really is no point for it, I understand it can be useful for some games, but it will break other games and have performance limitations on older PCs and mobile, as well as higher loading times (decompression). It's better to handle this as a project template.

@Zireael07 The problem is that the reads are just slower, maybe reading a single texture will do no difference but if you are doing Albedo + Normal + ORM + Emission as an example for an uncompressed texture, it just adds up. If you are doing rendering on GLES3 which will likely not have depth prepass, again the reads add up.
Having this on by default when not needed is a problem and a bad design decision from our part. It's better to make a proper game template (option when creating a project) for games that need this type of look rather than adding potential invisible bottlenecks for games that don't need it.


Remove expensive clone

In running.rs we should use a reference instead
contracts: runner_params.contracts.clone()

Not relevant anymore


Simplify the System API?

Opening a meta-issue to discuss possible simplification for the System API. The System is a bit of a God Object, with an ever growing API.
What we we do to simplify it? And what can we do to encapsulate the internals better, while retaining control on performances?

I don't know if this comment belongs here or in #126.
The more I think about it, the more I feel that encapsulating too many things will be a hell to do. For example, if we want to encapsulate access to particle positions, we will have to make 4 different getter functions (ref, ref mut, unsafe ref, unsafe ref mut) and I do not think we want that.
How I would see a new system is:

a very transparent SystemGeometry (or SystemConfiguration) that contains:

the UnitCell
the molecules
an SOA equivalent of Vec<Particle>
the molecule ids
how I see it all of these fields may be public

Interactions the same as before
and the System object that contains:

the SystemGeometry
the Interactions
the step
the external_temperature

There is still some weirdness with the ParticleKinds associations. Am I right saying that this mapping is used only for debugging/logging purposes and when building the system ?
Do we actually need the particle name -> particle kind association after building, or just the reverse one ?

how I see it all of these fields may be public

They can not really be public: we need to ensure consistency between molecules and the molecules ids list.

Am I right saying that this mapping is used only for debugging/logging purposes and when building the system ? Do we actually need the particle name -> particle kind association after building, or just the reverse one ?

We mainly use the kind during a simulation, and the name to set the particle kind when adding a new particle. This can happen in two cases: adding new particles between simulation runs, or adding molecules during the run (GCMC is the main culprit here, and maybe Gibbs ensemble simulations too).
So we need the name => kind association to add new particles during a simulation.
We need the kind => name association for the error messages when no interaction is found.

Other than that, I agree with you that having all the access functions will be bad, and the separation seems reasonable.

They can not really be public: we need to ensure consistency between molecules and the molecules ids list.

At least the read-only part could be ?
Do we really need to add particles by name when doing that in the middle of a simulation ?

Adding new particles (and removing existing particles) is the whole idea of GCMC (the goal is to equilibrate the system at a given chemical potential by changing the particles number). The issue here is that the particle to add are part of the simulation, so we can not set the particle kind beforehand.

At least the read-only part could be ?

I don't get you here =). How can we ensure that something is read-only if we are making the field public?

What should insertion be capable of? The selection of what can be inserted into the system is known before the simulation starts, right?
The easiest case would be to have a "blueprint" of every molecule that can be inserted - stored somewhere and then pick it (clone it) and try to insert it. That would only need a Particle::new(name) prior to the simulation run. Within the simulation, we can pick from the array of possible candidates.

The selection of what can be inserted into the system is known before the simulation starts, right?

Yes, but different system can associate different particles kind to a given name. Storing blueprint is what I had in mind, but we store them inside the Simulation, not the System. Because we don't know beforehand which system will be used with the simulation, we can not set the particle kind beforehand, and then throw it away.
We could setup the particle kind in Simulation::setup, but this mean we need to keep the name => kind associations until this point as least.

And yeah, this sucks when trying to decouple system and interaction =/ I really have no better idea on how to do this.

Wild idea: can we provide the list of insertion targets as arguments to the MCMove? Although, we then have to work out how to check if a molecule is present in the system ...

Can you expand on that? I don't get it

Mhm, my idea would have been to build the particles before the simulation starts. For that, we need system information, i.e. we need to be able to build a particle with a Kind that resides outside the system. Simply put: provide a Particle::new(ParticleKind) and provide a method to add particles to the system that already have a non-default kind.
Does that make sense?

Yes, ok =). This would be possible to do, but we still need to associate the simulation and the system for the setup. This is roughly what I was proposing: use the Simulation::setup function to pre-set the particles kind.

we still need to associate the simulation and the system

Well, there is no way to get around this, right?

This is roughly what I was proposing: use the Simulation::setup function to pre-set the particles kind.

Yep. I guess the only difference is that the pre-built particles would not have to reside in System beforehand when we add them as argument to the move.

At least the read-only part could be ?

I don't get you here =). How can we ensure that something is read-only if we are making the field public?

Yeah that was not clear in my head. I guess what I was thinking is that we could expose the immutable slices of the SOA directly instead of having to create every getters.
The good thing if we setup the Kinds in the simulation setup is that we will know exactly how many Kinds there is, and consequently would not need a BTreeMap anymore, only a Vec :)

Yes, exposing slices (mutable and immutables) would be nice! We just need to prevent insertions and removal in the vector.
Why would we want to have a Vec for the kind already? If it is just for memory locality, we could use something like ordermap =)

Why would we want to have a Vec for the kind already?
It's just that it is simpler than the current BTreeMap, this would make some functions a little simpler like System::composition and ParticleKinds::all_kinds

Yes, I messed up with the interaction lookup, where we are also using BTreeMap 😄

Yes this BTreeMap is another story. This one could actually also be changed to a 2D array in this case.

For pairs and bonds, yes. We'll still need a map (or a sparse tensor) for angles and dihedrals.


Autodoc

Why did you choose the 2.1.0 ?

I'm just following libsonata as an example.

I'm just following libsonata as an example.

then why did I use<EMAIL_ADDRESS>??? :D
Joke aside I think it makes sense to use the v2 which should the LTS if I understood correctly.

then why did I use<EMAIL_ADDRESS>??? :D

No idea :D
I changed it to v2

Hooray, I made this PR! Thanks to Andrew, it was possible.

retest this please

Thank you!


linking error while making

There is an error with the linking command:
-> g++ -O -fPIC -pthread -shared -Wl,--version-script,/usr/local/MATLAB/extern/lib/glnxa64/mexFunction.map -Wl,--no-undefined -o  "+leveldb/private/LevelDB_.mexa64"  LevelDB_.o  leveldb-1.18/libleveldb.a -Wl,-rpath-link,/usr/local/MATLAB/bin/glnxa64 -L/usr/local/MATLAB/bin/glnxa64 -lmx -lmex -lmat -lm

/usr/bin/ld: leveldb-1.18/libleveldb.a(db_impl.o): relocation R_X86_64_32S against `_ZTVN7leveldb2DBE' can not be used when making a shared object; recompile with -fPIC
leveldb-1.18/libleveldb.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
[...]

I tried -std=gnu++11, -std=c++0x, and -std=c++11 in CXXFLAGS. Before adding -fPIC to LDFLAGS to mexopts.sh, the error was the same.
Does it have anything to do with
rm -f libleveldb.a

which is done earlier in the make?

This has to do with missing -fPIC in leveldb compilation. I'll look into the detail...

Can you try out the dynamic-link branch?
https://github.com/kyamagu/matlab-leveldb/tree/dynamic-link
There is a way to fix -fPIC using the current build procedure, but that could introduce an additional dependency to Snappy library which is a bit troublesome.

I added -lsnappy to CXXLIBS in mexopts.sh, and adding -fPIC to OPT in the leveldb-1.18/Makefile.
Now it compiles, and it works. Thank you!
After adding -fPIC to leveldb/Makefile, perhaps there is no need to add snappy? Linking could simply be done with
sed -i 's/OPT ?= -O2 -DNDEBUG/OPT ?= -fPIC -O2 -DNDEBUG/g' $(LEVELDB_DIR)/Makefile

in your makefile.
I tried both the main branch and the dynamic-link branch, and I had exactly the same problems and results.

@mrmartin I do not recommend modifying the mexopts.sh in the home directory. A better solution for doing that is to copy mexopts.sh into the matlab-leveldb directory, modify, and compile the code from there. Otherwise you might find a trouble when you build a different MEX file. Anyway, the dynamic-link repo should work fine as long as LevelDB is installed to the system.
The necessity for snappy (-lsnappy) depends on the availability of the library in the platform. To really compatible with various UNIX platforms, we have to include a platform detection script. But that takes a bit of efforts. Meanwhile I recommend dynamic linking.

Thank you for those tips. This problem is now solved.


fix(#214): never distribute invalid model

Codecov Report

Merging #224 (931adf9) into master (3f8ff47) will not change coverage.
The diff coverage is 50.00%.

@@           Coverage Diff           @@
##           master     #224   +/-   ##
=======================================
  Coverage   64.14%   64.14%
=======================================
  Files          41       41
  Lines        6730     6730
=======================================
  Hits         4317     4317
  Misses       1930     1930
  Partials      483      483

Impacted Files
Coverage Δ

master/rpc.go
83.47% <50.00%> (ø)

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 3f8ff47...931adf9. Read the comment docs.


javascript:void(0) in  is breaking the placeholder

When you click on a link that use javascript:void(0) as the href, the placeholder disapear in IE7 & IE8 (maybe others too)

Maybe something along the lines :
var last_clicked;
$("body").on('click', 'a', function() {
	last_clicked = this;
    return true;
});

// Clear placeholder values upon page reload
$(window).bind('beforeunload.placeholder', function(e) {
	if (last_clicked && last_clicked.href !== 'javascript:void(0)') {
		$('.'+settings.customClass).each(function() {
			this.value = '';
		});
	}
});

might work...

I can confirm this behavior is still occurring in IE9, Aug 2015.  Regarding the link Sangdol posted giving a positive reason for using javascript:void(0), deeper in that answer it's suggested that best practice is to simply not have an href attribute, which I found to be a workable solution.

Still happening on IE9.
Can confirm that @paranoida simple workaround prevents de behavior.

Using Click in IE will trigger a beforeunload event. Currently the plugin will clear input values for beforeunload events. So I think @antoinebrault is in the right track.

I've fixed this in this commit: https://github.com/mathiasbynens/jquery-placeholder/commit/891fa637a8b27d00b394f842a596a47beb12f335
I tested it myself and with this, it is fix. Can any of you test the fix to confirm it?

Not working, some behavior happening with v2.2.0

@RASMiranda the fix is not in v2.2.0 yet. Try including this https://github.com/mathiasbynens/jquery-placeholder/blob/gh-pages/jquery.placeholder.js in your script. I'm waiting to fully confirm before release the fix in v2.2.1

@amerikan Ha didn't realised it was not realeased, tried with https://github.com/mathiasbynens/jquery-placeholder/blob/gh-pages/jquery.placeholder.js same behavior :-/
But maybe my case is not the best. It has some other plugins that might be messing up and some other stuff that I don't know off.
I'll have to live with the workaround for now, don't have much time to test it further.


Remove KDEConnect, Kate and Okular

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?

KDE's binary-factory only keeps last 10 build artifacts and builds are daily. A manifest would work for max 10 days. Unless

You find somebody really dedicated to update the URLs every 10 days
Somebody makes an automatic updater as discussed in https://github.com/microsoft/winget-pkgs/issues/500
Somebody provides a stable download URL (I asked upstream for that in https://bugs.kde.org/show_bug.cgi?id=423712)

I don't see how those apps can stay in the repo. I also missed that when adding Okular to just-install and had to remove it later (https://github.com/just-install/registry/pull/204).
I hope that upstream will provide stable download URLs.
Microsoft Reviewers: Open in CodeFlow

I will split this in 4 PRs.

@mimi89999  can we close this PR?

Yes. I'm closing it.


GUI apps started by TCC in WT don't get focus (question)

A TCC user said that GUI apps started by TCC in WT don't get focus (unlike other shells in WT and unlike TCC in a console).  I said I didn't think I could get TCC and/or WT to act that way if I tried.  Have I overlooked anything ... any ideas?  Thanks!

This is not actionable without knowing the version of Windows Terminal the TCC user has installed -- we made some significant windowing changes in Preview 1.14.

His setup is the same as mine.  I have no such problem.
v:> ver
TCC 28.02.18 x64
Microsoft Windows 10 Pro for Workstations
10.0.19044.1706 (2009, 21H2)
WindowsTerminalPreview 1.14.1432.0

The user in question is using WindowsTerminalPreview 1.14.2205.25002.  I am using WindowsTerminalPreview 1.14.2205.23002.
Is that newer build available on GitHub?

I don't think the revision numbers make a difference here.
Do you have a link to the original bug report?
There was a LOT of work in this area in 1.14, in #2988, #12515, and every thread linked to those. How are the GUI apps getting spawned by TCC? Via ShellExecute?

Here's a link to the original report.
I suspect with CreateProcessW.  WinDbg isn't being very cooperative:
0:001> bp shell32!ShellExecuteW
0:001> bp shell32!ShellExecuteExW
0:001> bp kernel32!CreateProcessW
Couldn't resolve error at 'kernel32!CreateProcessW'
It does not break on ShellEXecute[Ex].

I tried again.  WinDbg does break at CreateProcessW when I issue "notepad".

Mike, if you're following, you'll be  interested in #18.  The user reports that whatever shell is in WT's FIRST tab will exhibit this problem.
In a nutshell ... it's not only TCC.

And, if I read his comments accurately, he has a setup in which WT is the default handler for console apps (as opposed to conhost).  Musy be (?) he has some sort of insider status.

I was the originator of this bug report, over on the JPSoft forums.  I mistakenly thought the problem was limited to TCC, but that is not the case.
I am not an “Insider”, this is a public build of Windows Terminal Preview, and a public build of Windows.
Microsoft Windows
Version 21H2 (OS Build 22000.708)
Windows Terminal Preview
Version 1.14.1452.0
I obtained Windows Terminal Preview from the Microsoft Store.  It offered to make itself the default handler for shells, and I accepted the offer.  I have shortcuts on the desktop for cmd.exe and tcc.exe (Jpsoft).  If I click on either of those shortcuts, they start in a new Windows Terminal Preview tabbed window.  And from there, if I start an application (notepad, for instance), the focus stays in the Windows Terminal Preview window, it does not shift to the newly launched application.  The same behavior for tcc and for cmd.  Doesn’t matter if I type in “notepad” or “start notepad”.
Also, if I launch Powershell Preview from the Start Menu, it starts up in a Windows Terminal tabbed window, and exhibits the same behavior.
Now once I have a window up for Windows Terminal Preview, if I start another tab, the problem does not exist in the secondary tab.  And it doesn’t matter what’s running in the secondary tab, cmd, tcc, pwsh, all behave normally.  Launch an application, that new application gets the focus.
And if I kill the primary tab, so the secondary tab becomes the primary tab, there is now no problem in the new primary tab.
I also have Windows Terminal Version: 1.12.10983.0
Installed on this system.  I have placed a shortcut on the desktop for
C:\Users\Henry\AppData\Local\Microsoft\WindowsApps\Microsoft.WindowsTerminal_8wekyb3d8bbwe\wt.exe c:\tcmd\tcc.exe
That launches tcc under the older version of WT, and the problem does not then exist.

Thanks for all the background guys. I had a feeling this was related to defterm, and everything here confirms that suspicion. I bet the focus/foreground handler isn't triggered for defterm connections. I'll take a look.

TerminalPage::_InitControl - tells the control the window is visible (but not focused). It also tells the connection about the owning hwnd.
I'm betting that the owner is never set for that pane. If it were set, then deactivating and reactivating that pane would re-mark the pane as focused, fixing the issue. I bet the conpty here never knows the owner, so when it checks if the owner is focused - it never is.

@zadjii-msft sorry to leave you with this headache but great analysis and I'm glad that process information I left behind was worth it!


project.el  ignores

hi @abougouffa   I see you are using project.el  built-in
how to ignore *.png  or other file

(setq project-ignores '("*.log" "build/"))
form chatgpt   gpt so cool

tested no effect


Any plan support cogvideo v1.5 lora and full parameter finetune?

Hi, yes we are going to be running some experiments now that diffusers adaptation is complete. I think it should already work out-of-the-box and can be finetuned just by changing model_id parameter in the script.
We're waiting for the authors to validate implementation and open source the diffusers format weights at the moment

@a-r-r-o-w I also believe that the diffusion adaptation is complete. But I found that there is some change in the cogvideo v1.5:

self.proj change to use nn.Linear:https://github.com/THUDM/CogVideo/blob/main/sat/dit_video_concat.py#L25
According to what you said, if only minor changes are needed, does it mean that multi-resolution still relies on different resolutions for bucket training?
What is the role of OFS embedding?
https://github.com/THUDM/CogVideo/blob/main/sat/dit_video_concat.py#L721

I think these all correspond to the pre-training strategy and deviate a bit from the original question. I will let @zRzRzRzRzRzRzR answer them.

seems just changing the model_id isn't enough, I got this error when attempting.
[2024-11-17 04:40:14,173] [INFO] [real_accelerator.py:219:get_accelerator] Setting ds_accelerator to cuda (auto detect)
[2024-11-17 04:40:14,890] [INFO] [comm.py:652:init_distributed] cdb=None
[2024-11-17 04:40:14,890] [INFO] [comm.py:683:init_distributed] Initializing TorchBackend in DeepSpeed with backend nccl
You set `add_prefix_space`. The tokenizer needs to be converted from the slow tokenizers
Downloading shards: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:00<00:00, 5242.88it/s]
Loading checkpoint shards: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:00<00:00,  8.31it/s]
Fetching 3 files: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 17722.41it/s]
The config attributes {'patch_bias': False, 'patch_size_t': 2} were passed to CogVideoXTransformer3DModel, but are not expected and will be ignored. Please verify your config.json configuration file.
[rank0]: Traceback (most recent call last):
[rank0]:   File "/home/cubeyai/cogvideox-factory/training/cogvideox_text_to_video_lora.py", line 932, in <module>
[rank0]:     main(args)
[rank0]:   File "/home/cubeyai/cogvideox-factory/training/cogvideox_text_to_video_lora.py", line 276, in main
[rank0]:     transformer = CogVideoXTransformer3DModel.from_pretrained(
[rank0]:                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[rank0]:   File "/home/cubeyai/cogvideox-factory/vvv/lib/python3.12/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
[rank0]:     return fn(*args, **kwargs)
[rank0]:            ^^^^^^^^^^^^^^^^^^^
[rank0]:   File "/home/cubeyai/cogvideox-factory/diffusers/src/diffusers/models/modeling_utils.py", line 886, in from_pretrained
[rank0]:     accelerate.load_checkpoint_and_dispatch(
[rank0]:   File "/home/cubeyai/cogvideox-factory/vvv/lib/python3.12/site-packages/accelerate/big_modeling.py", line 613, in load_checkpoint_and_dispatch
[rank0]:     load_checkpoint_in_model(
[rank0]:   File "/home/cubeyai/cogvideox-factory/vvv/lib/python3.12/site-packages/accelerate/utils/modeling.py", line 1806, in load_checkpoint_in_model
[rank0]:     set_module_tensor_to_device(
[rank0]:   File "/home/cubeyai/cogvideox-factory/vvv/lib/python3.12/site-packages/accelerate/utils/modeling.py", line 286, in set_module_tensor_to_device
[rank0]:     raise ValueError(
[rank0]: ValueError: Trying to set a tensor of shape torch.Size([3072, 128]) in "weight" (which has shape torch.Size([3072, 16, 2, 2])), this looks incorrect.
[rank0]:I1117 04:40:16.571000<PHONE_NUMBER>88992 torch/_dynamo/utils.py:335] TorchDynamo compilation metrics:
[rank0]:I1117 04:40:16.571000<PHONE_NUMBER>88992 torch/_dynamo/utils.py:335] Function, Runtimes (s)
[rank0]:V1117 04:40:16.571000<PHONE_NUMBER>88992 torch/fx/experimental/symbolic_shapes.py:116] lru_cache_stats constrain_symbol_range: CacheInfo(hits=0, misses=0, maxsize=None, currsize=0)
[rank0]:V1117 04:40:16.571000<PHONE_NUMBER>88992 torch/fx/experimental/symbolic_shapes.py:116] lru_cache_stats evaluate_expr: CacheInfo(hits=0, misses=0, maxsize=256, currsize=0)
[rank0]:V1117 04:40:16.571000<PHONE_NUMBER>88992 torch/fx/experimental/symbolic_shapes.py:116] lru_cache_stats _simplify_floor_div: CacheInfo(hits=0, misses=0, maxsize=None, currsize=0)
[rank0]:V1117 04:40:16.571000<PHONE_NUMBER>88992 torch/fx/experimental/symbolic_shapes.py:116] lru_cache_stats _maybe_guard_rel: CacheInfo(hits=0, misses=0, maxsize=256, currsize=0)
[rank0]:V1117 04:40:16.571000<PHONE_NUMBER>88992 torch/fx/experimental/symbolic_shapes.py:116] lru_cache_stats _find: CacheInfo(hits=0, misses=0, maxsize=None, currsize=0)
[rank0]:V1117 04:40:16.571000<PHONE_NUMBER>88992 torch/fx/experimental/symbolic_shapes.py:116] lru_cache_stats has_hint: CacheInfo(hits=0, misses=0, maxsize=256, currsize=0)
[rank0]:V1117 04:40:16.571000<PHONE_NUMBER>88992 torch/fx/experimental/symbolic_shapes.py:116] lru_cache_stats size_hint: CacheInfo(hits=0, misses=0, maxsize=256, currsize=0)
[rank0]:V1117 04:40:16.571000<PHONE_NUMBER>88992 torch/fx/experimental/symbolic_shapes.py:116] lru_cache_stats simplify: CacheInfo(hits=0, misses=0, maxsize=None, currsize=0)
[rank0]:V1117 04:40:16.571000<PHONE_NUMBER>88992 torch/fx/experimental/symbolic_shapes.py:116] lru_cache_stats _update_divisible: CacheInfo(hits=0, misses=0, maxsize=None, currsize=0)
[rank0]:V1117 04:40:16.571000<PHONE_NUMBER>88992 torch/fx/experimental/symbolic_shapes.py:116] lru_cache_stats replace: CacheInfo(hits=0, misses=0, maxsize=None, currsize=0)
[rank0]:V1117 04:40:16.571000<PHONE_NUMBER>88992 torch/fx/experimental/symbolic_shapes.py:116] lru_cache_stats _maybe_evaluate_static: CacheInfo(hits=0, misses=0, maxsize=None, currsize=0)
[rank0]:V1117 04:40:16.571000<PHONE_NUMBER>88992 torch/fx/experimental/symbolic_shapes.py:116] lru_cache_stats get_implications: CacheInfo(hits=0, misses=0, maxsize=None, currsize=0)
[rank0]:V1117 04:40:16.571000<PHONE_NUMBER>88992 torch/fx/experimental/symbolic_shapes.py:116] lru_cache_stats get_axioms: CacheInfo(hits=0, misses=0, maxsize=None, currsize=0)
[rank0]:V1117 04:40:16.571000<PHONE_NUMBER>88992 torch/fx/experimental/symbolic_shapes.py:116] lru_cache_stats safe_expand: CacheInfo(hits=0, misses=0, maxsize=256, currsize=0)
[rank0]:V1117 04:40:16.571000<PHONE_NUMBER>88992 torch/fx/experimental/symbolic_shapes.py:116] lru_cache_stats uninteresting_files: CacheInfo(hits=0, misses=0, maxsize=None, currsize=0)
E1117 04:40:17.345000<PHONE_NUMBER>07136 torch/distributed/elastic/multiprocessing/api.py:833] failed (exitcode: 1) local_rank: 0 (pid: 3775) of binary: /home/cubeyai/cogvideox-factory/vvv/bin/python3
Traceback (most recent call last):
  File "/home/cubeyai/cogvideox-factory/vvv/bin/accelerate", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/cubeyai/cogvideox-factory/vvv/lib/python3.12/site-packages/accelerate/commands/accelerate_cli.py", line 48, in main
    args.func(args)
  File "/home/cubeyai/cogvideox-factory/vvv/lib/python3.12/site-packages/accelerate/commands/launch.py", line 1153, in launch_command
    deepspeed_launcher(args)
  File "/home/cubeyai/cogvideox-factory/vvv/lib/python3.12/site-packages/accelerate/commands/launch.py", line 846, in deepspeed_launcher
    distrib_run.run(args)
  File "/home/cubeyai/cogvideox-factory/vvv/lib/python3.12/site-packages/torch/distributed/run.py", line 892, in run
    elastic_launch(
  File "/home/cubeyai/cogvideox-factory/vvv/lib/python3.12/site-packages/torch/distributed/launcher/api.py", line 133, in __call__
    return launch_agent(self._config, self._entrypoint, list(args))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/cubeyai/cogvideox-factory/vvv/lib/python3.12/site-packages/torch/distributed/launcher/api.py", line 264, in launch_agent
    raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
============================================================
training/cogvideox_text_to_video_lora.py FAILED``` updated to diffusers 0.32 just incase and tried making sure it was set to bfloat16.

@Cubey42 same error. Let me know if you found a fix.

@Cubey42 same error. Let me know if you found a fix.
I tried to add the patch_size_t and patch_bias to the config but was met with a different error, which is probably out of my understanding but sounds like the patch embed needs to be different but im unsure how

@Cubey42 @TrickyBarrel The diffusion adaptation is complete?

1.5-5B and 1.5-5B-I2V are on hugging face with diffusers updated to 0.32
https://huggingface.co/THUDM/CogVideoX1.5-5B
has only a couple changes to the config.json
"patch_bias": false,
"patch_size_t": 2,
"use_learned_positional_embeddings": false,

got past the tensor size but stuck again here ***** Running training *****   Num trainable parameters = 264241152   Num examples = 1   Num epochs = 3000   Instantaneous batch size per device = 1   Total train batch size (w. parallel, distributed & accumulation) = 1   Gradient accumulation steps = 1   Total optimization steps = 3000 Steps:   0%|                                                                       | 0/3000 [00:00<?, ?it/s]Traceback (most recent call last):   File "/home/cubeyai/cogvideox-factory/training/cogvideox_text_to_video_lora.py", line 932, in <module>     main(args)   File "/home/cubeyai/cogvideox-factory/training/cogvideox_text_to_video_lora.py", line 700, in main     model_output = transformer(                    ^^^^^^^^^^^^   File "/home/cubeyai/cogvideox-factory/vvv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1553, in _wrapped_call_impl     return self._call_impl(*args, **kwargs)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/home/cubeyai/cogvideox-factory/vvv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1562, in _call_impl     return forward_call(*args, **kwargs)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/home/cubeyai/cogvideox-factory/vvv/lib/python3.12/site-packages/deepspeed/utils/nvtx.py", line 18, in wrapped_fn     ret_val = func(*args, **kwargs)               ^^^^^^^^^^^^^^^^^^^^^   File "/home/cubeyai/cogvideox-factory/vvv/lib/python3.12/site-packages/deepspeed/runtime/engine.py", line 1899, in forward     loss = self.module(*inputs, **kwargs)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/home/cubeyai/cogvideox-factory/vvv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1553, in _wrapped_call_impl     return self._call_impl(*args, **kwargs)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/home/cubeyai/cogvideox-factory/vvv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1562, in _call_impl     return forward_call(*args, **kwargs)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/home/cubeyai/cogvideox-factory/vvv/lib/python3.12/site-packages/diffusers/models/transformers/cogvideox_transformer_3d.py", line 476, in forward     hidden_states = self.patch_embed(encoder_hidden_states, hidden_states)                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/home/cubeyai/cogvideox-factory/vvv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1553, in _wrapped_call_impl     return self._call_impl(*args, **kwargs)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/home/cubeyai/cogvideox-factory/vvv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1562, in _call_impl     return forward_call(*args, **kwargs)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/home/cubeyai/cogvideox-factory/vvv/lib/python3.12/site-packages/diffusers/models/embeddings.py", line 431, in forward     image_embeds = image_embeds.reshape(                    ^^^^^^^^^^^^^^^^^^^^^ RuntimeError: shape '[1, 10, 2, 48, 2, 85, 2, 16]' is invalid for input of size 5483520

I'll have to examine this more but thanks for the response, great work so far!

anyone experienced the following error?
Traceback (most recent call last):   File "/mnt/round-cake/home/umar/cogvideox-factory/training/cogvideox_image_to_video_lora.py", line 1004, in <module>     main(args)   File "/mnt/round-cake/home/umar/cogvideox-factory/training/cogvideox_image_to_video_lora.py", line 803, in main     model_output = transformer(                    ^^^^^^^^^^^^   File "/mnt/round-cake/home/umar/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1553, in _wrapped_call_impl     return self._call_impl(*args, **kwargs)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/mnt/round-cake/home/umar/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1562, in _call_impl     return forward_call(*args, **kwargs)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/mnt/round-cake/home/umar/miniconda3/lib/python3.12/site-packages/accelerate/utils/operations.py", line 823, in forward     return model_forward(*args, **kwargs)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/mnt/round-cake/home/umar/miniconda3/lib/python3.12/site-packages/accelerate/utils/operations.py", line 811, in __call__     return convert_to_fp32(self.model_forward(*args, **kwargs))                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/mnt/round-cake/home/umar/miniconda3/lib/python3.12/site-packages/torch/amp/autocast_mode.py", line 43, in decorate_autocast     return func(*args, **kwargs)            ^^^^^^^^^^^^^^^^^^^^^   File "/mnt/round-cake/home/umar/miniconda3/lib/python3.12/site-packages/diffusers/models/transformers/cogvideox_transformer_3d.py", line 470, in forward     ofs_emb = self.ofs_proj(ofs)               ^^^^^^^^^^^^^^^^^^   File "/mnt/round-cake/home/umar/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1553, in _wrapped_call_impl     return self._call_impl(*args, **kwargs)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/mnt/round-cake/home/umar/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1562, in _call_impl     return forward_call(*args, **kwargs)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/mnt/round-cake/home/umar/miniconda3/lib/python3.12/site-packages/diffusers/models/embeddings.py", line 928, in forward     t_emb = get_timestep_embedding(             ^^^^^^^^^^^^^^^^^^^^^^^   File "/mnt/round-cake/home/umar/miniconda3/lib/python3.12/site-packages/diffusers/models/embeddings.py", line 54, in get_timestep_embedding     assert len(timesteps.shape) == 1, "Timesteps should be a 1d-array"                ^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'shape'

continuous attention!

https://github.com/a-r-r-o-w/cogvideox-factory/pull/92

#92
I've been trying to get this pr to work, but it seems to my cuda not findable. everything worked before but now I get
===== Memory before training ===== [rank0]: Traceback (most recent call last): [rank0]:   File "/home/cubeyai/cogvideox-factory/training/cogvideox_text_to_video_lora.py", line 947, in <module> [rank0]:     main(args) [rank0]:   File "/home/cubeyai/cogvideox-factory/training/cogvideox_text_to_video_lora.py", line 578, in main [rank0]:     reset_memory(accelerator.device) [rank0]:   File "/home/cubeyai/cogvideox-factory/training/utils.py", line 242, in reset_memory [rank0]:     torch.cuda.reset_peak_memory_stats(device) [rank0]:   File "/home/cubeyai/cogvideox-factory/vvv/lib/python3.12/site-packages/torch/cuda/memory.py", line 321, in reset_peak_memory_stats [rank0]:     device = _get_device_index(device, optional=True) [rank0]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [rank0]:   File "/home/cubeyai/cogvideox-factory/vvv/lib/python3.12/site-packages/torch/cuda/_utils.py", line 34, in _get_device_index [rank0]:     raise ValueError(f"Expected a cuda device, but got: {device}") [rank0]: ValueError: Expected a cuda device, but got: cpu:0

That is super weird as I'm able to run it. Are you launching with the training script with accelerate and not python3? Could you also share your environment so I can try to replicate? I don't see anything in the PR that looks like the tensor device is being affected.

accelerate==1.1.1 annotated-types==0.7.0 bitsandbytes==0.44.1 certifi==2024.8.30 charset-normalizer==3.4.0 click==8.1.7 decord==0.6.0 deepspeed==0.15.4 diffusers @ file:///home/cubeyai/diffusers docker-pycreds==0.4.0 ffmpeg==1.4 filelock==3.16.1 fsspec==2024.10.0 gitdb==4.0.11 GitPython==3.1.43 hf_transfer==0.1.8 hjson==3.1.0 huggingface-hub==0.26.2 idna==3.10 imageio==2.36.0 imageio-ffmpeg==0.5.1 importlib_metadata==8.5.0 Jinja2==3.1.4 MarkupSafe==3.0.2 mpmath==1.3.0 msgpack==1.1.0 networkx==3.4.2 ninja==<IP_ADDRESS> numpy==2.1.3 nvidia-cublas-cu12==<IP_ADDRESS> nvidia-cuda-cupti-cu12==12.4.127 nvidia-cuda-nvrtc-cu12==12.4.127 nvidia-cuda-runtime-cu12==12.4.127 nvidia-cudnn-cu12==<IP_ADDRESS> nvidia-cufft-cu12==<IP_ADDRESS> nvidia-curand-cu12==<IP_ADDRESS> nvidia-cusolver-cu12==<IP_ADDRESS> nvidia-cusparse-cu12==<IP_ADDRESS> nvidia-cusparselt-cu12==0.6.2 nvidia-nccl-cu12==2.21.5 nvidia-nvjitlink-cu12==12.4.127 nvidia-nvtx-cu12==12.4.127 packaging==24.2 pandas==2.2.3 peft==0.13.2 pillow==11.0.0 platformdirs==4.3.6 protobuf==5.28.3 psutil==6.1.0 py-cpuinfo==9.0.0 pydantic==2.10.1 pydantic_core==2.27.1 python-dateutil==2.9.0.post0 pytorch-triton==3.1.0+cf34004b8a pytz==2024.2 PyYAML==6.0.2 regex==2024.11.6 requests==2.32.3 safetensors==0.4.5 sentencepiece==0.2.0 sentry-sdk==2.19.0 setproctitle==1.3.4 setuptools==75.6.0 six==1.16.0 smmap==5.0.1 sympy==1.13.1 tokenizers==0.20.3 torch==2.6.0.dev20241121+cu124 torchao==0.6.1 torchaudio==2.5.0.dev20241121+cu124 torchvision==0.20.0.dev20241121+cu124 tqdm==4.67.0 transformers==4.46.3 triton==3.0.0 typing_extensions==4.12.2 tzdata==2024.2 urllib3==2.2.3 wandb==0.18.7 zipp==3.21.0
I've been trying a different torch as well to test, but was on 2.4.1+cu124 and using the diffusers from zRzR's repo

That is super weird as I'm able to run it. Are you launching with the training script with accelerate and not python3? Could you also share your environment so I can try to replicate? I don't see anything in the PR that looks like the tensor device is being affected.
I found the GPU ID was different between them and adjusting this value resolved the issue, I'm still getting  RuntimeError: shape '[1, 6, 2, 30, 2, 45, 2, 16]' is invalid for input of size 1123200  however.

should I move this to a new issue?

Okay with the help of a fellow discord user, it seems I needed to do 56 frames instead of 49 line things up.

Sorry for the late response, I got busy with something. Yes Cog 1.5 required number of latent frames to be divisible by 2. So, for 49 sample frames, you get 13 latent frames (calculated as (x - 1) / 4 + 1). For 53, it is 14 latent frames which would work.
Btw, would love to join any servers you're discussing on to gather feedback! We have many improvements, with further memory savings, planned in the coming weeks as we try to find time outside of normal work.

Sorry for the late response, I got busy with something. Yes Cog 1.5 required number of latent frames to be divisible by 2. So, for 49 sample frames, you get 13 latent frames (calculated as (x - 1) / 4 + 1). For 53, it is 14 latent frames which would work.
Btw, would love to join any servers you're discussing on to gather feedback! We have many improvements, with further memory savings, planned in the coming weeks as we try to find time outside of normal work.

No problem, this is the server (Banodoco) here, we have a wide variety of users and its mainly about animation/video AI. https://discord.gg/qjSMmUKG we have channels for cogvideox along with many other models. More than welcome to join us!

Sorry for the late response, I got busy with something. Yes Cog 1.5 required number of latent frames to be divisible by 2. So, for 49 sample frames, you get 13 latent frames (calculated as (x - 1) / 4 + 1). For 53, it is 14 latent frames which would work.
Btw, would love to join any servers you're discussing on to gather feedback! We have many improvements, with further memory savings, planned in the coming weeks as we try to find time outside of normal work.

No problem, this is the server (Banodoco) here, we have a wide variety of users and its mainly about animation/video AI. https://discord.gg/qjSMmUKG we have channels for cogvideox along with many other models. More than welcome to join us!

The invite link seems to be invalid.

Sorry for the late response, I got busy with something. Yes Cog 1.5 required number of latent frames to be divisible by 2. So, for 49 sample frames, you get 13 latent frames (calculated as (x - 1) / 4 + 1). For 53, it is 14 latent frames which would work.
Btw, would love to join any servers you're discussing on to gather feedback! We have many improvements, with further memory savings, planned in the coming weeks as we try to find time outside of normal work.

No problem, this is the server (Banodoco) here, we have a wide variety of users and its mainly about animation/video AI. https://discord.gg/qjSMmUKG we have channels for cogvideox along with many other models. More than welcome to join us!

The invite link seems to be invalid.

https://discord.gg/P9EbDYFT try this, if not, search Banodoco on google or try https://discord.gg/eKQm3uHKx2

Sorry for the late response, I got busy with something. Yes Cog 1.5 required number of latent frames to be divisible by 2. So, for 49 sample frames, you get 13 latent frames (calculated as (x - 1) / 4 + 1). For 53, it is 14 latent frames which would work.
Btw, would love to join any servers you're discussing on to gather feedback! We have many improvements, with further memory savings, planned in the coming weeks as we try to find time outside of normal work.

No problem, this is the server (Banodoco) here, we have a wide variety of users and its mainly about animation/video AI. https://discord.gg/qjSMmUKG we have channels for cogvideox along with many other models. More than welcome to join us!

The invite link seems to be invalid.

https://discord.gg/P9EbDYFT try this, if not, search Banodoco on google or try https://discord.gg/eKQm3uHKx2

Is this the one?

Okay with the help of a fellow discord user, it seems I needed to do 56 frames instead of 49 line things up.

Hi, have you tried training with 56 frames in I2V, I used diffusers0.32 but Timesteps should be a 1d-array

Okay with the help of a fellow discord user, it seems I needed to do 56 frames instead of 49 line things up.

I still have the same error even after setting max_num_frames= 56 for I2V.

Modifying the max num frames above does not solve the problem,i find ofs is no,

Supported now thanks to @jiashenggu and other contributors' fixes!


Tracker Attack Question

Unless I'm misunderstand something, re-writing the query instead of creating a differentially private dataset allows for a tracker attack, repeatedly invoking a query that returns a small dataset and then using aggregate queries against that collection of small datasets to glean identifying information. Are there any best practices when using this library to mitigate that risk?

The attack you describe is prevented by the privacy budget.
This framework allows specifying the budget (epsilon) allocated to each query. In a real deployment this value comes out of a fixed total privacy budget which is tracked across every query (see comment in the example code for more details). This means that if someone submits many queries, each result will get progressively less accurate as the budget is depleted--this prevents statistical inference attacks, including the averaging attack in your example.
This code does not implement a cumulative privacy budget tracking strategy since such a strategy is highly deployment-specific. In practice the operator of this tool will plug in an appropriate implementation. There are many ways to do this. The simplest approach is to track a single value globally; our paper surveys a few more advanced techniques.

Thanks, I appreciate the quick response.


Cargo cannot find github team, when trying to add owner

Problem
I tried to add the org maycoon-ui as an owner of the maycoon crate using  cargo owner --add github:org:maycoon-ui, but cargo keeps giving me an error:
the remote server responded with an error (status 400 Bad Request): could not find the github team org/maycoon-ui. Make sure that you have the right permissions in GitHub. See https://doc.rust-lang.org/cargo/reference/publishing.html#github-permissions
I double checked the permissions and I even re-authenticated the Crates.io OAuth App and re-logged into crates.io, but it keeps giving me this error message. I already granted crates.io access in my organization profile and I'm the owner/admin of the whole organization.
Images as proof:
Organization OAuth Settings

My Profile OAuth Settings

Thanks for any help I can get!
Steps
No response
Possible Solution(s)
No response
Notes
No response
Version
cargo 1.83.0-nightly (c1fa840a8 2024-08-29)
release: 1.83.0-nightly
commit-hash: c1fa840a85eca53818895901a53fae34247448b2
commit-date: 2024-08-29
host: x86_64-pc-windows-msvc
libgit2: 1.8.1 (sys:0.19.0 vendored)
libcurl: 8.9.0-DEV (sys:0.4.74+curl-8.9.0 vendored ssl:Schannel)
os: Windows 10.0.22000 (Windows 11 Professional) [64-bit]

The syntax is github:org:team. Should replace org with maycoon-ui, and team with whatever team in your organization.
For example, this is how the release-publishers team under rust-lang org looks like:
https://crates.io/teams/github:rust-lang:release-publishers


bug or intentional: Interface generates extra not valid metadata

Hi guys,
Great job and and great project! Congratulation! Quick quick question for you guys. I am using a lot dynamic proxy object created from interfaces (no concrete classes) in the project. The swagger generates extra metadata:
      metadata:{
         type:"object",
         additionalProperties:{
            $ref:"#/definitions/Object"
         },
         readOnly:true
      }

If I use concrete class it doesn't. Also the http://editor.swagger.io/#/ creates a warnings. So my question is: Is this is a bug or intentional? My best guess is its just missed type checking (IsInterface) missed in the code. C# prototype code below:
     [SwaggerResponse("The DatabaseKeys model", typeof(IDatabaseKeysJsonModel))]
    public interface IDatabaseKeysJsonModel
    {
        [JsonProperty("storageItem", Required = Required.Always)]
        FileStorageItemJsonResponseModel StorageItem { get; set; }

        [JsonProperty("databaseKeys", Required = Required.Always)]
        IList<DatabaseKeyJsonResponseModel> DatabaseKeys { get; set; }

        [JsonProperty("metadata", Required = Required.Always)]
        IDictionary<string, object> Metadata { get; }

        [JsonProperty("$type", Required = Required.Always)]
        string ModelType { get; }
    }

IDatabaseKeysJsonModel:{
   type:"object",
   properties:{
      storageItem:{
         $ref:"#/definitions/FileStorageItemJsonModel"
      },
      databaseKeys:{
         type:"array",
         items:{
            $ref:"#/definitions/DatabaseKeyJsonModel"
         }
      },
      metadata:{
         type:"object",
         additionalProperties:{
            $ref:"#/definitions/Object"
         },
         readOnly:true
      },
      $type:{
         type:"string",
         readOnly:true
      }
   }
}

Sorry - you'll need to elaborate a little more. The Swagger above looks valid and at an initial glance, seems to reflect the C# interface accurately.
I think I might understand your question better if you provide me with the Swagger you would expect to see for that interface?

Closing due to inactivity. Feel free to re-open if you still have issues and can describe the through some concrete examples of what you'd expect


Replace the revocation registry delta methods with the new revocation list data model API

This should probably be split up into multiple issues
Relevant spec issue: https://github.com/hyperledger/anoncreds-spec/issues/108

@whalelephant This is the issue for the revocation list model implementation in AnonCreds rs. As you see, not much here yet....

Is this finished once #74 is done? After that we only deal with:

RevocationRegistryDefinitions
RevocationRegistries
RevocationStatusList
RevocationState

(and their associated identifiers).

@whalelephant can you verify if this is correct?


filter should be extended with obj condition

filter works fine with functions but sometimes better to filter by object
o = [{ x: 1, y: 2}, { x: 2 }]
o |> filter { x: 1 }

expected => [{ x: 1, y: 2}]
actual thrown n is not a function

@gkz sometimes better build a condition as object. for instance for filtering