Segmentation Fault when using -rg

Using the command:
tippecanoe -f -rg -l FID_SA1_2011_AUST -z 10 -o test.mbtiles FID_SA1_2011_AUST.geojson

on a 397MB GeoJSON file FID_SA1_2011_AUST.geojson, I get the output:
FID_SA1_2011_AUST.geojson:17897: null geometry (additional not reported)
Sorting 54772 features
Choosing a drop rate of -r1.011460 to keep 50000.000000 features in tile 2/3/2.
54772 features, 27838726 bytes of geometry, 4350078 bytes of metadata, 2724697 bytes of string pool
[1]    5877 segmentation fault  tippecanoe -f -rg -l FID_SA1_2011_AUST -z 10 -o test.mbtiles

Without the -rg option, the command doesn't segfault.
The specific GeoJSON file is open data and is available [here] (https://dl.dropboxusercontent.com/u/18091071/FID_SA1_2011_AUST.geojson).

Thanks for the report @steve9164! I haven't been able to reproduce the crash immediately but am seeing many failed attempts to clean up the polygon geometry. What version of tippecanoe are you using, and on what OS?

I'm using OS X 10.11.4 (15E65) and Tippecanoe v1.9.3 from Homebrew.

Thanks. I also got it to crash with that version, but now I can't get it to crash again. I'll keep trying to reproduce it.

Perhaps noteworthy: the crash was after the drop rate calculation (and the report of file size statistics), so perhaps not directly related to going through the index for the drop rate.
► zcat FID_SA1_2011_AUST.geojson.gz | ./tippecanoe -f -rg -l FID_SA1_2011_AUST -z 10 -o test.mbtiles
standard input:17897: null geometry (additional not reported)
Sorting 54772 features
Choosing a drop rate of -r1.011460 to keep 50000.000000 features in tile 2/3/2.
54772 features, 27838726 bytes of geometry, 4350078 bytes of metadata, 2724697 bytes of string pool
Segmentation fault: 11

Getting inconsistent segmentation faults again with Tippecanoe v1.9.7 & OS X 10.11. Was able to reproduce with this command:
tippecanoe -q -f -rg -pp -l FID_SA1_2011_AUST -z 12 -o test.mbtiles temp/FID_SA1_2011_AUST.geojson

[1]    17345 segmentation fault  tippecanoe -q ...

The segmentation fault didn't occur the first time I ran the command, but it did the second. It also occurred with a different geojson (also generated from a shapefile using ogr2ogr).

It's very strange that it doesn't behave consistently with the same input. If you are ever able to run it in a debugger, like this:
$ lldb ./tippecanoe
(lldb) target create "./tippecanoe"
Current executable set to './tippecanoe' (x86_64).
(lldb) run -q -f -rg -pp -l FID_SA1_2011_AUST -z 12 -o test.mbtiles temp/FID_SA1_2011_AUST.geojson
Process 6275 launched: './tippecanoe' (x86_64)

and then when it crashes,
(lldb) bt all

it would be very useful to see the stack trace that bt all will provide, to know where it is crashing.

Here's a stack trace from lldb:
(lldb) run -q -f -rg -pp -l FID_SA1_2011_AUST -z 12 -o test.mbtiles temp/FID_SA1_2011_AUST.geojson
Process 832 launched: '/usr/local/bin/tippecanoe' (x86_64)
temp/FID_SA1_2011_AUST.geojson:17897: null geometry (additional not reported)
Choosing a drop rate of -r1.009157 to keep 50000.000000 features in tile 2/3/2.
Process 832 stopped
* thread #2: tid = 0x2765, 0x000000010001e84d tippecanoe`simplify_lines(std::__1::vector<draw, std::__1::allocator<draw> >&, int, int) + 520, stop reason = EXC_BAD_ACCESS (code=1, address=0x114e08018)
    frame #0: 0x000000010001e84d tippecanoe`simplify_lines(std::__1::vector<draw, std::__1::allocator<draw> >&, int, int) + 520
tippecanoe`simplify_lines:
->  0x10001e84d <+520>: cmpl   $0x0, (%rsi,%r15)
    0x10001e852 <+525>: je     0x10001e879               ; <+564>
    0x10001e854 <+527>: movq   %r9, %rbx
    0x10001e857 <+530>: movq   %rbx, %rdi
(lldb) bt all
  thread #1: tid = 0x2701, 0x00007fff91e3e10a libsystem_kernel.dylib`__semwait_signal + 10, queue = 'com.apple.main-thread'
    frame #0: 0x00007fff91e3e10a libsystem_kernel.dylib`__semwait_signal + 10
    frame #1: 0x00007fff8bd87787 libsystem_pthread.dylib`pthread_join + 444
    frame #2: 0x000000010001283b tippecanoe`traverse_zooms + 1474
    frame #3: 0x00000001000068d8 tippecanoe`read_json + 10272
    frame #4: 0x0000000100007676 tippecanoe`main + 2110
    frame #5: 0x00007fff892995ad libdyld.dylib`start + 1
    frame #6: 0x00007fff892995ad libdyld.dylib`start + 1

  thread #3: tid = 0x2762, 0x00007fff91e3e10a libsystem_kernel.dylib`__semwait_signal + 10
    frame #0: 0x00007fff91e3e10a libsystem_kernel.dylib`__semwait_signal + 10
    frame #1: 0x00007fff8bd87787 libsystem_pthread.dylib`pthread_join + 444
    frame #2: 0x0000000100010900 tippecanoe`write_tile(char**, char*, char*, int, unsigned int, unsigned int, int, int, int, pool**, char**, sqlite3*, double, int, char const*, __sFILE**, int, int, double, char*, long long volatile*, double, int, int*, int*, int, long long*, long long*, unsigned int*, unsigned int*, int volatile*) + 4399
    frame #3: 0x0000000100012104 tippecanoe`run_thread(void*) + 726
    frame #4: 0x00007fff8bd8599d libsystem_pthread.dylib`_pthread_body + 131
    frame #5: 0x00007fff8bd8591a libsystem_pthread.dylib`_pthread_start + 168
    frame #6: 0x00007fff8bd83351 libsystem_pthread.dylib`thread_start + 13

  thread #4: tid = 0x2764, 0x000000010001eb89 tippecanoe`simplify_lines(std::__1::vector<draw, std::__1::allocator<draw> >&, int, int) + 1348
    frame #0: 0x000000010001eb89 tippecanoe`simplify_lines(std::__1::vector<draw, std::__1::allocator<draw> >&, int, int) + 1348
    frame #1: 0x000000010000f109 tippecanoe`partial_feature_worker(void*) + 490
    frame #2: 0x00007fff8bd8599d libsystem_pthread.dylib`_pthread_body + 131
    frame #3: 0x00007fff8bd8591a libsystem_pthread.dylib`_pthread_start + 168
    frame #4: 0x00007fff8bd83351 libsystem_pthread.dylib`thread_start + 13

* thread #2: tid = 0x2765, 0x000000010001e84d tippecanoe`simplify_lines(std::__1::vector<draw, std::__1::allocator<draw> >&, int, int) + 520, stop reason = EXC_BAD_ACCESS (code=1, address=0x114e08018)
  * frame #0: 0x000000010001e84d tippecanoe`simplify_lines(std::__1::vector<draw, std::__1::allocator<draw> >&, int, int) + 520
    frame #1: 0x000000010000f109 tippecanoe`partial_feature_worker(void*) + 490
    frame #2: 0x00007fff8bd8599d libsystem_pthread.dylib`_pthread_body + 131
    frame #3: 0x00007fff8bd8591a libsystem_pthread.dylib`_pthread_start + 168
    frame #4: 0x00007fff8bd83351 libsystem_pthread.dylib`thread_start + 13

  thread #5: tid = 0x2766, 0x00007fff92953f49 libsystem_platform.dylib`_platform_memmove$VARIANT$Haswell + 41
    frame #0: 0x00007fff92953f49 libsystem_platform.dylib`_platform_memmove$VARIANT$Haswell + 41
    frame #1: 0x0000000100012dba tippecanoe`std::__1::vector<ClipperLib::IntPoint, std::__1::allocator<ClipperLib::IntPoint> >::__swap_out_circular_buffer(std::__1::__split_buffer<ClipperLib::IntPoint, std::__1::allocator<ClipperLib::IntPoint>&>&) + 44
    frame #2: 0x00000001000137de tippecanoe`void std::__1::vector<draw, std::__1::allocator<draw> >::__push_back_slow_path<draw const>(draw const&) + 238
    frame #3: 0x000000010001e602 tippecanoe`impose_tile_boundaries(std::__1::vector<draw, std::__1::allocator<draw> >&, long long) + 605
    frame #4: 0x000000010001e6f4 tippecanoe`simplify_lines(std::__1::vector<draw, std::__1::allocator<draw> >&, int, int) + 175
    frame #5: 0x000000010000f109 tippecanoe`partial_feature_worker(void*) + 490
    frame #6: 0x00007fff8bd8599d libsystem_pthread.dylib`_pthread_body + 131
    frame #7: 0x00007fff8bd8591a libsystem_pthread.dylib`_pthread_start + 168
    frame #8: 0x00007fff8bd83351 libsystem_pthread.dylib`thread_start + 13

  thread #6: tid = 0x2767, 0x000000010001ea69 tippecanoe`simplify_lines(std::__1::vector<draw, std::__1::allocator<draw> >&, int, int) + 1060
    frame #0: 0x000000010001ea69 tippecanoe`simplify_lines(std::__1::vector<draw, std::__1::allocator<draw> >&, int, int) + 1060
    frame #1: 0x000000010000f109 tippecanoe`partial_feature_worker(void*) + 490
    frame #2: 0x00007fff8bd8599d libsystem_pthread.dylib`_pthread_body + 131
    frame #3: 0x00007fff8bd8591a libsystem_pthread.dylib`_pthread_start + 168
    frame #4: 0x00007fff8bd83351 libsystem_pthread.dylib`thread_start + 13

  thread #7: tid = 0x2768, 0x00000001000260d1 tippecanoe`ClipperLib::Clipper::InsertEdgeIntoAEL(ClipperLib::TEdge*, ClipperLib::TEdge*) + 253
    frame #0: 0x00000001000260d1 tippecanoe`ClipperLib::Clipper::InsertEdgeIntoAEL(ClipperLib::TEdge*, ClipperLib::TEdge*) + 253
    frame #1: 0x00000001000242ba tippecanoe`ClipperLib::Clipper::InsertLocalMinimaIntoAEL(long long) + 98
    frame #2: 0x0000000100024056 tippecanoe`ClipperLib::Clipper::ExecuteInternal() + 144
    frame #3: 0x0000000100023b11 tippecanoe`ClipperLib::Clipper::Execute(ClipperLib::ClipType, ClipperLib::PolyTree&, ClipperLib::PolyFillType, ClipperLib::PolyFillType) + 59
    frame #4: 0x000000010001c490 tippecanoe`clean_or_clip_poly(std::__1::vector<draw, std::__1::allocator<draw> >&, int, int, int, bool) + 1535
    frame #5: 0x000000010000f2e3 tippecanoe`partial_feature_worker(void*) + 964
    frame #6: 0x00007fff8bd8599d libsystem_pthread.dylib`_pthread_body + 131
    frame #7: 0x00007fff8bd8591a libsystem_pthread.dylib`_pthread_start + 168
    frame #8: 0x00007fff8bd83351 libsystem_pthread.dylib`thread_start + 13

  thread #8: tid = 0x2769, 0x00007fff929507d6 libsystem_platform.dylib`_os_lock_spin_lock + 12
    frame #0: 0x00007fff929507d6 libsystem_platform.dylib`_os_lock_spin_lock + 12
    frame #1: 0x00007fff8dba772d libsystem_malloc.dylib`szone_free_definite_size + 943
    frame #2: 0x000000010001cb4e tippecanoe`decode_clipped(ClipperLib::PolyNode*, std::__1::vector<draw, std::__1::allocator<draw> >&) + 903
    frame #3: 0x000000010001c502 tippecanoe`clean_or_clip_poly(std::__1::vector<draw, std::__1::allocator<draw> >&, int, int, int, bool) + 1649
    frame #4: 0x000000010000f2e3 tippecanoe`partial_feature_worker(void*) + 964
    frame #5: 0x00007fff8bd8599d libsystem_pthread.dylib`_pthread_body + 131
    frame #6: 0x00007fff8bd8591a libsystem_pthread.dylib`_pthread_start + 168
    frame #7: 0x00007fff8bd83351 libsystem_pthread.dylib`thread_start + 13

  thread #9: tid = 0x276a, 0x000000010001ea7f tippecanoe`simplify_lines(std::__1::vector<draw, std::__1::allocator<draw> >&, int, int) + 1082
    frame #0: 0x000000010001ea7f tippecanoe`simplify_lines(std::__1::vector<draw, std::__1::allocator<draw> >&, int, int) + 1082
    frame #1: 0x000000010000f109 tippecanoe`partial_feature_worker(void*) + 490
    frame #2: 0x00007fff8bd8599d libsystem_pthread.dylib`_pthread_body + 131
    frame #3: 0x00007fff8bd8591a libsystem_pthread.dylib`_pthread_start + 168
    frame #4: 0x00007fff8bd83351 libsystem_pthread.dylib`thread_start + 13

  thread #10: tid = 0x276b, 0x000000010001e421 tippecanoe`impose_tile_boundaries(std::__1::vector<draw, std::__1::allocator<draw> >&, long long) + 124
    frame #0: 0x000000010001e421 tippecanoe`impose_tile_boundaries(std::__1::vector<draw, std::__1::allocator<draw> >&, long long) + 124
    frame #1: 0x000000010001e6f4 tippecanoe`simplify_lines(std::__1::vector<draw, std::__1::allocator<draw> >&, int, int) + 175
    frame #2: 0x000000010000f109 tippecanoe`partial_feature_worker(void*) + 490
    frame #3: 0x00007fff8bd8599d libsystem_pthread.dylib`_pthread_body + 131
    frame #4: 0x00007fff8bd8591a libsystem_pthread.dylib`_pthread_start + 168
    frame #5: 0x00007fff8bd83351 libsystem_pthread.dylib`thread_start + 13

Thank you! Knowing that the crash is happening in simplify_lines() should be very helpful in narrowing down the problem!

In particular the crash is at this line:
                    if (geom[start + right_border].necessary) {

where start = 4383, right_border = 1, and the size() of geom is 4384, because, apparently, it is trying to simplify a MultiLineString or Polygon whose final ring or line has only one point in it rather than at least one pair of points.

Thank you for finding this bug! Fixed in https://github.com/mapbox/tippecanoe/pull/208.


implement multiclass dice loss

@Kaixhin good point ! I think I'll directly import this https://github.com/kevinzakka/pytorch-goodies/blob/master/losses.py

@edgarriba yep looks like the right kind of idea - perhaps all just in losses\segmentation.py, and then there'll be a nice selection to use from the start.


[Package Request]: JACK Audio Connection Kit

Package Requested

[X] I would like someone else to build the manifest.
[ ] I would like help so I can submit the manifest.
[X] I have performed a search and couldn't find this package.
[X] I have checked that the installer for this package is not contained in a .zip file
[ ] I think there is a new version available and I have provided the URL.

Please provide the following information
Publisher: jackaudio.org
Publisher Url: https://jackaudio.org/
Package Name: JACK2
Description: JACK Audio Connection Kit (or JACK) is a professional sound server API and pair of daemon implementations to provide real-time, low-latency connections for both audio and MIDI data between applications.
Package Version: 1.9.21
Installer URL:  https://github.com/jackaudio/jack2-releases/releases/download/v1.9.21/jack2-win64-v1.9.21.exe
Current Package Identifier (for new versions):

There is a 32 Bit version available too: https://github.com/jackaudio/jack2-releases/releases/download/v1.9.21/jack2-win32-v1.9.21.exe It would be good to have it packaged too.
I'm not sure what to put for the publisher as it's open source. https://github.com/jackaudio/jack2


AMBARI-25379 Upgrade AMS Grafana version to 6.4.2

What changes were proposed in this pull request?
The Grafana version of Ambari Metrics has been upgraded to 6.4.2 to eliminate security related issues with the old version.
How was this patch tested?
Manual testings were applied:

Ambari Upgrade process was tested to make sure that the new Granfana configurations are utilized.

ambari-server stop;
On all nodes:
ambari-agent stop
yum upgrade -y ambari-server-<IP_ADDRESS>-0.x86_64.rpm
Upgrade all Ambari Agents. On each host in your cluster running an Ambari Agent:
yum upgrade -y ambari-agent-<IP_ADDRESS>-0.x86_64.rpm
Upgrade Ambari Server database schema. On the host running Ambari Server:
ambari-server upgrade
ambari-server start
Start all Ambari Agents. On each host in your cluster running an Ambari Agent:
ambari-agent start
Upgrade Ambari Metrics
Stop Ambari Metrics
yum upgrade -y ambari-metrics-monitor-<IP_ADDRESS>-0.x86_64.rpm;\
yum upgrade -y ambari-metrics-grafana-<IP_ADDRESS>-0.x86_64.rpm;\
yum upgrade -y ambari-metrics-hadoop-sink-<IP_ADDRESS>-0.x86_64.rpm;\
yum upgrade -y  ambari-metrics-collector-<IP_ADDRESS>-0.x86_64.rpm;
Start Ambari Metrics

The new Grafana should start up with the new configurations.

Some of the dashboards (Amabri, Kafka, HDFS) were manually tested.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/5501/
Test FAILed.
Test FAILured.

recheck this please

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/5502/
Test PASSed.

Merging based on Ihor's review.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/5508/
Test PASSed.


Hotkey for displaying a hidden menu is accepted even when combined with other modifier keys

VSCode Version: 1.10.2
OS Version: Windows 10

Steps to Reproduce:

Set the menu to hidden by default
Leave the hotkey for showing the menu as the default (ALT in my case)
Press ALT + CTRL or ALT + SHIFT
The menu is displayed on key release

It is pretty common for me to start to use a hotkey combination and then change my mind and let go of the modifier keys before pressing the main hotkey. If those modifiers included the ALT key, the menu is displayed even if other modifier keys were also being pressed at the same time.

The only workaround for now is window.menuBarVisibility: hidden but that also means that the menu never shows up, not even on Alt press.

We will change to custom menus on Windows. For now you can set "window.titleBarStyle": "custom".


Retroactively add ux team to ui samples plugin

Add ux people retroactively to ui samples aka design lib: https://github.com/jenkinsci/ui-samples-plugin
I'm not sure if @janfaracik did log into Artifactory yet, I couldn't find his username in the artifactory ldap user report.
cc @timja
Always

[X] Add link to plugin/component Git repository in description above

For a newly hosted plugin only

[ ] Add link to resolved HOSTING issue in description above

For a new permissions file only

[ ] Make sure the file is created in permissions/ directory
[ ] artifactId (pom.xml) is used for name (permissions YAML file).
[ ] groupId / artifactId (pom.xml) are correctly represented in path (permissions YAML file)
[ ] Check that the file is named plugin-${artifactId}.yml for plugins

When adding new uploaders (this includes newly created permissions files)

[X] Make sure to @mention an existing maintainer to confirm the permissions request, if applicable
[X] Use the Jenkins community (LDAP) account name in the YAML file, not the GitHub account name
[X] Make sure to @mention the users being added so their GitHub account names are known if they require GitHub merge access (see below).
[ ] All newly added users have logged in to Artifactory at least once

Reviewer checklist (not for requesters!)

[ ] Check this if newly added person also needs to be given merge permission to the GitHub repo (please @ the people/person with their GitHub username in this issue as well). If needed, it can be done using an IRC Bot command
[ ] Check that the $pluginId Developers team has Admin permissions while granting the access.
[ ] In the case of plugin adoption, ensure that the Jenkins Jira default assignee is either removed or changed to the new maintainer.
[ ] If security contacts are changed (this includes add/remove), ping the security officer (currently @Wadeck) in this pull request. If an email contact is changed, wait for approval from the security officer.

There are IRC Bot commands for it

Tbh was prob going to release this with CD and need to add a new entry for the design library but can do this in the meantime once Jan logs in

Did it here nevertheless, unlikely that this PR would be long on hold.
Also, +1 from me to rename the GH repository afterwards to match its new purpose.

@janfaracik can you log into https://repo.jenkins-ci.org/ please

@janfaracik can you log into https://repo.jenkins-ci.org/ please

Done 👍


Fix streamer mode button being always visible on Windows

Description
Fixes #4682

Confirmed it works as expected for me on Windows 11
It's a bit tricky to test since streamer mode doesn't update automatically when obs launches, you have to do something that would check the streamer mode stuff.


JS.ORG

I just saw that you are using the JS.ORG just for a redirect. If you are not using the subdomain directly I will remove it from the list.

Okay, I'm not using that in a while. If I'm going to use it again I'll
fireup a new request. Thanks for your wonderful service!
On Wed, May 15, 2019, 14:39 Stefan Keim<EMAIL_ADDRESS>wrote:

I just saw that you are using the JS.ORG just for a redirect. If you are
not using the subdomain directly I will remove it from the list.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ClassicOldSong/bPlayer/issues/5?email_source=notifications&email_token=ACQGQJU4Z52YKN2WAGBK2YLPVOVZDA5CNFSM4HNAEB6KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GT24X5Q,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACQGQJXDCC5QHFVJYJOJHFLPVOVZDANCNFSM4HNAEB6A
.


feat: no-unknown-at-rule rule

Prerequisites checklist

[x] I have read the contributing guidelines.

What is the purpose of this pull request?
Implement the no-unknown-at-rule rule
What changes did you make? (Give an overview)

Implemented no-unknown-at-rule
Added tests
Added docs
Added rule as recommended

Related Issues

Is there anything you'd like reviewers to focus on?
This is built on top of #5, so we should merge that first.

There're merge conflicts here now.


JWT Hardening

Feature #28
After #19
Upstream https://github.com/eclipse-dataspaceconnector/DataSpaceConnector/issues/1176
Description
JWTs are used in EDC as means to authenticate IDS requests. The current implementation allows for a malicious entity that gets ahold of a JWT to impersonate the original sender, and thus send requests to any other participant.
Use the audience claim to identify the JWT target. A JWT token sent to another participant than the one it was initially intended for will be rejected. This prevents from a malicious participant to reuse JWTs sent to him as a producer, to impersonate the signer of that JWT  as a consumer himself.
The DID of the messages receiver must be used as value of the audience claim. These should be available in the registry which needs to be extended to keep track of the DIDs for each participant.
Acceptance Criteria

[ ] Extend the registry json to contain the DID for each participant
[ ] Extend EDC to fill the JWT audience claim using the message receiver DID (see prototype code)
[ ] Extend EDC to verify audience claim on each IDS message receival (see prototype code)
[ ] Integration tests to check audience verification is working properly

@marcgs why use the target DID as audience? Using the target URL seems simpler as the client connector has it as a matter of course, and the target connector also knows it in its IDS_WEBHOOK_ADDRESS.
The audience is often a URL in other systems (e.g. from Azure AD:   "aud": "https://management.core.windows.net/")

Blocked until upstream issues in EDC are resolved.

Removed from our scope, we will keep the upstream issue to address the topic.


[FEATURE]: Support PowerStore v3.6

Qualify CSM PowerStore driver and associated modules with the latest version of the PowerStore v3.6 storage platform

Team - can we get the documentation updated with PowerStore 3.6 support? It is not listed in the matrix.

Team - can we get the documentation updated with PowerStore 3.6 support? It is not listed in the matrix.

hi @cindyhodell, thank you for letting us know this and updated the support matrix for PowerStore 3.6.


ProfilePath in Chrome

Hello
I can't use ProfilePath in Chrome
Start-SeDriver -Browser Chrome -WebDriverPath $chromedriver -ProfilePath $Profile_Path
Error message
Action to take for this exception:
A parameter cannot be found that matches parameter name 'ProfilePath'.
This was commented out, so I fixed it and -ProfilePath is now available.
Start-SeChromeDriver.ps1 line22
# [System.IO.FileInfo]$ProfilePath,
Windows 10 64bit
PowerShell 7.2.0
Selenium PowerShell Module V4.0.0 preview3
I'm always grateful for this project!
Thank you very much!
Translated with www.DeepL.com/Translator (free version)

I submitted a fix for this in  #224
Either build yourself or wait for @adamdriscoll  to accept the pull request :-)


Getting "The file did not end with a single newline" after upgrading from 0.25 to 0.26.2

Hi,
Many of our files are reporting "The file did not end with a single newline" when run on the CI build. I have tried 0.26 and 0.26.2 and both are failing.
The build are running on hosted agents in Azure DevOps, which are running Ubuntu and .NET 7.0.404. We have developers using both Mac and Windows and are using the CSharpier.MsBuild package.
Error /home/vsts/work/1/s/src/services/xxx/app/Program.cs - Was not formatted.
  The file did not end with a single newline.

##[error]/home/vsts/.nuget/packages/csharpier.msbuild/0.26.0/build/CSharpier.MsBuild.targets(19,5): Error MSB3073: The command "dotnet "/home/vsts/.nuget/packages/csharpier.msbuild/0.26.0/build/../tools/csharpier/net7.0/dotnet-csharpier.dll"  --check --no-msbuild-check "/home/vsts/work/1/s/src/services/xx/app" > /dev/null " exited with code 1.

Have you double checked that csharpier has formatted the Program.cs file? The code that ensures formatting includes a single blank line at the end of a file hasn't changed in a while.
Otherwise maybe there is some content in the file that CSharpier isn't handled correctly which is resulting in the formatting now including the blank line.

Sorry for late reply. It will probably be a week or so more before I can dig deeper inteo this isse.

Have you double checked that csharpier has formatted the Program.cs file?
Yes, they are all formatted when building locally before pushing the changes to devops.

I tried upgrading to 0.26.3, but the issue remains. 0.25.0 still works.

I have the exact same problem.
-> With 0.25.0, everything worked fine.
-> With 0.26.x, it still works locally (on a Windows machine). But it shows the same EoF error on the CI (Linux machine). Can it be a mismatch in CRLF detection?

If either of you could provide a file that causes this problem, that would help. Git can be configured to normalize line endings, clone with CRLF for windows, push with LF is fairly common, so you may have to download the file directly from git to reproduce it.

I downloaded one file from devops and read all the bytes and all of them end with a single 10  (LF), I see no traces of CR.
My local files does contain CR & LF.
I assume this has something to do with git.autocrlf

Ah, I think I finally know what is happening. By chance do you have an .editorconfig with a setting for end_of_line = crlf ?
I found a bug in https://github.com/belav/csharpier/blob/main/Src/CSharpier/Utilities/StringDiffer.cs#L19 after staring at it for a while and suspecting something in it isn't correct. The logic for detecting line endings that differ from what csharpier expects didn't properly work when the strings being compared actually ended with line endings, so it wasn't doing much good. It only worked with line endings in the middle of strings.
0.26.0 introduced the ability to specify line endings (re-introduced actually). It also reads configuration from an .editorconfig now. So if you have an editorconfig with end_of_line then CSharpier is expecting the file to use \r\n, but it is in the repo (or being cloned with) \n, and the bug with StringDiffer is reporting the problem incorrectly.
Assuming this is all true I think removing end_of_line from the editorconfig, or adding endOfLine: auto to a csharpierrc would resolve it. I'll also get the bug in StringDiffer fixed.

Thanks for looking into it and sorry for not being able to provide more information earlier. I do have end_of_line = crlf and I updated to 0.26.6 but still seeing the same error, could it have anything to do with the insert_final_newline = false?

Ah, yes. It works for me with this configuration:
# New line preferences
end_of_line = auto
insert_final_newline = true

Ah, yes. It works for me with this configuration

This change works for me also 👍

Thanks for looking into it and sorry for not being able to provide more information earlier.

Not a problem at all, I was noodling on this for a while and didn't think to ask for what editorconfig you were using. I've since added issue templates to try to get all that info upfront.
Is there something else that is enforcing insert_final_newline = false ? CSharpier isn't looking at that setting, so it seems odd that 0.25.0 works but 0.26.X requires that to be true.

I ended up adding a .csharpierrc with endOfLine: auto.
I also think that this is a good enough workaround and the issue is very "searchable" so I think that it can be closed.

This issue is coming back... And I kept end_of_line = auto in the .editorconfig.
Any idea? @belav


filter with ng-repeat

Hello,
I'm facing the issue, that I cannot rerender slick when I bind a filter input to my ng-repeat (I use html cards).
As soon as the filter triggers, all items disappear.

please make a demo plnkr.co
you could fork http://plnkr.co/edit/BszBjj

@devmark I came across this as I had the same issue. It took me a while to reproduce in your (working) example, but finally got it. It seems that by adding {rows: 2} to the config it breaks the filtering in your example and my own code.  Here's a fork of your example that shows this behavior:
http://plnkr.co/edit/NN63HQmCPlVakcj9Jps8?p=preview
Thanks

Hello.
http://plnkr.co/edit/HtqKINMPHxCwQqMfUzFZ?p=preview

use ng-change to restart slick.
use $watch to do it.

@devmark Thanks, that worked great. Now that it works, it seems filtering has an odd effect on the organization of the results. You can see it here in action:
http://plnkr.co/edit/qUIdg33h6cdFKGiMeiMA?p=preview
I feel like this is again a byproduct of the rows option.
You can see the behavior in the demo if you type 1 in the input. Four results are present, as expected.
Odd behavior: Slick configuration is for 2 rows, 3 at a time. I expected the four elements present to be 3 on the first row, and 1 on the second row. However, there are 2 on each row. Is this intended? I'm trying to get a demo of the original slick.js working to see if I can reproduce the behavior outside of angular filtering.

@devmark thank you very much sir... 💯


show ipv6 checkbox for multus,cilium

#4550 - ipv6 checkbox should show if the selected container network is either 'cilium' or 'multus, cilium'

I'm adding @richard-cox to review because I'm not sure I'm updating chartValues correctly. Toggling the checkbox on seems to add cilium.ipv6.enabled = true, but toggling it off removes the ipv6 key entirely so I'm not sure syncChartValues is behaving as intended.


Cannot publish packages from azure-cli docker image

Describe the bug
when trying to use the azure-cli docker image cannot publish from folders that are mapped in.
azure-cli                         2.0.58 *
azure-devops                       0.2.0
If I run the following docker command
docker run --rm -e AZURE_DEVOPS_EXT_PAT=$AZURE_DEVOPS_TOKEN -v /directory/folder:/tmp/build build-images.azure-cli /bin/bash -c az devops login ;az artifacts universal publish --feed myfeed --path /tmp/build --version 0.0.7 --name test-cli
It fails with "The path provided is invalid."
If I run the following
docker run --rm -e AZURE_DEVOPS_EXT_PAT=$AZURE_DEVOPS_TOKEN -v /directory/folderi:/tmp/build build-images.azure-cli /bin/bash -c az devops login ;az artifacts universal publish --feed myfeed --path /bin --version 0.0.7 --name test-cli
This works not matter what path I try with a mapped in folder it does not work. I have run the docker interactively and can see the folder is mapped in.

@zarenner @mitchdenny  Can someone take a look at this one?

And is this in someway related/duplicate of #217?
+

Just for info I created the following dockerfile
`FROM microsoft/azure-cli
RUN az extension add --name azure-devops
RUN az devops configure --defaults organization=https://dev.azure.com/myorg`
This creates the image build-images.azure-cli mentioned above

Thanks @psandhu79 - we are working on a solution. There are two parts here, we needed to flight a build that works with alpine, and then we also need to merge in a change to the AZ CLI extension itself which passes the distro information to our backend so we can select the right build on behalf of the client.
We've flighted the alpine bits so now its just landing the PR and we should be able to get the basic elements unblocked - then it will be a matter of the AZ DevOps CLI itself getting updated so the new distro logic runs.
We'll leave this open until we are done-done.

If you are trying to run multiple commands INSIDE the container you usually need to pass the entire set of commands in quotes as your command line interpreter will parse it before they make it into the container otherwise. Your use of bash -c is a good start. I haven't played with the container for uploading artifacts yet but I will be shortly, so I'll see if there is a series of commands that works properly.
Side note, you are using the -v syntax instead of --mount for the volumes, where if the source file doesn't exist Docker CREATES IT on the host, which leads to all sorts of pain. You should use --mount type=bind,source=sourcepath,target=destpath or ensure any paths exist beforehand (but --mount is much safer).

Please see latest updates in #217. It is now possible to use Universal Packages inside azure-cli docker, although it does currently require adding a couple missing dependencies to the azure-cli image.

@zarenner - can this issue be closed with the updates on #217 ?

Closing this issue. Feel Free to reopen in case it is not fixed.


[Bug]: pdfjs-dist not working in chrome

Attach (recommended) or Link to PDF file
Every PDF
Web browser and its version
Google Chrome: 130.0.6723.59
Operating system and its version
macOS 15.0.1
PDF.js version
pdfjs-dist: 4.7.76
Is the bug present in the latest PDF.js version?
Yes
Is a browser extension
No
Steps to reproduce the problem

use pdfjs-dist in a web-app as follows:

import * as pdfJS from 'pdfjs-dist';
pdfJS.GlobalWorkerOptions.workerSrc = window.location.origin + '/pdf.worker.min.js';

export default pdfJS;

build your own pdf viewer
open the web-app in chrome

What is the expected behavior?
The file should be displayed correctly, like in safari.
What went wrong?
Uncaught TypeError: Failed to construct 'Headers': Invalid name
    at PDFNetworkStreamFullRequestReader._onHeadersReceived (pdfjs-dist.js?v=b25d4dee:10221:29)
    at NetworkManager.onStateChange (pdfjs-dist.js?v=b25d4dee:10109:22)

Link to a viewer
No response
Additional context
The error has only occurred since version 4.7.76. In version 4.6.82 everything works without errors.
Looks like the error occurred here.

https://mozilla.github.io/pdf.js/web/viewer.html works in Chrome without any problem. Please provide a link to a reproduction.

Closing until more information is provided, as requested in the issue template. Without it this issue is unfortunately not actionable for us.

Made a PR that should fix this: https://github.com/mozilla/pdf.js/pull/19010


Have add_child return a value.

Issue description (what happened, and what was expected):
As per http://docs.godotengine.org/en/latest/classes/class_node.html?highlight=add_child currently add_child currently returns void when called. I think it might be helpful for add_child to instead return a value.
I'm thinking it should:

Return the absolute path of the added node if valid/correct. So if the new parent was "/root/nodRootMain" and the function was add_child (SceneMe) where the root node of SceneMe was "a_scene", it'd return "/root/nodRootMain/a_scene".
Alternatively, return the resultant node object.
Return something else (null, an ERR_ condition etc) if invalid.

I'm against it.

Returning the absolute path of the added node seems cool, but if you think about it for a time, you'll probably see, that you do not need it. Give me an example of code, where I can use that.
You already have a child node object, haven't you? Otherwise, how you can attach child without creating it before?
What can go wrong way when adding child to node? I can't imagine this situation.

I'm against it too, especially the path, because it involves computations I don't need.
The second proposal is useless because you already have the node, except for introducing a more fluent interface, but it's mostly syntactic sugar.
The third proposition seems a bit interesting at first look, because you don't want the name of your node to collide with any other child and that could indeed be considered an error (well, if you care about it).
But even that is currently not needed, because Godot renames your node in this case:
Node
@Node@2
@Node@3
@Node@4
@Node@5

Side note: this also means Godot compares every other child's names before adding your node, so if you frequently add nodes to a parent that has say, 1000 children, it looks like you'll have a lot of string comparisons going on. Fortunately, because they are StringNames (and not Strings), these comparisons should be as fast as comparing two integers https://github.com/godotengine/godot/blob/master/core/string_db.h#L106

I like to get error codes but not sure if will be useful here.
With the upcoming of C#, where people is afraid of variables and love chaining, some may like to do
parent.add_child(packed_scene.instance()).do_something()
In this case, should add_child return the child or the parent?

parent.add_child(packed_scene.instance()).do_something() seems unclear code to me.

@volzhs I agree on the lack of clarity.
And what about Visual Script? Could it get some benefit from returning something in this method?

@eon-s this is called "fluent interface", and you can do this with any language. If you were referring to LINQ, not all game developers like it (I am one of them, but for technical reasons rather than the syntax).

@eon-s VisualScript would benefit even less from such changes, since you already can hook the newly-added child into whatever other function you have as well.

I am definitely for having add_child return the child being added.
For example:
add_child(load("res://MyScene.tscn").instance()).position = Vector2(100, 150) #no variables
That might look super ugly to you, but there are plenty in the open-source JS game engine community (Phaser, etc.) looking into Godot, who find chaining very natural.  Keep using it as if its void.
@eon-s I agree that VisualScript benefits from it. Taking Unreal's Blueprints for example, they add output pins whenever possible, even if it would seem superfluous. For example, the Blueprint set nodes return what they are setting:

Again, this might seem superfluous, because why can't they just use the same wire for the value that they used for the input pin on the set node? Because sometimes it keeps the graph more organized when you can start a new wire at the output pin on the set node, and again, for those who don't want to use it: no skin off their backs.

One benefit I see is that you can create instance and adding it as child in the same line. This code seems clear to me:
var label = add_child(Label.new())

I personally wouldn't set a property or call a method on that line, though.

Still reproducible/relevant in 3.1 master 9ad1800 : add_child doesn't return a value.

@ghost, LOL, took me a while to understand what that will return. now that i think of it.. i still don't know

Still an issue? I'm looking to add this feature.

What i find useful in this proposal isn't chaining but this:
var child = add_child(load("res://MyScene.tscn").instance())
Now, when i need to do something with a child i'm writing two lines - one with child declaration, the other with instance(). With a return value in add_child it would be just one line.

Nodoby has yet mentioned about countless warnings that will appear due to Return value discarded in existing projects (though I find those mostly useless so I just disable them for now).
Some examples:
node = add_child(node) # reuse the same node to avoid the warning

var _child = add_child(node) # use underscore discard syntax explicitly

# warning-ignore:return_value_discarded
add_child(node)

Also see https://github.com/godotengine/godot/pull/30628#issuecomment-512642195.

Many who support adding this functionality here basically write this as https://github.com/godotengine/godot/issues/6521#issuecomment-559000937:
var child = add_child(load("res://MyScene.tscn").instance())

So perhaps it wouldn't hurt adding something akin to instance_child(scene) for
people coming from GameMaker https://github.com/godotengine/godot/pull/33926#issuecomment-559020825 (or as a method which is used quite often in fact by many Godoters):
var node = instance_child(load("res://MyScene.tscn"))

The intention is fairly explicit, and the warning about discarded value would be legit now.

@Xrayez - my original intent (and still primary) is to see error-checking added to add_child, but that'd certainly resolve a lot of the issues people are bringing up here. If an instance_child was added, then add_child could simply return a true or false if the node was added correctly.
As for the warnings caused, maybe this should be marked as a breaking compatibility issue.

To bug triagers: please don't add the "junior job" label to feature requests which are not consensual. This has not been implemented not because we lack manpower, but because we lack consensus on it being a good change - so we shouldn't encourage new contributors to work on them.

Consistency in code
Consistency in code
While this doesn't break compatibility, it also allows code to be inconsistent. Right now, there is pretty much one way to do every simple tree action. Breaking that would make tutorials less consistent, and lead to confusion for new developers. "Why does this return a value? I already have this variable". It may lead to wtf code like child = parent.add_child(child).

Consistency in the engine
Consistency in the engine
If we were to do this, we would also need to implement other returns for methods like remove_child() for the sake of consistency. For example, you might do parent.remove_child(child).queue_free(). (However, in this instance, you could just use queue_free()).
I should note that many APIs (Although not Godot's) often return booleans after operations. This may make sense for remove_child() (if the child isn't there to begin with), but add_child() almost never has problems (And therefore should have exceptions instead of returning a value every time.

What does this even do?
What does this even do?
I agree with volzhs. It is difficult to know what this code does; Many APIs return values for the sake of compact code, but there is no defined convention. jQuery also has a system of hierarchy (HTML) and you can definitely make compact code... But almost all operations return the parent. $("#parent").append(child).attr("id") // parent

Lastly, I reference this image from Will your contribution be merged? Here's how to tell

See #33938 and #33974. At this point add_child might benefit from returning a bool if it added the child successfuly or not, but that might be part of a larger argument about error-checking.

Feature and improvement proposals for the Godot Engine are now being discussed and reviewed in a dedicated Godot Improvement Proposals (GIP) (godotengine/godot-proposals) issue tracker. The GIP tracker has a detailed issue template designed so that proposals include all the relevant information to start a productive discussion and help the community assess the validity of the proposal for the engine.
The main (godotengine/godot) tracker is now solely dedicated to bug reports and Pull Requests, enabling contributors to have a better focus on bug fixing work. Therefore, we are now closing all older feature proposals on the main issue tracker.
If you are interested in this feature proposal, please open a new proposal on the GIP tracker following the given issue template (after checking that it doesn't exist already). Be sure to reference this closed issue if it includes any relevant discussion (which you are also encouraged to summarize in the new proposal). Thanks in advance!


MAINT: Bump versions and build config to 25.01 with RAPIDS 24.10

The first two commits just update all versions and modify the build config the same way as for legate-dataframe.
The last commit has a few miscellaneous build related changes (mainly to build.sh because ./build.sh clean stopped working).
The build seems weird/messy to me, but I don't think that changed.  My guess is, that the Python/C++ builds should be seperated out into two CMakeLists.txt (similiar to legate-df).
NOTE: Yes, this includes changing VERSION, so I'll just plan on aborting the actions run to avoid uploading another 24.11.00 experimental release before tagging 25.01.00.dev.

We also have a few new build warnings due to kmeans moving to cuvs, so that will need to be fixed eventually.

Yeah, the build stayed about as slow as it was (maybe a tiny bit slower), but it definitely is building things twice unnecessarily (and always was).
We should figure this out (although I might prefer to not do it here).

did that by requiring an argument for every type of build. Like this:

Thanks for the tip.  That is definitely quicker than trying to split things up.


Small fixes to verify_release_build.sh

Remove duplicate phrase
Create a dummy .json file instead of .txt, since Rat ignores json
files.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

R: @markflyhigh

ignoring unrelated Java failure.


Linear algebra ops in keras.ops.linalg

Introduces a linear algebra module in Keras' backend-agnostic ops, with some of the most widely used methods. Closes #19062
The following ops are implemented and are available under the keras.ops.linalg namespace: cholesky, det, eig, inv, lu_factor, norm, qr, solve, solve_triangular, svd.  A deprecation warning is raised for norm, qr and solve in the keras.ops.math module.

Codecov Report
Attention: 431 lines in your changes are missing coverage. Please review.

Comparison is base (c8700f4) 80.14% compared to head (f1af4b3) 53.73%.
Report is 9 commits behind head on master.

Files
Patch %
Lines

keras/ops/linalg.py
58.39%
214 Missing and 9 partials :warning:

keras/backend/tensorflow/linalg.py
18.68%
74 Missing :warning:

keras/backend/jax/trainer.py
0.00%
38 Missing :warning:

keras/backend/jax/linalg.py
44.18%
24 Missing :warning:

keras/backend/torch/linalg.py
42.10%
22 Missing :warning:

keras/backend/tensorflow/numpy.py
0.00%
13 Missing :warning:

keras/backend/jax/core.py
0.00%
8 Missing :warning:

keras/backend/jax/numpy.py
0.00%
7 Missing :warning:

keras/backend/tensorflow/core.py
0.00%
7 Missing :warning:

keras/backend/numpy/linalg.py
86.04%
3 Missing and 3 partials :warning:

... and 2 more

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #19143       +/-   ##
===========================================
- Coverage   80.14%   53.73%   -26.41%
===========================================
  Files         341      362       +21
  Lines       36163    39206     +3043
  Branches     7116     7587      +471
===========================================
- Hits        28982    21068     -7914
- Misses       5578    16628    +11050
+ Partials     1603     1510       -93

Flag
Coverage Δ

keras
53.73% <50.74%> (-26.26%)
:arrow_down:

keras-jax
?

keras-numpy
53.73% <50.74%> (-3.35%)
:arrow_down:

keras-tensorflow
?

keras-torch
?

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Can you take a look at the GPU test failures?
JAX:

E         NotImplementedError: Nonsymmetric eigendecomposition is only implemented on the CPU backend. If your matrix is symmetric or Hermitian, you should use eigh instead.

torch:

TypeError: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.

For the second one, in tests, use ops.convert_to_numpy() on tensors to convert them to NumPy arrays.


Make dependency to Leaflet.Draw optional

By downloading and importing the library in my HTML project it shows me this error in browser's console:
Uncaught TypeError: Cannot read property 'Poly' of undefined
    at leaflet.snap.js:326

I just can't figure out whats's wrong in line 326, i've downloaded the repository and placed the leaflet.geometryutil.js and leaflet.snap.js in this loading order:
  <script src="./javascripts/lib/leaflet.geometryutil.js"></script>
  <script src="./javascripts/lib/leaflet.snap.js"></script>

i have been having the same issue, it's because (im guessing) you are not using leaflet draw, same as me, i am using leaflet editable. leaflet snap expects leaflet draw. if you don't want to use it you can do 1 of 3 things.

wait for it to be fixed
ignore the error as it seems to work anyway
add the following code at line 325 to leaflet.snap.js (this overrides the leaflet draw stuff so if you use it in the future you will have to remove this code.) it basically just suppresses the error.

L.Edit = L.Edit || {};
L.Edit.Poly = L.Edit.Poly || { extend: function () {} };
L.Edit.PolyVerticesEdit = L.Edit.PolyVerticesEdit || { extend: function () {} };
L.Edit.Rectangle = L.Edit.Rectangle || { extend: function () {} };
L.Edit.Circle = L.Edit.Circle || { extend: function () {} };
L.EditToolbar = L.EditToolbar || {};
L.EditToolbar.Edit = L.EditToolbar.Edit || { extend: function () {} };
L.EditToolbar.prototype = L.EditToolbar.prototype || { extend: function () {} };
L.EditToolbar.prototype.getEditHandler = L.EditToolbar.prototype.getEditHandler || { extend: function () {} };
L.Draw = L.Draw || {};
L.Draw.Feature = L.Draw.Feature || {};
L.Draw.Feature.SnapMixin = L.Draw.Feature.SnapMixin || {};
L.Draw.Feature.include = function(){};
L.Draw.Feature.addInitHook = function(){};

i used code from https://github.com/Turbo87/Leaflet.Snap and added my own for each of the following errors that popped up. no guarantee that this will work in all cases but seems to work for me.

Any updates on this?

Any updates on this? I do not want to add the script manually, I want to pull it from npm

@mohammedzamakhan you could try placing this code between leaflet and leaflet,snap
something along the lines of:
<script src="leaflet.js"></script>
<script>
L.Edit = L.Edit || {};
L.Edit.Poly = L.Edit.Poly || { extend: function () {} };
L.Edit.PolyVerticesEdit = L.Edit.PolyVerticesEdit || { extend: function () {} };
L.Edit.Rectangle = L.Edit.Rectangle || { extend: function () {} };
L.Edit.Circle = L.Edit.Circle || { extend: function () {} };
L.EditToolbar = L.EditToolbar || {};
L.EditToolbar.Edit = L.EditToolbar.Edit || { extend: function () {} };
L.EditToolbar.prototype = L.EditToolbar.prototype || { extend: function () {} };
L.EditToolbar.prototype.getEditHandler = L.EditToolbar.prototype.getEditHandler || { extend: function () {} };
L.Draw = L.Draw || {};
L.Draw.Feature = L.Draw.Feature || {};
L.Draw.Feature.SnapMixin = L.Draw.Feature.SnapMixin || {};
L.Draw.Feature.include = function(){};
L.Draw.Feature.addInitHook = function(){};
</script>
<script src="leaflet.snap.js"></script>

have not tested but may work, you could give it a shot.

I face the  same issue... Nothing new ? Even with leaflet draw I have the issue "Cannot read property 'Poly' of undefined"


Preserve apps in their dekstop spaces

I am not sure if it is related to yabai specifically, but I wanted to keep the applications in their  own dekstop spaces where they have been opened. Thus, if I will restart Mac, e.g. Chrome that has been opened in the 4th desktop will open in the same desktop space, also keeping the split view. Is it possible or what kind of app can you suggest me to solve this problem?

I think the issue is that despite such rules, some apps still randomly appear on other desktops.

You can label spaces as follows:
yabai -m space 3 --label social
and then create an app specific rule that puts the app in the space with the given label:
yabai -m rule --add label="Ferdium" app="^Ferdium$" space=social

Thank you but I don't want to define space for each app explicitly. What I want is that yabai or other app will remember which app is where before shutting Mac down and then reopen them in  spaces respectively.

I think the issue is that despite such rules, some apps still randomly appear on other desktops.

Yep.

Does this work without the extended privileges?

yes

are apps supposed to be moved to the spaces always or only if they are created?

when the window is created

I am not sure if it is related to yabai specifically, but I wanted to keep the applications in their own dekstop spaces where they have been opened. Thus, if I will restart Mac, e.g. Chrome that has been opened in the 4th desktop will open in the same desktop space, also keeping the split view. Is it possible or what kind of app can you suggest me to solve this problem?

Create a script that queries open windows and stores the necessary information in a file on disk (app name, title, space), that runs on shutdown. On startup, run a script that processes this file, and moves windows to the correct place using that information.

I have noticed that restarting yabai via yabai --restart-service repositions all the windows correctly; I have been using it a lot lately as a hacky fix.


dj does not behave like in vim

using j or k in operator-pending mode, e.g. as dj, results in a linewise textobject, meaning dj is effectively a synonym for 2dd.
in codemirror-vim, this is not the case, dj deletes from the cursor position to the same column in the next line.
I tried nmap dj 2dd and nmap dj dddd, and both also do not seem to work

Do you see this behaviour on https://raw.githack.com/replit/codemirror-vim/master/dev/web-demo.html or do you have some other mappings applied?
The j is already defined as linewise here, so for me, the behavior you describe happens only with nmap j gj.

Ah yes, I have nmap j gj set. Since in dj the j is not in normal mode anymore but in operator pending, I didn't think that it would be affected by this.

it looks like
noremap j gj
noremap k gk

also does not help, since apparently the j in dj gets affected by this even though using noremap

ah, forgot to close this, this has been fixed since


Fix aggregation handling and example

Fixed error on submitting Observer value to the backend and fixed the example to eliminate the unrequired variable.

cc/ @nilebox


Regression in finding crates during doc tests

Problem
A couple of my crates' builds started failing at nightly-2019-10-03. I don't have a chance tonight to dig into what is going wrong, but I figured I would report it early since this appears to be a regression.
https://github.com/rust-lang/cargo/pull/7417 looks possibly related.
Steps
cargo clean && cargo test in either https://github.com/serde-rs/json or https://github.com/dtolnay/quote. They both work on nightly-2019-10-02 but fail on nightly-2019-10-03, in different ways.
serde_json: https://travis-ci.org/serde-rs/json/jobs/592841446
...

   Doc-tests serde_json
error[E0463]: can't find crate for `serde_derive` which `serde` depends on
   --> /home/travis/build/serde-rs/json/src/lib.rs:325:1
    |
325 | extern crate serde;
    | ^^^^^^^^^^^^^^^^^^^ can't find crate

quote: https://travis-ci.org/dtolnay/quote/jobs/592846455
...

---- src/ext.rs - ext::TokenStreamExt::append_all (line 20) stdout ----
error[E0460]: found possibly newer version of crate `proc_macro2` which `quote` depends on
 --> src/ext.rs:19:1
  |
2 | extern crate quote;
  | ^^^^^^^^^^^^^^^^^^^
  |
  = note: perhaps that crate needs to be recompiled?
  = note: the following crate versions were found:
          crate `proc_macro2`: /home/travis/build/dtolnay/quote/target/debug/deps/libproc_macro2-e61df99964fc712a.rlib
          crate `proc_macro2`: /home/travis/build/dtolnay/quote/target/debug/deps/libproc_macro2-e61df99964fc712a.rmeta
          crate `proc_macro2`: /home/travis/build/dtolnay/quote/target/debug/deps/libproc_macro2-37a3c8079ede86c5.rmeta
          crate `quote`: /home/travis/build/dtolnay/quote/target/debug/deps/libquote-9e0852a9faf16dfb.rlib

Yea, it is definitely due to #7417.  The trybuild test recursively invokes cargo which causes some crates to be rebuilt due to the addition of RUSTFLAGS.  These partially recompiled crates are no longer compatible with the original run, but they have the same hash.
I don't think there has been much consideration made for running cargo within tests.  Would it be possible for trybuild to use a dedicated target directory?

Thanks! That makes sense, sorry about the noise. I will fix trybuild to use an independent target directory.


Problem with the Curve-Fitting-Method-based consistency inspector

Hello everybody,
I am running pymbar 3.0 with the alchemical_analysis by David Mobley without problems except for the " -c " flag.
On the provided sample input data it is running fine but if I want to use it on my dhdl files I get the following mistake:
Plotting the CFM figure...
/opt/soft/anaconda-2.2.0/lib/python2.7/site-packages/matplotlib/axes/_base.py:2562: UserWarning: Attempting to set identical left==right results
in singular transformations; automatically expanding.
left=17.7338848684, right=17.7338848684
'left=%s, right=%s') % (left, right))
/opt/soft/anaconda-2.2.0/lib/python2.7/site-packages/matplotlib/axes/_base.py:2562: UserWarning: Attempting to set identical left==right results
in singular transformations; automatically expanding.
left=17.7624749232, right=17.7624749232
'left=%s, right=%s') % (left, right))
The strange thing for me is that I don't see any differences between "my_dhdl.xvg" and the sample.xvg and also that all the other options are working without any problem. In case this is of interest: The dhdl-files were generated with Gromacs 5.0.4
https://drive.google.com/folderview?id=0B2M9aqeJrxnYYTlsdU9jMnBQOGs&usp=sharing
Best regards,
Julian

Julian,
Can you please attach all 20 lambda files.
If possible, truncate them to 50.0 ps.

Thanks for bringing up the issue, and Pavel, thanks for jumping on.  This issue should probably be posted directly at:
https://github.com/MobleyLab/alchemical-analysis

I now posted it in "alchemical-analysis".


Javascript select event

hello,
big ups to the team creating this project! its incredibly useful!
I have a particular concern :
how do I work with the select event of the datalist ?
which event do I have to work with when selecting a value ?
looking forward to a prompt feedback.
kind regards!!

What in particular do you need to do? select event is fired on value selection.

I would like to browse to a value when I select a value.
I will supply a specific link associated with the primary key of the data class.

All selected data is stored in data variable:
$('.datalist').datalist({
    events: {
        select: function (e, data, triggerChanges) {
            if (data.length) { // something is selected
                browse(data[0].MyPropertyName); // use stored data to browse to
            }
        }
    }
});

thanks for the help, the tip worked.
i got another question though :
when it queries the data, it does not return all of the data as it should, it just shows a specific number of rows, the query is not very accurate.
is there a way to improve the results returned ?

It returns paged data, you can change that from datalist's paging configuration.

how do I change them ?

Yes in the constructor or after creating it.
Your options have to be set before passing datalist instance to a html helper.

I will try that and let you know.

Hello @Muchiachio I tried looking at the paging as you requested, but it does not explain in details how to work with paging.

is there a way to navigate the pages with the autocomplete ?
is there a way to go beyond the 20 items cap for the autocomplete ?

You can't navigate pages in autocomplete, or I just don't know a way to do it with jQuery's autocomplete.
You can pass custom autocomplete options to change the default cap.


How to install without Docker

Is your feature request related to a problem?
I need to install memos on the server without docker
Describe the solution you'd like
I hope to run memos directly
Additional context
No response

The easy Docker setup is one of the things that makes memos so great. Why can't you use Docker?

cd web
yarn
yarn build
# move the web/dist to server/dist
cd ..
mv web/dist  server/dist
go build -o memos ./main.go
./memos --mode=prod --port=5230 --data=/your-data-path

Thanks for sharing build instructions @Mahoo12138! Might I suggest it would be worth including build instructions on https://usememos.com/docs/install ? And even better, providing built binary packages for those who aren't using Docker? :)

Feel free to make a PR on usememos/dotcom for this.

@Mahoo12138 This almost worked for me. but For some reason I get this error in browser "No frontend embeded" on server side I get {"time":"2023-08-25T22:51:45Z","method":"GET","uri":"/","status":200,"error":""}

Is the API running?

NO at least not to my knowledge. I only used the commands above.

Well that'll cause your error then

Ok so I feel kind of dump asking. How do I get the api running?

@Mahoo12138 This almost worked for me. but For some reason I get this error in browser "No frontend embeded" on server side I get {"time":"2023-08-25T22:51:45Z","method":"GET","uri":"/","status":200,"error":""}

Check if the path server/dist is empty

@Mahoo12138 It has the dist and web folder in it along with and index.html file

@Mahoo12138 here is my install process if this helps.
When I run the command yarn in the web directory
yarn install v1.22.19
warning package.json: No license field
info No lockfile found.
warning memos: No license field
[1/4] Resolving packages...
warning react-use > nano-css ><EMAIL_ADDRESS>Please use @jridgewell/sourcemap-codec instead
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "react-hot-toast ><EMAIL_ADDRESS>has unmet peer dependency<EMAIL_ADDRESS>[4/4] Building fresh packages...
success Saved lockfile.
Done in 288.93s.

Then I do yarn build

Then I move the web and dist directory to server/dist
Then I run the command go build -o memos ./main.go in the root directory (memos)
go: downloading modernc.org/sqlite v1.24.0
go: downloading github.com/spf13/cobra v1.6.1
go: downloading github.com/spf13/viper v1.15.0
go: downloading go.uber.org/zap v1.24.0
go: downloading golang.org/x/crypto v0.12.0
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/fsnotify/fsnotify v1.6.0
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading github.com/spf13/afero v1.9.3
go: downloading github.com/spf13/cast v1.5.0
go: downloading github.com/spf13/jwalterweatherman v1.1.0
go: downloading github.com/google/uuid v1.3.0
go: downloading github.com/labstack/echo/v4 v4.11.1
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/swaggo/echo-swagger v1.4.0
go: downloading go.uber.org/atomic v1.9.0
go: downloading go.uber.org/multierr v1.8.0
go: downloading golang.org/x/sys v0.11.0
go: downloading golang.org/x/text v0.12.0
go: downloading github.com/subosito/gotenv v1.4.2
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading gopkg.in/ini.v1 v1.67.0
go: downloading github.com/magiconair/properties v1.8.7
go: downloading github.com/pelletier/go-toml/v2 v2.0.6
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/labstack/gommon v0.4.0
go: downloading golang.org/x/net v0.14.0
go: downloading github.com/golang-jwt/jwt v3.2.2+incompatible
go: downloading github.com/valyala/fasttemplate v1.2.2
go: downloading golang.org/x/time v0.3.0
go: downloading github.com/swaggo/files/v2 v2.0.0
go: downloading github.com/swaggo/swag v1.16.1
go: downloading github.com/disintegration/imaging v1.6.2
go: downloading github.com/golang-jwt/jwt/v4 v4.5.0
go: downloading github.com/gorilla/feeds v1.1.1
go: downloading github.com/yuin/goldmark v1.5.4
go: downloading golang.org/x/exp v0.0.0-20230111222715-75897c7a292a
go: downloading github.com/google/cel-go v0.17.1
go: downloading github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.2
go: downloading google.golang.org/grpc v1.57.0
go: downloading golang.org/x/mod v0.12.0
go: downloading github.com/mattn/go-colorable v0.1.13
go: downloading github.com/mattn/go-isatty v0.0.19
go: downloading github.com/valyala/bytebufferpool v1.0.0
go: downloading github.com/KyleBanks/depth v1.2.1
go: downloading github.com/go-openapi/spec v0.20.9
go: downloading golang.org/x/tools v0.11.1
go: downloading golang.org/x/image v0.7.0
go: downloading golang.org/x/oauth2 v0.10.0
go: downloading github.com/aws/aws-sdk-go-v2 v1.17.4
go: downloading github.com/aws/aws-sdk-go-v2/config v1.18.12
go: downloading github.com/aws/aws-sdk-go-v2/credentials v1.13.12
go: downloading github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.51
go: downloading github.com/aws/aws-sdk-go-v2/service/s3 v1.30.3
go: downloading google.golang.org/protobuf v1.31.0
go: downloading google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e
go: downloading google.golang.org/genproto v0.0.0-20230706204954-ccb25ca9f130
go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20230726155614-23370e0ffb3e
go: downloading modernc.org/libc v1.22.5
go: downloading github.com/go-openapi/jsonpointer v0.20.0
go: downloading github.com/go-openapi/jsonreference v0.20.2
go: downloading github.com/go-openapi/swag v0.22.4
go: downloading github.com/aws/smithy-go v1.13.5
go: downloading github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.12.22
go: downloading github.com/aws/aws-sdk-go-v2/internal/ini v1.3.29
go: downloading github.com/aws/aws-sdk-go-v2/service/sso v1.12.1
go: downloading github.com/aws/aws-sdk-go-v2/service/ssooidc v1.14.1
go: downloading github.com/aws/aws-sdk-go-v2/service/sts v1.18.3
go: downloading github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.10
go: downloading github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.28
go: downloading github.com/aws/aws-sdk-go-v2/internal/v4a v1.0.20
go: downloading github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.9.11
go: downloading github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.1.23
go: downloading github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.22
go: downloading github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.13.22
go: downloading github.com/stoewer/go-strcase v1.2.0
go: downloading github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230305170008-8188dc5388df
go: downloading github.com/golang/protobuf v1.5.3
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading modernc.org/mathutil v1.5.0
go: downloading modernc.org/memory v1.5.0
go: downloading github.com/mailru/easyjson v0.7.7
go: downloading github.com/jmespath/go-jmespath v0.4.0
go: downloading github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.22
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
go: downloading github.com/josharian/intern v1.0.0
I then run the last command ./memos --mode=prod --port=5230 --data=/home/mike/memos/data

This is based on what I found in the ./Dockerfile. Updated for Release 0.15.2.

Having Go, nodejs and npm installed. Try to have the latest versions of these programs or this can lead to unexpected errors (For example, having used a verison of Go < 1.21 lead to some problems for me).
Install buf (https://buf.build/docs/installation). For example, from binary (It seems better according to the doc to install from binary than install from source as ./Dockerfile does):

# Substitute BIN for your bin directory.
# Substitute VERSION for the current released version.

Copy the content of dist folder of ./web to the dist folder of ./server with: cp ./web/dist/* ./server/dist/
Execute command CGO_ENABLED=0 go build -o memos ./main.go

Now when you want to launch memos, just execute
MEMOS_MODE="prod" MEMOS_PORT="5230" MEMOS_DATA=/var/opt/memos ./memos
in the root of the project. Be sure to have MEMOS_DATA directory created, else create before executing the command.
On the web browser, just go to localhost:5230 and sign up for first use.
Note that there a build.sh script in ./scripts, but It seems that It has not been updated to add the steps of using buf.


Correlation with precipitation in moving window

After determining the lag of the max correlation between vegetation and precipitation time series, we could calculate how the correlation changes over time as part of the moving window analysis

Also a plot showing the lag length along the moving window (to see if the time it takes the system to respond to rainfall increases or decreases)


Structured output eval

What?
Introduces generation with structured outputs using OpenAI client for OpenAI API and VLLM

For OpenAI see https://platform.openai.com/docs/guides/structured-outputs?context=without_parse
For VLLM see https://docs.vllm.ai/en/v0.4.2/serving/openai_compatible_server.html#extra-parameters-for-completions-api

Defines JSON schema for ErrorSpanAnnotations as
class Annotation(BaseModel):
    text: str = Field(description="The text which is annotated.")
    error_type: int = Field(description="Index to the list of categories defined for the annotation campaign.")
    reason: str = Field(description="The reason for the annotation.")

class OutputAnnotations(BaseModel):
    annotations: list[Annotation] = Field(description="The list of annotations.")

Why

Smaller models without structured outputs fails to follow the expected JSON format, now they comply 🎉
Pydantic is an excellent way how to define structured output 💪
Parsing is less heuristic 😉

Limitations:
Notice that the Annotation has the attribute error_type instead of type as previously because for JSON schema the type is a reserved word.
Just after parsing this PR creates the dictionary with key type instead of error_type so error_type is used for LLM calls and it's parsing.
Limited testing: I tested all three LLM-eval configs (OpenAI, Ollama, VLLM)
The wiki page does not cover vLLM installation and vLLM requires GPU.

@oplatek  Thanks, looks useful!
Given that we allow to annotate any span categories, not just errors, can we call it category or category_index instead of error_type?
And will you be able to write the wiki page for VLLM?


Specifying the password on the command line is a security risk

When calling tiny-http-server --auth USER:PASS, this command line is visible to other users on the same machine by programs like htop. This might give away the password also for other uses, if the respective user uses the password in multiple locations.
Maybe using an environment variable, or saving the password hash in a file might mitigate this.
Example saving password in file: script writing the password, script verifying the password

... just noted the --authfile option, sorry, missed that. Still might be worth to mention that in docs..?

Yes, I thought that this was clear, but maybe a good idea to mention it, I have added a note to the README.


Add Tutorial Links from different Federated Learning frameworks

Added the following links:

Flower tutorial link.
FedN Tutorial Link.
NVFlare Tutorial Catalog.
FATE Tutorials.
OpenFL Tutorials.

Resource Addition
Category

Description

Checklist

[x] I have followed the contribution guidelines
[x] The resource is freely accessible (or marked if paid)
[x] I have added it to the appropriate category
[x] The link is functional
[x] The description is clear and concise

Hello @leriomaggio I was thinking maybe we can have a separate section in the README.md file on Frameworks? That will be a great help for beginners who are starting out in the field of FL. Also, the repo is an awesome list so...
Let me know about your thoughts 🤗🤗

Hey @snehilsanyal thanks very much for your contribution! They look great! Will merge asap.
As for a new section about "Frameworks", I am personally 👎 for that.
I think the Tutorial section already covers it, and ideally I would like to keep the awesome list as balanced as possible between coding and non-coding related resources.
My point is: having a section about tutorials - including the many great contributions you are sharing in this PR - is already enough imho to let people know about the few alternatives for those interested in the coding side of things.
WDYT?

Yes @leriomaggio that makes sense, I think it might be redundant given the tutorials are already covering about the frameworks.
Thank you so much for your input and the merge 🤗🤗


MM-31888: adjusted padding on menu items in sidebar

Summary
Adjustments for a change coming from unifiying styles in PR #7226
Padding was reset to a state before this PR was merged.
Ticket Link
Fixes MM-3188
Screenshots

Hello @michelengelen,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

Maybe we could leave them in _legacy-sidebar-left.scss until we're ready to move the rest of them out? I do like the idea of splitting up CSS more into component-specific files, but I agree that having the CSS split might be problematic.

Ok, seems like a good idea. I will move it over 📍

/update-branch

@hmhealy good to merge now?


Add tfenv

https://github.com/tfutils/tfenv
Since terraform version differ, this would be handy to easily switch between terraform versions

add tfenv


Nested module comment scope differs between before/after decl

type t

(** This module has {{!t}type t}! *)
module M : sig
  type t
end

is scoped to the container but
type t

module M : sig
  (** This module has {{!t}type t}! *)

  type t
end

is scoped to the child, M.
See also dsheets/ocamlary-test-library@f32633993a29a995fa6719c2b4b854bbd5e5f68c.

This is an interesting variation on #15. It seems that we would like self-reference to subcomponents to be highest priority but self-reference to the same definition to be lowest priority.

I think the rules for the second case work ok. As far as I understand them, the path is searched ancestor-ward starting with self.
I don't understand why the first case is different as I thought both resulted in an annotation node on the same signature item (M).

I think that the second one is a stand-alone comment within M rather than it's description. I think that only the top-level modules treat the first comment specially. To be honest I can't actually remember whether this is the case, nor whether this is what ocamldoc currently implements, but I think it is probably the right implementation.

This affects documentation of cmdliner.


If the first datagram sent from a QUIC server is lost then no further communication takes place

In the scenario where a QUIC client has sent its ClientHello to a QUIC server, the server responds with its first flight of TLS handshake data. If the first datagram sent from the server is lost then neither the server or the client sends any more datagrams and no progress is made on the connection. Calling SSL_connect() on the client side continually results in SSL_ERROR_WANT_READ.
Found while working on openssl/project#84

This actually might be a problem with my test not waiting long enough for the PTO to kick in, so closing this for now.


[Feature][Document] Add example and notice about task type HTTP

Due to our tasks task description is not containing some detail, and I think we should add a new section notice and give an example to the task http in the document https://dolphinscheduler.apache.org/en-us/docs/latest/user_doc/guide/task/http.html

I add a PR in apache/dolphinscheduler-website#638, maybe someone who is interested in this feature could take it as an example

Add example about how to post json data. source from slack https://asf-dolphinscheduler.slack.com/archives/C01L3LB9YMP/p1645524470672679?thread_ts=1645083434.795169&cid=C01L3LB9YMP

I will do this task, please assign it to me. @zhongjiajie

I assigned it to you ❤


How to inference on other datasets

Hello JiaxiongQ!
I begin to train this excellent work recently use KITTI datasets same as you said in README.md. And I want to know how to inference my own datasets which depth_map from velodyne64 is .npy format, and get the final dense_depth_map as .npy format as well.
Or, if I use your pretrained model directly on my own datasets(which has a depth map and a sync pic), what should I change on your code.
Thanks for your great code.

You need project your point cloud data to the color image camera coordinate and you'll get the sparse lidar depth, then you can use our test.py code to generate dense depth map with color image and its aligned sparse depth.

Yes. I have generate my sparse lidar depth map in .npy format and color image in .png format. I look over your code, your depth map are all in image format, so I need to change it to my own format, right?and If i just use the pretrained model downloaded on Github, I only need to run test.py?(train.py and other code for training is never needed right?)

thx! thanks for your excellent code!

Let me ask a simple but hard for me question. How to use /surface_normal/ files to output surface_normal of our datas. When I begin to compile"g++ -o tool tool.cpp"，I always get the following results.

tool.cpp:(.text+0x8a74): undefined reference to cv::Mat::zeros(cv::Size_<int>, int)' /tmp/ccftOS0v.o: In function cv::Mat::Mat(cv::Mat const&)':
tool.cpp:(.text.ZN2cv3MatC2ERKS0[ZN2cv3MatC5ERKS0]+0x179): undefined reference to cv::Mat::copySize(cv::Mat const&)' /tmp/ccftOS0v.o: In function cv::Mat::~Mat()':
tool.cpp:(.text._ZN2cv3MatD2Ev[_ZN2cv3MatD5Ev]+0x39): undefined reference to cv::fastFree(void*)' /tmp/ccftOS0v.o: In function cv::Mat::operator=(cv::Mat const&)':
tool.cpp:(.text.ZN2cv3MataSERKS0[ZN2cv3MataSERKS0]+0x111): undefined reference to cv::Mat::copySize(cv::Mat const&)' /tmp/ccftOS0v.o: In function cv::Mat::clone() const':
tool.cpp:(.text._ZNK2cv3Mat5cloneEv[_ZNK2cv3Mat5cloneEv]+0x2c): undefined reference to cv::_OutputArray::_OutputArray(cv::Mat&)' tool.cpp:(.text._ZNK2cv3Mat5cloneEv[_ZNK2cv3Mat5cloneEv]+0x3f): undefined reference to cv::Mat::copyTo(cv::_OutputArray const&) const'
/tmp/ccftOS0v.o: In function cv::Mat::release()': tool.cpp:(.text._ZN2cv3Mat7releaseEv[_ZN2cv3Mat7releaseEv]+0x47): undefined reference to cv::Mat::deallocate()'
collect2: error: ld returned 1 exit status

Just a lot of undefined refercences

Hi,JiaxiongQ. Sorry to bother again. After reading your surface_normal/README.md, I still have no idea how to use .cpp or .hpp files to get my own datasets's surface_normal. I use

g++ -c tool.c tool.h
to output a tool.o file. But still don't know how to use it.

Try to run this command: './tool'

Try to run this command: './tool'

tool.o seems not a executable file.
I try to use to get tool file

g++ -o tool tool.cpp

but get some undefined references error like this

/tmp/ccvkJfD5.o: In function cv::Mat::Mat(cv::Mat const&)': tool.cpp:(.text._ZN2cv3MatC2ERKS0_[_ZN2cv3MatC5ERKS0_]+0x179): undefined reference to cv::Mat::copySize(cv::Mat const&)'
/tmp/ccvkJfD5.o: In function cv::Mat::~Mat()': tool.cpp:(.text._ZN2cv3MatD2Ev[_ZN2cv3MatD5Ev]+0x39): undefined reference to cv::fastFree(void*)'
/tmp/ccvkJfD5.o: In function cv::Mat::operator=(cv::Mat const&)': tool.cpp:(.text._ZN2cv3MataSERKS0_[_ZN2cv3MataSERKS0_]+0x111): undefined reference to cv::Mat::copySize(cv::Mat const&)'
/tmp/ccvkJfD5.o: In function cv::Mat::clone() const': tool.cpp:(.text._ZNK2cv3Mat5cloneEv[_ZNK2cv3Mat5cloneEv]+0x2c): undefined reference to cv::_OutputArray::_OutputArray(cv::Mat&)'
tool.cpp:(.text._ZNK2cv3Mat5cloneEv[_ZNK2cv3Mat5cloneEv]+0x3f): undefined reference to cv::Mat::copyTo(cv::_OutputArray const&) const' /tmp/ccvkJfD5.o: In function cv::Mat::release()':
tool.cpp:(.text._ZN2cv3Mat7releaseEv[_ZN2cv3Mat7releaseEv]+0x47): undefined reference to `cv::Mat::deallocate()'
collect2: error: ld returned 1 exit status

Sorry, you can ask<EMAIL_ADDRESS>for help.

ok. And if I want to just test on my own dataset, do I need to produce surface_normal. I look up to the test.py, and did not find any surface_normal fIles input.

No, the input only contains the color image and the sparse lidar depth.

thx a lot!
left_fold for rgb image,
lidar2_raw for sparse lidar depth
and gt_fold for what to input?

gt_fold is for the ground-truth data.  You should check your test environment firstly and you can pad the input dimension to make it can exactly divisible by 32.

I just use kitti depth Val dataset<PHONE_NUMBER>23sync for test. And I still need to pad it for divisible by 32?.
Which is the original test set on KITTI, does it need to do the same thing?.

Yes, the size of the KITTI test data is 352x1216, so it doesn't need do this operation. You can crop the padding area of output if you want the original size .

I think if I got data for example like 354x1220, I can do a preprocess on image to crop it to 352x1216, but not padding to a bigger size. what do you think about these two methods. THX.

If you crop, you might lose some information. But the padding operation can preserve all information of   input.


made initial weights higher-variance

It looks like your initialization for transformation matrices between primary capsules and digit capsules is very unfortunate. It typically takes ~50 batches (I use batch size 16) to start changing losses in visible range. This is a typical sign of bad initialization.
After this initial delay training takes on quite rapidly, so it does not look like bad LR
When I change stddev of initial weights from 0.01 to 0.1, models starts visible learning right away
So IMHO it makes sense to change value in notebook as well

Great @arodiss !  To be honest I haven't had time to test this, but you sound like you experimented this quite a bit, and the change looks very simple, so I merged your commit.
Thanks a lot!!


Xamarin.Forms project build error with CocosSharp.Forms library

By adding CocosSharp.Forms nuget package to PCL Project and Droid project I got following error:
'Resource.String' does not contain a definition for `ApplicationName'
'Resource.String' does not contain a definition for `Hello'

I workaround this by deleting the following two lines of codes in Resource.Designer.cs:
    global::CocosSharp.Forms.Android.Resource.String.ApplicationName = global::CocosSharpDemo.Droid.Resource.String.ApplicationName;
    global::CocosSharp.Forms.Android.Resource.String.Hello = global::CocosSharpDemo.Droid.Resource.String.Hello;

But why are these codes added automatically, are these codes necessary?

just add to your project file strings.xml contains :

igs.tangkas.Droid
Hello

On Tue, Jan 17, 2017 at 10:02 AM, Xuchen.Xia<EMAIL_ADDRESS>wrote:

By adding CocosSharp.Forms nuget package to PCL Project and Droid project
I got following error:
'Resource.String' does not contain a definition for ApplicationName' 'Resource.String' does not contain a definition for Hello'
I workaround this by deleting the following two lines of codes in
Resource.Designer.cs:
global::CocosSharp.Forms.Android.Resource.String.ApplicationName = global::CocosSharpDemo.Droid.Resource.String.ApplicationName;
global::CocosSharp.Forms.Android.Resource.String.Hello = global::CocosSharpDemo.Droid.Resource.String.Hello;

But why are these codes added automatically, are these codes necessary?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mono/CocosSharp/issues/408, or mute the thread
https://github.com/notifications/unsubscribe-auth/AMW4MlqrI_TWfBHk4mR8DXZ23eR9LGriks5rTC82gaJpZM4LlLg-
.

I am getting the same issue:
Warning XA0106: Skipping MusicTrainer2.Droid.Resource.String.ApplicationName. Please check that your Nuget Package versions are compatible
Warning XA0106: Skipping MusicTrainer2.Droid.Resource.String.Hello. Please check that your Nuget Package versions are compatible.
My Resource.Designer.cs file does not reference either one of these strings. I have cleaned and rebuilt.  I have added the strings:

applicationName
Hello

With no improvement.  Any idea what I can try next?
Many thanks
Edward


Allow passing a provider to serverless.apigateway.API

Someone in the community pointed out that there is no way to pass a provider to a serverless.apigateway.API, which makes working with explicit provider instances hard. We should allow passing options to it.

severless.apigateway.API is now deprecated, so this bug actually should refer to aws.apigateway.x.API.


[FEATURE] Support for .co.uk for Amazon Music

I see that Amazon Music is supported with the .com domain. Please add support for the .co.uk domain.

Oh interesting, did not realize they operated with a different TLD for other regions but that makes sense. I'm going to update this issue to be more generic for identifying all TLDs we should be looking to support for each service.


Add ability to select the security policy used on the ELBs

This is to resolve issue https://github.com/chef-customers/aws_native_chef_server/issues/63

hey @jeffj254 thanks for this!   is there any reason you can think of to still allow ELBSecurityPolicy-2016-08 as an option for anyone?  Or even the TLS 1.1?
I'm inclined to think nobody wanted those old ones anyway and we should simply default to the latest (not give an option, there's too many of those already)

For Chef Server and Supermarket, probably not since the clients that connect to them fully support TLS 1.2.  The only possibility I can think of is with Automate.  If somebody somewhere had an out-of-date reporting or alerting system that was pulling data from Automate it could potentially fail to connect if TLS 1.2 is enforced.
I was thinking I would add it as a parameter with the original default to prevent any unintended consequences from other users of the templates, but if you don't think that'll be a problem I can easily just switch the code to force TLS1.2 all the time.

Yeah let's force it to 1.2 - it's important we're "secure by default" and limit people's opportunities to break that. If somebody needs to modify that they'll know where to change it in their own fork.

Updated to force TLS policy to 1.2 on all ELBs

Awesome, thank you!!!


Mismatch between documentation and version 1.0.0

The replication documentation references a method startWithTaskGroup. This method does not exist inside 1.0.0. I had to point cocoapods directly at master to use the feature.
I'm guessing someone forgot to release a new pod version when the feature was merged in?

The documentation at the head of master matches the code that is present there, this is currently code which will become part of the 1.1 release. To see the documentation for the latest released version you should either use cocoadocs or browse the source tree at the tag for 1.0.0.
I hope this clears things up.

Should it not have been pushed to a develop branch in that case? When someone opens github they are, by default, brought to the master branch. So everyone will start reading documentation that is not accurate compared to the currently released version.
That is very confusing.

We don't have a develop branch and we don't follow git flow which is the model I think you are referring to with a develop and master branches. Many other projects do the same. It is something that can be confusing, but at least for me once I got used to the idea that the master is where development takes place it became second nature to go to the releases screen to pick the tag I needed.

Yes the idea came from GitFlow but most use it anyway for various reasons. Case and point, I googled how to do background replication using the Cloudant SDK and was brought straight into your docs, which were in the master branch, whose readme says pod v1.0.0.
I've yet to come across a cocoapod where, unless by mistake, the master wasn't pointing to the latest release. I would imagine the same is true for the majority of developers, especially those that know very little about how cocoapods works.
You are going to cause yourself a lot of issues with this going forward as IBM continues to advertise Cloudant and developers come looking for the SDK. For your own sake, you should try clean it up after you next release.

I think we'll have to disagree on the point around most cocoapod repos having master pointing at the latest tagged release and use of gitflow-like semantics. Looking at the first three pods that came to my mind (Alamofire, Specta, PonyDebugger) none follow either pattern.
I agree, though, with the underlying point you make: I've rarely come across code snippets within a README.md that didn't work for the latest release (and ours does, mostly, but we've been making a bunch of changes for 1.0.0 releases recently).
That's not saying there isn't an issue here, of course: it's been obvious for a long time that there's an issue with the main docs being in the repo, which isn't tied to a particular release. This is still the case because few of the approaches we've come up with so far have been particularly satisfying, rather than it not being recognised.
A first step would be to point users towards the documentation for the release, i.e., http://cocoadocs.org/docsets/CDTDatastore/1.0.0/. Clearly this doesn't help with stuff in the /doc/ folder, but at least it's a step forward.
We're experimenting with ways to fix this while maintaining up-to-date docs in some of our other repos, e.g., github.com/cloudant/java-cloudant, and hopefully will be able to make this situation less confusing in future.


Update plugin_bot.go

Moderation: Aliases, Caps, Spelling

can you change "warnings are saved" to "warnings are saved on the bot"

@jonas747 Changed it to warnings are saved eith the bot

remove the history alias aswell

@jonas747 done


Powered off devices still show state as "Standby"

Describe the bug
Echo Dots (v2) which are powered off are still shown as state "Standby" in HA, even though they update correctly as "Unavailable" on Alexa app, and "online:false" in json at https://alexa.amazon.com/api/devices-v2/device
Each time HA is restarted, they do show correctly as "Unavailable", but will revert to "Standby" within a few minutes.
To Reproduce

Turn off some Alexa devices
Check state of entity media_player.echo_dot_name in HA
Still shows as "Standby", regardless of its power status

Expected behavior
Online state of powered off devices should show "Unavailable" in HA instead of "Standby", as per the Online state feature
System details

Home-assistant (version): 0.118.5
Hassio (Yes/No): Yes
alexa_media: 3.4.0
Amazon 2FA is enabled (y/n).:

I've attempted deleting the PICKLE file and re-authenticating after restarting HA, but the results are the same (inactive devices show as "Unavailable" for a few minutes before changing to "Standby" state).

Please be aware that even with the bug fix, my testing shows it can take up to 20 or so minutes for a device to be detected as offline. Amazon takes about 10-15 minutes, and with default settings the online check is only done every 10 minutes so it could take up to two cycles to detect the change.

Thanks for looking into this. I've updated to v3.4.1, and it seems like it does indeed do an online check every 10 minutes, unfortunately it almost immediately reverts the state to "standby" each time it does.

There was a lot to scrub so I just grabbed a screenshot for now, hope you don't mind.
This is the history of one of the Echo devices (which has remained powered off for weeks), during one of its 10 minute cycles.

Please provide logs as text and not an image.

Right, sorry about that. Would I have to scrub the WebSocket: MSG lines?

Yes scrub the serial but make it clear whether it's the target device.

Hmmm here's the thing, I've searched for the serial numbers of all my Echo devices (4 are offline, 4 are online), but none of the offline device serial numbers show up in the log. Only the online ones are in there. The log spans 3 hours from the time I restarted Hassio.. Is it still useful in this case?

I don't know what's in your logs. If you want me to look at it to see if I see anything it's your call. I'm not paid to do this so doesn't bother me if I don't.

Ah, what I meant was the offline devices aren't actually shown in the logs, so there's nothing for me to mark as a target device in there, and if there's anything else I can share that might be useful as an alternative.

 It will provide the json as it refreshes each every 10 minutes.

I copied the new init.py file to alexa_media installation and restarted Hassio.
This was the history and logs it returned at that point:

2020-12-19 02:06:37 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for alexa_media which has not been tested by Home Assistant.
It was quite large even for 10+ minutes, so I dumped here instead:
https://raw.githubusercontent.com/quagmired/alexamediaplayer_logs/main/20201220

What is the device name I should be looking for?

Also, it'd be helpful to not generate super large logs by constantly using TTS commands when I'm trying to review this.

Right, I hadn't realised I left messages broadcasting the last time round.
Here's a more streamlined log, for about 20 minutes from the time I restarted Hassio.
https://raw.githubusercontent.com/quagmired/alexamediaplayer_logs/main/20210101
The devices to look out for are Offline Echo 1, Offline Echo 2, and Offline Echo 3.
They've not been powered on in several days or weeks, but they still constantly toggle between Standby and Unavailable states.
For what it's worth, Offline Echo 1 and 3 are Echo Dots (gen 2), while Offline Echo 2 is a Sonos One speaker.
This is a snapshot of the state history of Offline Echo 1, corresponding to the log times.

Cheers.

Right, I hadn't realised I left messages broadcasting the last time round.
Here's a more streamlined log, for about 20 minutes from the time I restarted Hassio.
https://raw.githubusercontent.com/quagmired/alexamediaplayer_logs/main/20210101
The devices to look out for are Offline Echo 1, Offline Echo 2, and Offline Echo 3.
They've not been powered on in several days or weeks, but they still constantly toggle between Standby and Unavailable states.
For what it's worth, Offline Echo 1 and 3 are Echo Dots (gen 2), while Offline Echo 2 is a Sonos One speaker.
This is a snapshot of the state history of Offline Echo 1, corresponding to the log times.

Cheers.

Thanks. Can you try the media_player from the PR attached and let me know if it resolves the issue?

Thanks. Can you try the media_player from the PR attached and let me know if it resolves the issue?

Yup, looks like that's fixed it. Thanks!
I ran it over a day and tested with the device both powered on and off. The state updated accordingly within 10 minutes of each change.

Yup, looks like that's fixed it. Thanks!
I ran it over a day and tested with the device both powered on and off. The state updated accordingly within 10 minutes of each change.

Great. Thanks for confirming. It's live in 3.4.7.

Great. Thanks for confirming. It's live in 3.4.7.


[Docs] Motivational quotes DG

Added use case and implementation details of motivational quotes

Codecov Report
Base: 70.18% // Head: 70.18% // No change to project coverage :thumbsup:

Coverage data is based on head (0389b4e) compared to base (660b1c7).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##             master      #98   +/-   ##
=========================================
  Coverage     70.18%   70.18%
  Complexity      703      703
=========================================
  Files           107      107
  Lines          2163     2163
  Branches        249      249
=========================================
  Hits           1518     1518
  Misses          570      570
  Partials         75       75

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

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

LGTM


Add docker scripts for production and development

Tasks:

[x] Create a Dockerfile
[x] Create a Docker Compose file (docker-compose.yml)
[x] Enable hot-reloading for local development
[x] Update documentation

Closes #5

lgtm @PiyushXCoder !!

@PiyushXCoder Great work!


Change logo to svg file and add text to login page

Gitea version (or commit ref): 1.4.0rc2
Git version: 2.7.4
Operating system: Ubuntu 16.04
Database (use [x]):

[ ] PostgreSQL
[X] MySQL
[ ] MSSQL
[ ] SQLite

Can you reproduce the bug at https://try.gitea.io: N/A

[ ] Yes (provide example URL)
[ ] No
[ ] Not relevant

Log gist:

Is there any way to change the header logo to an svg file rather than a png? Also, is there any way to add some text to the login page? I have Gitea locked down no registrations. I wanted to state something like, "No public access is granted" on the login page.

Apologies I figured it out by using a custom head.tmpl file.


fix: update mock server diagram

Update the mock server diagram
Validate input only when --errors is true when proxying

Now we do.