UIEditor improvements

Added editing of summaries (static at present though)
Added editing of presets
Added ability to change widget type
Added options for file chooser widgets

This also necessitated some improvements to the Metadata API, and various small enhancements to the PlugLayout and PlugValueWidget classes.
Alternative layouts can definitely be up for discussion/iteration - this is just my first stab. I based the current layout on analysis of the existing metadata registrations for Gaffer's build in node types. Absolutely everything has a description, and we want to encourage that for boxes too, so that is front and center in the UI. Next up our most common customisations are to choose a different widget type and add presets, so those come next. Presets take a lot of space so I put them in a collapsible container. Finally widgets have lots of little settings that can be tweaked but are needed less often, so I put them in a second collapsible container at the bottom. Totally open to some direction from some UI gurus or disgruntled users though...

Can you post a screen grab of the current state so we have a lasting reference of where we started out? It seems like the sort of thing where "UI gurus or disgruntled users" might request enough changes that it loops back to where we started...

Here you go...


Move metadata logic from templates to python

@guidowb and @mboldt Please check https://github.com/cf-platform-eng/tile-generator/pull/243/files#diff-d5460c791a1f1ab4e48dab576a5ba430 to make sure that makes sense.
If you would like to test (please do) then copy tile metadata yaml from a tile build from master to a location that won't be overwritten by another tile build. Checkout this branch and do a tile build. Use the diff_tile_metadata_yaml.py and/or diff or your favourite comparer to compare the yaml from my branch with that of the master.

Nit: https://github.com/keshto/tile-generator/blob/edd6cdc3f4fb694f32bbfe110880d99e7eebd1b4/tile_generator/tile_metadata.py#L55 this is an old stemcell version. But config obj should bet setting this field anyway, so probably don't need the hardcoded version here.

Sample tile gives same metadata between fork and master in my testing. Did the checked-in metadata differ. Also built the same version number with fork and master, sorted the property_blueprints, job_types, and job_types.manifest, and the output was identical.
Ran the local tests on the fork and all passed.
So, LGTM. Code is so much easier to read! Thank you!


[QUESTION] gst-launch-1.0 and kvssink inside kubernetes

I encounter issues when I try to deploy my docker container in a kubernetes cluster.
Command
gst-launch-1.0 rtspsrc protocols="tcp" location=<rtsp-url> short-header=TRUE ! rtph264depay ! h264parse ! kvssink stream-name=<aws-stream=name> storage-size=512 access-key=<aws-access-key> secret-key=<aws-secret-key> aws-region=<aws-region>
Logs
logs.txt
Any design considerations/constraints
When I run the docker container directly on the cluster node, everything works as expected. When I deploy this same container in the cluster (on the same node), it doesn't work.
Questions
The question is; Are there any limitations or special configuration to use GStreamer with kvssink in a kubernetes cluster ?

Which version of the SDK you're using?
From your logs I see the error you're getting is 0x32000002 which is STATUS_MKV_INVALID_FRAME_TIMESTAMP.
Can you please try with filesink and see if you get something playable?

There is a big difference between the decoding and presentation timestamps in the log for example, this is your issue, it looks like the decoding timestamp is an offset and the presentation timestamp is an actual time:
decoding timestamp: 320000 presentation timestamp:<PHONE_NUMBER>2272042
decoding timestamp: 340000 presentation timestamp:<PHONE_NUMBER>2272042
decoding timestamp: 360000 presentation timestamp:<PHONE_NUMBER>2272042
decoding timestamp: 380000 presentation timestamp:<PHONE_NUMBER>2272042
decoding timestamp: 400000 presentation timestamp:<PHONE_NUMBER>2272042
decoding timestamp: 420000 presentation timestamp:<PHONE_NUMBER>2272042
decoding timestamp: 440000 presentation timestamp:<PHONE_NUMBER>2272042
decoding timestamp: 460000 presentation timestamp:<PHONE_NUMBER>2272042
decoding timestamp: 480000 presentation timestamp:<PHONE_NUMBER>2272042
decoding timestamp: 500000 presentation timestamp:<PHONE_NUMBER>2272042
decoding timestamp: 520000 presentation timestamp:<PHONE_NUMBER>2272042
decoding timestamp: 540000 presentation timestamp:<PHONE_NUMBER>2272042
decoding timestamp: 560000 presentation timestamp:<PHONE_NUMBER>2272042
decoding timestamp: 580000 presentation timestamp:<PHONE_NUMBER>2272042
decoding timestamp: 600000 presentation timestamp:<PHONE_NUMBER>2272042
decoding timestamp: 620000 presentation timestamp:<PHONE_NUMBER>2272042
decoding timestamp: 640000 presentation timestamp:<PHONE_NUMBER>2272042
decoding timestamp: 660000 presentation timestamp:<PHONE_NUMBER>2272042
decoding timestamp: 680000 presentation timestamp:<PHONE_NUMBER>2272042
decoding timestamp: 700000 presentation timestamp:<PHONE_NUMBER>2272042
decoding timestamp: 720000 presentation timestamp:<PHONE_NUMBER>2272042
decoding timestamp: 740000 presentation timestamp:<PHONE_NUMBER>2272042
decoding timestamp: 760000 presentation timestamp:<PHONE_NUMBER>2272042
decoding timestamp: 780000 presentation timestamp:<PHONE_NUMBER>2272042
decoding timestamp: 800000 presentation timestamp:<PHONE_NUMBER>2272042

Even in the example that works I see the pts doesn't change for the last 5 frames. You say this is working but it is suspect, the encoder should not be producing multiple frames with the same time stamps.  In the example that didn't work it looks like all the frames that failed had the exact same pts.  Can you please investigate the cause of this?  Frames should have strictly monotonically increasing time stamps (for both dts and pts).

We changed our codec to use h.265 and that solved our problem. Looks like we have a problem with our h.264 encoder.
Since this is not a problem related to this SDK, I close this issue.


refactor(ast): renumber JSXMemberExpressionObject discriminants

Number discriminants starting at 0, not 1. This likely makes no difference, but starting numbering at 1 seems odd.

#5464  👈
main

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

Join @overlookmotel and the rest of your teammates on  Graphite

Trivial change, so merging without review.


Snake Game in Js

I would like to attach snake game in JS-game
Can You assigned me the task @geekymeeky

Sure. Go ahead @Subhradeep10

Closed via #24


Panels and Registration

Good Evening Matt,
I've finished with panels and registration. Please give those pages a look before you accept the request just incase things get weird. I have no problem doing it again if I have to.

Hey @OBRIEN66, this looks great! I'll do a bit of content editing for now, but it seems like you're done. Thanks a lot for your help!


#364 use ECNamedCurveTable instead of NISTNamedCurves for curve lookup

support more curves when decrypting or verifying or when converting EC key pairs to JCA key pair.
this will fix #364

Thanks, this is now merged in.


Get-Project conflicts with Entity Framework Migrations

With the module imported as it currently is, the Entity Framework Code First Migrations Add-Migration command fails because it uses a command named get-project which conflicts.
Need to come up with a non-conflicting name for this function, or a way to avoid the conflict if a function with the same name already exists.

The standard way is to use module specific prefix before the Noun, aka command prefixes - https://blogs.msdn.microsoft.com/powershell/2009/09/20/whats-up-with-command-prefixes/


Write a log of changes when parms collections are edited or added to

Version 1 that writes the log of changes for an edit to the District, Piece and Civil Parish collections is written and committed to test3

This is the content of the log that is created.

At this point in time we do not have the ability to create a new document in the Districts, Piece and Civil Parishes collections as the initial specification indicated we would rely solely on TNA extraction.
If we move from this specification then a log capability will be required.

Completed - closing.


Documentations of built-in applications are not available.

RT

方便给一下链接明示嘛？

Hi, tpoisonooo,
This link in your documentation is invalid: https://megflow.readthedocs.io/zh_CN/flow-python/examples/cat_finder/README.
The link is shown here:

Users can not get familiar with this project without documentation 😄.

read the docs has been updated,  pls use chrome/firefox  private mode to check it.
The code would be merged later.


Problems with trimesh

Does anyone encounter problems when trying to dump the scene?
I installed trimesh = 2.35.39 and I get the following problem :
Finished detection. 37 object detected.
Traceback (most recent call last):
File "demo.py", line 101, in
MODEL.dump_results(end_points, dump_dir, DC, True)
File "D:\Projects\Depth\votenet\models\dump_helper.py", line 86, in dump_results
pc_util.write_oriented_bbox(obbs[objectness_prob>DUMP_CONF_THRESH,:], os.path.join(dump_dir, '%06d_pred_confident_bbox.ply'%(idx_beg+i)))
File "D:\Projects\Depth\votenet\utils\pc_util.py", line 421, in write_oriented_bbox
mesh_list = trimesh.util.concatenate(scene.dump())
File "d:\ProgramData\Anaconda3\envs\pytorch_1_1_python36\lib\site-packages\trimesh\scene\scene.py", line 499, in dump
for node_name in self.graph.nodes_geometry:
File "d:\ProgramData\Anaconda3\envs\pytorch_1_1_python36\lib\site-packages\trimesh\caching.py", line 88, in get_cached
value = function(*args, **kwargs)
File "d:\ProgramData\Anaconda3\envs\pytorch_1_1_python36\lib\site-packages\trimesh\scene\transforms.py", line 224, in nodes_geometry
'geometry' in self.transforms.node[n]):
AttributeError: 'EnforcedForest' object has no attribute 'node'
Any ideas ?

I solved the issues by upgrading to the latest version of Trimesh and changing the following line:
trimesh.io.export.export_mesh(mesh_list, out_filename, file_type='ply')
to
mesh_list.export(out_filename)
Thanks for sharing your code.

I solved the issues by upgrading to the latest version of Trimesh and changing the following line:
trimesh.io.export.export_mesh(mesh_list, out_filename, file_type='ply')
to
mesh_list.export(out_filename)
Thanks for sharing your code.

I change the code in your way, But why it doesn't  work.

I encountered the same error. After some digging, it looks like it is caused by the fact that the version of networkx installed is too new. For a method that does not involve changing the code: before installing trimesh, do pip install 'networkx>=2.2,<2.3'.

I have a similar problem. But the warning information is different. I don't know what to do. Can someone help me?
Constructed model.
Loaded checkpoint /home/votenet-master/demo_files/pretrained_votenet_on_sunrgbd.tar (epoch: 180)
Loaded point cloud data: /home/votenet-master/demo_files/input_pc_sunrgbd.ply
Inference time: 0.138507
Finished detection. 9 object detected.
Traceback (most recent call last):
File "demo.py", line 101, in
MODEL.dump_results(end_points, dump_dir, DC, True)
File "/home/votenet-master/models/dump_helper.py", line 86, in dump_results
pc_util.write_oriented_bbox(obbs[objectness_prob>DUMP_CONF_THRESH,:], os.path.join(dump_dir, '%06d_pred_confident_bbox.ply'%(idx_beg+i)))
File "/home/votenet-master/utils/pc_util.py", line 421, in write_oriented_bbox
mesh_list = trimesh.util.concatenate(scene.dump())
File "/usr/local/lib/python3.6/dist-packages/trimesh/scene/scene.py", line 499, in dump
for node_name in self.graph.nodes_geometry:
File "/usr/local/lib/python3.6/dist-packages/trimesh/caching.py", line 88, in get_cached
value = function(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/trimesh/scene/transforms.py", line 224, in nodes_geometry
'geometry' in self.transforms.node[n]):
AttributeError: 'EnforcedForest' object has no attribute 'node'
Is there any outstanding scholar who can help me. Thanks

@ai-starter have you tried pip install 'networkx>=2.2,<2.3' before installing trimesh? Your error message seems to be the same.

@ai-starter have you tried pip install 'networkx>=2.2,<2.3' before installing trimesh? Your error message seems to be the same.

Thanks，It is useful! But I have another problem. When I open the results with meshleb, it looks weird.  The result is some combination of cubes, which is different from what we see in the paper.
what happen? I look forward to your reply. Thanks

You need to change the meshlab to only show the wireframes. Also, please open a new issue for this.


Added Github workflow for molecule and assorted.

See #8 for more details.

I just wanted to call out why the submodule was removed in this pull request. When I tried pulling from GitHub my  client could not initialize the submodule, claiming it was missing a url param.
On a side-note: we should probably refrain from using advanced Git features like submodules and instead commit example material directly to this repo.


rename VocalizationDataset to just 'Dataset'

more concise, the 'Vocalization's are implied

Done in #66


Folder 'trash' disappeared

The trash folder is not shown in my folder list. I think this might be a bug. Cheers.

Fixed in v5.10.1.


[IMPAC-791] Add Generic Table Layout

BEFORE MERGE:

[x] Merge PR https://github.com/maestrano/impac-angular/pull/484

@cesar-tonnoir please review last 2 commits for IMPAC-791 & here is the wiki you requested.

@cesar-tonnoir done plus a fix ;)


Fix anachronisticProtocolLedgerView

The upper bound for the ledger view should be the first scheduled delegation after the requested slot.
@nc6 is the author

#846


[Bug]: Disappearing Buckets

Minecraft Version
1.21
Mod Loader
Fabric
Mod Loader Version
0.15.11
Mod Version
<IP_ADDRESS>
Modpack or other Mod
The bug is related to Wooden Bucket.
Describe the Issue
It's pretty easy to replicate. You just need to take water out of a cauldron. The bucket will disappear.
Logs
https://pastebin.com/j4v3hHYH
Do you use any performance-enhancing mods (e.g. OptiFine)?
No response

Thanks for your report :) I will look into that :)

Fixed in upcoming release 1.21-<IP_ADDRESS>
Thanks again for your report! :)


HOTFIX: Forgot one transition

@guozhangwang I had forgotten one possible transition.

@enothereska did the unit test passed locally on your machine? I still cannot get a clean build on my machine.

LGTM and merged to trunk.


Getting Undefined as Message?

I've recently begun trying to use discord to manage a roblox bot, and I've been building a command to grab all the messages in the inbox.
My code is:
bot.on('message', (message) => {
if(message.content.toLowerCase() == ".getmessages") {
const man = bot.channels.get(Management_channelID);
rbxlogin()
.then(function () {
var msgs = robloxjs.getMessages();
robloxjs.getMessages()
.then(function (inbox) {
//man.send(inbox.messages.sender.name + " " + inbox.messages.subject + " " + inbox.messages.body);
console.log(inbox.messages.message);
});
});
};
});
The bot also does log in at the very bottom, but whenever I attempt to log a message in the console it will either work (with console.log(inbox.messages);) or not work and return undefined. I've also attempted to send messages to the management channel using just inbox.messages and it ends up returning a whole lot of [object Object]. Is there anything I can do to have discord properly post messages with a sender subject and body, or even just the entire message itself?

This is not Discord.JS support.

I know, but I am assuming that this is some sort of format issue with whatever inbox.messages returns.

There is an existing problem with getMessages as outlined in my recent reply in #34. However I believe this does not affect getting all messages without pages, the reason your messages are outputting [object Object] is because you are printing the entire message object and not just the content of it (because it contains other metadata such as author, date, etc.) You can either stringify everything with JSON.stringify(inbox.messages) or just print the content of the messages by iterating through each one and getting its content.
for (var i = 0; i < inbox.messages.length; i++) {
  console.log(inbox.messages[i].content);
}

Alright, Thank you. I appreciate it!


add ssl_ca_file option to check-rabbitmq-cluster-health

If I use my own SSL CA, I want to provide the path to the ca-certificate to the RestClient call.

closed in favor of https://github.com/sensu-plugins/sensu-plugins-rabbitmq/pull/32


Blaze client throws java.lang.NoClassDefFoundError: cats/effect/implicits/package$ with cats-effect 3.0.0-RC1

Seems that cats effect RC1 introduced source and binary incompatible changes in various clients (blaze, async, ember).

Yep, there are a lot of other pieces that aren't binary compatible.  We can leave this open as a the "it doesn't work on RC1 yet" ticket, but watch #4414 for the fix.

@rossabaker I shared some more updates from my side for #4414 here https://github.com/scala-steward/http4s/pull/1
Didn't manage to get ember-server working (managed to compile it though, but it for sure is not merge ready).

I think we can close this?
we have a new release with cats-effect-3.0.0-RC2

Yes, I think it is safe to do. Will test the new release this week.


Fixes for service update command and args

Fixes #23923 - args (previously arg) and comand now accept a single string instead of a slice. So --args "echo 100" works instead of --arg echo --arg 100
Fixes #23924 by setting Args properly instead of setting Command
Add a test to cover both.

ping @aluzzardi

The experimental failure is a timeout after all the tests pass, so I don't think it's related

I've removed all the controversial stuff from this PR. It's now just the minimal fix for #23924, a unit test, and some minor changes to make the args of the  update() methods more consistent.
I can open another PR to deal with the entrypoint vs cmd issue and setting --arg x --arg y vs `--args "x y" when we decide what we want.

LGTM
And I'm in favor of another PR to fix those issues.

LGTM 🐸


.get method on element returns node array when 0 is passed as index.

Describe the bug
.get method on element returns node array when 0 is passed as index.
To Reproduce
Steps to reproduce the behavior:

Create two elements
Fire .get method on it with index 0
See array returned instead of element

Expected behavior

Create two elements
Fire .get method on it with index 0
See first element returned

#54


[SPARK-8686][SQL] DataFrame should support where with expression represented by String

DataFrame supports filter function with two types of argument, Column and String. But where doesn't.

Merged build triggered.

Merged build started.

Test build #35914 has started for   PR 7063 at commit 180f9a4.

Test build #35914 has finished for   PR 7063 at commit 180f9a4.

This patch fails some tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
class Module(object):

Merged build finished. Test FAILed.

This failure was due to a bug in dev/run-test.py and it's been already resolved.
Jenkins, retest this please.

retest this please.

Merged build triggered.

Merged build started.

Test build #35917 has started for   PR 7063 at commit 180f9a4.

Test build #35917 has finished for   PR 7063 at commit 180f9a4.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

LGTM, could you also add Python API for it?

@davies Thanks for taking a look at this. I think, Python API already has right?

Got it, merging this into master, thanks!


Binary release not working on alpine based images

Hi!
I am trying to automate the singning of a container image in a pipeline. It runs inside an alpine container image and the error reported is:
/bin/sh: cosign: not found

To reproduce the issue follow these steps:
$ docker run -it --rm alpine:3 /bin/sh
Unable to find image 'alpine:3' locally
3: Pulling from library/alpine
5843afab3874: Pull complete
Digest: sha256:234cb88d3020898631af0ccbbcca9a66ae7306ecd30c9720690858c1b007d2a0
Status: Downloaded newer image for alpine:3
/ # wget -q -O /usr/local/bin/cosign https://github.com/sigstore/cosign/releases/download/v0.6.0/cosign_linux_amd64_0.6.0_linux_amd64
/ # chmod +x /usr/local/bin/cosign
/ # cosign
/bin/sh: cosign: not found
/ # apk add pcsc-lite-libs
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz
(1/1) Installing pcsc-lite-libs (1.9.1-r0)
OK: 6 MiB in 15 packages
/ # cosign
/bin/sh: cosign: not found
/ #

I think is missing a OS dependency... How can i figure out which one is missing?

"Solved" installing also libc6-compat.
$ apk add --no-cache pcsc-lite-libs libc6-compat

So maybe it could be a good idea building the release binaries with the CGO_ENABLED=0 flag. What do you think?

yep the release 0.6.0 for linux need this extra dependency, which is removed and the release 1.0.0 will not break this :( sorry for that
you also can use the image available: gcr.io/projectsigstore/cosign:v0.6.0@sha256:2303322158802ec0452758578ac80801a3754ee9cb19c128fc5d1b2ec32fa2d2


Can't connect to location on iOS

Its not asking for permissions?

Fixed in commit #7d813f7910cb547d614bdd595b982ef49226894f


MouseWheel is backwards

Need to reverse the actions on mouse wheel. Currently up is down and down is up.

Noted. Thank you!

I'm assuming that this issue is regarding natural scrolling on Mac.  If not, then let me know and I will create a new issue for natural scrolling not working.


fix(installplans): always retry status updates on conflicts

Signed-off-by: Joe Lanford<EMAIL_ADDRESS>
Description of the change:
Always retry status updates for install plans on conflicts
Motivation for the change:
Conflicts are common in eventually consistent controllers. Reconciliation should be tolerant to conflicts and retry updates with a backoff in the face of conflicts without requiring a full re-reconciliation of the object.
Reviewer Checklist

[ ] Implementation matches the proposed design, or proposal is updated to match implementation
[ ] Sufficient unit test coverage
[ ] Sufficient end-to-end test coverage
[ ] Docs updated or added to /doc
[ ] Commit messages sensible and descriptive

/hold
I read https://bugzilla.redhat.com/show_bug.cgi?id=1923111 a little too quickly. That bug seems to be about conflicts when applying CRDs. This PR ensures install plan status updates are retried on conflicts, which:
a) doesn't solve the problem in the BZ
b) may or may not be useful anyway.

Hello,
This repository contains a number of PRs that have been open for an excessively long period of time, in some cases these PRs have been open for more than two years. In an effort to improve the health of our project, we are closing PRs that haven't been updated in the past 30 days or include features that we do not wish to adopt. This PR has been identified as a candidate meeting the requirements above and will be closed. If you believe that this PR should still be merged, please reopen the PR and explain why.
We will eventually release an official policy detailing our process for handling "stale" PRs and issues. If you would like to be involved in the conversation, please engage through https://github.com/operator-framework/rukpak/pull/553.
Thanks you,
Alex


Feature request: load source from url

For my course material it would be useful to load a source file via a parameter to the editor.
Something like:
https://ethereum-play.github.io/editor-solidity?load=github.com/owner/repo/path/to/Contract.sol

(perhaps a stable url is also important to prevent broken links)

This is a work-in-progress. @serapath was working on this a few months ago already, but sadly due to lack of resources we couldn't finish the feature yet. We'll keep it high on the priority list though and hopefully be able to implement it soon-ish.


Integration - Port some fixes from main to RB-2.1 - Adsk Contrib

Integration PR
The first commit is the version release type name to empty. Each subsequent commit was cherry-picked from the main branch.
These commits correspond to the following PRs:
MinGW: Work around lack of strtof_l for locale independent parsing
Adsk contrib - Fix atan2 argument order for HLSL
Replace texture2D function with texture for GLSL 1.3
Adsk contrib - Processor cache does not detect changes in cccid
Adsk Contrib - Fix inverse Lut1D optimization issue

Closing this PR in favour of PR #1751 in order to fix the DCO signoff issue.

Closing this PR in favour of PR #1751 in order to fix the DCO signoff issue.


Improve the UI of Exclusive deals section

the container of this section are not align properly and not looking visually appealing.
So i would like to improve the UI and alignment of these container.
@PriyaGhosal  Please assign this task to ne under GSSoC extended and Hacktoberfest

@Aradhya-005 Thanks for creating the issue in BuddyTrail!!! The issue has been assigned to you.
Before you start working on your PR, please make sure to:

⭐ Star the repository if you haven't already.
Pull the latest changes to avoid any merge conflicts.
Attach before & after screenshots in your PR for clarity.
Include the issue number in your PR description for better tracking.

Contributors will start at Level 1, and their level will increase based on the quality and quantity of their contributions. The more effort and value you bring, the faster you'll progress. Put forth your best effort to unlock new levels and opportunities!
I'm excited to see your contribution as part of GSSOC EXTENDED 2024! 🎉
Don't forget to follow me on GitHub for more updates.
Happy open-source contributing! 🚀


Unclear installation instructions lead to broken package on Arch Linux

Hi! I package this project for Arch Linux.
Since setup.py has been removed with 1.0.0, I need to use a new mix of tools to build and install this package.
Unfortunately this leads to /usr/lib/python3.10/site-packages/ansible_compat-0.0.0.dist-info/METADATA containing VERSION: 0.0.0 and not 1.0.0, which in turn breaks molecule.
I am using
python -m build --wheel --skip-dependency-check --no-isolation
python -m install --optimize=1 --destdir="$pkgdir" dist/*.whl

to build and install the package, which is sort of what you do in tox (minus the installation).
As this is a fundamental change in how this package is supposed to be built and installed, it would be great if this could be resolved. It currently breaks molecule on Arch Linux.

Digging around I figured out, that this is due to omitting python-setuptools-scm and python-setuptools-git from the build environment.
Adding those two packages fixes the METADATA file and everything seems okay.
It is a bit bizarre, that the build process is now so brittle with PEP 517. It does not fail if there is a missing build dependency and instead silently breaks the resulting package in not so nice ways. :cry:


pip package error

Whenever i tried to "pip install apache-flink==1.15.2" i am getting error at "pandas 1.1.5" version. Probably it is not compatible with apple slicon M1. I am able to execute "pip install apache-flink==1.16.0" Could you update the repo for 1.16.0 version please ? :)

Hi @mustafaaykon, Kinesis Data Analytics for Apache Flink does not support v1.16.0 of Apache Flink at this moment, which is why we do not have examples for this. You may need to use x86_64 conda environment like the one described in this article. Let me know if that helps

More details can be found here:
https://github.com/aws-samples/amazon-managed-service-for-apache-flink-examples/tree/main/python/LocalDevelopmentOnAppleSilicon


Support tiff and float

Currently, we only support 8bit-per-channel jpgs and pngs. At least tiff images with float values should be possible to work with.

Some tiffs can be loaded latest after Commit c4cfa1178cb7c3b329d6ea7fad98975651ef464c.


No file directory available

Despite the config.json file being available in the same specified directory, I get the error 'FileNotFoundError: [Errno 2] No such file or directory: 'checkpoints/base_speakers/EN/config.json'.

up

@GayathriGanapathy updates?

I got the same problem, i tried replacing the partial paths with full paths, it did worked for some of the code but eventually broke.

Some hours ago i posted here that i had the same issue, i actually managed to find a temporary fix and the openvoice worked perfectly, mainly you just need to replace all paths to their direct location, like this:

Also

If you find any error like this one above, make sure you install miniconda, enable PATH on the installer, then go to VSCode, turn on your venv where openvoice is located, then run the command conda install ffmpeg, This should fix any error related to paths probably.

几个小时前，我在这里发帖说我遇到了同样的问题，我实际上设法找到了一个临时修复程序，并且 openvoice 运行良好，主要是您只需要替换所有路径到它们的直接位置，如下所示：

也

如果您发现上述任何错误，请确保安装 miniconda，在安装程序上启用 PATH，然后转到 VSCode，打开 openvoice 所在的 venv，然后运行命令，这应该可以修复与路径相关的任何错误。conda install ffmpeg

Hi, I'm making this same mistake and it's making me burnt out. May I ask in your steps，“在安装程序上启用 PATH，然后转到 VSCode，打开 openvoice 所在的 venv，然后运行命令”这个步骤具体是怎么样的呢？

English：This is a question about a path being incorrect, at the time I didn't know why the path was incorrect, I was obviously operating without problems.
Is there something missing, can anyone answer this?


AIR 18 compatibility and some bugfixes

Since AIR 19 and 20 are unusably broken if you use multiple ANEs, I have created this PR to make it work with AIR 18.
Changes:
Make it compatible with AIR 18 by building with Java 1.6 and setting AIR version to 18
fix AS3 source paths in buildfile
reduce minimum Android version
log errors to Android log
nicer Android detection in the swc
isSupported function doesnt return always true.

Thanks for the request: I had a quick look through and most of it looks fine, but I'll take a proper look over the next few days, run a few tests and make sure it's still forward compatible with AIR 19-21 for anyone using those (and just in case Adobe finally fix those bugs).
For consistency, can you also switch isAndroid from a method to a get accessor?


Modify ingest_photometry function and write tests

The schema rework in #379 breaks the ingest_photometry function in ingest_utils.  Fix the function and write tests.

ingest_photometry has moved to astrodb_utils.


is it useable for android?

Hi I m coding in https://github.com/fyne-io/fyne, and it can run on android, it this library suitable for android?

I don't think so. I made it and tested for Raspbian or Raspberry Pi OS.


Customize the login button (e.g., outside of sidebar)

IMO it'd be cool if we could place the login button anywhere, just like a regular Streamlit component. I have disabled the sidebar in my app, and I don't see any way to use st-paywall outside of sidebar.

this is a good point, part of the problem here is that st-paywall needs to have multiple buttons, one for the login to the auth provider and one for the login to stripe / bmac if the user isn't subscribed, would it be sufficient to have something like a sidebar=True/False param? And then wherever you put the auth work, the buttons should pop up?
I'd have to test it, I think i'd also have to add st.empty() calls to make sure the buttons don't interfere with the rest of your app, but if this sounds sufficient i'd love to try it out @ibehnam


Walk in circle

Expected Behavior
walk around
Actual Behavior
walk in circle
Steps to Reproduce
starting position: -35.289139, 149.132514
I have kept a file for recording the pokstops that it visited(in pic).

Other Information
OS: MAC OS X 10.11.5
Git Commit: I download zip file to replace the old files and remove old pyc. The file downloaded is from commit 3a18aa57dfb67e2e09c207087cad6e5aa1867112

Time was: [14:30:04][14:31:30][14:34:05][14:37:24]  / [14:39:49][14:41:06] ect....

I think it is because the 5min has past after spin the first stop, and at that time the first stop is also the closest stop to spin. I modified spin cooldown to 10min and it walks to other stops.
Suggestions: Maybe keep a routing table for pokstops within a limited area?

Can confirm:

@binarydepartment You can try to change cooldown time for spinning. Mine is about 10min ([14:39:49] - [14:30:04])and it works pretty well now but this is not a good solution might fail in your case.

@Philipp59  dev 3a18aa57dfb67e2e09c207087cad6e5aa1867112
max_steps: 5
mode:all

same bug for me
http://i.imgur.com/KbqFkJz.png
mode: all
walk 4.16
max_steps 5
branch dev
commit 15a034427d805e0bacb79fc0a1f3c96a6c93f0e3

Where do you modify spin cooldown?

@javiercravioto .../pokemongo_bot/cell_workers/seen_fort_worker.py    line 120, change 300s to the seconds you want. remember to remove file seen_fort_worker.pyc

Thanks! I feel we should add this to the wiki. Do you agree?

Or, maybe if farm is not set, increase this value to enable the bot to walk farther?

@javiercravioto I think they might come up a better solution very soon but for now this is the only way. It needs a update in algorithm, there can be different circles on the map, increase the cooldown value probably just solve the problem temporally. It will fail at some point eg. suddenly walk into a very large circle on the map.


Marathon cannot deal with SCALAR values in mesos slave attributes.

If a mesos slave has an attribute set to a SCALAR value (eg cpu:4) this will not be matched by any filters in Marathon (eg ["cpu", "CLUSTER", "4"]) when submitting a job, and consequently the job will never run.

Thanks a lot for creating the issue!

I think #1711 is the main issue here.

Thanks, @bobrik. Closing duplicate.


NDRS-581: Block proposer state persistence

State persistence had been removed during the storage refactoring merged earlier, this PR restores this functionality, albeit slightly different.
Previously no state snapshot was stored by the block proposer, instead the storage component contained custom logic to recalculate the sets of pending deploys, finalized deploys, etc. on demand. This logic was called manually "between reactors", in an async function, requiring special-casing and circumventing the component structure. The approach did guarantee that the component was only instantiated once data had been restored.
The new implementation adds a general load/store state logic to the storage component that works within the effect system, to be possibly reused by other components that need to store small state snapshots. For this to work, the block proposer component is turned in a state machine with two states, Initializing (and thus waiting for a state snapshot) and BlockProposerReady, which is normal operation.
During the Initializing state, incoming events are recorded and played back as soon as the state arrives, ensuring no events are lost. This model can possibly become a blueprint for similar components that require state initialization, which might ultimately remove the need for the initializer (and possibly joiner) reactor.
This is a slight downgrade in terms of durability, as state snapshots are saved every 10 seconds during pruning, thus intermediate changes can possibly be lost. Startup performance is negligibly better, as the state can be serialized directly instead of having to query the database. Should restoring the previous durability become a priority, I suggest we introduce indices to the storage component instead of special cased logic instead.
Other things to note:

The chainspec is loaded once in the same fashion, instead of requiring an elaborate cache.
The BlockProposer component has been split up over multiple files, as it grew in size.
Unit tests for the block propser are largely unchanged, since the BlockProposerReady closely resembles the previous version.
The BlockProposerState has been renamed to BlockProposerDeploySets, as the former name is better fitting for the state machine state.

This logic has changed a lot with https://github.com/CasperLabs/casper-node/pull/555.
/cc @fizyk20
We need to make sure that after a restart, the block proposer's next_finalized is still in sync with what the consensus component considers finalized, and that the stored collection of finalized blocks is in sync with that, too.
I'm still wondering whether persisting it is redundant, though. At least as long as we store all known deploys and all finalized blocks, we could compute the data from the storage on restart:

which deploys are finalized but not yet expired, and
which deploys are not yet expired and not finalized and can therefore be proposed in new blocks.

The first point is critical for not proposing invalid blocks.
Even once we don't store the whole blockchain anymore (so we'd need to persist the first one), the second one can still be computed from our deploy storage and the first one.

I'm still wondering whether persisting it is redundant, though. At least as long as we store all known deploys and all finalized blocks, we could compute the data from the storage on restart:

We would need some sort of generic query functionality or indices to make that fast, unless it is feasible to run through all the deploys on restart. An index of finalized deploys and one of TTL would certainly make it possible, with moderate effort, to run this on startup. It is, however, out of scope for the current PR.
@fizyk20 Do you have any idea how hard it would be to merge master with #555 into this? The core logic of the deploy handling is nigh unchanged, just the outer structs have changed a bit.

The changes I made to the block proposer should be mostly orthogonal to the changes you've made, so it shouldn't be too hard... Although, on the other hand, your PR changes the code structure quite a bit, so it might take some figuring out what goes where.
I think most of what I did should be applicable almost directly to what is in BlockProposerReady in your code, but I wouldn't bet on it :grimacing:

An index of finalized deploys and one of TTL would certainly make it possible

You're right, and in the end that's what this PR is anyway: a persistent index of pending and finalized deploys. :+1:

I don't understand why we keep reinventing the wheel… Just add SQLite and get rid of this magic.

bors r+ :tada:

bors r+ (had to squash due to some signature errors)


Users section and few other have non-styled fields

What version of Unfold are you using?
latest
What version of Django are you using?
latest
What browser are you using?
Chrome
Did you checked changelog/commit history, if the bug is not already fixed?
Yes, and it's mentioned in one, but I don't still understand how to fix it.
Did you searched other issues, if the bug is not already fixed?
Yes
Did you checked documentation?
Yes
Are you able to replicate the bug in the demo site?
No
Repository with reproduced bug
Actually can't share my code
Describe your issue
So when I go to my Users section some fields are not styled to match Unfold, like CSS is broken. After adding a codeblock to unregister and register User it fixed only one field, while other still broken.
Here's an example:

Actually bug on my end, fixed.

Actually bug on my end, fixed.

What was the solution @edin-kesetovic ? I am seeing this in my admin as well.


bug fixes for config values and error messages

@jlevy

LGTM. Somehow missed this, but merging extremely belatedly.


Clarify cputype option

Hey all. Thought I'd point out that we needed to clarify what cputype actually means. I spent an hour trying "shared-1x" "shared-cpu-1x" and what not till I figured out that the options were "standard" and "performance"
Please clarify this in the docs. Thanks!

I assume it would be either “shared” or “dedicated“.
I tried “shared” in my app and it worked just fine, but I haven’t tried “dedicated” yet.

Yeah, you'd think its "dedicated" but its actually "perofrmance.
On Sun, Oct 30, 2022 at 2:21 AM StepBroBD @.***> wrote:

I assume it would be either “shared” or “dedicated“.
I tried “shared” in my app and it worked just fine, but I haven’t tried
“dedicated” yet.
—
Reply to this email directly, view it on GitHub
https://github.com/fly-apps/terraform-provider-fly/issues/104#issuecomment-1296017806,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKVLSZZPIL6KD636Q3RRGNDWFWWOHANCNFSM6AAAAAARQADAYI
.
You are receiving this because you authored the thread.Message ID:
@.***>

Yeah, Fly.io is an amazing platform, but they really need to update their docs more often than they currently are.

oh god, thx. You just saved me from hours of debugging :/

Yeah if you choose an invalid type, the error is not really helpful

│ Error: Failed to update machine
│
│   with fly_machine.pinger["maa"],
│   on fly.tf line 42, in resource "fly_machine" "pinger":
│   42: resource "fly_machine" "pinger" {
│
│ Update request failed: 400 Bad Request, &{ID: Name: State: Region: InstanceID: PrivateIP: Config:{Env:map[] Init:{Exec:[] Entrypoint:[] Cmd:[]} Image:
│ Metadata:<nil> Restart:{Policy:} Services:[] Mounts:[] Guest:{CPUKind: Cpus:0 MemoryMb:0}} ImageRef:{Registry: Repository: Tag: Digest: Labels:{}}
│ CreatedAt:0001-01-01 00:00:00 +0000 UTC}
╵
╷


Memory "leak" using Ebiten with WebAssembly

I'm creating a game for which I chose a layout of 4K (3840x2160) because I want it to look as crisp as possible and also support that resolution "natively". My primary target is a native app on computers (Windows, Mac, Linux) but I'm using WebAssembly to share my progress with some friends easily so that they don't have to download a binary each time I update something.
However, I noticed that my game is using more and more memory in the browser and eventually crashes because of this. Even though the game runs fine as a native app and doesn't use a lot of memory at all.
I have made the following example app to demonstrate this problem: https://github.com/vzx/ebiten-memory-usage
Which you can see in action here: https://vzx.github.io/ebiten-memory-usage/
On my Windows computer as a native app, the Alloc stays around 20-40MB, while the Sys stays around 90-100MB all the time. Not much at all. Though the Total is constantly increasing, quite rapidly, which indicates to me that a lot of things are created, discarded, then cleaned up by the garbage collector.
In my browser, the Alloc keeps rising, though quite slowly. More interestingly, the Sys keeps rising as well. When that reaches 1GB it crashes on Firefox, when it reaches 2GB it crashes on Chrome (it looks like that is the amount of memory allocated to the Go WebAssembly runtime on those browsers).
When I use a lower resolution (eg. 1280x720), the problem isn't as obvious and it takes a lot longer to crash. But I definitely see the memory usage rising slowly. Unfortunately (fortunately?), none of the examples show this because they generally use a very low resolution, and memory usage is rising very very slowly.
It could be that this is just a bug in the Go WebAssembly runtime (I'm using Go 1.15), but so far I haven't been able to find a good way to reproduce it and couldn't find any open bug reports about this.
I'm not entirely sure that this is in fact a bug in Ebiten, but I felt this was a good first starting point to raise the issue.

Thanks. Confirmed that Alloc increases monotonically even with GCs on Chrome and Firefox.

Thanks. Confirmed that Alloc increases monotonically even with GCs on Chrome and Firefox.

Interestingly, layoutWidth, layoutHeight = 1920, 1080 doesn't cause the issue but layoutWidth, layoutHeight = 3840, 2160 cause the issue. Hmm?

Interestingly, layoutWidth, layoutHeight = 1920, 1080 doesn't cause the issue but layoutWidth, layoutHeight = 3840, 2160 cause the issue. Hmm?

A minimized test case:
package main

import (
	"fmt"
	_ "image/png"
	"log"
	"runtime"
	"time"

	"github.com/hajimehoshi/ebiten/v2"
	"github.com/hajimehoshi/ebiten/v2/ebitenutil"
	"github.com/hajimehoshi/ebiten/v2/inpututil"
)

const (
	// Changing 1300 to 1200 doesn't leak the memory?
	layoutWidth, layoutHeight = 1300, 1000
	windowWidth, windowHeight = 1920, 1080
)

var (
	isWasm = runtime.GOARCH == "wasm"
)

type Game struct {
	start        time.Time
	totalRunTime time.Duration
	ticks        uint64
	memStats     *runtime.MemStats
}

func (g *Game) Update() error {
	if !isWasm && ebiten.IsKeyPressed(ebiten.KeyEscape) {
		return fmt.Errorf("esc pressed")
	}

	if inpututil.IsKeyJustPressed(ebiten.KeyG) {
		runtime.GC()
	}

	if inpututil.IsKeyJustPressed(ebiten.KeyT) {
		max := ebiten.MaxTPS()
		if max == ebiten.UncappedTPS {
			ebiten.SetMaxTPS(60)
		} else {
			ebiten.SetMaxTPS(ebiten.UncappedTPS)
		}
	}

	g.ticks++
	if g.ticks%30 == 0 {
		runtime.ReadMemStats(g.memStats)
		g.totalRunTime = time.Now().Sub(g.start)
	}

	return nil
}

func (g *Game) Draw(screen *ebiten.Image) {
	ms := g.memStats
	msg := fmt.Sprintf(`TPS: %0.2f (max: %d); FPS: %0.2f
Run time: %v
ticks: %d
Alloc: %s
Total: %s
Sys: %s
NextGC: %s
NumGC: %d

<G>: run garbage collection
<T>: toggle unlimited TPS`,
		ebiten.CurrentTPS(), ebiten.MaxTPS(), ebiten.CurrentFPS(),
		g.totalRunTime,
		g.ticks,
		formatBytes(ms.Alloc), formatBytes(ms.TotalAlloc), formatBytes(ms.Sys),
		formatBytes(ms.NextGC), ms.NumGC,
	)
	ebitenutil.DebugPrintAt(screen, msg, 10, 54)
}

func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
	return layoutWidth, layoutHeight
}

func formatBytes(b uint64) string {
	if b >=<PHONE_NUMBER> {
		return fmt.Sprintf("%0.2f GiB", float64(b)/1073741824)
	} else if b >= 1048576 {
		return fmt.Sprintf("%0.2f MiB", float64(b)/1048576)
	} else if b >= 1024 {
		return fmt.Sprintf("%0.2f KiB", float64(b)/1024)
	} else {
		return fmt.Sprintf("%d B", b)
	}
}

func main() {
	ebiten.SetWindowSize(windowWidth, windowHeight)

	memStats := &runtime.MemStats{}
	runtime.ReadMemStats(memStats)

	if err := ebiten.RunGame(&Game{memStats: memStats, start: time.Now()}); err != nil {
		log.Fatal(err)
	}
}

A minimized test case:
package main

import (
	"fmt"
	_ "image/png"
	"log"
	"runtime"
	"time"

	"github.com/hajimehoshi/ebiten/v2"
	"github.com/hajimehoshi/ebiten/v2/ebitenutil"
	"github.com/hajimehoshi/ebiten/v2/inpututil"
)

const (
	// Changing 1300 to 1200 doesn't leak the memory?
	layoutWidth, layoutHeight = 1300, 1000
	windowWidth, windowHeight = 1920, 1080
)

var (
	isWasm = runtime.GOARCH == "wasm"
)

type Game struct {
	start        time.Time
	totalRunTime time.Duration
	ticks        uint64
	memStats     *runtime.MemStats
}

func (g *Game) Update() error {
	if !isWasm && ebiten.IsKeyPressed(ebiten.KeyEscape) {
		return fmt.Errorf("esc pressed")
	}

	if inpututil.IsKeyJustPressed(ebiten.KeyG) {
		runtime.GC()
	}

	if inpututil.IsKeyJustPressed(ebiten.KeyT) {
		max := ebiten.MaxTPS()
		if max == ebiten.UncappedTPS {
			ebiten.SetMaxTPS(60)
		} else {
			ebiten.SetMaxTPS(ebiten.UncappedTPS)
		}
	}

	g.ticks++
	if g.ticks%30 == 0 {
		runtime.ReadMemStats(g.memStats)
		g.totalRunTime = time.Now().Sub(g.start)
	}

	return nil
}

func (g *Game) Draw(screen *ebiten.Image) {
	ms := g.memStats
	msg := fmt.Sprintf(`TPS: %0.2f (max: %d); FPS: %0.2f
Run time: %v
ticks: %d
Alloc: %s
Total: %s
Sys: %s
NextGC: %s
NumGC: %d

<G>: run garbage collection
<T>: toggle unlimited TPS`,
		ebiten.CurrentTPS(), ebiten.MaxTPS(), ebiten.CurrentFPS(),
		g.totalRunTime,
		g.ticks,
		formatBytes(ms.Alloc), formatBytes(ms.TotalAlloc), formatBytes(ms.Sys),
		formatBytes(ms.NextGC), ms.NumGC,
	)
	ebitenutil.DebugPrintAt(screen, msg, 10, 54)
}

func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
	return layoutWidth, layoutHeight
}

func formatBytes(b uint64) string {
	if b >=<PHONE_NUMBER> {
		return fmt.Sprintf("%0.2f GiB", float64(b)/1073741824)
	} else if b >= 1048576 {
		return fmt.Sprintf("%0.2f MiB", float64(b)/1048576)
	} else if b >= 1024 {
		return fmt.Sprintf("%0.2f KiB", float64(b)/1024)
	} else {
		return fmt.Sprintf("%d B", b)
	}
}

func main() {
	ebiten.SetWindowSize(windowWidth, windowHeight)

	memStats := &runtime.MemStats{}
	runtime.ReadMemStats(memStats)

	if err := ebiten.RunGame(&Game{memStats: memStats, start: time.Now()}); err != nil {
		log.Fatal(err)
	}
}

The leak shows when (*uiContext).screenScale() < 1.

The leak shows when (*uiContext).screenScale() < 1.

graphics' theVertexBackend was grown significantly. When the memory usage jumps. Actually this backend is used only on Wasm.

graphics' theVertexBackend was grown significantly. When the memory usage jumps. Actually this backend is used only on Wasm.

Fixed! Thank you for reporting!

Fixed! Thank you for reporting!

Wow that was fast! Thanks so much for looking into it immediately and fixing this!!

Wow that was fast! Thanks so much for looking into it immediately and fixing this!!


Adds Windows Firewall Rules

Returns firewall data to PDQ Inventory. I don't remember if this is already surfaced or not. If it is, just close this :)

There we go. Latest commit should address all requested changes.


Segmentation fault

The model fails to do a forward pass in the train step. The error reported is just "Segmentation fault" :-
dataset          cityscapes_train
batch_size       1
data_dir         ./dataset/cityscapes
data_list        ./dataset/list/cityscapes/train.lst
ignore_label     255
input_size       769,769
is_training      False
learning_rate    0.01
momentum         0.9
not_restore_last False
num_classes      19
start_iters      0
num_steps        40000
power            0.9
random_mirror    True
random_scale     True
random_seed      304
restore_from     ./pretrained_model/resnet101-imagenet.pth
save_num_images  2
save_pred_every  5000
snapshot_dir     checkpoint/snapshots_resnet101_asp_oc_dsn_1e-2_5e-4_8_40000/
weight_decay     0.0005
gpu              0,3,4
ohem_thres       0.7
ohem_thres1      0.8
ohem_thres2      0.5
use_weight       True
use_val          False
use_extra        False
ohem             False
ohem_keep        0
network          resnet101
method           asp_oc_dsn
reduce           True
ohem_single      False
use_parallel     False
dsn_weight       0.4
pair_weight      1
seed             304
output_path      ./seg_output_eval_set
store_output     False
use_flip         False
use_ms           False
predict_choice   whole
whole_scale      1
start_epochs     0
end_epochs       120
save_epoch       20
criterion        ce
eval             False
fix_lr           False
log_file
use_normalize_transform False
/data/graphics/toyota-pytorch/OCNet/network/../oc_module/base_oc_block.py:69: UserWarning: nn.init.constant is now deprecated in favor of nn.init.constant_.
  nn.init.constant(self.W.weight, 0)
/data/graphics/toyota-pytorch/OCNet/network/../oc_module/base_oc_block.py:70: UserWarning: nn.init.constant is now deprecated in favor of nn.init.constant_.
  nn.init.constant(self.W.bias, 0)
/afs/csail.mit.edu/u/s/smadan/miniconda3/envs/py_36_tens_gpu/lib/python3.6/site-packages/torch/nn/parallel/data_parallel.py:24: UserWarning:
    There is an imbalance between your GPUs. You may want to exclude GPU 3 which
    has less than 75% of the memory or cores of GPU 1. You can do so by setting
    the device_ids argument to DataParallel, or by setting the CUDA_VISIBLE_DEVICES
    environment variable.
  warnings.warn(imbalance_warn.format(device_ids[min_pos], device_ids[max_pos]))
w/ class balance
41650 images are loaded!
learning_rate: 0.01
torch.Size([1, 3, 769, 769])
Segmentation fault

I added a bunch of print statements and saw that the error is happening in the step
preds = model(images)

I checked the GPU usage, there was over 11GB of GPU memory free when the error occured, so it's not a memory issue. Also, when I ran the .sh file initially, it was reporting errors because the directories for log/log_train and log_test were not created. I created them manually, and that error was resolved. But not, forward pass fails in the first iteration itself. Any leads?

@Spandan-Madan You are recommended to set the batch size=8.
If you set the batch size=1, you should also change the parameter "--gpu 0,3,4" to "--gpu 0".

Hi @PkuRainBow, That's not the cause of the Segmentation fault. I tried running it with the original parameters and these modified errors.
The error stays the same. Could you re-open the issue till it is solved please?
Thanks a lot,
Spandan

I really appreciate you if you could share more information as it seems no one ever reported such errors.
It would be great if you could share the solution if you have solved this problem.

I had a similar issue and figured out the reason is because my GCC version is not update-to-date enough (I'm using GCC 4.8). Specifically PyTorch cpp_extensions (inplace_abn is using this feature) requires GCC 4.9 or higher. More info pytorch/pytorch#6987

@fanyix Thanks for your help! Hope @Spandan-Madan you have fixed this problem.

Hi @PkuRainBow and @fanyix, I realized that the error might be that and already tried with the updated version of GCC. Here are the relevant versions and error stack:-
GCC: 5.2.0
CUDA: 8.0
Pytorch: 0.4.1

Error stack:-
smadan@thousandeyes:/data/graphics/toyota-pytorch/OCNet$ python train.py --network "resnet101" --method "asp_oc_dsn" --random-mirror --random-scale --gpu 0,3,4 --batch-size 8 --snapshot-dir checkpoint/snapshots_resnet101_asp_oc_dsn_1e-2_5e-4_8_40000/ --num-steps 40000 --ohem False --data-list ./dataset/list/cityscapes/train.lst --weight-decay 5e-4 --input-size '769,769' --ohem-thres 0.7 --ohem-keep 0 --use-val False --use-weight True --restore-from ./pretrained_model/resnet101-imagenet.pth --start-iters 0 --learning-rate 1e-2 --use-extra False --dataset cityscapes_train --data-dir ./dataset/cityscapes

Traceback (most recent call last):
  File "train.py", line 27, in <module>
    from network import get_segmentation_model
  File "/data/graphics/toyota-pytorch/OCNet/network/__init__.py", line 1, in <module>
    from .resnet101_baseline import get_resnet101_baseline
  File "/data/graphics/toyota-pytorch/OCNet/network/resnet101_baseline.py", line 27, in <module>
    from resnet_block import conv3x3, Bottleneck
  File "/data/graphics/toyota-pytorch/OCNet/network/../utils/resnet_block.py", line 19, in <module>
    from bn import InPlaceABNSync
  File "/data/graphics/toyota-pytorch/OCNet/utils/../inplace_abn/bn.py", line 14, in <module>
    from functions import *
  File "/data/graphics/toyota-pytorch/OCNet/utils/../inplace_abn/functions.py", line 18, in <module>
    extra_cuda_cflags=["--expt-extended-lambda"])
  File "/afs/csail.mit.edu/u/s/smadan/miniconda3/envs/test/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 494, in load
    with_cuda=with_cuda)
  File "/afs/csail.mit.edu/u/s/smadan/miniconda3/envs/test/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 670, in _jit_compile
    return _import_module_from_library(name, build_directory)
  File "/afs/csail.mit.edu/u/s/smadan/miniconda3/envs/test/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 753, in _import_module_from_library
    return imp.load_module(module_name, file, path, description)
  File "/afs/csail.mit.edu/u/s/smadan/miniconda3/envs/test/lib/python3.6/imp.py", line 243, in load_module
    return load_dynamic(name, filename, file)
  File "/afs/csail.mit.edu/u/s/smadan/miniconda3/envs/test/lib/python3.6/imp.py", line 343, in load_dynamic
    return _load(spec)
ImportError: /tmp/torch_extensions/inplace_abn/inplace_abn.so: undefined symbol: _ZN2at5ErrorC1ENS_14SourceLocationENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE

The error seems to be coming from the inplace_abn modules. Could there be an error in it's building?
Help greatly appreaciated :)

@Spandan-Madan There is no need to build the inplace_abn modules.
The pytorch0.4.1 support the extensions without building.

@PkuRainBow Any leads what could be causing the error?

@Spandan-Madan Have you tried delete /tmp/torch_extensions/inplace_abn and re-run? it might cache binary you compiled before

@fanyix  Just tried it. Deleted /tmp/torch_extensions/inplace_abn and ran again, got the exact same error.

For more reference, here's the command I'm trying to run right now:-
python train.py --network "resnet101" --method "asp_oc_dsn" \
--random-mirror --random-scale --gpu 0 --batch-size 1 \
--snapshot-dir checkpoint/snapshots_resnet101_asp_oc_dsn_1e-2_5e-4_8_40000/ \
--num-steps 40000 --ohem False --data-list ./dataset/list/cityscapes/train.lst \
--weight-decay 5e-4 --input-size '769,769' --ohem-thres 0.7 --ohem-keep 0 --use-val False \
--use-weight True --restore-from ./pretrained_model/resnet101-imagenet.pth \
--start-iters 0 --learning-rate 1e-2 --use-extra False \
--dataset cityscapes_train --data-dir ./dataset/cityscapes

--batch-size 1 is not supported by the parallel operation in my implementation.
You'd better set the --batch-size equal to 8 if you could access 4 GPUs.
Besides, the --batch-size should be larger than 1 if you choose the sync-BN.
I guess it can be problem related to this setting.

@PkuRainBow Tried with 4 GPUs and --batch-size=8, same error.
The error happens way before any of this gets implemented. It happens right at the top on the line
from network import get_segmentation_model

So the batch-size issue isn't the reason (now also confirmed that it isn't the reason).

@Spandan-Madan I recommend you to open an issue in the project of the inplace-abn.   https://github.com/mapillary/inplace_abn
I guess the authors of inplace-abn may help us solve the problem.

@PkuRainBow Yup, I opened an issue there :)
Hopefully they can help out :)

Hi @PkuRainBow and @fanyix, I realized that the error might be because of GCC version and already tried with the updated version of GCC. Error still persists.
Here are the relevant versions and error stack:-
GCC: 5.2.0
CUDA: 8.0
Pytorch: 0.4.1

Error stack:-
smadan@thousandeyes:/data/graphics/toyota-pytorch/OCNet$ python train.py --network "resnet101" --method "asp_oc_dsn" --random-mirror --random-scale --gpu 0,3,4 --batch-size 8 --snapshot-dir checkpoint/snapshots_resnet101_asp_oc_dsn_1e-2_5e-4_8_40000/ --num-steps 40000 --ohem False --data-list ./dataset/list/cityscapes/train.lst --weight-decay 5e-4 --input-size '769,769' --ohem-thres 0.7 --ohem-keep 0 --use-val False --use-weight True --restore-from ./pretrained_model/resnet101-imagenet.pth --start-iters 0 --learning-rate 1e-2 --use-extra False --dataset cityscapes_train --data-dir ./dataset/cityscapes

Traceback (most recent call last):
  File "train.py", line 27, in <module>
    from network import get_segmentation_model
  File "/data/graphics/toyota-pytorch/OCNet/network/__init__.py", line 1, in <module>
    from .resnet101_baseline import get_resnet101_baseline
  File "/data/graphics/toyota-pytorch/OCNet/network/resnet101_baseline.py", line 27, in <module>
    from resnet_block import conv3x3, Bottleneck
  File "/data/graphics/toyota-pytorch/OCNet/network/../utils/resnet_block.py", line 19, in <module>
    from bn import InPlaceABNSync
  File "/data/graphics/toyota-pytorch/OCNet/utils/../inplace_abn/bn.py", line 14, in <module>
    from functions import *
  File "/data/graphics/toyota-pytorch/OCNet/utils/../inplace_abn/functions.py", line 18, in <module>
    extra_cuda_cflags=["--expt-extended-lambda"])
  File "/afs/csail.mit.edu/u/s/smadan/miniconda3/envs/test/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 494, in load
    with_cuda=with_cuda)
  File "/afs/csail.mit.edu/u/s/smadan/miniconda3/envs/test/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 670, in _jit_compile
    return _import_module_from_library(name, build_directory)
  File "/afs/csail.mit.edu/u/s/smadan/miniconda3/envs/test/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 753, in _import_module_from_library
    return imp.load_module(module_name, file, path, description)
  File "/afs/csail.mit.edu/u/s/smadan/miniconda3/envs/test/lib/python3.6/imp.py", line 243, in load_module
    return load_dynamic(name, filename, file)
  File "/afs/csail.mit.edu/u/s/smadan/miniconda3/envs/test/lib/python3.6/imp.py", line 343, in load_dynamic
    return _load(spec)
ImportError: /tmp/torch_extensions/inplace_abn/inplace_abn.so: undefined symbol: _ZN2at5ErrorC1ENS_14SourceLocationENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE

The error seems to be coming from the inplace_abn modules. Could there be an error in it's building?
Help greatly appreaciated :)

Hi , have you solved the problem?  I came acros the same error as you
/inplace_abn/inplace_abn.so: undefined symbol: _ZN2at5ErrorC1ENS_14SourceLocationENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE

@Spandan-Madan  Hi , have you solved the problem? I came acros the same error as you.
"/inplace_abn/inplace_abn.so: undefined symbol: _ZN2at5ErrorC1ENS_14SourceLocationENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE"

Nope, the issue persists. I spent almost a week trying to debug it but then ended up using Google's DeepLab codebase for my experiments.
If you find a solution please do let me know! It would be extremely helpful.
Best,
Spandan

@Spandan-Madan @Liuyixuan95
Here I share my enviroment settings,

GCC version 5.4.0
CUDA version 8.0
Pytorch: 0.4.1

@Spandan-Madan
Hi,  I use the inplace-abn module from https://github.com/liutinglt/CE2P  to replace the file ' inplace_abn' to solve the problem .
Best,

@PkuRainBow
my environment settings:
GCC version 4.9.2
CUDA version 8.0
Pytorch: 0.4.1
I think it's not because of environment settings.  Thanks anyway!
I succesfully build inplace-abn from  https://github.com/liutinglt/CE2P

@Liuyixuan95 Great!
In fact, the author of inplace-abn have updated their implementation for multiple times.
It is great that you have solved the problem anyway.
Hope @Spandan-Madan can also solve this problem.

@Liuyixuan95
I still have the Segmentation fault.

@Spandan-Madan

@Liuyixuan95
I still have the Segmentation fault.

I got the same fault before.
thanks @Liuyixuan95
I followed @Liuyixuan95  use the inplace-abn module from https://github.com/liutinglt/CE2P to replace the file ' inplace_abn'
use CE2P/modules to replace OCNet/inplace_abn and modified some codes.
tree:
├── OCNet_modify
│   ├── checkpoint
│   ├── config
│   ├── dataset
│   ├── eval.py
│   ├── generate_submit.py
│   ├── LICENSE
│   ├── modules   <<---- replace OCNet/inplace_abn and inplace_abn_03
│   ├── network
│   ├── oc_module
│   ├── oc_module.pdf
│   ├── OCNet_intro.jpg
│   ├── OCNet.png
│   ├── pretrained_model
│   ├── README.md
│   ├── requirements.txt
│   ├── run_resnet101_asp_oc.sh
│   ├── run_resnet101_baseline.sh
│   ├── run_resnet101_base_oc.sh
│   ├── train.py
│   └── utils
note:
OCNet->
networks/resnet101_asp_oc.py
networks/resnet101_base_oc.py
networks/resnet101_baseline.py
networks/resnet101_pyramid_oc.py
utils/resnet_block.py
should be modified
these is an example
old codes may looks like these:
if torch_ver == '0.4':
    sys.path.append(os.path.join(BASE_DIR, '../inplace_abn'))
    from bn import InPlaceABNSync
    BatchNorm2d = functools.partial(InPlaceABNSync, activation='none')

elif torch_ver == '0.3':
    sys.path.append(os.path.join(BASE_DIR, '../inplace_abn_03'))
    from modules import InPlaceABNSync
    BatchNorm2d = functools.partial(InPlaceABNSync, activation='none')

modified looks like this
sys.path.append(os.path.abspath(os.path.join(BASE_DIR, '../modules')))
from bn import InPlaceABNSync
BatchNorm2d = functools.partial(InPlaceABNSync, activation='none')

hope these can help u.

@ackness  ，I tried to run it according to your method, but there are still some problems, could you send me a working one? qq:2232661644,  too many thanks!


On delete, ignore PVC missing errors

If a VolRep CR is deleted, and the referenced PVC is missing, ignore the errors and finalize the VR (IOW allow deletion).
The issue being, when objects are deleted in parallel, it may so happen that the VR is deleted last, and this does not garbage collect the VR due to the finalizer. The only way out of this is to remove the finalizer on the resource.

Dup of https://github.com/csi-addons/volume-replication-operator/issues/38?

Dup of #38?

Do not mind closing this one, close enough a duplicate.


Use our forks in DEPS and .gitmodules

To use these, delete the old directories, then run a git pull, and finally run gclient runhooks which will tell git from depot_tools to fetch these at the specified revision, rather than upstream's

@win32ss I also sent you an invite in both of those repos to become a collaborator (committer)

I was waiting to make another Supermium release before accepting this PR, but for a few reasons this release has slipped. I hope to release it in the next few days and accept the PR.

@win32ss I will re-invite you to those repos. Also, I could make a boringSSL repo too. That way we can use it here in DEPS, and so that it isn't just a collection of .zips but the actual source.

@win32ss I will re-invite you to those repos. Also, I could make a boringSSL repo too. That way we can use it here in DEPS, and so that it isn't just a collection of .zips but the actual source.

The boringssl repo is currently deprecated because its only purpose was to remove a call to ProcessPrng. Now progwrp handles this as its signature is identical to RtlGenRandom/SystemFunction036.

@win32ss I didn't actually try it until now lol. I wanted to compare a Supermium compile to a Thorium compile to test for regressions, and so cloned by repo, and noticed some errors in DEPS. Anyway, it's all fixed, and this PR works properly now.

@win32ss This PR has now been updated with another commit, which restores registering Chromium/Supermium/Thorium as a FTP protocol handler. This was actually removed in M75, many versions before they actually removed FTP support entirely. Their reasoning was "it isn't often used". Since the point of your recent FTP commits is to restore Chromium's FTP support back to the WinXP/Win7 era days, this is also good to have. I have tested it and it works fine. I could open an ftp:// url in an external app, and it would open Thorium to the correct page and display the file listing.

I recently added NVMe SSDs to the Supermium build system and successfully moved the main copy of the Supermium repository from an external USB HDD to one of the SSDs. Now that the process is complete, I will apply this PR.

@win32ss Does your installer work with drives other than C:?
For example, I use %PROGRAMFILES% to make sure it is always copied to the right location, but to make the registry entries that the mini_installer normally does, I am using .reg files that are hard coded.
Does your GUI installer make the .reg entries dynamically, and use the correct drive letter?

Does your GUI installer make the .reg entries dynamically, and use the correct drive letter?

Yes, the installer uses the standard win32 registry API and uses the path specified by the user to produce the registry entries pointing to the executable.


Use fwrite to print lines

Printing search results with --vimgrep is slow as heck when there're plenty of search matches. This little patch speeds up printing of search results a little bit. It gave me 3x boost in a project with around 3,000 files and short search queries

Nice catch.


Update RELEASE-NOTES.md

Updated Release-Notes to be reflective of 2019.06 - updated title of all releases to align with React releases

Deploy preview for pf-next ready!
Built with commit 9cc36e5df756b42a7a1c0f76d29202c8956ee06c
https://deploy-preview-2145--pf-next.netlify.com


Fixes #2749: Removed commented code from the project.

Description
Removed commented code from the project. The commented code was found here .
Related issues and discussion
Fixes #2749

@deniger Please review this PR.


feat(ui): allow to display date in absolute format

Fixes #TODO
Motivation

Modifications

Verification

@agilgur5 Sorry this was a draft not meant at all to be reviewed/shared for now 🙏🏾
@JPZ13 You can go for it I won't work on it during the following week

Thanks @KillianHmyd - I really appreciate it

This was superseded by https://github.com/argoproj/argo-workflows/pull/13284


xenium dataset

Todo and caveats for the support of xenium data.
Todo:

[ ] the points (transcripts) should include all the columns, not just the transcript type; waiting for the io to work with geopandas (replacing the current anndata implementation)
[ ] the image morphology.ome.tif seem to contain time information (it is converted to tczyx and has multiple t channels). Check with Fiji if this is the case or if it is the result of an error in conversion with bioformats2raw
[ ] test visualization with napari

Caveats:

The table can annotate only one Regions element, while here there are multiple regions available (and also labels could be created to rasterize the polygon masks). We have to decide how to proceed, but this is for later.

First version working, here is how the SpatialData object looks like:

Can we also figure out a different solution for the DEBUG variable for this dataset?


Create a Parsec Ockam Vault: investigation

Parsec, and more specifically the Parsec Rust client, would be a good candidate for an Ockam Vault implementation. See this discussion for context.
This issue is about investigating what needs to be done to make it happen.
A Vault structure that uses the parsec-client dependency would have to be created and that structure would have to implement the ockam_vault_core traits.
Let's review them one per one (for the 0.20.0 version).
AsymmetricVault
ec_diffie_hellman: this seems to be the psa_raw_key_agreement function with the Ecdh algorithm.
However, if the output Secret is meant to be used as key material stored securely, this is not enough (see this warning).
Instead, we will have to chain a key agreement and a key derivation using the Parsec version of the PSA Crypto operation psa_key_derivation_key_agreement. This operation is a multi-part operation that has not yet been designed in Parsec.
Hasher
sha256 is available as psa_hash_compute with the Sha256 algorithm. Although since this operation should not be sensitive it could be implemented using a software library?
hkdf_sha256: The HKDF algorithm is part of the Parsec interface but as key derivation is a multi-step operation, it has not yet been designed in Parsec.
Note to myself: if hkdf_sha256 exists, does it mean that ec_diffie_hellman should only do the key agreement part but not the derivation? Does Ockam perform these two operations one after the other anyway?
KeyIdVault
Parsec already uses String to refer to keys stored in the various crypto backends so those methods should be trivial to implement.
SecretVault
All of those key management methods are already available in Parsec. Respectively:

psa_generate_key
psa_import_key
psa_export_key
key_attributes
psa_export_public_key
psa_destroy_key

The SecretAttributes look close enough to the Attributes with the following details:

Parsec only support persistent keys
the length of Parsec keys is in bits

For key types:

SecretType::Buffer should map to Type:RawData
SecretType::Aes should map to Type::Aes
SecretType::Curve25519 should map to Type::EccKeyPair or Type::EccPublicKey (I guess depending on the context) with the family EccFamily::Montgomery. For the Curve25519, the bits field should be 255. See this.
SecretType::P256 should be the same as above but with the ECC family set to EccFamily::SecpR1 and bits to 256. To double-check between SecpR1 and SecpK1.
SecretType::Bls: if this refer to that, I am not sure this is defined in the PSA Crypto API and hence we could not use it :(

Signer
sign should map to psa_sign_message. If we use a software implementation to hash the data before signing it, psa_sign_hash should be enough.
I guess the algorithm to use could be deduced from the key type. Looks like it is going to be ECDSA in all cases?
The input data and signature format should be checked: what hash needs to be used for data (or is it already hashed with something?). The format returned in Signature might not be the one we use in Parsec.
SymmetricVault
aead_aes_gcm_encrypt and _decrypt should be covered with psa_aead_encrypt and _decrypt. The algorithm to use should be Aes::Gcm.
Verifier
Similar to Signer with psa_verify_message.

Hey @SanjoDeundiak ,
Thanks a lot for your reply and the detailed information here. Sorry for my lack of responses the past few weeks, I was on holidays 🌴

ec_diffie_hellman is expected to perform raw Curve25519 Diffie-Hellman. We don't expect any additional key derivation here. The output Secret is expected to have Buffer type, and can be transformed to AES key using hkdf

That works! The only catch here for Parsec is that the key agreement operation produces a raw shared secret which is returned to the client. The client would then have to import it again into the crypto hardware as raw data. Later on they can perform key derivation from it.
That means that there would be a period of time where the raw secret is exposed out of the hardware which is not ideal. The secure way is to chain key agreement and derivation and then everything happens inside the hardware.
In Ockam, do you use the raw secret for something else than key derivation afterwards?

Maybe it's possible to implement ephemeral key as a persistent key that is destroyed when Vault instance is destroyed?

Should be possible yes!

For signing with Curve25519 we use XEdDSA. There are other options for curve25519, as well as creating dedicated Ed25519 key, but at the moment we only support XEdDSA. We pass pre-hashed data here, but hashing is also a part of XEdDSA scheme. For other algorithms we probably need to create a convention.

There is no support currently in PSA Crypto for EdDSA or XedDSA 😢 In future versions there might be for EdDSA.

Maybe it will be easier to start with Partial compatibility and then move towards Full compatibility.

I was also thinking that we could start from an exact copy of the software implementation of Ockam Vault and modify it piece by piece with Parsec. If that's possible that way we will keep full compatibility as we develop it and eventually replace everything by the Parsec implementation? With that as well we could include the vault in some existing integration testing and make sure that it keeps working when using Parsec instead.

@hug-dev

In Ockam, do you use the raw secret for something else than key derivation afterwards?

Kind of... We have X3DH implementation (which we don't use for now), in this case multiple dh outputs are first concatenated and then go to hkdf. In Noise XX (which we use for Secure Channels) dh output goes straight to HKDF as ikm.

I was also thinking that we could start from an exact copy of the software implementation of Ockam Vault and modify it piece by piece with Parsec. If that's possible that way we will keep full compatibility as we develop it and eventually replace everything by the Parsec implementation? With that as well we could include the vault in some existing integration testing and make sure that it keeps working when using Parsec instead.

Sounds great!


Virtual funding

Some thoughts re. how we get virtual funding working
Answer the following two questions

Do we continue to use the funding protocol?

The funding protocol currently implements some decision making.

https://xstate.js.org/viz/?gist=f3b66fdd086667323ab4bcc47230f9e7

For web3torrent, we don't want that.
We want to assume virtual funding.
We could use the existing funding protocol if the application provides a couple of services:

the askClient service in the funding protocol
a chooseHub service in the virtual-funding protocol.

One downside of this is that two extra messages will go across the wire.
We probably want to start by implementing the two fully-determined protocols: virtual-funding-as-leaf and virtual-funding-as-hub

as leaf: https://xstate.js.org/viz/?gist=8bee766cdc78efd02a429c1082084224
as hub: https://xstate.js.org/viz/?gist=bbccc52e6754a4075cba21423705b040

Does the hub have any say in whether or not it will enable a virtually funded app channel?

Currently, the hub implicitly agrees to fund any application channel.
Should we bother adding some decision making into this?

Write some tests that pass.

Here's a starter if we want to avoid using the 'funding' protocol to do virtual funding.
https://github.com/statechannels/monorepo/tree/virtual-funding

Out of date


Getting error in Plugin.

I 'm getting following error when my application is started. And i18n file is not generated.
kotlin.KotlinNullPointerException
at eu.long1.flutter.i18n.files.FileHelpers.getI18nFile(FileHelpers.kt:20)
at eu.long1.flutter.i18n.workers.I18nFileGenerator.generate(I18nFileGenerator.kt:54)
at eu.long1.flutter.i18n.workers.Initializer$runActivity$$inlined$scheduleAtFixedRate$1$lambda$1.compute(actions.kt:64)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:945)
at eu.long1.flutter.i18n.workers.Initializer$runActivity$$inlined$scheduleAtFixedRate$1.run(Timer.kt:150)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)

Same issue.

Same.
kotlin.KotlinNullPointerException
	at eu.long1.flutter.i18n.files.FileHelpers.getI18nFile(FileHelpers.kt:20)
	at eu.long1.flutter.i18n.workers.I18nFileGenerator.generate(I18nFileGenerator.kt:54)
	at eu.long1.flutter.i18n.workers.Initializer$runActivity$$inlined$scheduleAtFixedRate$1$lambda$1.compute(actions.kt:64)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:945)
	at eu.long1.flutter.i18n.workers.Initializer$runActivity$$inlined$scheduleAtFixedRate$1.run(Timer.kt:150)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)

The reason is missing misc.xml in .idea directory (the project file).

@hiperioncn or, it might become optional. Everything in my flutter project worked perfectly without this file, except for this plugin.

Same issue too :
kotlin.KotlinNullPointerException 	at eu.long1.flutter.i18n.files.FileHelpers.getI18nFile(FileHelpers.kt:20) 	at eu.long1.flutter.i18n.workers.I18nFileGenerator.generate(I18nFileGenerator.kt:54) 	at eu.long1.flutter.i18n.workers.Initializer$runActivity$$inlined$scheduleAtFixedRate$1$lambda$1.compute(actions.kt:64) 	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:945) 	at eu.long1.flutter.i18n.workers.Initializer$runActivity$$inlined$scheduleAtFixedRate$1.run(Timer.kt:150) 	at java.util.TimerThread.mainLoop(Timer.java:555) 	at java.util.TimerThread.run(Timer.java:505)
I tried to add the ./.idea/misc.xml in my project structure, without success :
<?xml version="1.0" encoding="UTF-8"?> <project version="4">   <component name="ExternalStorageConfigurationManager" enabled="true" />   <component name="NodePackageJsonFileManager">     <packageJsonPaths />   </component>   <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">     <output url="file://$PROJECT_DIR$/out" />   </component> </project>
Do you have other any idea to resolve this issue please ?

@KingWu you can get this file in the example of the plugin :
https://github.com/long1eu/flutter_i18n/blob/master/.idea/misc.xml
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ExternalStorageConfigurationManager" enabled="true" />
  <component name="NodePackageJsonFileManager">
    <packageJsonPaths />
  </component>
  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
    <output url="file://$PROJECT_DIR$/out" />
  </component>
</project>

@BenoitVerstraete Worked. Thx

Is this still an issue?

@long1eu without the file misc.xml, the issue is still there.

Yes its still an issue, but workaround works!

Still an issue but adding the .idea/misc.xml works.

Duplicate of #43

Is this issue fixed?
I got the same error with:
Flutter i18n plugin:  version 1.0.1,
Android Studio: version 3.3.2,
Flutter: version 1.5.4
I copied the misc.xml file to .idea folder, and this plugin can generate i18n.dart.
But, I still think this is an issue

Greetings, I got exactly the same issue, the only difference is that I am using Intellij IDEA. Adding misc.xml hasn't resolved the issue.

Flutter i18n: 1.0.6-192
Intellij Idea: 2019.2
Stacktrace:
kotlin.KotlinNullPointerException
at eu.long1.flutter.i18n.files.FileHelpers.getI18nFile(FileHelpers.kt:20)
at eu.long1.flutter.i18n.workers.I18nFileGenerator.generate(I18nFileGenerator.kt:54)
at eu.long1.flutter.i18n.actions.RebuildI18nFile$actionPerformed$1.run(RebuildI18nFile.kt:13)
at com.intellij.openapi.command.WriteCommandAction.lambda$runWriteCommandAction$5(WriteCommandAction.java:368)
at com.intellij.openapi.command.WriteCommandAction$BuilderImpl$1.run(WriteCommandAction.java:125)
at com.intellij.openapi.application.RunResult.run(RunResult.java:35)
at com.intellij.openapi.command.WriteCommandAction.lambda$null$1(WriteCommandAction.java:264)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:994)
at com.intellij.openapi.command.WriteCommandAction.lambda$performWriteCommandAction$2(WriteCommandAction.java:263)
at com.intellij.openapi.command.WriteCommandAction.lambda$doExecuteCommand$4(WriteCommandAction.java:320)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:220)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:188)
at com.intellij.openapi.command.WriteCommandAction.doExecuteCommand(WriteCommandAction.java:322)
at com.intellij.openapi.command.WriteCommandAction.performWriteCommandAction(WriteCommandAction.java:263)
at com.intellij.openapi.command.WriteCommandAction.execute(WriteCommandAction.java:245)
at com.intellij.openapi.command.WriteCommandAction$BuilderImpl.run(WriteCommandAction.java:127)
at com.intellij.openapi.command.WriteCommandAction.runWriteCommandAction(WriteCommandAction.java:368)
at com.intellij.openapi.command.WriteCommandAction.runWriteCommandAction(WriteCommandAction.java:360)
at eu.long1.flutter.i18n.actions.RebuildI18nFile.actionPerformed(RebuildI18nFile.kt:13)
at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:265)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:282)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAwareWithCallbacks(ActionUtil.java:256)
at com.intellij.openapi.actionSystem.impl.ActionButton.actionPerformed(ActionButton.java:194)
at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:157)
at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:434)
at java.desktop/java.awt.Component.processEvent(Component.java:6416)
at java.desktop/java.awt.Container.processEvent(Container.java:2263)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5026)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4858)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4858)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:778)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:751)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:749)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:748)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:873)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:818)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:461)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:704)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:460)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Please, this is a critically important plugin for our team. What can we do to help to fix it? @noordawod

until this is fixed, let me give you a workaround

clone this repo
git clone https://github.com/long1eu/flutter_i18n.git
in your app root activate the generator page
 pub global activate --source path {ROOT for flutter_i18n}/flutter_l10n/
run the package with watch param
 pub global run l10n_generator:main -w

Keep in mind that this generator produces the code in a new but compatible style.

@long1eu Thank you very much, I will try and let you know!

Ok, so actually, accidentally, I have figured out what was my problem.
I have had a problem with the structure of files. At some point, I have had
~/FlutterProjects/myapp/root
but at some point, I changed it to
~/FlutterProjects/myapp/myapp/root
however, IntellijIDEA was still using .idea folder from the previous path. Fixing that, and adding the following misc.xml fixed the issue for me:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
    <output url="file://$PROJECT_DIR$/out" />
  </component>
  <component name="ProjectType">
    <option name="id" value="io.flutter" />
  </component>
</project>

good to know

Indeed good to know :)

This means other things can have problems because it seems there's a wrong directory address set somewhere. I'm having the same problem. There's a misc.xml in my appfolder/.idea/ but it's a lot different from the one here. I did change the directory structure recently so this might be the problem.
But the best solution would be to find this variable and fix it.

This will be fixed after #103 is merged later today.

Plugin v1.1.2 has been published to JetBrains, awaiting approval. It should be available during the day.


Accessing elements of a view on a const array

Hi,
there seems to be a problem that prevents accessing to the elements of a view on a const array with the operator().  Exemple :
void foo(){
        const xt::xarray<int> a1{{0, 1}, {2, 3}};
        auto a2 = xt::view(a1, 1, xt::range(1,2));
        auto a3 = xt::flatten(a1);

        int v1 = a1(0,0);
        int v2 = a2(0); // error: binding ‘const int’ to reference of type ‘... {aka int&}’ discards qualifiers
        int v3 = a3(0); // error: binding ‘const int’ to reference of type ‘... {aka int&}’ discards qualifiers
    }

My configuration is:
xtl : 0.4.3
xtensor : 0.15.6
xsimd : <IP_ADDRESS>
gcc 5.4.0

Thanks for all the amazing work !

Does it work if you make your view const as well (e.g.
const auto a2 = xt::view(a1, 1, xt::range(1,2));

yes !
I'm quite a c++ newbie, but shouldn't have the compiler deduced the const in this case ?

Yes, it's something that we can probably add. We can discuss this tomorrow.

I'm quite a c++ newbie, but shouldn't have the compiler deduced the const in this case ?

xview provides two overloads of operator(), one that is const and return a const reference, another non const that returns a non const reference.
WHen you write a2(0), the compiler considers the declaration of a2 to decide wich overload of operator() to call. In Your case, since a2 is not declared as const, the non const version is called (and that's the standard behavior).
The problem here is that the non const overload of operator() should return a const reference when the underlying expression is const.

Thank you for the explanation and the very fast answer


Error when I try to launch xsstrike: python: can't open file '/root/.fsociety/tools/XSStrike/xsstrike': [Errno 2] No such file or directory  Click [Return] to continue

Checkboxes

[x ] Updated fsociety
[x ] Issue does not already exist
[ ?] fsociety issue, not a tool issue

I've updated fsociety and cloned xss from github but when I try to lounch xsstrike it give me this error:
Actual Result
python: can't open file '/root/.fsociety/tools/XSStrike/xsstrike': [Errno 2] No such file or directory

Click [Return] to continue

but the file is in the directory, why?
EDIT: I've notice that this isn't the only tool that I can't open with Fsociety, where I'm wrong?
so I have try to open directly from the directory and it give me this error:

python3 '/root/XSStrike/xsstrike.py'

	XSStrike v3.1.1

Traceback (most recent call last):
  File "/root/XSStrike/xsstrike.py", line 32, in <module>
    from modes.crawl import crawl
  File "/root/XSStrike/modes/crawl.py", line 7, in <module>
    from core.filterChecker import filterChecker
  File "/root/XSStrike/core/filterChecker.py", line 1, in <module>
    from core.checker import checker
  File "/root/XSStrike/core/checker.py", line 2, in <module>
    from fuzzywuzzy import fuzz
ModuleNotFoundError: No module named 'fuzzywuzzy'

but I have that module...

Try CHMOD ing it?
On Thu, Dec 6, 2018, 1:59 PM b4s5<EMAIL_ADDRESS>wrote:

Checkboxes

[x ] Updated fsociety
[x ] Issue does not already exist
[ ?] fsociety issue, not a tool issue

I've updated fsociety and cloned xss from github but when I try to lounch
xsstrike it give me this error:
Actual Result
python: can't open file '/root/.fsociety/tools/XSStrike/xsstrike': [Errno 2] No such file or directoryClick [Return] to continue
but the file is in the directory, why?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Manisso/fsociety/issues/68, or mute the thread
https://github.com/notifications/unsubscribe-auth/AjLmHdUcO19LVHrlVS0hMIXjOnA8ihoSks5u2WklgaJpZM4ZHHLj
.

yes don't work... if I try to launch directly in the XSSer directory it tell me the same error, if I try to launch with fsociety it gives me the first one that don't found the file or the directory

https://github.com/s0md3v/XSStrike
And Thnx For reporting the probem i will patch it soon

@CRO-THEHACKER  https://github.com/Manisso/fsociety/invitations Go Go Go And Add me on facebook or Insta

ModuleNotFoundError: No module named 'fuzzywuzzy'

run:

sudo pip install fuzzywuzzy


About webcam_blender.sh

Hi. I am trying to use your prediction to control the animator in blender. However, I met a problem when I am running "webcam_blender.sh"
The "webcam.sh" demo can be run successfully. However, when I ran "webcam_blender.sh", the program keeps blocked in the accepting signal operation,
https://github.com/Arthur151/ROMP/blob/99564ad7aaa2fea05d9873832e6914481026fe26/romp/lib/visualization/socket_utils.py#L205
, and the program will not move forward.
It's multi-threading needed for accepting the signal?

Thanks for your interest in our work!
About driving Blender character, please refer to this rep..
You have to 1) install the Blender add-on first, and then 2) run webcam_blender.sh of ROMP, 3) finally, run the Blender script in Blender to receive the sent signal.

Thanks for your interest in our work! About driving Blender character, please refer to this rep.. You have to 1) install the Blender add-on first, and then 2) run webcam_blender.sh of ROMP, 3) finally, run the Blender script in Blender to receive the sent signal.

Thank you. Actually, I have followed your steps. However, the webcam_blender.sh is not runnable, because the program was stopped in
https://github.com/Arthur151/ROMP/blob/99564ad7aaa2fea05d9873832e6914481026fe26/romp/lib/visualization/socket_utils.py#L205
, and the following codes about processing the image didn't run.

Do you have any ideas to solve it?


Multiselect Dropdown Template Issue

Hi,
When I render multi select drop down with the help of below code
<MultiSelect
      label="MultiSelect Label"
      invalid={false}
      invalidText="Invalid Selection"
      items={items}
      itemToString={item => item.text}
    />

After render I am able to see the item has been populated successfully but when I am open console the below waring message will comes up.

Please check and update.

Hi @anupamsomani1! 👋 It'd really be helpful if you could follow our Issue Template. You should have seen it when you created the issue.
Most likely this is related to usage of Hot Module Replacement in webpack, do you feel like it is similar to: https://github.com/IBM/carbon-components-react/issues/857 ?

Going to close this as a duplicate of #857. Let me know if that's not the case and we can re-open!


BibtexGenerator and BibtexCollection

Delivers

BibtexGenerator and BibtexCollection classes to index acl-anthology dataset addressing issue #986

Open Questions

It might be worth combining some Core and Bibtex duplicate code right now or waiting to see how the needs evolve. Examining the steps happening in their Generator and Collection classes, it should be possible to make a more generalized class @lintool @edwinzhng

@edwinzhng can you do a PR?

@lintool wait what PR?

@nikhilro sorry I meant CR.
@edwinzhng one big PR or smaller PRs, I don't really care.


docs: Disqus doc url doesn't exist

In the first second of https://gohugo.io/content-management/comments/, it linked https://gohugo.io/templates/partials/#disqus. But this url doesn't exist. There is not a single disqus word on this page.
It should be https://gohugo.io/templates/internal/#disqus.

Please post documentation related issues here: https://github.com/gohugoio/hugoDocs/issues


Disabling an already loaded css file

Is it possible to disable a CSS file that was loaded by l.js?
When I load css files in traditional way, without l.js, I currently use this method to disable a specific one:
// To disable a specific css file
document.getElementsByTagName('link')[2].disabled = true

// And, to enable it again
document.getElementsByTagName('link')[2].disabled = false

Is there a way to accomplish this with l.js?

Sorry but there's no way or plan to achieve this with l.js.
l.js is a loader and its only purpose is to load files. You still can go with your actual method which look fine to me.

Is there a way to manually disable a CSS file load by l.js? I just need to know where it stores the css files so I can manually disable them, when needed.

when l.js load a file it does two things:

mark internally the file as asked for loading to avoid attempting to loading it again
create a script or link tag to effectively load the file.

You can in the load callback use your method as you did without l.js.
Also you will perhaps appreciate the option to set an id to your link tag to get it by id instead of getByTagName here's an exemple:
ljs.load('styles.css#myfancystyle', function() {
    var linkElement = document.getElementById('myfancystyle');
    //... do some work ...
    linkElement.disabled = true;
});

I haven't tested it but it should work.
Tell me if this is ok for you.

It works perfectly. Set an id to link tags is the way to go.
Just to clarify, I need to disable specific CSS files some times as a temporary solution/workaround for an application that was designed with conflicting css files.
It was a multi-page app but I am "translating" it to a single page app, and each route still depends on different css files (we are also working on this issue, since is a completely bad practice).
Thanks!

Cool, i'm pleased it worked for you.


Replace cryptonite library with crypton

Description
Replace cryptonite (which is deprecated) library with crypton. The later is a drop in replacement.
Checklist

[x] Commit sequence broadly makes sense and commits have useful messages
[ ] New tests are added if needed and existing tests are updated
[ ] All visible changes are prepended to the latest section of a CHANGELOG.md for the affected packages.
New section is never added with the code changes. (See RELEASING.md)
[ ] When applicable, versions are updated in .cabal and CHANGELOG.md files according to the
versioning process.
[ ] The version bounds in .cabal files for all affected packages are updated.
If you change the bounds in a cabal file, that package itself must have a version increase. (See RELEASING.md)
[x] Self-reviewed the diff

These versions that have been changed here have never been released to CHaP, so I did not bump the cabal versions.

Another step is https://github.com/IntersectMBO/cardano-crypto/pull/95


Incorrect display of UUIDs in Swagger between versions 2.10.0 and 3.0.0

Hi there,
I noticed a problem with the UUID display in Swagger between versions 2.10.0 and 3.0.0. Before, the display indicated that it was a UUID string, but now it indicates that it is an object.
Is this normal behavior?
Thanks for your help.
Version 2.10.0

Version 3.0.0

Hi,
i switch to my own library for generating schemas for objects. It seems like the previous generator automatically encoded UUIDs as strings which is not a default behavior with the new one.
You can configure this manually by customizing the schema generator and overwriting or redirecting UUIDs to strings

providing a custom type processor for the UUID-type (see here for more info)
"redirecting" UUID to a string (see here for more info)

I tested it by simply "redirecting" and it produced the desired result:
install(SwaggerUI) {
    schemas {
        generator = { type ->
            type
                .collectSubTypes()
                .processReflection {
                    redirect<UUID, String>() // redirect UUID to string, i.e treat is as a string for schema generation
                }
                .connectSubTypes()
                .handleNameAnnotation()
                .generateSwaggerSchema()
                .handleCoreAnnotations()
                .withAutoTitle(TitleType.SIMPLE)
                .compileReferencingRoot()
        }
    }
}