Bundle Install Hangs on Git Command

When I am trying to run bundle install on my machine, I am getting it hung in what appears to be a git command.
The result is this:
Running `bundle install --verbose` with bundler 1.15.3
Found changes from the lockfile, re-resolving dependencies because the dependencies in your gemfile changed
^C
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/source/git/git_proxy.rb:162:in `call'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/source/git/git_proxy.rb:162:in ``'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/source/git/git_proxy.rb:162:in `block (2 levels) in git'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/source/git/git_proxy.rb:239:in `block in capture_and_filter_stderr'
/Users/vision/.rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/tempfile.rb:319:in `open'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/source/git/git_proxy.rb:237:in `capture_and_filter_stderr'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/source/git/git_proxy.rb:162:in `block in git'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/shared_helpers.rb:73:in `call'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/shared_helpers.rb:73:in `with_clean_git_env'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/source/git/git_proxy.rb:161:in `git'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/source/git/git_proxy.rb:153:in `block in git_retry'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/retry.rb:39:in `call'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/retry.rb:39:in `run'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/retry.rb:29:in `attempt'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/source/git/git_proxy.rb:152:in `git_retry'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/source/git/git_proxy.rb:129:in `block in copy_to'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/shared_helpers.rb:55:in `chdir'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/shared_helpers.rb:55:in `block in chdir'
/Users/vision/.rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchronize'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/shared_helpers.rb:54:in `chdir'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/source/git/git_proxy.rb:128:in `copy_to'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/source/git.rb:161:in `specs'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/definition.rb:246:in `block (2 levels) in index'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/definition.rb:244:in `each'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/definition.rb:244:in `block in index'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/index.rb:10:in `build'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/definition.rb:241:in `index'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/definition.rb:235:in `resolve'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/definition.rb:159:in `specs'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/definition.rb:147:in `resolve_remotely!'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/installer.rb:226:in `resolve_if_need'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/installer.rb:78:in `run'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/installer.rb:24:in `install'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/cli/install.rb:68:in `run'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/cli.rb:191:in `block in install'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/settings.rb:92:in `temporary'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/cli.rb:190:in `install'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/vendor/thor/lib/thor.rb:369:in `dispatch'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/cli.rb:22:in `dispatch'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/vendor/thor/lib/thor/base.rb:444:in `start'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/cli.rb:13:in `start'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/exe/bundle:30:in `block in <top (required)>'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
/Users/vision/.rvm/gems/ruby-2.2.6/gems/bundler-1.15.3/exe/bundle:22:in `<top (required)>'
/Users/vision/.rvm/gems/ruby-2.2.6/bin/bundle:22:in `load'
/Users/vision/.rvm/gems/ruby-2.2.6/bin/bundle:22:in `<main>'
/Users/vision/.rvm/gems/ruby-2.2.6/bin/ruby_executable_hooks:15:in `eval'
/Users/vision/.rvm/gems/ruby-2.2.6/bin/ruby_executable_hooks:15:in `<main>'

The output of bundle env is here.
In case it might matter, git is wrapped with hub (although that has never been a problem before, and neither was updated recently):
> git --version
git version 2.14.1
hub version 2.2.9

Can you please provide the verbose output and check if the resulting git command success outside of bundler? Thanks!

Unfortunately, that is the --verbose output.  I even tried doing it with DEBUG_RESOLVER=1 bundle install --verbose: same result.  It hangs before it even prints anything beyond finding changes in the lockfile.

As a result, I'm not certain I can even tell what git command is the one that is failing.  Certainly, all the ones I know I'm running work as expected in other tools and direct operation.

Update: running sudo bundle install --verbose worked.  But obviously, that breaks it for non-root users (as bundler points out when it runs).  I'm the only one on my local machine, so this workaround is sufficient for me, but it would be better if this problem was fixed long term.

Potentially related to schacon/ruby-git#171?  Providing the .gitignore for potential relation noted in that issue.
/.bundle
/**/.*.swp
/**/*~
/log/*
!/log/.keep
/tmp
tmp
nbproject
config/database.yml
config/secrets.yml
public/assets
public/system
public/GeoLiteCity.dat
.ruby-gemset
.byebug_history
coverage/
/**/*.sql
/**/*.DS_Store
.idea
test
/**/*.dump

# should these be ignored?
app/models/usaepay.rb
app/models/usaepayDriver.rb
app/models/usaepayMappingRegistry.rb
app/models/usaepayServiceClient.rb
.eslintrc
.tern-project
.vscode
node_modules
package.json
typings
**/jsconfig.json
*.dump

# ignore ctags files
.gemtags
.tags
tags
.tags_sorted_by_file
spec/**/examples.txt
*.orig
.bash_profile
*.log
public/uploads

After attempting the troubleshooting instructions (except for removing the Gemfile.lock, as I can't re-resolve the whole thing due to production reasons), this is the error that resulted.
Fetching https://github.com/seuros/capistrano-puma.git
error: cannot open .git/FETCH_HEAD: Permission denied
Retrying `git fetch --force --quiet --tags "/Users/vision/.bundle/cache/git/capistrano-puma-09a5dc7ac977bbdb1015c1a66016eca1de387d90"` due to error (2/4): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags "/Users/vision/.bundle/cache/git/capistrano-puma-09a5dc7ac977bbdb1015c1a66016eca1de387d90"` in directory /Users/vision/.rvm/rubies/ruby-2.2.6/lib/ruby/gems/2.2.0/bundler/gems/capistrano-puma-e18b30c18ace has failed.
If this error persists you could try removing the cache directory '/Users/vision/.bundle/cache/git/capistrano-puma-09a5dc7ac977bbdb1015c1a66016eca1de387d90'
error: cannot open .git/FETCH_HEAD: Permission denied
Retrying `git fetch --force --quiet --tags "/Users/vision/.bundle/cache/git/capistrano-puma-09a5dc7ac977bbdb1015c1a66016eca1de387d90"` due to error (3/4): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags "/Users/vision/.bundle/cache/git/capistrano-puma-09a5dc7ac977bbdb1015c1a66016eca1de387d90"` in directory /Users/vision/.rvm/rubies/ruby-2.2.6/lib/ruby/gems/2.2.0/bundler/gems/capistrano-puma-e18b30c18ace has failed.
If this error persists you could try removing the cache directory '/Users/vision/.bundle/cache/git/capistrano-puma-09a5dc7ac977bbdb1015c1a66016eca1de387d90'
error: cannot open .git/FETCH_HEAD: Permission denied
Retrying `git fetch --force --quiet --tags "/Users/vision/.bundle/cache/git/capistrano-puma-09a5dc7ac977bbdb1015c1a66016eca1de387d90"` due to error (4/4): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags "/Users/vision/.bundle/cache/git/capistrano-puma-09a5dc7ac977bbdb1015c1a66016eca1de387d90"` in directory /Users/vision/.rvm/rubies/ruby-2.2.6/lib/ruby/gems/2.2.0/bundler/gems/capistrano-puma-e18b30c18ace has failed.
If this error persists you could try removing the cache directory '/Users/vision/.bundle/cache/git/capistrano-puma-09a5dc7ac977bbdb1015c1a66016eca1de387d90'
error: cannot open .git/FETCH_HEAD: Permission denied
Git error: command `git fetch --force --quiet --tags "/Users/vision/.bundle/cache/git/capistrano-puma-09a5dc7ac977bbdb1015c1a66016eca1de387d90"` in directory
/Users/vision/.rvm/rubies/ruby-2.2.6/lib/ruby/gems/2.2.0/bundler/gems/capistrano-puma-e18b30c18ace has failed.
If this error persists you could try removing the cache directory '/Users/vision/.bundle/cache/git/capistrano-puma-09a5dc7ac977bbdb1015c1a66016eca1de387d90'

This directory was created in the fetch itself.

Hmm, this looks like it might be a permissions issue but without a way to reproduce the bug I think we're unlikely to be able to look into it

Looks like the error is /Users/vision/.bundle/cache/git/bootstrap-switch-rails-1cf6d21d2524e4a2c161cdb78d8901f824cd7b01'error: cannot open .git/FETCH_HEAD
But the FETCH_HEAD is actually at .bundle/cache/git/bootstrap-switch-rails-1cf6d21d2524e4a2c161cdb78d8901f824cd7b01/FETCH_HEAD.
It appears to be doing a --bare clone, and then treating it as a normal repository.

Manually issuing the git command in that repository provides a temporary workaround - as long as no repos need to be updated, the issue does not occur.

Does the problem go away if you remove the cached repo?

Removing the cached repo doesn't help.  It clones down the repository again and then has the same error.

Can you please provide an example app that can reproduce this issue.

@CodingAnarchy Is this still an issue on the latest version of Bundler?


What's the recommended way of installing PowerShell module using scoop?

For example, https://github.com/pcgeek86/PSGitHub is a PowerShell module that I want to install using Scoop, while I can point url to the https://github.com/pcgeek86/PSGitHub/archive/master.zip to install, and possibly to run a post_install script to import the module, it will not be available when I restart the PowerShell session. I suppose I could modify the PowerShell profile to always import it but it is not clean.
My current idea is that maybe we could add an additional directory to the environment variable "PSModulePath" which can be used to install those PowerShell modules installed by Scoop. Thoughts?

Thanks for the idea. I've added support for PowerShell modules now based on your suggestion.
There is some explanation of how it works here on the wiki.
I added PSGitHub as an example and a test-case in case anyone else wants to install PS modules with Scoop.
It seems to work fine for me, but please try it out with scoop update; scoop install psgithub and let me know how it goes. I'm not familiar with PS modules, so let me know if anything could be improved.

Thanks Luke very much. Works great!

I can't find this info


Add a Native Explorer link

Description
An external link to the Native Explorer was added in the top header/more menu

Checklist:

[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have cleaned up the code in the areas my change touches
[X] My changes generate no new warnings
[ ] Any dependent changes have been merged and published in downstream modules
[X] I have checked my code and corrected any misspellings
[X] I have removed any unnecessary console messages
[X] I have included all english text to the translation file and/or created a new issue with the required translations for the currently supported languages
[X] I have tested for mobile functionality and responsiveness
[ ] I have added appropriate test coverage
[ ] I have updated relevant documentation and/or opened a separate issue to cover the updates (Issue URL: )

Thank you very much for the PR!
However, we already have this covered in this other PR.


My example CONFIG must be a relative path; specifying an absolute path will result in an error: MissingConfigException: Cannot find primary config.

          My example CONFIG must be a relative path; specifying an absolute path will result in an error: MissingConfigException: Cannot find primary config.

this is my code：
sam2_checkpoint = "/path/sam2_hiera_large.pt"
# hydra的bug,只能使用相对路径
# model_cfg = "../sam2_configs/sam2_hiera_l.yaml"
model_cfg = "/data1/segment-anything-2/sam2_configs/sam2_hiera_l.yaml"

sam2_model = build_sam2(model_cfg, sam2_checkpoint, device="cuda")

predictor = SAM2ImagePredictor(sam2_model)

File /opt/conda/envs/sam/lib/python3.10/site-packages/hydra/_internal/defaults_list.py:799, in config_not_found_error(repo, tree)
796 lines = "\n".join(descs)
797 msg += "\nConfig search path:" + f"\n{lines}"
--> 799 raise MissingConfigException(
800     missing_cfg_file=element.get_config_path(),
801     message=msg,
802     options=options,
803 )
MissingConfigException: Cannot find primary config 'data1/segment-anything-2/sam2_configs/sam2_hiera_l.yaml'. Check that it's in your config search path.
Config search path:
provider=hydra, path=pkg://hydra.conf
provider=main, path=pkg://sam2_configs
provider=schema, path=structured://
Originally posted by @ArachisTong in https://github.com/facebookresearch/segment-anything-2/issues/26#issuecomment-2259869807

Hi! I also use the following command to install SAM 2 pip install -q 'git+https://github.com/facebookresearch/segment-anything-2.git'` but still getting the error when I'm using Google Colab, can you explain how you solve it? I tried relative and absolute path, none works


Support for standalone dart

It seems that bindings are pretty useful out of flutter context, and I cant find any usage of package:flutter outside of tests and example.
Would it be possible to distribute underlying bindings as separate package without flutter dependency to allow using it in dart server apps?

@ajinasokan Thank you for the answer, my main use case is to use custom libcurl with patched SSL lib.

Alright I will see how difficult it will be. And for this I would also want to make this a single repository, two packages setup. I will do some experiments.


Getting Unknown signal :HUP

i ak trying running cyanite on windows and getting following error. Is  there any workaround for same.
java.lang.IllegalArgumentException: Unknown signal: HUP
at sun.misc.Signal.(Unknown Source)
at signal.handler$__GT_signal.invokeStatic(handler.clj:7)
at signal.handler$on_signal.invokeStatic(handler.clj:25)
at io.cyanite$_main.invokeStatic(cyanite.clj:91)
at io.cyanite$_main.doInvoke(cyanite.clj:81)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at io.cyanite.main(Unknown Source)

When do you get it? On startup?

@ifesdjeen : Yes, when i run cyanite standalone .jar, i get it. i tried on windows as well as MAC OS

It does work for me on mac os x, so I can not reproduce it.
As regards windows, unfortunately I do not have an access to Windows dev machines.

Ok, looks like this is Windows-specific: Windows doesn't have a HUP signal equivalent. So I'm not sure how you have gotten this on Mac OS X.


Guidelines for neumes module

From andrew.hankinson on September 08, 2011 10:50:02
Placeholder issue for neumes module guidelines
Original issue: http://code.google.com/p/music-encoding/issues/detail?id=12

From andrew.hankinson on May 11, 2012 10:53:21
Status: Started

From andrew.hankinson on May 23, 2012 12:15:18
Status: Needs-Review

From andrew.hankinson on September 10, 2012 11:31:47
Fixed in MEI 2012 2.0.0. Closing.
Status: Fixed


plot doesn't plot in IPython console in Spyder IDE

plot doesn't plot in IPython console in Spyder IDE
Code:
cloud = PyntCloud(df)
...
cloud.plot()

Get message, but nothing plots  =((
loading images...
~/projects/ml/lib/python3.5/site-packages/pythreejs/traits.py:175: UserWarning: 64-bit data types not supported for WebGL data, casting to 32-bit.
  warnings.warn('64-bit data types not supported for WebGL '
Renderer(camera=PerspectiveCamera(aspect=1.6, fov=90.0, position=(359.5, 1918.5,<PHONE_NUMBER>59375), quaternion…
HBox(children=(Label(value='Point size:'), FloatSlider(value=127.9, max=1279.0, step=1.2790000000000001), Labe…

I have the same issue but on a Jupyter notebook... (ubuntu 18)

r notebooks. Could you please open a different issue given a little more details about your problem?

I also meet this issue. Have you solved it?


'User' object has no attribute 'is_superuser'

I get an Attribute error in production which is freaking annoying, tried to look into urls.py in CKEDITOR
and removed the memberstaff required... Still not working , very frustating!

Request Method:
GET

https://mynordicroom.herokuapp.com/ckeditor/browse/?CKEditor=id_body&CKEditorFuncNum=1&langCode=en

2.0

AttributeError

'User' object has no attribute 'is_superuser'

/app/.heroku/python/lib/python3.7/site-packages/django/utils/functional.py in inner, line 216

/app/.heroku/python/bin/python

3.7.0

['/app/.heroku/python/bin',  '/app',  '/app/.heroku/python/lib/python37.zip',  '/app/.heroku/python/lib/python3.7',  '/app/.heroku/python/lib/python3.7/lib-dynload',  '/app/.heroku/python/lib/python3.7/site-packages',  '/app/.heroku/src/django-import-export']

Sat, 5 Jan 2019 22:26:15 +0000

This is the trace back :
if user and not user.is_superuser: ...
    user_path = _get_user_path(user)
else:
    user_path = ''
browse_path = os.path.join(settings.CKEDITOR_UPLOAD_PATH, user_path, path)

▼ Local vars

I had the same problem but I have solved it. I don't recommend setting is_superuser=True on a normal user model.
You have to edit the views.py in ckeditor_uploader manually and everything will work correctly.
If you are running a virtual environment then navigate to the virtual environment folder in your project folder and follow the instructions to fix the error.
env/lib/python3.8/site-packages/ckeditor_uploader/views.py
NB: the "env" is the name of the virtual environment so replace the "env" with the name of your virtual environment"
Once you have opened the "views.py" locate def get_image_files(user=None, path=""): and change
if user and not user.is_superuser:         user_path = _get_user_path(user)     else:         user_path = ""
to
 if user:         user_path = _get_user_path(user) .
This is how to remove the superuser requirement and any ordinary user can upload files without giving the is_superuser privileges.


"failed to fill whole buffer" errors

Hi,
I have tried to run the code on simple string and count-occurrences fails with "failed to fill whole buffer" error.
Here are steps to reproduce:

run ./target/debug/dedup_dataset make --data-file dup.txt, data file dup.txt contains simple string "aaabbb"
then run ./target/debug/dedup_dataset count-occurrences --data-file dup.txt --query-file query.txt, where query.txt contains

"bb"
expectation: Number of times present: 2
reality: thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { kind: UnexpectedEof, message: "failed to fill whole buffer" }', src/main.rs:275:31;
"ab"
expectation: Number of times present: 1
reality: thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { kind: UnexpectedEof, message: "failed to fill whole buffer" }', src/main.rs:297:31;
"b"
expectation: Number of times present: 2
reality: Number of times present: 1;

May be I'm doing something wrong? Thanks.

Ah sorry this is a bug with something from the rewrite. I've updated to the new version of the code if you pull -- please let me know if it works correctly.

Thanks, all "failed to fill whole buffer" errors gone with fix!


API Key Page - there should be a message or icon change after copy text

Describe the bug
https://www.berrycast.com/conversations/e78eef22-6c78-5404-a327-26aafe71a833

https://www.berrycast.com/conversations/bc810c32-50f9-598e-9158-5fd61f9f861d


When i try to publish a IPNS name on Travis Ci i get this Error: failed to find any peer in table

Full error:
{ Error: failed to find any peer in table
    at parseError (/home/travis/build/Decentracord/Decentracord-Web/node_modules/ipfs-api/src/utils/send-request.js:16:17)
    at ClientRequest.<anonymous> (/home/travis/build/Decentracord/Decentracord-Web/node_modules/ipfs-api/src/utils/send-request.js:39:14)
    at Object.onceWrapper (events.js:272:13)
    at ClientRequest.emit (events.js:180:13)
    at HTTPParser.parserOnIncomingClient (_http_client.js:539:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:117:17)
    at Socket.socketOnData (_http_client.js:444:20)
    at Socket.emit (events.js:180:13)
    at addChunk (_stream_readable.js:269:12)
    at readableAddChunk (_stream_readable.js:256:11) code: 0 }

Repo: https://github.com/Decentracord/Decentracord-Web
Deploy script: https://github.com/Decentracord/Decentracord-Web/blob/master/app/deploy.js
Travis Log: https://travis-ci.org/Decentracord/Decentracord-Web/builds/376512233#L1514

hey @lukas2005 did you resolve this issue?
It looks to me like that error would occur when the IPFS node cannot find any peer with the hash you pass to name.publish. By default it ensures it exists before publishing:
https://github.com/ipfs/go-ipfs/blob/3f6519b420f0793aa4995b3773e55e3277c8a11f/core/commands/publish.go#L174
Maybe this is an issue with the Travis environment?

I have no idea if that's true but maybe? I just have no idea what in the Travis env would cause such a issue

Hmm ill add that info tomorrow and yeah i know i plan on setting up ipfs on my RPI 3 and on users machine if they use my electron app (it loads my web app from IPFS)

go-ipfs version is: 0.4.14 (added using a npm package go-ipfs-dep (specified in package.json))
And when i tried modifying the publish code to this:
	ipfs.swarm.peers((err, peerInfos) => {
		console.log(peerInfos);

		ipfs.name.publish(hash, { key: key.name }, (err, name) => {
			if (err) {
				console.error(err);
			} else {
				console.log("The published IPNS name is: "+name.name);
				console.log("and it resolves to: "+name.value);
			}
			callback();
		});
	});

My travis build just timeouts: https://travis-ci.org/Decentracord/Decentracord-Web/builds/378301249

Hmm so i guess i should wait some time to let ipfs to connect to peers?

We'll have a new version of ipfs-api out soon to fix that issue but until then try waiting some time before calling name.publish so your node can connect to peers.
I'm going to close this issue in the hope that that fixes your issue. Please comment here again if not and I'll re-open.


[firebase_storage] retrying failed upload

Hi, is there a way to manually retry an upload if the maximum number of retries has been reached?

You should catch any errors with the code storage/retry-limit-exceeded, and then trigger your logic again. You can see a list of errors here: https://firebase.google.com/docs/storage/web/handle-errors

Thanks, Elliot! I suppose I was looking for built-in API to handle it. Since we already have an UploadTask, it seems natural that we'd be able to call something like retry() on that task. Is there any sort of technical barrier in enabling something like that?


darkmode button

Updated the Darkmode button

Can you please modify the button for mobile view and then raise a pr cause mobile view ui is not looking great with the big dark mode button

Okay I'll do


VGM files are recognized different than VGZ of same song

Describe the bug
VGM files are recognized different than VGZ of same song.
I fetched https://vgmrips.net/packs/vgm/Other/Final_Fight_(Sharp_X68000)/10 Bonus Stage.vgz and gave it to HiP. Then unpacked it and gave to HiP.
Both files were recognized but different.
To Reproduce
Steps to reproduce the behavior:

fetch https://vgmrips.net/packs/vgm/Other/Final_Fight_(Sharp_X68000)/10 Bonus Stage.vgz
ungzip it to vgm file
add both VGZ and VGM to HiP
look at UI

Expected behavior
Both songs are displayed same way, same length.
Screenshots

Desktop (please complete the following information):

OS: Fedora Linux

Yeah. So the problem here is that:

There are several plugins can play VGM music (included in hippo)
Some can open vgm and some can open vgz and/or vgm and different plugins support displaying different data.

The plan is to (internally) unpack the songs to memory and then select the plugins to play them. That should solve this issue.


Linting

Added support for linting. It will automatically format the code during build.
Additionally you can run  mvn formatter: format to run linter.

@WyattRoss can you try running the GUI and sample code on this to make sure the format changes didn't break anything? Try to be thorough.

@tarunsamanta2k20 how would we go about changing the formatting that this applies? Is there a configuration file?

I already applied that's why so many file changed.
You can simply build the application using
mvn assembly ..... Command.

LGTM


Improve the handling of AI clients and API keys

We should look into improving how the clients are instantiated, and the API keys provided:

do we need to instantiate both a MistralAI and ChatMistralAI clients?
maybe there should be one plugin to provide the AI clients, that other plugins would consume
offer a way to use in set the API key without going through the settings system, since the settings are stored in the browser in JupyterLite

Originally posted by @jtpio in https://github.com/jupyterlite/jupyterlab-codestral/pull/6#discussion_r1816217804

do we need to instantiate both a MistralAI and ChatMistralAI clients?

They seem to be intended for different uses, respectively completion and chat.
From the API of ChatMistralAI and MistralAI:

Class ChatMistralAI
Mistral AI chat model integration.

Class MistralAI
MistralAI completions LLM.


Support Bridge type

You actually support two modes that you explain crearly their pros and cons: api and kiosk
there is a third way connecting directly to the Huawei inverter using a modbus tcp with ip as bridge (port 6607): https://pypi.org/project/huawei-solar/
I think this third way avoids the rate limits and also returns always fresh data every time you fetch it
I am currently working to support it (i just started) in your project. Im creating the issue to let you know and to try to know from your side if any of my assumptions are not valid (fresh data / rate limit).
I tried in the past this lib sucessfully, you have to edit some settings in the control panel of the huawei inverter, but after enabling this the code is quite simple to fetch the raw data:
import huawei_solar
from huawei_solar import Result

async def get_info():
    # https://pypi.org/project/huawei-solar/
    bridge = await huawei_solar.HuaweiSolarBridge.create(host="xx.xx.xx.xx", port=6607)
    return await bridge.update()

async def export_all_inverter_data():
    inverter_information = await get_info()
    for solar_metric_key, solar_metric_value in inverter_information.items():
            await print(extract_input_power(solar_metric_value))

# This line inside a loop that runs every X unit-periods
asyncio.run(inverter_exporter.export_all_inverter_data())

I think you should use https://github.com/wlcrs/huawei_solar
I don’t think I will be interesting in supporting modbus also. As it is not something I use myself.

You're right. Closing issue
Thanks and apologies!


Scale-out tikv node but the disk space used by tikv is not balanced

base info：
tikv : v2.0.1
tree tikv nodes in tree physical machine

we use 'du -sh db-path' to calcuate the disk space of the tikv node using.
before we scale out one tikv node , the three tikv node a,b,c 's disk space used is 7.1g, 8.2g, 7.9g , and we print out the region size is the following:
"region_size": 12061,
"region_size": 12061,
"region_size": 12061,

after we scale out another tikv node , it trigger the pd server to manage balancing of the four nodes，the disk space used of four tikv nodes is 4.1g，8.7g，6.9g，4.8g（the new one），it seem not balance.
and we print out the region size :
 "region_size": 8406,
"region_size": 8484,
"region_size": 8032,
"region_size": 7802,

This is related to the RocksDB engine, which is a LSM tree implementation. For RocksDB, when we "delete" something, data will not actually be deleted, instead, a flag is written, and the real deletion (and the disk space reclaim that you expect) will happen when doing compaction.
For TiKV, we have some mechanism to reclaim disk space faster after region balance, under certain condition. For example, we will try to delete underlying SST files by using DeleteFilesInRange API in RocksDB, 10 minutes after region balance. The delay is to ensure the safety of existing snapshot references.

How can I manually do the compaction ?  Is there any doc or comand that I can try ?

The compaction is do automatically. Or you can use tikv-ctl (please refer to its doc). Or restart TiKV.


[SHIRO-677] Upgrade to versions-maven-plugin 2.7

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Shiro-pr/62/


ARROW-15718: [C++] Increase thread limit to work around thread issues

In #12339 we added one, which enabled joining one table to one dataset using use_threads=false. However, I found that joining two datasets hit the thread limit.
There are plans to find a long-term fix that can run these operations synchronously with fewer threads, but that won't be ready for the next release.
As a temporary fix for 8.0.0, I propose just bumping up the local_states_ capacity.

It looks like that Java failure is simply flaky right now. See other recent failures:

https://github.com/apache/arrow/runs/6061027109?check_suite_focus=true
https://github.com/apache/arrow/runs/6062605054?check_suite_focus=true


Make Email optional for registration?

Just trying to run a small git server, and make the registration process easier.
Is it easy to just skip email check, minimum amount of information required?

Email is required for git operations and Gitea performs those operations internally so email is required for gitea. Email doesn't need to be a real address, and you don't need to have gitea send emails.

@techknowlogick But not all users need to do git operations in the system, Maybe just limmit user to do things about git operations (like create or fork repo, push code) before they add email setting is enough.


Add a section to the documentation how to run backend tests

Add a section to the documentation in the contribution explaining how to run the backend tests and the need to run them before the PR (that is, until we are able to automate it)

May I get assigned this?
If I am, should the doc be added to the /getting-started or /contributing/development-mode route?

yes of course. Assigned!
It should be added to https://docs.agenta.ai/contributing/getting-started

Add a section to the documentation in the contribution explaining how to run the backend tests and the need to run them before the PR (that is, until we are able to automate it)

Have you tried using GitHub flows to automate the tests?


[Codegen][CPU] Add MaterializeEncoding conversions for parallel generic ops

This PR is needed after https://github.com/iree-org/iree/pull/18063, because broadcasting ops can now have encoded tensors. This PR extends the materialization pattern for linalg.generic ops to work for any fully parallel linalg.generic op (compared to only unary identity generic ops before). The PR also extends the type converter to handle bcast_map by returning the appropriate pack MaterializeEncodingInfo based on the broadcasted dimensions.

Based on https://github.com/iree-org/iree/pull/18069, only review the last commit.


As a user I want to monitor status of overall Connext services / health

helps to watch for the status check
easy to navigate users.
could be used to post server, and maintainence updates as Github does.

closing in favor of betteruptime


chore: Explore the use of of polars to handle data I/O and merging

Overview
Polars is a fast DataFrame library that can run computations in parallel and provide lazy loading capabilities. This can speed up the initial loading of the data before getting passed into the actual solve function as this is currently the bottleneck of the program.

Moved this to a discussion instead: https://github.com/seafloor-geodesy/gnatss/discussions/209


Android import package not found

MainActivity.java
import com.aparajita.capacitor.splashscreen.SplashScreen;
SplashScreen not found, how to implement the package ?

Either you didn't install it correctly or you didn't run cap sync.

npm cap sync fixed the problem 👍🏻 Android Studio still can't find the package (but it's a cosmetic feature)

I have the same problem.
Packages seemed to be installed correctly after npm i @aparajita/capacitor-splash-screen @aparajita/capacitor-logger
But even with ionic cap sync the import can still not be resolved

Do those packages appear in the file list in Android Studio?
You should see these entries in capacitor.settings.gradle:
include ':aparajita-capacitor-logger'
project(':aparajita-capacitor-logger').projectDir = new File('../node_modules/@aparajita/capacitor-logger/android')

include ':aparajita-capacitor-splash-screen'
project(':aparajita-capacitor-splash-screen').projectDir = new File('../node_modules/@aparajita/capacitor-splash-screen/android')

And these two lines in the dependencies in capacitor.build.gradle:
dependencies {
    implementation project(':aparajita-capacitor-logger')
    implementation project(':aparajita-capacitor-splash-screen')

Yes everything appear as you listed
I have Capacitor 4.0.0 and Gradle 7.2.1

I managed to resolve the import by downgrading my Android Studio Gradle version from 7.4.0 to 7.3.3

@laberg Android Studio only offers me up to 7.3.1 for the Android Gradle plugin version. I upgraded Gradle itself to 7.5.1 with no problem.
If Android Studio refuses to index something, you can always try File > Invalidate Caches... > Clear VCS Log Caches and Index, then Restart.

@laberg You need to run npm run build and then npm cap sync


Change name of ecephys devices to follow best practices

Small PR for the device of ecephys to best practices.

LGTM - @h-mayorquin anything else?

LGTM - @h-mayorquin anything else?

No, this should be complete. Nice and simple.


Xeno chat and language

[ ] #1226
[ ] #1227
[ ] #1228
[ ] #1229

this would be cool if it could also become a base for new languages on Upstream


Make grpc gateway generate code at the correct location and alias at the wrong location

Our patch to gRPC gate way had a bug. It generated code at the wrong location: what should be generated at foo/v1/v1gateway/filename.pb.gw.go is generated at foo/v1/filename/v1gateway/filename.pb.gw.go.
This fixes it by generating the code now at the correct location, but continuing to generate aliases (Func = aliaspackage.Func) at the incorrect location to stay backward compatible.
If the user has both foo/bar.proto and foo/bar/bar.proto, buf generate will fail with duplicate generated file name "foo/bar/foogateway/bar.pb.gw.go". Generation will continue without error here and drop the second occurrence of this file, but please raise an issue with the maintainer of the plugin. But this should be very rare, and it shouldn't happen in general if the user uses managed mode and end their directory path with a version number.
It's probably easier to review the actual code diff.
I also assume that a revision will be generated on merge?

No sure why the test failed, make test passes locally.

Confirmed it's outputting code and I can see the deprecation notice in my IDEs (code and zed)
I do wish it showed up on the function itself, but it likely doesn't matter and if it means complicating the patch it's not worth it imo.


Ensure automatic ARTEMIS recovery upon server reboot

Is your feature request related to a problem? Please describe.
When the server running ARTEMIS is reboot, ARTEMIS should properly recover at its previous stage (maybe by defaulting to monitor, detect and mitigate services to "OFF" as normal, but in any case being able to run without any issues).
Describe the solution you'd like
Automatic recovery without the user needing to restart docker-compose.
Describe alternatives you've considered
N/A
Additional context
https://forums.docker.com/t/how-to-handle-server-reboot-when-using-docker-compose/26374
Connected with #231 (regarding module reset).

This requires investigation also of what actually hangs or malfunction in case the server reboots
(if you get this assigned, please try with a VM that you can reset quickly for testing).

Btw, if we do a
docker-compose restart

instead of a
docker-compose down
docker-compose up -d

nginx needs explicit restarting for some reason (it should restart last so that it has the locations of the others, probably the network is not established yet upon restart?)

This is also useful in this context (ensure certain restart order): https://www.reddit.com/r/docker/comments/81azit/starting_containers_in_specific_order_after_reboot/
https://docs.docker.com/compose/startup-order/
Essentially we want nginx to restart after everything has restarted so that it can find the new IPs. Startup works perfectly with "depends_on"; however restarts and reboots induce this problem since nginx does not know the IP address of the restarted service...

Moving to 1.4.0 release, not critical for current or new users.

successfully tested "restart: always" in every docker stanza in docker-compose.yaml.  We also have the monitor and detection modules set to enable automatically once the app is running


[Enhancement] Field may be 'final'[GrpcRetryer]

Search before asking

[X] I had searched in the issues and found no similar issues.

Enhancement Request

located at:
eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/retry/HttpRetryer.java line 34,36,38,44,65
Describe the solution you'd like
Add the 'final' modifier.
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Hi, assign it to me. I hope for those who are working on IntelliJ, the new feature about the check-style will be very soon merged https://github.com/apache/incubator-eventmesh/pull/3115


Fix #1800: Add erf and erfc to CUDA targets

This patch adds support for erf() and erfc() to the CUDA target
and tests them against equivalents from the math module.
Fix for https://github.com/numba/numba/issues/1800.

Current coverage is 87.58%

Merging #1801 into master will not affect coverage as of 5de8334

@@            master   #1801   diff @@
======================================
  Files          283     283
  Stmts        50557   50557
  Branches      5247    5247
  Methods
======================================
  Hit          44279   44279
  Partial        891     891
  Missed        5387    5387

Review entire Coverage Diff as of 5de8334

Powered by Codecov. Updated on successful CI builds.

I've also added support for math.gamma and math.lgamma.


gRPC Service for Project data storage

This is an initial submission with limited scope to address the conversion of the CI storage from mongo to etcd via gRPC service. To start, this addresses only the "project" data model and its storage within etcd.
Verification
sudo ./swarm start
# from amp root dir
go test -v ./api/rpc/project
TODO

[ ] Needs to be added to amplifier. Current tests are not exercising remote calls, but are using gRPC/proto

[ ] Tests should be added to Makefile, once solution matures.

Tested locally and working.

Will reopen when we're ready to focus on build again.


FocusManager refactor

What does the pull request do?
As in #7607, this PR is a major rework of the FocusManager to follow the UWP/WinUI API. This is a significant breaking change, but should modernize the API, make the logic less scattered, fix issues like preserving focus states when switching into and out of a popup (as one example), and making in-app navigation easier for users. This first PR focuses solely on the FocusManager API changes and tab navigation. Since the WinUI code isn't open source, this take the UWP design but recycles the existing WPF navigation logic for its implementation. From my early tests, this seems to work fine. Once the API here is approved and I get everything to a good state, I'll start another PR to implement XYFocus for directional navigation. Both are big changes (though this is the breaking change PR), so I figured its best to separate them
Right now, this is more a prototype for API approval, so I've only committed the bare bones so far (enums, EventArgs, and the empty FocusManager implementation). There are some things related to XYFocus that I've included now, but won't do anything until later. If there are concerns or issues with the proposed API, I'm not opposed to making changes and deviating somewhat.
As I said this is a big breaking change so to make review easier, these are the major changes:

The following were removed or marked as obsolete to be removed with this PR:
IFocusScope, GotFocusEventArgs, IKeyboardNavigationHandler, KeyboardNavigationHandler, NavigationMode

KeyboardNavigationHandler was marked to be removed as new Focus API's should handle this. I haven't marked ICustomKeyboardNavigation anything yet, but my intention is that should no longer be needed. If there is a desire to keep it though, then I'm open to that consideration. (The same probably applies to INavigableContainer)
Most of the Focus logic in KeyboardDevice could probably be merged with the FocusManager too, but I haven't touched that yet.

An instance of FocusManager now exists on each TopLevel, as from what I can tell, is the base View for every platform. However, the public facing FocusManager exists as a static entity, thus FocusManager is no longer registered in AvaloniaLocator and Focus can be changed either by calling InputElement.Focus() or by using the static FocusManager methods as in UWP.

FocusManager was also moved to the Avalonia.Controls project. For some logic, we need reference to some Controls - mostly related to popups. Popups are treated in the same scope as the window/TopLevel they belong to, and for Overlay popups in particular we need to make sure focus never leaves the overlay layer if that's where current focus is.
Windowed popups are treated the same. My intention for them is to make Windowed popups register with the OverlayLayer when they're opened - similar to UWP's PopupRoot layer. The reason - if FocusManager.FindFirstFocusableElement() is called, popups get precedence (particularly light dismiss or flyouts) and should be searched first before moving the window.

GettingFocus and LosingFocus events were added with corresponding EventArgs classes. GotFocus event was changed to just use standard RoutedEventArgs (hence the removal of GotFocusEventArgs). These args no longer carry the KeyModifiers that GotFocusEventArgs did, so if that's an issue let me know. Though IMO, focus shouldn't need info about key modifiers - that should be handled with the pointer or key event directly. FocusManager also has static events to match InputElement.
Typical focus event order
InputElement.LosingFocus -> FocusManager.LosingFocus -> InputElement.GettingFocus -> FocusManager.GettingFocus
While a focus change is in progress, focused element cannot change or be cancelled except through these events
Then the following are fired asynchronously via the dispatcher
InputElement.LostFocus -> FocusManager.LostFocus -> InputElement.GotFocus -> FocusManager.GotFocus

NavigationMethod was changed to FocusState to match UWP. FocusState has the following values:
Unfocused, Pointer, Keyboard, Programmatic
The biggest change here is probably there's no longer separation between directional and tab - both are treated as just keyboard

InputManager keeps track of the last input type. This is so that if FocusState.Programmatic is used, we use the last device to send input to determine what the actual focus state is. For example, if you have button with a flyout that was previously focused via the pointer, and you invoke the button via the enter key to open the flyout, the flyout content will automatically focus with keyboard focus since the last input device was the keyboard

Assuming this is approved, I will also write a docs page on the new APIs so it is documented
Checklist

[ ] Added unit tests (if possible)?
[ ] Added XML documentation to any related classes?
[ ] Consider submitting a PR to https://github.com/AvaloniaUI/Documentation with user documentation

Breaking changes

Obsoletions / Deprecations

Fixed issues

Thanks for this @amwx - it's much needed! I will try to review as soon as possible, but most of us are at NDC this week so it may be next week before we can give you any detailed feedback. From your description though, it all sounds good (except maybe we need to find a way to not need to move FocusManager to Avalonia.Controls).

Thanks for this @amwx - it's much needed! I will try to review as soon as possible, but most of us are at NDC this week so it may be next week before we can give you any detailed feedback. From your description though, it all sounds good

Great! I'll keep working on some of this for now, so no worries on the time frame.

(except maybe we need to find a way to not need to move FocusManager to Avalonia.Controls).

I agree, I didn't really like moving it to the controls project. I think I have an idea, but it involves shuffling the visual tree hierarchy a little bit. I'll open a separate issue for that discussion.

As a side note, I've thought of a use case where sending the KeyModifiers in the LosingFocus/GettingFocus event args is useful, so I will add them back. In WinUI you can check the keyboard state at any time (method differs between UWP & WinUI3), where as that's not the case with Avalonia.

I've returned the FocusManager back to Avalonia.Input as I think I found a way to handle the issues. I've added two interfaces, IOverlayHost and IOverlayVisual to Avalonia.VisualTree to indicate the necessary controls without need the references to Avalonia.Controls.
IOverlayHost is implemented by OverlayLayer and has one method GetTopmostLightDismissElement which returns the topmost popup/element registered so the focus manager knows if popups/overlays are active.
PopupRoot and OverlayPopupHost implements IOverlayVisual which allows the TabNavigation code to detect Popups without knowing they're popups, specifically to enforce a cycle behavior to keep focus navigation within the popup (in the case of using overlay popups).

I'd like to test this PR, but I have discovered that it doesn't build 😓

I'd like to test this PR, but I have discovered that it doesn't build 😓

This is still a WIP. I haven't finished or pushed out changes to some controls that still rely on the old focus manager which is why it doesn't build. I'm hoping to get all this finished up this week.

Just an update on this... Something broke in one of the last few commits or merges of master and I don't know where and walking back to figure it out proved too complicated. Instead, I decided to start over so I'm closing this PR and will open a new one with the new branch (didn't want to do this, but it was the easier solution). I've also made a couple design changes that actually seems to be working out better and requires less "hacks" to keep track of focus (will explain in new PR - original intent of following UWP API is still intact, though). I want to get most, if not all, controls working along with some basic samples for testing before I open the new PR. My goal is to have that PR ready for review and testing when I open it so this can move forward.

No rush. Thanks for the great effort you're doing!


Add escape hatch to avoid conflict with FastClick

When using with FastClick on affected mobile devices/browsers,  clicking a suggestion just fires blur event but not mousedown event. It just hides the suggestion list and the input remains unchanged.
This PR adds ignoredByFastClick option, which, if set to true, makes FastClick ignore suggestion elements. ignoredByFastClick defaults to false to avoid compatibility issues.
I'm afraid that I can't come up with automated tests for this. (FastClick also does not have automated tests.)
To reproduce the problem, just load and initialize FastClick on examples/dist/index.html, then input some text and click a suggestion element on an affected device or chrome dev tool mobile simulator.

@builtinnya Could you please check if 3.0 still has the issue?
npm install<EMAIL_ADDRESS>--save

3.0 uses onClick instead of onMouseDown, so I suspect that the issue may be resolved there.

@builtinnya I just tested version 3.0.0-beta.3 on iOS and everything looks ok even when FastClick is enabled.

@moroshko
Sorry for being late... and thank you for your kindness.
I tested version 3.0.0-beta.4 on Chrome dev tool mobile simulator and confirmed that it's been fixed.
I wish you a Happy New Year!

@moroshko
Sorry for being late... and thank you for your kindness.
I tested version 3.0.0-beta.4 on Chrome dev tool mobile simulator and confirmed that it's been fixed.
I wish you a Happy New Year!

No worries. Happy New Year :fireworks:

No worries. Happy New Year :fireworks:


Dropbox: get available storage

Listing of disk space usage with df -h yields the following:
df: ‘/mnt’: Function not implemented
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       412G   20G  372G   5% /
...

Expected: Dropbox storage appears alongside other filesystem and shows used / available storage.

I implemented file system stat for dropbox and gdrive focusing on individual quotas (not on team quotas)


reexporting a default function turns into const with type any

Bug Report
Moved from Piral.
Prerequisites

[x] Can you reproduce the problem in a MWE?
[x] Are you running the latest version?
[x] Did you perform a search in the issues?

Environment Details and Version
piral 0.10.9
Description
When you default export a function, then export this in a named fashion in your exports.ts file, it becomes a const with type any.
Steps to Reproduce

first.ts: export default function
second.ts: import default under a name
second.ts: export the now named function
api.ts

Expected behavior
Should export the function type
Actual behavior
Exports a const with type any.
Possible Origin / Solution
See the MWE: https://github.com/SantoJambit/shell-mwe/commit/b534b409730ba00bded5b6ee504f97b8910a2eb9

A failing (isolated) test would be appreciated. Thanks!

Created a PR with a failing test


Add conventional "--help" option

Most command-line programs provide an option to display the usage
message.  Currently, this is achieved by passing no options at all.
This change allows for a more intuitive way for users to check the
list of available options.

http://code.google.com/p/phantomjs/issues/detail?id=347

Oops! I forgot to make an issue... Thanks, @ariya!


Minor polishment of the Help for Calcpad

in Chinese

Thank you! I will soon start to build it.

Hope a portable version is also remembered.
At 2024-12-10 21:24:54, "Ned Ganchovski" @.***> wrote:
Thank you! I will soon start to build it.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

Yes, I will do it. No problem.


Applied suggestions

:x: Build osu-framework 0.1.0-PullRequest.484+1941.build.1539 failed (commit https://github.com/ppy/osu-framework/commit/f9549b75c3 by @Nabile-Rahmani)

Did you just apply ReSharper refactorings without thinking?

What the title says. Pray tell me what's actually wrong with those changes.
For the record I don't have ReSharper and had to sift through individual changes. I don't recall being completely mindless because of that but I can definitely tell you I had a headache at the time.

:x: Build osu-framework 0.1.0-PullRequest.484+1951.build.1549 failed (commit https://github.com/ppy/osu-framework/commit/37df7cac9b by @Nabile-Rahmani)

:x: Build osu-framework 0.1.0-PullRequest.484+1952.build.1550 failed (commit https://github.com/ppy/osu-framework/commit/8230e833a4 by @Nabile-Rahmani)

:x: Build osu-framework 0.1.0-PullRequest.484+1986.build.1564 failed (commit https://github.com/ppy/osu-framework/commit/84c7843087 by @Nabile-Rahmani)


Prevent unwanted output to the browser

I removed the trailing ?> and new line that could lead to unwanted output. The end ?> is unnecessary and discouraged (see: http://framework.zend.com/manual/1.12/en/coding-standard.php-file-formatting.html#coding-standard.php-file-formatting.general).

Thank you for this contribution!


Readme links to anything in react-native-blob-util/wiki are broken

There are a number of features that I'd like to read more on, but all of the documentation in your wiki subfolder appears to be gone.
Please either update the readme to point to the right place or put the right docs in place, thanks!

This makes it hard to know the right steps to build+test (and thus hard to contribute).

Thank you - and yes, I agree, basically the whole readme needs a remake


Add verbose flag to make logs less noisy

Checklist

[x] Update changelog in CHANGELOG.md.

Approach is wrong we should use the activation logger in micrologger.


Move billing iFrame to render in main content area

no issue
The billing iFrame needs to be rendered within the main content area rather than as fullscreen.
This needs most probably more tidying up, but is working for now without breaking the functionality.

@kevinansfield Not sure if this is the correct approach for that. The requirement is that the iframe still works as before, but without being rendered fullscreen. Please feel free to merge/update however needed 😄


Add common_prefix_match

Hey!
Running this code instead of common_prefix_search.is_empty() is ~18% faster for my use case (which is matching a trie with ~3500 items, of 5~40 chars each
Not sure if it's worth adding to the crate though..
Running the benchmark on my pc,
Benchmarking [fab7d8c] Trie::common_prefix_search() 100 times: Analyzing
[fab7d8c] Trie::common_prefix_search() 100 times
                        time:   [3.1533 ms 3.1587 ms 3.1684 ms]

[fab7d8c] Trie::common_prefix_match() 100 times
                        time:   [732.60 us 734.58 us 736.95 us]

Hi, thank you for your pull request. I had a similar need and added is_prefix() which I now regret because it can be achieved with the iterator-based searches available in v0.3.0 of trie-rs. I added your benchmark here. Basically, we can now just check to see if the iterator is empty or not.
    assert!(trie.common_prefix_search::<Vec<u8>, _>("すしをにぎる").next().is_some());

Here are the results using the above code. They are thankfully comparable to yours.
Benchmarking [1d4d686] Trie::common_prefix_match() 100 times
Benchmarking [1d4d686] Trie::common_prefix_match() 100 times: Warming up for 1.0000 s
Benchmarking [1d4d686] Trie::common_prefix_match() 100 times: Collecting 10 samples in estimated 5.0414 s (5995 iterations)
Benchmarking [1d4d686] Trie::common_prefix_match() 100 times: Analyzing
[1d4d686] Trie::common_prefix_match() 100 times
                        time:   [823.13 us 828.41 us 837.42 us]

I hope that's satisfactory for you.


Window white line on the bottom before resizing

Wenn I use a Box with backgroundcolor modifier it results in this weard thing where it shows a white Line (the real background color of the window) on the bottom of the screen

This bug got discussed on in the #compose -desktop slack channel under
https://kotlinlang.slack.com/archives/C01D6HTPATV/p1617269489331100
Igor Demin [JB] :

This was supposed to help:

fun main() = SwingUtilities.invokeLater {
    val window = AppWindow()
    window.window.background = java.awt.Color.BLACK
    window.window.contentPane.background = java.awt.Color.BLACK
    window.show {
        Box(Modifier.fillMaxSize().background(Color.Black))
    }
}

But we still have a white line. It disappears only after resize.
A white line isn't pretty, so we will figure something in the future.
Maybe it is the issue in our renderer.

Similar issue.
Maybe they have common cause, maybe not.

I guess this is the result of rounding to pixels but it resolves in an unwanted behavior

Yes, it looks like rounding error. Maybe on Swing side, maybe on skiko side.
My guess - it only happens when scale in the system is not 100% (but not sure).

If we resize the window automatically, the white lines will be replaced by whatever color we specify:
fun main() = application {

    val windowState = rememberWindowState(size = DpSize(890.dp, 648.dp))

    Window(state = windowState, onCloseRequest = ::exitApplication) {

        LaunchedEffect(key1 = Unit) {
            window.background = java.awt.Color.BLACK
            window.contentPane.background = java.awt.Color.BLACK
            window.size = Dimension(window.width + 1, window.height)
            delay(1)
            window.size = Dimension(window.width - 1, window.height)
        }

        Box(modifier = Modifier.fillMaxSize().background(Color.Black)) {

        }
    }
}

For me (Windows 11), it only happens when window is maximized and scale is 125%

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


condo loader does not use pluto as the universe

Not great.  We're loading pluto and then ignoring it in the final condo table load.
The insert statement in condoloader.loadcondo joins to pluto but does nothing with the join.  Fix this.
As a result we are pulling in condos from the department of finance that have no match in pluto.  Reminder - this repo exists in order to add "mappluto_bbl"  to buildings so that users can link buildings to mappluto.
In worst case scenarios this bug results in duplicates that cant be processed in building maintenance.

CONDO_BASE_BBL
CONDO_BILLING_BBL

5014950999
5014957501

5014950999
5014957502

5014950999 should not appear at all in the final load as of today.  It does not exist in mappluto it means nothing to us.

From what I can see the good people at DCP have been taking the minimum billing bbl in cases where multiple billing bbls exist stacked up on a single lot in space.
The problem in the case of billing bbls<PHONE_NUMBER> and<PHONE_NUMBER> is that the source in the Dept of Finance is incorrect.<PHONE_NUMBER> should actually be with condo_base_bbl<PHONE_NUMBER>.   We should have this in the Dept of Finance source:

CONDO_BASE_BBL
CONDO_BILLING_BBL

5014950999
5014957501

5014950033
5014957502


[GUI][FlowBlocker] Materialize and checkbox

QuickFix:
Exclude just the known behavior in checkbox.

dojot/dojot#953.


Create change request from existing project

At Request/Create/[originalProjectId] then it'll load up the request form with the values from that original project and allow you to create a change request.  This will then get created with the changes and proper additional originalProjectId.  Name is recreated, which we may or may not want.   Closes #112

Should you be able to change the PI?
Should there be a text field specific to the change request? (And show that on the quote page if there is anything in it)
If you change the PI (and maybe the dates) the project name changes. I don't think this should happen.
Other than the project name, there should be something that indicates which project (original) that will change.

We can copy the name from the original project if we want, but i could see reasons why you would change the PI.  The thing indicating which project will change is the OriginalProjectId column


Added some tests for CZML Extractor

I added a couple of tests to the CZML Extractor (and also renamed the contrib dir to czml).
I know the unit tests are supposed to test a very specific functionality to narrow down the list of possible culprits in case something goes wrong, but I felt it was more natural to test the whole thing. So the main test function checks nothing is wrong with the more bug-prone parts of the program (no overriding parameters, correct coordinates)
Please let me know if it'd be better to simply create more and smaller unit tests (e.g.test_coordinates and test_parameters)

Thanks! :tada:


FancyZones shift-dragging not working with sticky keys.

Microsoft PowerToys version
0.57.2
Running as admin

[ ] Yes

Area(s) with issue?
FancyZones
Steps to reproduce
Enable sticky keys and drag a window to a zone using shift+drag
✔ Expected Behavior
Window should snap to the zone.
❌ Actual Behavior
Window does not snap to the zone.
Other Software
No response

Same issue here. It's similar to the old resolved issue #5784, but the FancyZones are visible this time when pressing Shift, it's just that windows refuse to snap to them.

is this still a problem in the latest release? /needinfo


Adds a cpp version of xform

Now the xform_4 function in scf_utils.py calls a cpp library in xform/.

Codecov Report

Merging #75 into master will decrease coverage by 4.7%.
The diff coverage is 13.04%.

@@            Coverage Diff             @@
##           master      #75      +/-   ##
==========================================
- Coverage   88.88%   84.18%   -4.71%
==========================================
  Files          22       24       +2
  Lines         351      373      +22
==========================================
+ Hits          312      314       +2
- Misses         39       59      +20

Impacted Files
Coverage Δ

xform/check.py
0% <0%> (ø)

xform/__init__.py
100% <100%> (ø)

scf/scf_utils.py
95.65% <100%> (+0.09%)
:arrow_up:

Continue to review full report at Codecov.

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


⚠ Bofrost.fr has degraded performance

In 81aac60, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1299 ms

Resolved: Bofrost.fr performance has improved in a301d53 after 6 minutes.


Install dependencies after Viject execution

Various package managers must be supported.
use? https://github.com/antfu/ni

Just keep it on commenting for now


[New Rule] no-parent-dir-import rule

PR checklist

[x] Addresses an existing issue: #3974
[x] New feature, bugfix, or enhancement

[x] Includes tests

[ ] Documentation update

Overview of change:
A rule to enforce imports from base directory or from configured paths: https://www.typescriptlang.org/docs/handbook/module-resolution.html#path-mapping
At least for the project at work, this would be a good addition - we've decided quite a long time ago to almost always use full path from src folder when importing something. There is only one exception: when a file is in same directory (or sub-directory). The main reason for this is that the project went through numerous refactors and having full path in imports made it easier to rearrange file structure without going through all the imports in every moved file.
Is there anything you'd like reviewers to focus on?

rule name
a need for a fixer?

CHANGELOG.md entry:
"[new-rule] no-parent-dir-import"
P.S. Nice work on the repo, this was easier than I thought initially!

Thanks for your interest in palantir/tslint, @FDIM! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.

I've signed the CLA

@FDIM i don't think this rule belongs in the official repo as it encapsulates a rather non-standard approach that doesn't play nicely with existing tooling (VSCode intellisense import, for instance). this rule feels very specific to your project's architecture and as a result is not generally useful. you could easily define this rule in your project repo and use it via the rulesDirectory option in tslint.json.
have you experimented with the --rootDir option for tsc? it will produce a compiler error if you try to import files outside of the declared root.

Thank you for getting back.
Are you sure about vscode intellisense? Consider this example:
I've set baseUrl to '.' in src/tsconfig.json and typed Formatt in src/configs/recommended.ts :

As you can see it respects the baseUrl option and suggests path that is relative to the src directory and not ../formatters/* - if I remove baseUrl option, it will prefix the path with ../ upon auto-import.
As for the second point, we are not importing outside of the root dir - all the imports are within src directory, so I do not see how it could help us.
To better explain my issue, lets say we have this structure:
app
core
  - components
  - services
    - auth.service.ts
  - ...
shared
  - componentA
  - componentB
featureA
  - services
  - components
    - featureComponentA
      - featureComponentA.component.ts
  - ...
featureB
  - services
  - components
  - ...

The structure in a feature depends on it's size and thus it could have more levels.
Now inside 'featureComponentA.component.ts' we'd like to use auth service. Without baseUrl option in tsconfig, we have to do:
import { AuthService } from '../../../core/services/auth.service';

with base option pointing to src dir, we can just do
import { AuthService } from 'core/services/auth.service';

Isn't the latter much nicer and less error prone? This tslint rule would enforce this pattern.
I know that this does not work outside of the box in node environment (without path rewriting), but it works perfectly fine when project is built with webpack or browserify.

@giladgray do you have any input to my previous comment?

I think in this current form, the rule doesn't belong in the main tslint package. That said, theres nothing stopping you from using this as a custom rule. If the rule was more based around ensuring that baseUrl was adhered to, rather than just banning ../'s, then it might be more applicable.

That's a good point - I am open for a discussion and I do want to solve the issue at hand in a standard way.
So how about 'strict-base-url-usage'? And I also check if the option is set in tsconfig - I am just not sure if it's easy/efficient to get the option from closest tsconfig

Hey @FDIM - have you tried out tslint-microsoft-contrib's no-relative-imports? That seems like it might satisfy your use case?

Closing as per discussion here and #3974. Thanks folks!


Test service and product for release planner app testing

I have been working with the CLC team to figure out how we can get a test service and product for release planner testing.  The Service Tree, S360, and CLC engineering teams do not want any "fake" services or products in the production environments for any of the applications.  The testing environments could be suitable but there is not a process in place to support our request.  It was suggested that I reach out to service tree to see if they would support a "fake" service and product for testing in the service tree test environment.  If they do will support, then Cloud Lifecyle may be able to support creating a "fake" CLC record for the "fake" product in S360 Test environment.
I was discussing this issue with @kyle-patterson and he mentioned that the Azure SDK team has 2 "services" that are used for testing.  If we could use these existing services, then I can ask the CLC team if they could create a "fake" CLC product in the S360 test environment that we could use to for testing the release planner app.

This has been completed with the addition of the Release Planner Test Service.
Note: if we need to directly make changes in CLC then this test service won't work. We will look into it whenever it becomes an issue


BUG: error: cannot find library libsodium-37cdab92.so.26.1.0

This is a pyzmq bug

[X] This is a pyzmq-specific bug, not an issue of zmq socket behavior. Don't worry if you're not sure! We'll figure it out together.

What pyzmq version?
26.1.0
What libzmq version?
4.3.5
Python version (and how it was installed)
Python 3.12.3, ubuntu 24.04
OS
ubuntu 24.04
What happened?

Developing a python 3.12 program using pyzmq
Using poetry to manage dependencies
Everything works fine inside a docker container

When I try to package it using dh-virtualenv and dh-poetry, I get a failure on the "dh_shlibdeps" step.
dpkg-shlibdeps: error: cannot find library libsodium-37cdab92.so.26.1.0 needed by debian/xxx/opt/xxx/xxx/lib/python3.12/site-packages/pyzmq.libs/libzmq-4192fc97.so.5.2.5 (ELF format: 'elf64-x86-64' abi: 'ELF:64:l:amd64:0'; RPATH: '')

the library seems to be properly included in pyzmq-26.1.0-cp312-cp312-manylinux_2_28_x86_64.whl
root@1a867745cb91:/opt/src# ls -l debian/xxx/opt/xxx/xxx/lib/python3.12/site-packages/pyzmq.libs/
total 2124
-rw-r--r-- 1 root root 1221032 Aug  9 23:54 libsodium-37cdab92.so.26.1.0
-rw-r--r-- 1 root root  948800 Aug  9 23:54 libzmq-4192fc97.so.5.2.5

Code to reproduce bug
No response
Traceback, if applicable
no traceback, just a build error

More info
No response

Sounds like this should be reported to dh-virtualenv, not here. If the lib is there and it's found at import, something is wrong is dh-virtualenv's shlib search.
If it helps, this wheel is built with the now-standard auditwheel/repairwheel workflow used by many wheels, manylinux, cibuildwheel, etc.

i wonder if the lib would always be found at import.
a simple 'ldd' on the libzmq shared object can't find libsodium either.
(.venv) ubuntu@ce5ac35e10ed:/opt/src$ ldd .venv/lib/python3.12/site-packages/pyzmq.libs/libzmq-4192fc97.so.5.2.5
        libsodium-37cdab92.so.26.1.0 => not found

this is the only out of 316 deps across 261 shared objects in my virtualenv that does not resolve.
find .venv/ -name \*.so -o -name \*.so.\* | while read f; do echo "============ $f"; ldd $f; done

note that this shared object DOES find the libsodium dep
(.venv) ubuntu@ce5ac35e10ed:/opt/src$ ldd .venv/lib/python3.12/site-packages/zmq/backend/cython/_zmq.cpython-312-x86_64-linux-gnu.so
        libzmq-4192fc97.so.5.2.5 => /opt/src/.venv/lib/python3.12/site-packages/zmq/backend/cython/../../../pyzmq.libs/libzmq-4192fc97.so.5.2.5 (0x00007f1498542000)
        libsodium-37cdab92.so.26.1.0 => /opt/src/.venv/lib/python3.12/site-packages/zmq/backend/cython/../../../pyzmq.libs/libsodium-37cdab92.so.26.1.0 (0x00007f14981fc000)

it been years since i last looked at this stuff, but IIRC this might have something to do with RPATH?
(.venv) ubuntu@ce5ac35e10ed:/opt/src$ objdump -p .venv/lib/python3.12/site-packages/pyzmq.libs/libzmq-4192fc97.so.5.2.5 | grep RPATH
(.venv) ubuntu@ce5ac35e10ed:/opt/src$ objdump -p .venv/lib/python3.12/site-packages/zmq/backend/cython/_zmq.cpython-312-x86_64-linux-gnu.so | grep RPATH
  RPATH                $ORIGIN/../../../pyzmq.libs

could it be possible that the libzmq object needs that same RPATH set during wheel build, so that it can also find the libsodium dep?

Can you import zmq in the env? If not, that's definitely a pyzmq problem! If it works, the detection tool is not accurately detecting the how libraries get loaded.
It's worth noting that both libzmq and libsodium are exclusively loaded by that _zmq. So maybe loading libzmq directly on its own wouldn't work, but that doesn't matter in practice because it never happens, except by this tool which makes imprecise assumptions. If that's the case, perhaps the package to report the issue to is auditwheel, because it may only be performing the rpath patch on Extension modules, but not on intermediate libs like libzmq in pyzmq, which have transitive dependencies (_zmq -> libzmq -> libsodium). And maybe there's a flag pyzmq should be passing to auditwheel.

import zmq definitely works, so i'll chase the various tools folks.  thanks for reviewing!

I think this is already reported in auditwheel as https://github.com/pypa/auditwheel/issues/451 . Apparently audithweel fixes RPATH when it's defined, but doesn't add it. Adding (unnecessary, but not wrong) RPATH when we build libzmq seems to solve the problem: #2014. When it finishes, can you test with the appropriate wheel from this run? I think it will work.

Looks good!  built the deb with the new wheel and did a quick sanity check, seems to work fine.  thanks for the speedy fix :-)


Create minimal data upload app

This is related #22 , but starts off with a narrower focus.
Goals of this is PR:

Build a DataModel class which stores the data of the uploaded file

keys (for now): ID, TIME, MEASUREMENT (we can handle the exact data format in a separate PR)

This DataModel class integrates into the database using Djangos features
Create a function view that provides a user interface for uploading data

This app should provide the interface to data importing anywhere in the PKPDApp.

After some search it is suggested that the best way to store the data is either saving it as a file, or using a database that is specifically designed for time series data.
See https://python.developreference.com/article/20213612/Django+%2B+Postgres+%2B+Large+Time+Series.
It may be easiest to start with storing the data as files, but we could have a look at the database option see #26 .

it would be nice to use a time series database, but suspect files would be a lot easier...

I realised that a minimal data upload app makes little sense, because data import is going to be used all over the place and before we don't have a proper solution I think it's better to keep models, forms, and views, with the app that is also processing the data. See #31 . I will therefore close this issue.


File Uploading Component

Feature Request
Description
Similar to antd https://ant.design/components/upload/ File Uploading capability. one we would use for sure is a drag and drop file upload.

Waiting on design input from UX on wether or not this is a component we want to add to the component library.


feat: v6.4.0

Added schema versioning, so updating the app will not lose qvd history unless the schema changes.

Added sheet titles along with the qvd schema variable @withdave. Ready to merge.


feat: add system info to the about_user prompt

[!IMPORTANT]
Adds system information to the about_user prompt in gptme/prompts.py and updates dependencies for Linux distribution details.

Behavior:

Adds system information to about_user prompt in prompt_user() in gptme/prompts.py.
Introduces prompt_systeminfo() to generate system information prompt.
Implements get_system_distro() to retrieve Linux distribution name.

Dependencies:

Adds distro package to pyproject.toml for Linux distribution information.

This description was created by  for 8fcd4145bdf6a55e5fdd1a5c3a22c7e3125bd0da. It will automatically update as commits are pushed.

@ellipsis-dev do another review

@ellipsis-dev review

@ellipsis-dev review

I just noticed/remembered I added this little line in the shell tool to make it aware of macOS systems: https://github.com/ErikBjare/gptme/blob/f25860243f26e107a5c18c89f538ce2f02549011/gptme/tools/shell.py#L53

@ErikBjare Review this whenever :+1:

Closes #166

Nice, thanks!

Got this weird output when testing in #225: Ubuntu 6.6.57-1-lts
So we accidentally got the kernel version and not the distro version.


feat: add support for application list filters

Added support for time-based filters such as startTimeInterval, submissionTimeInterval, endTimeInterval.
PR summary
Added support for time-based filters - startTimeInterval, submissionTimeInterval, endTimeInterval.
Fixes: <! -- link to issue -->
PR Checklist
Please make sure that your PR fulfills the following requirements:

[x] The commit message follows the Angular Commit Message Guidelines.
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

PR Type

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] New tests
[ ] Build/CI related changes
[ ] Documentation content changes
[ ] Other (please describe)

What is the current behavior?

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

Test Results

Integration Test

Unit Test

:tada: This PR is included in version 1.3.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Thought on a package manager for ReScript

First of all, I wanna make it clear that this is not an opinion on first-class ReScript tooling.
I made yarn-plugin-rescript before, and the experience of using the third-party tooling was actually very good.
But it still has sharp edges, And it is for P'n'P.
The only feature ReScript needs to work without NPM is to extract the bsconfig.json dependency tree and emit it to the node_modules path.
On the other hand, when I working on the rescript-deno project, I really wanted a package manager because, additionally, Deno requires ReScript users to manage import maps to resolve node_modules dependencies.
I can say unless ReScript doesn't include Node.js binary itself, it's awkward that it relies heavily on node_modules resolution.
A list of things I feel really needed for ReScript projects to have a platform-agnostic toolchain:

Managing of ReScript binaries
Managing of prebuilt PPX binaries
Fetching only BS dependencies directly from the NPM registry.
Sandboxing module resolution behavior and emit platform-specific like node_modules or import_maps on demand.
Other toolings (init, config, scripts integrated with ReScript build, etc)

It could be something like an opam switch for ReScript.

from a user point of view, me, a solid package manager for rescript is the only thing missing for it to become to web development what rust is to backend development: a fast growing, highly ergonomic, addictive and fulfilling programming language.


manga dex to neko catalog delay[bug]

Describe the bug
The catalog for Neko, that pulls from mangadex is either behind somehow or is missing something from mangadex for a time. This time period is short, and whenever Neko requests the user library updated, it seems to pull all the updated chapters, but there is this delay, where if you were not explicitly looking at both the site and Neko(I know I'm crazy) you would not notice anything is wrong, and only manually requesting for the chapter in the catalog, by pulling down on the chapters list do you generally get the full list.
Screenshots
this first screenshot is from mangadex site, where the manga has 44 chapters

the second one is from Neko in the chapter description where it shows how many it has( it also showed up in the catalog like it would have been recently updated.

this screenshot is also from Neko from the chapter list screen

this last screenshot is from Neko where I manually updated the chapter list

Please complete the following information:

Device: Galexy S7
Android Version: [e.g. Android 8.0.0]
Neko Version [e.g. 1.0.5]

closing and reopening in a different ticket


support for using reST

Besides AsciiDoc, some people would like to have support for writing posts using reStructuredText...

Actually, reST support has been around for a long time now: v0.10, v0.11 and v0.12 have them.  The documentation actually mentions an experimental support for reStructuredText, and while its usage is undocumented, it has worked quite well actually.
For example, try hugo new post/hello.rst, and then do this:
$ hugo_0.12_linux_amd64
ERROR: 2015/01/21 exec: "rst2html.py": executable file not found in $PATH
...

It is trying to call rst2html.py --leave-comments, and would show the above error if it cannot find rst2html.py in the $PATH.  Once you have rst2html.py installed, it would likely render your reST pages correctly.
It is only quite recently (November 2014?) that reStructuredText support disappeared due to a refactoring-in-progress, but the underlying code has always been there.
I have just added some code (mostly copy and paste) in 19c52ab0b5a5a8f89d43dcc2e2a15e2f53170017 to re-enable reST support.  The latest version also looks for rst2html too: On Debian and Ubuntu systems at least, rst2html is installed in /usr/bin/rst2html without the .py extension, so I made that little change.
@gour and @solutionroute, could you please give either Hugo v0.12 or the latest v0.13-DEV (go get -v) a try, and see if it works for you?  Please give us feedback on this feature: What works, what doesn't, etc., so we can better document this and make improvements if possible so it is no longer "experimental".  :-)  Thanks!

FYI, there is a pure Go implementation of restructured text parser at https://github.com/demizer/go-rst. Now it's very alpha status but worth incorporating it into Hugo in the future.

For historical interest, the initial code for reST support was first contributed by Sam Kleinman (@tychoish) in commit 431fa0e2d75ca8ddd145bd5db20e50a160772577 on 2013-07-06, and a few reST fixes on 2013-07-09 (so that is before v0.8!), though it is only in v0.10 and above that are working for me.

@tatsushid wrote:

FYI, there is a pure Go implementation of restructured text parser at https://github.com/demizer/go-rst. Now it's very alpha status but worth incorporating it into Hugo in the future.

Awesome!  Good to know!  :clap:

@anthonyfok I did play a bit with reST support after installing rst2html5 on my machine.
Simple, small document worked, but when I was try with Pandoc' README I had to cut lot of stuff in order to be able to get any output.
However, even running rst2html on the same file was problematic. :-)

Hi @gour, sorry for the late reply.  The current Hugo code uses exactly rst2html to render reST files, so whatever rst2html can or cannot render, Hugo can or cannot either.
Does rst2html5 render Pandoc's README file correctly?  Are you suggesting that we look into using rst2html5 and/or Pandoc to render reStructuredText documents instead?

Wait a second, the Pandoc README file is not written in reST, but rather in Pandoc's own Markdown format!  :-/

Well, since Hugo has been secretly supporting reST for a few releases now, and that secret is now in the open, the goal of this issue is accomplished.  An experimental yet usable implementation relying on rst2html.  Closing this issue.
A new issue #1436 has been open to track the future support for native Go implementation of reStructuredText (reST).  Any volunteers?  :wink:


mobile web testing

Hey, I became fond of what you did here.
I see that you are using browserName in order to route to appium nodes. In that case, how do you handle mobil web automation, since there you need to set browserName to like "Chrome", "Browser" for android.
I have written an custom capabilitiy matcher inside hub, just considering your solution but this is an important blocker for me that if you have a solution for this.

Hey!
I agree, that using browserName is not the right solution, but I did it because:

that was the fastest solution
it's working "out of the box" with grid for native app's
I've needed to see device name in grid

I'd rather prefer to use deviceName and custom capability matcher. The only problem is I need to see device name in grid, but I think I can write some kind of servlet for node properties api. Maybe you can share your matcher, so I can use it?

Hey Igor,
Thank you for reply.

This is our capability matcher early version : https://gist.github.com/serhatbolsu/40ca473991232c578173
It is simple and enough to use deviceName and simply dont bother browserName.
In order to see deviceName in grid/console, there is a simple way you might now know. you can hower mouse to browser icon or device name or null value inside node windows. It shows all desiredCapabilities for that node.

Only problem I have right now is that; if appium selects with deviceName and use browserName for say "chrome". For some reason /grid/console does not work. Node and hub execute fine but you can not observe the site.
BR,
Serhat


How to use vit-Plugin Shared Libraries?

Hi.
Now , I added a hybrid layer to my Vit model. So how to export a complete engine with onnx file(include hybrid layer) and vit-plugin.so file.

Create a dummy node(transformer) in your onnx, align your vit impl with FasterTransformer ViT, maybe modify current repo.
@lix19937
Thanks for your reply, Do you have a reference example？

@lix19937 Please, Help me see what kind of mistake this is？
ERROR: 3: [executionContext.cpp::resolveSlots::1541] Error Code 3: API Usage Error (Parameter check failed at: runtime/api/executionContext.cpp::resolveSlots::1541, condition: allInputDimensionsSpecified(routine)
)
ERROR: 3: [executionContext.cpp::resolveSlots::1541] Error Code 3: API Usage Error (Parameter check failed at: runtime/api/executionContext.cpp::resolveSlots::1541, condition: allInputDimensionsSpecified(routine)
)
ERROR: 2: [executionContext.cpp::enqueueInternal::391] Error Code 2: Internal Error (Could not resolve slots: )

@ywfwyht  Sorry, reply late,  the error seems a tensorrt issue,  allInputDimensionsSpecified  you can check you dims setting( dynamic shape or not), and use the latest version of trt 8.6


HDDS-10518. Create base Builder in WithMetadata and WithObjectID

What changes were proposed in this pull request?
Builders in subclasses of WithMetadata and WithObjectID all have their own code for setting the properties from the base classes.  The goal of this task is to reduce code duplication by creating builders in the base classes and using them in the subclasses.
Existing subclass builder methods are kept for covariant return to be able to keep existing chained method calls (e.g. return OmBucketInfo instead of WithMetadata).  We can remove them after replacing with non-chained calls in a follow-up patch.
https://issues.apache.org/jira/browse/HDDS-10518
How was this patch tested?
CI:
https://github.com/adoroszlai/ozone/actions/runs/8277449313

@ivandika3 please take a look as well

Thanks @szetszwo for the review, added all missing @Override annotations.

Thanks @ivandika3, @szetszwo for the review.


command prompt doesn't always start on a newline

I am experiencing an issue where I use a tool like curl to send something to stdout, and then the command prompt shows up on the same line as the output.  For example,
I hit the github api example 3 consecutive times, and here's what my shell looked like:
curl https://api.github.com/zen
Anything added dilutes everything else.~ $ curl https://api.github.com/zen
Design for failure.~ $ curl https://api.github.com/zen
Speak like a human.~ $

Instead of:
curl https://api.github.com/zen
Anything added dilutes everything else.
~ $ curl https://api.github.com/zen
Design for failure.
~ $ curl https://api.github.com/zen
Speak like a human.
~ $

I can reproduce this, but this isn't an issue related to scoop. The problem is that curl https://api.github.com/zen doesn't seem to send a new line at the end. That's why the command prompt appears on the same line as the output.
It's the same with any other page. Just try curl https://www.google.se for example. (for the .com version it actually works that the command prompt is on a new line. Guess that's due to the pages source code having an empty line at the end.


Update README.md

Add video and intelligent robotics references

I've added a Demos section to the README file showcasing videos from people who have used this repository to run ROS on a Pepper robot. Closing in favor of https://github.com/esteve/ros2_pepper/commit/9b16bbfc3bcf071e04e516267278a0bdad1798a2


Rename playerround.cost_measures_bought to cost_house_measures_bought

The database field playerround.cost_measures_bought contains the costs for both the house measures and the personal measures. This can be split, where the house measure costs are stored in cost_house_measures_bought, and the personal measures are stored in a new field.

ALTER TABLE `housinggame`.`playerround`
CHANGE COLUMN `cost_measures_bought` `cost_house_measures_bought` INT(10) UNSIGNED NOT NULL DEFAULT 0 ,
CHANGE COLUMN `cost_satisfaction_bought` `cost_personal_measures_bought` INT(10) UNSIGNED NOT NULL DEFAULT 0 ;

Done.


Installation using Docker

inside the repo we can find Dockerfile
Dockerfile sets the total machine environment for the repository
To build the Dockerfile, we use the Makefile with all the shell commands (edited from the original one)
Make commands
make build-image
make run
inside Makefile we have two functions:

build-image (for Docker image) and run (run Container)
they are separate from each other: if you need to change the configurations of the env you need to change the build-image, if you just want to change how the Container is launched, just change the run command

Docker commands
docker ps
docker ps -a
docker stop ID
docker images
docker image rm ID
The Docker run command is configured to mount the home/appuser/working_dir/ to the github cloned repository ~/Grounded-Segment-Anything, so we can change the files inside the Container (/home/appuser/working_dir) and it will change the local hosto folder ~/Grounded-Segment-Anything. This is important because the Docker Container can crash and we might lose the work.
Tmux inside Docker
https://stackoverflow.com/questions/51809181/how-to-run-tmux-inside-a-docker-container

need to add to Dockerfile

apt-get update && \
  apt install -y tmux &&

Jupyter Notebook

we need to install jupyter inside Container: pip install notebook

the goal is to launch jupyter and the calculations from inside the Docker Container (a bit like Conda env) so we need to run the Docker Container already bind to the port that we want to bind the jupyter from inside the container, such as: (https://stackoverflow.com/questions/38830610/access-jupyter-notebook-running-on-docker-container)
  Host machine (the VM we use): docker run -it -p 8888:8888 image:version

  Inside the Container : jupyter notebook --ip * --no-browser --allow-root

  Host machine access this url : localhost:8888/tree

H100 Compute Capability

the Dockerfile specifies that the max CC is sm_86 (8.6) but our H100 is sm_90 (9.0)
TODO: try in A100 Azure

https://developer.nvidia.com/cuda-gpus

GPU
Compute Capability

NVIDIA H100
9.0

NVIDIA A100
8.0

(base) root@h100-rebecca:~/Grounded-Segment-Anything# docker ps
CONTAINER ID   IMAGE     COMMAND                  CREATED       STATUS       PORTS                                       NAMES
b464b2bb26c4   gsa:v0    "/opt/nvidia/nvidia_…"   2 hours ago   Up 2 hours   <IP_ADDRESS>:8080->8080/tcp, :::8080->8080/tcp   gsa
(base) root@h100-rebecca:~/Grounded-Segment-Anything# docker stop b464b2bb26c4
b464b2bb26c4
(base) root@h100-rebecca:~/Grounded-Segment-Anything# docker images
REPOSITORY   TAG       IMAGE ID       CREATED       SIZE
gsa          v0        813eb17e9d25   3 hours ago   22.5GB
(base) root@h100-rebecca:~/Grounded-Segment-Anything#


Missleading Documentation

Klask is awesome. Its been a huge boon to productivity. Thanks for building this.
I have one complaint :)
The documentation for app_run states:
"Call with an App and a closure that contains the code that would normally be in main."
which leads one to belive that they should have some function that would do what the main function should do in a simple cli. Instead it looks like klask forks off a child process and passes it the arguments that the user entered in the UI. I skimmed the code, looks like there are some environment variables being set to prevent infinite recursion. Its probably a good idea to document changes to the environment as well.
After reading the documentation I wrote the following code to boot the gui if the user did not provide required arguments. I had no idea that the main was essentially being called twice and that only the second call to routine was ever called. I'd file a pr to tweak this but I don't fully understand whats going on yet. It seems like sometimes run_derived does call the closure, and other times it does not.

// clap derive on this
struct Opt{
}

// actuall processing using arguments
fn routine(opt: &Opt){};

fn main() {
    match Opt::try_parse(){
        Err(e) if e.kind == clap::ErrorKind::MissingRequiredArgument => {
            println!("{}", e);
            klask::run_derived::<Opt, _>(Settings::default(), |matches| match routine(&matches) {
                Ok(_) => {}
                Err(e) => eprintln!("Error: {}", e),
            });
        },
        Err(e) => e.exit(),
        Ok(opt) => match routine(&opt) {
            Ok(_) => {}
            Err(e) => eprintln!("Error: {}", e),
        },
    }
}

Thanks again.

Hi!
I run the binary twice so that I can easily intercept println/ stdout and also pass in files/ text to stdin. The idea was to make it as painless as possible to convert a CLI app to GUI, without changing any of the main application code.
Klask works like this:

User runs the binary, there's no CHILD_APP_ENV_VAR environment variable ⇾ don't run any of the user code, just display GUI.
User presses "Run" in the GUI ⇾ run the binary, with CHILD_APP_ENV_VAR and intercept stdin/ stdout.
Binary is run with CHILD_APP_ENV_VAR ⇾ run the user provided closure.

Thanks for pointing out that this isn't documented, that's definitely an issue.
Ability to run GUI if there are no flags provided was requested multiple times. I think I tried it at the very beginning of working on klask, but from what I can remember there were some problems. I will definitely have to revisit this, but I don't have much time right now, unfortunately.


Sum All Odd Fibonacci Number - some  of the goals fail, although the results are good.

Challenge Sum All Odd Fibonacci Numbers has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
I get this fails, although the numbers and the results are correct.
with the second goal sometimes fail and sometimes passes..
My code:
var fibs = [1,1];
function sumFibs(num) {
  fibs = generateFibs(num);
  return fibs.reduce(function(acc, item){
    if(item % 2 !== 0){
      return acc + item;

    }
    else return acc;
  });
}
function generateFibs(num){
  while(fibs[fibs.length - 1] + fibs[fibs.length - 2] <= num){
    fibs.push(fibs[fibs.length - 1] + fibs[fibs.length - 2]);
  }
  return fibs;
}

sumFibs(75025);

EDIT: the console output of the sums.

Fixed it with merging the two functions, Guess I can't use helper function?


Update to new pants-gen version

switch to version 0.2.0
This is a breaking change in terms of the spec no longer being readable.

actually 0.2.1 because I oops'd


Blank response on 4xx error

I having some trouble receiving 4xx error responses from google . It just won't return anything same code when it's succeed return 200 and connection id so I can save it in database for later use . I am using to create Interconnect attachments via api . So if there is error I want to show error to customers so they can send error to me . If I make those api calls via Insomnia and Postman google return 4xx error with message whats wrong . I have return $result; but still nothing empty page and there is nothing in server error logs .

Please share a code sample so that we can determine whether the issue lies with the API, with this client, or with the code you're using to call the service.

here is code bellow . Like I said on success it return 200 and connection id but not on 4xx .
function insertInterconnectAttachment(\Google_Client $client, $project_id, $region, array $body)
{
    $computeService = new \Google_Service_Compute($client);
    $interconnectAttachmentBody = new \Google_Service_Compute_InterconnectAttachment($body);
	//print_r($body);
	//print_r( $interconnectAttachmentBody);
    $result =$computeService->interconnectAttachments->insert(
        $project_id,
        $region,
        $interconnectAttachmentBody
    );

	return $result;
}

$project_id = 'company-gcp-interconnect';
$client = new Google_Client();
$client->useApplicationDefaultCredentials();
$client->addScope(\Google_Service_Compute::COMPUTE);

$result = insertInterconnectAttachment(
    $client,
    $project_id,
    $region,
   [
  'name'=> $name,
  'bandwidth'=> $band_value,
  'pairingKey'=> $paring_key,
  'interconnect'=> $interconnect,
  'type'=> 'PARTNER_PROVIDER',
  'vlanTag8021q'=> $vlan,
  'partnerMetadata'=> [
    'interconnectName'=> $name,
    'partnerName'=> 'CompanyName',
    'portalUrl'=> 'https://company.com'
    ],
 ]
);

print_r($result);

One more thing, I delete attachment from gcp and after try to delete through web api and it return 404 error .
Fatal error: Uncaught Google_Service_Exception: { "error": { "errors": [ { "domain": "global", "reason": "notFound", "message": "The resource 'projects/project-gcp-interconnect/regions/europe-west1/interconnectAttachments/testtttttrf' was not found" } ], "code": 404, "message": "The resource 'projects/project-gcp-interconnect/regions/europe-west1/interconnectAttachments/testtttttrf' was not found" } }
So it won't return 4xx only on creating connection

Unfortunately, due to the nature of interconnects, it's difficult for me to run and verify my answer, but based off my studying of the documentation, I may be able to offer some pointers.
The API docs indicate that the response is a long-running operation. In error cases, you may still receive a 200 status with an Operation. You should inspect the response (Operation.error) to find error messages.
If you are not receiving a response, your best option may to pose the question to the Compute team using one of the support methods described on their Getting support page. If you have a support package, definitely make use of it to get help from the API team. If not, I'd suggest the google group.