Configuration sets log: formatter: json. Log combines text and JSON.

The registry:2.4.1 Docker image does not always use the JSON log formatter. When log: formatter: json is set, the container writes both text lines and JSON lines to its standard output stream. This complicates tools that consume registry logs.
   They do have a certain format, so if you are able to filter them out that would be the easiest solution.  Otherwise, we have some options:

Add a configuration to allow them to be disabled
Disable them for non-text logging

I'll continue filtering, though I'd rather disable the muxer's output if it adds no new information.
Maybe update the log configuration doc to explain this (expected) behavior?

Closing as this was reported on the no longer supported version of registry. Please feel free to reopen after testing with the latest release.

Can we reopen this? This is still occurring on the latest 2.8.3 version.

@ajschmidt8 can you please check if the issue is still present in https://github.com/distribution/distribution/releases/tag/v3.0.0-alpha.1
We are putting all the focus on v3, with v2.X to be depreceted VERY soon

@ajschmidt8 can you please check if the issue is still present in https://github.com/distribution/distribution/releases/tag/v3.0.0-alpha.1
We are putting all the focus on v3, with v2.X to be depreceted VERY soon

@milosgajdos, yes it looks like it's still present in the v3 tag.
Here's the reproducer:
# run the registry w/ JSON logging enabled:
docker run --rm -it -e REGISTRY_LOG_FORMATTER=json -p 5000:5000 registry:3.0.0-alpha.1

# from another terminal, curl the registry:
curl localhost:5000/v2/_catalog

When the two commands above are run, the running container prints the following output, which is still a mix of JSON and non-JSON:
{"go.version":"go1.21.5","instance.id":"2c8388cc-5601-4dc1-828b-5b14094660ec","level":"warning","msg":"No HTTP secret provided - generated random secret. This may cause problems with uploads if multiple registries are behind a load-balancer. To provide a shared secret, fill in http.secret in the configuration file or set the REGISTRY_HTTP_SECRET environment variable.","service":"registry","time":"2023-12-20T16:02:32.386933443Z","version":"3.0.0-alpha.1"}
{"go.version":"go1.21.5","instance.id":"2c8388cc-5601-4dc1-828b-5b14094660ec","level":"info","msg":"redis not configured","service":"registry","time":"2023-12-20T16:02:32.387007164Z","version":"3.0.0-alpha.1"}
{"go.version":"go1.21.5","instance.id":"2c8388cc-5601-4dc1-828b-5b14094660ec","level":"info","msg":"using inmemory blob descriptor cache","service":"registry","time":"2023-12-20T16:02:32.387040505Z","version":"3.0.0-alpha.1"}
{"go.version":"go1.21.5","instance.id":"2c8388cc-5601-4dc1-828b-5b14094660ec","level":"info","msg":"Starting upload purge in 3m0s","service":"registry","time":"2023-12-20T16:02:32.387149515Z","version":"3.0.0-alpha.1"}
{"go.version":"go1.21.5","instance.id":"2c8388cc-5601-4dc1-828b-5b14094660ec","level":"info","msg":"listening on [::]:5000","service":"registry","time":"2023-12-20T16:02:32.387350408Z","version":"3.0.0-alpha.1"}
{"go.version":"go1.21.5","http.request.host":"localhost:5000","http.request.id":"fc91b9dd-158b-4dfa-b262-81b1693861ef","http.request.method":"GET","http.request.remoteaddr":"<IP_ADDRESS>:45048","http.request.uri":"/v2/_catalog","http.request.useragent":"curl/7.81.0","http.response.contenttype":"application/json","http.response.duration":"1.498855ms","http.response.status":200,"http.response.written":20,"instance.id":"2c8388cc-5601-4dc1-828b-5b14094660ec","level":"info","msg":"response completed","service":"registry","time":"2023-12-20T16:02:35.298218509Z","version":"3.0.0-alpha.1"}
<IP_ADDRESS> - - [20/Dec/2023:16:02:35 +0000] "GET /v2/_catalog HTTP/1.1" 200 20 "" "curl/7.81.0"

Thanks! I'm marking this as a bug that needs looking into. Feel free to open a PR if you will 😄

Thanks for the great analysis! ❤  it should serve us well when we get to fixing this issue. Very annoying but also I understand the gorrila maintainers 😄

@ajschmidt8 I've got an experimental PR here https://github.com/distribution/distribution/pull/4221


MNT: make relative imports in cython files absolute

Reference issue

xref #17234
What does this implement/fix?

Changes relative imports to absolute to get past cython errors.  Not sure if this is a good idea or not, but opening a PR so this does not just exist as a diff in a comment on an issue.
Additional information

Closing in favor of #18242


Bug?  Cannot combine @Input decorators with query decorators

Hi,
im using your lib version 10.1.2 with angular 9.1.2 in combination with the Syncfusion angular framework.
I'm getting the following error when I run my tests:
`
Error: Cannot combine @Input decorators with query decorators
    at http://localhost:9876/_karma_webpack_/D:/Work/Java

`
Code looks like follows:
describe('XComponent', () => {
    let component: XComponent;
    let fixture: MockedComponentFixture<XComponent>;
    beforeEach(() => MockBuilder(XComponent, XModule)
        .provide({provide: ControlContainer, useValue: fgd}),
    );
    beforeEach(() => {
        fixture = MockRender(XComponent);
        component = fixture.point.componentInstance;
        fixture.detectChanges();
    });
    it('should create', () => {
        expect(component).toBeTruthy();
        expect(component.controlContainer).toBeDefined();
    });
});

I'm not sure if this is caused by the mock framework or by the syncfusion library. Running the project works fine; even as building the project. This just happens when running the tests.

Hi again,
might you share code of XComponent, or create a min code sample with the failing test?

example-bug.zip
Please find a sample project attached :)

Any idea yet? @satanTime :)

Hi, unfortunately, didn't check it yet. I'll do that latest on Sunday evening. Sorry for the delay.

No problem, take your time :)

Any update yet? :)

Checking :)

Hi, I'm investigating it deeper, I have a fix, but I want to find the cause.

Ah cool. I was thinking it was caused by the syncfusion library, but since it only occurse during testing/mocking I doubted this.

Yep, the way they are creating components and directives in the lib causes the issue, they use decorators in an interesting manner, but if I do a copy for testing it doesn't fail anymore. So I'll try to dig deeper for understanding of the exact cause.

Hi, it appears that when i disable ivy for the test in my tsconfig, the tests run fine.

Ah, that's an awesome hint! Thanks, I'll try this way.

Hi again, might you check if it solves your issue?
ng-mocks.zip

Works like a charm!

Thanks for checking, I'll release the changes this week.

A new version has been released. Thanks for the report.


Fixed broken diffusive routing in Lower Colorado example

Recent updates caused the diffusive routing for NHD in the Lower Colorado example to no longer worked.
Additions

Added new Routelink file (2.1), subset w.r.t. the diffusive study area including Lower Colorado and other river systems in the Gulf Coast and New England
Added updated qlat files (and subset the same way)
Added Lakeparm file (2.1)

Removals

Removed old Routelink- and Lakeparm files
Removed old qlat forcing files

Changes

Turned on diffusive routing in test_AnA.yaml by default

Testing

In the test/LowerColorado_TX directory, issue: >> python -m nwm_routing -f -V3 test_AnA.yaml

Screenshots
Notes

Todos

Checklist

[ ] PR has an informative and human-readable title
[ ] Changes are limited to a single goal (no scope creep)
[ ] Code can be automatically merged (no conflicts)
[ ] Code follows project standards (link if applicable)
[ ] Passes all existing automated tests
[ ] Any change in functionality is tested
[ ] New functions are documented (with a description, list of inputs, and expected output)
[ ] Placeholder code is flagged / future todos are captured in comments
[ ] Visually tested in supported browsers and devices (see checklist below :point_down:)
[ ] Project documentation has been updated (including the "Unreleased" section of the CHANGELOG)
[ ] Reviewers requested with the Reviewers tool :arrow_right:

Testing checklist
Target Environment support

[ ] Windows
[ ] Linux
[ ] Browser

Accessibility

[ ] Keyboard friendly
[ ] Screen reader friendly

Other

[ ] Is useable without CSS
[ ] Is useable without JS
[ ] Flexible from small to large screens
[ ] No linting errors or warnings
[ ] JavaScript tests are passing

@JurgenZach-NOAA If you uncomment output_parameters: and stream_output to save the results. It will throw an error that AttributeError: 'str' object has no attribute 'keys'. Can you fix the error

@JurgenZach-NOAA If you uncomment output_parameters: and stream_output to save the results. It will throw an error that AttributeError: 'str' object has no attribute 'keys'. Can you fix the error

This issue was not actually related to the PR - however, it's corrected now. What happened was that, in cases without assimilated gages and NHD networks, link_lake_crosswalk was set to "None" instead of (Boolean) False. So, the output routine thought there's a link_lake_crosswalk when there couldn't be. Corrected it.

Also turned on the output in the example - there should always be an output!

nwm_out_generator in the V3 main branch had a missing argument, the duplicate_ids_df. It is only relevant for HYfeatures, so it can be set to an empty df here, but still needs to be provided.


Issue with import in dataclasses on version 1.9.0 in TravisCI

Checks

[X] I added a descriptive title to this issue
[X] I have searched (google, github) for similar issues and couldn't find anything
[X] I have read and followed the docs and still think this is a bug

Bug
Hi!
While maintaining a personal project I noticed that the build started to fail on TravisCI. It had been a while since I last touched it, so I started to look into it and it seems to be an issue while importing BaseSettings on pydantic 1.9.0.
Here's a screenshot of the build logs, where it raises a ImportError: /home/travis/virtualenv/python3.10-dev/lib/python3.10/site-packages/pydantic/dataclasses.cpython-310-x86_64-linux-gnu.so: undefined symbol: PyDescr_IsData:

I then went back into CI build history to the last time it finished successfully (11/28/2021) and noticed that it was using pydantic 1.8.2, as shown below:

After this I specified pydantic to be 1.8.2 in my requirements.txt and the build passed. I could not reproduce this locally.
I apologize if this issue doesn't belong to pydantic itself, or maybe to FastAPI as it was installed as a sub dependency before, or even to TravisCI.
Here's a link to the PR in which I noticed the issue: https://github.com/umluizlima/user-manager/pull/49

PyDescr_IsData is somewhere deep in the C API of python.
I suspect this relates to the age of the OS any which manylinux base we use.
I'm closing this issue for now.


Spelling Error

preverve

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

ID: c45f6269-45a0-436f-33f9-19d3815351ec
Version Independent ID: 8851dcef-4f42-1864-d899-2c01c4d9d008
Content: Deployment in Visual C++
Content Source: docs/ide/deployment-in-visual-cpp.md
Product: visual-cpp
GitHub Login: @corob-msft
Microsoft Alias: corob

Thanks for spotting that. Closed as fixed. In the future, feel free edit the page and submit a PR with your corrections directly.

Thanks for spotting that. Closed as fixed. In the future, feel free edit the page and submit a PR with your corrections directly.


sfdx force:mdapi:convert does not convert CustomLabels to source format.  No error message.

Summary
Running sfdx force:mdapi:convert does not convert any CustomLabels to source format.  It skips over them.  This is causing a serious issue in some of our build pipelines that depend on this feature.
Using either
sfdx-cli/7.151.1 win32-x64 node-v14.19.1
sfdx-cli/7.151.1 linux-x64 node-v14.19.2
Steps To Reproduce:
Repository to reproduce: sfdx-cli-mdapi-convert-bug
Steps:

convert original source to mdapi format sfdx force:source:convert -r force-app -d mdapi
observe CustomLabels in mdapi folder and package.xml
convert MDAPI back to SOURCE format sfdx force:mdapi:convert -r mdapi -d src
observe NOTHING was converted, \src folder is empty
Use legacy mdapi:convert sfdx force:mdapi:legacy:convert -r mdapi -d src2
Observe legacy convert works as expected in \src2 folder

Expected result
CustomLabels metadata should be converted into source format in the expected folder
Actual result
CustomLabels do not get converted from MDAPI to SOURCE format.
System Information
Recreated in Windows and Ubuntu
CLI Version :
sfdx-cli/7.151.1
Architecture:
win32-x64
Node Version :
node-v14.19.1
Plugin Version:
@oclif/plugin-autocomplete 0.3.0 (core)
@oclif/plugin-commands 1.3.0 (core)
@oclif/plugin-help 3.3.1 (core)
@oclif/plugin-not-found 1.2.6 (core)
@oclif/plugin-plugins 1.10.11 (core)
@oclif/plugin-update 1.5.0 (core)
@oclif/plugin-warn-if-update-available 1.7.3 (core)
@oclif/plugin-which 1.0.4 (core)
@salesforce/sfdx-plugin-lwc-test 0.1.7 (core)
alias 2.0.0 (core)
apex 0.11.0 (core)
auth 2.0.2 (core)
community 1.1.4 (core)
config 1.4.6 (core)
custom-metadata 1.1.0 (core)
data 2.0.0 (core)
generator 2.0.1 (core)
info 2.0.0 (core)
limits 2.0.0 (core)
org 1.13.1 (core)
salesforce-alm 54.4.0 (core)
schema 2.1.0 (core)
sfdx-cli 7.151.1 (core)
sfpowerkit 4.2.8
signups 1.1.0 (core)
source 1.9.8 (core)
telemetry 2.0.0 (core)
templates 54.7.0 (core)
trust 1.1.0 (core)
user 1.7.1 (core)
OS and Version:
Windows_NT 10.0.22621
CLI Version :
sfdx-cli/7.151.1
Architecture:
linux-x64
Node Version :
node-v14.19.2
Plugin Version:
@oclif/plugin-autocomplete 0.3.0 (core)
@oclif/plugin-commands 1.3.0 (core)
@oclif/plugin-help 3.3.1 (core)
@oclif/plugin-not-found 1.2.6 (core)
@oclif/plugin-plugins 1.10.11 (core)
@oclif/plugin-update 1.5.0 (core)
@oclif/plugin-warn-if-update-available 1.7.3 (core)
@oclif/plugin-which 1.0.4 (core)
@salesforce/sfdx-plugin-lwc-test 0.1.7 (core)
alias 2.0.0 (core)
apex 0.11.0 (core)
auth 2.0.2 (core)
community 1.1.4 (core)
config 1.4.6 (core)
custom-metadata 1.1.0 (core)
data 2.0.0 (core)
generator 2.0.1 (core)
info 2.0.0 (core)
limits 2.0.0 (core)
org 1.13.1 (core)
salesforce-alm 54.4.0 (core)
schema 2.1.0 (core)
sfdx-cli 7.151.1 (core)
signups 1.1.0 (core)
source 1.9.8 (core)
telemetry 2.0.0 (core)
templates 54.7.0 (core)
trust 1.1.0 (core)
user 1.7.1 (core)
OS and Version:
Linux 5.15.0-30-generic
Additional information
This is a high priority issue affecting our build pipeline.

Hey @camerongoodman, I was able to reproduce using latest-rc sfdx-cli/7.152.0 darwin-x64 node-v16.13.2 too, thanks for the reproduction repo!
Unfortunately the command returns exit code 0 after failing to convert to source format, in the meantime please switch to the legacy command.

Hey @camerongoodman any update of this, is this fixed yet?

Hi @sumit-hi we have a fix open (link above), once it passes QA it should be available in the the release candidate.

Tested in 7.160 and seems to be resolved now

Tested in 7.161 and this is not resolved if the existing CustomLabels.meta-xml does not exactly match the file that would be created by force:mdapi:convert on the mdapi/CustomLabels.labels file:
sfdx force:mdapi:convert -r md --json
{
  "status": 0,
  "result": [
    {
      "fullName": "CustomLabels",
      "type": "CustomLabels",
      "filePath": "md\\labels\\CustomLabels.labels",
      "state": "Add"
    }
  ]
}

Whereas the legacy command creates a usable .dup file
sfdx force:mdapi:legacy:convert -r md --json
{
  "status": 0,
  "result": [
    {
      "fullName": "CustomLabels",
      "type": "CustomLabels",
      "filePath": "src\\main\\default\\labels\\CustomLabels.labels-meta.xml.dup",
      "state": "Duplicate"
    }
  ],
  "warnings": [
    "The command \"MdapiConvertCommand\" has been deprecated and will be removed in v56.0 or later. Use \"force:mdapi:convert\" instead."
  ]
}

@thomasminney would you please provide the md source that you are using.

fix in version 7.162.0 of sfdx-cli

@peternhale tested in 7.162.0 and force:mdapi:convert does now convert custom labels, thank you.


any chance of updating?

for me this is the best swing timer addon even better than sp swing timer imo, sad it doesn't have offhand support

Thanks for your feedback!
Unfortunately including the offhand in this mod would be a big rewrite of the addon (basically this mod is adding a skin on top of an older version of SP_SwingTimer).
There are a couple of solutions however!
If you use ShaguTweaks-mods, the "Restyle UI" mod will add a similar style to the SP_SwingTimer.
If you don't then I've uploaded a small addon that achieves the same effect.
Once installed the swing timers should look like the image below:

I'll have another look at the styling and see if I can make it closer to the GryllsSwingTimer style!
Hope this helps!

Thanks for your response.
I tried both but It seems like i have some issues with the sp swing timer and until I resolve them I will continue using GryllsST, anyway I found ShaguTweaksMods to be an incredibly useful addon so thank you again Peace ✌


Create brucknergym.txt

Brucknergymnasium

@SEOriginal: Do you mean http://www.brucknergym.at
First of all website is inaccessible plus this doesn't look like higher education facility. Could you clarify type of school and point us to correct website?


Documentation for 3.0 release is wrong

http://docs.django-cms.org/en/3.2.3/upgrade/3.0.html
https://github.com/divio/django-cms/blob/3.2.3/docs/upgrade/3.0.rst
python manage.py cms publisher_publish
should read
python manage.py publisher_publish

Thanks for spotting this. If you would contribute a patch, we will happily merge that


allow paging to be disabled

See https://github.com/Pegase745/sqlalchemy-datatables/issues/56

You kept it under the section 1.0.0. This commit is part of a future release known as being Unreleased for now.
Source keepachangelog.com
Always have an "Unreleased" section at the top for keeping track of any changes.

This serves two purposes:

People can see what changes they might expect in upcoming releases
At release time, you just have to change "Unreleased" to the version number and add a new "Unreleased" header at the top.

Oops, I clearly wasn't paying attention. Didn't even see you released 1.0.0, congrats!

@tdamsma it's thanks to you !

Any idea what's wrong with coveralls? nothing on http://status.coveralls.io/


[Bug] when given prefix_tokens, sequence generator would generate (exactly) same finished candidates of numbers beam_sizes

Dear fairseq team,
When I want to generate multiple candidates with forced-decoded prefix_tokens, I encounter this bug that all returned finished candidates (of numbers beam_size) are (sometimes exactly) the same.
The bug caused by new free-decoding batches could decode from any beams while those beams are actually the same thus they produce repeats.
Best.


[Windows][Linux] Favor application name when asking permission.

Instead of originating URL. If an application is launched from the
manifest.json then the URL is something like app:// and it's not
really what we want to show to the user.

@pozdnyakov what do you think?

lgtm


add calculation of max power consumption

...  to led config. It's just total leds * 0.06

Cool!
I created already a power supply (and led stripe length) calculator :) (not for webui)
Spain: is there something you can't? ;)
Now i need to remember to pull the es file to poeditor :)

Spain: google translater :-) its ok for short things


Improvements

Add the GPU results to the histogram
Divide the table of results into two
Add the computer features below the benchmark

Sounds good, when you add the GPU results to the histogram maybe color them differently and add a legend. Maybe GPU can be orange?


⚠ Roblox Devforum has degraded performance

In 71b8f7c, Roblox Devforum (https://devforum.roblox.com) experienced degraded performance:

HTTP code: 502
Response time: 1309 ms

Resolved: Roblox Devforum performance has improved in 6aabba0.


updated views and widgets to not require asset packages

Q
A

Is bugfix?
no

New feature?
yes

Breaks BC?
yes

Tests pass?
?

Related https://github.com/yiisoft/yii-console/issues/12#issuecomment-443163191
I've just uncommented the Bootstrap widgets as an example.
The Alert is currently outputting JSON content, this is an example for content that could be wrapped in a JS variable and function as initial "Server Side Rendered" data. This should be easily usable with native JS, jQuery, Vue or any other JS-lib.
Contact and Login are currently not working, but I think that's a separate issue atm.

Looks like this atm:

For sure we can supply some basic CSS also in a later step.

Sorry I accidentally merged this, while pushing to master (used wrong remote).
Comments should be fixed, let me know if there are other issues.

See https://github.com/yiisoft/yii-base-web/commit/8013f2f60903835ae59a13b8985b694f616e7227


Function composition definitions are switched in section 2.3.1

https://forums.manning.com/posts/list/37172.page#p103882

fixed!


fix: remove drinking water logic

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


refactor(margin): Standardize margins and paddings

standardize behavior between Grid and Item and margins and paddings.
Grid / Item have different margin defaults but they are treated the same way.
You can pass an array that defines the size, e.g. [1, 1, 1, 1] or [1] (they are the same).
That would set the margin to 1 gutter on each direction. valid values are 0, 0.5, 1 and 2

BREAKING CHANGE: margins and paddings switched to arrays

awesome tests 👍


Filter out code actions if unsupported by the client and advertise our capabilities

This PR does three things:

If the client does not support CodeActionKind this will filter the results and only send Command[] back.
Correctly advertises to the client that the server supports CodeActionKind. This may cause clients to not request code actions if they are checking for the provider to be true (or implement LSP < 3.8) in the caps but I will fix that in a followup PR.
Marks most CodeActions as "refactor" so that they show up in the menu in vscode."".

Part of #144
#4147
#2833

bors r+


Feature request: Download filtered table

Hello together,
I'm using datavzrd
and is really useful and well structured.
I was wondering if it's possible to include a download button, using the configuration file, for the final html allowing to download a user filtered table.
Thank in advance!

Hi @GitEnricoNeko
Thanks for using datavzrd! Would you want to download the raw data as csv data or are are you pointing to the plot export function (top right menu: show as plot)?

Hi @fxwiegand,
Basically, the idea is to open the HTML filter the table using the interactive filtering system that is super easy to integrate into the HTML table and then offer the possibility for the user to download the filtered table and not the original, raw, full table.
It's not clear for me if it's already possible.
Thanks for the support!

I found some time to implement this today in #646. Maybe download the example report generated in the CI and try it!


fix(ci): add a "build-id" input var to ci builds

Currently, the github workflows dependencies are chained as follows:
build.yaml -> ci.yaml
release.yaml -> ci.yaml
convert.yaml -> ci.yaml
build.yaml and release.yaml are inline builds but operate on different build triggers. convert.yaml is timer-based and works offline.

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@d805401). Click here to learn what that means.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@           Coverage Diff           @@
##             main       #6   +/-   ##
=======================================
  Coverage        ?   12.08%
=======================================
  Files           ?       44
  Lines           ?     5451
  Branches        ?        0
=======================================
  Hits            ?      659
  Misses          ?     4675
  Partials        ?      117

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


Prevent nuxt dev crash if nuxt.config.js has problems

https://trello.com/c/kzKySUKV/66-nuxt-dev-crash-if-nuxtconfigjs-has-problems
And used queue for reload to decrease server reloads count when you change files fast.

nuxt dev still have memory leak on reloads. I will try fix it in next pull request.

@0pt1m1z3r 38b71cbe0489140a0977e041ca7a92c7ba48c2da this commit should fix problems of oldNuxt not being closed if there was errors in nuxt.config.js.

Codecov Report

Merging #2183 into dev will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev    #2183   +/-   ##
=======================================
  Coverage   98.04%   98.04%
=======================================
  Files          15       15
  Lines         970      970
=======================================
  Hits          951      951
  Misses         19       19

Continue to review full report at Codecov.

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


added vanilla installation helm charts

Which issue is resolved by this Pull Request:
Resolves #
Description of your changes:
Testing:

[ ] Unit tests pass
[ ] e2e tests pass
Details about new tests (If this PR adds a new feature)
Details about any manual tests performed

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@wenjinsitu  Hey can you push the python script into this pr for review?

Closing PR in regards to #329


Relations Problem

Hi, i'am always getting the following error:
¨Please fix the following errors: Data can't be deleted because it's still used by another data.¨
when i'm trying to insert or update data. I have the foreign key relations established correctly on my db. What could be the problem?
sorry if its a dumb question i'am still new to yii2.

Duplicate #43
please update to the newest version..
type composer update on your terminal / command prompt on your project folder
if that doesn't work, type
composer remove mootensai/yii2-enhanced-gii
composer require mootensai/yii2-enhanced-gii:@dev

Thanks friend, everything is working fine after i updated enhanced-gii and yii2-relation-trait except everytime i update a record the related children get deleted.

What database are you using? It's not happening to me.

I'am using mysql, i also just noticed that when i insert a new record it inserts a random number on my id column which i have set as auto_increment.

That's because you use the UUID column. empty the UUID Column field and it wont insert UUID.
What about the related children? Is it still deleted? I can't reproduce this issue

Yes the related children are still being deleted. The restrictions on my FK i have set update and delete to restrict.

I've also use restrict on update & delete.  And on update cascade. But it don't happen on my local

I deleted this code
"if($rel['ismultiple']){
foreach ($rel['link'] as $k => $v) {
$condition[] = $k . " = " . $this->$v;
}
try {
$relModel->deleteAll(implode(" AND ", $condition));
} catch (\yii\db\IntegrityException $exc) {
$this->addError($rel['name'], "Data can't be deleted because it's still used by another data.");
$error = true;
}
}"
on relationtrait.php i don't know if it'll create an impact later on. Everything seems to be working fine.

I wouldn't recommend that.
Does anyone having this issue?

could you give me your sqldump?

https://drive.google.com/open?id=0B1VejtZzjoN1WjFRejFWcEZOdG8

Yes, I have the problem too.

I noticed that the stand alone trait development version uses a different trait version than the one in GII IO. Is that correct? Is it by design?

@arjenmeijer
No. The relation trait version should be the same version as the enhanced gii version..
@mario0204
could you send the screenshot of
composer show -i

run that on your app folder

almasaeed2010/adminlte                   v2.3.2             AdminLTE - admin control panel and dashboard that's based on Bootstrap 3
bower-asset/bootstrap                    v3.3.5             The most popular front-end framework for developing responsive, mobile first projects on the web.
bower-asset/fontawesome                  v4.5.0             Font Awesome
bower-asset/jquery                       2.2.1
bower-asset/jquery.inputmask             3.2.7              jquery.inputmask is a jquery plugin which create an input mask.
bower-asset/punycode                     v1.3.2
bower-asset/typeahead.js                 v0.11.1
bower-asset/yii2-pjax                    dev-master 60728da
cebe/markdown                            dev-master e449935 A super fast, highly extensible markdown parser for PHP
cebe/yii2-gravatar                       1.1                Gravatar Widget for Yii 2
dmstr/yii2-adminlte-asset                2.2.4              Backend theme for Yii2 Framework
ezyang/htmlpurifier                      v4.7.0             Standards compliant HTML filter written in PHP
fzaninotto/faker                         dev-master 6da7882 Faker is a PHP library that generates fake data for you.
ikimea/browser                           dev-master 3fb8a24 Detecting the userÔÇÖs browser
kartik-v/bootstrap-fileinput             dev-master 32b0ccb An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, ajax up...
kartik-v/bootstrap-star-rating           dev-master 9a9c2be A simple yet powerful JQuery star rating plugin for Bootstrap.
kartik-v/bootstrap-tabs-x                v1.3.2             Extended Bootstrap Tabs with ability to align tabs in multiple ways, add borders, rotated titles, and more.
kartik-v/dependent-dropdown              v1.4.4             A multi level dependent dropdown JQuery plugin that allows nested dependencies.
kartik-v/mpdf                            dev-master 4d83c4e A PHP class to generate PDF files from HTML with Unicode/UTF-8 and CJK support. This is a fork of the official mPDF library.
kartik-v/yii2-builder                    dev-master 22abcfb Build forms (single-row or multi-row/tabular) easily for Yii Framework 2.0
kartik-v/yii2-export                     dev-master 5c2429f A library to export server/db data in various formats (e.g. excel, html, pdf, csv etc.)
kartik-v/yii2-grid                       dev-master 55b4427 Yii 2 GridView on steroids. Various enhancements and utilities for the Yii 2.0 GridView widget.
kartik-v/yii2-helpers                    v1.3.5             A collection of useful helper functions for Yii Framework 2.0
kartik-v/yii2-krajee-base                dev-master 3e491e5 Base library and foundation components for all Yii2 Krajee extensions.
kartik-v/yii2-mpdf                       dev-master 873a4f1 A Yii2 wrapper component for the mPDF library which generates PDF files from UTF-8 encoded HTML.
kartik-v/yii2-tabs-x                     dev-master a5b9722 An extended bootstrap 3.0 tabs widget with ability to align tabs in multiple ways, add borders, rotated titles, and more.
kartik-v/yii2-widget-activeform          v1.4.7             Enhanced Yii2 active-form and active-field with full bootstrap styling support (sub repo split from yii2-widgets).
kartik-v/yii2-widget-affix               dev-master e11b2eb A scrollspy and affixed enhanced navigation to highlight page sections (sub repo split from yii2-widgets)
kartik-v/yii2-widget-alert               dev-master 5706274 A widget to generate alert based notifications using bootstrap-alert plugin (sub repo split from yii2-widgets)
kartik-v/yii2-widget-colorinput          dev-master 18537fc An enhanced Yii 2 widget encapsulating the HTML 5 color input (sub repo split from yii2-widgets)
kartik-v/yii2-widget-datepicker          dev-master bc22b97 Enhanced Yii2 wrapper for the bootstrap datepicker plugin (sub repo split from yii2-widgets).
kartik-v/yii2-widget-datetimepicker      dev-master cfd6d56 Enhanced Yii2 wrapper for the bootstrap datetimepicker plugin (sub repo split from yii2-widgets)
kartik-v/yii2-widget-depdrop             dev-master 6918ca6 Widget that enables setting up dependent dropdowns with nested dependencies (sub repo split from yii2-widgets)
kartik-v/yii2-widget-fileinput           dev-master 36f9f49 An enhanced FileInput widget for Bootstrap 3.x with file preview, multiple selection, and more features (sub repo split from yi...
kartik-v/yii2-widget-growl               dev-master c79abaa A widget to generate growl based notifications using bootstrap-growl plugin (sub repo split from yii2-widgets)
kartik-v/yii2-widget-rangeinput          dev-master ad82cf9 An enhanced Yii 2 widget encapsulating the HTML 5 range input (sub repo split from yii2-widgets)
kartik-v/yii2-widget-rating              dev-master 69b192b A Yii2 widget for the simple yet powerful bootstrap-star-rating plugin with fractional rating support (sub repo split from yii2...
kartik-v/yii2-widget-select2             dev-master 4d03239 Enhanced Yii2 wrapper for the Select2 jQuery plugin (sub repo split from yii2-widgets).
kartik-v/yii2-widget-sidenav             dev-master 54186e7 An enhanced side navigation menu styled for bootstrap (sub repo split from yii2-widgets)
kartik-v/yii2-widget-spinner             dev-master c39f734 A widget to render animated CSS3 loading spinners with VML fallback for IE (sub repo split from yii2-widgets)
kartik-v/yii2-widget-switchinput         dev-master 7d8ee99 A Yii2 wrapper widget for the Bootstrap Switch plugin to use checkboxes & radios as toggle switchinputes (sub repo split from y...
kartik-v/yii2-widget-timepicker          dev-master fa230ca Enhanced Yii2 wrapper for the bootstrap timepicker plugin (sub repo split from yii2-widgets)
kartik-v/yii2-widget-touchspin           dev-master afc56f6 A Yii2 wrapper widget for the Bootstrap Switch plugin to use checkboxes & radios as toggle touchspines (sub repo split from yii...
kartik-v/yii2-widget-typeahead           dev-master b0c2ee4 Enhanced Yii2 wrapper for the Twitter Typeahead plugin (sub repo split from yii2-widgets).
kartik-v/yii2-widgets                    dev-master 24d3a39 Collection of useful widgets for Yii Framework 2.0 extending functionalities for Bootstrap
mootensai/yii2-enhanced-gii              dev-master d328308 Generate Relational (has many) Models & CRUD. For nested : mootensai/yii2-enhanced-gii-nested
mootensai/yii2-jsblock                   dev-master 5974fc3 Embed Javascript block with IDE checking
mootensai/yii2-optimistic-lock-validator dev-master 422b012 Yii 2 Optimistic Lock validator
mootensai/yii2-relation-trait            dev-master 0e61e70 Yii 2 Models load with relation, & transaction save with relation
mootensai/yii2-uuid-behavior             dev-master 9f36751 Set UUID before save on Yii 2 models
phpoffice/phpexcel                       1.8.x-dev 39d8b8f  PHPExcel - OpenXML - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine
phpspec/php-diff                         dev-master 30e103d A comprehensive library for generating differences between two hashable objects (strings or arrays).
rmrevin/yii2-fontawesome                 2.13.0             Asset Bundle for Yii2 with Font Awesome
swiftmailer/swiftmailer                  5.x-dev fffbc0e    Swiftmailer, free feature-rich PHP mailer
webvimark/bootstrap-switch               dev-master c7493ba BootstrapSwitch extension for yii 2
webvimark/components                     dev-master 782cb6e Components for yii 2
webvimark/date-range-picker              dev-master 4b93d19 dangrossman daterangepicker yii 2 gridview
webvimark/grid-bulk-actions              dev-master b1a2892 Bulk actions extension for yii 2 gridview
webvimark/grid-page-size                 dev-master e0e57a7 Grid page size extension for yii 2 gridview
webvimark/helpers                        dev-master f3f1d87 Helpers for yii 2
webvimark/image                          dev-master 18a3f25 Kohana image lib wrapper for yii 2
webvimark/module-user-management         dev-master 8d30991 User with improved RBAC
yiisoft/yii2                             dev-master edd7ef3 Yii PHP Framework Version 2
yiisoft/yii2-bootstrap                   dev-master 4133d6b The Twitter Bootstrap extension for the Yii framework
yiisoft/yii2-codeception                 dev-master ee239c2 The Codeception integration for the Yii framework
yiisoft/yii2-composer                    dev-master d33d104 The composer plugin for Yii extension installer
yiisoft/yii2-debug                       dev-master e196aa3 The debugger extension for the Yii framework
yiisoft/yii2-faker                       dev-master 186c772 Fixture generator. The Faker integration for the Yii framework.
yiisoft/yii2-gii                         dev-master ce42838 The Gii extension for the Yii framework
yiisoft/yii2-swiftmailer                 dev-master 2cca1bb The SwiftMailer integration for the Yii framework

could you give me an sqldump with load of data?

Hi, there the same problem appeared with my database, and I traced the exception on line 151 of https://github.com/mootensai/yii2-relation-trait/blob/master/RelationTrait.php#L151
Upon closer inspection there appears to be a deleteAll called twice (one outside at line 147 and one inside the try block at line 149). This propably is not correct!

Ok, I was wrong the error was the "Data can't be deleted because it's still used by another data." was on https://github.com/mootensai/yii2-relation-trait/blob/master/RelationTrait.php#L191
But at least I replicated the problem mario0204 has.
My schema is like this:
[player]-->[comment]<--[comment_game]-->[game]
So a player can make many comments but each comment belongs to only one player.
Then each comment has a many-many relation with a game (so each comment may refer to many games and each game may belong to many comments)
I couldn't update the name of a player without getting the dreaded "Data can't be deleted because it's still used by another data."
It turns out this was because each time I updated a player there was an attempt to delete all the comments made by that player.
Indeed with this simple scheme:
CREATE TABLE IF NOT EXISTS mydb.player (
id INT NOT NULL AUTO_INCREMENT,
username VARCHAR(255) NOT NULL,
email VARCHAR(128) NULL,
PRIMARY KEY (id))
ENGINE = InnoDB
CREATE TABLE IF NOT EXISTS mydb.comment (
id INT NOT NULL AUTO_INCREMENT,
title VARCHAR(255) NOT NULL,
body TEXT NULL,
player_id INT NOT NULL,
PRIMARY KEY (id),
INDEX fk_comment_player1_idx (player_id ASC),
CONSTRAINT fk_comment_player1
FOREIGN KEY (player_id)
REFERENCES mydb.player (id)
ON DELETE RESTRICT
ON UPDATE CASCADE)
ENGINE = InnoDB
and with these values:
INSERT INTO mydb.player (id, username, email) VALUES ('1', 'Johnu', 'john@in.gr');
INSERT INTO mydb.player (id, username, email) VALUES ('2', 'George ', 'george@gmail.com');
INSERT INTO mydb.player (id, username, email) VALUES ('3', 'Mike  f', 'michael@yahoo.com');
INSERT INTO mydb.comment (id, title, body, player_id) VALUES ('14', 'test 1', 'blah blah', '2');
INSERT INTO mydb.comment (id, title, body, player_id) VALUES ('15', 'test 2', 'frefg reg erg', '2');
INSERT INTO mydb.comment (id, title, body, player_id) VALUES ('16', 'test 3', 'ret ert er t', '3');
As soon as I update George all its comments are deleted.
What's the use of calling deleteAll when a record is only updated (!$isNewRecord) ?
Thanks a lot for your work, George

                                                                                How to reproduce this error? I can't seem to reproduce this error..on what condition, what data is being deleted? Could you give me sqldump that contains some data to check with?

I've checked it. And that's because your data is being used on another table. Please re-check your data & table structure.
I'll close this issue for now until i can confirm this issue as a bug.

Can you give a hint what is going wrong. What is "your data is being used on another table" excactly?

                                                                                That's because your data is being used as foreign key on another table. If I don't use that exception, it will give a database error. (I forgot what unhandled exception for that)


Fit graph in resized svg

Hi,
I've been working markmap for a couple of days now and I'm unable to find a good way to fit the graph into a resized sag without doing dirty code. Can you help me out?
My Idea:

Load an arbitrary markdown content
Use available width completely
Adjust height according to the created mindmap (so no zoom is required)

The only thing I could come up with is this:
https://github.com/neatc0der/mkdocs-markmap/blob/4e419edb3b22351a6be0dff714b9265548b09517/mkdocs_markmap/templates/mkdocs-markmap.js#L12
Do you have any suggestions?
PS: Thanks for this awesome idea of create beautiful mindmaps in no time!

Did you try mm.fit() where mm = Markmap.create(...)?

Did you try mm.fit() where mm = Markmap.create(...)?

Ok, so I've tried this:
var el = document.querySelector('.mkdocs-markmap');
var content = el.getAttribute('data-markdown').replaceAll('
', '\n');
var svg = el.querySelector('svg');

var root = markmap_transformer.transform(content).root;
var mm = markmap.Markmap.create(svg, null, root);

mm.rescale(1).then(function() {
    svg.parentElement.style.height = (svg.getBBox().height + 10) + "px";
    mm.fit();
});

Unfortunately, there is a mm.state containing x and y minima and maxima which determine the canvas. Changes to container size are not recognized by mm.fit():

Ok, so I've tried this:
var el = document.querySelector('.mkdocs-markmap');
var content = el.getAttribute('data-markdown').replaceAll('
', '\n');
var svg = el.querySelector('svg');

var root = markmap_transformer.transform(content).root;
var mm = markmap.Markmap.create(svg, null, root);

mm.rescale(1).then(function() {
    svg.parentElement.style.height = (svg.getBBox().height + 10) + "px";
    mm.fit();
});

Unfortunately, there is a mm.state containing x and y minima and maxima which determine the canvas. Changes to container size are not recognized by mm.fit():

What about setTimeout(() => { mm.fit(); })?
mm.fit must be called after repaint so that it can get the new size.
You also need to make sure the SVG will always stretch to the container size.

What about setTimeout(() => { mm.fit(); })?
mm.fit must be called after repaint so that it can get the new size.
You also need to make sure the SVG will always stretch to the container size.

Then, this happens:

Then, this happens:

Can you provide a demo? Otherwise there is nothing much I can do.

Can you provide a demo? Otherwise there is nothing much I can do.

Please find the example here. The corresponding javascript code starts at line 47.

Please find the example here. The corresponding javascript code starts at line 47.

It seems to be broken in Safari, which I guess is your case. I'll take a look at what is happening here.

It seems to be broken in Safari, which I guess is your case. I'll take a look at what is happening here.

The inline svg seems not properly rendered in Safari.
Simply adding display: block will help.
  .mkdocs-markmap > svg {
+   display: block;
  }

The inline svg seems not properly rendered in Safari.
Simply adding display: block will help.
  .mkdocs-markmap > svg {
+   display: block;
  }

That did the trick, thanks!

That did the trick, thanks!


[1.9.4] start-up crash with Stellar API/Sky

Forge 1954
Sponge 1418
Stellar API <IP_ADDRESS>b
Stellar Sky <IP_ADDRESS>
With Stellar API: https://gist.github.com/ruyanve/e9138db618f5d477ac2583d70dfcc552
With Stellar API + Stellar Sky: https://gist.github.com/ruyanve/43ce5a9bbc16284490bc591221eb6915
Opened a ticket here as well: https://github.com/Abastro/StellarAPI/issues/2

I am stupid!
Re-posted in the correct repo


Adding new env with a different profile doesn't work

Note: If your issue/bug is regarding the AWS Amplify Console service, please log it in the
official AWS Amplify Console forum

Describe the bug
I created a new amplify project using amplify cli. Then I added an auth component and pushed it to cloud. I tried adding new environment and selected a different profile for this environment. Pushing to cloud created the stack in the same AWS account as the first environment.
To Reproduce
Steps to reproduce the behavior:
amplify init
amplify add auth
amplify push
amplify env add
amplify push

AWS profiles are configured using .aws/credentials, aws configure list outputs following:
Default:
      Name                    Value             Type    Location
      ----                    -----             ----    --------
   profile                <not set>             None    None
access_key     ****************CZ3Q shared-credentials-file
secret_key     ****************3KT4 shared-credentials-file
    region             eu-central-1      config-file    ~/.aws/config

Other:
      Name                    Value             Type    Location
      ----                    -----             ----    --------
   profile               production           manual    --profile
access_key     ****************2K6L      assume-role
secret_key     ****************wdpP      assume-role
    region             eu-central-1      config-file    ~/.aws/config

Local aws info file looks like this:
{
    "dev": {
        "configLevel": "project",
        "useProfile": true,
        "profileName": "default"
    },
    "prod": {
        "configLevel": "project",
        "useProfile": true,
        "profileName": "production"
    }
}

Expected behavior
I would expect amplify to deploy the new env to new profile. But i doesn't. We use one account for dev and one for production, using a role to switch.
Desktop (please complete the following information):

OS: Ubuntu
Browser: Chrome
Version: 70

Additional context

node --version: v10.15.3
amplify --version: 1.1.7

Could you please show us the contents of your ~/.aws/config and ~/.aws/credentials files? Please use the strings <access_key_id> and secrect_access_key to replace the actual key strings, we just need to see the structure.
The aws configure list command list the current configuration for the aws cli, it does not apply to the amplify cli.

when you say, "We use one account for dev and one for production, using a role to switch.", how did you set it up?
If that's the case, you should select the profiles with the roles, instead of the dev and production credentials.
Please follow the steps outlined in this document:
https://aws-amplify.github.io/docs/cli/init#assuming-an-iam-role

Here are my credentials and config:
[default]
aws_access_key_id=<access_key_id>
aws_secret_access_key=<secrect_access_key>

[production]
role_arn=arn:aws:iam::<account_id>:role/CrossAccountSignin
source_profile=default

[default]
region=eu-central-1
output=json

[profile production]
region=eu-central-1
output=json

Here is a full log from amplify:
$ amplify env add
Note: It is recommended to run this command from the root of your app directory
? Do you want to use an existing environment? No
? Enter a name for the environment prod
Using default provider  awscloudformation

For more information on AWS Profiles, see:
https://docs.aws.amazon.com/cli/latest/userguide/cli-multiple-profiles.html

? Do you want to use an AWS profile? Yes
? Please choose the profile you want to use production
⠇ Initializing project in the cloud...

CREATE_IN_PROGRESS bbx-admin-20190321100710 AWS::CloudFormation::Stack Thu Mar 21 2019 10:07:10 GMT+0100 (Central European Standard Time) User Initiated
CREATE_IN_PROGRESS DeploymentBucket         AWS::S3::Bucket            Thu Mar 21 2019 10:07:15 GMT+0100 (Central European Standard Time)
CREATE_IN_PROGRESS AuthRole                 AWS::IAM::Role             Thu Mar 21 2019 10:07:15 GMT+0100 (Central European Standard Time)
CREATE_IN_PROGRESS UnauthRole               AWS::IAM::Role             Thu Mar 21 2019 10:07:15 GMT+0100 (Central European Standard Time)
⠋ Initializing project in the cloud...

CREATE_IN_PROGRESS AuthRole         AWS::IAM::Role  Thu Mar 21 2019 10:07:16 GMT+0100 (Central European Standard Time) Resource creation Initiated
CREATE_IN_PROGRESS UnauthRole       AWS::IAM::Role  Thu Mar 21 2019 10:07:16 GMT+0100 (Central European Standard Time) Resource creation Initiated
CREATE_IN_PROGRESS DeploymentBucket AWS::S3::Bucket Thu Mar 21 2019 10:07:17 GMT+0100 (Central European Standard Time) Resource creation Initiated
⠧ Initializing project in the cloud...

CREATE_COMPLETE AuthRole   AWS::IAM::Role Thu Mar 21 2019 10:07:33 GMT+0100 (Central European Standard Time)
CREATE_COMPLETE UnauthRole AWS::IAM::Role Thu Mar 21 2019 10:07:34 GMT+0100 (Central European Standard Time)
⠏ Initializing project in the cloud...

CREATE_COMPLETE DeploymentBucket         AWS::S3::Bucket            Thu Mar 21 2019 10:07:37 GMT+0100 (Central European Standard Time)
CREATE_COMPLETE bbx-admin-20190321100710 AWS::CloudFormation::Stack Thu Mar 21 2019 10:07:40 GMT+0100 (Central European Standard Time)
✔ Successfully created initial AWS cloud resources for deployments.
✔ Initialized provider successfully.
Initialized your environment successfully.

Your project has been successfully initialized and connected to the cloud!

Some next steps:
"amplify status" will show you what you've added already and if it's locally configured or deployed
"amplify <category> add" will allow you to add features like user login or a backend API
"amplify push" will build all your local backend resources and provision it in the cloud
"amplify publish" will build all your local backend and frontend resources (if you have hosting category added) and provision it in the cloud

Pro tip:
Try "amplify add api" to create a backend API and then "amplify publish" to deploy everything

Even though I selected the "production" profile, the stack is created in default profile.
I read though the Assuming an IAM role docs, but I might be misunderstanding what it is actually trying to achieve because the final step is to put access key and secret key to credentials, but I don't have any access key and secret key, I only have my dev account and a role to access production environment.

https://aws-amplify.github.io/docs/cli/init#assuming-an-iam-role
The ~/.aws/config file should contain contents like this:
[profile bizcorprole]
role_arn=<role_arn_from_part#1>
source_profile=devcorpuser
mfa_serial=<mfa_serial_from_part_2.3---optional>
external_id=<external_id_as_mentioned_in_part#1--optional>
region=us-east-1

[profile devcorpuser]
region=us-east-1

And the ~/.aws/credentials file should contain contents like this:
[devcorpuser]
aws_access_key_id=<key_id_from_part_2.2>
aws_secret_access_key=<secret_access_key_from_part_2.2>

and when the cli prompt you to select a profile, do NOT select the user, but select the profile associated with the role.

Thank you for your response, the problem seems to be in the fact that serverless we use for other projects expects the role to be set in credentials and not config. So for anyone else trying to find the right config, it works if you copy paste the role in both.


🆕 Software Suggestion | KeexyBox

Basic Information
Name: KeexyBox
Category: Parental Control
URL: https://keexybox.org
Description
KeexyBox is mainly a parental control software that provides privacy. That means : Internet access times, force safesearch for Google, Bing and Youtube, Website filtering using DNS, Internet Browsing over Tor network, forward of DNS queries to Tor Network.
It is an open source software (GPLv3) and it works on a Raspberry PI to plug on your internet router.
It constitutes a cut-off point between the devices of your home network (computers, tablets, smartphones, etc.) and your Internet access. It acts as a default gateway and DNS server for your devices.
More technical description: https://wiki.keexybox.org/doku.php/network_topologies
Screenshots:  https://wiki.keexybox.org/doku.php/screenshots
Why I am making the suggestion
Generally parental control software do not mix with privacy because the website filtering is directly done on the client device (may track your internet history on the device) or by a service online which we often do not have access to verify or delete our internet history.
KeexyBox can be a good compromise because parental control is done between the devices used by the child and your internet router.
My connection with the software
I am the author.

[x] I will keep the issue up-to-date if something I have said changes or I remember a connection with the software.

This software suggestion was discussed with u/trai_dep on Reddit.

Interesting, looks pretty good so far, i can see why privacy aware parents would use something like this, but im wondering where it could fit into the site though, maybe on https://www.privacytools.io/operating-systems/#firmware ?
@privacytools/editorial

I plan to a have PRO edition with builtin Blacklist, LDAP connection and technical support. Also sell hardwares that include KeexyBox to make it more accessible to people.

I see, that seems realistic. il be poking around more in the coming days to see if i can find anything why this should not be listed, but so far, its looking good.

Did you try keexybox ? The last major version was released in October and integrates Wifi and new options on the captive portal.

force safesearch for Google, Bing and Youtube,

Do you download the safe-search filters to some database within the whole application every <?> or was this actually saying google has access to timestamps and exact URL's of blacklisted sites potentially visited.
Perhaps google safe search has been something privacy friendly all along if so please correct me.

Safesearch is forced using DNS to point www.google.??? to a specific Google IP that will always filter the result by removing for example adult contents (links to website or pictures). The filtering job is done online by google algorithms. You can get more information at: https://support.google.com/websearch/answer/186669?hl=en
This feature was implemented by google for school so that students can do secure search on the Internet. Be careful, this feature does not filter the sites themselves but only hides the Google search result. If a student knows an adult site URL, they can go to the site directly. This is why blacklist of domains to import into keexybox must be used in addition.
It is the same behavior for youtube and Bing.
For bing, it is explained at this address: http://help.bing.microsoft.com/#apex/bing/en-us/10003/0

I wouldn't personally use such a service, I get the other side of it.
It's just spyware imho.
Perhaps someone will create

Safesearch is forced by using DNS to point www.google.??? to a specific Google IP that will always filter the result by removing for example adult contents (links to websites or pictures). Using Google safeseach has no more impact on privacy than searching without this feature.

Yes and searching google has some privacy implications..  As you are probably aware of.
Bing (MS) is also a tracking company. As you are probably also aware of.
Think of IP linkage account linkage, (google accounts) fingerprint identified browsers, among logins also youtube considering..
The safe-search integrated with this gives google yet another data-point.
Almost every kid (and loads of adults) LOGIN to google while doing YouTube , google forms , with google having a high chance of their basic search engine as well.
Essentially the system would be giving a company which makes it money by selling very targeted ads even more info.
I absolutely respect all you have put into this. I just don't see this mixing with privacy or privacytools.io for that matter.
Other people might think differently. This is just an opinion.
============================================================================
Would there be a way you think to create the same feature set you have now without implementing essentially google 'oversight'? >>

I share your opinion. Just know that KeexyBox can be used just as much by those who care about their privacy as those who don't. The safesearch option is there just for those who agree to use Google's services with their terms and conditions but want to filter the results for parental control. For those who want to use Keexybox to improve their privacy, they are free to simply blacklist Google, Bing and use DuckDuckGo (safe.duckduckgo.com). They can also activate on KeexyBox, browsing and anonymization of DNS queries via the Tor Network.


Drag a calendar event and create a new timer?

I found it's useful to use a timer for counting down before a calendar event (e.g. a meeting event).
One possible way to create a new timer is by accepting a calendar file (.ics) and create a new timer.
#22 suggests naming a time. This could be useful as well.

Go for it if you're willing to contribute!


⚠ gorzdrav.org has degraded performance

In 68cfbd2, gorzdrav.org (https://gorzdrav.org) experienced degraded performance:

HTTP code: 200
Response time: 8464 ms

Resolved: gorzdrav.org performance has improved in db7972f.


Openstack VM provision issues

cloud network* should contain only private networks
IP addresses should be shown only from public networks connected to the private network? E.g you can have VM connected to isolated private network that can't even touch public.
When I deploy multiple VMs, I can pick only one Public IP, so it should either allow to pick the same number of Public IPs as VMs, or we can just put there Public Network, that should be used for generating new Public IP(we will not precreate the public IPs)
What happens when '' tenant is selected, AFAIK it will use tenant in the token by default, so there still needs to be some filtering. I think combining resources from multiple tenants will result in error. So better to making tenant required?
On properties tab, is cloud quota working? It allowed me to go over the quotas and then the request failed for me, because of max. VM count == 10, in the quotas.
The check-box choose automatically should be divided into more groups. E.g. I want network to be chosen automatically but I want to specify availability zone and security groups

should i just create issues from these?
(2. is actually dependent on #4532, cause we need to collect routers ans connection of networks)

@gmcculloug could you review which issues should be addressed, then we can sit on it with @martinpovolny :-)

@blomquisg could you also check it out? ^

cloud network - If we limit to private do we need another dialog field for public networks?
IP Addresses - Makes sense that we limit based on the selected public network.  Do we currently collect the information during inventory refresh to determine this list?
Multi-VM/IP assignment - This could be handled in automate today to select different IPs if provisioning more than one VMs.  We have the same limitation for infra VMs.
Empty tenant selection - This was discussed in PR #660
Quota - That is just displaying the quota defined from the provider, it is not enforced by us so it will fail on the provider if you go over the limit.
"Choose Automatically" is designed to push all logic into automate.  It has always been an all-or-nothing flag.  A user could customize the dialogs and hide fields if they wanted different configurations.

cc @bdunne

@gmcculloug

AFAIK when you pick public in that dialog it should fail. The dialog for public should not be needed. After today brainstorming, we figured out that for one private network (subnet actually) you can have only one public network connected.

I need to yet figure out how to pick subnet, if there would be a crazy architecture with each subnet going to different router and public network. So I guess subnet dialog would show if there are more, if it is even possible to pick subnet, I see only option for specifying fixed ip, which would determine subnet.
So for public you should have probably radio button, that should show only when there is connection:
1.1 Picking Precreated floating IP, needs to be from Public network reachable through that private network (subnet)
1.2 Autogenerate Floating IP from connected Public network.

It will be possible when the PR linked will be merged

Right so maybe just allowing autogenerate when Vm count > 1 ?

Hm I think this might break later. Seems like None takes default tenant, which is admin, seems that one can see resources from other tenants. But that will change with keystonev3.

I guess since there is always some tenant used in the background, I would rather set it by default on the default tenant. :-) Does it make sense?

Hm I don't even see the quota limits there. But seems to me like a nice TODO for later to check quotas and even allow to change it from there? :-)

Right. For my testing it makes sense that I want to deploy 10 Vms under some tenant, just picking security group and having rest automated. I guess adding check box for each option, so just part can be autogenerated? But I guess if users are fine with this, it can stay. :-)

Openstack allows you to choose a public network, don't they?
Sounds reasonable
We probably need an autoselect option for this field

@bdunne
1.) I though so originally, but after our testing, it will always look something like this
http://docs.openstack.org/icehouse/training-guides/content/figures/13/a/figures/image38.png
The subnets and router always have one gateway and VM port is always associated to one subnet. So when you assign VM to a private network, seems like there is max one possible path to one public network.
The cases we don't handle now and are not in the image ^:
1.1) As stated above, we pick private network now, but theoretically there can be 2 subnets in private network, each pointing to different router and public network. So we would need to pick a subnet actually, not network, to be able to say which public network can be used.
1.2.) VM has multiple nics, where each can be assigned to a different private network. I am not sure how to handle this yet, I'll do some testing after release.
1.1) should occur very rare, while 1.2) is a pretty standard solution, will be used e.g. in OpenShift on OpenStack

@gmcculloug @bdunne doing more research about 1.)
Horizon indeed allows to associate any network, so does neutron. From our testing, we should probably not do that. Public network as we take it now is being router, with attribute router:external true. This one should never be attached to the VM directly.
Though, you can attach public network directly to VM, skipping the NAT of the router. But then it should be neutron provider network and it should not have attribute router:external true. From our point of view, it will be private network, but connected to physical network with rules on actual switch that allows it to go public. So we ca kinda say, yes it's provider network associated to physical network. But we cannot say if it can go public or not, since that is manual server/switch setup.
But as always, you can put anything to Neutron db and do the routing manually. So even router:external true network can be attached to VM, there is jut no point to define it like this.
So I don't know. :-) We might keep it as Horizon, even when picking public network directly will be wrong in 99% of cases.
I think I should maybe rename the Private/Public so something else. http://docs.openstack.org/icehouse/training-guides/content/operator-network-node.html
Maybe we could have CloudNetwork and CloudNetwork::RouterExternal.


Web3Modal errors when switching to Localhost in Metamask

Could it be related to this? https://github.com/MetaMask/metamask-extension/issues/18509#issuecomment-150160766
This seems to be a Metamask issue, and has never worked for me. But I think the behaviour of Web3Modal changed, it used to fail silently, now it throws an error.
The fixes outlined in the above link, including deleting and recreating the Localhost network, didn't work for me.
See if switching to ConnectKit alleviates this.

Well this works now... Maybe extension update?


Allow to create GeoQuery only with string

Twitter's GET geo/search API allows to pass query string only. https://dev.twitter.com/rest/reference/get/geo/search
However in Twitter4j, there is no way to create GeoQuery instance with query string. (currently, we must provide lat/long, or ip to create a GeoQuery instance).

This doesn't compile because it duplicates public GeoQuery(String ip).
consider introducing a static factory method for that.


Chore/update actions

Summary
The goal for this PR is to update version of github actions we used in our CI.
Currently we have warnings about incompatible Node version requirement
Before

After

Also

removed a table Story from Chromatic as the RTL addon we just added doesn't apply on the chromatic snapshot.
publish Chromatic snapshots only with Node 20

(Internal for Opendatasoft only) Associated Shortcut ticket: 🏴☠

@etienneburdet Should we remove the Node matrix for the api-client action?
What the point of having twice (https://github.com/opendatasoft/ods-dataviz-sdk/pull/255#issuecomment-2217064149 & https://github.com/opendatasoft/ods-dataviz-sdk/pull/255#issuecomment-2217064636) the coverage message?

LGTM, that was needed indeed!
I'm OK with moving to node 20.x rather than matrix. As for the code coverage, at the very least I would remove the matrix indeed. Why not removing it all together: we're not really using it. Or if we keep it, actually use it accross all the repo and our workflow.

api-client package is very independent of the two others. Why not keep it, it can help to check that new code has a code coverage. But, it's true that we not are really using it.
Having the same mechanism for the visualization packages can't work.
Code coverage for visualizations-react would means nothing as all logic is in visualizations (unless there is a way to get code coverage of a dependency)


[VS Code] The user code is invalid or expired. Try signing in again.

Error:
The user code is invalid or expired. Try signing in again.
Steps to Reproduce:

Version Data

extensionName
VSLS

extensionVersion
0.3.735

protocolVersion
2.2

applicationName
VSCode

applicationVersion
1.23.1

platformName
Linux

platformVersion
4.16.10-1-ARCH

Closing as a dupe of 1050.


Fix for recent versions of node-sass

This commit contains the relevant subset of changes from
https://github.com/mpalpha/node-sass-json-importer/commit/79a8393e3080a8e61123b41f146fcf784af5421d
Using the latest master commit for node-sass https://github.com/sass/node-sass/commit/11c96eee55d00c65d1ad1fddf6111bbb731aa789, I was not getting any CSS output for any SCSS @import, .json or otherwise.
I noticed https://github.com/mpalpha/node-sass-json-importer/commit/79a8393e3080a8e61123b41f146fcf784af5421d was returning done({ file: url }) instead of sass.NULL. I am not sure why, seeing as the node-sass importer docs say to return NULL in this instance, but I can verify that making this change solved my problem. All imports – SCSS partials and json – are working now.
I also needed to follow suit and remove dist/ from the .gitignore and both /src and /test from the .npmignore to successfully install with npm 3.
For reference, I am using:

node 5.6.0
npm 3.7.1
node-sass latest master https://github.com/sass/node-sass/commit/11c96eee55d00c65d1ad1fddf6111bbb731aa789

@chrislopresto Sorry, but I can't break from node-sass custom importer guidelines in order to possibly solve your edge case; it may break the importer for other users. If you could provide tests and/or example projects that clearly demonstrate the issue we can revisit.
That said, there's been a lot of confusion and problems around sass.NULL. Perhaps the following threads will help:
https://github.com/sass/node-sass/issues/1356
https://github.com/sass/node-sass/issues/1291

No problem at all. https://github.com/sass/node-sass/issues/1291 sounds like the root cause.
I am packaging node-sass-json-importer as part of an Ember addon that relies on ember-cli-sass, which pulls in node-sass. I'll see if forking ember-cli-sass to use node-sass@beta does the trick.
I'll let you know if that does the trick. Worst case I'll just use my fork until the dust settles.
Cheers.


Run the Generator when XAML files change

https://github.com/dotnet/roslyn/blob/master/docs/features/source-generators.md#progressive-complexity-opt-in
This is important for the IDE integration to work in the future. E.g. every time a XAML file changes, we should regenerate x:Names for that file.

Well, this seems to just work out of the box in the latest Visual Studio 16.8.0 Preview 6.0.

Regarding JetBrains Rider, I guess we are waiting for https://youtrack.jetbrains.com/issue/RIDER-46389

Closing this as JetBrains Rider should also fully support watching the additional files now https://youtrack.jetbrains.com/issue/RIDER-54973

Closing this as JetBrains Rider should also fully support watching the additional files now https://youtrack.jetbrains.com/issue/RIDER-54973


NotWorking

Hey I haven't changed anything besides adding items into the config and I don't get the sell option walking up to an npc.

Hello, you have to open the menu with your keyboard ( F11 if not changed ) and then you chose which item to sell the npc when you are close to them
Here is a video to demonstrate how it work : https://youtu.be/5cGgQSnExMg

@Selene-Desna F11 button doesn't pull up anything, I never changed the control either.

@Selene-Desna I just completely reinstalled it & it still don't work for me. do you have discord?

I have, @Sélène-Poiivre#6475
( https://discordapp.com/users/Sélène-Poiivre#6475 )

@Selene-Desna I added you, the discord link you sent is broken.
it’s ran in cfg & I use es extended


Bump clique to version 0.3.2

The new version of clique includes several bugfixes over 0.3.1.
To help make review easier, here are the changes between clique 0.3.1 and 0.3.2: https://github.com/basho/clique/compare/0.3.1...0.3.2
0.3.2 fixes some regressions that broke the set/show/describe commands, and also cleans up the code for generating error output if a command is not found and has no associated usage message.
The second bit isn't really relevant to riak_core, since any command that riak-admin can pass in will be a supported command with usage info already registered. But we definitely don't want to break riak-admin set/show/describe, so this is a fairly important PR for those fixes alone.
(This replaces PR#752 which was done against the develop branch, but subsequently canceled.)

:+1: b23de82

@borshop merge


Update CONTRIBUTING.md

Fixed a typo.

Current coverage is 93.74% (diff: 100%)

Merging #60 into master will not change coverage

@@             master        #60   diff @@
==========================================
  Files            56         56
  Lines          3803       3803
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           3565       3565
  Misses          238        238
  Partials          0          0

Powered by Codecov. Last update ec30145...62359bf


fix: resolve a bug that occurs while updating a link

Resolve a bug that occurs while updating a link in the table mode view, with some refactoring.

Okay for me if you add the little test case. But you have a lot of things in this PR that are already inside dev try fixing it :)

It's clean now


Hosting on my site

I'm trying to host this on my site and when I upload a pdf I get the following errors:
POST https://[MYSITE]/process_pdf 403
(anonymous) @ script.js:170
SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
(anonymous) @ script.js:189
Promise.catch (async)
(anonymous) @ script.js:187
Any help would be appreciated.

It looks like the server is returning html data in the request which is causing the error. Could you tell me if you are using main.py or main-local.py as the server? Also would you mind sharing the pdf you uploaded so that I can try to recreate the error and debug?


confidence is always returned as 0.0

hi.. you are doing some great stuff here with rasa:)
I have followed all the sets and trained etc and when I run this command "python -m rasa_nlu.server -c config.json" the confidence is 0.0

{
"entities": [
{
"start": 4,
"end": 9,
"value": "bread",
"entity": "shoppingItem"
}
],
"confidence": 0.0,
"intent": ""shoppingList"",
"text": "add bread to the shopping list"
}

this text example is an exact match to one of the items in the training data
testing a sentence which is definitely not anything like in the training data still links to the intent with a 0 confidence.. simply sending "hello" as the string

{
"entities": [
{
"start": 0,
"end": 5,
"value": "hello",
"entity": "shoppingItem"
}
],
"confidence": 0.0,
"intent": ""shoppingList"",
"text": "hello"
}

all the training data are sentences including wording 'shopping list'.. a one word query of "hello" I would have expected it not to match it to anything at all.. I am guessing that I might have to include a new entity for testing that "shopping list" is in the sentence..
but why is the confidence always 0.0
If I run the server as just the demo and say hello.. "confidence": 1.0, "intent": "greet" so this does calc confidence.. so is it just custom training data this is failing on?
also as a side note.. which does rasa prefer? Mitie or spaCy + scikit-learn ?

which backend are you using?

mitie

@oziee I could not reproduce the issue yet. I'd need some more information to do so.
The default of confidence: 1.0 is due to the default Hello-Goodby backend, which always returns a confidence of 1.0. this default backend is used if the server is started and no model directory is specified (I added a warning in this case, so it is clear for the user that not the specified model, e.g. mitie, is used).
For a trained model using the default data it works just fine and I get confidence values that are neither 0.0 nor 1.0.
Can you please send me the configuration you used for train / start?

here is a zip of my whole directory without the total_word_feature_extractor.dat file in the data directory (way to big :) all the training and other files etc
the original Wit file for training is in the data/expressions.json
config files etc are all there too
Oz

On 19 Jan 2017, at 4:05 am, Tom Bocklisch<EMAIL_ADDRESS>wrote:
@oziee https://github.com/oziee I could not reproduce the issue yet. I'd need some more information to do so.
The default of confidence: 1.0 is due to the default Hello-Goodby backend, which always returns a confidence of 1.0. this default backend is used if the server is started and no model directory is specified (I added a warning in this case, so it is clear for the user that not the specified model, e.g. mitie, is used).
For a trained model using the default data it works just fine and I get confidence values that are neither 0.0 nor 1.0.
Can you please send me the configuration you used for train / start?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/golastmile/rasa_nlu/issues/102#issuecomment-273552962, or mute the thread https://github.com/notifications/unsubscribe-auth/ABZ1YRRMNh-hK_-nT0MAIQDVpdI9Tn_Tks5rTlSHgaJpZM4LhgKi.

Alright I ran your model and now I can reproduce the 0.0 confidence score.
Solution: add more intents. There is only a single intent, hence every message gets classified with this intent and mitie assigns this classification a confidence of 0.0.
Hence, this is a mitie bug which you can circumvent by using more than one intent.


[core]Can't see smali of inner class

jadx version: dev
Select a class file and click the smali tab. You can only see the smali of the external class, but not the smali of the inner class.

You are right, this is a known problem of the current implementation.


WIP: Example: add second-order viscoacoustic equations

@lauerami, @speglich, and I developed the second-order forward and adjoint viscoacoustic equations in Devito, for the approaches of SLS (Standard Linear Solid), Ren and Deng. We hope that the Devito team appreciates the contribution.

Thanks again for this contribution. Looks good! I had a quick read through and added a few comments above, will do another pass soonish. Two main comments are:

It seems like there's some redundancy and through using a couple of kwargs and a few adjustments to model some tidying and cutting down can be done.
Maybe I missed them, but couldn't see any correctness tests being added (e.g. a test in the example added to ci which checks wave-field and receiver norms)? I only saw some tests checking things actually run?

@rhodrin Thanks for the review, we appreciate your comments and learn a lot with them! See you soon.

@nogueirapeterson @speglich Thanks for the latest updates. Would you mind rebasing this on top of the latest master (so that all the tests run) and then myself and @mloubout will take a further look before the end of the week.

Resolving these merge issues.

Hi @rhodrin! I noticed that the pipeline changed. The new ** Examples with MPI ** test are failing, including in old versions of this PR (We checked this). An initial investigation of the error raised by this test, take us to think about a wrong code generation. We will investigate the error and open an issue, right?

Hi! We updated the PR removing unnecessary/duplicated functions and increase the tolerance to viscoacoustic tests.

CI is currently failing because of issue #1459 . I've assigned it to me

I've opened #1483 which I think is the only problem right now (after the last commit) for this PR. I've have already proposed a solution. Just waiting for approval to submit a new PR.

I've just merged master into this branch since the random OSX failure should have now disappeared. Let's see

thanks, @FabioLuporini.  Now disappeared the OSX failure. All tests are green!

Really nice, glad all working without temporaries now. Did you check the result look ok? May need to use the shift in div/grad i.e div(grad(expr, shift=.5), shift=-.5) to get nice results

After removing the tmps, I didn't check the results. But all the tests worked well (stability, amplitude, and adjoint).
Anyway, I'm going to check for security.

Really nice, glad all working without temporaries now. Did you check the result look ok? May need to use the shift in div/grad i.e div(grad(expr, shift=.5), shift=-.5) to get nice results

After removing the tmps, I didn't check the results. But all the tests worked well (stability, amplitude, and adjoint).
Anyway, I'm going to check for security.

@mloubout
@FabioLuporini
We did three experiments using the 2nd acoustic wave equation. First without any modification, with temporaries, after without temporaries, and finally, using the shift parameter:

Attached with this comment, we leave a script explaining how we did these experiments.
test_wo_tmps.txt

@nogueirapeterson if your tests were still passing despite the images being "wrong" or "flawed" then it also means that the provided tests are not sufficient. Does it make sense @mloubout or am I missing something?

@nogueirapeterson if your tests were still passing despite the images being "wrong" or "flawed" then it also means that the provided tests are not sufficient. Does it make sense @mloubout or am I missing something?

The existing tests analyze stability, amplitude, and the adjoint operation. Removing the temps did not directly affect these tests.
However, it is producing a noise that I guess is related to the derivatives on a staggered grid.

@FabioLuporini and @mloubout We are waiting for PR #1551, once it is approved, possibly this PR will be completed.

@FabioLuporini and @mloubout We are waiting for PR #1551, once it is approved, possibly this PR will be completed.


Use setup-coursier Instead downloading on every run in link-validator

Equivalent of https://github.com/apache/incubator-pekko/pull/367

Lets not merge this until https://issues.apache.org/jira/browse/INFRA-24664 is resolved

@mdedetrich I hadn't noticed this PR. I went and got https://github.com/apache/incubator-pekko-grpc/pull/94 merged.


Add extension to Open VSX Registry

Could you add the extension to the https://open-vsx.org/ marketplace used by VSCodium?

Sounds like a good idea, I'll just need to figure out how

I found a wiki entry on how to publish an extension.


ESP32 board with OpenMQTTGateway

Select Add-On (place a lowercase x for the relevant add-on)

[x] Xiaomi Mi Scale

Is your feature request related to a problem? Please describe.
I have an ESP32 board with OpenMQTTGateway configured and working correctly. I would like to know if it is possible not to use HCI_DEV, but ESP32 with its add-on.
Describe the solution you'd like
Have another version of the add-on for use with an ESP32 board and OpenMQTTGateway. I have a scale topic at OpenMQTTGateway: home/OpenMQTTGateway_ESP32_BLE/BTtoMQTT/5CCRD372A23R.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

You must have me confused with a different repo. This report is only for computers / Raspberry Pi style computers, I haven't written any code for development boards like the ESP32/8266


docs: add sentinel command example for RHEL family

Add example for RHEL.
Fixes https://github.com/weaveworks/kured/issues/498

Looks great. This will save people some trial and error time.
Not to derail, but has anyone else tried something like --reboot-sentinel-command=sh -c "[ -f /var/run/reboot-required ] || ( [ -x /usr/bin/needs-restarting ] && ! needs-restarting -r )" to support clusters with a mix of both Red Hat and Debian family nodes? Would that worth including here for better compatibility?

I don't have a cluster with mixed distros so I can't test that, therefore it won't be included in this PR, but in theory it should work.

while i single quoted the string for safety the command worked perfectly for me on fedora 35


Conformer Model missing LayerNorm in FeedForwardModule

❓ Questions & Help
I was reviewing the implementation of the conformer model and noticed that in the original paper the FeedForwardModule starts with a LayerNorm, but Openspeech implementation is missing it in openspeech/modules/conformer_feed_forward_module.py.
Is this intentional?
Details

class FeedForwardModule(nn.Module):
    r"""
    Conformer Feed Forward Module follow pre-norm residual units and apply layer normalization within the residual unit
    and on the input before the first linear layer. This module also apply Swish activation and dropout, which helps
    regularizing the network.

    Args:
        encoder_dim (int): Dimension of conformer encoders
        expansion_factor (int): Expansion factor of feed forward module.
        dropout_p (float): Ratio of dropout

    Inputs: inputs
        - **inputs** (batch, time, dim): Tensor contains input sequences

    Outputs: outputs
        - **outputs** (batch, time, dim): Tensor produces by feed forward module.
    """
    def __init__(
            self,
            encoder_dim: int = 512,
            expansion_factor: int = 4,
            dropout_p: float = 0.1,
    ) -> None:
        super(FeedForwardModule, self).__init__()
        self.sequential = nn.Sequential(
            # <----------------------------------------------------------------------- Missing layer norm here!
            Linear(encoder_dim, encoder_dim * expansion_factor, bias=True),
            Swish(),
            nn.Dropout(p=dropout_p),
            Linear(encoder_dim * expansion_factor, encoder_dim, bias=True),
            nn.Dropout(p=dropout_p),
        )

    def forward(self, inputs: Tensor) -> Tensor:
        r"""
        Forward propagate of conformer's feed-forward module.

        Inputs: inputs
            - **inputs** (batch, time, dim): Tensor contains input sequences

        Outputs: outputs
            - **outputs** (batch, time, dim): Tensor produces by feed forward module.
        """
        return self.sequential(inputs)

Oh, no! I think I made a mistake.
Thank you for letting know us!

I fix it.


sdfmt: support stdin and stdout, together with --assume-filename

The feature request is to be able to input code via stdin, and then outputting to stdout.
Then for the style to be applied, one should be able to specify --assume-filename (by which then the normal config file lookup would be used).
Clang-format also has this --assume-filename option (https://clang.llvm.org/docs/ClangFormat.html).

Sorry I missed this. I'd don't have the bandwidth to make this happen right now, but I'd be happy to assist and/or review any work done on that front. This seems like a good feature.

response is appreciated, notifying contributors (e.g. me) that the work will not be in vain

Definitively not, being able to format from stdin is a very useful feature. maybe even be the default if no file is specified on the command line?
I'd be happy to provide pointer through the codebase to do that, but for the most part this should probably happen in the driver for sdfmt or close by.


Added EPR Complince Page in flipkart clone

Related Issue #1379
[Cite any related issue(s) this pull request addresses. If none, simply state "None”]
Description
[Please include a brief description of the changes or features added]
Type of PR

[ ] Bug fix
[x] Feature enhancement
[ ] Documentation update
[ ] Other (specify): _______________

Screenshots / videos (if applicable)

[Attach any relevant screenshots or videos demonstrating the changes]
Checklist:

[x] I have performed a self-review of my code
[x] I have read and followed the Contribution Guidelines.
[x] I have tested the changes thoroughly before submitting this pull request.
[x] I have provided relevant issue numbers, screenshots, and videos after making the changes.
[x] I have commented my code, particularly in hard-to-understand areas.

Additional context:
[Include any additional information or context that might be helpful for reviewers.]

hello @arghadipmanna101
please review this PR and merge it
I have added EPR compliance page very beautifully


[actions/stale] increase number of operations per run to 100

The default number of operations the stale issue bot will run is 30. This is a good size for a small-to-medium sized project and it prevents rate limits. However, for a project as large as Helm, the number of operations need to be increased so that it can find and close stale issues.

Good idea.
LGTM


Add remote authenticator docs

Do we want some DevExer or @Isan-Rivkin on this?

Do we want some DevExer or @Isan-Rivkin on this?

@arielshaqed I asked @rmoff for feedback
Adding @Isan-Rivkin as a reviewer


[Bug] Re-login popup does not respond

After some weeks, it says 'You are not login, please re-login and refresh to continue'. I clicked the Re-Login link and it show a login popup, but after successfully login, it does not do any further actions. It stays there like hanging.
The expected bebhavior is to hide that popup and refresh the main windows automatically.
Thanks.

#13 duplicate


[BUG]: Error after logging in xiaomi account and parsing the notes

During parsing the notes, an error appears.
When the chrome window opens, the url is just data:. So I enter the domain in.i.mi.com in the terminal. Is there something wrong that I am doing?
To Reproduce
Steps to reproduce the behavior:

Open the xiaomiNoteExporter.exe file
Input the domain as in.i.mi.com
Log into the xiaomi account and then press any key in the terminal window.
Error occurs after some notes have been parsed

Screenshots

Current environment

Current Chrome version: Version 121.0.6167.185 (Official Build) (64-bit)

Turns out that I did not have .NET installed. I only had the core runtime.


linkedin: profile not found when using cookies

When I use the scrapper with login/password options it works fine.
But when I use my cookie, I get an error of type 'linkedin: profile not found'
const fs = require('fs');
const scrapedin = require("scrapedin");

// const options = { email<EMAIL_ADDRESS>password: "abcdefgh" };
const cookies = fs.readFileSync('./cookie.txt');
const options = {
  cookies: JSON.parse(cookies)
}

console.log(options);

const url = 'https://www.linkedin.com/in/wassimazirar/';
scrapedin(options)
    .then(profileScraper => profileScraper(url, 2000))
    .then(profile => {
        console.log(profile);
    });

(node:13224) UnhandledPromiseRejectionWarning: Error: linkedin: profile not found
    at ..\node_modules\scrapedin\src\profile.js:19:13
    at async module.exports (..\node_modules\scrapedin\src\profile.js:16:3)
(node:13224) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:13224) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

@leonardiwagner did you check my issue ?
Thanks in advance :confused:

Hi @wassim-azirar , sorry for the late response:

Please turn on isHeadless option (see documentation) and check in the automated browser if you are really logged when it's scrapping
Increase waitTimeMs (see documentation) to ensure that LinkedIn already loaded the page before starting scraping. I personally use 5000

Since you say that via email/password is working I suspect that's something wrong with your cookies approach.
I also suspect there's a "warmup time" from LinkedIn when using cookies for first time, so both increasing the wait time and you checking what's happening in the browser will solve your problem, please give me feedback after trying these steps, thank you.

Hello @leonardiwagner
I changed my code to wait for 5000 ms
const cookies = fs.readFileSync('./cookie.txt');
const options = {
  cookies: JSON.parse(cookies),
  isHeadless: true,
  hasToLog: true
};

scrapedin(options)
    .then(profileScraper => profileScraper(url, 5000))
    .then(profile => {
        response.end(JSON.stringify(profile));
    });

I also turned on debugging and logged our several times and exported my cookies using multiple chrome extensions. But I always get the same result.
scrapedin: 2019-11-13T20:21:36.646Z info: [scrapedin] initializing
scrapedin: 2019-11-13T20:21:36.982Z info: [scrapedin] using cookies, login will be bypassed
scrapedin: 2019-11-13T20:21:36.989Z info: [profile] starting scraping url: https://www.linkedin.com/in/wassimazirar
scrapedin: 2019-11-13T20:21:43.963Z warn: [profile] profile selector was not found
(node:9952) UnhandledPromiseRejectionWarning: Error: linkedin: profile not found
    at .\node_modules\scrapedin\src\profile.js:19:13

I can give you my login/password or my exported cookies in private if you want to test.

Just wanted to comment that I'm facing the same issue.

Any news about this issue ?

@wassim-azirar @jessica-yang new version released, please update to v1.0.11.
Possible fixes for this issue:

We had a bug: setCookies method wasn't "awaited"
Not finding profile selector doesn't throw an error anymore, it'll be a warning.

please update the version and give a feedback about the issue, thanks

Thanks @leonardiwagner ! Looks like it's working now.


cartoee.add_scale_bar_lite()  issue

Environment Information
Please run the following code on your computer and share the output with us so that we can better debug your issue:
import ee
import geemap
import cartopy.crs as ccrs
# import the cartoee functionality from geemap
from geemap import cartoee

Description
Scale bar seems have a problem. I guess maybe the projection problem, but I can not solve.

What I Did
import datetime
import ee
import geemap
Map = geemap.Map()
import numpy as np
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
# import the cartoee functionality from geemap
from geemap import cartoee

year = 2001
startDate = str(year) +'-01-01'
endDate = str(year) +'-12-31'

daymet= ee.ImageCollection('NASA/ORNL/DAYMET_V4').filter(ee.Filter.date(startDate, endDate));
tmax = daymet.select('tmax').first();

fig = plt.figure(figsize=(10, 8))

# region = [-180, 0, 0, 90]
vis = {
  "min": -40.0,
  "max": 30.0,
  "palette": ['1621A2', '#0000FF', '#00FF00', '#FFFF00', '#FF0000'],
};
Map.setCenter(-110.21, 35.1, 4);

# target_crs = region.projection().crs()
# Corr = crossCorr.reproject(crs=target_crs, scale=500)
# use cartoee to get a map
ax = cartoee.get_map(tmax, region=[-180, 0, 0, 90], vis_params=vis,ccrs=ccrs.PlateCarree())

# add gridlines to the map at a specified interval
# cartoee.add_gridlines(ax, interval=[30, 30], linestyle=":")
cartoee.add_gridlines(ax, interval=[30, 30], linestyle="--")

# add a colorbar to the map using the visualization params we passed to the map
cartoee.add_colorbar(ax, vis, loc="bottom", label="Correlation", orientation="horizontal")

# ax.set_title(label='Correlation', fontsize=15)

# add coastlines using the cartopy api
ax.coastlines(color="red")

# add north arrow
cartoee.add_north_arrow(ax, text="N", xy=(0.1, 0.35), arrow_length=0.15,text_color="black", arrow_color="black", fontsize=20)

# add scale bar
cartoee.add_scale_bar_lite(ax, length=100, xy=(0.1, 0.05), linewidth=8, fontsize=20, color="red", unit="km", ha='center', va='bottom')

show()

even though I had a reprojection:
image_proj = tmax.reproject('EPSG:4326')
It also doesn't work

The region parameter value is incorrect. It should be [E,S,W,N]
ax = cartoee.get_map(tmax, region=[-30, 0, -180, 90], vis_params=vis)

Thank you very much,you are so kind~  But the scale bar seems a little weird

I wonder the scale bar should be like a line or ruler rather than a point. But my result is a point in this figure.

For continental maps of North America, scale bars and north arrows are useless. The unit distance near the equator is very different from the one near the north pole. You should remove them.
cartoee.add_scale_bar_lite(ax, length=2000, xy=(0.2, 0.1), linewidth=3, fontsize=10, color="red", unit="km", ha='left', va='bottom')

It makes sense more. Thank you very very much~


Implement Ping module in v1.1 dashboard

Is your feature request related to a problem? Please describe.
We moved to material-ui. We need to implement our modules as per material-ui components.
Describe the solution you'd like
Every page extends to BaseLayout. Use material-ui components to design the page.

First, #174 needs to be merged.

I would to like work on this issue but I don't know up to what extent the UI needs to be changed. Please elaborate.

This is done. Closing.


No way to set network broadcast address from config

I'm having difficulties doing a manual network setup from a configuration file.
I need to set the broadcast address manually on a network interface but I cannot seem to find a valid way to do so from a config file.
I've tried networking.dhcpcd.extraConfig = ''
option broadcast-address <IP_ADDRESS>9
'';
But it doesn't make a difference when I run ifconfig -a, the broadcast address is still just <IP_ADDRESS>.
Can someone with more experience tell me what I'm doing wrong?

Ended up using:
networking.localCommands = ''
ifconfig eth0 broadcast 192.some.ip.address
'';

Why did you close this?
Doing:
networking.localCommands = ''
ifconfig eth0 broadcast 192.some.ip.address
'';
is not the nix way. This should be a feature request I guess


Servercrash with spell

Hello,
When players do the spell "Air Scooter", they can fly but my server freeze and then crash after 20 seconds. there is no error in console.
I have it disabled now, but can you look at it??
greetings

Yikes, yes I'll look at that right away. Is this the air scooter from the default configs, or a custom one you've made?

its the air scooter from the default config. but will try the new magic 6.9.7

Yes, I just release a fix- sorry meant to come tell you.
Really sorry about that- it was applying infinite velocity on crash :(
Should be all good in latest release.


the timit data perfoms bad. Is it normal?

I tested timit data using eesen
I first convert timt data like tedlium format,
but the dic of acoustic model i didn't used timit's
instead in file prepare_phn_dict.sh I used cantab-TEDLIUM.dct
in tedlium_prepare_data.sh (local/join_suffix.py ) I used TEDLIUM.150K.dic as the scripts' parameter
train result
some result is ok,like
mrjb1_sa2 recg result is 'ask me to carry an oily rag like'

but most of the result is bad, as follows
mrhl0_si1274-0000000-0000175 ph
LOG (latgen-faster:DecodeUtteranceLatticeFaster():decoder-wrappers.cc:111) Log-like per frame for utterance mrhl0_si1274-0000000-0000175 is -0.489169 over 173 frames.
mrhl0_si1521-0000000-0000490 how do you think
LOG (latgen-faster:DecodeUtteranceLatticeFaster():decoder-wrappers.cc:111) Log-like per frame for utterance mrhl0_si1521-0000000-0000490 is 0.126054 over 488 frames.
mrhl0_si2151-0000000-0000380 so much
LOG (latgen-faster:DecodeUtteranceLatticeFaster():decoder-wrappers.cc:111) Log-like per frame for utterance mrhl0_si2151-0000000-0000380 is 0.174863 over 378 frames.
mrhl0_sx171-0000000-0000457 how do you think
LOG (latgen-faster:DecodeUtteranceLatticeFaster():decoder-wrappers.cc:111) Log-like per frame for utterance mrhl0_sx171-0000000-0000457 is 0.257338 over 455 frames.
mrhl0_sx261-0000000-0000216 how much
LOG (latgen-faster:DecodeUtteranceLatticeFaster():decoder-wrappers.cc:111) Log-like per frame for utterance mrhl0_sx261-0000000-0000216 is -0.253791 over 214 frames.
mrhl0_sx351-0000000-0000526 how do you think
LOG (latgen-faster:DecodeUtteranceLatticeFaster():decoder-wrappers.cc:111) Log-like per frame for utterance mrhl0_sx351-0000000-0000526 is -0.56767 over 524 frames.
mrhl0_sx441-0000000-0000386 which
LOG (latgen-faster:DecodeUtteranceLatticeFaster():decoder-wrappers.cc:111) Log-like per frame for utterance mrhl0_sx441-0000000-0000386 is -0.52401 over 384 frames.
mrhl0_sx81-0000000-0000304 so much
LOG (latgen-faster:DecodeUtteranceLatticeFaster():decoder-wrappers.cc:111) Log-like per frame for utterance mrhl0_sx81-0000000-0000304 is 0.0374106 over 302 frames.

I don't whether the result is ok or not
could you please give me some suggestion?

You are getting minus log-likelihoods which are abnormal
Check if there is a feature mismatch, e.g., with/without mean and variance normalization
Note TIMIT and TEDLIUM are intrinsically quite different domains, which may attribute a lot to the degradation.

@yajiemiao Thanks very much. I will check and try a new language model using timit data.