puppet 4 unable to test functions with precondition

Attempting to test a function with a :pre_condition under puppet 4.0.0 fails looking for the hardwired rb_env directory.
Something along the lines of:
  let(:pre_condition) { 'include ::foo' }
  it { should run.with_params() }

Will fail with this error:
Evaluation Error: Error while evaluating a Function Call, Could not find a directory environment named 'rp_env' anywhere in the path: <foo>/spec. Does the directory exist? at line 1:1

I've added a test for that https://github.com/DavidS/rspec-puppet/commit/adbd874785113b5808522e11d118e6ecb9e5720f but couldn't reproduce. If you have a (non-)working example, I'd love to see that.

@DavidS I am able to reproduce the failure with 2.1.0 but it seems to have been fixed in 2.2.0.  Thanks for adding the regression test.

@DavidS Actually, the problem is still present for me with rspec-puppet 2.2 and puppet 4.1.0.  Is the subject#call syntax in the README no longer supported?
Consider:
diff --git a/spec/functions/split_spec.rb b/spec/functions/split_spec.rb
index bb43278..9907a92 100644
--- a/spec/functions/split_spec.rb
+++ b/spec/functions/split_spec.rb
@@ -28,4 +28,9 @@ describe 'split' do
     let(:pre_condition) { 'include ::sysctl::common' }
     it { should run.with_params('aoeu', 'o').and_return(['a', 'eu']) }
   end
+
+  context 'after including a class' do
+    let(:pre_condition) { 'include ::sysctl::common' }
+    it { subject.call(['aoeu', 'o']) == ['a', 'eu'] }
+  end
 end

  1) split after including a class
     Failure/Error: it { subject.call(['aoeu', 'o']) == ['a', 'eu'] }
     ArgumentError:
       function 'split' called with mis-matched arguments
       expected one of:
         split(String str, String pattern) - arg count {2}
         split(String str, Regexp pattern) - arg count {2}
         split(String str, Type[Regexp] pattern) - arg count {2}
       actual:
         split(Undef{0}) - arg count {0}
     # ./spec/functions/split_spec.rb:34:in `block (3 levels) in <top (required)>'

I'll have a look at it.

@DavidS If its helpful, here's an example of the problem manifesting under 2.2.0 in a real module. https://github.com/jenkinsci/puppet-jenkins/pull/324

I'm facing same issue. Tests suddenly fail (after Christmas holidays). As I didn't run a bundle update explicitly, I can't explain why. According to apt history.log, my system got kernel and linux-libc-dev library upgrade.

When a function test fails, error output referes to a number of failed examples. This is the exact number of all tests (in all files) that are tested. (Reproducable by un-/commenting any test in any test file). Maybe this info helps.

I've just upgraded to 2.3.2 and see that error message slightly changed. I'll add full stack trace.
Failure/Error: should run.with_params('foo').and_return({
 Puppet::PreformattedError:
   Evaluation Error: Error while evaluating a Function Call, undefined method `environment_data_provider' for nil:NilClass at line 1:1
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/data_providers/lookup_adapter.rb:230:in `initialize_env_provider'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/data_providers/lookup_adapter.rb:186:in `env_provider'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/data_providers/lookup_adapter.rb:93:in `lookup_in_environment'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/data_providers/lookup_adapter.rb:178:in `block (2 levels) in env_lookup_options'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/pops/merge_strategy.rb:115:in `block (2 levels) in merge_lookup'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/pops/merge_strategy.rb:114:in `catch'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/pops/merge_strategy.rb:114:in `block in merge_lookup'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/pops/merge_strategy.rb:112:in `each'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/pops/merge_strategy.rb:112:in `reduce'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/pops/merge_strategy.rb:112:in `merge_lookup'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/data_providers/lookup_adapter.rb:177:in `block in env_lookup_options'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/data_providers/lookup_adapter.rb:176:in `catch'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/data_providers/lookup_adapter.rb:176:in `env_lookup_options'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/data_providers/lookup_adapter.rb:159:in `retrieve_lookup_options'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/data_providers/lookup_adapter.rb:134:in `lookup_lookup_options'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/data_providers/lookup_adapter.rb:119:in `lookup_merge_options'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/data_providers/lookup_adapter.rb:61:in `lookup'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/pops/lookup.rb:64:in `search_and_merge'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/resource/type.rb:567:in `block in lookup_external_default_for'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/resource/type.rb:567:in `catch'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/resource/type.rb:567:in `lookup_external_default_for'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/resource/type.rb:392:in `block in inject_external_parameters'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/resource/type.rb:388:in `each'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/resource/type.rb:388:in `inject_external_parameters'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/resource/type.rb:361:in `set_resource_parameters'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/resource/type.rb:169:in `evaluate_code'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/parser/resource.rb:84:in `block in evaluate'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/util/profiler/around_profiler.rb:58:in `profile'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/util/profiler.rb:51:in `profile'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/parser/resource.rb:76:in `evaluate'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/resource/type.rb:484:in `evaluate_parent_type'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/resource/type.rb:163:in `evaluate_code'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/parser/resource.rb:84:in `block in evaluate'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/util/profiler/around_profiler.rb:58:in `profile'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/util/profiler.rb:51:in `profile'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/parser/resource.rb:76:in `evaluate'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/resource/type.rb:484:in `evaluate_parent_type'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/resource/type.rb:163:in `evaluate_code'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/parser/resource.rb:84:in `block in evaluate'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/util/profiler/around_profiler.rb:58:in `profile'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/util/profiler.rb:51:in `profile'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/parser/resource.rb:76:in `evaluate'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/parser/compiler.rb:401:in `each'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/parser/compiler.rb:401:in `evaluate_classes'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/parser/functions/include.rb:33:in `block in <top (required)>'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/parser/functions.rb:162:in `block (2 levels) in newfunction'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/util/profiler/around_profiler.rb:58:in `profile'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/util/profiler.rb:51:in `profile'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/parser/functions.rb:155:in `block in newfunction'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/pops/evaluator/runtime3_support.rb:290:in `call_function'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/pops/evaluator/evaluator_impl.rb:840:in `call_function_with_block'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/pops/evaluator/evaluator_impl.rb:820:in `eval_CallNamedFunctionExpression'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/pops/visitor.rb:67:in `visit_this_1'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/pops/evaluator/evaluator_impl.rb:73:in `evaluate'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/pops/evaluator/evaluator_impl.rb:644:in `eval_Program'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/pops/visitor.rb:67:in `visit_this_1'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/pops/evaluator/evaluator_impl.rb:73:in `evaluate'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/pops/parser/evaluating_parser.rb:57:in `evaluate'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/parser/ast/pops_bridge.rb:111:in `evaluate'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/parser/ast.rb:31:in `safeevaluate'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/resource/type.rb:185:in `evaluate_code'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/parser/resource.rb:84:in `block in evaluate'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/util/profiler/around_profiler.rb:58:in `profile'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/util/profiler.rb:51:in `profile'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/parser/resource.rb:76:in `evaluate'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/parser/compiler.rb:638:in `evaluate_main'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/parser/compiler.rb:180:in `block (2 levels) in compile'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/util/profiler/around_profiler.rb:58:in `profile'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/util/profiler.rb:51:in `profile'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/parser/compiler.rb:180:in `block in compile'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/context.rb:65:in `override'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet.rb:240:in `override'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/puppet-4.3.2/lib/puppet/parser/compiler.rb:168:in `compile'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/rspec-puppet-2.3.2/lib/rspec-puppet/example/function_example_group.rb:69:in `build_compiler'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/rspec-puppet-2.3.2/lib/rspec-puppet/example/function_example_group.rb:47:in `compiler'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/rspec-puppet-2.3.2/lib/rspec-puppet/example/function_example_group.rb:31:in `scope'
 # /home/bjoern/.rvm/gems/ruby-2.2-head/gems/rspec-puppet-2.3.2/lib/rspec-puppet/example/function_example_group.rb:27:in `subject'
 # ./spec/functions/parse_instance_name_spec.rb:15:in `block (6 levels) in <top (required)>'

I've also been unable to reproduce this error. @jhoblitt I pulled down your fork of puppet-jenkins that you linked to and it ran the tests fine, so I'm leaning towards this being an issue with your workstation setup.  This issue is pretty old now, so I'm going to close this issue for now, but if it's still causing you problems on the latest version of rspec-puppet, please feel free to reopen it.


ConcurrencyLimitsInterceptor only uses rate limited ERROR-level logging

IMO, the rate limited error logging in this is enough. As commented previously, folks can reliably use RPC response code metrics to understand how often load shedding is occurring.
Unconditional INFO-level logging just fills high traffic services' logs with an unactionable message. Even if logs are cheap, this feels like a waste of resources in addition to filling logs with noise.

Tests are pretty flaky (unrelated to change), working on getting build passing


Add a photo for wei lian Fixes #4

Fixes #4

Files are in the right directory; file name is appropriate; commit message complies with standards; PR is made from a separate branch in fork


BUG: Fix additional segmentation faults with empty Composite - For Release

When the CompositeTransform contains no transform is should behave
like an identity transform. This patches address loop iteration issues
that would cause a segmentation fault due to invalid indexing of
transforms when there composite was empty.

PR Checklist

[ ] No API changes were made (or the changes have been approved)
[ ] No major design changes were made (or the changes have been approved)
[ ] Added test (or behavior not changed)
[ ] Updated API documentation (or API not changed)
[ ] Added license to new files (if any)
[ ] Added Python wrapping to new files (if any) as described in ITK Software Guide Section 9.5
[ ] Added ITK examples for all new major features (if any)

Refer to the ITK Software Guide for
further development details if necessary.

The patch should be merged into the release branch after the nightly results of #1851 being merged are verified.

CI failures are not related to this PR.


eu-journal-formats

more dates formats in the EU Journal Sanctions
h.parse_date removed from au_dfat_sanctions

we're losing a year for https://www.opensanctions.org/statements/NK-JqefrMAbj2EJGYYidTtkSc/?dataset=au_dfat_sanctions and https://www.opensanctions.org/statements/NK-C67427w25NamYHAWRnTri2/?dataset=au_dfat_sanctions - can you figure out why?


Added optional for root_validator to be skipped if values validation fails

Title, addressing #1049.
Change Summary
Added keyword argument skip_on_failure to root_validator decorator.
Related issue number
#1049.

#1049.
Checklist

[x] Unit tests for the changes exist
[x] Tests pass on CI and coverage remains at 100%
[x] Documentation reflects the changes where applicable
[x] changes/<pull request or issue id>-<github username>.md file added describing change

Bump :)

I think with the two minor docs/comment changes I would approve the PR. Thanks for this!

Changes according to last comments.

I see your commit and understand your intention. I didn't want to use tuples and also didn't want to refactor this more than necessary, but as you wish :)

Shouldn't this be merged then?

Awesome, thank you.


当使用 Arm64 版本的时候，出现 exec /entrypoint: exec format error 错误

我的部分 docker-compose.yml：
version: "3"

services:
  faka:
    # image: ghcr.io/apocalypsor/dujiaoka:latest
    # 国内服务器可以用 hkccr.ccs.tencentyun.com/apocalypsor/dujiaoka:latest
    image: ghcr.io/apocalypsor/dujiaoka:arm
    container_name: faka
    environment:
        - INSTALL=false
        # - INSTALL=true
        # - MODIFY=true
    volumes:
      - ./env.conf:/dujiaoka/.env
      - ./uploads:/dujiaoka/public/uploads
      - ./storage:/dujiaoka/storage
      - ./favicon.ico:/dujiaoka/public/favicon.ico:ro
      - ./favicon.ico:/dujiaoka/public/assets/style/favicon.ico:ro
      - ./default.png:/dujiaoka/public/assets/common/images/default.jpg:ro

报错日志内容：
➜  dujiaoka sudo docker compose up
[+] Running 3/0
 ✔ Container faka-redis  Created                                              0.0s
 ✔ Container faka-data   Created                                              0.0s
 ✔ Container faka        Recreated                                            0.1s
Attaching to faka, faka-data, faka-redis
faka-redis  | 1:C 09 Mar 2024 17:51:52.845 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
faka-redis  | 1:C 09 Mar 2024 17:51:52.847 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
faka-redis  | 1:C 09 Mar 2024 17:51:52.847 * Redis version=7.2.4, bits=64, commit=00000000, modified=0, pid=1, just started
faka-redis  | 1:C 09 Mar 2024 17:51:52.847 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
faka-redis  | 1:M 09 Mar 2024 17:51:52.848 * monotonic clock: POSIX clock_gettime
faka-redis  | 1:M 09 Mar 2024 17:51:52.848 * Running mode=standalone, port=6379.
faka-redis  | 1:M 09 Mar 2024 17:51:52.849 * Server initialized
faka-redis  | 1:M 09 Mar 2024 17:51:52.849 * Loading RDB produced by version 7.2.4
faka-redis  | 1:M 09 Mar 2024 17:51:52.849 * RDB age 44 seconds
faka-redis  | 1:M 09 Mar 2024 17:51:52.849 * RDB memory usage when created 0.86 Mb
faka-redis  | 1:M 09 Mar 2024 17:51:52.849 * Done loading RDB, keys loaded: 2, keys expired: 0.
faka-redis  | 1:M 09 Mar 2024 17:51:52.850 * DB loaded from disk: 0.001 seconds
faka-redis  | 1:M 09 Mar 2024 17:51:52.850 * Ready to accept connections tcp
faka-data   | 2024-03-09 17:51:52+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.7.3+maria~focal started.
faka        | exec /entrypoint: exec format error
faka-data   | 2024-03-09 17:51:53+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
faka-data   | 2024-03-09 17:51:53+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.7.3+maria~focal started.
faka-data   | 2024-03-09 17:51:53+00:00 [Note] [Entrypoint]: MariaDB upgrade not required
faka-data   | 2024-03-09 17:51:53 0 [Note] mariadbd (server 10.7.3-MariaDB-1:10.7.3+maria~focal) starting as process 1 ...
faka-data   | 2024-03-09 17:51:53 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
faka-data   | 2024-03-09 17:51:53 0 [Note] InnoDB: Number of transaction pools: 1
faka-data   | 2024-03-09 17:51:53 0 [Note] InnoDB: Using ARMv8 crc32 + pmull instructions
faka-data   | 2024-03-09 17:51:53 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
faka-data   | 2024-03-09 17:51:53 0 [Note] InnoDB: Using Linux native AIO
faka-data   | 2024-03-09 17:51:53 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
faka-data   | 2024-03-09 17:51:53 0 [Note] InnoDB: Completed initialization of buffer pool
faka exited with code 0
faka-data   | 2024-03-09 17:51:53 0 [Note] InnoDB: 128 rollback segments are active.
faka-data   | 2024-03-09 17:51:53 0 [Note] InnoDB: Creating shared tablespace for temporary tables
faka-data   | 2024-03-09 17:51:53 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
faka-data   | 2024-03-09 17:51:53 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
faka-data   | 2024-03-09 17:51:53 0 [Note] InnoDB: 10.7.3 started; log sequence number 2836692; transaction id 4276
faka-data   | 2024-03-09 17:51:53 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
faka-data   | 2024-03-09 17:51:53 0 [Note] Plugin 'FEEDBACK' is disabled.
faka-data   | 2024-03-09 17:51:53 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
faka-data   | 2024-03-09 17:51:53 0 [Note] Server socket created on IP: '<IP_ADDRESS>'.
faka-data   | 2024-03-09 17:51:53 0 [Note] Server socket created on IP: '::'.
faka-data   | 2024-03-09 17:51:53 0 [Note] mariadbd: ready for connections.
faka-data   | Version: '10.7.3-MariaDB-1:10.7.3+maria~focal'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
faka-data   | 2024-03-09 17:51:53 0 [Note] InnoDB: Buffer pool(s) load completed at 240309 17:51:53
faka exited with code 1
faka exited with code 1
faka exited with code 1
faka exited with code 1

我的服务器架构：
➜  dujiaoka uname -a
Linux instance-20231211-2000 5.15.0-1049-oracle #55-Ubuntu SMP Mon Nov 20 19:53:49 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

重构了镜像，现在测试没问题了，直接用下面的即可
ghcr.io/apocalypsor/dujiaoka:latest


Notifications: message not centered in German

Steps to reproduce:

Switch Android locale to German
Go to your notifications, make sure you have none
"No notifications" message is left-aligned, as per screenshot:

Strangely this does not seem to happen with English/French.

Hey I can work on this


Use RavenHydroFramework from official GitHub source

Pull Request Checklist:

[x] This PR addresses an already opened issue (for bug fixes / features)

This PR fixes #23

[ ] Tests for the changes have been added (for bug fixes / features)

[ ] (If applicable) Documentation has been added / updated (for bug fixes / features)

[ ] CHANGES.rst has been updated (with summary of main changes)

What kind of change does this PR introduce?

Points the RavenHydroFramework source files to the official GitHub project
Updates the version of Raven to 3.8
Updates the CMake configuration to use git-based clones

Does this PR introduce a breaking change?
Yes. The copied source files have been removed. There is more integration with the actual project source files.
Other information:

@huard
I've spent way too much time on this today. Here's what I've figured out:

Running the cmake commands directly on the upstream codebase RavenHydroFramework works fine (so long as the STANDALONE and COMPILE_EXE flags are there).
When compiling things here, it's clear that the functions defined in RavenMain.cpp are not being passed to other files. ExitGracefully() is only found in a .cpp file and not in a header, and this file isn't included in a bunch of .cpp files that make references to that function.
Unsurprisingly, if you could and paste the following into the top-matter of all .cpp files, the ExitGracefully() error disappears:

  #ifdef STANDALONE
      #include "GracefulEndStandalone.h"
  #elif BMI_LIBRARY
      #include "GracefulEndBMI.h"
  #endif

I've been trying to read up on ways of passing the objects from RavenMain.cpp to all other files, but I have no idea if that's even what we want. I get the impression that the problem has to do with scopes (perhaps vanilla cmake is a lot less strict about ensuring that files are included explicitly?).
@analytophile am I on the right track here?

@Zeitsperre
I suspect this is a false lead. Your installation setup works on master, and the code compiles fine using the original cmakelist. I believe there is a quirk related to the source files location introduced in the git fetch mechanism that we need to identify. I'll take a look later this week.

Seems to be working! The only issue I can see is that the model reports a non-fatal error:
 3.8.0 w/ netCDF
============== Early Gracefully Exit ==============
Error Statement: Version check
Error Code: 7
---------------------------------------------------

@huard any idea what that could be?

Needed to set the fetch-depth for setuptools_scm. See: https://github.com/pypa/setuptools_scm/issues/414


Blog:  GraphRAG: Unlocking LLM discovery on narrative private data

source: https://www.microsoft.com/en-us/research/blog/graphrag-unlocking-llm-discovery-on-narrative-private-data/

GraphRAG is developed by Microsoft Research as an advanced RAG technique using LLMs and graph. Baseline RAG is not good at understading the holistic understanding of document.


feat(fake-collector): Fake collector for testing and debugging

Description
Template for a fake collector that can be used for testing or debugging sensor.
Checklist

[ ] Investigated and inspected CI test results
~[ ] Unit test and regression tests added~
~[ ] Evaluated and added CHANGELOG entry if required~
~[ ] Determined and documented upgrade steps~
~[ ] Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)~

If any of these don't apply, please comment below.
Testing Performed

[ ] I have tested this in integration tests like #9750 (here #9784) where instead of setting a real collector I've used this fake collector and faked network and signal updates like:

fakeCollector.SendFakeSignal(&sensor.SignalStreamMessage{
	Msg: &sensor.SignalStreamMessage_Signal{
		Signal: &v1.Signal{
			Signal: &v1.Signal_ProcessSignal{
				ProcessSignal: &storage.ProcessSignal{
					ContainerId: talkContainerId,
					Name:        "curl",
				},
			},
		},
	},
})
fakeCollector.SendFakeNetworkFlow(&sensor.NetworkConnectionInfoMessage{
	Msg: &sensor.NetworkConnectionInfoMessage_Info{
		Info: &sensor.NetworkConnectionInfo{
			UpdatedConnections: []*sensor.NetworkConnection{
				{
					SocketFamily: sensor.SocketFamily_SOCKET_FAMILY_UNKNOWN,
					Protocol:     storage.L4Protocol_L4_PROTOCOL_TCP,
					Role:         sensor.ClientServerRole_ROLE_CLIENT,
					ContainerId:  talkContainerId,
					LocalAddress: &sensor.NetworkAddress{
						AddressData: nil,
						IpNetwork:   nil,
						Port:        0,
					},
					RemoteAddress: &sensor.NetworkAddress{
						AddressData: net2.ParseIP(deployIP).AsNetIP(),
						IpNetwork:   net2.ParseIP(deployIP).AsNetIP(),
						Port:        80,
					},
				},
			},
		},
	},
})

Reminder for reviewers
In addition to reviewing code here, reviewers must also review testing and request further testing in case the
performed one does not seem sufficient. As a reviewer, you must not approve the change until you understand the
performed testing and you are satisfied with it.

@vikin91 I have an example of how I'm planning to use this in tests here #9784. In case you want to have a look 🙂


Section 8.2.1

Because you in section 8.2.1. you are talking the requirements class, shouldn't the following be upper camel case?
"Requirements class tilematrixsetlimits establishes..."

Corrected.


Refactor manipulator

One axis one clamp manipulator. No more Devon 4 axis pain.

real git men don't need reviews AM I RIGHT??!?!?

No
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: Zac Stanton @.>
Sent: Sunday, June 18, 2023 4:13:40 PM
To: Colorado-School-of-Mines-Robotics-Club/MATE_ROV_Programming @.>
Cc: Lucas Niewohner @.>; Review requested @.>
Subject: Re: [Colorado-School-of-Mines-Robotics-Club/MATE_ROV_Programming] Refactor manipulator (PR #24)
real git men don't need reviews AM I RIGHT??!?!?
—
Reply to this email directly, view it on GitHubhttps://github.com/Colorado-School-of-Mines-Robotics-Club/MATE_ROV_Programming/pull/24#issuecomment-1596271649, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEIV7VCCFYGEBIZDJLL5FMTXL5VQJANCNFSM6AAAAAAZLAUS3I.
You are receiving this because your review was requested.Message ID: @.***>


sysapps: Use real Promises instead of a polyfill.

Back when the sysapps code was being written, V8's and Chromium's
Promises implementation was still under development, and only reached
Crosswalk months later.
The sysapps code resorted to using a very basic polyfill at the
time (which has a different syntax and is not as asynchronous as a
proper implementation), and nobody updated the code once we were able to
use Chromium's Promises implementation.
This change finally does it: instead requiring the "sysapps_promise"
module, we now just use Chromium's Promise object, reducing the
dependency on the third-party common_promise_api.js.

lgtm, will you remove the polyfill it self in another commit?

There are other parts of the code using it (like the native filesystem code), so I'm removing its uses one module at a time until I'm able to nuke it from orbit.


separate metric checking into non zero and can-be-zero metrics

Ensure some (i.e. uncore) metrics can be ignored while useful metrics should always be valid.

the energy metrics is still zero, i think we need to run some stress-ng workload during the test.

the stress test option will be enabled in a separate PR


Fix simulator

Description:
#81 #82
Reference Issues: #XX (XX is the issue number you work on)

remove police and hospital in goal generation


[BEAM-10333] Adjusts lower bound for Pandas to a version that supports Py3.8.

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

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

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

R: @Ardagan @aaltay @ajamato

Py 2, 3.5, 3.8 tests pass, Py3.7 error is a known flake and not related to this change, merging.


Not conflating incoming buildings with existing buildings (ArcGIS NZ buildings)

Description
When using RapiD, I expect that the incoming RapiD building features will not display where there are already buildings. This is important in order to see where there are existing buildings and to not add duplicate features. However in this alpha I am seeing the RapiD buildings (yellow) loading over the existing buidings (red)
Before enabling RapiD layer - buildings have already been added on north of Andrew Road:

After enabling RapiD layer - do not want the yellow features to show on north of Andrew Road.

Version
2.0-alpha
What browser are you seeing the problem on? What version are you running?
Edge v104.0
Steps to reproduce
Start a fresh session of RapiD, with only the default RapiD layers enabled.
Navigate to an area of New Zealand where some buildings are already mapped.
Click on the RapiD logo, Add/Manage Datasets, Add the "New Zealand Buildings" RapiD layer.
The browser URL at the time you encountered the bug
https://mapwith.ai/rapid-v2-alpha#background=Bing&datasets=ef9136b079e24bbfb432be9bbdd246ff&disable_features=points,indoor,boundaries,water,rail,pistes,aerialways,power,past_future,others&map=18.44/-36.90574/174.92279

This occurs when starting from a 'fresh' session, and adding the New Zealand Buildings layer the first time.
Clicking on the link which has the dataset configured in the URL parameters will NOT recreate the bug.

After a brief investigation I was able to reproduce this exactly. By clicking the URL with the dataset pre-filled, the buildings conflated away properly.
By manually adding the dataset, the buildings appeared to be overlaid on top of the OSM ones.
The actual network mechanism we are using to obtain the features seems to be different.
In the successful case (pre-filled dataset URL) we are obtaining the building shapes with a call to the ml_roads service (as expected):
https://mapwith.ai/maps/ml_roads?conflate_with_osm=true&theme=ml_road_vector&collaborator=fbid&token=ASZUVdYpCkd3M6ZrzjXdQzHulqRMnxdlkeBJWEKOeTUoY_Gwm9fuEd2YObLrClgDB_xfavizBsh0oDfTWTF7Zb4C&hash=ASYM8LPNy8k1XoJiI7A&result_type=osm_xml&sources=esri_building.ef9136b079e24bbfb432be9bbdd246ff&bbox=174.92431640624997,-36.910372213522514,174.9298095703125,-36.90597988519295

In the failing case, it appears we are obtaining the building shapes directly from the ARCgis backend, which explains why there's no attempt at conflation:
https://services-ap1.arcgis.com/iA7fZQOnjY9D67Zx/arcgis/rest/services/LINZ_NZ_Buildings/FeatureServer/0/query?f=geojson&geometry=174.90234375,-36.91476428895592,174.92431640624997,-36.89719446989034&geometryType=esriGeometryEnvelope&outSR=4326&outfields=*&resultOffset=0&resultRecordCount=2000

After further investigation I found that the data picker was setting 'conflate' to 'no' when the user first clicks it. This was supposed to be a temporary thing we did while testing (just to make loading data faster).
I have fixed this in commit fa996c8afba54f88d3064f9e4f10c903accf507e and it should appear in the 2.01 release of the alpha.

Thanks @TLDuhamel for this very excellent bug writeup!


Types of custom plugin options

I created a plugin for version 3, but I have problems with the types of options for the plugin
export const FilterGradientResponsive: Plugin<{ color?: string[]; height?: number }> = {
  id: 'filterGradientResponsive',
  ...
}

options: {
  plugins: {
    filterGradientResponsive: {
      color: ['rgba(253.83, 163.40, 0.17, 0.85)', 'rgba(222.84, 0.29, 161.09, 0.78)'],
    },
  },
}

Error:
index.d.ts(1516, 3): The expected type comes from property 'options' which is declared here on type 'ChartConfiguration<"line", number[], string>'

Faced same issue, should be fixed by #8048
Here's how I declared the options in the plugin (needs that PR merged):
declare module 'chart.js' {
  interface PluginOptions {
    annotation: AnnotationPluginOptions;
  }
}

starting with version v3.0.0-beta.10 needs to change in this:
PluginOptions -> PluginOptionsByType
declare module 'chart.js' {
  interface PluginOptionsByType {
    annotation: AnnotationPluginOptions;
  }
}


Puzzle item not displaying UI when solved

Description of Problem or Question
An puzzle item that gets handed during gameplay can accessed via the inventory.:

When it is selected in the inventory while the puzzle is not solved it wil display the puzzle. Solving the puzzle will display the result with additional text.
When it is selected in the inventory while the puzzle is solved, it should display the result and the text. But it doesn't. I am not sure if it is a scenario bug or a valkyrie bug.

How to reproduce:
The scenario starts with displaying a clue token which I use for test purposes.

Select from test clue select: Place Lobby. and click until all placed
Select from test clue token:  Get Map
Select from items the old map and solve the puzzle.
After solving the puzzle, select the old map again from the Items.

Valkyrie Version
Valkyrie2.2.20181209  (<- NOTE TEST VERSION)
Attach Save, Quest or Scenario
Scenario:
https://github.com/antontimmermans/MOMCDM
Note this scenario is very much work in progress and not playable! It CANNOT be used with current public version of Valkyrie 2.1.5. Only with the listed test version (or higher)

You should not use a puzzle for an item inspect. I can't see a logical way for a puzzle to understand that it's complete but not trigger the completion event a second time (without using events with variables).
You should create an event for the inspect and put an event (in that event have a test for a variable like  'puzzledsolved == 1') and then the second puzzle event being sequencial  after it.
Once the puzzle is complete use the completion event to  assign a variable to say it's complete ('puzzlesolved = 1') this means when the item is inspected again it will trigger the puzzle complete event, not retrigger the puzzle.
The other option is to use 'remove components' to discard the item and give the players a new one (could even be the same item in a new qitem with a different inspect event).

Rereading that I understand it sounds complex but it's not. If you don't understand my meaning let me know and I'll create a test scenario to explain it better.

Hi @antontimmermans

I will send you a PR so you can use the latest test version, with the proper naming for tests
there is a problem with the EventGhostPlaceLadyBedroomB : you have too many parenthesis
Seems like all events are called without displaying any button when accessing the map a second time.
I need to have a closer look at this.

hi @BenRQ

If you explain how they should be renamed once the new version comes, I will find&replace them in my code.
Thanks for detecting that, oddly enough it seemed to be working without problem :S. The problem however is not to much parenthesis, but not enough parenthesis. it is missing the last ')'.
The event has a 'Continue' button which clears the UI item when clicked. The 'without displaying' triggered remark triggered me to look again in the code. Notice the display=false which I think is the guilty part.

[EventQItemOldMapShowA]
display=false
buttons=1
event1=EventQOldMapClear
add=UIOldMapA

I will correct both issues tonight.
@scrubbless
I think I get your point and I even think that it is how I programmed it. During the game a player gets this QItem. When inspecting this Qitem (puzzlesolved==0) it appears to be a scrambled piece of paper that can be unscrambled by solving a puzzle. Upon solving the puzzle a UIOldMap is displayed, including an explaining text and a clue token given to the player. Clicking Continue will then remove the UIOldMap.
When inspecting this Qitem (puzzlesolved!=0) it should display the UIOldMap including an explaining text. Clicking Continue will then remove the UIOldMap.
In events it looks like this:
[EventQItemOldMapInspect]
display=false
buttons=1
event1=EventQItemOldMapUnsolved EventQItemOldMapSolved

[EventQItemOldMapUnsolved]
vartests=VarOperation:OldMapSolved,==,0
buttons=2
event1=PuzzleQItemOldMapA
event2=

[EventQItemOldMapSolveA]
operations=OldMapSolved,=,1
buttons=1
event1=EventQOldMapClear
add=UIOldMapA

[EventQItemOldMapSolved]
vartests=VarOperation:OldMapSolved,!=,0
display=false
buttons=1
event1=EventQItemOldMapShowA

hi @BenRQ , @scrubbless
Thank you both for your quick response.  Both issues are repaired:
The lady in the bedroom was indeed missing a ')' (and some more but telling THAT would be a spoiler ;-))
The original non-displaying issue was indeed caused by "display=false". Propably caused by me wanting to go faster and copy and paste to much :s
Closing the issue.


Simple conversation not working in react component.

The dialog is not proceeding to the next step in the waterfall and is restarted.
Here is the server code.
var express = require('express');
var builder = require('botbuilder');
var creds = require('./creds');
const app = express();

// Create chat connector for communicating with the Bot Framework Service
var connector = new builder.ChatConnector({
    appId: creds.MICROSOFT_APP_ID,
    appPassword: creds.MICROSOFT_APP_PASSWORD
})

app.post('/chatbot/api/messages', connector.listen());

var bot = new builder.UniversalBot(connector, [
    function (session) {
      builder.Prompts.text(session, 'Hi! What is your name?');
    },
    function (session, results) {
      session.endDialog('Hello %s!', results.response);
    }
]);

// Setup Express app
app.listen(process.env.port || process.env.PORT || 3131, function () {
  console.log('Example app listening on port 3131!')
});

Here is the client side code.
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import { Chat } from 'botframework-webchat';
import 'botframework-webchat/botchat.css'
const DIRECT_LINE_SECRET = "****"

class App extends Component {
  render() {
    return (
      <div>
        <Chat directLine={{secret: DIRECT_LINE_SECRET}} user={{ id: ""  , name: "" }} />
      </div>
    );
  }
}

export default App;

This is the output we get -

The same thing seems to be working on the emulator.

I got the problem. The History component is not able to get the reference with empty id and name. Specifying id and name fixes the problem.


Cask request: gedit

https://wiki.gnome.org/Apps/Gedit

A PR was started, but closed since the submitter did not see it through the end. You may use it as a starting point.

Please close. Cask merged.


Don't download this mod. It's dead.

The mod maker has blocked me, and refused to address issues with their mod, presumably because they are unable to accept criticism and don't care that they've produced a poorly made mod.
Don't download this mod. The creator doesn't plan on supporting it, refuses to address their 37 tickets, and you'll be wasting your time with a mod that has a great premise, but a terrible execution.

You literally created an account just to write this? Don't you have any other problems? I don't know how you wrote with him, but if it's like this, I don't blame him for blocking you


Issue with the hostname

Hi,
I'm attempting to set up platformatic as the inner link proxy pass for my domain. Thus, I set up Platformatic on my system and used Nginx for the proxy pass. Everything was operating smoothly, however, when the swagger is executed, the request is sent to the domain/device and receives a 404 error because the inner URL of my proxy pass is domain/test/platformatic/api/. That's what leads to the execution problem. How to change the base URI of the platformatics swagger to match the path of my nginx proxy, such as domain/test/platformatic/api/, rather than /. I hope you understand the problem.

hi!
you should configure your platformatic app with this config
{
   ...
   "openapi": {
     "prefix": "domain/test/platformatic/api"
   }
}

Let me know if that helps

Put that into the db object

Sorry @nidhin077 I noticed after my comment that something was wrong. This is a sample
{
  "db": {
    "openapi": {
      "swaggerPrefix": "my/prefix/"
    }
  }
}

you will have then your documentation will be under http://hostname/my/prefix

@leorossi Hi I followed the configuration exactly, but now I'm receiving an error, the error message is shown below.

The current platformatic.db.json file is
{
  "server": {
    "hostname": "<IP_ADDRESS>",
    "port": "3000"
  },
  "db": {
    "connectionString": "sqlite://./.sqlite.db",
    "openapi": {
      "swaggerPrefix": "test.com/test/platformatic/api"
}
},
  "migrations": {
    "dir": "./migrations",
    "autoApply": "true"
   }
}

We have to release v14.4.5 which contains such commit.
Meanwhile you can start your app using the latest main commit with
node /path/to/your/git/platformatic/packages/cli/cli.js start from your app directory

@nidhin077 v1.15.0 is released, and that config should work now

@leorossi , Now that the configuration seems to be functioning, there appears to be a problem with the path mapping as I'm receiving 404 errors while trying to reach the same.

message | "Route GET:/documentation/static/index.html not found"
error | "Not Found"
statusCode | 404

{
  "server": {
    "hostname": "<IP_ADDRESS>",
    "port": "3000"
  },
  "db": {
    "connectionString": "sqlite://./sqlite.db",
    "openapi": {
      "swaggerPrefix": "test.com/api/test/db/tsd/"
}
},
  "migrations": {
    "dir": "./migrations",
    "autoApply": "true"
   }
}

Could you kindly check the configuration attached and let me know where this went wrong?

the documentation will be served from http://<IP_ADDRESS>:3000/test.com/api/test/db/tsd


MTSDK-25 Handle Typing Indicator Event

Add EventHandler.kt to be responsible for events aggregation/maping/dispatch.
Deserialize events node from StructuredMessage.kt response.
Map StructuredMessageEvent.kt to Event.kt.
Event node containing unknown event type will throw SerializationException (handled inside MessagingClientImpl.kt)
Add unit tests.
Add KDoc to publicly exposed Events.

Jenkins had a successful build.


merge package template from Kronos-Tools/npm-package-template

package.json

chore(devDependencies): update<EMAIL_ADDRESS>from template

Coverage remained the same at 82.143% when pulling 0ce50a3d436267b4cd23f8da59f83a66ea32602d on template-sync-1 into 51bbffde5c03586f6035cd8517a9cf7abe6aff79 on master.

Codecov Report

Merging #104 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master    #104   +/-   ##
======================================
  Coverage    90.9%   90.9%
======================================
  Files           1       1
  Lines          22      22
======================================
  Hits           20      20
  Misses          2       2

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 51bbffd...0ce50a3. Read the comment docs.


detectron2 integration?

why not using detectron2 replicate some of those exp result in detection, since this is a work from FAIR.

Thanks for your question. We have used mmdetection to achieve most fair comparison with Swin and PVT and eliminate any factors that can impact the performance other than the method itself.
Detectron2 Integration is certainly included in our future plans. I will post on this thread once we have any updates concerning D2 integration.


Error on compiling package

Expected Behavior
The catking_make action should complete without error
Current Behavior
catkin_make action fails
See pastebin : https://pastebin.com/bvVBbA41
Possible Solution
https://answers.ros.org/question/288967/build-package-with-system_lib-not-found/
Comments
N/A
Environment Used
Local computer

This is an old repo replaced by sonia-behaviors https://github.com/sonia-auv/sonia-behaviors.


Fix homepage for unauth users

Homepage is showing a blank content to user unauthenticated after changed Cloud Firebase rules.

This issue was solved in the following commit:
3456465a11e2a03bdb72d62eda59249ae9a98e38


Building aws-sdk-cpp on Windows

I want to build the package on Windows for both 32-bit and 64-bit. According to README, I can do it with
cmake  -G "Visual Studio 12 Win64"
msbuild INSTALL.vcxproj /p:Configuration=Release
I assume it means use either 'cmake' or 'msbuild'?
I cannot find a MS project file called INSTALL.vcxproj under the source tree.  If I am to use cmake to build 32-bit version on Visual Studio 2015, what should I use in place of the -G "Visual Studio 12 Win64" flag?  Is it -G "Visual Studio 14 Win32" ?

Visual Studio 12 2013 Win64 ->Visual Studio 2013 64 bit configuration
Visual Stuidio 14 2015 Win32 -> Visual Studio 2015 32 bit configuration
etc....

I am using CMake 3.8 and it seems to support only Win64 or ARM.  I ran cmake --help and got the following message.  I tried both 32-bit and 64-bit CMake and got the same message.  'Win32' is not an accepted architecture.
The following generators are available on this platform:
Visual Studio 15 2017 [arch] = Generates Visual Studio 2017 project files.
Optional [arch] can be "Win64" or "ARM".
Visual Studio 14 2015 [arch] = Generates Visual Studio 2015 project files.
Optional [arch] can be "Win64" or "ARM".
Visual Studio 12 2013 [arch] = Generates Visual Studio 2013 project files.
Optional [arch] can be "Win64" or "ARM".
Visual Studio 11 2012 [arch] = Generates Visual Studio 2012 project files.
Optional [arch] can be "Win64" or "ARM".
Visual Studio 10 2010 [arch] = Generates Visual Studio 2010 project files.
Optional [arch] can be "Win64" or "IA64".
Visual Studio 9 2008 [arch]  = Generates Visual Studio 2008 project files.
Optional [arch] can be "Win64" or "IA64".
Visual Studio 8 2005 [arch]  = Generates Visual Studio 2005 project files.
Optional [arch] can be "Win64".
Visual Studio 7 .NET 2003    = Deprecated.  Generates Visual Studio .NET
2003 project files.

It turns out that -G "Visual Studio 14 2015 Win64" is for 64-bit and -G "Visual Studio 14 2015" is 32-bit.
However, the resulting libraries are located under each module.  The CMAKE_INSTALL_PREFIX does not work. ( I guess it is for 'make install', which does not apply to Visual Studio).
Is there a way I can make it to put all 'include' and libraries in certain location?


DataContext class missing methods

Hi,
DataContext class are missing lots of methods which are implemented in that BaseService class like Set method, SaveChangesAsync..
Am I missing any reference dll?
where are there?

You have to pass your EF data context to the base service when you inherit from it like so:
public class AccountService : BaseService<ApplicationDbContext, Account>
{
    public AccountService(ApplicationDbContext context) : base(context) { }
}

The BaseService has several common methods for use but doesn't implement all of the standard DataContext methods. You can still use your DataContext directly to do things like call SaveChangesAsync.
When you go to use the service you'd initialize the ApplicationDbContext before you initialize the service itself, then you have the same context and access to both the services methods and the standard EF methods.
ApplicationDbContext db = new ApplicationDbContext();
AccountService service = new AccountService(db);

var account = await service.GetAsync(1);
account.name = "Joe";
account = await service.UpdateAsync(account,account.Id);

//or

var account = await db.Accounts.Where(x=>x.Id == 1).FirstOrDefaultAsync();
account.name = "Joe";
await db.SaveChangesAsync();

All right, Thank you for quick reply.  My project structure is a little different than what you suggested.
I am trying to implement a generic repository with EF 5 based on your generic repository with EF 6. The link below is the generic repository I am using my own project.
https://github.com/tugberkugurlu/GenericRepository
It is using DbContext instead of DataContext class so my repositories are something like that
public class ProductRepository : BaseRepository<Product, int>, IProductRepository
public abstract class BaseRepository<T, TId> : EntityRepository<T, TId> where T : class, IEntity where TId : IComparable
ProductRepository inheritances BaseRepository which inheritaces as you see. EntityRepository is using DBContext class for database operation and not supporting async methods right now. So I think I need to change DbContext  with DataContext like you did.. Every repository rely on DbContext as constructor parameter so it is so important to change core database operation to support async implementation for my project.
Any help really appreciated
My Project ProductRepository
https://github.com/eminyuce/StoreManagement/blob/master/StoreManagement/StoreManagement.Service/Repositories/ProductRepository.cs


Generic way to add parameters

Feature Request: I'd like to have a way, to specify arbitrary parameters in the properties as plain text.
Background
Newer Versions of the TS compiler may have parameters which are not yet implemented as check boxes for the properties menu. A generic text field for additional parameters would help here to overcome the gap between tsc and your eclipse plugin. E.g. In my current case --experimentalDecorators is missing.

experimentalDecorators is implemented in the latest release. please update.

Thinking about this request more I think I'd like to just implement first class support for whichever properties are required. Some of them require special handling in the plugin.


Add BG/BB discrete transactional model

Hello Cameron, this PR adds the BG/BB model described by Fader and Hardie (PDF) for modeling discrete time transactions where no death is observed. The model is useful for cases when repeat purchases occur at regular intervals such as in subscription businesses. This PR contains the model, some tests, and the dataset provided by Hardie on his website.
BG/BB is also available in the BTYD R package, I believe with this addition lifetimes will offer Python implementations of all the models available in that package.

Thanks for this addition! A few points initially:

I haven't read the paper (yet), so I can't comment on the algorithm implementation yet
Really great tests! 🎉

@CamDavidsonPilon Hey Cameron, just wanted to check in with you on this. Have you had a chance to read Fader and Hardie's paper? Feel free to shoot me any questions on the model or implementation.

Just read it now - really useful model.

Overall, lgtm! I'll merge now


Use on placeholder

Hi. Is there a possibility to use it on input placeholder?

Hi, sorry for long response! Please, try v1.0.1!


[improve][io] Add zstd support to hdfs2 and hdfs3

Motivation

Recent versions of Hadoop support zstd compression, but it's not enabled in the hdfs2 and hdfs3 pulsar-io, so I'd like to activate it.
Modifications

Added an enum definition and some unit tests.
Verifying this change

[x] Make sure that the change passes the CI checks.

I ran the CI on my own GitHub account and it was successful except for the unit tests for broker group 2. I think that failure is irrelevant to this fix.
https://github.com/sekikn/incubator-pulsar/actions/runs/3774398563
This change added tests and can be verified as follows:
$ LD_LIBRARY_PATH=$HADOOP_HOME/lib/native ./mvnw test -f pulsar-io/hdfs2/pom.xml
$ LD_LIBRARY_PATH=$HADOOP_HOME/lib/native ./mvnw test -f pulsar-io/hdfs3/pom.xml

Zstd compression depends on Hadoop's native libraries, so LD_LIBRARY_PATH should be set for running them. If not, the newly added tests are simply skipped.
Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

[ ] Dependencies (add or upgrade a dependency)
[ ] The public API
[ ] The schema
[ ] The default values of configurations
[ ] The threading model
[ ] The binary protocol
[ ] The REST endpoints
[ ] The admin CLI options
[ ] The metrics
[ ] Anything that affects deployment

Documentation

[x] doc
[ ] doc-required
[ ] doc-not-needed
[ ] doc-complete

Matching PR in forked repository
PR in forked repository: https://github.com/sekikn/incubator-pulsar/pull/1

/pulsarbot rerun-failure-checks

Codecov Report

Merging #19050 (358919e) into master (d8569cd) will decrease coverage by 10.41%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             master   #19050       +/-   ##
=============================================
- Coverage     47.20%   36.78%   -10.42%
+ Complexity    10645     1962     -8683
=============================================
  Files           709      209      -500
  Lines         69421    14434    -54987
  Branches       7449     1574     -5875
=============================================
- Hits          32769     5310    -27459
+ Misses        32984     8547    -24437
+ Partials       3668      577     -3091

Flag
Coverage Δ

unittests
36.78% <ø> (-10.42%)
:arrow_down:

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

Impacted Files
Coverage Δ

...he/pulsar/client/impl/PartitionedProducerImpl.java
30.34% <0.00%> (-5.13%)
:arrow_down:

...va/org/apache/pulsar/client/impl/ProducerImpl.java
15.66% <0.00%> (-1.17%)
:arrow_down:

.../pulsar/client/impl/ProducerStatsRecorderImpl.java
84.04% <0.00%> (-0.62%)
:arrow_down:

...che/bookkeeper/mledger/impl/ManagedLedgerImpl.java

...sar/broker/service/plugin/EntryFilterProvider.java

...ava/org/apache/pulsar/PulsarStandaloneBuilder.java

...roker/admin/impl/OffloaderObjectsScannerUtils.java

...loadbalance/impl/LeastResourceUsageWithWeight.java

...ce/schema/validator/StringSchemaDataValidator.java

...xtensions/channel/ServiceUnitStateChannelImpl.java

... and 493 more


New version: Nextcloud.NextcloudDesktop version 3.13.1

Pull request has been created with komac v2.3.0 :rocket:
Microsoft Reviewers: Open in CodeFlow

/azp run


add DATETIME_UTC_COMPLETE and DATETIME_UTC_COMPLETE_FRACTION

closes #139

Can you add a test using those constants with valid dates?

@soywiz maybe you can help me with the tests. I'm copying testDateTimeComplete() and adding basically adding Z to the the time-strings. This works fine for format() but not for parse().
Here's the code:
@Test
    fun testDateTimeUtcComplete() {
        assertEquals("20190917T114805Z", ISO8601.DATETIME_UTC_COMPLETE.basic.format(1568720885000))
        assertEquals("2019-09-17T11:48:05Z", ISO8601.DATETIME_UTC_COMPLETE.extended.format(1568720885000))

        assertEquals("Tue, 17 Sep 2019 11:48:05 UTC", ISO8601.DATETIME_UTC_COMPLETE.parse("20190917T114805Z").utc.toString())
        assertEquals("Tue, 17 Sep 2019 11:48:05 UTC", ISO8601.DATETIME_UTC_COMPLETE.parse("2019-09-17T11:48:05Z").utc.toString())
    }

    @Test
    fun testDateTimeUtcCompleteFraction() {
        assertEquals("20190917T114805.000Z", ISO8601.DATETIME_UTC_COMPLETE_FRACTION.basic.format(1568720885000))
        assertEquals("2019-09-17T11:48:05.000Z", ISO8601.DATETIME_UTC_COMPLETE_FRACTION.extended.format(1568720885000))

        assertEquals("Tue, 17 Sep 2019 11:48:05 UTC", ISO8601.DATETIME_UTC_COMPLETE_FRACTION.parse("20190917T114805.000Z").utc.toString())
        assertEquals("Tue, 17 Sep 2019 11:48:05 UTC", ISO8601.DATETIME_UTC_COMPLETE_FRACTION.parse("2019-09-17T11:48:05.000Z").utc.toString())
    }

I get the error Invalid format 20190917T114805Z but I'm not sure how to fix that. How is parse() related to the IsoDateTimeFormat I'm defining?

Sure. Please, commit the tests and I'll check it

Done. Please have a look.

Hey @hardysim thanks for your patience. I have finally looked at the issue, and it was related to timezone not being parsed on the ISO8601 parser. Since this is a PR I cannot add commits there so I have created a separated PR.

Just merged https://github.com/korlibs/klock/pull/141 . Thanks for your contribution!

@soywiz is there an ETA of a new release including this?

Just triggered a build: https://github.com/korlibs/klock/actions/runs/264987210

Perfect. It's included in 1.12.1
Maybe you want to update the changelog as well. It seems it hasn't been synced to new tags some time now.


Revert "Ensure error_map is used consistently"

Reverts Azure/azure-sdk-for-python#7637

Can one of the admins verify this patch?


Fixed Intellisense bug with packages that contain a .

Awesome! I refactored this part a bit, but still had that bug.
I actually started using DependenciesFileParser.parseDependencyLine to try and figure out where I was... but I didn't get too much done yet :(

Yeah I cheated a bit and just retrieved the whole line from the buffer.
Side question: even if the keyword completion gets raised, shouldn't it be filtered?

I introduced a new bug. :-( trying to fix now

fixed it. and also implemented:


luarocks 2.2.0 ignores *_proxy env

I set http_proxy and https_proxy variables, but luarocks ignores them.

strace shows:
23677 connect(3, {sa_family=AF_INET, sin_port=htons(443), sin_addr=inet_addr("<IP_ADDRESS>")}, 16) = -1 EINPROGRESS (Operation now in progress)

I guess, #371 covers this issue.


What is current stable version?

I'm not sure what's considered the current stable version for this software. Is it the 2.2.1 tag here on GitHub or the 2.1.1 on registry.npmjs.org or something else?

bump on this. Not sure whether to update the Homebrew formula or not.

2.3.0 is the most stable version as of today!

2.3.1 is now the stable version, it fixes an issue with json-schema draft 04

@nijikokun Thanks a lot! Voilà: https://github.com/Homebrew/homebrew-core/pull/5300/


Analysis of ricochet flag

I'm not sure, but personally, I'd revise the following sections:

A lot of maps utilize the +r attribute in their config file to already allow the effect of Ricochet without the tanks being required to hold the specific flag for it.

It may be better simply note that the ricochet option may be enabled, since technically, the option could be set via the command line, within the map itself or within a configuration file.

..."behind which a person can hide from direct fire from the opponent, all while attempting to shoot them down by using the objects as proxies off of which own bullets bounce in hopes of hitting the opponent."

This area sort of is unclear, as it may imply that it is possible to play as a 'person' within the game itself.

Both are valid arguments; changes applied, thanks for the heads-up, @Zehra!

Both applied; thank you, @allejo!

The third patch has been pushed; thank you for your feedback, @jwmelto. I have included all of the suggestions while removing the sentence about the angle of the bounce, as the summary is concluded without it as well.


Configure accelerated endpoint in appsettings.json

I have tried to configure AWS to use the accelerated endpoint using appsettings.json with this syntax:
"AWS": {
  "Profile": "default",
  "Region": "eu-west-1",
  "UseAccelerateEndpoint": true
},

But for instance the GetPreSignedURL does not return an URL that points to the accelerated endpoint. How can this be configured?
Your Environment

AWSSDK.Core version used: <IP_ADDRESS>
AWSSDK.Extensions.NETCore.Setup version: 3.3.1
Service assembly and version used:
Operating System and version:
Visual Studio version:
Targeted .NET platform: netcoreapp1.1

.NET Core Info

.NET Core version used for development:
.NET Core version installed in the environment where application runs:
Output of dotnet --info:

.NET Command Line Tools (1.0.1)

Product Information:
 Version:            1.0.1
 Commit SHA-1 hash:  005db40cd1

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  10.12
 OS Platform: Darwin
 RID:         osx.10.12-x64
 Base Path:   /usr/local/share/dotnet/sdk/1.0.1

Contents of project.json/project.csproj:

<Project Sdk="Microsoft.NET.Sdk.Web">
  <PropertyGroup>
    <TargetFramework>netcoreapp1.1</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore" Version="1.1.1" />
    <PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.2" />
    <PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="1.1.1" />
    <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.1" />
    <PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="1.1.0" />
    <DotNetCliToolReference Include="Microsoft.DotNet.Watcher.Tools" Version="1.0.0" />
    <PackageReference Include="AWSSDK.Extensions.NETCore.Setup" Version="3.3.1" />
    <PackageReference Include="AWSSDK.S3" Version="<IP_ADDRESS>" />
    <PackageReference Include="AWSSDK.ElasticTranscoder" Version="<IP_ADDRESS>" />
    <PackageReference Include="Newtonsoft.Json" Version="10.0.2" />
    <PackageReference Include="Raven.Client" Version="4.0.0-alpha-40013" />
    <PackageReference Include="Microsoft.AspNetCore.WebSockets" Version="1.0.2" />
    <PackageReference Include="WebSocketManager" Version="1.0.1" />
  </ItemGroup>
</Project>

UseAccelerateEndpoint isn't supported in appsettings.json yet.  It will be added to our feature request list at https://github.com/aws/aws-sdk-net/blob/master/FEATURE_REQUESTS.md
For now you should use the AmazonS3Config.UseAccelerateEndpoint property.

@vellozzi How can I set the config property when I add the services like this?
services.AddDefaultAWSOptions(Configuration.GetAWSOptions());
services.AddAWSService<IAmazonS3>();

@normj Maybe you can answer my question above?

As @vellozzi said we don't have support yet for setting AmazonS3Config.UseAccelerateEndpoint via this package yet. We do want to extend the capabilites of the package to handle cases like this. Till then you need to manually create the S3 client and add it to the list of services. Here is a snippet of code that does that.
public void ConfigureServices(IServiceCollection services)
{
    services.AddDefaultAWSOptions(Configuration.GetAWSOptions());

    var options = Configuration.GetAWSOptions();

    var credentialChains = new Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain();
    Amazon.Runtime.AWSCredentials credentials;
    if(!credentialChains.TryGetAWSCredentials(options.Profile, out credentials))
    {
        credentials = Amazon.Runtime.FallbackCredentialsFactory.GetCredentials();
    }

    var s3Config = new AmazonS3Config
    {
        RegionEndpoint = options.Region,
        UseAccelerateEndpoint = true
    };

    services.AddSingleton<IAmazonS3>(new AmazonS3Client(credentials, s3Config));

    // Add framework services.
    services.AddMvc();
}

Feature request added to https://github.com/aws/aws-sdk-net/blob/master/FEATURE_REQUESTS.md .  Closing this issue.

@normj @vellozzi  Do we have this feature now through config or we are still waiting on this?


microbin: 1.1.0 -> 1.2.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/szabodanika/microbin/releases.
meta.description for microbin is: "A tiny, self-contained, configurable paste bin and URL shortener written in Rust"
meta.homepage for microbin is: "https://github.com/szabodanika/microbin"
meta.changelog for microbin is: ""
Updates performed

Rust version update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.2.0 with grep in /nix/store/3whpw3db0x8iz9xibzvnz0i4xg3j5psq-microbin-1.2.0
found 1.2.0 in filename of file in /nix/store/3whpw3db0x8iz9xibzvnz0i4xg3j5psq-microbin-1.2.0

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
microbin

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/3whpw3db0x8iz9xibzvnz0i4xg3j5psq-microbin-1.2.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A microbin https://github.com/r-ryantm/nixpkgs/archive/11e941860c42e3c900227f0a3da484a334574baa.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/3whpw3db0x8iz9xibzvnz0i4xg3j5psq-microbin-1.2.0
ls -la /nix/store/3whpw3db0x8iz9xibzvnz0i4xg3j5psq-microbin-1.2.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

microbin

Maintainer pings
cc @dit7ya for testing.

@ofborg build microbin microbin.passthru.tests

#223299

Superseded by #223299.


Use new /link routes for linking accounts

Loopback.js differentiates between linking and login for passport strategies.
Current linking needs to have links updated

Links have been updated. I've also added a providers.json file as per the loopback-example-passport application.
It's successfully reaching out to twitter and the callback is being fired, but it's not actually creating a new user or authenticating them.

@QuincyLarson do we have a stagging server to test out the other third party logins and linking process?


Add the possibility to use the simulator in C++

It would be nice to automatically generate C++ code or a library to use the simulator in C++.
Disclaimer: I know it's a huge task but it's something that we can keep in mind in the future.
cc @Giulero @traversaro @diegoferigo

As a first trial I would try to compile the simulation block with https://www.mathworks.com/products/simulink-compiler.html, either to a standalone application or to FMU, and understand the errors that for sure will arise. :)

Related issue https://github.com/dic-iit/bipedal-locomotion-framework/issues/261


No detection if App has already been opened

if you launch the app once then minimize it and then relaunch again it doesn't check if the app is already open and create a second instance

Good idea, i had the Problem that i opened 6 instaces cause i completely forgot about the minimize thing.

I implemented the tray icon, I'll look into fixing this

This can be fixed with Electron #appRequestSingleInstanceLock.
Let me know if u want me to add it.


Add contributor

Update contributors list with renjithvk

Already done in https://github.com/webpack/webpack.js.org/pull/2003/


Make relevant custom items not mendable.

Blocked by https://github.com/PaperMC/Paper/issues/7313.

Used a workaround for now, once the linked PR is available upstream we can make it efficient.


I made a thing

@paf31 I made an attempt at something like this years back when QC and SC first split, only I was targeting Arbitrary when I did that, which lead to something of a dead end.
My thinking is, if we introduce something like this and have it in core, we can at least provide MonadGen constrained functions for generating everything common, and then have implementations of MonadGen for QuickCheck, StrongCheck and Jack in each of those libraries.
The operations provided by MonadGen itself are pretty basic, so it won't work for some of the fancier tests StrongCheck can do, and there's nothing to help out with shrinking in Jack, but at least we could have a useful set of things that take the pain out of generating test structures that are usable by everyone. For all the common stuff there doesn't need to be much in the way of cleverness anyway, that I can think of.
I haven't actually checked the combinators I'm providing in here behave as they should or anything, but just wanted to see if there was any interest in me continuing this, as if it's not in core the utility is somewhat limited.

I think it'd be great to have something like this in core. I might have a few comments about the structure (minor ones) if you don't mind, but I think we should work towards getting it added.

Yeah certainly!
One of the things with it in its current state is it's relatively light on dependencies, I was trying to make it so we could depend on it mostly everywhere without pulling in too much stuff... so like the LL type in here is so we don't need to depend on -lists, etc.
Having said that, there are still a good few things pulled in:

purescript-bifunctors
purescript-control
purescript-eff
purescript-either
purescript-foldable-traversable
purescript-globals
purescript-identity
purescript-integers
purescript-invariant
purescript-math
purescript-maybe
purescript-monoid
purescript-newtype
purescript-nonempty
purescript-partial
purescript-prelude
purescript-st
purescript-tailrec
purescript-tuples
purescript-unfoldable

But at least it's all very common stuff, and mostly "control"-y rather than data.


Docs - Hide props that have @ignore

As seen here, Checkbox and Radio button have extra hidden props that are only used when the state needs to be forced. For example, when they are inside a list box item.

We just filter them out of the documentation.
They should only be used inside the Context like with Button and isPressed.

completed


SubSite Provisioning template with SiteFields from parent

I have a main parent site and provisioning works fine. It has a SiteField
When trying to apply a subsite template that references that field in a list, I get an error that it might be deleted by another user. I checked the existence in the site columns of the subsite and it does show up there.  Here is the parts that show under a particular list that reference it.  It does appear to reference the ID but not the webID of the parent or the ListID. If those are needed, I can probably inject those into the template on the fly but would need to know If it would just be adding those attributes and the potential capitalization requirements would be on them. I did not see anything in the documentation. Please let me know if there is some other workaround.
pnp:FieldRefs
<pnp:FieldRef ID="56d5d37e-6faf-4eb3-b362-2b93db985480" Name="Features_x0020_of_x0020_Work" DisplayName="Features of Work"/>
</pnp:FieldRefs>

My apologies, The FieldRef for one of the libraries that referenced the said site column was removed. Once added, I did not get the error.


Website down

Hi @bjorn3 , which website have you tried to access?

https://moonad.org It is set as the org website.

https doesn't work. You should access by: http://moonad.org
Let me know if you have problems with something else xD

Organization website updated.

Thanks.


FED website returning 403 error for requests without user agent

FED have started blocking requests without user agent with 403 error. This snippet
from FedTools import FederalReserveMins
FederalReserveMins(historical_split=2016).find_minutes()

raises
HTTPError: HTTP Error 403: Forbidden

This could be easily fixed by adding random UA with e.g. https://pypi.org/project/fake-useragent/. Here's an example that patches urlopen and works. This is obviously a hackish solution, we'd ideally replace urlopen in all modules.
from fake_useragent import UserAgent
from urllib.request import Request, urlopen

from FedTools import FedMins
from FedTools import FederalReserveMins

def urlopen_with_ua(url):
    ua = UserAgent()
    req = Request(url)
    req.add_header("user-agent", ua.chrome)
    return urlopen(req)

FedMins.urlopen = urlopen_with_ua

FederalReserveMins(historical_split=2016).find_minutes()

Thanks for reporting, working on a refactor for the library.

Fixed, new distribution available on PyPI at: https://pypi.org/project/Fedtools/0.0.6/
Thanks for the flag and helpful suggestions @Marigold


Update import_hook.py with latest changes in the wrapt repository [draft]

Description
When running an internal test suite with higher concurrency levels (e.g. pytest -n 15) we see test failures which only occur when importing wandb. There is a deep chain of multiple exceptions so I can't post the full traceback here. However the issue disappears once we update wandb's copy of import_hook.py to the latest version available in the wrapt repository.
I strongly suspect that the actual fix is in upstream commit c5173c95 but when looking at the wrapt file history there are also a lot of other changes which seem to be useful in general.
Therefore I manually applied the changes in the wrapt repository to wand's copy, maintaining the individual commits. I did not add the upstream authors in the git commits as I did not want to misrepresent their work. However besides putting the changes in the right place there is no original work of mine involved.
I'm using this PR as a way to start a discussion about how to best update import_hook.py in wandb. If you prefer you can also just "sync" the file in one commit without maintaining a commit history which will destroy the type annotations you added.
Testing
Ran our internal test suite which passes after applying this PR locally.
Checklist

[ ] Include reference to internal ticket "Fixes WB-NNNN" and/or GitHub issue "Fixes #NNNN" (if applicable)
[ ] Ensure PR title compliance with the conventional commits standards

@FelixSchwarz Thanks a lot for the fix, we will review it and try to have it as part of one of our upcoming releases!

Lets merge this into main right after the current release.

Thank you for looking into this. It would be really nice if these fixes could be part of an official wandb release as soon as possible.
A few points to consider when reviewing this:

Do you want to mirror individual commits or just a single "update import_hook.py from wrapt" commit? I think that many upstream commits contain valuable information.
You probably want at least one "fixup" commit to add new type hints/reformat the code according to your coding style policy (I tried to copy upstream code verbantim).
Upstream also has tests for the import machinery. Do you want to include these in your repo as well?

@FelixSchwarz Maybe one thing to fix is that we probably want to modify the unregister functions to also use the lock
i.e. functions: unregister_post_import_hook and unregister_all_post_import_hooks


ERROR: for airflow-init  Container "...." is unhealthy

Hi. I encounter this error with each docker-compose.
ERROR: Encountered errors while bringing up the project.

What could I do to build the docker container succesfully?

Im having a similar problem..
After runing airflow-init... when i try do run airflow-scheduler its stuck on monitoring_dag_mysql_1 is up-to-date

Please change mysql service healthcheck test from this
test: "/etc/init.d/mysql status"
to this
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", '-pairflow']
Optionally you may also reduce the reties from 120 to 2or3 to reduce wiat time. normally the mysql service shouldn't take long to become healthy.
Also if anyone trying on Mac M1, add platform: linux/x86_64 in mysql service and &airflow-common.


Update docs when building a new command

Today I was building a new command and noticed that CLI didn't recognize my new command locally. I quickly thought of something we adjusted a few weeks ago. Currently, we discover new commands only while running a new build. While we know this, this might not be that obvious for new contributors. Therefore I suggest we add to our docs an admonition that says people should run npm run build one time when they are working on a new command.

Good call. Let's add this clarity 👍
It's also good to first clear before running build like
npm run clean; npm run build

Just to clarify: you mean the command was there but CLI wouldn't load its help?
Since we're writing in TypeScript, you need to build to transpile the code to JavaScript, so the need to build is obvious. But I suspect there's more to your observation so would like to clarify it before we proceed with defining a suitable a solution.

Just to clarify: you mean the command was there but CLI wouldn't load its help?
Since we're writing in TypeScript, you need to build to transpile the code to JavaScript, so the need to build is obvious. But I suspect there's more to your observation so would like to clarify it before we proceed with defining a suitable a solution.

While developing I usually use npm run watch. However when you create a new command, you are unable to test it locally because CLI says this command doesn't exist.
Only after doing an npm run build, CLI updates its command list and knows it's there.

While developing I usually use npm run watch. However when you create a new command, you are unable to test it locally because CLI says this command doesn't exist.

Understood. I suggest that we revisit the watch command and see if there's a different way to orchestrate it so that you get everything you get from build + watch. It doesn't make sense for watch to be incomplete.

Can I work on it?

All yours @SmitaNachan!


Running in Docker

Took a stab at running fastback in docker, but I am not familiar enough with PHP to get it fully working. I just get the little rectangle with the pulsing ...Loading... text.
I figured out that I needed to enable pcntl by trying to running make_thumbs at the command line.
Anything else that I need to add/update?
My docker branch is located here and this is the Dockerfile.
I'm updating index.php to enable custom paths along the way, but for some reason that debug line never seems to work & I never get fastback.log in the /cache directory either.

Thanks for taking a stab at this!
I am going to be out of town until July 4. I just wanted to let you know I saw this and I am excited to look at it when I get back.

Sounds good.
Forgot to mention, there is a docker-compose.yml in the branch as well, to bring up a container using the image once built.


[Feature] Support RTL

Purpose

Support RTL if the Locale is Arabic

Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request Type
What kind of change does this Pull Request introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

Test the code

Go to Android Settings and open Developers Options Settings
Under the Drawing settings, make sure to enable "Force RTL layout direction"** option
Back to App and see the RTL layout

What to Check
Verify that the following are valid

Direction Image Mirrored
Layout Mirrored

Other Information

We temporarily use dev option setting to test the feature, after Localization is done, we could use other way to test.

LTR - Calling Screen
RTL - Calling Screen
MS Teams RTL

The mic drawable does not appear to be mirrored - the slash is pointing the same as non-mirrored version.  I tried on my emulator and it is the same behaviour.  Can you check with iOS to see if the mic icon is mirrored ?

The mic drawable does not appear to be mirrored - the slash is pointing the same as non-mirrored version. I tried on my emulator and it is the same behaviour. Can you check with iOS to see if the mic icon is mirrored ?

Find the difference between our design and current MS Teams current behaviour.
Will update the PR after finalizing the design.


Added pelican-clean-blog theme

Another proposed solution to adding the pelican-clean-blog theme, similar to #13

In peliconconf.py, you should add THEME = 'theme/pelican-clean-blog' and I think this will be all set to go.

@archangelic That's what I did last night to get it working


fix(cli/#2803): Quote arguments in AppRun so they don't get inadvertently split

Additional fix for #2803 - the command line arguments were getting split in the AppImage's AppRun - this updates the script so that they continue to be grouped when they are passed to Onivim for parsing.

/azp run


[Logical def] PR_000050567 used in logical definitions has been obsoleted

CL term
Several
Suggested revision of logical definition
Several CL terms use PR_000050567 in logical definitions. Unfortunately, PR has obsoleted the term.
Their note is "OBSOLETE. A material entity that minimally consists of a protein. Note: Made obsolete since the term definition was much broader than intended. Originally meant to include only single proteins (and derivatives thereof; PR:000000001), protein-containing complexes (GO:0032991), and protein aggregates (PR:000050566), it instead also included cells defined as having certain protein attachments."
Please change the term.

It's actually a good thing this has been obsoleted as it was causing almost everything in our KG to be classified as a protein containing entity - which I guess is trivially true...
I just checked and don't see it being used in any CL logical definitions (EquivalentClass).  However - asserted classifications under it are coming in from the Uberon import, which now appears to be pre-reasoned (I guess this is due to the move to base-plus  - even if we don't call it that).  => 207 Uberon anatomical structures classified.
Running the reasoner => some quite spectacular results with lots of CL classified under it:

I believe the we should be able to fix all of this by updating PRO in Uberon and CL (the one big import file strategy should avoid Zombie axioms)

So I noticed this in MAXO. We do import PR (and tons from UBERON). I was just going by the usage I could seen in MAXO here.
Thanks for looking into it.

You will need to update your PRO import too, if you haven't done already. The difficulty here is that, AFAIK, you will still have some residual issues if any other ontologies you import also import PRO but don't update. In these cases you will see classification of terms in the import under this term, but it shouldn't affect your terms as only the direct PRO import will pull in the PRO logical def which causes all these problems.  It's a downside of the the ODK base-plus strategy (CC @matentzn @cmungall)


by the looks of all the issues i think the update messsed up the code and increased security (my guess)

Working cheats here: https://github.com/Minesraft2/Blooket-Cheats


[Dependency Scanning] Copy the set of already-seen clang modules before parallel Clang identifier query

This set, belonging to 'ModuleDependenciesCache', is only updated in a critical section behind a lock in the scanner. However, it is queried unsynchronized inside the Clang scanner itself. If an update causes a re-hash to happen, chaose can ensue with concurrent lookups.
Since this set only affects the produced set of results from teh Clang scanning query, we should simply pass in an immutable copy to scanning queries and rely on downstream de-duplication of scanning results.
Resolves rdar://139414443

@swift-ci test

@swift-ci test

@swift-ci test

@swift-ci test Linux platform


Fix checkout log in tox function

The following are automatically added:

Add reviewers from OWNER file (in the root of the repository) under reviewers section.
Set PR size label.
New issue is created for the PR.

Available user actions:

To mark PR as verified add /verified to a PR comment, to un-verify add /verified cancel to a PR comment.
Verified label removed on each new commit push.
To cherry pick a merged PR add /cherry-pick <target branch to cherry-pick to> to a PR comment.
To add a label by comment use /<label name>, to remove, use /<label name> cancel
Supported labels:
do-not-merge
verified
wip
lgtm
target-version-

/verified


In fast k-nearest-neighbor search, do you use approximate methods?

Hello!
The term "fast" made me confused a little. Does it mean that the nearest neighbors are searched using approximate methods? It will be nice if you can provide some information about this function.

Hello. the documentation says that the KNN search is 'based on' nanoflann, which says that it does not use approximate methods but is fast because it uses KD trees https://github.com/jlblancoc/nanoflann

@fwilliams and @dancergraham , thanks for your guidance!


Proton-GE doesn't specify dependencies

Just got Proton GE working, but I had to manually add python3 and wineWowPackages to my system packages manually to get it to work.   I believe the right thing to do is add them to the build inputs in the derivation, e.g.
buildInputs = [
python3
wineWowPackages.stable
];

Neither of those packages are listed as dependencies by proton-ge, and nor do I have them (at least python) in my system packages.
I don't think this is a necessary change, but I'll go ahead and test it soon:tm:

P.S.
we actually don't "build" anything, so having those packages in buildInputs doesn't look like they'll change anything.
See here: https://github.com/GloriousEggroll/proton-ge-custom#manual

Ah, yes, it would be runtime inputs.

Proton is supposed to be used by Steam. Running it outside of Steam isn't supported.

I guess this is solved. Closing.


Allow plugins to not have init scripts

Godot version: 3.1.1 and master
Issue description: With Godot plugins, you are normally expected to define a script to initialize the plugin, and have this line in plugin.cfg to call it:
script="mycoolthing_plugin.gd"

Yet sometimes, you don't need to do anything in the script to initialize the plugin.

If you remove the line, Godot gives you a warning about the plugin not containing a script.
If you change the line to script="", Godot fails to load the plugin with an error that it can't find the script at the plugin's path.

Proposal: script="" should be interpreted as having no script, and show no warning.

Do you have an example of a plugin with no script?

Yes, this one I just submitted today. I gave it an empty script for now.


Training utilities and examples that are independent of trainer

The trainer feature offers useful abstractions that can often simplify the process of implementing a model in Chainer. However, in some cases users might find it more convenient to write their own training loop manually instead of using trainer.
For some models such as certain types of RNNs, it might sometimes be more convenient to write a custom training loop. Trainer comes with a learning curve and so new users could start being productive with Chainer quicker if they can implement models without trainer, at least in the beginning. Related to this, new users might also be able to more quickly understand the Chainer included examples if we could also provide an implementation of many of the examples without using trainer (of course we would also want to still include the trainer versions).
That is, trainer should be considered as an option that can often be useful, but that is not required to implement a training/testing loop in Chainer. Unfortunately, there is currently one drawback to not using trainer: without it, the user cannot access the many trainer extensions such as ProgressBar, LogReport, etc.. To resolve this inconvenience, I propose to write some training utilities that provide similar functionality to the trainer extensions but that can also be easily used in a custom training loop. I also propose to write additional examples (based on some of the current examples) that use a custom training loop with these utilities. I am currently experimenting with such utilities and would like to submit a corresponding WIP PR soon, especially if others think such utilities could be useful.
I expect that this feature should not break backward compatibility, but I might like to use some of the other v2 features in the utilities and examples and so am thinking to label this as a v2 feature.

Part of future roadmap.


Automatic assignment of shore dropzones

Motivation
closes #210
What was changed/added
Shore dropzones are automatically assigned, via the following procedure.
During _ready, whenever iterating over a square belonging to a ground tile, check if its adjacent squares (top, right, bottom, left) are in the air (in other words, not ground or water), and within grid bounds (to prevent errors). If they are, add them to their respective list (shore_top, shore_side, shore_bottom), depending on their relative position. After the grid has been initialized, iterate over these list and assign them their respective ENTITY_TYPE. As the grid is filled slowly, and not initialized, it was not possible to assign them in the for loop (cells didn't exist, and code currently allows for overwrites), hence the added function.
Testing
As you can see, all dropzones are rendered and work as expected, without hardcoding them. Note that I edited the Tilemap for this, to show that overhangs also work. The tilemap edit was only done for testing, as is not included in the commit.
Automatic Assignment of Shore Dropzones
Additional Information
I decided against using a tilemap based approach, as this would likely interfere with the current assignment of the grid, and because this approach reduces work required for future levels, by making dropzones automatic.
Also, one could use this code as a basis for implementing hazard zones, by checking adjecant tiles to hazards and flagging them accordingly.
It should be noted that this includes merely the dropzones, and not the initial zones of the fox. This should be done in issue #213
Future improvements
I propose splitting the tilemap in two distinct tilemaps; one for ground and one for water. This would require some minor refactoring, but importantly get rid of the hideous hardcoding in line 21 onwards, which is bound to cause some trouble if someone ever edits the tileset in the future.
@aylinfi, for issue #199, simply edit the lines deciding where dropzones should be tagged. Currently this is 104 and 106. Every other part of the code has been written with the distinction in mind.

The only improvement feasible is only checking the squares for drop_zone that are likely to have one, e.g. the tile with grass is unlikely to have a drop zone beneath it.

I briefly considered this approach, but decided against it. It would certainly make the code easier, and save a bit of computational power (negligable in our small grid), but would involve some hardcoding, and make the code (and the level visual design) more restrictive, and probably cause issues if we decide to update our tileset. Further splitting our tileset could help this problem, but I'm not sure if this is worth the effort.


Bug: ReferenceError window is not defined

Hello !
I'm trying to use jsPDF in a React / Next front side project.
In my stack I'm using :
"jspdf": "^1.5.3",
"next": "^7.0.2",

Error comes from jsPDF import. Maybe there is something wrong with SSR. I know there was some similar issues on 1.5.2 but I'm up to date, so I don't know.
The error :

My code is the following :
import * as jsPDF from 'jspdf/dist/jspdf.debug';

// Other code

const pdf = new jsPDF();
pdf.html(
    document.querySelector('.group___T1DCR')[0], {
        callback: pdf => pdf.save(),
    },
);

Thank you in advance ! 🤓

Will be not part of next release.


ability to repair/renew/download all profiles at once.

As requested, I am opening a new request on this.
Please add the ability to repair/renew/download all profiles at once.
I have 280 profiles, half created by Xcode automatically. It would be nice to repair all the ones invalid/expired.
Thanks

I plan on adding a download_all action to the next version of sigh when I'm finished with https://github.com/KrauseFx/sigh/pull/72


Add Java Solution for Problem Of The Day | 29 January 2023

Comment below if you're interested in working on this issue and would like to be assigned to it.

Please assign this to me


Explorer API allows document move with only VIEW permission

UI prevents unless you have EDIT, but the backend allows move with VIEW.

Fixed in >7.6-beta.4


Swagger Validator doesn't allow UTF-8 encoding swaggers

Describe the bug
Swagger Validator doesn't allow UTF-8 encoding swaggers. Please allow all the possible encodings.

CLI tools is a client of swagger validator. Please submit the defect to internal portal.


Switching to Commander for the cli, and renaming bin to 'butler'

I have added Commander to the project. This is going to be useful for more complex integrations on the cli.
I have also changed the bin from butler-cli to butler. https://github.com/benawad/butler-cli/issues/3#issue-565432552

Nice work, I just got the npm package destiny so I'm going to rename it to that.


Allow to set up custom xmldsig namespace prefix for Signature node

Allows to place Signature node with descendants to into explicit namespace (say, <ds:Signature>) instead of an implicit default namespace.
See https://github.com/ebeigarts/signer/issues/13 for details.
Fixes #13
@xvonabur, please check it out, whether it meets your needs:

Add it to Gemfile:
gem 'signer', github: 'ebeigarts/signer', branch: 'xustome_xmldsig_ns_prefix'

Specify option to Signer:
signer.ds_namespace_prefix = 'ds'

@ebeigarts, any thoughts?

Have you heard back from @xvonabur why this is needed? I would prefer to keep the code as simple as possible.

Not yet, still waiting for feedback at #13.
ср, 24 авг. 2016 г., 12:17 Edgars Beigarts<EMAIL_ADDRESS>
Have you heard back from @xvonabur https://github.com/xvonabur why this
is needed? I would prefer to keep the code as simple as possible.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ebeigarts/signer/pull/14#issuecomment-242004508, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAQI0OcQKx4ftGn9dmlPC0wB0dNb8G-Jks5qjAxFgaJpZM4JrxEl
.

Hi everybody.
This is something which would be very useful for us also. In Czech republic there is currently starting national cash transactions registration. Basically every cash or credit card transaction has to be registered at national financial institution. It's done through soap xml api and in the xml message there are used prefixed namespaces.
We'v already forked this gem and applied the patch and so far it works very good for us. But it would be really nice if we could use this gem directly. We want to open source the api client as a gem but it's not currently possible because gem dependencies can't come from forks on github. If it won't be possible we will have to release th fork as another rubygem which i would like to avoid if possible.

@Masa331 I will merge this and release a version soon

@Masa331 released in v1.5.1


DSM Decode

This is a rewrite of the DSM input parser which should address issues found in the old parser and allow robust operation on IO and FMUv4.

@AndreasAntener Rebased on master with the stack smashing fix.

Applied to master.