Upgrade problem of Dart to use flutter gallery.

When I tried to use flutter gallery, I got this error message.

Because flutter_gallery depends on shelf >=0.7.3+2 which requires SDK version >=2.0.0-dev.61.0 <2.0.0, version solving failed.
pub upgrade failed (1)

So I wanted to upgrade dart SDK to dev.61.0, but how can I upgrade? I installed choco and upgarded dart but it didn't work not at all. My flutter doctor said like below.

[√] Flutter (Channel beta, v0.5.1, on Microsoft Windows [Version 10.0.17134.165], locale ko-KR)
• Flutter version 0.5.1 at C:\flutter
• Framework revision c7ea3ca377 (7 weeks ago), 2018-05-29 21:07:33 +0200
• Engine revision 1ed25ca7b7
• Dart version 2.0.0-dev.58.0.flutter-f981f09760

Yes, my Dart version is 2.00-dev.58.0, but I need 2.00-dev.61.0 to see WHAT FLUTTER GALLERY IS.
How can I fix it?

The same issue I just faced when I am in Master branch by default, checkout the beta branch will be fine.

git checkout -t origin/beta
flutter packages get

@zoechi @leo-chaoliu Sorry for late answer, I had an appendectomy. It was solved by @leo-chaoliu :)

@baeharam thanks for the update. Then let's close this issue.

Hello, i have the same issue
[flutter_gallery] flutter packages get
Running "flutter packages get" in flutter_gallery...
The current Dart SDK version is 2.0.0-dev.58.0.flutter-f981f09760.
Because flutter_gallery depends on shelf >=0.7.3+2 which requires SDK version >=2.0.0-dev.61.0 <3.0.0, version solving failed.
pub get failed (1)
exit code 1
Flutter doctor
[√] Flutter (Channel beta, v0.5.1, on Microsoft Windows [Version 6.3.9600], locale en-US)
• Flutter version 0.5.1 at C:\Project\flutter
• Framework revision c7ea3ca377 (2 months ago), 2018-05-29 21:07:33 +0200
• Engine revision 1ed25ca7b7
• Dart version 2.0.0-dev.58.0.flutter-f981f09760
I have the latest flutter and dart sdk and plugins
I have installed the latest dart release
Dart VM version: 2.0.0-dev.69.5 (Tue Jul 31 15:05:14 2018 +0200) on "windows_x64"
I am also in beta channel (i have tried other channels, still fails)

Dart version 2.0.0-dev.58.0.flutter-f981f09760

@ibanjac sounds like you need to update to a newer Flutter version that ships with requires SDK version >=2.0.0-dev.61.0

I have the latest flutter sdk, latest Dart VM version: 2.0.0-dev.69.5, latest vs code plugins

@ibanjac The installed Dart VM version doesn't matter, only the Dart VM version shipped with Flutter.
Try
flutter channel dev
flutter upgrade


UnhandledPromiseRejectionWarning: Error: node_modules directory was not found

I am using the 4.0.0-preview.13 version, but its not working.
(node:562824) UnhandledPromiseRejectionWarning: Error: node_modules directory was not found     at file:///../node_modules/doxdox-cli/dist/src/index.js:65:15 (Usenode --trace-warnings ...to show where the warning was created) (node:562824) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or  by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict( see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:562824) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js p rocess with a non-zero exit code.
This error presents in issue:
https://github.com/docsbydoxdox/doxdox/issues/106
My information environment:

Windows 10
Node v14.15.5
npm 6.14.11
doxdox 4.0.0-preview.13

Excellent app!

Life got away from me, and this ticket fell by the wayside, and I'm sorry for that. I have pushed a fix that should have fixed it. If anyone runs into a similar issue or the same issue, I can reopen this ticket.


Implement some conversions for indexes and spans

As I've said in the past, I'd like to continue to nudge people towards using codespan-reporting with codespan_reporting::files::SimpleFiles or their own implementation of codespan_reporting::files::Files, but this could help people who are currently using codespan more work with the new diagnostic data types in a cleaner way.

Was literally just looking for a Range<usize> conversion so I could pass a codespan::Span to codespan_reporting::diagnostic::Label::primary(). Thanks for adding this, @brendanzab!

Just published this in v0.9.1!


Example notebook for extracting all bands to geotiff

For exploring data in e.g. ENVI
Specify bounding box and get back a geotiff with all the bands for that location.

hmm, I have plenty of notebooks that do this, but there is no specific example notebook.
Whoever gets around to building this can check out our 'GeoTIFF' tagged notebooks for examples.


add gettext pin, include in runtime deps

hopefully fixing #3

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

hotfix merge, closes #3

Of course, I forgot to bump the build number...


feature request: report module missing __all__

Background
For python packages it would be helpful to notify when a non-empty module lacks __all__. Having __all__ present forces module developers to continuously decide on sub-modules that should be imported. In practice is prevents errors such as unused imports.
This is typically one of the checks to have when a code base is maturing, and fits with other best practices.
At first glance, this is what flake8-dunder-all provides. The actual implementation however, is close to pyflakes F401: unused-import. Hence, DAL001 can be considered an alias for F401.
Proposal
My proposal is to implement the functionality under the code DAL002. ruff already has quite some functionality related to imports, and this feature should require little code. Autofix is possible and there have been tools that are doing this.
If correct, ruff currently ignores unused-imports in __init__.py files:
Examples
Example __init__.py:
from sub.module import foo, bar

foo(3)

Gives no error in my setup (despite ignore-init-module-imports should be false).
But even for an __init__.py file without unused imports ruff would be welcome to suggest __all__, and ideally offering the possibility to autofix in most cases:
from sub.module import foo, bar

foo(3)
bar(2)

Preferably should hint that:

DAL002: module lacks __all__

Gives no error in my setup (despite ignore-init-module-imports should be false).

Interesting... Separate from this proposal, that sounds like a bug, but I can't reproduce:
❯ cat foo/__init__.py
───────┬──────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: foo/__init__.py
───────┼──────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ from sub.module import foo, bar
   2   │
   3   │ foo(3)
❯ cargo run foo -n --isolated
    Finished dev [unoptimized + debuginfo] target(s) in 0.17s
     Running `target/debug/ruff foo -n --isolated`
foo/__init__.py:1:29: F401 `sub.module.bar` imported but unused
Found 1 error(s).
1 potentially fixable with the --fix option.

Hence, DAL001 can be considered a synonym of F401.

I don't think I fully follow this part... The documentation of the plugin suggests that it does exactly what you describe 😅 Does it do something different in practice?

Are there any files that, conventionally, should be able to omit an __all__ export? Like "private" modules?

Are there any files that, conventionally, should be able to omit an all export? Like "private" modules?

In the typing world there is a convention that from .foo import bar as bar is considered an export. This is the rule implemented by mypy's implicit_reexport check, for example (it also supports __all__), but it is not understood at runtime (doesn't affect star imports like __all__ does). However I don't think it should affect the lint; if one is using this convention, can just not use the lint.

I don't think I fully follow this part... The documentation of the plugin suggests that it does exactly what you describe 😅 Does it do something different in practice?

The wording of the violation "module lacks __all__" is unfortunate. It chooses to add __all__ when there are unused imports. It also scans on file level, not on module level/___init__.py as the message suggests (see tests for examples).

It also scans on file level, not on module level/_init.py as the message suggests

As someone who uses flake8-dunder-all, I want it to scan all modules, not just __init__.py files (packages).
The biggest value of __all__ is in files with logic, because you don't want to be re-exporting your dependencies.   It's slightly useful in __init__.py files, but only because it does count as a use in the context of F401.

I would also really appreciate this rule being implemented, especially if it scans every module (not just __init__.py files)


style=True

This
df_sidetable = df.stb.freq(['Region'], value='Award_Amount', style=True)
print(df_sidetable)

gives me:
<pandas.io.formats.style.Styler object at 0x00000227AC76F0A0>

sidetable 0.5.0
pandas 1.0.5
jinja2 2.11.2

Unfortunately this is the way the pandas style API works. The styled object will display in a notebook if you just type df_sidetable but if you try to print, you get the styler object instead. I admit its confusing.
If you are in a notebook environment, this approach should work:
from IPython.display import display
display(df_sidetable)

It's somewhat similar to if you print(df_sidetable)  you get a raw text view, not the formatted table. Fortunately you can use display(df_sidetable) to render the HTML version.

well, im having the same trouble with that parameter too.
this:
df_penguins.stb.missing(style=True)
trhows this exception:
<pandas.io.formats.style.Styler at 0x1231fba8790>
Any idea of how to fix it?


Unexpected ScopeParamNotFoundError when sharing submodules

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 20.04
Flax, jax, jaxlib versions (obtain with pip show flax jax jaxlib: flax 0.6.5, jax 0.4.3, jaxlib 0.4.3+cuda11.cudnn82
Python version: 3.10.8
GPU/TPU model and memory: NVIDIA GeForce GTX 1080ti
CUDA version (if applicable): 11.7

Problem you have encountered:
I encounter a ScopeParamNotFoundError when a shared submodule is nested under an unshared submodule. Here is a minimal working example:
class Shared(nn.Module):
    @nn.compact
    def __call__(self, x):
        return nn.Dense(1)(x)

class Unshared(nn.Module):
    shared: nn.Module

    def __call__(self, x):
        return self.shared(x)

class Super(nn.Module):
    a: nn.Module
    b: nn.Module

    def run_a(self, x):
        return self.a(x)

    def run_b(self, x):
        return self.b(x)

    def __call__(self, x):
        return self.a(x) + self.b(x)

sh = Shared()
a = Unshared(shared=sh)
b = Unshared(shared=sh)
super = Super(a=a, b=b)

rng = jax.random.PRNGKey(0)
params = super.init(rng, jnp.ones(1))["params"]

print(params)
# FrozenDict({
#   a: {
#       shared: {
#            Dense_0: {
#                kernel: Array([[0.13082343]], dtype=float32),
#                bias: Array([0.], dtype=float32),
#            },
#        },
#    },
# })
#
# as expected, the weights for `shared` only appear under the `a` key, since by my understanding flax caches the
# `shared` object and re-uses the same scope when it's encountered for the second time

print(super.apply({"params": params}, jnp.ones(1)))  # works as expected
print(super.apply({"params": params}, jnp.ones(1), method="run_a"))  # works as expected
print(super.apply({"params": params}, jnp.ones(1), method="run_b"))  # ScopeParamNotFoundError: Could not find parameter named "kernel" in scope "/b/shared/Dense_0"

What you expected to happen:
When I call apply with method="run_b", I expect flax to realize that the weights for /b/shared are under the path /a/shared, just like it does when __call__ is used, but clearly it is looking in the wrong scope.
Edit: After reading a bit more, I'm thinking this has something to do with lazy binding? When __call__ is used, first a.shared is bound, and then when b.shared is bound, flax finds the scope a/shared in the cache and so re-uses it for b.shared. However, when run_b is used, a.shared is never bound so the scope a/shared is never created.
Is there any way around this, perhaps using some sort of tricks in setup? I think there's a pretty strong argument for this use-case: it's nice to have a wrapper around multiple submodules where the submodules all get initialized at once (using __call__) but then individual subsets of modules can be used later on, potentially in a more complex way. And I don't see any reason why these submodules shouldn't be able to share parameters.

Hey @kvablack, thanks for reporting this!
I am fixing a related issue in #2748, one of the edge cases I found recently was related to lazy binding, as you suggest this is indeed the problem you are facing here. The solution I am currently exploring is to eagerly bind all sub-modules that are passed as inputs as soon as a scope is available, I suspect this will solve your issue.
I'll be adding the snippet you shared as a test case.


Python: Fix typo

Motivation and Context

Fix typo
Description

Fix typo
Contribution Checklist

[x] The code builds clean without any errors or warnings
[x] The PR follows the SK Contribution Guidelines and the pre-submission formatting script raises no violations
[x] All unit tests pass, and I have added new tests where possible
[x] I didn't break anyone :smile:

could you include these changes into #6409 ?

Unified into https://github.com/microsoft/semantic-kernel/pull/6409.


Split roles out of the repository

Roles are currently included in the repository. Split them out of the repository.
Things to think about:

Documentation: Main docs tree includes from in-tree documentation for DRY and it's nice to have docs in-tree. Need to check if it can stay that way (i.e, have ansible-galaxy retrieve roles and then build the docs?)

Gate jobs: Right now gate jobs only watch weirdo, the respective implementation will now need to watch each role repository

Fetching roles: recover them with ansible-galaxy before running playbooks (i.e, https://github.com/rdo-infra/rdo-monitoring/blob/master/ansible-role-requirements.yml)

Done via https://github.com/redhat-openstack/weirdo/commit/463f1aa73ae12f464f4d06bb30efa08dc10db1d3


maybe rewrite errors so they don't have stacktraces

currently when we fatal error we use an exception, which will include a (useless) python stack trace. Instead, we should use a custom exception with an include trace or somesuch.

YACC eats syntax errors. Don't emit them, they're useless.

being addressed in #35


Infinispan embedding store

we introduced a new method in 15 api that allows simply calling search, I can't use 14 client for that reason
On top of that, the jakarta dependency does not exist in 15 anymore, but in 14
However, when overriding all, the test and module I added works and builds (at least in JVM, did not try more for now)
Closes https://github.com/quarkiverse/quarkus-langchain4j/issues/103

@maxandersen @geoand

I'ld like @jmartisk to review this as well

@jmartisk @cescoffier I reported the changes


Remove role- and rights-field as it is opinionated

I thought something opinionated for our IDP/idp-proxy setup is intentional? Or is it always a bit different?

The current plannings for user permission are completely different than this role/rights here. Moreover it is quite easy to overwrite the interface and this should take place in the starter.

Since the update to next is breaking anyway I think it is okay to have to implement this in the application and btw the AllowForRole-decorator is hardly used. I think our planned user-management package will be the way to go even though it will still take some time until it is ready to use.

Superseded by https://github.com/vivid-planet/comet/pull/1149Sup


Add Google Analytics

It would be nice to add Google Analytics so we could track crashes and usage. We should either make data reporting opt-in or display a prominent opt-out notice the first time the app is run.

Or maybe rather chose something less intrusive to the users' privacy :innocent: There are alternatives. Not sure which one's are best suited, as I'm no dev …

Hi there! Thanks for your comments. I think my original goal here was to gather more crash reports, but I've actually stopped development on this app, so I'll go ahead and close this issue.

It's a pity to read you've stopped on it :anguished: Until you (hopefully/maybe) pick it up again, maybe it would be a good idea to put a note on the "frontpage" (i.e. the main README.md) stating the project is (currently) unmaintained?

There's a note to that effect in the Status section of the readme.

Ah – sorry, must have missed that. Thanks!


Add reference documentation

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

Comparison is base (f292e87) 100.00% compared to head (01a64e1) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #105   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            5         5
  Lines          179       179
  Branches        32        32
=========================================
  Hits           179       179

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


[DOC-3676] Add self-hosted/on-premise to Get Started

Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the maintainers.
What Type of PR is This?

[ ] Issue
[ ] Feature
[x] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

Issue(s)

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[x] Tested Locally
[ ] Optional Screen Shoot.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app


AppWallet: incapable of sending assets from wallet

I generated a new mnemonic using AppWallet.
I then loaded that wallet with NFTs and ADA.
I am able to send ADA from the wallet, but I am incapable of sending any NFT from the wallet, I always get the error:
[Transaction] An error occurred during build: Not enough ADA leftover to include non-ADA assets in a change address.

The wallet has 168 NFTs, and 470+ ADA, this should be enough, right?
Is there a limit to the number of NFTs an AppWallet can handle?
I had to import the wallet into a browser extension and manually send out my NFTs.

There is no limit to the number of NFTs any wallet can handle unless limited by the network's specs, i.e. transactions size limits.
You have to build the transactions correctly, providing enough + correct inputs.


removing convox from my account completely and deleting the default rack

two things:

the 'convox install' command documentation does not tell you that in fact it does create a new default rack named "convox". And does not show you how to delete it, ( the "convox uninstall convox " does fails to delete it with authentication errors that are clearly misleading)
No where in the documentation does it say how  to COMPLETELY obliterate convox from your AWS account. (I know it shows you how to disable the integration, but I don't want to have to go and manually delete everything that convox created.)

You can delete everything by removing the stacks which were created in AWS Cloudformation.


Missing directory teleop_real

Hi,
The ReadMe.md (https://github.com/YanjieZe/Humanoid-Teleoperation/blob/main/humanoid_teleoperation/README.md) says we need to install the directory teleop-real, however, I can't find it in the repository.
Has the code been made publicly available for this directory?

Hi, thank you for the interest. I think this line should be actually removed from README. The full code has been released in this repo, so no additional repo is needed.
I have updated README. Thank you!


⚠ Samsung has degraded performance

In 7449b7e, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2604 ms

Resolved: Samsung performance has improved in 59e32f2.


Can I use different "label" in form and table in CRUD Schema?

Hello @kailong321200875
I'd like to use a default label and another label in form.
I tried like following but not working.

Can I fix this?

Good idea. I can modify it

update 1.5.1


Failure to install with problem opening /dev/false

Hi,
I was trying to test this gem in VM, but failed with the following error:
root@ubuntu:/home/ubuntu# getch -d vda

Build Gentoo Linux with the following args:

	Lang: en_US
	Timezone: UTC
	Keymap: us
	Disk: vda
	Filesystem: ext4
	Username: false
	Encrypt: false
	Musl: false

	separate-boot disk: false
	separate-cache disk: false
	separate-home disk: false

Continue? (y,N) y

Partition and format disk vda, this will erase all data, continue? (y,N) y
I >>> 24 Exec: sgdisk -Z /dev/vda				[ ok ]
I >>> 27 Exec: wipefs --all /dev/vda				[ ok ]
I >>> 49 Exec: dd if=/dev/zero of=/dev/vda bs=1M count=100	[ ok ]
I >>> 45 Exec: sgdisk -n1:1M:+260M -t1:ef00 /dev/false
D [5981] > Problem opening /dev/false for reading! Error is 2.

D [5981] > The specified file does not exist!

E > sgdisk -n1:1M:+260M -t1:ef00 /dev/false - pid 5993 exit 2
F > Running sgdisk -n1:1M:+260M -t1:ef00 /dev/false

Hi,
Do you run the last getch-0.3.4 or the git version?
And can you post the content of /tmp/getch_devs.yaml?
I'm currently testing installing Gentoo with QEMU and the last Void live iso image and no problem for creation partition.

I can't post this file, but if it helps, I used ubuntu livecd.

Which version of Ubuntu? i tested the last https://releases.ubuntu.com/kinetic/ubuntu-22.10-desktop-amd64.iso with no problem.

Unfortunately i was unable to reproduce this, here are the steps i did.
Download and boot on the last iso

Install ruby/gem sudo apt-get install ruby-rubygems
Install last version of Getch on the system

sudo gem install getch
sudo getch -v
Getch v0.3.5

Make sure the target disk is actually unused, umounted and install Gentoo

sudo getch -d sda

Thanks for the report

Yeah, i've had this error today, for now, you only need to do a getch -d vda --restart to regenerate /tmp/getch_devs.yaml

I just tried again, and the bug still exists, however adding the flag --restart does the trick.


Currently no setting to change browser accent color

This is primarily an issue on mobile browsers. Should be an easy add that I'll tackle next.

Micro.blog doesn't currently offer a native way to accomplish this in a settings format. You can; however, make the change by editing the theme in Micro.blog.


feat: add create_pattern pattern

What this Pull Request (PR) does
This pull request includes a pattern to create new fabric patterns
Related issues
Screenshots

This was designed to be used with the output of the improve_prompt pattern though it does not need to be. Your stitch could be:
echo "Your custom prompt here" | improve_prompt | create_pattern
I have managed to make a couple of personalized patterns for myself using this pattern and had good results, but there is definitely room for improvement and so welcome any proposed changes.


Output consistency

I'm developing a tool to create audiobooks, and I've been working on replacing my existing backend for speech generation with F5-TTS.
When comparing it to what I'm currently using (XTTS), the speech quality of F5-TTS is just as good, if not better. The performance is also acceptable, though F5-TTS is around 50% slower than XTTS in the generation process when using CUDA.
However, I'm facing some issues with output consistency, which is preventing me from moving forward:

Occasionally, there's random noise at the start of the generated speech.
At times, the start of the speech is delayed by a random amount (between 0.3 and 0.5 seconds).

Since I'm creating audiobooks with my tool, I need to process thousands of speech generations. I can't afford to manually adjust each one, as it would make the process too time-consuming. XTTS offers strong consistency in its outputs, and this is crucial for my workflow.
Currently, I've set up a Flask endpoint service using your "inference-cli.py" script. Is there anything I can do to improve the output consistency?
P.S. Congrats on this fantastic project! The field of speech synthesis really needed more strong players.

about the  speed up
you can  change in inference-cli.py  the nfe_step = 32 to something low and see what working good for me also 24 it's good and  16 lower you lost a alot quality

will close this issue, feel free to open if further questions ~


Licensing question

I'm the maintainer of github.com/olivere/elastic, which is a Go driver for Elasticsearch. As part of that repository, I'm offering (experimental support for) tracing with OpenCensus.
A user of elastic recently used Fossa to check for licensing issues, and it raised two issues that he tracked down to opencensus-go, claiming it uses a version of Thrift that had a reference to LGPL-3.0 / LGPL-2.1 in it (see https://github.com/olivere/elastic/issues/1001).

IANAL so I asked on the Fossa Slack if this maybe is a false positive, and Carlos of the Fossa team replied:

Carlos (FOSSA)
Depending on which version of Thrift project you were on if it's before 0.9.3 than there were traces of LGPL. It looks like we matched a mention of LGPL in the "Changes" Folder -> https://github.com/apache/thrift/blob/master/CHANGES You can ignore the issue if you're using the latest version.
CHANGES
Apache Thrift Changelog

Breaking Changes since 0.11.0 [for 0.12.0]:
--------------------------------------------------------------------------------
   * [THRIFT-4529] - Rust enum variants are now camel-cased instead of uppercased to conform to Rust naming conventions
   * [THRIFT-4448] - Support for golang 1.6 and earlier has been dropped.
...

Hope that helps!

Now I just want to get feedback on your standpoint regarding these legal issues. Thanks in advance.

after #1118 it doesn't depend on thrift anymore.


After updating from (some old version) to latest I face errors

Description
This error:
...er/issues/indexer.go:226:PopulateIssueIndexer() [E] SearchRepositoryByName: Count: pq: could not read block 0 in file "base/16384/55475": read only 0 of 8192 bytes

What it is?
Gitea Version
latest
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
docker-compose
networks:
  gitea:
    external: true

services:
  gitea:
    image: gitea/gitea:latest
    container_name: gitea
    environment:
      - USER_UID=1000
      - USER_GID=1000
      - GITEA__database__DB_TYPE=postgres
      - GITEA__database__HOST=db:5432
      - GITEA__database__NAME=gitea
      - GITEA__database__USER=gitea
      - GITEA__database__PASSWD=gitea
    restart: always
    networks:
      - gitea
    volumes:
      - ./gitea:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports:
      # - "8080:3000"
      - "2221:22"
    expose:
      - 3000
    depends_on:
      - db
  db:
     image: postgres:13
     restart: always
     environment:
       - POSTGRES_USER=gitea
       - POSTGRES_PASSWORD=gitea
       - POSTGRES_DB=gitea
     networks:
       - gitea
     volumes:
       - ./postgres:/var/lib/postgresql/data

Database
PostgreSQL

Looks like it's related to postgres. https://www.postgresql.org/message-id/1c582b7b-e6df-e7ff-26b2-1571378858e8%40gmail.com

oh... I've restored my DB from one of the latest backup and now I faced with:
Server listening on :: port 22.
Server listening on <IP_ADDRESS> port 22.
2024/09/07 11:48:22 ...dules/setting/lfs.go:35:loadLFSFrom() [E] Deprecated config option `[server].LFS_CONTENT_PATH` is present, please use `[lfs].PATH` instead. This fallback will be/has been removed in v1.19.0
2024/09/07 11:48:22 cmd/web.go:242:runWeb() [I] Starting Gitea on PID: 15
2024/09/07 11:48:22 ...dules/setting/lfs.go:35:loadLFSFrom() [E] Deprecated config option `[server].LFS_CONTENT_PATH` is present, please use `[lfs].PATH` instead. This fallback will be/has been removed in v1.19.0
2024/09/07 11:48:22 cmd/web.go:111:showWebStartupMessage() [I] Gitea version: 1.22.2 built with GNU Make 4.4.1, go1.22.6 : bindata, timetzdata, sqlite, sqlite_unlock_notify
2024/09/07 11:48:22 cmd/web.go:112:showWebStartupMessage() [I] * RunMode: prod
2024/09/07 11:48:22 cmd/web.go:113:showWebStartupMessage() [I] * AppPath: /usr/local/bin/gitea
2024/09/07 11:48:22 cmd/web.go:114:showWebStartupMessage() [I] * WorkPath: /data/gitea
2024/09/07 11:48:22 cmd/web.go:115:showWebStartupMessage() [I] * CustomPath: /data/gitea
2024/09/07 11:48:22 cmd/web.go:116:showWebStartupMessage() [I] * ConfigFile: /data/gitea/conf/app.ini
2024/09/07 11:48:22 cmd/web.go:117:showWebStartupMessage() [I] Prepare to run web server
2024/09/07 11:48:22 routers/init.go:116:InitWebInstalled() [I] Git version: 2.45.2 (home: /data/gitea/home)
2024/09/07 11:48:22 ...dules/setting/log.go:72:prepareLoggerConfig() [E] Deprecated config option `[log].ROUTER` is present, please use `[log].logger.router.MODE` instead. This fallback will be/has been removed in 1.21
2024/09/07 11:48:22 ...s/setting/session.go:77:loadSessionFrom() [I] Session Service Enabled
2024/09/07 11:48:22 ...es/setting/mailer.go:77:loadMailerFrom() [E] Deprecated config option `[mailer].HOST` is present, please use `[mailer].SMTP_ADDR` instead. This fallback will be/has been removed in v1.19.0
2024/09/07 11:48:22 ...es/setting/mailer.go:237:loadMailerFrom() [I] Mail Service Enabled
2024/09/07 11:48:22 ...es/setting/mailer.go:248:loadRegisterMailFrom() [I] Register Mail Service Enabled
2024/09/07 11:48:22 ...es/setting/mailer.go:259:loadNotifyMailFrom() [I] Notify Mail Service Enabled
2024/09/07 11:48:22 ...s/storage/storage.go:176:initAttachments() [I] Initialising Attachment storage with type: local
2024/09/07 11:48:22 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/attachments
2024/09/07 11:48:22 ...s/storage/storage.go:166:initAvatars() [I] Initialising Avatar storage with type: local
2024/09/07 11:48:22 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/avatars
2024/09/07 11:48:22 ...s/storage/storage.go:192:initRepoAvatars() [I] Initialising Repository Avatar storage with type: local
2024/09/07 11:48:22 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/repo-avatars
2024/09/07 11:48:22 ...s/storage/storage.go:186:initLFS() [I] Initialising LFS storage with type: local
2024/09/07 11:48:22 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /data/git/lfs
2024/09/07 11:48:22 ...s/storage/storage.go:198:initRepoArchives() [I] Initialising Repository Archive storage with type: local
2024/09/07 11:48:22 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/repo-archive
2024/09/07 11:48:22 ...s/storage/storage.go:208:initPackages() [I] Initialising Packages storage with type: local
2024/09/07 11:48:22 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/packages
2024/09/07 11:48:22 ...s/storage/storage.go:219:initActions() [I] Initialising Actions storage with type: local
2024/09/07 11:48:22 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/actions_log
2024/09/07 11:48:22 ...s/storage/storage.go:223:initActions() [I] Initialising ActionsArtifacts storage with type: local
2024/09/07 11:48:22 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/actions_artifacts
2024/09/07 11:48:22 routers/init.go:138:InitWebInstalled() [I] SQLite3 support is enabled
2024/09/07 11:48:22 routers/common/db.go:23:InitDBEngine() [I] Beginning ORM engine initialization.
2024/09/07 11:48:22 routers/common/db.go:30:InitDBEngine() [I] ORM engine initialization attempt #1/10...
2024/09/07 11:48:22 cmd/web.go:194:serveInstalled() [I] PING DATABASE postgres
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[231]: Add index for hook_task
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[232]: Alter package_version.metadata_json to LONGTEXT
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[233]: Add header_authorization_encrypted column to webhook table
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[234]: Add package cleanup rule table
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[235]: Add index for access_token
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[236]: Create secrets table
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[237]: Drop ForeignReference table
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[238]: Add updated unix to LFSMetaObject
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[239]: Add scope for access_token
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[240]: Add actions tables
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[241]: Add card_type column to project table
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[242]: Alter gpg_key_import content TEXT field to MEDIUMTEXT
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[243]: Add exclusive label
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[244]: Add NeedApproval to actions tables
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[245]: Rename Webhook org_id to owner_id
2024/09/07 11:48:24 routers/common/db.go:36:InitDBEngine() [E] ORM engine initialization attempt #1/10 failed. Error: migrate: migration[245]: Rename Webhook org_id to owner_id failed: pq: column "org_id" of relation "webhook" already exists
2024/09/07 11:48:24 routers/common/db.go:37:InitDBEngine() [I] Backing off for 3 seconds
2024/09/07 11:48:27 routers/common/db.go:30:InitDBEngine() [I] ORM engine initialization attempt #2/10...
2024/09/07 11:48:27 cmd/web.go:194:serveInstalled() [I] PING DATABASE postgres
2024/09/07 11:48:28 ...ations/migrations.go:688:Migrate() [I] Migration[245]: Rename Webhook org_id to owner_id
2024/09/07 11:48:28 routers/common/db.go:36:InitDBEngine() [E] ORM engine initialization attempt #2/10 failed. Error: migrate: migration[245]: Rename Webhook org_id to owner_id failed: pq: column "org_id" of relation "webhook" already exists
2024/09/07 11:48:28 routers/common/db.go:37:InitDBEngine() [I] Backing off for 3 seconds
2024/09/07 11:48:31 routers/common/db.go:30:InitDBEngine() [I] ORM engine initialization attempt #3/10...
2024/09/07 11:48:31 cmd/web.go:194:serveInstalled() [I] PING DATABASE postgres
2024/09/07 11:48:32 ...ations/migrations.go:688:Migrate() [I] Migration[245]: Rename Webhook org_id to owner_id
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[246]: Add missed column owner_id for project table
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[247]: Fix incorrect project type
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[248]: Add version column to action_runner table
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[249]: Improve Action table indices v3
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[250]: Change Container Metadata
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[251]: Fix incorrect owner team unit access mode
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[252]: Fix incorrect admin team unit access mode
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[253]: Fix ExternalTracker and ExternalWiki accessMode in owner and admin team
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[254]: Add ActionTaskOutput table
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[255]: Add ArchivedUnix Column
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[256]: Add is_internal column to package
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[257]: Add Actions Artifact table
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[258]: Add PinOrder Column
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[259]: Convert scoped access tokens
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[260]: Drop custom_labels column of action_runner table
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[261]: Add variable table
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[262]: Add TriggerEvent to action_run table
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[263]: Add git_size and lfs_size columns to repository table
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[264]: Add branch table
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[265]: Alter Actions Artifact table
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[266]: Reduce commit status
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[267]: Add action_tasks_version table
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[268]: Update Action Ref
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[269]: Drop deleted branch table
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[270]: Fix PackageProperty typo
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[271]: Allow archiving labels
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[272]: Add Version to ActionRun table
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[273]: Add Action Schedule Table
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[274]: Add Actions artifacts expiration date
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[275]: Add ScheduleID for ActionRun
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[276]: Add RemoteAddress to mirrors
2024/09/07 11:48:33 routers/common/db.go:36:InitDBEngine() [E] ORM engine initialization attempt #3/10 failed. Error: migrate: migration[276]: Add RemoteAddress to mirrors failed: get remote origin's address of bvn13/bvn13-epam-solution-architecture-workshop-2019 failed: exit status 128 - fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
 - fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
2024/09/07 11:48:33 routers/common/db.go:37:InitDBEngine() [I] Backing off for 3 seconds

Does it relate to I use very new version of Gitea and did not run a migration script? Or does it relate to any kind of incompatibility?

Issue is minor for me because of I have already recover my Gitea instance in semi-by-hands way.

We close issues that need feedback from the author if there were no new comments for a month. :tea:


Installation via npm

Hi,
we try to move from Bower to npm and ngSilent is not registered in npm registry. Would you be willing to publish it at npmjs.com? Publishing a package should be quite straightforward: https://gist.github.com/coolaj86/1318304
Have a nice day,
Martin

Here is it https://www.npmjs.com/package/ngsilent

Thanks!


Qatten: A General Framework for Cooperative MARL

https://cndota.github.io/Qatten/
Qatten is a novel Q-value Attention network for the multiagent Q-value decomposition problem.
Qatten provides a theoretic linear decomposition formula of $Q_{tot}$ and $Q^{i}$ which covers previous methods
and achieves state-of-the-art performance on the StarCraft II micro-management tasks across different scenarios.
Paper

Hi, Dr Yang, will you share your code of Qatten?

Hello,
This repo contains Qatten previously shared with the authors.
https://github.com/wjh720/QPLEX
---Original---
From<EMAIL_ADDRESS>Date: 2020/9/26 10:19:59
To<EMAIL_ADDRESS>Cc: "杨耀东"<838282876<EMAIL_ADDRESS>Subject: Re: [CNDOTA/CNDOTA.github.io] Qatten: A General Framework for Cooperative MARL (#1)
Hi, Dr Yang, will you share your code of Qatten?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Hello, This repo contains Qatten previously shared with the authors. https://github.com/wjh720/QPLEX
…
---Original--- From<EMAIL_ADDRESS>Date: 2020/9/26 10:19:59 To<EMAIL_ADDRESS>Cc: "杨耀东"<838282876<EMAIL_ADDRESS>Subject: Re: [CNDOTA/CNDOTA.github.io] Qatten: A General Framework for Cooperative MARL (#1) Hi, Dr Yang, will you share your code of Qatten? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Very nice, thank you.

Hi, Dr Yang, is Qatten accepted by Neurips?

No, rejected by Neurips.
---Original---
From<EMAIL_ADDRESS>Date: 2020/9/27 01:37:14
To<EMAIL_ADDRESS>Cc: "杨耀东"<838282876<EMAIL_ADDRESS>Subject: Re: [CNDOTA/CNDOTA.github.io] Qatten: A General Framework for Cooperative MARL (#1)
Hi, Dr Yang, is Qatten accepted by Neurips?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

No, rejected by Neurips.
…
---Original--- From<EMAIL_ADDRESS>Date: 2020/9/27 01:37:14 To<EMAIL_ADDRESS>Cc: "杨耀东"<838282876<EMAIL_ADDRESS>Subject: Re: [CNDOTA/CNDOTA.github.io] Qatten: A General Framework for Cooperative MARL (#1) Hi, Dr Yang, is Qatten accepted by Neurips? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

I see. The idea of Qatten is good. Good luck with your ICLR submission


AnalogWrite error

i use the pocketbeagle board.
and set pin p2_1 to analogwrite
b.pinMode(pin, b.ANALOG_OUTPUT, );
b.analogWrite(pin, 1, 2000, printJSON)

sadly it ends in this error:
{"err":"error updating PWM freq and value: undefined, Error: ENOENT: no such file or directory, open 'undefined/period'"}

same error in the playground.
i really need analog write. do you have any suggestions how i can use it?

This is going to require a kernel update as I've got the other fixes in. I believe @RobertCNelson will do the kernel update soon. See https://github.com/jadonk/bonescript/issues/156.

Almost there. Still have the udev issue https://github.com/jadonk/bonescript/issues/161.

This issue was moved to beagleboard/bonescript#43


remove deprecated aquire alignment

Summary
This removes deprecated method "aquire_alignment".
Details and comments

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.01%) to 89.327%

Totals

Change from base Build<PHONE_NUMBER>:
-0.01%

Covered Lines:
59389

Relevant Lines:
66485

💛  - Coveralls


Remove now unused cmake

With #2847 and the work done by @ZedThree, I believe we can now

close #1444
close #2869

When I make and install netcdf on a mac and linux, I don't see the hdf5::hdf5-shared libraries included in <install-prefix>/lib/pkgconfig/netcdf.pc and <install-prefix>/lib/cmake/netCDF/netCDFConfig.cmake only includes a call to find_dependency(HDF5) (as configured).
My bet is that #2847 with its updates to finding and using hdf5, and updated hdf5 and cmake versions fixed this.
Related is a spack PR that should now be redundant, along with the filter code that I removed

Great to see!
Further work was done on this in this Spack PR.
Will these changes be back-ported or will they be only for upcoming netcdf releases?

This looks good, but isn't quite there. We need to sort out the subsequent lack of spacing in libnetcdf.settings, and the output of nc-config --libs --static, e.g.:
Extra libraries:	-lHDF5::HDF5;-lhdf5::hdf5_hl;-lm;-lz;-lblosc;-lzstd;-lbz2;-lsz;-lcurl;-lxml2

and
wfisher@shetland:~/Desktop/tmp/tmp/netcdf-c/build$ ./nc-config --static --libs
-L/usr/local/lib -lnetcdf -lHDF5::HDF5;-lhdf5::hdf5_hl;-lm;-lz;-lblosc;-lzstd;-lbz2;-lsz;-lcurl;-lxml2

Great to see! Further work was done on this in this Spack PR. Will these changes be back-ported or will they be only for upcoming netcdf releases?

They'll only be in upcoming releases; I'd love to backport but we are resource constrained, unfortunately. Hopefully we'll have it out shortly! That's the goal at least.

This looks good, but isn't quite there. We need to sort out the subsequent lack of spacing in libnetcdf.settings, and the output of nc-config --libs --static, e.g.:
Extra libraries:	-lHDF5::HDF5;-lhdf5::hdf5_hl;-lm;-lz;-lblosc;-lzstd;-lbz2;-lsz;-lcurl;-lxml2

and
wfisher@shetland:~/Desktop/tmp/tmp/netcdf-c/build$ ./nc-config --static --libs
-L/usr/local/lib -lnetcdf -lHDF5::HDF5;-lhdf5::hdf5_hl;-lm;-lz;-lblosc;-lzstd;-lbz2;-lsz;-lcurl;-lxml2

@WardF fixed. I replaced a thing that replaced colons with spaces that I had removed, assuming it wasn't useful


Leaflet throwing "Cannot read property 'max' of undefined" when adding a populated group layer to a map

Basically, I'm making an app that, among other things, lets users insert L.Circle's on a group layer on top of a map. Then, it saves the layers of that group layer – they are all Leaflet circles – in a variable located under an AngularJS Service. It then needs to load (add) them again into another group layer, which in turn will be added to a map. I add each of them to the group layer using groupLayer.addLayer. When I add that group layer into a map, using map.addLayer(groupLayer), Leaflet throws:
Cannot read property 'max' of undefined
The call stack:
Cannot read property 'max' of undefined
    at L.Circle.L.Path.extend._checkIfEmpty (http://.../leaflet-src.js:5918:22)
    at L.Circle.L.Path.extend.getPathString (http://.../leaflet-src.js:5881:12)
    at L.Path.L.Path.extend._updatePath (http://.../leaflet-src.js:4682:18)
    at L.Path.L.Class.extend.onAdd (http://.../leaflet-src.js:4503:8)
    at L.Map.L.Class.extend._layerAdd (http://.../leaflet-src.js:2225:9)
    at L.Map.L.Class.extend.addLayer (http://.../leaflet-src.js:1683:9)
    at L.LayerGroup.L.Class.extend.eachLayer (http://.../leaflet-src.js:4322:11)
    at L.LayerGroup.L.Class.extend.onAdd (http://.../leaflet-src.js:4307:8)
    at L.Map.L.Class.extend._layerAdd (http://.../leaflet-src.js:2225:9)
    at L.Map.L.Class.extend.addLayer (http://.../leaflet-src.js:1683:9)

From what I understood, this is related to Leaflet not managing to render the circles... But why is this happening? I made a plunker (updated), trying to show what I am doing in my app. However, in the plunker everything is working fine. It may still be useful by kinda showing what steps I'm taking, and what I'm trying to do. In my app things are structured a little differently, and I don't know if I can make a simple plunker like it. Do you think it can be related to how my code is structured? Anyway, if needed, I can try to explain how things work in detail.
[UPDATE] as @IvanSanchez said, it is a 0.7.x problem. I changed the leaflet version in the plunker and now the described problem is happening. You can now mess with it, and check the console error.

This is failing on some function calls specific to 0.7.x - so not a 1.0.0 issue at all.
@fplgusmao Unless you can provide a better plunker/jsfiddle/something, it's unlikely we'll spend time fixing this - we're focused on 1.0.0 issues. I can see the issue has something to do with the 0.7.x way of setting the _pathViewport on L.Paths. Make sure your SVG/Canvas renderer is instanced and init'ed beforehand, etc etc.
Or switch to 1.0.0-beta2.

@IvanSanchez you're right, it really is a 0.7.x problem. I will try to change to 1.0.0 and report the result.

@fplgusmao Any updates? We'd like to close stale bugs.

Nope. But I didn't dive too deep into the problem, though. I found that the 1.0 version was not compatible with some other plugins I was using, or with the way I was using them (e.g Leaflet.FreeDraw wasn't working), so the fastest way I found was simply to remove the feature of reloading a state and its markers, and stick to Leaflet 0.7.7 for the moment. It worked for my situation, since this "marker reload" was not a crucial feature.
To sum it up: this bug is still happening, and I haven't found a way to properly work around it, or solve it.
Feel free to close the issue if you want to "move on" to Leaflet 1.0-only

Faced the same problem, solution:
var Map = L.map('#map', {});
Map._initPathRoot();
Map._updatePathViewport();

call when reinitialization.

@LookinGit thanks a lot! it worked for me!


Calling detect-secrets from another Python script

Hello,
I would need your insights on this subject.
I am currently working on a project that will allow us to scan our entire Github organization (20,000 repos). Is it possible, at this time of the day, to call the scan of a repo, after cloning it, from another python script?
If so, can you please guide me please?
Best regards

Hi @Tioborto,
If you're asking whether it's possible to invoke a scan of a repository from another python script, have you checked out whether detect-secrets-server meets your needs?

Hi,
What we are looking for is a way to programmatically use detect-secrets. The idea is not having to run subprocess.run('detect-secrets scan --all-files') and then parse the console output in a dict, but instead do something like this:

Expand code block
from detect-secrets import scan

results = scan('path/to/local/folder', all_files=True)
print(results)  # `results` would be a dict/TypedDict/class with what is printed in the console after a scan
"""
{
  "custom_plugin_paths": [],
  "exclude": {
    "files": ".venv|.mypy_cache",
    "lines": null
  },
  "generated_at": "2020-10-12T11:51:46Z",
  "plugins_used": [
    {
      "name": "AWSKeyDetector"
    },
    {
      "name": "ArtifactoryDetector"
    },
    {
      "base64_limit": 4.5,
      "name": "Base64HighEntropyString"
    },
    {
      "name": "BasicAuthDetector"
    },
    {
      "name": "CloudantDetector"
    },
    {
      "hex_limit": 3,
      "name": "HexHighEntropyString"
    },
    {
      "name": "IbmCloudIamDetector"
    },
    {
      "name": "IbmCosHmacDetector"
    },
    {
      "name": "JwtTokenDetector"
    },
    {
      "keyword_exclude": null,
      "name": "KeywordDetector"
    },
    {
      "name": "MailchimpDetector"
    },
    {
      "name": "PrivateKeyDetector"
    },
    {
      "name": "SlackDetector"
    },
    {
      "name": "SoftlayerDetector"
    },
    {
      "name": "StripeDetector"
    },
    {
      "name": "TwilioKeyDetector"
    }
  ],
  "results": {
    "poetry.lock": [
      {
        "hashed_secret": "0a2c2daece8f4cf5f09c2f9ba92212e852295579",
        "is_verified": false,
        "line_number": 146,
        "type": "Hex High Entropy String"
      }
    ]
  },
  "version": "0.14.3",
  "word_list": {
    "file": null,
    "hash": null
  }
}

For now we've been diving in detect-secrets source to try to copy and adapt the code that is run by the CLI. I'm looking at detect-secrets-server to see if it's easier to hook into it that way, but maybe that's still not the right approach...

@Tioborto I can confirm that it's possible to integrate detect-secrets into your own scripts. Each plugin as an 'adhoc_scan' method that can be called. You can see how this is done by just searching for 'adhoc_scan' in main.py. The annoying thing is that you have to generate a list of the plugins before you can loop over them an call this method. You can find out how to do this by searching for 'initialize' in 'main.py'. However, to get that to work programatically without cli args, you'll need to need to yoink the 'consolidate_args' logic from 'core/usage.py'. You want the generated 'active_plugins' variable to grab to base plugins (this is what you'll loop over and call adhoc_scan). You'll need to work around the fact that 'args' doesn't exist and also consider that some plugins (i believe) need default args like 'base64_limit', 'hex_limit', and 'keyword_exclude'. It shouldn't take more than an hour to figure out but it would be nice if there was just a 'get_base_plugins_im_lazy_and_dont_care_about_custom_stuff' method. Something like that may already exist but I was in a hurry.

We should fix this but I just wanna say, that's one of the best dive-in's I've ever seen on this project @3lpsy!

FWIW, when I first wrote this tool ~3 years ago, I never imagined it would gain this much community traction. It's been simply astounding watching the growth of this project (and thanks to all the contributors along the way!)
Since then, my coding style has improved drastically. This tool has reached some level of maturity, and I'm in the middle of a large refactor to make this:

Easier to be extensible (both through plugins, and building your own scripts leveraging detect-secrets as a dependency)
Easier to grok, with clearer coding patterns for the system's internals

Watch this space for exciting updates in the coming month!

This experience is drastically improved in the new pre-v1-launch branch. If you're curious, be sure to check it out: https://github.com/Yelp/detect-secrets/blob/pre-v1-launch/CONTRIBUTING.md
An example of how you would call detect-secrets in v1 is described in the docs: https://github.com/Yelp/detect-secrets/blob/pre-v1-launch/docs/plugins.md#configuring-plugins.
I'm going to close this issue as this will be fixed in the next version (currently in progress).


Add types to support heterogeneous collections of events.

Some of the Matrix APIs involve JSON arrays containing a heterogeneous collection of events. This doesn't play well with static typing, specifically with the way the events are designed in ruma-events.
For example, the event context API includes lists of room events and state events in its response body. To represent this in Rust, we'd use something like:
Vec<Box<ruma_events::RoomEvent>>

However, the RoomEvent trait (and its counterparts) includes an associated type that declares the type used for the event's content field. This means that it needs to be declared like this:
Vec<Box<ruma_events::RoomEvent<Content=???>>>

Unfortunately, there isn't a way to use a generic to constrain the associated type in a way that wouldn't either force the whole vector to be events of only one concrete type or use a less specific type like serde_json::Value as the content type, which would defeat the purpose of having static types for each event type.
This branch adds a few enums which represent different subsets of the various event types to support heterogeneous collections like this. With these new enums, the vector would be represented as:
Vec<Box<ruma_events::collections::OnlyRoomEvent>>

I'm not thrilled about the naming scheme of these enums, since the above code really represents a list of "room events," not a list of "only room events." But of course, RoomEvent, et. al, is already taken by the traits.
Looking for feedback/ideas on this approach, possible alternate approaches, and the names I'm using.
/cc @ruma/contributors

You could extend this with Into like https://github.com/ruma/ruma/issues/115. This would make it easier to use.

I like the approach with the enums, it seems pretty straightforward. The naming part indeed seems a little off. Instead of trying to come up with the most generic names maybe we could adjust the collections specifically for each endpoint and generalize where it makes sense.
The events of the context api could be named something like collections::ContextEventsAfter, collections::ContextEventsBefore or collections::ContextStateEvents.

That's an interesting idea. I'm betting we'll end up with several types that are functionally equivalent by doing that. It'd also make less sense to have these collection types in ruma-events if they were named for specific APIs, since ruma-events is supposed to be agnostic to how it's used.
Another possibility would be actually calling the collection types Event, RoomEvent, and StateEvent, but distinguishing them based on module. In other words, use a path like collections::any::RoomEvent or collections::only::RoomEvent at the point of usage.

What do you think of the latest changes?

Changing from into a macro to reduce same code?
impl From<TypingEvent> for Event {
    fn from(typing_event: TypingEvent) -> Self {
        Event::Typing(typing_event)
    }
}

into
from_impl!(TypingEvent,Event,Typing);

Closed by c92ce9eeb1fe53e62840e4b55ba55b0538d771ed.


Design: Support for Manipulating PullRequests

Expected Behavior
Task/Runs should be able to declaratively manipulate PullRequests (across SCM providers), similarly to how they can manipulate Images, k8s Clusters, and the other PipelineResources.
Actual Behavior
This is not possible today.
Additional Info
Potential Design Document/PRD: https://docs.google.com/document/d/1MXy-AOZmrgNusX710MgeERin_RkjNhnl0P5e5-ROhuc/edit (shared with<EMAIL_ADDRESS>

Especially since this issue is just about design, I think we can close the issue, unless you think otherwise @wlynch !

SGTM

This has been implemented! (Thanks @wlynch !! 🎉 )


Filters should be per camera

Hi,
It looks like the filters configuration is global, so when using multiple sources, one camera's mask might cover required detection region on another camera.
Can you change so the filters configuration be per camera?
Thanks

You are correct, the filters configuration is global. I think a good approach should be to add camera specific filters in addition to the existing global filters. Currently, my availability is a bit low, but I can add this to the list of future updates. Pull requests are also welcome.

Is there a way to do camera specific filters yet?

Hi there, not at this time.

Thanks. There any other way to have any kind of filter specific to a camera besides running an instance per camera of Plate-Minder?


Make the navbar Mobile Friendly

The navbar on the docs page is not functional on mobile, making navigation difficult. Please consider implementing a drawer for the mobile version to improve usability. Mobile access is valuable for reviewing documentation on the go.
image

Hey @timia2109,
Thanks for reporting this issue.
We're working on it.


Adding previews

Add rendering to beaker-ts
Add composable way of rendering widgets
Refactor beaker-vue to use beaker-ts rendering
Add custom renderer for json payloads
Add nice latex renderer
Add display of preview in panel
Note: preview ux needs some love
WARNING:
Has large, hard-coded preview on default context for testing. Needs to
be removed before merging.

To generate previews from your context once merged, you should just need to add a generate_preview function in your context class. This runs separate from and after the post_execute function. Whatever is returned by that function will be sent as the preview payload.

Some example screenshots:
Rich native Vue json widget

Default image rendering:

Custom latex rendering


invalid variable name "\ufeff"

docker-compose  -f "D:\CSharp\eShopOnDapr\docker-compose.yml" -f "D:\CSharp\eShopOnDapr\docker-compose.override.yml" -p dockercompose1387013637272126799 --ansi never config
invalid variable name "\ufeff"

Are you using docker desktop under windows? if yes i had the same problem. i have fixed it:
Settings -> Experimental Features -> make sure the "Use  Docker compose v2" is not checked

HI,
I have the same problem
I modified the ". Env" file encoding format to utf8, not utf8 with BOM

BOM is removed from .env file


Style: Make Nav Header sticky on top

Description
Currently, the Navbar scrolls with the content. It would be better UX to have it stick at the top when the user is scrolling through the page.
Task

[ ] Make nav header sticky at the top

I'd like to take on this task of making the Navbar sticky. It seems like a great improvement for the UX. Thanks.


BlockByNumber method implementation error

Description
When utilizing the go-ethereum (v1.10.25 or superior) library and Hedera's JSON-RPC (v0.23.1) relay, there are instances where invoking the BlockByNumber method functions correctly. However, on other occasions, invoking this method for a specific block number results in the following error message: "missing required field maxPriorityFeePerGas for txdata".
Steps to reproduce
1.Create a new main.go file with the following code.
package main

import (
    "context"
    "fmt"
    "log"
    "math/big"

    "github.com/ethereum/go-ethereum/ethclient"
)

func main() {
    url := "https://testnet.hashio.io/api"
    blockNum := 3689094

    client, err := ethclient.Dial(url)
    if err != nil {
        log.Fatal(err)
    }

    block, err := client.BlockByNumber(context.Background(), big.NewInt(int64(blockNum)))
    if err != nil {
        log.Fatal(err)
    }
    fmt.Println(block)
}

Create module go mod init example.com/hedera and download dependencies with go mod tidy
Run the code go run main.go

Additional context
No response
Hedera network
testnet
Version
v0.23.1
Operating system
Linux

@AlexRipoll please see https://github.com/hashgraph/hedera-json-rpc-relay/pull/1419
We'll be setting null instead of undefined. This should go into the next 0.27.0
Let us know if this resolves you issue as expected


SAK-29136 fix regression creating new sites

Hey Beth,  we really need these PRs open for longer before merging. This is to allow a code review and any other input people have.  With a branch you can just switch out.
Cheers.


add ros_battery_monitoring repository

Please add the https://github.com/ipa320/ros_battery_monitoring repository to rosdistro for indexing and later binary release of the contained packages:

battery_state_broadcaster
battery_state_rviz_overlay

The first package implements a ros2_control broadcaster for BatteryState messages, while the node in the second package converts these packages into OverlayText messages for display as 2d overlays in rviz.
Feedback on package naming is appreciated, in particular whether battery_state_broadcaster should be named ros2_control_battery_state_broadcaster or if that would wrongly imply any "official affiliation" with the ros2_control project.
Checks

[x] All packages have a declared license in the package.xml
[x] This repository has a LICENSE file
[x] This package is expected to build on the submitted rosdistro

I'm not sure, but I think there is a potential issue with REP 144 package naming here:

A package name should not contain ros as it is redundant. Exceptions include core packages and ROS bindings of an upstream library (e.g. moveit_ros)

But also, in this case, it's just in the repository name, rather than in the package names, so maybe we are okay.  @clalancette what do you think?

But also, in this case, it's just in the repository name, rather than in the package names, so maybe we are okay. @clalancette what do you think?

Yeah, I'm fine with it because it is just the repository name.


Encoder position precision clarification

Is your feature request related to a problem? Please describe.
Not an error, but clarification of precision. I am trying get a common implementation of BBs vs say RPi. Comparison of current sysFS result size vs prior mmap direct register access which was long int. Back then I thought the hardware was 64 bits. Today the library returns int via atoi( ).
Describe the solution you'd like
Of course, a return value that captures the hardware size is best. Is it 64 bits or 32 bits?
OBTW, refs such as https://en.wikibooks.org/wiki/C_Programming/stdlib.h/atoi gripe about deficiencies in atoi, like not thread safe. Preferred implementation seems to be atol( ). There is also the issue of mixed long int vs unsigned long int. I'm pretty weak on coding for this difference. I take the BB hardware to be unsigned in nature, but with correct underflow and correct max value, it may look like a signed int. The rc_test_encoder_eqep function clearly returns singed ints and backwards motion shows as negative numbers. Even refs like https://www.tutorialspoint.com/c_standard_library/c_function_strtol.htm don't seem to be careful with signed vs unsigned.
Describe alternatives you've considered
As I try for a common user level implementation between BBs and RPis, I have chased the Raspbian encoder kernel driver, which seems to be a standard Linux available driver. It is clearly software based and take two definable GPIOs for inputs. Multiple instances are allowed. There is a dtoverlay to declare them at boot time. The community doesn't seem to use these for robotics but for rotary encoders that are used for volume knobs. The typical  max value is small. The size is not well specified. At least, I couldn't find it. I ended up using the relative response that simply returns +1 or -1 and doing by own accumulation. This leaves the max value more in my control. Of course, you can tell me to use extra hardware such as the long-promised Raspberry Beret. But we still need some thought on the software interface design.
Additional context
While I'm at it and considering RPis, I started thinking about long duration operations for our bots. To date, driving around the lab floor doesn't challenge the 32 bit size, I suppose. I did start driving an R/C car with a BBB around the parking lot.  We need to start implementing features that account for roll over. The TI hardware has interrupts for that. It hurts my head trying to think about how to do that correctly. If we don't do it well ahead of time (and well), it will be very difficult to identify as a problem in the field when the bot is on mile 10 of 50, or whatever.

As of now, the encoders are only storing 32-bits in the driver:

https://github.com/beagleboard/linux/blob/7a920684860a790099061b67961d0b5ffa033fdf/drivers/misc/tieqep.c#L299

It looks like the userspace also doesn't do anything to handle overflows and just returns a 32-bit count:

https://github.com/beagleboard/librobotcontrol/blob/master/library/src/io/encoder_eqep.c#L127
https://github.com/beagleboard/librobotcontrol/blob/master/library/src/encoder.c#L33

Looking at the TRM section 15.4, it seems there is a way to estimate speed without looking at positions, but not a clear way to do position counts past 32-bits without adding an interrupt routine:

https://www.ti.com/lit/ug/spruh73q/spruh73q.pdf

So, do you think the need to add a 64-bit read operation in the library and an interrupt routine in either the userspace library or the kernel? I think we can take that on as an enhancement by the August release.
Is 64-bit enough?

Is this the encoder used on a Raspberry Pi?
https://github.com/raspberrypi/linux/blob/rpi-4.19.y/arch/arm/boot/dts/overlays/rotary-encoder-overlay.dts
That would be this driver:

https://github.com/raspberrypi/linux/blob/e2d2941326922b63d722ebc46520c3a2287b675f/drivers/input/misc/rotary_encoder.c

I hope your robot doesn't move too fast, doesn't have a high resolution encoder, is running an RT kernel and doesn't have too much else to do. This driver is enabling threaded interrupts on every rising and falling edge of the encoder! Probably burning up a whole A72 to watch wheels go around in circles:

https://github.com/raspberrypi/linux/blob/e2d2941326922b63d722ebc46520c3a2287b675f/drivers/input/misc/rotary_encoder.c#L295

Jadonk: re Is that the RPi rotary enoder? Yes. I use two copies on different pins like
dtoverlay=rotary-encoder
dtparam=pin_a=5
dtparam=pin_b=6
dtparam=relative_axis=1
dtparam=steps-per-period=4
This way the driver does the quadrature logic and provides +1/-1 events on a /dev/input/event fd.
The quadrature logic is in rotary_encoder_irq ( ) function.
I think I was asking if this driver is in the stock Linux pile if it could be just included in the Blue distro as is. I would try the same implementation on my Blue as I did on the RPi. And see what happens. After while, if we made progress on what a low-click-rate measurement would be worth, we might combine it and not keep it in the distro.

Jadonk: re TRM eqep encoder. Yes the discussion in 15.4 near page 2513 talks about rate capture. That is very much what I do with the software encoder. Every click interrupt, in addition to adding up clicks for position, I use timespec differences between interrupts to calculate the duration. 1/duration is the (low slow) speed click rate. Very much like their equation 2.
Their observation that each approach suffers at one end of the speed range is correct. I can see a dual approach that is speed sensitive, especially if the interrupt rate gets too high. But then if the eQEP can be run in both modes, or one mode or the other in low speed-high speed ranges, then the CPU doesn't see any different load.

Jadonk: re position count register size. When I first asked this above, I had looked at the TRM and concluded the position register was 32 bits. I still find that in the TRM you point to. Section 15.4.3 EQEP registers says offset 0x0 is QPOSCNT and its 32 bits.
I dug back through an older version of a derivative of James' eqep access code from the days of Black and Robotics Cape. (What AM335X chip was that? Was its eQEP different?) He used direct memory access via mmap to get the position count as a long (which I had to check is 64 bits). He uses
return  (unsigned long)(pwm_map_base[ch-1] + EQEP_OFFSET +QPOSCNT);
and all our derived engineering variables are type long int. (He does mix unsigned with signed but ...) That's how I came to think they were 64 bit values (back in the day). I can't rectify the different approaches, but maybe you can.
It probably doesn't matter if today's chip is really just 32 bits. Never mind what used to be.

long (which I had to check is 64 bits).

long on 32-bit Linux is 32-bits.

Well dlech, that would explain a lot. I have lost track of which system is 32 bit and which is 64 bit. I think all my desktop boxes are 64 bit, but I guess all these little machines (Blues and RPis) are still 32 bit.
Trying to retroactively read minds, what was the author's intent when he coded "return  (unsigned long)(pwm_map_base[ch-1] + EQEP_OFFSET +QPOSCNT);" back in the day?

Trying to retroactively read minds, what was the author's intent when he coded "return (unsigned long)(pwm_map_base[ch-1] + EQEP_OFFSET +QPOSCNT);" back in the day?

Reading the 32-bit QPOSCNT register (eQEP Position Counter Register) of the eQEP module (EQEP_OFFSET) in one of the 3 PWMSSs (pwm_map_base[]) on the AM3558 SoC.

Oops my bad. I meant why did the author force the cast to long if int was sufficient?


Option to disable logging of log producer (2nd try)

[Issue #1069 - Marc Stern]

Fixed

The goal was to remove all the "contextual" environment, which is indeed more than the producer. Would it be OK with an explicit name (also in configure) like "LOG_NO_SERVER_CONTEXT"?

If that is the goal, it should be clear to whom may read the code and to the user who may enabling it during the configure. So we have to change the help message and the if/defs.

Done: {dis|en}able-server-context-logging


full schema not documented

This documents three modes for the schema http://orientdb.com/docs/2.1/Schema.html but doesn't say how to specify which mode to use.

answer classSchema.setStrictMode(true)

it's also quite difficult to work out how to add a schema entry for a link. For example in
orderItem.createProperty("animal", OType.LINK, animal);

animal has not been defined anywhere.

I found https://groups.google.com/forum/#!topic/orient-database/Y0QJiXk7d1I to be very useful

I am not at all knowledgeable about the ODB Java API, but the docs page you referenced is a "get your feet wet" to ODB's capabilities in the "Getting Started" part of ODB's docs. It definitely is not a complete reference.
Here is the section of the docs, which goes into more details about the Java API and setting properties.
http://orientdb.com/docs/last/Java-Schema-Api.html#property
If it still isn't complete to your liking and if you want, you can contribute to improve the docs, by forking the docs here:
https://github.com/orientechnologies/orientdb-docs
and creating PRs with the improvements you'd like to see. You can also use Gitbook to preview any changes you make too.
Scott

@smolinari thanks. As far as I can tell, these two chapters on Schema are identical.

Ha! You are absolutely right. Hmm... then my post is totally useless, other than me looking a bit foolish. :blush:
The Schema page under the "Getting Started" should be a lot less full of details. That, or the API page needs to be a lot more detailed. And, since you brought up the need for more detail, I'd say it is the latter?
Scott


Fix merging of resultset

In merging two resultsets, if a file only appears in only one of the resultsets, the current merger implementation generates incorrect resultset.

Merging {file => [nil, 0, 1]} and {} results in {file => [nil, 0, 1]} (ok)
Merging {} and {file => [nil, 0, 1]} results in {file => [nil, nil, 1]} (0 is lost)

This patch fixes the problem.

possibly related https://github.com/colszowka/simplecov/issues/501#issuecomment-226802034

Actually there's one more issue with merging.
It's quite common that you have:
{file => [1, nil, nil]} to merge with {file => [0, 0, 0]} results in {file => [1, 0, 0]} which is incorrect.
SimpleCov for file that is only loaded, but not executed prefills coverage with zero's. The nil has a special meaning here: this line were processed, but ignored. This results in badly calculated coverage report when you have specs that touches different files and their result is then merged. The ignored lines are marked as not covered, where they should be ignored.
Given above. Proper result for this is: {file => [1, nil, nil]}.

@ayufan
That case is fixed in #441 (not yet released) and now it seems working correctly.
% git rev-parse @
a80baea9eb97772eeeec339d379887368969c91c
% bundle exec irb -rsimplecov
irb(main):001:0> [1,nil,nil].extend(SimpleCov::ArrayMergeHelper).merge_resultset([0,0,0])
=> [1, nil, nil] (size=3)
irb(main):002:0> [0,0,0].extend(SimpleCov::ArrayMergeHelper).merge_resultset([1,nil,nil])
=> [1, nil, nil] (size=3)

Awesome!

Working on a new release now!

@hanazuki @sferik We should close this one then right?

@thedrow Yes, I believe so. Please re-open it if this issue reappears.

@thedrow @sferik
No, this problem is not fixed yet.
Actually this one is a regression of #441, which intoroduces nil-awareness to the merger procedure.


Mainline Kernel 4.13 compile errors

make -C /lib/modules/4.13.0-041300-generic/build M=$PWD
make[2]: Entering directory '/usr/src/linux-headers-4.13.0-041300-generic'
CC [M]  /home/andy/github/evdi/module/evdi_connector.o
CC [M]  /home/andy/github/evdi/module/evdi_gem.o
/home/andy/github/evdi/module/evdi_gem.c: In function ‘evdi_gem_put_pages’:
/home/andy/github/evdi/module/evdi_gem.c:154:3: error: implicit declaration of function ‘drm_free_large’ [-Werror=implicit-function-declaration]
drm_free_large(obj->pages);
^~~~~~~~~~~~~~
/home/andy/github/evdi/module/evdi_gem.c: In function ‘evdi_prime_create’:
/home/andy/github/evdi/module/evdi_gem.c:276:15: error: implicit declaration of function ‘drm_malloc_ab’ [-Werror=implicit-function-declaration]
obj->pages = drm_malloc_ab(npages, sizeof(struct page *));
^~~~~~~~~~~~~
/home/andy/github/evdi/module/evdi_gem.c:276:13: error: assignment makes pointer from integer without a cast [-Werror=int-conversion]
obj->pages = drm_malloc_ab(npages, sizeof(struct page *));

Hello, I tried konserw's fix and it works for me.

I have this issue too. We use these displaylinks ubiquitously where I work, and the several of us that use Arch are stuck on 4.12, or LTS.

I can confirm the issue on Arch. I had to switch to LTS.

Is there anyone who knows how to install evdi/displayport on openSUSE Tumbleweed 42.3 ? :)

I can get 1.5.0 to compile against the current fedora 26 kernel , but get a core dump on module load. See comment on  https://github.com/displaylink-rpm/displaylink-rpm/issues/32

@tartansandal  There is a comment on the forum that evdi 1.5 is not api compatible with DisplaylinkManager 1.3.x.  I submitted pull request 41 on the displaylink-rpm project that has both updated.

Thanks @alhalama. I saw both of those. Hope to have a chance to check them out tonight.

This should be already fixed by v1.5.0 evdi release and new DisplayLink driver that is now API-compatible.


Maglve Hash supporting

http://static.googleusercontent.com/media/research.google.com/zh-TW//pubs/archive/44824.pdf

I was thinking of implementing this with strategy API.


add a way to hide certain files and folders

Faced the same issue as #76 on a Synology NAS. The folders are just called differently (@eaDir, #recycle).

Codecov Report

Merging #169 (77a0476) into master (83e5aee) will decrease coverage by 1.94%.
The diff coverage is 11.11%.

@@              Coverage Diff              @@
##              master     #169      +/-   ##
=============================================
- Coverage     100.00%   98.05%   -1.95%
- Complexity       357      368      +11
=============================================
  Files             25       25
  Lines            913      927      +14
=============================================
- Hits             913      909       -4
- Misses             0       18      +18

Impacted Files
Coverage Δ
Complexity Δ

backend/Services/Storage/Filesystem.php
89.18% <11.11%> (-10.82%)
71.00 <0.00> (+11.00)
:arrow_down:

backend/Services/Tmpfs/Adapters/Tmpfs.php
98.11% <0.00%> (-1.89%)
19.00% <0.00%> (ø%)

backend/Services/Auth/Adapters/JsonFile.php
98.82% <0.00%> (-1.18%)
38.00% <0.00%> (ø%)

backend/Controllers/routes.php
100.00% <0.00%> (ø)
0.00% <0.00%> (ø%)

backend/Controllers/DownloadController.php
100.00% <0.00%> (ø)
17.00% <0.00%> (ø%)

Continue to review full report at Codecov.

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

Hi,
Thanks for the PR!
However, I cannot merge it since I have some concerns about the feature.
First, there are no tests to cover this, and that's why Codecov is reporting decreased coverage.
Second, I'm not sure what exactly are we trying to accomplish here:

If we're hiding files and folders on the back-end, someone could assume that the user cannot access those files anymore which is wrong. They could, for example, forge a rename or copy request against the hidden file and it would pop-up under a different name. For example, the secret.php file is hidden but if I forge a rename request, I could rename secret.php to ex_secret.php which will enable me to override this protection. I didn't actually try this but I can only assume that the same applies to zipping or batch downloading 'hidden' files. Again, someone could assume that hiding files is some kind of security feature.

If we're hiding files to remove the clutter, then this is a display-related feature that falls under the front-end.  Maybe there could be some kind of toggle button to hide/show hidden files as we can see on some desktop file managers. This way it will be clear to everyone that this is not a security feature but simply a user convenience.

Let me know your thoughts, any feedback is appreciated.

You are welcome. I'm glad you check the PR's first ;-)
Thank you for sharing your thoughts.
I didn't even think that a user could see this as a kind of security feature.
In my case, the apache-user cannot delete the affected folders and files anyway, because he has too few rights ... Probably the Windows-OS recycle bin, mentioned in the issue above, cannot be deleted that easily either.
So, your second point makes more sense - it's absolutely front-end, not back-end. An additional toggle button is a nice idea to make it clear that it is only for user convenience. Or simply a checkbox 'show all files/folders'. The bottom right corner is still empty and it would probably not bother there. The button/checkbox could also be hidden if no file/folder filter was configured.

Great, I like it!

Great, I like it!

'filter_entries' would also be ok for me.
Default entries could be a problem, but maybe you could use them as samples together with the explanation for the docs?

'filter_entries' would also be ok for me.
Default entries could be a problem, but maybe you could use them as samples together with the explanation for the docs?

Thanks a lot!
I will fix a small bug when you select something and click on show hidden.

Thanks a lot!
I will fix a small bug when you select something and click on show hidden.


ArduCAM mini OV2460 RAW data 1600x1200?

Dear Lee,
For a project I have to read raw data with 1600x1200 resolution and  have still not been able to do this with the Arducam. I got 320x240 RGB565 working but not the 1600x1200.
Now my question is, is it possible to read the sensor 1600x1200 RAW?
Best regards,
Yorick

HI,
Can you tell how could you get RGB565 image? I am only able to get JPEG images, no BMP.
I have a 2640 mini camera module for Arduino Uno and I was following https://github.com/ArduCAM/Arduino/blob/master/ArduCAM/examples/mini/ArduCAM_Mini_Video_Streaming/ArduCAM_Mini_Video_Streaming.ino
Thanks in advance!


/CLI:* options

Add options to generate mixed, pure and / or safe CIL/CLI/CLR/.net code.

@jmsaunders-ms can you look at adding the above option?

Adding support to generate CIL would likely be a fairly significant amount of work.
Can I ask why you want this functionality?

There are so many good open source libraries out there. It would be nice to use them in the .net also and vise versa.

If you do this at the level of LLVM IR and MSIL/CIL here about can convert from one to the other the possibilities are endless. If you add Java ByteCode to the mix then it will be even more awesome as it will make more libraries available to whatever language you use.
Also see:
http://elementscompiler.com/elements/silver/faq.aspx
http://elementscompiler.com/elements/silver/
https://github.com/remobjects/CodeGen4
https://github.com/remobjects/sugar
https://github.com/remobjects/Marzipan
http://robovm.com/

While it would certainly be awesome, we don't currently have plans to support managed code with our project. We appreciate the feedback though and we may certainly revisit this topic in the future :smile:


Integration Test - Release - 2019/02/13 09:00:47

Auto create for integration test. AnotherAuthorUpdatedArticleFlow

#assign PRMerger1

PRMerger1 is not a valid GitHub ID, or is not a collaborator on this repo.


docs(example): delete excess data

问题
数据中有两份技术岗的数据

如何解决的
删除多余的一份

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
11833

Relevant Lines:
12468

💛  - Coveralls


Error?

I don't know how to explain it well...
This is the original image:

This is the intended result:

And this is what I get:

Here is the code:
https://codepen.io/zibri-the-sans/pen/BaPzYBz
let result = await lens.distort(image, lens.Distortion.ARC, [angle, rotate], {
    imageVirtualPixelMethod:
      angle === 360
        ? lens.VirtualPixelMethod.HORIZONTAL_TILE
        : lens.VirtualPixelMethod.TRANSPARENT
  });

any help?

Hi! it's a bug with average interpolation on transparent images. Add
imageInterpolationMethod: lens.InterpolationMethod.INTEGER to options object to fix that

ohh.. thanks.. it works.
Is there the opposite function?

Fixed bug in v1.0.1
And answering to your second question: no, there's no opposite function in Lens.


Support for Builders

Laravel Beyond Crud has the concept of Builders. They aren’t yet implemented I think as the query command of this package is for another things, isn’t it?

Hi,
it's funny since @regnerisch and I talked about this feature yesterday. It will be implemented within the next week. Thank you for your contribution!

Version 2.4.0 now supports commands for eloquent query builders, jobs and collections.

@regnerisch maybe the builder command should also be in the readme.

@Wulfheart, it is ;)
php artisan beyond:make:query-builder Domain/ModelQueryBuilder


[MLIR] Binary backend - step 7 - Implement v4r1 algorithm for bwd solvers

Please note: this PR can not and should not be tested because MLIR support for it is not there yet. Since both bwd and bwd_xdlops solvers are also disabled, running CI through does not exercise those two solvers. I am pushing those changes hoping that this will simplify the final bring up process.

If things are working as expected when MLIR add support for both solvers, the only thing needs to be done in MIOpen side is to bump the MLIR commit id/ add bwd unit tests.
If anything else needs to be adjusted, further PR will be filed to update the MIOpen side of the implementation.

This PR does the following:

Used the MiirGetKernelCount() API for kernel count in bwd solvers
Implement v4r1 bwd multi-kernel compilation in bwd solvers

This replaced the original v1r1 implementation which doesn't work in post ROCm 3.7 releases

Implement v4r1 bwd invoker that expect multi-kernel invokation

Previous PRs in the series:
https://github.com/ROCmSoftwarePlatform/MIOpen/pull/841
https://github.com/ROCmSoftwarePlatform/MIOpen/pull/889
https://github.com/ROCmSoftwarePlatform/MIOpen/pull/892
https://github.com/ROCmSoftwarePlatform/MIOpen/pull/902
https://github.com/ROCmSoftwarePlatform/MIOpen/pull/912
https://github.com/ROCmSoftwarePlatform/MIOpen/pull/927

@jerryyin Two simple questions:

Do you want this to be merged?
Does it pass CI tests?

@jerryyin Two simple questions:

Do you want this to be merged?

Yes I do want this to be merged

Does it pass CI tests?

A significant part of CI already pass here. I manually stopped those later redundant CI runs.


Update actframework benchmark program

CHANGES

application now listening on port 8080
CLI service is disabled
update to act-0.4.0-SNAPSHOT
rename package and class
added /json endpoint for JSON serialization benchmark
update README.md file
add .gitignore to project

The result looks pretty good!!! Thanks.

Yep! And there are substantial optimization on Act-0.4.0, which is really triggered by running your benchmark project! Thank you very much!

You still have potential:)

Yeah but I think the performance exercise will be parked for now. My focus on Act is the developer experience, i.e. make it really easy to use. And it shall write fewer lines in comparing with other frameworks, of course the readability must not be sacrificed


eks-anywhere-test helm chart: Adds config and secret annotations

These checksums cause the deployment to be redeployed when a config map
or secret changes during a helm upgrade.
https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: ewollesen
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [ewollesen]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: ewollesen, TerryHowe
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [TerryHowe,ewollesen]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


npm start problem

I am getting the following error
ERROR in Cannot find module 'core-js/library/fn/symbol/iterator'
 @ multi main

Basic google suggested, do the following

npm install --save-dev babel-preset-es2015

But still I am facing the issue with this cloned repo.

Ok, re-ran npm install and did npm start. Now stuck in web-pack

webpack: wait until bundle finished: /

It worked finally. But took more than 10-15 mins. Not sure is it do with the machine confiuration. I am closing this ticket.


Recommended flow for getting refresh_token for server side usage

In our app a significant portion of the flow will involve the server taking action on behalf of the user, to accomplish this we need to get a refresh token when the user logs in, and be able to put it on the server. What's the recommended flow using this library to do something like that?
I've gotten the access token locally on the device, but I'm unsure of how to get the refresh token.
So far I've been thinking of changing the customScheme to be a URL on the remote server then having the user login using that, then redirecting back to the app by redirecting to the actual local customScheme URL once that's done. Not sure what to do to pass the cookie from the server / some other auth method to the actual app code at that point though.

So far it seems we have a refresh token available here but it's never passed back out to the js code.

If it’s that what you need I think I‘m currently developing that for #41. I guess you do not use the resourceUrl.
Can you plz share your config and which provider you’re trying to use?

Am 24.06.2019 um 22:53 schrieb Jake<EMAIL_ADDRESS>So far it seems we have a refresh token available here but it's never passed back out to the js code.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Thanks for the reply, for now I've removed the resourceUrl and that gets me the response_token, I've yet to determine if that response token works once I send it to the server, but I think that should solve my issue.

The documentation for the options could definitely use a bit more info about what happens when you leave out the resourceUrl though.

This is currently under dev but I'm happy to accept a PR for documentation improvements. Your contribution is very welcome. ;)

For our use case ...

I think that's the same requirement I want to do in #13. If it's not a duplicate let me know. It's planed but I will not be able to work on it before September.

#13


Rename test dirs

When I started this project, I considered any test that didn't use remote resources a unit test. I considered test that use remote resources integration tests. Those are really integration tests, and e2e tests! Now that I have proper unit tests (in unit_tests_real/ :facepalm:), it's time to rename these.

[x] Rename integration_tests/ -> e2e_tests/.
[ ] Set up bare pytest call to run all tests except e2e_tests.
[ ] Rename unit_tests/ -> integration_tests/.
[ ] Rename unit_tests_real/ -> unit_tests/.
[ ] Make sure all tests pass.
[ ] Consider a pytest --local arg that would run all tests in unit_tests/, and integration_tests/ (all tests that don't require remote resources).
[ ] Write integration tests that cover an automate-all path, including one that's confirmed and one that's not confirmed?
[ ] Consider a simple way to instantiate Command object for testing?
[ ] Consider a simple way to instantiate Deployer object for testing, ie address arg issue that came up for _confirm_use_db() methods in #281?
[ ] Consider local tests that cover automate-all paths?
[ ] Pull common code out of e2e and integration tests?
[ ] Update docs just enough to let people run the kinds of tests they want to.

Related tasks

[ ] Add a check_log() function to each platform's integration test. (See fly_io integration test.)
[ ] Add a line in integration test summary about log check results.

make a tests/ dir

[ ] make tests/ dir
[ ] Make sure unit_tests_real/ pass.
[ ] Make sure unit_tests/ pass.

integration_tests/ -> e2e_tests/

bare pytest call runs all tests except e2e tests

[ ] Update root confest.py.

parking lot
Message for canceling test run if it doesn't make sense for e2e tests:
if not check_valid_test_call():
    msg = "You must run either local tests or e2e tests, not both."
    msg += "\n  Either specify the tests you want to run, or cd"
    msg += "\n  into the appropriate directory and run tests from there."
    print(msg)

    sys.exit()

Rename unit_tests/ -> integration_tests/

[ ] Consider renaming --unit-testing flag to --local-testing, as it's used in integration tests.

[ ] Check if it's used in unit tests at all.
[ ] Consider whether there's any distinction between the two kinds of tests, and what their flags need to do.
[ ] Consider whether these flags can be removed entirely. Probably not; it basically tells simple_deploy not to create actual resources.

Closing this issue
I'm way out of the mindset of this issue. Complete any critical open tasks so I can merge this, and resume overall development.

[ ] Unit tests pass?
[ ] Integration tests pass?
[ ] E2E tests pass?

[ ] Fly.io
[ ] Platform.sh
[ ] Heroku

Update testing docs

[ ] Make a new "Testing" section in docs.
[ ] Make an overview page, a unit tests page, integration tests, and e2e tests.
[ ] Copy relevant information to each page.

[ ] overview
[ ] unit
[ ] integration
[ ] e2e

[ ] Remove old pages.