text:
🛑 OMSF is down

In 66b59e8, OMSF (https://www.omsf.io) was down:

HTTP code: 0
Response time: 0 ms

Resolved: OMSF is back up in 34f9399 after 17 minutes.


text:
With configPath, Gradle uses task without declaring an explicit or implicit dependency

About this issue
I have an app that uses config path:
aboutLibraries {
    configPath = "my-module"
}

Gradle doesn't seem to like that, (if I delete the above config, the error goes away)
1: Task failed with an exception.
-----------
* What went wrong:
A problem was found with the configuration of task ':app:prepareLibraryDefinitionsDebug' (type 'AboutLibrariesTask').
  - Gradle detected a problem with the following location: '/Users/blundell/dev/my-app/my-module'.

    Reason: Task ':app:prepareLibraryDefinitionsDebug' uses this output of task ':my-module:generateDebugResValues' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.

    Possible solutions:
      1. Declare task ':my-module:generateDebugResValues' as an input of ':app:prepareLibraryDefinitionsDebug'.
      2. Declare an explicit dependency on ':my-module:generateDebugResValues' from ':app:prepareLibraryDefinitionsDebug' using Task#dependsOn.
      3. Declare an explicit dependency on ':my-module:generateDebugResValues' from ':app:prepareLibraryDefinitionsDebug' using Task#mustRunAfter.

    For more information, please refer to https://docs.gradle.org/8.4/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.

This is a warning when AGP < 8, but build fails > 8.

One change I attempted was moving the configPath configuration to the my-module but the same error occurs with the error changing to be just that modules tasks.
1: Task failed with an exception.
-----------
* What went wrong:
A problem was found with the configuration of task ':my-module:prepareLibraryDefinitionsDebug' (type 'AboutLibrariesTask').
  - Gradle detected a problem with the following location: '/Users/blundell/dev/my-app/my-module'.

    Reason: Task ':my-module:prepareLibraryDefinitionsDebug' uses this output of task ':my-module:generateDebugResValues' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.

    Possible solutions:
      1. Declare task ':my-module:generateDebugResValues' as an input of ':my-module:prepareLibraryDefinitionsDebug'.
      2. Declare an explicit dependency on ':my-module:generateDebugResValues' from ':my-module:prepareLibraryDefinitionsDebug' using Task#dependsOn.
      3. Declare an explicit dependency on ':my-module:generateDebugResValues' from ':my-module:prepareLibraryDefinitionsDebug' using Task#mustRunAfter.

    For more information, please refer to https://docs.gradle.org/8.4/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.

Details

[x] Used library version 10.9.2
[x] Used gradle build tools version 8.1.3

Checklist

[x] Searched for similar issues
[x] Checked out the sample application
[x] Read the README
[x] Checked out the CHANGELOG
[x] Read the MIGRATION GUIDE

Thank you for the report @blundell
Is this something you can also reproduce in the sample app?
We use the configPath there too, and it does not seem to show the same behavior: https://github.com/mikepenz/AboutLibraries/blob/develop/app/build.gradle#L92

Hmm thanks let me see if I can!

Finally got round to this @mikepenz (Happy New Year!), sorry for the delay! :-)
Here is the error message being reproduced in your sample app: https://scans.gradle.com/s/5t6xzwhjzmxwo
These are the only changes I made:

I made the :app module use the :aboutlibraries module (folder) as the source for the json files.

Happy new year to you too! I'll try to come back to this as soon as possible. Thank you!

I had a chance to look into this. So it seems the problem is because the aboutlibraries folder itself gets modified by tasks prior to the generation of the libs. (given it includes the build folder)
If you modify the location to something like aboutlibraries/configs then the problem will also go away.

I am not sure if this is something the plugin needs to handle 🤔
Can you perhaps explain more, if you need to have the libraries and licenses in the root of the module instead of in a folder within your module?

Thanks for finding the time.

Can you perhaps explain more ... [why they are] in the root of the module instead of in a folder within your module?

It's an inherited legacy project, so I don't have an answer sorry :-)
However there is nothing blocking me from creating a new configs subfolder so that's a good workaround fix 👍
Thanks for the help! At least you know now if someone else raises it, perhaps a really small footnote in the documentation, but it now seems a very small edge case!

(Confirmed, making a subfolder under the project folder in the original project that had this issue fixed it 👍 )
aboutLibraries {
    configPath = "my-module/configs"
}

You are welcome!
Thank you very much for confirming!

source: gharchive/issue

authors: blundell enimamms mikepenz

repo: mikepenz/AboutLibraries

license_type: permissive

license_source: github-api


text:
SubItems - updating

I've a general question to that, I'm, currently writing functions to add/remove items... I've checked the notifyAdapterSubItemsChanged function and see that it just removes all sub items from the adapter and readds them afterwards.
Is there any reason that you did not implement add/remove functions for sub items yet? Other than that you did not need them yet?
I want to add add/remove functionality for sub items and wanted to know if following (based on an add method) would work or if I would need to think about other things as well:
Adding

if the header is collapsed, I just add the new sub item to the header (maybe notify the header, the user should deside this, depending on if the header displays it's sub item counts for example), that's all
if the header is expanaded, I just add the new sub item to the headers sub items, then I call FastItemAdapter.add(int position, Item... items)  with the current global position of the new sub item and call notifyAdapterItemInserted with the new sub items global index

Is that really all?

@MFlisar it was never added because I saw a bit too much special handling in this functionality. And I didn't expect this to be such a core functionality in some cases.
In addition I saw no real usecase of having the same methods of adding, ... as for normal items.
But that does not mean other people don't need it too.
As of your initial idea of implementing this.

For the first point it's true
For the second, you will also have to update the subitems count in the map where we remember how many subitems are shown for a specific parent. and you have to check if a specific global position is within a subitem list. I would recommend an additional method of doing this. so not with the normal add method. as it may break things or cause confusion

authors: MFlisar mikepenz

repo: mikepenz/FastAdapter

license_source: bigquery


text:
Can't run in tetris android.

I use your pre-version can work perfect. But this version can't.
May i ask the next piece position define like your pre-version?
My config below: , Thanks,
CONFIG = {
# ---------- per run ----------
'debug status': 1,  # greater is more information, 0 is none
'key press delay': 0.02,  # increase if facing misclicks, decrease to go faster
'tetrio garbage': True,
'starting choices for 2nd': 8,
# if true, looks at another frame to check for correct piece placement
# reduces speed, increases robustness
'confirm placement': True,
'play safe': False,  # ai is even more robust
'play for survival': False,  # if true, starts in 'cleaning' mode
'override delay': False,  # if true, hard places all pieces even when scared
# ---------- per user ----------
'display consts': alex,
'screen width': 1920,
'screen height': 1080,

# ---------- per game ----------
'game': 'original',
'playing field size': [20, 10],
'piece colors': original_colors,
'extra rows': 0,  # in some Tetrises (tetr.io) pieces spawn above the main field

# ---------- other ----------
'gave warning': True,

}

I am not sure I understand your question completely, but you have a problem with the next piece, right? I see you've changed the piece colors to original_colors, however, the problem might have been that they were in BGR, while the code was set to work with RGB (like the tetrio_colors).
I have pushed a fix now, hopefully, it solves your problem

If the problem was with the position of the next piece, you will have to change the DisplayConsts instance you are using.
It used to cover the whole 3 next pieces, but since we only use 1 of them, now it should only include the single next piece. See example for reference

Hi , I change the config, below:
in BGR
original_colors = np.zeros((7, 3), np.int)
original_colors[0] = (230, 228, 180)
original_colors[1] = (182, 228, 247)
original_colors[2] = (177, 99, 140)
original_colors[3] = (228, 177, 148)
original_colors[4] = (128, 180, 235)
original_colors[5] = (180, 161, 235)
original_colors[6] = (171, 240, 177)
tetr.io colors in RGB
tetrio_colors = np.zeros((7, 3), np.int)
tetrio_colors[0] = (36, 214, 150)
tetrio_colors[1] = (210, 171, 42)
tetrio_colors[2] = (212, 67, 195)
tetrio_colors[3] = (70, 56, 200)
tetrio_colors[4] = (217, 96, 48)
tetrio_colors[5] = (222, 44, 63)
tetrio_colors[6] = (131, 210, 42)
set important pixels for screen recognition
abc = DisplayConsts(128, 484, 62, 239, 158, 163, 266, 277)
tetrio_default = DisplayConsts(128, 484, 62, 239, 158, 163, 266, 277)
CONFIG = {
# ---------- per run ----------
'debug status': 1,  # greater is more information, 0 is none
'key press delay': 0.02,  # increase if facing misclicks, decrease to go faster
'tetrio garbage': False,
'starting choices for 2nd': 8,
# if true, looks at another frame to check for correct piece placement
# reduces speed, increases robustness
'confirm placement': True,
'play safe': False,  # ai is even more robust
'play for survival': False,  # if true, starts in 'cleaning' mode
'override delay': False,  # if true, hard places all pieces even when scared
# ---------- per user ----------
'display consts': abc,
'screen width': 1440,
'screen height': 900,

# ---------- per game ----------
'game': 'original',
'playing field size': [20, 10],
'piece colors': original_colors,
'extra rows': 0,  # in some Tetrises (tetr.io) pieces spawn above the main field

# ---------- other ----------
'gave warning': False,

}
And change the scan_field.py below:
dark_boundary = [73, 26, 12]
but shown tetris pieces is not found.
screen capture:
https://ibb.co/821Fwf4
Thanks

Thanks for providing a screenshot. I think your DisplayConsts should be fine, but the problem might be with the dark boundary. With the values you set, i expect nothing to be considered too dark, thus the whole field will be considered a piece. Notice that the code has pixels[:, :, 0] < dark_boundary[0] and 73 is not less than 73, so background is not 'dark'.
Consider changing dark boundary back to [130, 100, 90] and trying again.
To see what the code sees, you can plug print(field) on line 25 of main.py
Also, i recommend you to pull the new changes as they change original_colors from BGR to RGB and should resolve potential future problems. And see if you can move controls away from playing field, it might confuse the recognition.

What to must change for this tetris?:
https://gyazo.com/b07aa2ed60da1b743bbcbdb64d727b4a
can you help me?

@daniel2644 You need to go through the setup described in readme under How to run.
Also, if WASD controls don't work for this game, you need to change the key bindings. This can be done in direct_keys.py, lines 8 - 14. For hex code reference, use table 90 (first page) here, or, what seems to be a more common way, but which didn't work for us, key codes from here.

already edited the colors:
in RGB
original_colors = np.zeros((7, 3), np.int)
original_colors[0] = (1, 212, 251)
original_colors[1] = (184, 111, 253)
original_colors[2] = (255, 177, 9)
original_colors[3] = (25, 249, 174)
original_colors[4] = (253, 242, 35)
original_colors[5] = (186, 247, 4)
original_colors[6] = (253, 98, 218)
tetr.io colors in RGB
tetrio_colors = np.zeros((7, 3), np.int)
tetrio_colors[0] = (1, 212, 251)
tetrio_colors[1] = (184, 111, 253)
tetrio_colors[2] = (255, 177, 9)
tetrio_colors[3] = (25, 249, 174)
tetrio_colors[4] = (253, 242, 35)
tetrio_colors[5] = (186, 247, 4)
tetrio_colors[6] = (253, 98, 218)
the keys w, a, d work but on my version not have hard drop but only s moves one field
others cfg:
CONFIG = {
# ---------- per run ----------
'debug status': 2,  # greater is more information, 0 is none
'key press delay': 0.02,  # increase if facing misclicks, decrease to go faster
'tetrio garbage': True,
'starting choices for 2nd': 8,
# if true, looks at another frame to check for correct piece placement
# reduces speed, increases robustness
'confirm placement': True,
'play safe': False,  # ai is even more robust
'play for survival': False,  # if true, starts in 'cleaning' mode
'override delay': False,  # if true, hard places all pieces even when scared
# ---------- per user ----------
'display consts': tetrio_default,
'screen width': 1440,
'screen height': 900,

# ---------- per game ----------
'game': 'tetr.io',
'playing field size': [20, 10],
'piece colors': tetrio_colors,
'extra rows': -4,  # in some Tetrises (tetr.io) pieces spawn above the main field

# ---------- other ----------
'gave warning': False,

}
and cannot detect the game board:
Compilation complete
Tetris piece is not found.
Are you sure you have set your DisplayConsts in config.py?

@daniel2644 have you edited this line in config?
tetrio_default = DisplayConsts(279, 1203, 1046, 1512, 370, 420, 1640, 1710, 180)?
you need to set it according to this example https://github.com/mikhail-vlasenko/Tetris-AI/blob/master/pixel_pos_example.png

also, you can add print(field) right after it is set in the while loop to see exactly what the agent sees

Could you send me a video on how to accurately set Display Costs?
I know that everything is written there but I am doing something wrong because it still does not detect the field if you don't have time
I will understand and try to look for something else

I don't think the video will add anything, I really think there should be enough information to set the display consts.
I recommend 2 things to you:

Try running the bot on the game it surely works for: https://tetr.io/ Having a working example will really help you out with understanding how things work. You will only have to set display consts, and import these settings to tetrio. at least from what I recall. (play solo mode to test the bot)
Take a look at the functions get_field and simplified in scan_field.py. Particularly,

img = np.array(screen_capture.grab(monitor))
pixels = simplified(CONFIG['display consts'].get_field_from_screen(img))

Look at the results of simplified and CONFIG['display consts'].get_field_from_screen(img) and compare it to what you expect to see.

I just have a problem with this setting Display Costs all the time and I do not know if I am doing it correctly because I have never dealt with it on my tetris version once the bot has detected all the figures but it has a problem with the board I will add you a screen showing what I was taking pixels X and Y is it good Display or maybe you have to type differently? https://gyazo.com/bbd5a261e8d3e3cb98792272ded5eb8c

@daniel2644 the arrows on the picture look correct, however, keep in mind that the problem may not be with the DisplayConsts.
Have you followed my advice in the previous message?
also, "a problem with the board" is not clear to me

you are right after checking what you gave me earlier, the display is okay, but there is a problem with the keys and bot does not see all places 0 https://gyazo.com/7b70102b337bfccc80bfce3f2d46835e
for my version of Tetris there is only one spin to the right and no hard drop my all key tetris have type w,a,d, ( s move down one)

the zeros problem is discussed in this issue, https://github.com/mikhail-vlasenko/Tetris-AI/issues/8#issuecomment-1014368951
you need to modify the dark boundary cause your background is bright.
The absence of the hard drop should not be a problem: just don't play at the fastest bot speed, then it doesn't use the hard drop.
To get the bot working without the left spin key, you have to modify the place_piece function in the AI class.

now a problem with spawn piece, bot does not detect it or sometimes does it what i must change now for fix this? https://gyazo.com/ce4725faa34958dc0dbbee58f845eb5a
is it a RGB problem or an delay problem?
I have already made dark boundary and it detects the entire board

@daniel2644 I'm sorry but neither of your questions is clear to me

Bot do not recognize the figures in the upper border of the grid, but see all of them in the next spawn https://gyazo.com/a7ae4a9ebc2935fff4247b38dd9d35e8
it only recognizes a square in this boundary

as you can see by the look of the field array, the cells of the playing grid are not recognized correctly.
You are correct, for the initial detection of the piece, only a small portion of the grid is analyzed.
Specifically, 4 middle columns (index 3 to 6), only in the top few rows.
type_of_figure() in figures.py
figure = [[arr[0][3], arr[0][4], arr[0][5], arr[0][6]],
          [arr[1][3], arr[1][4], arr[1][5], arr[1][6]]]

if it is possible, i highly recommend you to change the game background

has been no activity here for a while, so I assume the problem is solved now

repo: mikhail-vlasenko/Tetris-AI

license: MIT


text:
Added explicit transactions to all "save/delete" methods

Without this changes no data was sent to db.
Additionally I've made a fix in FindAsync method. On my website I use ApplicationUser class (which inherits from IdentityUser) and I have my own mapping for this class. But in FindAsync method we use IdentityUser class instead of generic type and this causes wrong results in this method.

A few concerns which make me think that this change is completely wrong

TransactonScope is kind of broken with NHibernate
EF provider does not do the same.

I think too that it's a mistake. In my fork I followed the same convention but I think now that we should not use transactions at all and let the people who use it manage it. And as you said, TransactionScope brings only pain.

source: gharchive/pull-request

authors: hazzik lnu robocik


text:
Some inconsistences between the paper and the code

Hello! I have carefully read your code and paper (FULL TRANSFORMER NETWORK FOR IMAGE CAPTIONING), and I have found some inconsistencies that confuse me. I would appreciate it if you could give me some ideas about them!

It seems that you obtain the visual features from a pre-trained CNN-based model (ResNet 152), so it is not entirely convolution-free, right? I am wondering if you could share your code on how to take the sequentialized raw images (patch, flatten, reshape, do the patch embedding， just as waht have mentioned in your paper ) into input for the Transformer.

Additionally, you mentioned that you initialized the encoder with a pre-trained ViT model, but I couldn't locate it in the code. Could you also share that with me?

Hello, I'm sorry for the delay in my response. I was a bit caught up with other projects. I will take my time to give you a clear answer. I think I will re-code this project in a cleaner way.

authors: Chenliu-svg milkymap

repo: milkymap/transformer-image-captioning


text:
Error retrieving devices states TypeError: Cannot read property 'brightness' of undefined  at LightAccessory.updateState

I'm using several LED strips in scenes. I get logs full of the below when the light is used in a scene, but NOT when used on its own.
[8/5/2020, 10:03:22] [TuyaWebPlatform] Error retrieving devices states TypeError: Cannot read property 'brightness' of undefined
at LightAccessory.updateState (C:\Users\marks\AppData\Roaming\npm\node_modules\homebridge-tuya-web\lib\light_accessory.js:227:39)
at LightAccessory.updateAccessory (C:\Users\marks\AppData\Roaming\npm\node_modules\homebridge-tuya-web\lib\base_accessory.js:103:14)
at C:\Users\marks\AppData\Roaming\npm\node_modules\homebridge-tuya-web\index.js:96:52
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:97:5)
The scene triggers correctly, the only issue seems to be this junk filling the logs.
Any ideas?

Timezone
GMT+0100

Microsoft Windows 10 Pro

Plex

192.168.86.63

fe80::cd70:ad18:b7bc:cc89

v12.18.0

SYSTEM

C:\Users\marks.homebridge

C:\Users\marks.homebridge\config.json

Yes

HB version 1.1.1

I have the exact same problem.

Hello, could the both of you please try installing the beta tag and see if that solves your issues?

Hello, could the both of you please try installing the beta tag and see if that solves your issues?

Sure, can you confirm the command line to use please?

npm i @milo526/homebridge-tuya-web@beta depending on your installation method you might have to add a -g flag there.
However you installed the @milo526/homebridge-tuya-web package originally, add @beta to the end of it.
This can't be done through the UI and has to be done via the/a command line.

It works now, but I still keep getting this message.
Requesting too quickly

As soon as I open Home or Home+ I get this:
RatelimitError: Requesting too quickly.     at TuyaWebApi.discoverDevices (/usr/local/lib/node_modules/@milo526/homebridge-tuya-web/src/TuyaWebApi.ts:159:32)     at processTicksAndRejections (internal/process/task_queues.js:97:5)

That is a known problem; Please try not opening your home apps for a hour or 2, after that, with normal usage, you should receive this error less often.
Working on a fix for this but since Tuya is giving very little information here it is hard.

Ik hoop het, dit is niet normaal.
Groetjes Serena

Op 6 aug. 2020 om 12:29 heeft Milo Cesar notifications@github.com het volgende geschreven:

That is a known problem; Please try not opening your home apps for a hour or 2, after that, with normal usage, you should receive this error less often.
Working on a fix for this but since Tuya is giving very little information here it is hard.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

authors: marksthomas milo526 serenacloos


text:
[bug]: Error typing whl package from source code

Environment
knowhere: 2.0
OS: Ubuntu 20.04.5
Others(PC or k8s pod or VM): k8s pod

Current Behavior
1. cmake .. -DCMAKE_BUILD_TYPE=Debug -DWITH_UT=ON -DWITH_CONSOLE_LOG=ON -G Ninja
2. ninja -v
3. cd python
python3 setup.py bdist_wheel

Expected Behavior
Build to get the whl package

Steps To Reproduce
1. Login to k8s pod
2. cd python
python3 setup.py bdist_wheel

/assign @Presburger

fixed.

authors: Presburger elstic

repo: milvus-io/knowhere


text:
Fix dataset memory leak when use python api

#344
Signed-off-by: Yusheng.Ma Yusheng.Ma@zilliz.com

/lgtm

/approve

authors: Presburger landyliu liliu-z


text:
Declare all interfaces except CalcDistance

Signed-off-by: yhmo yihua.mo@zilliz.com

That's one odd lint error. :)

/lgtm

authors: ArkaprabhaChakraborty yhmo

repo: milvus-io/milvus-sdk-cpp


text:
Start to track more closely CFPs

Let's track CFPs for conferences we really want to speak at & maybe create a CFPs channel to have a bot sharing the one from CFPs websites (using the RSS app)

duplicate #108

repo: mindee/devrel

license: Unlicense


text:
Fixes for allowing making a mixture of unmocked and mocked HTTPS requests using aiohttp

This PR attempts to fix a few issues:
In a project I'm working with, a mocketized test would fail if it ran after a test that makes a real HTTPS request. Both use aiohttp. Clearing aiohttp's internal cache that holds an SSLContext object fixed the issue.
I encountered more issues while trying to write a PR for the above:

Saw that I get a 'too many open files' error when I was experimenting with running the same test many times through parameterization.

Fixed by returning existing Mocket.r_fd from MocketSocket.fileno if it's already set and closing the pipe's file descriptors when resetting Mocket

Testing HTTPS test cases that use aiohttp with Python 3.11 just wouldn't pass - same error as  #209

I think this is because Python 3.11's asyncio module tries to receive bytes from the remote end right after completing SSL handshake. With a real HTTPS connection, SSLWantReadError gets raised and get retried later. With Mocket, it returns an empty string in that case, which causes the connection to get shut down. Tracing function calls using hunter was helpful in determining the cause here.
Fixed by keeping track of whether SSL handshake has occurred and whether Mocket has sent back non-empty bytes and raising SSLWantReadError when SSL handshake occurred and no bytes have been sent back yet. This works with my project's test suite, but admittedly I'm not sure if there's a case where this would cause an infinite loop waiting for a response or some other failure. But I guess that'd correspond to timeouts, which are something that can happen in real-life scenarios too.

Another change in Python 3.11's asyncio module: MocketSocket.recv_into may receive a memorybuffer object

Fixed by branching on whether the buffer object has a write attribute

Calling aiohttp's API with ssl=False failed because it calls a method on SSLContext object that wasn't mocked by Mocket

Added the method to FakeSSLContext.DUMMY_METHODS

Hi @ento,
I see the same pattern here, with the addition of wanting to solve many problems at the same time.
Could you please open an issue for each problem you are trying to solve, with a snippet of code that shows what is failing?
Many thanks!

Sure, opened a few issues:
#215: The primary issue I wanted to fix
#217: "Too many open files" error
#216: Can't use 'no verify' mode, which seemed to be needed to write a test for #215
#209 corresponds to the middle two bullet points (Can't make mocked HTTPS requests using aiohttp and Python 3.11)
If it's this repo's general process to require an issue when opening a PR, it'll be useful to have a 'CONTRIBUTING' file or a section in the README that instructs contributors about the process - will save one round of back-and-forth for new contributors and the maintainer alike :)

will save one round of back-and-forth for new contributors and the maintainer alike :)
Mocket is still, and probably it'll ever be, a very small project.
When people contribute, it's mostly for opening issues. I don't mind if people reach out to me directly with a PR, the problem here was the amount of issues in a single one. I want to keep track of what we are doing here.

Hi @ento, I merged all your commits, with small change to get rid of an unnecessary else.
The only piece of code I am not 100% sure about is the test using psutil. I've just seen it failing a couple times, still not sure why.

Re: issue vs PR - that's fair. Thanks for the new release!
Re: the psutil test - I wanted to test it in a single, short test case that checks something close to the root cause ("no dangling open file descriptor"), but switching it out for a test that checks the symptom ("no error raised after making many requests with a low ulimit value", e.g. the example in #217) might be better, although it'll take a little longer to run.

Hi @ento, I am sorry if I haven't worked at your feature proposal related to the strict mode.
I was counting on working on it as soon as I finished releasing the release with all the bugfixes, but it's being a nightmare at work.

@mindflayer No worries, I'm not exactly blocked by the feature proposal getting taken up (I can always use a temporary fork). Your well-being comes first!

authors: ento mindflayer

repo: mindflayer/python-mocket


text:
Refactoring project pull request#01

1.Self Encapsulate Field
2.Class Edge
3.Add get function to each private member to encapsulation.

Fifth pull request is modified syntax error only. (generic type syntax error).


text:
二维码无法显示

请按照一下格式提交issue，谢谢！

你当前使用的是哪个版本的 MinDoc(godoc_linux_amd64 version)?
V2.0

你当前使用的是什么操作系统?
centos 7

你是如何操作的？
分享项目

你期望得到什么结果?
出现二维码可以用手机扫描

当前遇到的是什么结果?
二维码图片不显示
F12报错404

需要配合Nginx规则，你可以去看看手册。

可以提示一下是哪块吗，非技术，谢谢！

将所有流量都传给mindoc处理就行，https://www.iminho.me/wiki/docs/mindoc/mindoc-nginx.md 。不是技术就不要折腾了。

将所有流量都传给mindoc处理就行，https://www.iminho.me/wiki/docs/mindoc/mindoc-nginx.md 。不是技术就不要折腾了。

谢谢，我是在子目录里，Nginx配置了主域名和ssl。有点乱，不知道如何处理，麻烦有时间的时候帮看看。目前配置如下：
server
{
    listen 80;
	listen 443 ssl http2;
    server_name abc.com;
	index index.php index.html index.htm default.php default.htm default.html;
    root /www/wwwroot/abc.com/;

    location /wiki/ {
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header Host            $http_host;
        proxy_set_header   X-Forwarded-Proto $scheme;
        #此处配置 MinDoc 程序的地址和端口号
        proxy_pass http://127.0.0.1:8181/;
    }
    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }
    location ~* ^/(css|img|js|flv|swf|download)/(.+)$ {
    	root "/www/wwwroot/abc.com/wiki";
        expires 30m;
    }

    #SSL-START SSL相关配置，请勿删除或修改下一行带注释的404规则
    #error_page 404/404.html;
    #HTTP_TO_HTTPS_START
    if ($server_port !~ 443){
        rewrite ^(/.*)$ https://$host$1 permanent;
    }
    #HTTP_TO_HTTPS_END
    ssl_certificate    /www/server/panel/vhost/cert/abc.com/fullchain.pem;
    ssl_certificate_key    /www/server/panel/vhost/cert/abc.com/privkey.pem;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
    ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
    ssl_prefer_server_ciphers on;
    ssl_session_cache shared:SSL:10m;
    ssl_session_timeout 10m;
    error_page 497  https://$host$request_uri;

    #SSL-END

    #ERROR-PAGE-START  错误页配置，可以注释、删除或修改
    #error_page 404 /404.html;
    #error_page 502 /502.html;
    #ERROR-PAGE-END

    #PHP-INFO-START  PHP引用配置，可以注释或修改
    include enable-php-56.conf;
    #PHP-INFO-END

    #REWRITE-START URL重写规则引用,修改后将导致面板设置的伪静态规则失效
    include /www/server/panel/vhost/rewrite/abc.com.conf;
    #REWRITE-END

    #禁止访问的文件或目录
    location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)
    {
        return 404;
    }

    #一键申请SSL证书验证目录相关设置
    location ~ \.well-known{
        allow all;
    }

    location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
    {
        expires      30d;
        error_log off;
        access_log /dev/null;
    }
    location ~ .*\.(js|css)?$
    {
        expires      12h;
        error_log off;
        access_log /dev/null;
    }
	access_log  /www/wwwlogs/abc.com.log;
    error_log  /www/wwwlogs/abc.com.error.log;
}

你这个配置应该是可以的，你看看二维码不显示返回的HTTP状态码是多少？

你这个配置应该是可以的，你看看二维码不显示返回的HTTP状态码是多少？

Failed to load resource: the server responded with a status of 404 ()

你这个配置应该是可以的，你看看二维码不显示返回的HTTP状态码是多少？

Failed to load resource: the server responded with a status of 404 ()

还有，发现在配置文件中添加了baseurl为域名后就出现这个问题了，域名是https://abc.com/wiki这样的

弄来弄去看来看去，还是弄不懂，依旧404，我是用宝塔面板装的

 location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$     {         expires      30d;         error_log /dev/null;         access_log /dev/null;     }
关于图片资源相关的nginx 设置注销

authors: NoEggEgg kevin-lau lifei6671 wulintang

repo: mindoc-org/mindoc


text:
Miss package libnuma-dev in devel container

Environment
Hardware Environment(Ascend/GPU/CPU):
/device gpu
Software Environment:

MindSpore version (source or binary): 1.0.1(source)
Python version (e.g., Python 3.7.5): Python 3.7.5
OS platform and distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04
GCC/Compiler version (if compiled from source): GCC 7.5.0

Describe the current behavior
Use devel container (Dockerfile) to build mindpore from source.
bash ./build.sh -e gpu
and get error from:
mindspore/ccsrc/minddata/dataset/engine/cache/CMakeLists.txt#L27
Describe the expected behavior
I think the package libnuma-dev should be installed in devel environment not only GPU.

Thank you very much for your advice.
Next, we will install libnuma-dev in our docker with different env(GPU/Ascend/CPU) in advance. Do you think this is correct?

That great, I think it is correct. And I would like to help if you need.

@Shenggan Thanks for reporting the issue, and it has been addressed by https://gitee.com/mindspore/mindspore/pulls/9818.

Thanks for such a quick reply! Issue close.

authors: Shenggan jonyguo leonwanghui

repo: mindspore-ai/mindspore


text:
add optimization about dropout, including IR fusion of Softmax&Dropou…

add optimization about dropout, including IR fusion of Softmax&DropoutDoMask and UB fusion of Matmul&DropoutDoMask and BatchMatmul&DropoutDoMask

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

authors: CLAassistant cocteautwins


text:
[Model] CAN Model Support

Background
MindOCR does not currently support handwritten mathematical formula recognition. I hope to solve this problem by contributing a CAN model.

Model Introduction
HMER(Handwritten Mathematical Expression Recognition) mostly uses the encoder-decoder mechanism. However, when identifying long or complex formulas, it cannot guarantee the accuracy of the region of interest of the Attention module. CAN(Counting-Aware Network) utilizes Multi-Scale Counting Module to improve the accuracy of formula recognition, by introducing counting vectors that can provide global information and spatial position codes that can provide position information.

Reference Papers
When Counting Meets HMER: Counting-Aware Network for Handwritten Mathematical Expression Recognition Bohan Li, Ye Yuan, Dingkang Liang, Xiao Liu, Zhilong Ji, Jinfeng Bai, Wenyu Liu, Xiang Bai ECCV, 2022

Expectations
I'd like to get the community's comments, suggestions, and related reference documents or PRs.

Contributions are welcome, and they are greatly appreciated! You can refer to the CONTRIBUTING documentation, and please provide the test report and README when submitting the PR.

repo: mindspore-lab/mindocr


text:
Cut items do not take on the color of the source block

Which is to say, if for example I put a node that's been colored red via the engine's "colored itemstacks" feature, assuming of course I've registered that node with the table saw, the cut objects produced by the saw all come out white.
If I had to guess, I'd say the saw is discarding the block's itemstack metadata when creating the cut items in the formspec.  If I understand the feature correctly, you just need to copy the "palette_index" key from the source itemstack to the inventory items.

cut nodes cannot reflect the original node's color value when using paramtype2 = "color", because they must be rotatable/orient-able (paramtype2 = "facedir").  there is a paramtype2 = "colorfacedir", but this only supports 8 colors.
there's a number of ways to resolve this:

register 32 variants of every shape so as to support cutting all possible colored nodes. i'm not certain how one could break up the palate to make this work right, but so far as i know, it's theoretically possible
register separate nodes for every possible facedir, and allow them to be colored
explicitly throw an error when someone tries to register a node with stairsplus which has paramtype2 = "colorfacedir" (my preferred solution, and what i'm going with in https://github.com/minetest-mods/moreblocks/pull/191)

authors: VanessaE fluxionary

repo: minetest-mods/moreblocks

license: Zlib


text:
🛑 MineVN Maven & Resource Pack is down

In 4234813, MineVN Maven & Resource Pack (http://app.minevn.net/pack) was down:

HTTP code: 0
Response time: 0 ms

Resolved: MineVN Maven & Resource Pack is back up in 3c6398a.


text:
Issue on win 11

Hi, getting the following issue on Windows 11, using on electron-vite-react template
`X [ERROR] No loader is configured for ".node" files: node_modules/.pnpm/@paymoapp+real-idle@1.0.5/node_modules/@paymoapp/real-idle/build/Release/PaymoRealIdle.node
node_modules/.pnpm/@paymoapp+real-idle@1.0.5/node_modules/@paymoapp/real-idle/dist/index.js:9:20:
9 │     addon = require('../build/Release/PaymoRealIdle.node'); // eslint-disable-line import/no-dynamic-require
╵                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
X [ERROR] Could not resolve "mock-aws-s3"
node_modules/.pnpm/@mapbox+node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js:43:28:
43 │     const AWSMock = require('mock-aws-s3');
╵                             ~~~~~~~~~~~~~
You can mark the path "mock-aws-s3" as external to exclude it from the bundle, which will remove
this error. You can also surround this "require" call with a try/catch block to handle this
failure at run-time instead of bundle-time.
X [ERROR] Could not resolve "aws-sdk"
node_modules/.pnpm/@mapbox+node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js:76:22:
76 │   const AWS = require('aws-sdk');
╵                       ~~~~~~~~~
You can mark the path "aws-sdk" as external to exclude it from the bundle, which will remove this
error. You can also surround this "require" call with a try/catch block to handle this failure at
run-time instead of bundle-time.
X [ERROR] Could not resolve "nock"
node_modules/.pnpm/@mapbox+node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js:112:23:
112 │   const nock = require('nock');
╵                        ~~~~~~
You can mark the path "nock" as external to exclude it from the bundle, which will remove this
error. You can also surround this "require" call with a try/catch block to handle this failure at
run-time instead of bundle-time.
X [ERROR] No loader is configured for ".node" files: node_modules/.pnpm/@miniben90+x-win-win32-x64-msvc@1.3.1/node_modules/@miniben90/x-win-win32-x64-msvc/x-win.win32-x64-msvc.node
node_modules/.pnpm/@miniben90+x-win@1.3.1/node_modules/@miniben90/x-win/index.js:72:36:
72 │             nativeBinding = require('@miniben90/x-win-win32-x64-msvc')
╵                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10:44:20 am [vite] error while updating dependencies:
Error: Build failed with 5 errors:
node_modules/.pnpm/@mapbox+node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js:43:28: ERROR: Could not resolve "mock-aws-s3"
node_modules/.pnpm/@mapbox+node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js:76:22: ERROR: Could not resolve "aws-sdk"
node_modules/.pnpm/@mapbox+node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js:112:23: ERROR: Could not resolve "nock"
node_modules/.pnpm/@miniben90+x-win@1.3.1/node_modules/@miniben90/x-win/index.js:72:36: ERROR: No loader is configured for ".node" files: node_modules/.pnpm/@miniben90+x-win-win32-x64-msvc@1.3.1/node_modules/@miniben90/x-win-win32-x64-msvc/x-win.win32-x64-msvc.node
node_modules/.pnpm/@paymoapp+real-idle@1.0.5/node_modules/@paymoapp/real-idle/dist/index.js:9:20: ERROR: No loader is configured for ".node" files: node_modules/.pnpm/@paymoapp+real-idle@1.0.5/node_modules/@paymoapp/real-idle/build/Release/PaymoRealIdle.node
at failureErrorWithLog (D:\BeeBox\sandclock\sand\node_modules.pnpm\esbuild@0.18.20\node_modules\esbuild\lib\main.js:1649:15)
at D:\BeeBox\sandclock\sand\node_modules.pnpm\esbuild@0.18.20\node_modules\esbuild\lib\main.js:1058:25
at D:\BeeBox\sandclock\sand\node_modules.pnpm\esbuild@0.18.20\node_modules\esbuild\lib\main.js:1525:9
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
main window closed
 ELIFECYCLE  Command failed with exit code 1.`

I think part of it is caused by sqlite3

This is all due to direct invoke from React side without IPC call to SQLite, fixing that stopped the issue.
I found I'm not getting URL on chrome, do I need to anything.
currentWindow:  {   id: 14976,   os: 'win32',   title: 'Issue on win 11 ┬╖ Issue #9 ┬╖ miniben-90/x-win - Google Chrome',   position: { x: -8, y: -8, width: 1936, height: 1048 },   info: {     processId: 14976,     path: 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe',     name: 'Google Chrome',     execName: 'chrome'   },   usage: { memory: 343064576 },   url: '' }

Did you call activeWindow in a worker instated a direct call in your electron project?
What version of Chrome are you using?

chrome version - Version 120.0.6099.111 (Official Build) (64-bit)
windows - 23H2

Try to call it in a worker

Thanks, It works now


text:
support for Content-Language

Amazon supports a Content-Language field in metadata, but minio does not have an entry in its PutObjectOptions struct for it. Trying to put it in the UserMetadata map will prepend X-Amz-Meta-, so that doesn't work.

@thurstonsand  Thanks for filing the issue. Will add this field as part of PutObjectOptions

authors: kannappanr thurstonsand

repo: minio/minio-go


text:
WIP awesomeplete_collection_select method for AdpFormBuilder

To test, comment out:
app/views/external_users/claims/case_details/_fields.html.haml:27
and uncomment:
app/views/external_users/claims/case_details/_fields.html.haml:28

We are parking this for now\

license: mit


text:
Update statefulsets.html.md.erb

review-documentation-HODAW

Silly mistake - the year


text:
Seed CAS3 bookings into the test environment for 2 regions

Since turning off wiremock[1] we have to make sure we have seeded information. The previous seeding[2] contained a useful set of bookings in differing states. We reduce the amount of bookings in the same state to 1 and then tailor them further to relate them to our CAS3 premises in KSS and EofE[3].
We replace the CRN that would have been seeded by Wiremock and instead use the newly provisioned CRNs[4] to give us further variety. We have bookings for people with a single offence, multiple offence, missing oasys data, limited access offenders.
I've copied these migrations into my local seed directory and given it a run and it succeeds but because only JimSnow is available locally (and they don't belong to EofE or KSS) I can't eyeball the records within the service.
[1] https://github.com/ministryofjustice/hmpps-approved-premises-api/pull/854
[2] https://github.com/ministryofjustice/hmpps-approved-premises-api/pull/854/commits/234f235c8ca8cf60c711802e30a859b39e3d49a1#diff-9f4b088410aaca34010d146e0d1aee07bbc8ca7b69306600fe7ed82d8ad09095
[3] https://github.com/ministryofjustice/hmpps-approved-premises-api/blob/b03b809d93d17cdbb872854ed21c6a947eff48f4/src/main/resources/db/migration/dev%2Btest/R__1_create_premises.sql#L10
[4] https://dsdmoj.atlassian.net/wiki/spaces/AP/pages/4467949648/CRNs+for+Testing+in+Development+Environment

I'm not sure whether the ordering is stable with two R__5 migrations but in this case I don't think it really matters.

authors: danlivings-dxw tahb


text:
Updated applicant-address

added error handling
moved text to yml
added feature tests for question

Looks fine

authors: colinbruce dotemacs

repo: ministryofjustice/hwf-publicapp


text:
[CRIMAP-408] Change wording for passporting

Description of change
Changes the output for "Justification for legal aid" section from Passported to Not needed - but only for standard applications. Still says 'Passported' for split case.
Link to relevant ticket
https://dsdmoj.atlassian.net/browse/CRIMAP-408
Notes for reviewer
Screenshots of changes (if applicable)
Before changes:
After changes:
How to manually test the feature

We need to confirm if this same wording applies to a returned split application. My feeling is, it should, as in also to be changed from Passported to Not needed.

authors: mseedat-moj zheileman


text:
Create ADR

We want to record our architecture decisions during the design and build of the Modernisation Platform.

As part of wider discussions we've created the Modernisation Platform: Architecture Decision Record which goes into more detail.


text:
Pre-fill detainee details in new detainee form if available

Implements Trello ticket

Integrates MPS with the Offenders API so that in the new
detainees form the information is pre-filled if available in the
Offenders API (its using the NOMS ID)
Adds a new service to retrieve data for a detainee from the Offenders
API given a NOMS id
Sets up a configuration for Offenders API client based on the
applications environment
Adds Index to noms_id in the detainees table to optimize searches
performed by this attribute
Adds a safe guard to the detainee details controller to prevent multiple
detainees with the same NOMS id to be created
Uses the existent redirect strategy when the detainee with the
provided NOMS id already exists
Removes some of the unncessary complexity added by the misuse of Rails
flash

@dan-palmer ♻ (ed)

repo: ministryofjustice/moving-people-safely


text:
Removed dependabot.yml 👋

👀 Purpose
As part of our ways of engineering, we are now experimenting with Trivy for vulnerability scanning along with the removal of Dependabot as a dependency management tool.
♻ What's Changed

Dependabot configuration has been removed.

📝 Notes
No notes to speak of.

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

Project coverage is 98.42%. Comparing base (18bb92f) to head (7a7782e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4293   +/-   ##
=======================================
  Coverage   98.42%   98.42%
=======================================
  Files          45       45
  Lines        4056     4056
=======================================
  Hits         3992     3992
  Misses         64       64

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

authors: PepperMoJ codecov-commenter


text:
Handle unknown formats in request a booking

Requesting a random format will cause Rails to try to search for a template with
a matching file extension. Since the file does not exist it raises a 500.
Adding respond_to in an action will only match on the formats specified by the
block. If a request is of an unknown format it raises an
ActionController::UnknownFormat which gets translated with a request with an
error code 406.
While this works for these endpoints it doesn't catch all endpoints, for that
there are 2 possible approaches:

one is to use the responders gem that was extracted from Rails 3 and use
it on on the ApplicationController
change the routes so that they match on the format

I'd leave investigating this solutions until we deploy the public app and cleanup
pvb2.

Rather than putting respond_to inside in the action, would this not work?
class BookingRequestsController < ApplicationController
  respond_to :html

Definitely agree r.e. fixing this globally after deploying public.

Nope, tried that. It has been extracted into the responders gem so is not part of Rails 4.
I've tested this with prod like configuration (consider_all_requests_local to false) and not totally happy with the outcome. When requesting an unknown format it just renders a blank page. Working on a solution for this now.

Hmm... strange – I wonder why it was removed. The other option as you suggest is just to restrict the format in the routes – I wonder if that's a simpler solution?

Is a more generic solution, although less correct as it will respond with a 404 instead of a 406.
There is another solution, which is to override the format to be always html, I feel the same way as the routes option, simple but less correct.
None of the options are ideal. I like the idea of using respond_to in the application controller best, but would like to avoid having to add the gem as a dependency. Might be worth investigating the reasons why it was pulled into a gem as we might find other alternatives to achieve the same behaviour without using the gem.

I'm not particularly worried r.e. returning 404, although I take your point. Overriding the format would by my least favourite option.

authors: alan mloughran


text:
🛑 Matrix is down

In 65dd388, Matrix (https://matrix.mint.lgbt:8448/_matrix/federation/v1/version) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Matrix is back up in c69c6dd after 6 minutes.

repo: mint-lgbt/status


text:
Few questions

O have a few questions about the project, some of them could even go on the readme to clarify things for others as well.
1 - How much of the code is sent to the server when genereating a doc? (Only the selected code, the entire file/class, the entire project, the chain of methods called ?)
2 - Are these information sen't to sever ONLY when the function "Write Docs" is called or there is some data being sent periodically?
3 - What is the API called to generate these docs, a open source one? A private one?

Hi @EverNife happy to answer these questions!

1 - How much of the code is sent to the server when genereating a doc? (Only the selected code, the entire file/class, the entire project, the chain of methods called ?)
The entire file
2 - Are these information sen't to sever ONLY when the function "Write Docs" is called or there is some data being sent periodically?
Only when "Write Docs" is called
3 - What is the API called to generate these docs, a open source one? A private one?
All of the functions that powers the servers you can find in the server/ folder or this repo

Thank You Very much for the clarification :D

repo: mintlify/writer


text:
Test memory

see dscussion in #143 /cc @palainp

Thanks @hannesm for this PR.
With the change to Xen_os.quick_stat(), I expected to have some adjustments to make here. Do you think it might be useful to try GC.compact() instead of just GC.full_major() when the memory pressure test is triggered?

Hmm, do you mean Gc.compact is faster? It may be sufficient -- the main thing is that the major cycle finishes and finalizers are executed (to free up bigarray data) -- as far as I know.
At the same time, unless I'm wrong we're using the (default since 4.13) best-fit GC strategy, where compactions are not needed (but in any way, both Gc.compact and Gc.full_major do the major collection -- I'm not entirely sure what the difference is) -- do you observe speed-wise a huge difference?

I haven't noticed any speed difference and the documentation warns that Gc.compact is slower (https://v2.ocaml.org/api/Gc.html#VALcompact). Thanks for reminding me that best-fit is now the default and that there is no need to compact, it's probably not worth investigating so much that idea.

merged as part of #149

authors: hannesm palainp

repo: mirage/qubes-mirage-firewall


text:
Make server.loadFixtures() throw on missing fixture file, fixes #31

Issue: #31
Related: https://github.com/samselikoff/ember-cli-mirage/pull/1698
I also ported the load-fixtures-test.js. 😎
Added a new test, made sure it fails, then implemented a fix.
PS Took me a while to figure out the whereabouts. You need the readme filled out!

Thank you!

authors: lolmaus samselikoff

repo: miragejs/server


text:
ImageVisual rotate on center

Hi,
I need to rotate imageVisual based on the center, i use the following code

and rotate using TopLeft pivot, now I added the RenderTransformOrigin="0.5, 0.5" like this

but it doesn't work.
Can you check it, please?

Hi,
Didn't really have time to set up an example and try this out. But, what you can try is to set the RenderTransformOrigin property on the RichItemContainer itself. I will probably expose a way to set this through an Attached Property same as ApplyTransform.
Try this out and see if it works! Thanks!


text:
Balancing with unequal bins

Hi, I am curious - what will happen if I have a cooler with unequal bins after IC? Will the balancing make row/column sums equal, or proportional to the bin length? Or is there a way to specify this?
I'm just thinking of making a cooler file with TAD coordinates as bins, and wondering how to deal with balancing it.
Thanks!

Balancing will always balance to equalize coverage of the bins, whatever those bins represent. I think this is actually the desired behavior depending on the research question: e.g. if you bin at the fragment level, you can balance the matrix to determine the relative frequency of contacts captured between those things.
Balancing in a way that remains proportional to genomic length could be interesting. That amounts to specifying a set of fixed bin-specific weights in addition to the balancing weights being computed and solving:
B_ij = a_i*b_i * a_j *b_j * A_ij

where 1/a_i is proportional to the genomic bin lengths. Then one solves for the b_i, and the final weights stored will the w_i = a_i * b_i.
P.S. As an aside, are you sure you want to bin by TAD? And if so, which representation makes more sense for the questions you are trying to answer?

Well, if bins are "equal", by length or by number of fragments, then balancing to obtain equal visibility is the only logical way I see. But if the bins are not equal, like in my case, this approach doesn't make sense, since one wouldn't expect equal visibility from them... My other question is actually related to this one, since an easy way to simulate the desired behaviour would be to create a regular equal-bin-size cooler, balance it and then coarsegrain with desired bins.
So... A thought - could I just multiply the weights stored in the cooler in the end by the bin length?
PS
No, I am not sure :) But I thought it could be an easy and fast way to calculate statistics about interactions between different TADs, and wanted to give it a try. I am not sure what you mean in your second question...

So... A thought - could I just multiply the weights stored in the cooler in the end by the bin length?

Yes, I think you're right. (See edited equation in the first post). If the matrix you actually want is S_ij * n_i * n_j and you compute balancing weights x_i, according to A_ij * x_i * x_j = S_ij, then the true weights you want would be w_i = x_i * n_i .

an easy way to simulate the desired behaviour would be to create a regular equal-bin-size cooler, balance it and then coarsegrain with desired bins.

Agreed. If you coarsegrain the balanced values. Though, I think small discrepancies between this and the previous approach can arise due to ignoring of filtered bins.

the bins are not equal, like in my case, this approach doesn't make sense, since one wouldn't expect equal visibility from them

I disagree only at a very technical level. Since we're deriving relative contact frequencies between objects, we can in principle choose to make any objects we want to be "equal" and balance accordingly and it wouldn't be "technically wrong" to do so, but the interpretation will change. Maybe it makes sense if you want some kind of length-independent measure of mutual "affinity" between a set of regions, rather than the contact frequencies between them. Though, I can't immediately think of how such a thing could be useful.

Cool, thanks! I guess I'll give it a go and see what happens. This should really simplify and speed up the analysis.
This could also be useful for compartments, I think, by the way.
I agree that technically doing regular balancing with unequal bins is OK, what I mean it doesn't make much sense biologically... At least I also don't see how it can be useful.

OK, so, balancing with unequal bins seems to be broken completely, actually... I created the cooler using cooler cload hiclib --assembly mm9 $1 $2 $3 (where arguments are the bins file, fragments file and output file). I use cli to balance too - cooler balance $file, this is what I get:
INFO:cooler:Balancing "serum_tads.cool"
multiprocess.pool.RemoteTraceback:
"""
Traceback (most recent call last):
  File "/exports/igmm/eddie/wendy-lab/ilia/Hi-C/lib/python3.5/site-packages/multiprocess/pool.py", line 119, in worker
    result = (True, func(*args, **kwds))
  File "/exports/igmm/eddie/wendy-lab/ilia/Hi-C/lib/python3.5/site-packages/cooler/tools.py", line 51, in apply_pipeline
    data = func(chunk, data)
  File "/exports/igmm/eddie/wendy-lab/ilia/Hi-C/lib/python3.5/site-packages/cooler/ice.py", line 58, in _marginalize
    np.bincount(pixels['bin1_id'], weights=data, minlength=n)
ValueError: The first argument of bincount must be non-negative
"""

The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/exports/igmm/eddie/wendy-lab/ilia/Hi-C/bin/cooler", line 11, in <module>
    load_entry_point('cooler==0.7.5.dev0', 'console_scripts', 'cooler')()
  File "/exports/igmm/eddie/wendy-lab/ilia/Hi-C/lib/python3.5/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/exports/igmm/eddie/wendy-lab/ilia/Hi-C/lib/python3.5/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/exports/igmm/eddie/wendy-lab/ilia/Hi-C/lib/python3.5/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/exports/igmm/eddie/wendy-lab/ilia/Hi-C/lib/python3.5/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/exports/igmm/eddie/wendy-lab/ilia/Hi-C/lib/python3.5/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/exports/igmm/eddie/wendy-lab/ilia/Hi-C/lib/python3.5/site-packages/cooler/cli/balance.py", line 184, in balance
    map=pool.imap_unordered)
  File "/exports/igmm/eddie/wendy-lab/ilia/Hi-C/lib/python3.5/site-packages/cooler/ice.py", line 257, in iterative_correction
    .reduce(add, np.zeros(n_bins))
  File "/exports/igmm/eddie/wendy-lab/ilia/Hi-C/lib/python3.5/site-packages/cooler/tools.py", line 241, in reduce
    return reduce(binop, iter(self.run()), init)
  File "/exports/igmm/eddie/wendy-lab/ilia/Hi-C/lib/python3.5/site-packages/multiprocess/pool.py", line 695, in next
    raise value
ValueError: The first argument of bincount must be non-negative

This is the cooler that I got with unequal bins (zipped to allow attachment)
serum_tads.cool.zip
Fetching regions from it is also broken:
st.matrix(balance=False).fetch('chr1')
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-43-2e63c99e5e43> in <module>()
----> 1 st.matrix(balance=False).fetch('chr1')

/usr/local/lib/python3.5/dist-packages/cooler/core.py in fetch(self, *args, **kwargs)
    564         if self._fetch is not None:
    565             i0, i1, j0, j1 = self._fetch(*args, **kwargs)
--> 566             return self._slice(self.field, i0, i1, j0, j1)
    567         else:
    568             raise NotImplementedError

/usr/local/lib/python3.5/dist-packages/cooler/api.py in _slice(field, i0, i1, j0, j1)
    294                 grp = h5[self.root]
    295                 return matrix(grp, i0, i1, j0, j1, field, balance, sparse,
--> 296                     as_pixels, join, ignore_index, max_chunk)
    297
    298         def _fetch(region, region2=None):

/usr/local/lib/python3.5/dist-packages/cooler/api.py in matrix(h5, i0, i1, j0, j1, field, balance, sparse, as_pixels, join, ignore_index, max_chunk)
    597
    598     else:
--> 599         i, j, v = query_rect(triu_reader.query, i0, i1, j0, j1)
    600         arr = coo_matrix((v, (i-i0, j-j0)), (i1-i0, j1-j0)).toarray()
    601

/usr/local/lib/python3.5/dist-packages/cooler/core.py in query_rect(triu_reader, i0, i1, j0, j1)
    376     # symmetric query
    377     if (i0, i1) == (j0, j1):
--> 378         i, j, v = triu_reader(i0, i1, i0, i1)
    379         nodiag = i != j
    380         i, j, v = np.r_[i, j[nodiag]], np.r_[j, i[nodiag]], np.r_[v, v[nodiag]]

/usr/local/lib/python3.5/dist-packages/cooler/core.py in query(self, i0, i1, j0, j1)
    268         i, j, v = [], [], []
    269         if (i1 - i0 > 0) or (j1 - j0 > 0):
--> 270             edges = h5['indexes']['bin1_offset'][i0:i1 + 1]
    271             data = h5['pixels'][field]
    272             p0, p1 = edges[0], edges[-1]

h5py/_objects.pyx in h5py._objects.with_phil.wrapper (/tmp/pip-huypgcah-build/h5py/_objects.c:2840)()

h5py/_objects.pyx in h5py._objects.with_phil.wrapper (/tmp/pip-huypgcah-build/h5py/_objects.c:2798)()

/usr/local/lib/python3.5/dist-packages/h5py/_hl/dataset.py in __getitem__(self, args)
    472
    473         # Perform the dataspace selection.
--> 474         selection = sel.select(self.shape, args, dsid=self.id)
    475
    476         if selection.nselect == 0:

/usr/local/lib/python3.5/dist-packages/h5py/_hl/selections.py in select(shape, args, dsid)
     92
     93     sel = SimpleSelection(shape)
---> 94     sel[args]
     95     return sel
     96

/usr/local/lib/python3.5/dist-packages/h5py/_hl/selections.py in __getitem__(self, args)
    259             return self
    260
--> 261         start, count, step, scalar = _handle_simple(self.shape,args)
    262
    263         self._id.select_hyperslab(start, count, step)

/usr/local/lib/python3.5/dist-packages/h5py/_hl/selections.py in _handle_simple(shape, args)
    445     for arg, length in zip(args, shape):
    446         if isinstance(arg, slice):
--> 447             x,y,z = _translate_slice(arg, length)
    448             s = False
    449         else:

/usr/local/lib/python3.5/dist-packages/h5py/_hl/selections.py in _translate_slice(exp, length)
    486         raise ValueError("Step must be >= 1 (got %d)" % step)
    487     if stop < start:
--> 488         raise ValueError("Reverse-order selections are not allowed")
    489
    490     count = 1 + (stop - start - 1) // step

ValueError: Reverse-order selections are not allowed

(The bins I used are, of course, stored in the cooler)
Is it a bug?..

You somehow ended up with negative pixels. Could you send me the frag file you used?
cooler dump -t pixels serum_tads.cool | head
-1	-1	129160
-1	0	18147
-1	1	6913
-1	2	8114
-1	3	2216
-1	4	1674
-1	5	3177
-1	6	1010
-1	7	4076
-1	8	2020

It's huge, that won't be easy! But the exact same frag file works fine with with equal 1Mb bins, or any other resolution... I could try again tomorrow with some small frag file and send it if it also doesn't work?

alright, sounds good!

Hi, I shared a link to a file with you by email. I am thinking is it possible this is because the first bin doesn't start at 0, that's why there are negative coordinates? I'll check now.

Yes, this seems to be the problem - after I added another bin there between 0 and the start of the previously first bin balancing works fine. So, I guess, if there are reads that fall before the first bin, there is a problem?

Ah, yes, that is it! So far, the assumption has been that bins are a complete segmentation of each scaffold without gaps. It certainly doesn't have to be this way, but would require updating the aggregators. I can reopen as a new issue. For now, it should at least raise an error.

By they way, when I added a bin in the beginning I only did it for the first chromosome, all others were still not starting from zero (and they are all also not ending at the very last bin) - and it seemed to work!

Continue discussion in #104

authors: Phlya nvictus

repo: mirnylab/cooler


text:
Refactor product details view

Visual changes and code refactor.
Closes #2228

Can we make description field maintain a constant height?

authors: dominik-zeglen patrys

repo: mirumee/saleor


text:
Convert all materials in the demo game to .tres format

Currently "2 minute adventure" uses .material format for materials. However, it is difficult to track changes in this type of files. Converting all materials to a text format (.tres) would solve this issue.

This is a very low priority task. On the other hand, it shouldn't take long :)

This will take some time, and it's not relevant for now.

repo: miskatonicstudio/goat


text:
DL is deprecated, please use Fiddle

Got this when running git deploy setup -r "production"
looks like it fails
running on windows 8 in git bash shell mingw32
DL is deprecated, please use Fiddle
c:/Ruby200/lib/ruby/gems/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/packet_s
tream.rb:103:in `block in next_packet': connection closed by remote host (Net::S
SH::Disconnect)
        from c:/Ruby200/lib/ruby/gems/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/trans
port/packet_stream.rb:93:in `loop'
        from c:/Ruby200/lib/ruby/gems/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/trans
port/packet_stream.rb:93:in `next_packet'
        from c:/Ruby200/lib/ruby/gems/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/trans
port/session.rb:172:in `block in poll_message'
        from c:/Ruby200/lib/ruby/gems/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/trans
port/session.rb:167:in `loop'
        from c:/Ruby200/lib/ruby/gems/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/trans
port/session.rb:167:in `poll_message'
        from c:/Ruby200/lib/ruby/gems/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/trans
port/session.rb:152:in `next_message'
        from c:/Ruby200/lib/ruby/gems/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/authe
ntication/session.rb:94:in `block in next_message'
        from c:/Ruby200/lib/ruby/gems/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/authe
ntication/session.rb:93:in `loop'
        from c:/Ruby200/lib/ruby/gems/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/authe
ntication/session.rb:93:in `next_message'
        from c:/Ruby200/lib/ruby/gems/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/authe
ntication/methods/publickey.rb:53:in `authenticate_with'
        from c:/Ruby200/lib/ruby/gems/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/authe
ntication/methods/publickey.rb:20:in `block in authenticate'
        from c:/Ruby200/lib/ruby/gems/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/authe
ntication/key_manager.rb:111:in `block in each_identity'
        from c:/Ruby200/lib/ruby/gems/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/authe
ntication/key_manager.rb:103:in `each'
        from c:/Ruby200/lib/ruby/gems/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/authe
ntication/key_manager.rb:103:in `each_identity'
        from c:/Ruby200/lib/ruby/gems/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/authe
ntication/methods/publickey.rb:19:in `authenticate'
        from c:/Ruby200/lib/ruby/gems/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/authe
ntication/session.rb:78:in `block in authenticate'
        from c:/Ruby200/lib/ruby/gems/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/authe
ntication/session.rb:65:in `each'
        from c:/Ruby200/lib/ruby/gems/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/authe
ntication/session.rb:65:in `authenticate'
        from c:/Ruby200/lib/ruby/gems/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh.rb:19
6:in `start'
        from c:/Ruby200/lib/ruby/gems/2.0.0/gems/git-deploy-0.6.1/lib/git_deploy
/ssh_methods.rb:96:in `ssh_connection'
        from c:/Ruby200/lib/ruby/gems/2.0.0/gems/git-deploy-0.6.1/lib/git_deploy
/ssh_methods.rb:43:in `ssh_exec'
        from c:/Ruby200/lib/ruby/gems/2.0.0/gems/git-deploy-0.6.1/lib/git_deploy
/ssh_methods.rb:35:in `run_test'
        from c:/Ruby200/lib/ruby/gems/2.0.0/gems/git-deploy-0.6.1/lib/git_deploy
.rb:28:in `setup'
        from c:/Ruby200/lib/ruby/gems/2.0.0/gems/thor-0.14.6/lib/thor/task.rb:22
:in `run'
        from c:/Ruby200/lib/ruby/gems/2.0.0/gems/thor-0.14.6/lib/thor/invocation
.rb:118:in `invoke_task'
        from c:/Ruby200/lib/ruby/gems/2.0.0/gems/thor-0.14.6/lib/thor.rb:263:in
`dispatch'
        from c:/Ruby200/lib/ruby/gems/2.0.0/gems/thor-0.14.6/lib/thor/base.rb:38
9:in `start'
        from c:/Ruby200/lib/ruby/gems/2.0.0/gems/git-deploy-0.6.1/bin/git-deploy
:3:in `<top (required)>'
        from c:/Ruby200/bin/git-deploy:23:in `load'
        from c:/Ruby200/bin/git-deploy:23:in `<main>'

suggest close: Mostly answered already. Any more on this topic, please try a support forum. Maybe one linked here: https://stackexchange.com/sites

authors: pbearne sesam

repo: mislav/git-deploy


text:
chore(server): ajout de migration pour correction des effectifs

Ajout de 2 migrations pour correction du format des effectifs sur des cas que j'ai identifiés :

champ contrat null au lieu de []
annee de la formation en string

👍 Comment l'année de formation a pu passer la validation mongo ? C'était dû à un job de migration avec bypassDocumentValidation ?

Bonne question je pense effectivement que ca doit être ca ou alors d'anciennes données qui n'ont jamais passé la validation...
J'ai checké dans le code on a 4 fonctions hors migrations qui bypassent la validation :

updateEffectifsCount des organismes
updateEffectifRupturantToAbandon script de patch des effectifs rupturants de + de 180 jours
hydrateEffectifsComputed
script de fiab

J'ai créé un ticket pour les supprimer asap car je ne pense pas que ce soit utile dans ces 3 cas :

script de fiab
updateEffectifRupturantToAbandon script de patch des effectifs rupturants de + de 180 jours
updateEffectifsCount des organismes

repo: mission-apprentissage/flux-retour-cfas


text:
WorldWind needs to fully support editing

Transaction for edit

begin
cancel
end

are not currently handled in the WorldWind engine

Editing support to be handled in #110


text:
Log to syslog

Helpful for remote logging and on Linux in general

https://docs.python.org/3/library/logging.handlers.html#sysloghandler

repo: missionpinball/mpf


text:
Add json decode/encode blocks to dictionaries drawer

Describe the desired feature

Have blocks in the dictionaries drawer to encode/decode json.
Give an example of how this feature would be used

This would be used to store structured data in files without also needing to bring in a Web component for the serialization. The internal mechanism can still call the corresponding Web methods to prevent code reuse.
Why doesn't the current App Inventor system address this use case?

Currently, one can do this by including a Web component and using its JsonObjectEncode and JsonTextDecodeWithDictionaries blocks. However, this is not obvious if one is just working with JSON from assets/files. It doesn't make sense to ask users to add a whole unrelated component for the purposes of file I/O.
Why is this feature beneficial to App Inventor's educational mission?

This change would reduce the barrier to entry when working with dictionaries and JSON data. It also provides an analog to the list's to/from csv blocks.

You can also add a sort selection when converting.

I think it's a great idea to add json decode/encode  blocks in dictionaries drawer. And I think the blocks should also be added to list drawer. When we want to decode json data like [1,2,"H",{"name":"Sam","age":22}]，we must use json decode block in list drawer.
And when we want to decode json data like {"name":"Pater","age":23,"interests":["computer","math","football"]}, we must use json decode block in dictionaries drawer.
In other words, we should based on the top type of json data.
If user uses json decode/encode blocks by mistake, the system will prompt an error message.

When we want to decode json data like [1,2,"H",{"name":"Sam","age":22}]，we must use json decode block in list drawer.

I think that would be a change from the current behavior. If you use list deserialization all objects get deserialized to a list of tuples. So this:

Gives me an output of:
["list item 1","list item2",{"key1":"value1","key2":"value2"}]
["list item 1","list item2",[["key1","value1"],["key2":"value2"]]]

Luckily the JsonTextDecodeWithDictionaries works with arrays as well. So this:

Gives me an output of:
["list item 1","list item2",{"key1":"value1","key2":"value2"}]
["list item 1","list item2",{"key1":"value1","key2":"value2"}]

I think this is probably just a result of dictionaries coming later.

My question is: would it also be useful to include the xml decode/encode blocks?

When we want to decode json data like [1,2,"H",{"name":"Sam","age":22}]，we must use json decode block in list drawer.

I think that would be a change from the current behavior. If you use list deserialization all objects get deserialized to a list of tuples. For example:

Gives an output of:
["list item 1","list item2",{"key1":"value1","key2":"value2"}]
["list item 1","list item2",[["key1","value1"],["key2":"value2"]]]

Luckily the JsonTextDecodeWithDictionaries works with arrays as well. For example:

Outputs:
["list item 1","list item2",{"key1":"value1","key2":"value2"}]
["list item 1","list item2",{"key1":"value1","key2":"value2"}]

I think this is probably just a result of dictionaries coming later.
My question is: would it also be useful to include the xml decode/encode blocks?

I think we should put decode/encode blocks in dictionaries and lists drawer.
For example

I think we should put decode/encode blocks in dictionaries and lists drawer.
For example:

Ohhh I get you! Sorry - derrr on my part. I think that's a cool design!

If there is going to be both a dictionary from json and list from json, would the ideal behavior be for these blocks be to throw an error if:

A JSON string with an Object as the root element is passed to the list from json block
(or)
A JSON string with an Array as the root element is passed to the dictionary from json block

If there is going to be both a dictionary from json and list from json, would the ideal behavior be for these blocks be to throw an error if:

A JSON string with an Object as the root element is passed to the list from json block
(or)
A JSON string with an Array as the root element is passed to the dictionary from json block

More generally, the error should be raised when the type doesn't match what the block expects. Technically, true, "a string", 5 are all valid JSON but clearly not parsable by the proposed blocks if you expect that a dictionary or list should be the result. This was one of the reasons we punted on having built-in blocks for using the web component since there is no expectation of what the return type will be. I think if we go ahead with implementing these blocks an unexpected type should throw an error and in the documentation we recommend that if the type is unknown (e.g., it's coming from a web service), then to use the Web's method instead.

More generally, the error should be raised when the type doesn't match what the block expects. Technically, true, "a string", 5 are all valid JSON but clearly not parsable by the proposed blocks if you expect that a dictionary or list should be the result. This was one of the reasons we punted on having built-in blocks for using the web component since there is no expectation of what the return type will be. I think if we go ahead with implementing these blocks an unexpected type should throw an error and in the documentation we recommend that if the type is unknown (e.g., it's coming from a web service), then to use the Web's method instead.

That makes perfect sense. Thanks, @ewpatton!

That makes perfect sense. Thanks, @ewpatton!

authors: ArjunInventor BeksOmega Zhangzqs ewpatton patryk84a

repo: mit-cml/appinventor-sources


text:
Nuscenes validation detection performance

I am not able to reproduce the nuscenes validation dataset performance that was reported. I am training on 8xV100 GPU with the provided config in the convfuser.yaml file.
When I evaluated the pre-trained model the performance is mAP: 0.6846, NDS: 0.7143 as reported. But when I trained the model from scratch the performance is only mAP: 0.6440, NDS: 0.6933. I also tried training with the pretrained lidar weights (using --load_from pretrained/lidar-only-det.pth) as mentioned in #207 and the performance is only mAP: 0.6752, NDS: 0.7121.
There is still a gap of about 1% in mAP. Is this to be expected or is there a way to address this in training?

Hi, when you trained with the pretrained lidar weights, have you found the validation map and nds values was getting lower and lower after each epoch? I meet this problem, but i don't know why....

Please use a cosine annealing learning rate schedule with starting learning rate = 2e-4 and train for six epochs. Loading pretrained LiDAR weights is necessary. Also, please remember to run the test.py script separately after the training. I'll release the configs very soon.

Closed due to inactivity.

repo: mit-han-lab/bevfusion


text:
mAP=0 when testing on Night data (per class mAP)

Hello,
I would like to ask the meaning of "mAP=0" when testing on night data.
When I test on original validation dataset, I get the following mAPs for some classes.

However, when I test only on night dataset (filtered from original validation dataset, like #https://github.com/mit-han-lab/bevfusion/issues/139#issue-1378745190), I found some classes' AP values are 0. Does this mean that all the detection results for those classes are incorrect, or there was no object at all in the night dataset?

Thank you for your interest in our project. This repository is no longer actively maintained, so we will be closing this issue. Please refer to the amazing implementation at MMDetection3D. Thank you again!

authors: MinkyoungCho zhijian-liu


text:
changing point_cloud_range causes an error

Hello.
I use secfpn/camera+lidar config.
I'm trying to replace point_cloud_range to:  [-72.0, -72.0, -11.0, 72.0, 72.0, -3.0]
(The original was [-54.0, 54.0, -5.0, -54.0, 54.0, 3.0])
I also modified xbound and ybound accordingly, as follows
xbound: [-72.0, 72.0, 0.3]
ybound: [-72.0, 72.0, 0.3]
And finally, since the point cloud range has changed from (54+54)(54+54) to (72+72)(72+72), we increased the grid_size as follows
heads:
object:
train_cfg:
grid_size: [1920, 1920, 41]
test_cfg:
grid_size: [1920, 1920, 41]
(original was [1440, 1440, 41])
But when I ran the training, I got RuntimeError:
Sizes of tensors must match except in dimension 1. Expected size 240 but got size 180 for tensor number 1 in the list.
My guess is that this is caused by the tensor sizes in the trained model not matching the configs, but how can I fix it?
The only way I found was to adjust the voxel_size in config, but the paper says there is a performance penalty when increasing voxel_size, so I'm looking for other ways.
Thanks.

Hi! I see that your issue is kinda new. When trying to train the nuscenes dataset you encountered an error "no specified protocol"?

@atto-js Have you been able to figure out the problem? I am currently trying something similar

@gerardmartin2  I just adjusted the voxel_size.
Increasing voxel_size was mentioned in the paper as having a slight performance penalty, but I didn't find anything else to do.

@junsiknss Okey I see. Thanks for your reply! I will proceed this way then. By the way, is there a big drop in performance in your case? Just to know what to expect

@gerardmartin2  For short distances (0~30m), I didn't notice any performance degradation.
For longer distances, it was difficult to compare because detection rates were low regardless of voxel_size.
In my opinion, due to the nature of LIDAR, the distance between point and point reflected from a long distant object will increase significantly, so a small increase in voxel_size shouldn't have much impact, but I had no way to verify it.
My lidar had a very low density of point clouds ~50m, so I couldn't determine whether this was an effect of voxel_size increasing or a physical limitation of my lidar.
If you own a high-resolution lidar or use a solid state lidar, this would be an interesting experiment to try.

@junsiknss Thank you! I have a couple of questions just in case you have already done it or you know something about it.

Have you tried to reduce the FOV?. I would like to consider only the LIDAR points in a 60-70 frontal FOV.  By setting point_cloud_range to: [0.0, 54.0, -5.0, -54.0, 54.0, 3.0] (original is [-54.0, 54.0, -5.0, -54.0, 54.0, 3.0]) I guess I am able to pick the points within the 180 frontal degrees, but I assume I cannot do more than that by just modyfing the configs.Any ideas on how to lower even more the FOV?
"grid_size" first two coordinates need to be the same right? I have tried changing grid_size to: [720, 1440, 41] (to match the FOV of 180 degrees) but some errors about tensor shapes appear. I guess the grid needs to be a square, since changing the point_cloud_range to [0.0, 54.0, -5.0, -54.0, 54.0, 3.0]  and leaving the original grid_size runs succesfully. I assume then that to compute grid_size I need to take the higher range in point_cloud_range.

@gerardmartin2

I don't know how to reduce the horizontal FOV below 180 degrees via config. If the purpose of reducing the FOV is simply to reduce the computation cost, I added a filter for the pointcloud, so that only points within ROI(Region of interest) become inputs of the model for detection.

I did not experience successful execution when adjusting the grid_size too. As I said at the beginning of this thread, I adjusted the voxel_size instead.

authors: EpicGilgamesh atto-js gerardmartin2 junsiknss


text:
Unable to ssh into instance during provisioning

During provisioning, any attempt to ssh into the instance fails.
My situation uses the vagrant-aws and vagrant-triggers plugins.
Vagrantfile
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
    config.vm.box = "dummy"

    config.vm.provider :aws do |aws, override|
        aws.access_key_id = "..."
        aws.secret_access_key = "..."

        aws.region = "us-east-1"
        aws.availability_zone = "us-east-1d"
        aws.instance_type = "t1.micro"

        aws.keypair_name = "..."

        aws.subnet_id = "..."
        aws.security_groups = ["..."]

        # Ubuntu 14.04.3 paravirtual.
        aws.ami = "ami-678b260c"

        override.ssh.username = "ubuntu"
        override.ssh.private_key_path = "..."
    end

    config.vm.provision :trigger do |trigger|
        trigger.fire do
            run "vagrant ssh --command 'curl -s http://169.254.169.254/latest/meta-data/instance-id >./instance_id.txt'"
        end
    end
end

'vagrant up' results in the following:
Bringing machine 'default' up with 'aws' provider...
==> default: Warning! The AWS provider doesn't support any of the Vagrant
==> default: high-level network configurations (`config.vm.network`). They
==> default: will be silently ignored.
==> default: Warning! You're launching this instance into a VPC without an
==> default: elastic IP. Please verify you're properly connected to a VPN so
==> default: you can access this machine, otherwise Vagrant will not be able
==> default: to SSH into it.
==> default: Launching an instance with the following settings...
<snip>
==> default: Running provisioner: trigger...
==> default: Executing command "vagrant ssh --command curl -s http://169.254.169.254/latest/meta-data/instance-id >./instance_id.txt"...
==> default: An action 'read_state' was attempted on the machine 'default',
==> default: but another process is already executing an action on the machine.
==> default: Vagrant locks each machine for access by only one process at a time.
==> default: Please wait until the other Vagrant process finishes modifying this
==> default: machine, then try again.
==> default:
==> default: If you believe this message is in error, please check the process
==> default: listing for any "ruby" or "vagrant" processes and kill them. Then
==> default: try again.
==> default: Command execution finished.
The command "vagrant ssh --command 'curl -s http://169.254.169.254/latest/meta-data/instance-id >./instance_id.txt'" returned a failed exit code. The
error output is shown below:

An action 'read_state' was attempted on the machine 'default',
but another process is already executing an action on the machine.
Vagrant locks each machine for access by only one process at a time.
Please wait until the other Vagrant process finishes modifying this
machine, then try again.

If you believe this message is in error, please check the process
listing for any "ruby" or "vagrant" processes and kill them. Then
try again.

Note that this can be reproduced without the vagrant-trigger plugin by simply replacing the "config.vm.provision :trigger do |trigger| ..." with:
config.vm.provision :shell, inline: 'sleep 60'

Attempting to ssh into the instance during the time while the "sleep 60" is running will result in the same error message shown above.
This is not the behavior when using the virtualbox provider (i.e. attempting to ssh into the box while the "sleep 60" is running works without issue).
Thanks,
Lance

+1

Same issue with the recently released vagrant-aws 0.7.0. Creating a VM with nothing but a shell provisioner that sleeps renders the VM unavailable for other commands during provisioning.
The Virtualbox provider doesn't have this limitation. Is there a reason that the AWS provider needs to hold an exclusive lock during provisioning?

Also having the same issue, trying to run a script which pulls out the ssh-config after a provision but failed due to this bug.

I've submitted PR #457 which should resolve this for vagrant ssh and vagrant status

authors: Sharpie ljohnston rob1256 schasse

repo: mitchellh/vagrant-aws


text:
Installing Vagrant-AWS Plugin on my Windows 10 PC

This is the error I get whenever I try installing the Vagrant AWS Plugin. Please, I need everyones help concerning this.
"λ vagrant plugin install vagrant-aws
Installing the 'vagrant-aws' plugin. This can take a few minutes...
Vagrant failed to load a configured plugin source. This can be caused
by a variety of issues including: transient connectivity issues, proxy
filtering rejecting access to a configured plugin source, or a configured
plugin source not responding correctly. Please review the error message
below to help resolve the issue:
Errno::ETIMEDOUT: Failed to open TCP connection to 161.158.250.99:8080 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. - connect(2) for "161.158.250.99" port 8080) (https://api.rubygems.org/specs.4.8.gz)
Source: https://rubygems.org/"

PS: My PC isn't configured with an Proxy.


text:
[FALSE-POSITIVE]

Domains or links

http://mmtro.com/c?tagid=6565774-fc05868ce53638cc265ed86660c435cc&rtgzid=1887&idc=82679&redir=http://ksMuou1P5egy.karlthehandyman.com?=peter.ongena@ing.be

More Information
We discovered this link being listed on Virustotal with your database
Have you requested removal from other sources?
https://www.virustotal.com/gui/url/306645a30bf9150aa137a752f8c9a1d075e6f7c8713d0544f5e1cae5e48ea93c
We've also sent an unlist request to Seclookup. We regularly treat abuse through our Network providers and abuse system but we didn't get this one.
Additional context
Some people abused the redirection feature of our application. This has been deleted and blacklisted.

Thank you @funilrys

authors: Solvik ultrabug


text:
mitmproxy 9.0.0 crashes on startup:  Expected collections.abc.Sequence[str] for mode, but got <class 'str'>.

Problem Description
mitmproxy 9.0.0 on python:slim-bullseye Docker image seems to crash with the following error log:
Traceback (most recent call last):
  File "/usr/local/bin/mitmdump", line 8, in <module>
    sys.exit(mitmdump())
             ^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/mitmproxy/tools/main.py", line 143, in mitmdump
    run(dump.DumpMaster, cmdline.mitmdump, args, extra)
  File "/usr/local/lib/python3.11/site-packages/mitmproxy/tools/main.py", line 120, in run
    return asyncio.run(main())
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/base_events.py", line 650, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/mitmproxy/tools/main.py", line 78, in main
    optmanager.load_paths(
  File "/usr/local/lib/python3.11/site-packages/mitmproxy/optmanager.py", line 564, in load_paths
    load(opts, txt)
  File "/usr/local/lib/python3.11/site-packages/mitmproxy/optmanager.py", line 546, in load
    opts.update_defer(**data)
  File "/usr/local/lib/python3.11/site-packages/mitmproxy/optmanager.py", line 237, in update_defer
    unknown = self.update_known(**kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/mitmproxy/optmanager.py", line 232, in update_known
    self._options[k].set(v)
  File "/usr/local/lib/python3.11/site-packages/mitmproxy/optmanager.py", line 58, in set
    typecheck.check_option_type(self.name, value, self.typespec)
  File "/usr/local/lib/python3.11/site-packages/mitmproxy/utils/typecheck.py", line 45, in check_option_type
    raise e

Configuration:
mode: regular

websocket: true
stream_websockets: false

block_global: false
block_private: false

console_eventlog_verbosity: debug
termlog_verbosity: debug

verbose: true

flow_detail: 0
console_mouse: false
command_history: false
relax_http_form_validation: true

http2: true
http2_priority: false

rawtcp: false

ciphers_client: ALL
ciphers_server: ALL

certs: ["mitmproxy-ca.pem"]
key_size: 2048

Steps to reproduce the behavior:

Run mitmproxy 9.0.0 via /usr/local/bin/mitmdump --set confdir=/etc/mitmproxy/.

System Information
Mitmproxy: 9.0.0
Python:    3.11.0
OpenSSL:   OpenSSL 3.0.7 1 Nov 2022
Platform:  Linux-5.15.49-linuxkit-aarch64-with-glibc2.31

You've cut off the error message here which would be helpful. It looks like
one of the options in your config has an invalid type now. The only thing
we've changed is that mode expects a sequence of strings, so it's very
likely that. We may need to improve the error message for this, but you
left it out so it's hard to tell. :)
On Wed, Nov 2, 2022, 07:42 Niels Hofmans @.***> wrote:

Problem Description
mitmproxy 9.0.0 on python:slim-bullseye Docker image seems to crash with
the following error log:
Traceback (most recent call last):
File "/usr/local/bin/mitmdump", line 8, in
sys.exit(mitmdump())
^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/mitmproxy/tools/main.py", line 143, in mitmdump
run(dump.DumpMaster, cmdline.mitmdump, args, extra)
File "/usr/local/lib/python3.11/site-packages/mitmproxy/tools/main.py", line 120, in run
return asyncio.run(main())
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 650, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/mitmproxy/tools/main.py", line 78, in main
optmanager.load_paths(
File "/usr/local/lib/python3.11/site-packages/mitmproxy/optmanager.py", line 564, in load_paths
load(opts, txt)
File "/usr/local/lib/python3.11/site-packages/mitmproxy/optmanager.py", line 546, in load
opts.update_defer(**data)
File "/usr/local/lib/python3.11/site-packages/mitmproxy/optmanager.py", line 237, in update_defer
unknown = self.update_known(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/mitmproxy/optmanager.py", line 232, in update_known
self._options[k].set(v)
File "/usr/local/lib/python3.11/site-packages/mitmproxy/optmanager.py", line 58, in set
typecheck.check_option_type(self.name, value, self.typespec)
File "/usr/local/lib/python3.11/site-packages/mitmproxy/utils/typecheck.py", line 45, in check_option_type
raise e
Configuration:
mode: regular
#proxyauth: any
but don't do this for websocket since this is typically small
and we can't modify when streaming
websocket: true
stream_websockets: false
allow requests from the internet since we do authn
block_global: false
block_private: false
set log level to info
console_eventlog_verbosity: debug
termlog_verbosity: debug
verbose: true
no need
flow_detail: 0
console_mouse: false
command_history: false
relax_http_form_validation: true
we support http2, but don't prioritize it
http2: true
http2_priority: false
surf to this address to download certificate
onboarding: false
onboarding_port: 9300
onboarding_host: proxy.company.com
experimental support for raw tcp
rawtcp: false
allow any TLS ciphers
ciphers_client: ALL
ciphers_server: ALL
ca settings
certs: ["mitmproxy-ca.pem"]
key_size: 2048
Steps to reproduce the behavior:

Run mitmproxy 9.0.0

System Information
—
Reply to this email directly, view it on GitHub
https://github.com/mitmproxy/mitmproxy/issues/5712, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAHY2PVPLEKEQDRHESMNKZDWGILNNANCNFSM6AAAAAARUZA77Q
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

@mhils That was it! Thanks.
Can we include that in the release docs?

Done!

authors: hazcod mhils

repo: mitmproxy/mitmproxy


text:
Spelling corrected for think*

Replaced "You should thin* of the mitmproxy" to "You should think* of the mitmproxy"

Good catch. Thanks for the PR! 🍰 😃

authors: mhils smonami