[TW#12280] VFS: Unable to map the whole file system tree using "/"

I am finding that I am unable to map the whole file system tree as seen by the Posix APIs using esp_vfs_register().  It appears that if I try and map "/" that returns an error code.  It is as though the esp_vfs_register() requires that my mount point be subordinate to root ("/").  I am thinking that this may be too restrictive.  What if I want to use VFS with just a single type of file system (for examples SPIFFS) then I want all paths to map into the SPIFFS file system not just those from a specific prefix.
For example, I want to be able to access /dir1/file1.txt and /dir2/file2.txt through SPIFFS with both files on the same SPIFFS file system.

You have no options to set base path in your code?

I imagine this is related to the fact the VFS does not support nested mount points, and therefore would break e.g. the /dev/uart registration.

I can implement nested mount points if there are some use cases for that.

i just filed #158 which is related (feel free to dedup) - need to be able to take over the entire vfs.

Adding a request from @rojer here: we should support paths which don't start with /.

fwiw, above is my stab at it.

@igrr almost there, but relative paths like foo or conf.json are not passed to the default VFS.
https://github.com/espressif/esp-idf/pull/726 makes that happen.

Good catch, thanks @rojer.


Fusion Projects: Breadcrumbs cause Activy view rerender 5 times

We should update fetchBreadcrumbs function so it doesn't cause a page rerendering

This one was fixed


Add trace logs for FMSPC and collateral

closes #1315
Adding trace logs for DCAP information such that it makes debugging registration extrinsic failures easier

@OverOrion @clangenb let me know this one should be ready now

@coax1d this doesn't work for me. See setup here: https://github.com/integritee-network/deployment/issues/75#issuecomment-1578679747
I run with export RUST_LOG=ERROR,itp_enclave_api=TRACE,enclave_runtime=TRACE
I get an error when tracing:
[2023-06-06T12:47:49Z TRACE itp_enclave_api::remote_attestation] Generating DCAP RA Quote: 3
[>] DCAP setup: register QE collateral
[2023-06-06T12:47:49Z TRACE itp_enclave_api::remote_attestation] Generating register quoting enclave
[2023-06-06T12:47:49Z TRACE itp_enclave_api::remote_attestation] FMSPC: "00906ed50000"
[2023-06-06T12:47:49Z TRACE itp_enclave_api::remote_attestation] collateral:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 1, error_len: Some(1) }', core-primitives/enclave-api/src/remote_attestation.rs:422:75
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

@coax1d this doesn't work for me. See setup here: integritee-network/deployment#75 (comment)
I run with export RUST_LOG=ERROR,itp_enclave_api=TRACE,enclave_runtime=TRACE I get an error when tracing:
[2023-06-06T12:47:49Z TRACE itp_enclave_api::remote_attestation] Generating DCAP RA Quote: 3
[>] DCAP setup: register QE collateral
[2023-06-06T12:47:49Z TRACE itp_enclave_api::remote_attestation] Generating register quoting enclave
[2023-06-06T12:47:49Z TRACE itp_enclave_api::remote_attestation] FMSPC: "00906ed50000"
[2023-06-06T12:47:49Z TRACE itp_enclave_api::remote_attestation] collateral:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 1, error_len: Some(1) }', core-primitives/enclave-api/src/remote_attestation.rs:422:75
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

This is a bit strange, but understandable, if the SGX sgx_ql_get_quote_verification_collateral fails for whatever reason I am not sure that reading the buffer will yield a valid result. Could you try using to_string_lossy() instead of to_str()? In this case it will try it's best, but won't fail if the buffer is not readable for whatever reason.

that did the trick. fix in #1346


Command 'python.updateFeedbackCounter' not found while using python remote debugging

Environment data

VSCode Version: 1.18.1
OS Version: macOS Sierra Version 10.12.6
Python Extension version:  0.8.0
Python Version: 2.7

Actual behavior
Remote doesn't start
Expected  behavior
Remote should start
Steps to reproduce:

Run a python process in vscode.
Create the following launch configuration:

        {
            "name": "xxxxx Remote",
            "type": "python",
            "request": "attach",
            "localRoot": "/Users/xxx/yy/zzz",
            "remoteRoot": "/home/xxx/yy/zzz",
            "port": 3453,
            "secret": "my_secret",
            "host": "<IP_ADDRESS>"
        },

Output from Console window (Help->Developer Tools menu)
Command 'python.updateFeedbackCounter' not found: Error: command 'python.updateFeedbackCounter' not found
    at t._tryExecuteCommand (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:9:1117373)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:9:1117212
    at n.Class.define.cancel.then (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:9:69309)
    at t.executeCommand (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:9:1117186)
    at e.$executeCommand (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:9:2823079)
    at t.e.invoke (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:9:2876809)
    at e._invokeHandler (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:9:2440566)
    at e._receiveOneMessage (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:9:2440256)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:9:2439283
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:9:2441202
e.onUnexpectedError @ workbench.main.js:10
(anonymous) @ workbench.main.js:10
e.onUnexpectedError @ workbench.main.js:9
o @ workbench.main.js:9
e.$onUnexpectedError @ workbench.main.js:9
e.invoke @ workbench.main.js:9
e._invokeHandler @ workbench.main.js:9
e._receiveOneMessage @ workbench.main.js:9
(anonymous) @ workbench.main.js:9
(anonymous) @ workbench.main.js:9
e.invoke @ workbench.main.js:9
e.fire @ workbench.main.js:9
(anonymous) @ workbench.main.js:9
emitOne @ events.js:96
emit @ events.js:191
readableAddChunk @ _stream_readable.js:178
Readable.push @ _stream_readable.js:136
onread @ net.js:560

Duplicate of #257

Will fixing #24 fix this issue as well?

#257 fixes this


Docker image versioning for improved stability

@stepankuzmin would you please consider pushing versioned container using git release tag such as “martin:0.5.0” to allow users pin down version and to avoid forcing upgrades silently (and potentially break app)? Also, can you please release a new tag from mainline branch since it has newer changes than release 0.5.0?
Thanks in advance for sharing such a powerful app!

Actually the Docker Hub repo already contains tag for 0.5.0. Disregard my first part of the comment. Also, can you please release a new tag from mainline branch since it has newer changes than release 0.5.0?

Actually the Docker Hub repo already contains tag for 0.5.0. Disregard my first part of the comment. Also, can you please release a new tag from mainline branch since it has newer changes than release 0.5.0?

Hey @yamaszone
I'll release new version after #107

@stepankuzmin Sounds great! Thanks again!


Use events to couple parameters in instrument drivers?

@MerlinSmiles noticed an interesting case while writing an instrument driver: sometimes different parameters are coupled to each other, such that changing one affects the value of the other(s). This means that the snapshot of this instrument will definitely be incorrect right after a set call on one of these parameters.
Sometimes this is just two different ways to call the same hardware command, eg resolution and averaging time... sometimes you want to specify one, sometimes the other, but they both generate identical hardware calls. In that case, we could probably work out a way to determine the value of the other parameter programmatically, but it would be easiest to just ask the instrument.
Other times they are separate parameters that don't have a 1:1 mapping but they impose constraints on each other. In that case, unless we want to figure out the details of these constraints and hard code them into the driver (which sounds horrible!) you need to ask the instrument for the other parameter(s).
It occurred to me the easiest way to build in such couplings would be through events. In this case we would do something like:
def update_res_and_time(self):
    self.resolution.get()
    self.integration_time.get()
    self.NPLC.get()

def __init__(self, ...):
    self.add_parameter('resolution', ...)
    self.add_parameter('integration_time', ...)
    self.add_parameter('NPLC', ...)

    self.on(('resolution_set', 'integration_time_set', 'NPLC_set'), self.update_res_and_time)

Where the parameter would know, because it's attached to this instrument, to emit a '<name>_set' event on setting (and maybe a '<name>_get' event on getting too?) on this instrument's event emitter.
But I haven't used any event systems in Python... anyone? I see pyee, gevent-eventemitter, eventemitter...
Is this the right way to do this or is there something better? Do we need such events to extend beyond the walls of the instrument (which in practice would also mean extending beyond this PROCESS, which would make it quite a bit more involved)? pyee looks nice and lightweight, people seem to like it, so that's what I would go with all else equal.

@spauka @MerlinSmiles    not sure I can follow this conversation, Alex link is broken.
Could you summarise // point out if it's still relevant   ?

The issue that is being referred to is still outstanding, in that as far as I can tell there is still no way of creating coupled parameters, though the solution referred to in the title, "Use events ...", may no longer be the best solution.
In short, the issue is that some instruments expose certain parameters only sometimes, or that the values/units of other parameters change depending on the selection of a parameter. For example, looking at the SR830 driver, when we change the value of input_config, the units of X,Y and sensitivity can change from voltage(V) to current(I). The way that this is currently handled is that the get/set parser of input_config is overriden to change the value of the units, however arguably this is not the role of the get/set parser function. Other times, certain parameters only take a value if another parameter is enabled, see my previous comment re. averages. I would say these are the two issues noted in Alex's link.
Don't have a strong opinion on the best solution, but moving to a more logical way of handling these parameters should be addressed.

@spauka  yes agree!  @WilliamHPNielsen had a lot of the same issues writing drivers (correct?)

@giulioungaretti Yes, that is correct, we had that a lot with the ZI UHF-LI driver.  If you want to convince yourself that Alex and Sebastian are right that hardcoding this stuff into set and get is not the proper way to go about it, have a look at this highly specialised set function: https://github.com/QCoDeS/Qcodes/blob/master/qcodes/instrument_drivers/ZI/ZIUHFLI.py#L1467.
I fully agree that we should solve this. Although the SCPI standard encourages tree-like disparate parameters, most instruments still have them mingled together.

@WilliamHPNielsen @spauka  yeah, suspected so just wanted to make sure.

Solving coupled parameters with events sounds like a good idea to me. We use the package blinker for events in our qcodes extension, and it works quite nicely. It's quite fast, and allows both named and anonymous signals. A big advantage of blinker is that it allows to subscribe to specific senders.
As for implementation, one possibility is to attach an event object to each parameter. Simple get/set signals can then be hardcoded into the get/set parameters, for instance in decorators suggested in #600. @WilliamHPNielsen signals can also be used for more complicated cases such as the one you mentioned, by sending signals that don't have get or set as a kwarg, but other specific ones. Would this be a viable solution?

@nulinspiratie  does it work across processes?

@giulioungaretti No it doesn't, I'm not aware of any event handler that also transfers signals across processes. A wrapper could probably be programmed around the package that could handle this, but I'm not sure how much overhead this would give


feat: remove prettier rule, add related docs

🚨 IMPORTANT: Please do not create a Pull Request without creating an issue first.
Any change needs to be discussed before proceeding. Failure to do so may result in the rejection of the pull request.
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes #395
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] This change requires a documentation update

Screenshots/Sandbox (if appropriate/relevant):
N/A
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[x] examples/prettier

Test Environment:

OS: macOS
@graphql-eslint/eslint-plugin: 0.9.1
NodeJS: 14.16

Checklist:

[x] I have followed the CONTRIBUTING doc and the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests and linter rules pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

Further comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

This is great, thank you @JounQin !
Can you please just rebase your PR and then we can get this merged?

@dotansimha Done!

@JounQin i think you definitely must add *.ts/*.graphql to override object for turn off prettier/prettier rule

@B2o5T Oh, right, I'll add .jsx/.tsx too soon.

Thank you @JounQin . I'm merging this one, but might take a few days to release, since I want to bump a major in this one, and I plan to squeeze in a few more change for v1.


Bump master to v8.0.0

clang format successful! https://ci.trafficserver.apache.org/job/clang-format-github/298/

RAT check successful! https://ci.trafficserver.apache.org/job/RAT-github/312/

FreeBSD11 build successful! https://ci.trafficserver.apache.org/job/freebsd-github/1993/

Intel CC build successful! https://ci.trafficserver.apache.org/job/icc-github/424/

AU check successful! https://ci.trafficserver.apache.org/job/autest-github/294/

Linux build successful! https://ci.trafficserver.apache.org/job/linux-github/1885/

clang-analyzer build failed! https://ci.trafficserver.apache.org/job/clang-analyzer-github/557/


👉 Completes WebsocketProvider pollingInterval fixes

Completes https://github.com/TrueFiEng/useDApp/pull/911 which still fails with WebsocketProvider

@nezouse @marekkirejczyk @tt-marek

@ItsShadowl thank you for the PR - merging it right now.

@ItsShadowl thank you for the PR - merging it right now.

Great to see it merged quickly. I will rerun the tests now.
Thanks.


Respect the pk option in filter

This fixes #25.
@whitelynx can yuo review this, please?

:+1: Looks good.


fix(image-viewer): 移除额外的根元素

🤔 这个 PR 的性质是？

[x] 日常 bug 修复
[ ] 新特性提交
[ ] 文档改进
[ ] 演示代码改进
[ ] 组件样式/交互改进
[ ] CI/CD 改进
[ ] 重构
[ ] 代码风格优化
[ ] 测试用例
[ ] 分支合并
[ ] 其他

🔗 相关 Issue

💡 需求背景和解决方案

📝 更新日志
fix(ImageViewer): 移除包裹在trigger上的额外元素

fix(组件名称): 处理问题或特性描述 ...

[ ] 本条 PR 不需要纳入 Changelog

☑ 请求合并前的自查清单
⚠ 请自检并全部勾选全部选项。⚠

[ ] 文档已补充或无须补充
[ ] 代码演示已提供或无须提供
[ ] TypeScript 定义已补充或无须补充
[ ] Changelog 已提供或无须提供

Codecov Report

Merging #1598 (24f8f74) into develop (492d477) will increase coverage by 4.26%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop    #1598      +/-   ##
===========================================
+ Coverage    57.94%   62.21%   +4.26%
===========================================
  Files          407      678     +271
  Lines        15371    16213     +842
  Branches      2931     2822     -109
===========================================
+ Hits          8907    10087    +1180
+ Misses        6187     5828     -359
- Partials       277      298      +21

Impacted Files
Coverage Δ

src/range-input/range-input-popup-props.ts
25.00% <0.00%> (-75.00%)
:arrow_down:

src/grid/row-props.ts
71.42% <0.00%> (-28.58%)
:arrow_down:

src/select/util.ts
65.00% <0.00%> (-26.67%)
:arrow_down:

src/date-picker/props.ts
43.75% <0.00%> (-26.25%)
:arrow_down:

src/select/props.ts
54.54% <0.00%> (-20.46%)
:arrow_down:

src/date-picker/date-range-picker-props.ts
35.29% <0.00%> (-19.26%)
:arrow_down:

src/affix/affix.tsx
22.72% <0.00%> (-16.34%)
:arrow_down:

src/upload/props.ts
58.33% <0.00%> (-13.10%)
:arrow_down:

src/select/optionGroup.tsx
31.57% <0.00%> (-9.60%)
:arrow_down:

src/cascader/props.ts
55.55% <0.00%> (-8.74%)
:arrow_down:

... and 475 more

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


Error in JsMin for Nova.

ERROR: ENOENT: no such file or directory, open '/var/www/vhosts/cre8te-development.com/httpdocs/6_lloyds copy/js/main.js'
at Object.openSync (fs.js:476:3)

Hi James, this appears to be an issue with NodeJS reading the file. Are you able to confirm that the file '/var/www/vhosts/cre8te-development.com/httpdocs/6_lloyds copy/js/main.js' is available in that location and that the permissions allow for reading and writing in the directory.

Hi Andy
This file is located on my server remotely?
Kind Regards.
James Richards
https://www.eprefix.co.uk/
James Richards
Director / Lead Developer
Mobile: +44<PHONE_NUMBER>
Phone: +44 20 8638 6022
Email: @.***
www.eprefix.co.uk http://www.eprefix.co.uk/
This email, its contents and any files or images transmitted with it are intended solely for the addressee(s) and are confidential. If you have received this email in error you may not copy or use the contents, attachments or information in any way. Please destroy it immediately and contact the sender via return of email.

On 19 May 2021, at 13:57, Andy Atkinson @.***> wrote:
Hi James, this appears to be an issue with NodeJS reading the file. Are you able to confirm that the file '/var/www/vhosts/cre8te-development.com/httpdocs/6_lloyds copy/js/main.js' is available in that location and that the permissions allow for reading and writing in the directory.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/VineCode/JsMin.novaextension/issues/2#issuecomment-844079481, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKSYFLNXV44YRTT5LNPJXT3TOOYR5ANCNFSM45ESSB3Q.

Ah OK. Currently the extension only supports local files. My knowledge of the Nova API is pretty limited so although it may be possible to compile on remote this is not something I can add at the moment. It is on my "to look at" list for this module and the sass extension. Sorry about that.


[FLINK-30859] Externalize confluent avro related code

1st major part of FLINK-30859 to externalize confluent Avro related code to remove flink-connector-kafka code safely from apache/flink:master

BTW I noticed that the NOTICE files are outdated. I hope you don't mind that I change it in the same PR here: a554982


Unable to install VSIX

When trying to install the VSIX I get the error "Install failed".

Hi
What version of Visual Studio are you using?


Create issue template

Let's create issue template, here is reference: Configuring issue template
By default, Bug report and Feature request template is supported.

And, we can configure Custom template. Any idea?

There are some issues to run this project.
First, It doesn't work on previous version Android Studio. So Prev Android Studio have got to be updated in  new version.
You might as well check version and download new version.
Check out this bellow link and what's different for prev Android Studio.
https://developer.android.com/studio/preview
Second, It also doesn't work without Java 11. I have used Java 1.xx but, it errors.
So you gotta update your sdk version to Java 11.
Check out this bellow link.
https://stackoverflow.com/questions/66449161/how-to-upgrade-an-android-project-to-java-11
After two problems are fixed, Project does work!


Drawing a button?

With the addition of mouse support, is it possible to simulate buttons in the Windows Terminal?

With the addition of mouse support, is it possible to simulate buttons in the Windows Terminal?

Yes. You can test this with the Linux dialog utility. In a WSL bash shell, try something like this:
dialog --yesno "Click Yes or No" 5 20 && echo Yes clicked

@j4james Is there a demo with code that I can use or an implementation guide for this?

The general idea is you enable up/down click events by setting private mode 1000 ("\e[?1000h"). And then you can just read the events from stdin in the form of an escape sequence, in the same way you'd read a keypress event.
There are a bunch of a different reporting modes you can choose from, depending on whether you need a wider coordinate range, or you want to know the state of modifier keys, etc. Have a look at the Terminal Guide website for a nice explanation of the different options, and the format of the reports. But note that some formats are better supported than others. Windows in particular only supports modes 1000, 1002, 1003, 1005, and 1006 (at least for now).
Anyway, that's the low level protocol, but depending on what programming language and operating systems you're targeting, there may be higher level libraries you can use (e.g. ncurses). I'm not sure this is the best place to ask for example code though.

This is a fine discussion, and by all means, feel free to continue it here, but since there's nothing really actionable for the Terminal team here, I'm going to close this issue. Thanks!


Short solution needed: "How to reverse array" (python-numpy)

Please help us write most modern and shortest code solution for this issue:
How to reverse array (technology: python-numpy)
Fast way
Just write the code solution in the comments.
Prefered way

Create pull request with a new code file inside inbox folder.
Don't forget to use comments to make solution explained.
Link to this issue in comments of pull request.

How to reverse array


Answered basic questions

Hi @Shivampurbia, thank you for your contribution! Unfortunately, your MR cannot be merged - there's a conflict. Would you be able to resolve it?

Hi @Shivampurbia
I will close the PR. Feel free to reopen it

I was not able to connect at that time, may I know what was the conflict in my updates?

I don't remember, sorry. Probably you tried to answer some of the questions that were already answered


Support usage of env vars for Kit.toolchainFile

This PR replaces #626 by @blakehurd

I verified all again, works great.


A Question in Densenet

It confuses me that there is no parameters in all denseblocks. Is there any problem in the program?

Hello!
I'm using DenseNet right now, too.
It seems that the author didn't follow the coding convention suggested by Tensorflow Team?
For example, people who write a layer inherited from tf.keras.layers.Layer should contain get_config function or some problems may happen.
To answer your question, I found that one should not declare new layers inside the call function in the custom layer inherited from tf.keras.layers.Layer.
It may be the problem that makes the DenseBlock empty.
To solve this, I've changed the code like below:
class DenseBlock(tf.keras.layers.Layer):
    def __init__(self, num_layers, growth_rate, drop_rate, name=None):
        super(DenseBlock, self).__init__(name=name)
        self.num_layers = num_layers
        self.growth_rate = growth_rate
        self.drop_rate = drop_rate
        self.features_list = []
        self.model_list = []
        for i in range(0, self.num_layers):
            tmp = BottleNeck(growth_rate=self.growth_rate, drop_rate=self.drop_rate)
            self.model_list.append(tmp)

    # def _make_layer(self, x, training):
    #     y = BottleNeck(growth_rate=self.growth_rate, drop_rate=self.drop_rate)(x, training=training)
    #     self.features_list.append(y)
    #     y = tf.concat(self.features_list, axis=-1)
    #     return y

    def call(self, inputs, training=None, **kwargs):
        self.features_list.append(inputs)
        x = inputs
        # x = self._make_layer(inputs, training=training)
        for i in range(0, self.num_layers):
            # x = self._make_layer(x, training=training)
            x = self.model_list[i](x, training=training)
            self.features_list.append(x)
            x = tf.concat(self.features_list, axis=-1)
        self.features_list.clear()
        return x

    def get_config(self):
        config = super(DenseBlock, self).get_config()
        config.update({'growth_rate': self.growth_rate,
                       'drop_rate': self.drop_rate,
                       'num_layers': self.num_layers})
        return config

Then the problem should be gone.

@taffy128s
Thank you to answer my question.
I made almostly the same thing as you. The BottleNeck should be initialized before we use it in call function, or not we will see zero parameter in  denseblock.
class DenseBlock(tf.keras.layers.Layer):
    def __init__(self, num_layers, growth_rate, drop_rate):
        super(DenseBlock, self).__init__()
        self.num_layers = num_layers
        self.growth_rate = growth_rate
        self.drop_rate = drop_rate
        self.features_list = []
        self.BottleNeck = {}
        for i in range(self.num_layers):
            self.BottleNeck[str(i)] = BottleNeck(growth_rate=self.growth_rate, drop_rate=self.drop_rate)

    def call(self, inputs, training=None, **kwargs):
        self.features_list.append(inputs)
        x = self.BottleNeck[str(0)](inputs, training=training)
        self.features_list.append(x)
        x = tf.concat(self.features_list, axis=-1)
        for i in range(1, self.num_layers):
            x = self.BottleNeck[str(i)](inputs, training=training)
            self.features_list.append(x)
            x = tf.concat(self.features_list, axis=-1)
        self.features_list.clear()
        return x


Splitable Workspace

Splitable Workspace (Windowed Workspace)
My idea is that you can have an editor open in another window from the same work space-like when you drag out a tab from your browser, it throws it to a new window-it's the same idea for "Splitable Workspace", but the tab thrown out is still in the same workspace. This is useful for people who uses multiple monitors, as they can view different files on different monitors. Although opening a new window exists, it cannot open the same workspace in 2 different windows.

/duplicate

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.
Happy Coding!


Automatic PR from RestAPI-PR671

Generated from RestAPI PR: https://github.com/Azure/azure-rest-api-specs/pull/671

Coverage decreased (-0.001%) to 55.881% when pulling 314f0f73a37b4f0e7cfb2cba60f60f9be5592655 on AutorestCI:RestAPI-PR671 into 073e5b42c220207b4a80c9df4fef678b014759ad on Azure:dev.

Coverage decreased (-0.001%) to 55.881% when pulling 314f0f73a37b4f0e7cfb2cba60f60f9be5592655 on AutorestCI:RestAPI-PR671 into 073e5b42c220207b4a80c9df4fef678b014759ad on Azure:dev.

Coverage decreased (-0.001%) to 55.881% when pulling 314f0f73a37b4f0e7cfb2cba60f60f9be5592655 on AutorestCI:RestAPI-PR671 into 073e5b42c220207b4a80c9df4fef678b014759ad on Azure:dev.

Coverage decreased (-0.001%) to 55.881% when pulling 314f0f73a37b4f0e7cfb2cba60f60f9be5592655 on AutorestCI:RestAPI-PR671 into 073e5b42c220207b4a80c9df4fef678b014759ad on Azure:dev.


Consider enabling gzip compression of image layers

With the new builder structure this is easily possible by wrapping the io.MultiWriter in a gzip.Writer.
This would require some other changes (such as media types) which would mean that Nixery's entire existing cache needs to be busted (not a major issue). In addition there might be situations in which this will end up slower overall, worth investigating.

It turns out there are tools in the ecosystem that always expect image layers to be compressed (for example, Bazel's rules_docker currently does - however this is due to a bug).
Regardless of performance implications it seems like the correctness/interoperability with the rest of the ecosystem should be more important, so #64 will be merged once it is ready.


virt-operator pod crash becasue of securityContext.seccompProfile: type: RuntimeDefault

What happened:
virt-operator pod crash when deploy kubevirt operator in my k8s cluster.
What you expected to happen:
virt-operator pod do not crash
How to reproduce it (as minimally and precisely as possible):
It's an occasional problem that can occur in particular circumstances.
Additional context:
Add any other context about the problem here.

Part of virt-operator yaml follows:
       securityContext:
          allowPrivilegeEscalation: false
          capabilities:
            drop:
            - ALL
          seccompProfile:
            type: RuntimeDefault
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /etc/virt-operator/certificates
          name: kubevirt-operator-certs
          readOnly: true
        - mountPath: /profile-data
          name: profile-data
      dnsPolicy: ClusterFirst
      priorityClassName: kubevirt-cluster-critical
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext:
        runAsNonRoot: true
        seccompProfile:
          type: RuntimeDefault

after manual modification, yaml like this:
        securityContext:
          allowPrivilegeEscalation: false
          capabilities:
            drop:
            - ALL
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /etc/virt-operator/certificates
          name: kubevirt-operator-certs
          readOnly: true
        - mountPath: /profile-data
          name: profile-data
      dnsPolicy: ClusterFirst
      priorityClassName: kubevirt-cluster-critical
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext:
        runAsNonRoot: true

It seems that virt-operator executes one of the syscalls not allowed in the default seccomp profile. Can you please have a look at the auditing logs? The error could be reported also on the pod description, could you please copy-paste the output of kubectl describe po -n kubevirt <virt-operator-pod-name>

I'm sorry that I can't provide it.
This problem disappears by upgrading the docker version.
docker version from v20.10.7 upgrade to v20.10.23-2.
Therefore, whether to use  securityContext. seccompProfile.type:  RuntimeDefault is a risky configuration item, which may cause exceptions on different versions of CRI?

This reminds me of an old issue https://github.com/moby/moby/issues/42680, when glibc started using clone3 in pthread_create:

The latest glibc now attempts to use 'clone3' by default. For backwards compatibility it will look for ENOSYS errno and fallback to "clone". The EPERM errno meanwhile is treated as a fatal error.
The default seccomp filter installed by docker is causing EPERM and so this breaks the glibc fallback.

In this case, we have a recent code from virt-operator that runs on a relatively old host with centos 7. If the host uses an old version of the container rintime and/or libseccomp then chances are that it might be the same issue....

I'm sorry that I can't provide it. This problem disappears by upgrading the docker version. docker version from v20.10.7 upgrade to v20.10.23-2. Therefore, whether to use securityContext.seccompProfile.type: RuntimeDefault is a risky configuration item, which may cause exceptions on different versions of CRI?

Yes, the default seccomp profile depends on the container runtime your cluster is using. Great, probably this was fixed in  a more recent docker version and probably the reason is what @vasiliy-ul mentioned above.

@vasiliy-ul +1
I would recommend checking out what is the version and what runtime is used. I think we can then setup our runtime default if upgrade would not be feasible

For the record: this has been fixed in docker since v20.10.10 https://github.com/moby/moby/releases/tag/v20.10.10

Add support for clone3 syscall in the default seccomp policy to support running
containers based on recent versions of Fedora and Ubuntu. https://github.com/moby/moby/pull/42836.

/close
You can use a custom seccomp with https://github.com/kubevirt/kubevirt/pull/8917, available in v0.59+ or upgrade docker as suggested.
Please reopen if the issue persist


Add current codegpt checkpoint to backend api

@mrkingmarc01 could you confirm whether this all looks good/test locally & merge?
It requires a ./src/codegpt_checkpoint folder. I have sent it to you privately as I could not push it to GitHub due to the LFS quote having been exceeded

Could you check the inference time? And what happens if a very large input is given?

@mrkingmarc01 inference time is ~0.12 seconds for a small fibonacci example on my laptop. it currently crashes when the input is too large, fixed that just now. inference time is larger when the input is larger.


Not correct number of frames in video

I load video with resolution 4096x2178. Number of frames is 1079.
In job statistic I see number of frames is 959 and in xml file number of frames is the same.

@Alexander-Petrikov ,
Why do you think that number of frames is 1079? Indeed we use ffmpeg to extract frames with -vsync 0.
-vsync parameter
Video sync method. For compatibility reasons old values can be specified as numbers. Newly added values will have to be specified as strings always.

0, passthrough
Each frame is passed with its timestamp from the demuxer to the muxer.

1, cfr
Frames will be duplicated and dropped to achieve exactly the requested constant frame rate.

2, vfr
Frames are passed through with their timestamp or dropped so as to prevent 2 frames from having the same timestamp.

drop
As passthrough but destroys all timestamps, making the muxer generate fresh timestamps based on frame-rate.

-1, auto
Chooses between 1 and 2 depending on muxer capabilities. This is the default method.

OpenCV shows me number of frames 1079.
Also I run commands from https://stackoverflow.com/a/28376817. The result is the same with and without option '-vsync 0'

Hi @Alexander-Petrikov ,
Could you please insert here output from the command below?
ffmpeg -i <your video file> -start_number 0 -b:v 10000k -vsync 0 -an -y  %d.jpg

Please run the experiment on your local machine. Also it will be good to run it in cvat container as well but I hope that results should be the same.

Hi @Alexander-Petrikov ,
I'm glad that the issue has been resolved. I will close the discussion in this case.


automatic_signing should default to False not True

In the constructor for FactomClient, I believe that automatic_signing should be set to False. Under the current implementation, a chain cannot be created unless it is signed.
factom_client.chains.create(content = "Test", external_ids = ['Test', 'One', 'Two'])
results in Exception: signer_private_key is required.
Changing automatic_signing to False would allow unsigned chains to be created using the simple syntax above and would require passing an identity chain and private key to the function call if the chain needs to be signed.
The same thing applies to creating entries as well.
I'd also like to hear opinions on making content default to some text so that it is not a mandatory field while creating a chain.
def create(content: str = "", external_ids: list = [], **options):
    """ """
    signer_chain_id         = options.get('signer_chain_id', None)
    signer_private_key      = options.get('signer_private_key', None)
    callback_url            = options.get('callback_url', None)
    callback_stages         = options.get('callback_stages', [])
    sign                    = self.automatic_signing
    ids_base64              = []

    if signer_chain_id and signer_private_key:
        if KeyCommon.validate_checksum(signer_private_key):
            sign            = True
        else:
            raise Exception("Invalid Private Key passed")

    if sign and (signer_chain_id == None or signer_private_key == None):
        raise("The Chain can't be signed unless BOTH signer identity chain and signer private key are passed..")

    if not hasattr(external_ids, '__iter__'):
        raise Exception("External IDs must be iterable")

    if not hasattr(callback_stages, '__iter__'):
        raise Exception("Callback Stages must be iterable")

    if callback_url and not validators.url(callback_url):
        raise Exception("callback_url is an invalid url format.")

    if len(external_ids) < 1:
        raise Exception("Not enough External IDs provided")

    # Should content be a mandatory field? It seems to me that as long as External IDs are passed, a default first entry can be made.
    if content == "":
        content             = "This is the first entry in the chain with External IDs: " + ", ".join(str(_id) for _id in external_ids)

    if sign:
        time_stamp          = datetime.datetime.utcnow().isoformat()
        message             = signer_chain_id + content + time_stamp
        signature           = KeyCommon.sign_content(signer_private_key, message)
        signer_public_key   = KeyCommon.get_public_key_from_private_key(signer_private_key)
        items               =\
        [
            encode_string("SignedChain"),
            encode_string(bytes([0x01])),
            encode_string(signer_chain_id),
            encode_string(signer_public_key),
            signature,
            encode_string(time_stamp)
        ]
        ids_base64          = items + [encode_string(val) for val in external_ids]

    data                    = \
    {
        "external_ids"  : ids_base64,
        "content"       : encode_string(content)
    }

    if callback_url:
        data["callback_url"]        = callback_url
    if callback_stages:
        data["callback_stages"]     = callback_stages

    return self.request_handler.post(factom_sdk.utils.consts.CHAINS_URL, data)

Topic 1: autosigning
This was a subject of much debate. We determined that it is unsafe to write data to the blockchain unsigned and therefore the default behavior should be to automatically sign the entries and chains.
 For this reason, we highly suggest against it. Meanwhile, there may be some use cases that we have not thought of where it is appropriate, so a user can simply instantiate their instance of the SDK with auto-signing off.
I do want to fill you in on two roadmap items we would like to add to the SDKs, but do not have the resources to do in the near term (the SDK is open source and we would be happy for community members to contribute):

Much like Stripe does with their SDKs (see authenticate example here), while the configuration is set during instantiation, we will update all methods to allow for overrides to be passed for each configuration parameter.
We are aware that some advanced customers may use alternative methods to sign their entries and chains. For this reason, the signature verification enumeration is [true/false/custom function] when reading chains and entries. In the spirit of such, we also hope to allow users to pass in their own functions for custom chain and entry signing methodologies.

Topic 2: Required Content Field
The data being secured within the blockchain should go within the Content field. By doing so, it enables the content that is being secured to have it's own location and be uniquely accessible for generating a digital signature.
As such, writing an entry or chain with only external IDs will provide no value as there is no data being secured via the digital signatures.

I understand these may not be the answers you were hoping to hear, but for 99% of Harmony users, these "guiderails" are important for helping them rapidly implement blockchain within their applications.
I believe we have designed these SDKs in a way that supports these users while also leaving the flexibility for all foreseeable (and countless unforeseeable) use cases. If you can share concrete use cases that we have unintentially prevented we would be more than happy to reconsider. I do want to provide a disclaimer that we are extremely resource constrained at this time working on future projects and will need to prioritize any changes accordingly.

Topic 1 (UPDATE)
Based on offline discussions, @kirit93 provided a very strong use case for wanting automatic_signing to occasionally be false.
An undocumented concept at the Harmony level is the fact that on the Factom Blockchain, chain_id's can be precomputed (see docs and note that a Chain Name is the set of external_ids used when creating it).
In certain scenarios, where multiple entities need to write data to the same chain, but not have any off-chain communication, it is important that they are able to precompute the same chain_id to write to. In order to do so, creating an unsigned chain is necessary to avoid the inclusion of the unpredictable external_ids that are added when signing (such as the timestamp and signer's identity chain_id - see #11 ).
As such, we will implement the ability to override the automatic_signing instantiation parameter on a per method call. For example, a user can instantiate an instance of the SDK with automatic_signing set to true (the default), yet call the create chain method with an override of automatic_signing set to false for a given execution.
@kirit93 has been so kind as to implementing this and creating a PR #14 that addresses his needs.
This issue will be closed, as @kirit93 's needs have been addressed and the planned go-forward parts of this issue (implementing the "per method override" functionality globally across the SDK) will be broken out into a new one.


DO NOT MERGE; experiment with local build of rust tooling image

This is an experiment to see if building a platform-native tooling image will help with performance issues on the Mac M1.
What I've done here is basically copy the build scripts from https://github.com/harrison-ai/dataeng-tooling-rust/ into a local subdirectory, and configured docker-compose to build the image locally rather than pulling from dockerhub. In theory, if you run this on an M1 mac, it should build an arm64 image rather than using the published amd64 image under emulation.
To start, I've also commented out a bunch of cross-compilation tooling which I suspect will need a bit of tweaking to build on a new system.
On my machine, the following sequence of commands work nicely and in a timely manner:

Checkout this branch
Run make dc-build to build the local docker image
Run make test to use it to compile the code and run the tests

@TanyaSrinidhi, when you get a chance, could you please try out the above on your machine and see if it (a) works and (b) improves the speed any?

The new image is live and seems to be working correctly, so we can close this out


Page not loading content from external sources.

I cannot figure out if the problem comes from my code or it is a bug.
I have this simple page that is loading jQuery but it seem that it is not working.
My C#:
var config = Configuration.Default
			  .WithCookies()
			  .WithJavaScript()
			  .WithCss()
			  .WithConsoleLogger(context => new ConsoleLogger())
			  .WithDefaultLoader(setup =>
			{
				setup.IsResourceLoadingEnabled = true;
				setup.IsNavigationEnabled = true;
			});
var address = "http://localhost:5000";
var browsingContext = BrowsingContext.New(config);

var document = await browsingContext.OpenAsync(address);

var title = document.Title;

var downloadButton = document.QuerySelector("#downloadButton") as IHtmlButtonElement;
Console.WriteLine("Click");
downloadButton.DoClick();

Console.WriteLine("Clicked");
Console.WriteLine("Title: " + title);
Console.WriteLine("Title: " + document.Title);

My js:
<script src="~/lib/jquery/dist/jquery.js"></script>
<script type="text/javascript">
    $(function(){
            document.title = 'Hello!';
            $('#downloadButton').click(function()
            {
                document.title = 'I have been clicked! This means jQuery is loaded.';
            });
        });
</script>

The web page works perfectly in the browser but not in the "code".
Can someone point out what I am doing wrong?

Code looks alright on a first glance.
Two things:

Is jQuery really loaded? Not sure if the tilde is handled correctly. Please verify that the transfer completes.
The inner part (callback to the jQuery ready) is executed after everything finished. This includes the C# code (as it has higher priority being dispatched immediately after the document has been loaded, while the JS code is dispatched whenever the TPL can run it). Can you verify that the inner part is never completed? (otherwise it would be invoked with a slight delay, say O(10) ms)

Hope this helps to determine if its a bug or not.

I haven't heard back in a while, so I assume that it could be resolved.


Conical Frustum Calculator

Calculating various properties of conical frustum with the given radii such as slant height, volume, tsa , lsa.
I'd like to work on it.

@shrishti-c It is already present in the 3d shape section. You may close this issue.


Admin: partial refund instead of full refund

Problem Description
When creating an refund via backend -> order detail -> payone -> [Refund]-Button
it will create a partial refund and set order state `partially_refunded' even if all line items are selected ... it should create full refund instead. ...
System Info
Shopware <IP_ADDRESS>
PayonePayment 6.0.1
possible solution .
add maxRefundAmout var like in v5.0.2 ...
refund_button .patch.txt

Hello @hgnb99 ,
Thank you for your message.
The problem with the old version of the plugin was that after a partial capture, the full capture button no longer worked because a full capture was no longer possible.
For this reason, we decided to look at which items were still in the order and then create a refund for these items.


Optimize Ledger Performance

Currently the ledger claims write locks anytime an put operation is performed, and read locks anytime a get operation is performed, under significant load it will suffer from performance issues due to the unintelligent mutex locks.
Instead we should enable complete write locks anytime the ledger itself is updated, which only occurs at the end of of a put operation, because before hand we update the corresponding object/bucket ledger entry.  Then when the individual buckets are being altered, we can claim a write lock solely for that bucket. Additionally we can lock individual objects from within the bucket separately.
If implemented properly (whether it be mutex's, atomic, or channel operations) we can ensure that the only time we globally bblock is when the ledger is updated on disk.

Looking through the code, I believe the interface between xObjects and LedgerStore needs a redesign.
Following the code for xObjects.PutObject for example:
x.ledgerStore.BucketExists calls:
getLedger with read lock
x.addObjectToBucketAndIPFS calls :
bucketFromIPFS ->  x.ledgerStore.GetBucketHash -> le.getLedger() with read lock
x.ledgerStore.UpdateBucketHash calls:
UpdateBucketHash -> getLedger() and putLedger(ledger) with write lock
 x.ledgerStore.AddObjectToBucket calls:
AddObjectToBucket -> getLedger() and putLedger(ledger) with write lock
What are the problems?
Locks are held and released many times within the operation, meaning the ledger state could change between locks.
Bucket hash is saved before object hash. If a crash occurred in between (such as power outage), then the ledger could be saved in an inconsistent state.
Each get and put ledger operation is expensive, and increases linearly with the number of objects.
What should happen:
A single write lock per bucket over the entire operation. At most one get and one set ledger call per operation.
The ledger data structure should be split up to take advantage of the datastore's native object lookup capacities.
Considering we only support a signal master to the ledger (otherwise we need to build it on top of a distributed transactional database). we can cache ledger state without worrying about cache invalidation.
What helps
A standard unit testing library for minio.ObjectLayer

Good work and I agree with your assessment, as well as your proposed solution and keep support to a single master. One thing to keep in mind is that the ledger structure will need to be able to temporarily store information related to multipart uploads. Once the multipart upload is complete, the ledger state information with regards to that multipart upload should be removed.
Feel free to get started on this whenever, however I think now that we are both working on the codebase and touching slightly different parts, we should work in branches instead of directly on master.

closed by #16


Incompatible with Grails 3.2.M2

When executing dbmGenerateGormChangelog I get Command execution error: Bean named 'sessionFactory' must be of type [org.springframework.beans.factory.FactoryBean], but was actually of type [org.hibernate.internal.SessionFactoryImpl]
Grails: 3.2.0.M2
database-migration: 2.0.0.RC4 and 2.0.0.BUILD-SNAPSHOT
Sample project: https://github.com/KerchumA222/database-migration-issue

It looks to be a serious reason for this: Liquibase Hibernate extension is not compatible with Hibernate 5 yet. See this issue https://github.com/liquibase/liquibase-hibernate/issues/96
However, it should be done soon.

Hi, I tried Grails 3.2.0.RC2 with the DB Migration plugin with Hibernate4 and Hibernate5, for both cases I receive the same error as above. I have tried to reconfigure multiple times, but no luck. As test I retried with grails 3.1.11 and everything worked fine to generate the initial changelog from GORM.
So eventhough there seems to be an issue with Hibernate5 there is also a problem with Hibernate4 for grails 3.2.x

I tried to update the plugin to grails 3.2.x but having issues with not an actual https://github.com/liquibase/liquibase-hibernate hibernate5 release. And after building this project myself the API of the HibernateDatabase class is changed.
Not enough experienced to see what needs to be done to upgrade this plugin.

First we need a release of liquibase-hibernate to come out that is compatible with at least Hibernate 5, then we can deal with the GORM 6 differences

Yeah.. The master branch is compatible. But not released to a maven repo.

He's waiting for more people to test.

https://github.com/liquibase/liquibase-hibernate/issues/96

I tried to update this plugin but not sure about how to handle the API changes

liquibase-hibernate has been updated and released to maven https://github.com/liquibase/liquibase-hibernate/issues/96...

@kuceram @ajdevries @littleiffel @Kipriz @KerchumA222 If you all could update your plugin to 3.0.0.BUILD-SNAPSHOT and give it a try, I would appreciate it! I've tested that command with Grails 3.2.1 and Hibernate 5 with success.

Thanks I wil try it today

@jameskleeh I've tested creating migration script dbm-gorm-diff as well as running the application with migrations. Everything works fine, however I faced same non-breaking issues reported here:

I also see INFO 10/28/16 11:37 AM: liquibase: Can not use class org.grails.plugins.databasemigration.liquibase.GormDatabase as a Liquibase service because it does not have a no-argument constructor in the log
I cannot see migration log despite my settings logger("org.grails.plugins.databasemigration", ALL, ['STDOUT'], false)

Also I had an issue having this setting in application.yml
dataSource:
   dbCreate: do-nothing

It was working with old version. When I change the value to none (what is recommended in Grails Doc), it started to work.

@jameskleeh not working for my...


Autorest Regen Preview to 3.0.0-alpha.20230913.2 by Dapeng Zhang from refs/pull/3672/merge

Triggered from https://github.com/Azure/autorest.csharp/pull/3672

API change check
API changes are not detected in this pull request.


Update StartDeeplinkJava.java

This change allow Deeplink module's 'deeplink name (request path) to be able to set including '/'.

Sorry, I forgot commit updated file 'DeepLinkModule.mpr'. I will commint and do new pull request.

Sorry, I forgot commit updated file 'DeepLinkModule.mpr'. I will commint and do new pull request.


Maintenance: docs versioning & labels

Summary
While working on the docs I have realized that the when we touched the workflow that publishes the docs a couple of months ago we have broken the labeling/versioning.
Currently the docs that should be published as staging/dev when the docs are merged are not selectable, and the version label has changed convention which conflicts with the ordering of the labels in the docs dropdown.

Why is this needed?
Because currently we are unable to:

Select the stage label to see the docs once they are merged
Select the labels in chronological order with most recent on top (currently v1.8.0 which is latest is towards the bottom of the dropdown)

Which area does this relate to?
Automation
Solution
Ideally, we should get to a state that has:

All the version numbers without the v prefix - this way we maintain the ordering in the dropdown with the more recent on top
Remove all orphan labels like dev, main, and the ones that start with v (i.e. v1.7.0 and v1.8.0)
When docs are merged to main, they are published under stage, which should appear in the dropdown as last (at the bottom)

Acknowledgment

[X] This request meets Lambda Powertools Tenets
[ ] Should this be considered in other Lambda Powertools languages? i.e. Python, Java, and .NET

Future readers
Please react with 👍 and your use case to help us understand customer demand.

I'll be working on this one, we can't rebuild the docs until this is fixed.


disable db.json file rewriting during POST request

hi! i have a json.db file, which contains response objects for a client. i want to simulate authentication scenario by POST http request, where user sends his credentials to the json-server (for example: login, password) and get a jwt-token pair as a response. but after this request, db.json file is changed and route object has a user credentials instead of token pair.
how can i make json-server immutable? it has read-only flag, but it's just deprecate all query types besides GET, and it's not what i want. thanks!

Hello kotoo,
Not an answer to your question, a question instead. I am failing to get the db.json to work. May you please see if you have an answer to my issue? https://github.com/typicode/json-server/issues/821

@msafronov did you resolve this issue ? i get the same problem

You can use a middleware
# mock-api/signIn.js
module.exports = (req, res, next) => {
    delete req.body.idToken
    next()
}

$ json-server --watch mock-api/db.json --middlewares mock-api/signIn.js

For @msafronov, @mcherb, and anyone else who stumbles on this, the solution provided here https://github.com/typicode/json-server/issues/581#issuecomment-463229983 worked for me.
I ended up doing something like this:
// middleware.ts
module.exports = (req, res, next) => {
    if (req.method === 'POST') {
      req.method = 'GET';
    }
    next();
}

$ json-server --watch db.json --middlewares middleware.ts

Hey bro, I think that I've found a solution to a 'read-only', I don't know if this was a recent update or not but here we go.
Looking at the types of js-server .defaults() I found a guy callend MiddlewaresOptions and  on it we have a param called readyOnly which has a description: "Accept only GET requests", so if you use this it might solve your problem:
const middlewares = jsonServer.defaults({readOnly: true});
server.use(middlewares);

The only problem is if you want to do a POST, on readOnly mode i think that the server is just able to handle GET requests


bump mayanode for latest changes in openapi spec

There was an error in a field in the /mayachain/constants where the name from the openapi spec didn't match the actual field name returned by the api (int64_values instead of int_64_values) which messed with the types generated from the openapi-generator. This bump is intented to get that fix and be able to publish #806 that needs this fix to get all tests up and running.

The PR only bump the version but not fix any bug. Are there any missing commits?

That is it @hippocampus-web3 , there aren't any bugs/corrections at the moment. The only point is to generate the new types from the openapi spec that corrects the field that I mentioned.

To re-iterate what @hippocampus-web3  said we don't push a new version unless there are changes to the code base, and this PR has no changes to the code base.  If there are new types from the openapi spec then generate the new types and push the new spec.

You guys are right, my bad. The latest commit includes the changes I mentioned. Let me know if I need to make any other adjusment.

Please fill the change log in for xchain-mayanode.
There has been a change to xchain-midgard but no changes to the change log or the package version number.
either discard changes or add the required info. Run yarn test in root folder to check to make sure nothing has broken with the new specs. If you are changing xchain-midgard then xchain-midgard-query needs checking and updating, and packages that depend on it > xchain-thorchain-query & xchain-thorchain-amm.
cc @hippocampus-web3

Done @Thorian1te , I removed the changes from the midgard package.


Feature/remove bower

remove bower dependency

Build failed form frontend-maven-plugin  unable to run yarn


Question: how to create a windows shortcut for a Graphic linux app?

I'd like to use the konsole terminal on WSL.
I was able to install it and run it by executing  export DISPLAY=:0; konsole& on WSL.
Is there  way to create a windows shortcut for being able to launch konsole from the Windows start menu?

#637 (message).

@therealkenc thanks for the pointer.
I ended up creating a desktop shortcut with the following target C:\Windows\System32\bash.exe -c "DISPLAY=:0 konsole"
The only problem I have is now two windows: the bash window and the konsole window.
Is there a way to automatically close the bash window while keeping the konsole window open?

This is what I use to start emacs without a window:
Set oShell = CreateObject ("Wscript.Shell")
Dim strArgs
strArgs = "wsl zsh -c 'DISPLAY=localhost:0 emacs'"
oShell.Run strArgs, 0, false

Saved as file emacs.vbs.
Source
https://superuser.com/questions/140047/how-to-run-a-batch-file-without-launching-a-command-window

Thanks @goost it wirks fine.
I put the .vbs on my desktop.
Do you know a way to customize the icon?
Currently I have the default vbs icon and I find it a bit ugly.

Just wanted to point out, since this issue comes up in google searches, there's a utility called wslusc that makes making links easy.
wslusc -g emacs -e "export GDK_SCALE=2;"

creates a normal desktop link whose target is C:\Windows\System32\wscript.exe C:\\Users\\Will\wslu\runHidden.vbs bash.exe -c "cd ~; export DISPLAY=:0; export GDK_SCALE=2; emacs"

Thanks @goost it wirks fine.
I put the .vbs on my desktop.
Do you know a way to customize the icon?
Currently I have the default vbs icon and I find it a bit ugly.

If you do want to take the .vbs route to launching UI apps then put the vbs file elsewhere, right click on it in File Explorer and chose "create a shortcut". If you move that new shortcut on to the desktop then you can change its icon, again through a right click. I auto-start vcxserv and have various shortcuts on my desktop, e.g. terminator instead of the default terminal.

Use wslg.exe on Windows 11.
Create a shortcut and fill in the execution path.
C:\Windows\System32\wslg.exe gedit


Add check for a substantial annotation when loading amr counts

Description
Meant to handle this error in pipeline_run.rb, method db_load_amr_counts:
irb(main):003:0> Sample.find(26995).pipeline_runs[0].db_load_amr_counts
Traceback (most recent call last):
        3: from (irb):3
        2: from app/models/pipeline_run.rb:552:in `db_load_amr_counts'
        1: from app/models/pipeline_run.rb:558:in `block in db_load_amr_counts'
NoMethodError (undefined method `split' for nil:NilClass)

It appears that there are sequences without annotations in the ARG Annot database. This pr handles that case and adds error checking for every key it tries to read.
Also, too, I added more Rspec tests specifically to make sure db_load_amr_counts() can handle what we can throw at it.
Tests

Run rspec test with docker-compose run --rm web "RAILS_ENV=test rspec spec/models/pipeline_run_spec.rb"

LGTM! But I'll leave the final approval to someone who's familiar with why the first fix didn't work.


Added a few things to reflect new functionality

Now we've released for Bizspark and Action Pack (MPN) so this article needed to be updated.

Hi @adpick, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

It looks like you're working at Microsoft (adpick). If you're full-time, we DON'T require a contribution license agreement.

If you are a vendor, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;


refactor: testing again

Description
copilot:summary
Related Issue

Explanation of Changes
copilot:walkthrough
Checklist before requesting a review

[ ] I have performed a self-review of my code.
[ ] Implemented tests for new features.
[ ] I tested the features already implemented.
[ ] Added usage examples in the readme.

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


Generic LoggedVar example no longer works

v no longer has a type that makes sense:
from typing import TypeVar, Generic
from logging import Logger, getLogger

T = TypeVar('T')

class LoggedVar(Generic[T]):
    def __init__(self, value: T, name: str, logger: Logger) -> None:
        self.name = name
        self.logger = logger
        self.value = value

    def set(self, new: T) -> None:
        self.log('Set ' + repr(self.value))
        self.value = new

    def get(self) -> T:
        self.log('Get ' + repr(self.value))
        return self.value

    def log(self, message: str) -> None:
        self.logger.info('%s: %s', self.name, message)

v = LoggedVar(1234, "name", getLogger("oh_no"))
v.get()

We regressed somewhere; I'll bisect it.

Before #666:

Neither are correct, so this isn't exactly a regression, just something we should fix around Generic.


[BUG] unwanted line feeds within "injuries_YYYY.csv"

Is there an existing issue for this?

[X] I have searched the existing issues

Have you installed the latest development version of the package(s) in question?

[X] I have installed the latest development version of the package.

What version of the package do you have?
not relevant, I just want to use the downloaded csv
Describe the bug
Within the csv files for injuries there are unwanted line feeds in column "practice_status" for line items where this field is empty.
This leads to issues when loading the file e.g. with pandas.read_csv.
Example file: https://github.com/nflverse/nflverse-data/releases/tag/injuries/injuries_2023.csv
Line Item 26 "Robert Tonyan"

Reprex
not relevant, I just want to use the downloaded csv

Expected Behavior
I would expect that there are no line feeds withing "cells" of a csv file whatsoever.
nflverse_sitrep
not relevant, I just want to use the downloaded csv

Screenshots
No response
Additional context
No response

I have no issues either opening the csv in a typical file reader nor issues reading the specific file into pandas.
import pandas as pd
injuries = pd.read_csv('https://github.com/nflverse/nflverse-data/releases/download/injuries/injuries_2023.csv')
injuries.iloc[24]
#> season                                       2023
game_type                                     REG
team                                          CHI
week                                            1
gsis_id                                00-0033757
position                                       TE
full_name                           Robert Tonyan
first_name                                 Robert
last_name                                  Tonyan
report_primary_injury                        Back
report_secondary_injury                       NaN
report_status                        Questionable
practice_primary_injury                       NaN
practice_secondary_injury                     NaN
practice_status                            \n
date_modified                2023-09-09T21:52:37Z
Name: 24, dtype: object

I see the new line character, but do not see why it would cause an issue loading the csv into python. Can you please give me a reproducible example illustrating your issue with loading this file into python? You can use the reprexpy package in python to create reprexes.

Hi John,
thanks for the fast reply. I made a mistake at my end. I used the wrong file path
'https://github.com/nflverse/nflverse-data/releases/tag/injuries/injuries_2023.csv'
instead of
'https://github.com/nflverse/nflverse-data/releases/download/injuries/injuries_2023.csv'
which lead to a "ParserError: Error tokenizing data." when trying to read the file with pandas.
I then downloaded the file manually and checked for potential issues and stumbled across the extra line feeds.
After fixing them, I was able to load the file and assumed this was the root cause.
Would have been a smart move to check reading the local file without any fixes first.
Sorry for occupying Your time on this and thanks for the response.
Your example helped me to figure out the real issue at my end.
I love Your great efforts on this project!
Regards Henning


Fix: Fixed the issue of app crashes due to lack of parent of snackbar…

Fixed the issue of app crashes due to the nullability of the parent view in which snackbar is drawn.  I just added null checks for the parent of the view before drawing a snackbar.
Issue #187

To be clear, I would take style refactoring PRs, but they'd need to be discussed beforehand just to make sure we make changes that are consistent.

Small other comment: I'm trying to keep the commit messages close to or under 50 characters, with sentences using the present tense with the tag (thanks for applying the tag by the way). Here is what I'd put as commit message for this:
Fix: App crashes due to lack of parent of snackbar

Fixes #187

The last line will close the issue #187 and keeps a link between the PR and the issue from a "meta" standpoint.
Thanks again for the fix!

ACK 02bfd0cf264e7d5ed4b5f04168fb4dd8254a1724.


[d3d9] NFS3 black screen on start with dxvk

Software information
Game can be downloaded here.
System information

GPU: RX 560
Driver: Mesa 20.1.4 - kisak-mesa PPA
Wine version: 5.13-staging from ubuntu ppa
DXVK version: 1.7

Apitrace file(s)

nfs3.trace.zip

Log files

d3d9.log: nfs3_d3d9.log
d3d11.log:
dxgi.log:

Wine 5.16 + latest dxvk, no changes.

This is probably a Wine bug. I've tested a version of the game in #1695 and didnt have that issue with DXVK on Windows.

Wine 6.0-rc1 + dxvk 1.7.3, same problem
wine6.0rc1.log

Wine 6.7-staging + dxvk 1.8.1, no change.

@soredake would be able to test again on latest dxvk and driver? 🙂

@Blisto91 unfortunately, i don't use linux anymore, but if you can suggest me a live usb distro with latest mesa on which i can install wine i'll test it.

Hmm i don't know that myself.
Would you be able to try and test it on windows? If that's what you are using ofc.
You could just place the dxvk 1.7 32bit d3d9 dll next to the games exe and see if it reproduces. If yes then try again with latest version.

Tried with dxvk 1.7/1.10.1 on manjaro iso, still black screen, works on windows + dxvk.

Thanks for the testing.
Could i get you to also give it a try with the latest unreleased master build?
You can find a download of it here https://github.com/doitsujin/dxvk/actions/runs/2615690694

You can download the game here (it's abandonware anyway). I'll test this build later.

Damn. Thanks for testing tho!

Game can be downloaded here.

Isn't this just a patch? The same link as in https://www.pcgamingwiki.com/wiki/Need_for_Speed_III:_Hot_Pursuit#Need_For_Speed_III_Modern_Patch

Download the Need For Speed III Modern Patch.
Copy FEDATA and GAMEDATA directories from the NFS3 CD to a new empty folder.
Extract contents of this archive into that folder with replacement of files.
Run the game.

The patch itself contain a bunch of bundled drivers, which likely outdated a bit and newer versions may contain fixes.
From the patch readme:
Recommended:
- nGlide (Glide 3x API emulator) supports fog effect, renders sharp fonts in the menu, uses DirectX 9, supports minimizing and windowed mode (Alt+Enter to switch). Recommended for modern computers with Windows XP/7+.
- dgVoodoo (Glide 3x API emulator) supports fog effect, renders sharp fonts in the menu, supports minimizing and windowed mode (Alt+Enter to switch), uses DirectX 11, but requires very powerful GPU.
- DX7 supports fog effect, but doesn't support minimizing, and FPS may be a little lower than with nGlide or DX8 on the Windows + because of limited Direct3D 7 support. Recommended for old computers with Windows 98/Me/XP.

Other:
- DX8 works smoothly supports fog effect, but doesn't support minimizing, can't display intro video, and on some systems doesn't render dashboard on “In Car” camera view.
- DX6 the same as DX7, but utilizes Direct3D 6. Just for a collection :)
- DX5 is based on the original thrash driver of the NFS3. However, it doesn't support fog effect, it may not work in the Windows 8+, looks worse than others in some details (e.g. artifacts when a large number of spray or dust from under the wheels).
- SoftTri doesn't use hardware acceleration and predictably it looks worst. May not work on Windows 8+. Useful for running the game on virtual machines.
- Glide3x is intended for using with the real 3dfx Voodoo hardware through the Glide 3x API.

So, the other options to use with dxvk could be dgVoodoo or DX8+d3d8to9, or manually updated nGlide maybe. On properly patched original game.

Isn't this just a patch? T

Author removed portable version after my last visit, i've now tested nfs3 from here https://archive.org/details/need-for-speed-iii-hot-Pursuit combined with patch from here https://veg.by/en/projects/nfs3/
No luck, just black screen.

@soredake Can you verify this issue goes away if you make a file called dxvk.conf next to the exe and insert d3d9.enableDialogMode = True

Works, played a bit no issues observed.

@Blisto91 yes, with this option it finally works.


FOR UPDATE cannot be applied to the nullable side of an outer join

I'm updating a project from Django 2.2 to 3.2, as part of this change we're upgrading hijack from 2.3.0 to 3.1.6.
Since hijack 3 is a completely new implementation I've removed everything, and then followed the simple guide in the docs.
However when I try to hijack a user I get the following error:
NotSupportedError at /hijack/acquire/
FOR UPDATE cannot be applied to the nullable side of an outer join
The full trace:
Environment:

Request Method: POST
Request URL: http://localhost:8000/hijack/acquire/

Django Version: 3.2.12
Python Version: 3.9.10

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)

The above exception (FOR UPDATE cannot be applied to the nullable side of an outer join
) was the direct cause of the following exception:
  File "/usr/local/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/hijack/views.py", line 92, in dispatch
    return super().dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python3.9/contextlib.py", line 79, in inner
    return func(*args, **kwds)
  File "/usr/local/lib/python3.9/site-packages/hijack/views.py", line 67, in dispatch
    next(get_user_model().objects.select_for_update().iterator())
  File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 353, in _iterator
    yield from self._iterable_class(self, chunked_fetch=use_chunked_fetch, chunk_size=chunk_size)
  File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 51, in __iter__
    results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  File "/usr/local/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1175, in execute_sql
    cursor.execute(sql, params)
  File "/usr/local/lib/python3.9/site-packages/debug_toolbar/panels/sql/tracking.py", line 205, in execute
    return self._record(self.cursor.execute, sql, params)
  File "/usr/local/lib/python3.9/site-packages/debug_toolbar/panels/sql/tracking.py", line 140, in _record
    return method(sql, params)
  File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 98, in execute
    return super().execute(sql, params)
  File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 66, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python3.9/site-packages/django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)

Exception Type: NotSupportedError at /hijack/acquire/
Exception Value: FOR UPDATE cannot be applied to the nullable side of an outer join

Is locking the User table is new to hijack 3? I never had any problems with hijack 2.
I've tried commenting the LockUserTableMixin out and it works.
There's definitely something there that causes conflicts.

Hi @gdvalderrama,
Thank you for reaching out. Version 3 is a complete rewrite of the package and with a strong focus on security. We use the DB lock to prevent race conditions in which a user could lose the hijack history. We don't actually write to the user table, but it's the only lock that is readily available in Django. Of course, you can overwrite the view and remove the lock. However, I must strongly advise against it, as this could lead to unexpected session states and might be use for a session injection attack.
I am somewhat curious, though, so see your user model. Is your user model some kind of unmanaged database view?
Best
Joe


[FEATURE REQ] Add ShouldTransferCallbackAsync to Azure.Storage.DataMovement

Library name
Azure.Storage.DataMovement
Please describe the feature.
Add ShouldTransferCallbackAsync from the previous datamovement sdk to the new one to support backwards compatibility. The callback helps to fine tune which blobs should be transferred in a given container to container copy. Or enable adding some async linq filtering capability to be added onto GetBlobsAsync in BlobStorageResourceContainer.cs.

Adding Service team to look into this.

Relabeled as a feature request.

Without this feature we cannot migrate from v2 without rewriting copy logic.


AVS as a compute-technology choice???

Love the flowchart, but why isn't AVS (VMWare Solution) included as potential choice?

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 510808e8-db5d-6b07-9a04-6edb743a2dfc
Version Independent ID: 20d098aa-ef31-cb26-d677-765cfc9a7164
Content: Choose an Azure compute service - Azure Architecture Center
Content Source: docs/guide/technology-choices/compute-decision-tree.yml
Service: architecture-center
Sub-service: azure-guide
GitHub Login: @paolosalvatori
Microsoft Alias: paolos

@micrileyatx
Thanks for your feedback! I've assigned this issue to the author who will investigate and update as appropriate.

@AjayBathini-MSFT @micrileyatx I'm not the author of the article, I'm just the one who made the last change 😄 there are a few compute services that miss in the flowchart like Azure Batch or Azure CycleCloud.

@micrileyatx - I know it's been a while. After review, AVS is currently outside the scope of this current article, but it's still on our radar for future improvements.

#please-close


Declare some more types

Coverage increased (+0.5%) to 64.358% when pulling 001548c5e8cefe3144680460462333cebb2c974f on AlanCoding:types_galore into dd18405293c1c96d618f6f567bf4d8da6dc22192 on ansible:master.

Coverage increased (+0.5%) to 64.358% when pulling 001548c5e8cefe3144680460462333cebb2c974f on AlanCoding:types_galore into dd18405293c1c96d618f6f567bf4d8da6dc22192 on ansible:master.


Installation under Debian Jessie is not tested

Prerequisites

[ X ] Put an X between the brackets on this line if you have done all of the following:

Checked that your issue isn't already filled: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aidealista
Checked that there is not already provided the described functionality

Description
This role is not tested under Debian Jessie, but meta/main.yml says that could be installed under this OS.

Debian Jessie is not supported yet. The EOL will be the 30 June, 2020.
https://wiki.debian.org/LTS


Don't change part URIs on cloning (or SaveAs)

This replaces direct calls to PartUriHelper with an indirection via IPartUriFeature. When cloning, this feature will be replaced so that it doesn't try to get a different URI.
Fixes #1197

/cc @adamshakhabov @hunyu


val_loss vs loss question

I wrote the following code

max_features = embeddings.shape[0]
embedding_dims = embeddings.shape[-1]
out_dim = 5
maxlen = 100
model = Sequential()
model.add(Embedding(max_features, embedding_dims, weights=[embeddings], input_length = maxlen, trainable=trainable))
model.add(Convolution1D( nb_filter = nb_filter, filter_length=filter_length, border_mode='valid', subsample_length=1  ))
sh = model.layers[-1].output_shape
model.add(MaxPooling1D(pool_length=sh[-2]))
model.add(Flatten())
model.add(Dense(Dense_size))
model.add(Dense(out_dim, activation='linear'))
model.compile(loss='mse', optimizer=opt)

The output when fitting is this one
Epoch 1/20
314/314 [==============================] - 0s - loss: 0.7279 - val_loss: 0.0430
Epoch 2/20
314/314 [==============================] - 0s - loss: 0.5672 - val_loss: 0.0424
Epoch 3/20
314/314 [==============================] - 0s - loss: 0.5391 - val_loss: 0.0424
Epoch 4/20
314/314 [==============================] - 0s - loss: 0.5137 - val_loss: 0.0434
Epoch 5/20
314/314 [==============================] - 0s - loss: 0.4909 - val_loss: 0.0440
Epoch 6/20
314/314 [==============================] - 0s - loss: 0.4703 - val_loss: 0.0444
Epoch 7/20
314/314 [==============================] - 0s - loss: 0.4508 - val_loss: 0.0421
Epoch 8/20
314/314 [==============================] - 0s - loss: 0.4329 - val_loss: 0.0419
Epoch 9/20
314/314 [==============================] - 0s - loss: 0.4161 - val_loss: 0.0422
Epoch 10/20
314/314 [==============================] - 0s - loss: 0.4005 - val_loss: 0.0438
Epoch 11/20
314/314 [==============================] - 0s - loss: 0.3865 - val_loss: 0.0421
Epoch 12/20
314/314 [==============================] - 0s - loss: 0.3724 - val_loss: 0.0432
Epoch 13/20
314/314 [==============================] - 0s - loss: 0.3607 - val_loss: 0.0456
Epoch 14/20
314/314 [==============================] - 0s - loss: 0.3485 - val_loss: 0.0418
Epoch 15/20
314/314 [==============================] - 0s - loss: 0.3374 - val_loss: 0.0433
Epoch 16/20
314/314 [==============================] - 0s - loss: 0.3273 - val_loss: 0.0459
Epoch 17/20
314/314 [==============================] - 0s - loss: 0.3181 - val_loss: 0.0417
Epoch 18/20
314/314 [==============================] - 0s - loss: 0.3089 - val_loss: 0.0435
Epoch 19/20
314/314 [==============================] - 0s - loss: 0.3011 - val_loss: 0.0441
Epoch 20/20
314/314 [==============================] - 0s - loss: 0.2935 - val_loss: 0.0453

>>> model.evaluate(train_data['features'],T_l)
314/314 [==============================] - 0s
0.042102484922310349
>>> model.evaluate(validation_data['features'],t_l)
34/34 [==============================] - 0s
0.04533623531460762

question no.1
Why does the val_loss start at a low point and continues as is ?
Question no.2
Since 'loss' shows the error on training set
why is the error 0.042102... on training set when evaluating
but 0.2935 on epoch 200 ?
I tried many models, including LSTM and the outcome is the same.
I shuffled the data before feeding them to the model for fitting.
I also changed my labels' values to reside between 0  and 1 but not much changed.
What am i doing wrong ?
Thank you in advance for your support

Also please do not make a reference on FAQ:
http://keras.io/faq/#why-is-the-training-loss-much-higher-than-the-testing-loss
Because that does not answer my questions.
Also
When i trained the model i also tried using full batches of the training set but the results extracted behaved the same way.

Hi, did you figure why that happens?
I am facing the same problem..

Same problem here, my dataset is a very noisy one and others algorithms not based on ANN doesn't extracts any patterns, I tested many algorithms from CARET toolset and none of them learn the pattern.
I made a dNN with 6 layers and 100-80-50-... neurons at each layer for 45 features and 50000 entries , the 1% are '1' and 99% is '0' , but I balanced it by copy, now I have 50-50 but the group of 1% is completed with random selected rows of themself until reach 50-50.
If I do undersampling from '0'  there are no more than 1000 registers (500+500).


Redirection inside onFail results in warning about  setting State on an unmounted component

https://github.com/fnzc/react-native-pincode/blob/master/src/PinCodeEnter.tsx#L143
Maybe this code could be moved at very end so it will be safe to unmount component on fails and this would also allow for user to manage pinAttemptsAsyncStorageName property in AsyncStorage on thier own

Moving this at the end doesn't fix the warning.
Putting a delay in the onFail removes it so I'll keep on investigating to find what is updating the component after the onFail.
      <View style={styles.container}>
        {this.state.ok && <PINCode status={'enter'} timeLocked={5000} onFail={async () => {
          await delay(2000)
          this.setState({ok: false})
        }}/>}
      </View>

So it's because of the 'shake' animation when the user fails. It's you don't wait ~1500 ms, you get the warning.
I don't know if you need the animation or not.
I could put a 1500ms delay before firing the onFail prop, or I could remove the animation based on a new property...or something else I can't think of :p
What do you think?
Cheers,
Jeremy

It think 1500ms delay will be straight forward solution for this :)

Fixed in the new version :).
Cheers,
Jeremy


⚠ Samsung has degraded performance

In 0bc0018, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2469 ms

Resolved: Samsung performance has improved in 1a63023.


Please delete the depreciated useAntdTable folder under the lib folder

Using this with typescript and next.js, however, when I build the typescript, it always gives me the error for
ReferenceError: regeneratorRuntime is not defined

And it is coming from
node_modules/@umijs/hooks/lib/useAntdTable/index.js:12:41

I have to manually delete the folder in order for it to build successfully.
Thank you!

The fastest way is add regenerator-runtime ：https://hooks.umijs.org/docs/faq#when-i-use-umi-hooks-i-get-an-error-regeneratorruntime-is-not-defined-how-can-i-solve-it
And we will fix this as soon as possible.
thank you for your feedback.


dnd-moved callback only firing every other time.

I am using the dnd-drop and dnd-moved attribute directives for a list of items:

The outer ul has the dnd-drop directive on it which calls a function that always returns the item parameter.
The li elements have a dnd-moved directive that calls a function to splice the original element out of the list.

When I drag an item the first time, both callbacks fire. The second time I drag an item, regardless of whether it is the same item or the same list, only the drop callback is called. I keep getting duplicates in my lists because the moved callback (which does the splicing) isn't being called.

In my dnd-moved function, I was using promises to make requests to update a backend. When I switched from promises to using $q, this problem went away.


support anti-clockwise arcs

Some time ago I posted an RFC of sorts (in issue #57) that didn't get any comments.  This patch adds support for anti-clockwise arcs very trivially by making an optional parameter mandatory, which is not backwards compatible.
Obviously this isn't a perfect approach but I don't really have the time to design a general system for optional parameters.  One easy possibility is to just add a second function which takes a different number of arguments, but that would not align exactly with the JS specification.

The design used here could be trivially supported by wrapping the anti arg in a Maybe and then dispatching to two different FFI calls depending on whether one has a Just or Nothing for that arg.
So, this is pretty close to being merged.

Actually, this PR can no longer be merged as the fork was deleted.

Superceded by #83. Also, my Maybe idea above doesn't make sense.


Define the standard used in categories

Idea Description
A need to have standard or standards defining the categories to use in product-level attribute categories has been raised by a few data professionals. Now the options is empty and content can be practically anything.

Lets puhs this forward


Support for npipe protocol for connecting on Windows

Is it possible to add support for connecting to Docker using npipe:////./pipe/docker_engine like in this guide? Currently I'm using tcp://localhost:2375 protocol. However, to use that protocol it is necessary to enable "Expose daemon on tcp://localhost:2375 without TLS" feature in Docker settings which is not convenient if you need to configure many machines. It is also slower and less secure.

I personally don't have access to Windows host to implement it but I can leave some suggestions here. For the implementation, probably it'd be best to use windows-rs. All of the connectors like TCP, UNIX, TLS are created using hyper. For reference, here is unix connector from hyperlocal. Something similar would have to be implemented for windows npipes, and from what I saw there is no implementation available yet.
Here is how Docker calls npipe requests https://github.com/moby/moby/blob/9e6370819bf61de7583ea00af13fcbedd2bbbfe7/testutil/request/npipe_windows.go#L10


Server-side certs are too restrictive, need ability to add extra SANs

Right now, each generated server-side certificate (both for the Swarm master and the docker daemon) contain only one SAN (Subject Alt Name) which points to the Host IP (usually localhost).
This makes it too restrictive, it's not possible to connect to my Swarm API from my internal network...
I propose a global option `--tls-san' which allows to specify extra SANs.

My (one-sided) discussion in #1233 is about the driver=none case, but if docker-machine were to be production-ized as a "VM appliance producer" then I'd want to be able to pass in custom server certs made by my own CA, at which point I can pre-add my own SANs in the external CSR.  Custom client-certs/client-auth-CA-at-server also.


blocker: OpenSlides does not allow participants with non-Latin characters in their name

import the participant Žusan Oltrán with e.g. this CSV line:

,Žusan,Oltrán,Vorstand,"3,4",kommt 15 Minuten später,
result: the person was correctly imported and everything looks fine in OpenSlides.
BUT: the person won't be able to log in. This is her entry code generated by OpenSlides:

All other users I imported can log in, no matter if they have umlauts or accented chars in their name like
Prof. Dr.,Max,Käßmann,,3,,1
The reason is the character Ž. OpenSlides stumbles over this but this is a common character e.g. in Slovakia. The CVS- file uses utf-8 and I imported it in OpenSlides also with utf-8.
I guess OpenSlides will fail for other characters too and for the admin of a meeting this can be a nightmare when several participants cannot log in.
This is in my opinion a blocker for 2.0.1.

This bug is just another instance of bug #2137. Non-Latin chars work.
(I only clicked "reset" to generate a new password for the user and this triggers #2137.)


model.created function should be changed.

On line 25 of spreader.php:
Change "model.created" to "ticket.created".
This should fix the following error:
status=bounced (Command died with status 255: "/var/www/osticket/upload/api/pipe.php". Command output: PHP Fatal error:  Call to a member function addNote() on null in /var/www/osticket/upload/include/class.ticket.php
on line 2635 PHP Stack trace:
PHP   1. {main}() /var/www/osticket/upload/api/pipe.php:0 PHP   2. PipeApiController::process() /var/www/osticket/upload/api/pipe.php:26
PHP   3. TicketApiController->processEmail() /var/www/osticket/upload/include/api.tickets.php:222
PHP   4. TicketApiController->createTicket() /var/www/osticket/upload/include/api.tickets.php:178
PHP   5. Ticket::create() /var/www/osticket/upload/include/api.tickets.php:132
PHP   6. Ticket->save() /var/www/osticket/upload/include/class.ticket.php:3373
PHP   7. VerySimpleModel->save() /var/www/osticket/upload/include/class.ticket.php:2740 PHP   8. Signal::send() /var/www/osticket/upload/include/class.orm.php:619
PHP   9. call_user_func_array:{/var/www/osticket/upload/include/class.signal.php:98}() /var/www/osticket/upload/include/class.signal.php:98
PHP  10. SpreaderPlugin::spreadTicket() /var/www/osticket/upload/include/class.signal.php:98 PHP  11. Ticket->assignToStaff() /var/www/osticket/upload/include/plugins/osticket-spreader/spreader.php:56
PHP  12. Ticket->onAssign() /var/www/osticket/upload/include/class.ticket.php:2145
PHP  13. Ticket->logNote() /var/www/osticket/upload/include/class.ticket.php:1727
PHP  14. Ticket->postNote() /var/www/osticket/upload/include/class.ticket.php:2611 )

fixed.


[#2] Android UI/UX Design

-프로젝트 명:
Android UI/UX Design

참여자:
@jesboom

Objective

Create Android application using Android studio
Design using MVC model
Using chart, Realm DATABASE library
User UI / UX development
Home environment control and situation recognition function

Progress: Create home screen UI, add graph library

REMOTE화면 V.1.0

SETTING화면 V.1.0


(docs) Add missing parens to ctrl::do_until function example

Previously the example used to generate function docs was missing parens.

@melamos A slack user pointed out we forgot parenthesis in the ctrl::do_until std lib function.
The markdown should now look like
ctrl::do_until
Repeat the block until it returns a truthy value. Returns the value.
ctrl::do_until(Callable &$block)

Returns: Any

&block Callable

Example: Run a task until it succeeds
ctrl::do_until() || {
  run_task('test', $target, _catch_errors => true).ok?
}

Fixed in docs. Should appear in the 2p auto-build.

CLA signed by all contributors.


Live Demo not working

I tried accessing the live demo for this application but found an error on the page.

My too. Its not working.

@chibuagu @nigel-dewar This is something to do with how azure is handling the deployment, investigating.

Have setup CI with VSTS, also in the process of setting up with appveyor. Demo should be working now.


Closing Issue#24

Closing Issue #24

works 👍🏻

Hey !
Thanks for merging the PR
Thrilled to be part of the open source space
Really grateful @adigulalkari for this opportunity