Failed to create drupalvm permission denied Windows 10

- Bug Report / Support Request
Your Environment
Vagrant 2.2.5
"VirtualBox vboxmanage --version"
'ansible' is not recognized as an internal or external command,
operable program or batch file.
Your OS
Windows10
console output
TASK [geerlingguy.drupal : Ensure drupal_core_path directory exists.] **********
fatal: [drupalvm]: FAILED! => {"changed": false, "msg": "There was an issue creating /var/www/drupalvm as requested: [Errno 13] Permission denied: '/var/www/drupalvm'", "path": "/var/www/drupalvm/drupal"}

Summary
I'm trying to set up a Drupal 7 VM. I've followed the instructions here: http://docs.drupalvm.com/en/latest/deployment/drush-make/
I am syncing folders using this method:
vagrant_synced_folders:
 - local_path: .
    destination: /var/www/drupalvm
    type: ""
    create: false
    options_override:
    disabled: true

However I don't seem to have permissions to add the drupalvm folder.
default.config.yml
---
# Available `vagrant_box` values include:
#   - geerlingguy/drupal-vm (pre-provisioned, based on Ubuntu 18.04)
#   - geerlingguy/centos7
#   - geerlingguy/centos6
#   - geerlingguy/debian9
#   - geerlingguy/debian8
#   - geerlingguy/ubuntu1804
#   - geerlingguy/ubuntu1604
vagrant_box: geerlingguy/drupal-vm

vagrant_user: vagrant
vagrant_synced_folder_default_type: nfs
vagrant_gui: false

# If you need to run multiple instances of Drupal VM, set a unique hostname,
# machine name, and IP address for each instance.
vagrant_hostname: drupalvm.test
vagrant_machine_name: drupalvm
vagrant_ip: <IP_ADDRESS>

# Allow Drupal VM to be accessed via a public network interface on your host.
# Vagrant boxes are insecure by default, so be careful. You've been warned!
# See: https://docs.vagrantup.com/v2/networking/public_network.html
vagrant_public_ip: ""

# A list of synced folders, with the keys 'local_path', 'destination', and
# a 'type' of [nfs|rsync|smb] (leave empty for slow native shares). See
# http://docs.drupalvm.com/en/latest/getting-started/syncing-folders/ for more.
vagrant_synced_folders:
  # The first synced folder will be used for the default Drupal installation, if
  # any of the build_* settings are 'true'. By default the folder is set to
  # the drupal-vm folder.
  - local_path: .
    destination: /var/www/drupalvm
    type: nfs
    create: true

# Memory and CPU to use for this VM.
vagrant_memory: 2048
vagrant_cpus: 1

# Ensure vagrant plugins are installed.
vagrant_plugins:
  - name: vagrant-vbguest
  - name: vagrant-hostsupdater

# Minimum required versions.
drupalvm_vagrant_version_min: '1.8.6'
drupalvm_ansible_version_min: '2.5'

# Force use of ansible_local provisioner, even if Ansible is installed on host.
force_ansible_local: false

# The web server software to use. Can be either 'apache' or 'nginx'.
drupalvm_webserver: apache

# The database system to use. Can be either 'mysql' or 'pgsql'.
drupal_db_backend: mysql

# Set this to 'false' if you are using a different site deployment strategy and
# would like to configure 'vagrant_synced_folders' and 'apache_vhosts' manually.
drupal_build_makefile: true
drush_makefile_path: "{{ config_dir }}/drupal.make.yml"
drush_make_options: "--no-gitinfofile"

# Set 'drupal_build_makefile' to 'false' and this to 'true' if you are using a
# composer based site deployment strategy.
drupal_build_composer: false
drupal_composer_path: "{{ config_dir }}/drupal.composer.json"
drupal_composer_install_dir: "/var/www/drupalvm/drupal"
drupal_composer_dependencies:
  - "drupal/devel:^1.2"

# Set this to 'true' and 'drupal_build_makefile', 'drupal_build_composer' to 'false'
# if you are using Composer's create-project as a site deployment strategy.
drupal_build_composer_project: false
drupal_composer_project_package: "drupal-composer/drupal-project:8.x-dev"
drupal_composer_project_options: "--prefer-dist --stability dev --no-interaction"

# Set this to 'false' if you don't need to install drupal (using the drupal_*
# settings below), but instead copy down a database (e.g. using drush sql-sync).
drupal_install_site: true

# Required Drupal settings.
drupal_core_path: "{{ drupal_composer_install_dir }}"
drupal_core_owner: "{{ drupalvm_user }}"
drupal_db_user: drupal
drupal_db_password: drupal
drupal_db_name: drupal
drupal_db_host: localhost

# Settings for installing a Drupal site if 'drupal_install_site:' is 'true'.
drupal_major_version: 7
drupal_domain: "{{ vagrant_hostname }}"
drupal_site_name: "Drupal"
drupal_install_profile: standard
drupal_enable_modules: [ 'devel' ]
drupal_account_name: admin
drupal_account_pass: admin

# Additional arguments or options to pass to `drush site-install`.
drupal_site_install_extra_args: []

# Cron jobs are added to the vagrant user's crontab. Keys include name
# (required), minute, hour, day, weekday, month, job (required), and state.
drupalvm_cron_jobs: []

# Drupal VM automatically creates a drush alias file in your ~/.drush folder if
# this variable is 'true'.
configure_drush_aliases: true
drush_aliases_host_template: "templates/drupalvm.aliases.drushrc.php.j2"
drush_aliases_host_template_yml: "templates/drupalvm.aliases.yml.j2"
drush_aliases_guest_template: "templates/drupalvm-local.aliases.drushrc.php.j2"
drush_aliases_guest_template_yml: "templates/drupalvm-local.aliases.yml.j2"

# Helper variable to configure the PHP-FPM connection for each Apache
# VirtualHost in the `apache_vhosts` list.
apache_vhost_php_fpm_parameters: |
    <FilesMatch \.php$>
      SetHandler "proxy:fcgi://{{ php_fpm_listen }}"
    </FilesMatch>

# Apache VirtualHosts. Add one for each site you are running inside the VM. For
# multisite deployments, you can point multiple servernames at one documentroot.
# View the geerlingguy.apache Ansible Role README for more options.
apache_vhosts:
  - servername: "{{ drupal_domain }}"
    serveralias: "www.{{ drupal_domain }}"
    documentroot: "{{ drupal_core_path }}"
    extra_parameters: "{{ apache_vhost_php_fpm_parameters }}"

  - servername: "adminer.{{ vagrant_hostname }}"
    documentroot: "{{ adminer_install_dir }}"
    extra_parameters: "{{ apache_vhost_php_fpm_parameters }}"

  - servername: "xhprof.{{ vagrant_hostname }}"
    documentroot: "{{ php_xhprof_html_dir }}"
    extra_parameters: "{{ apache_vhost_php_fpm_parameters }}"

  - servername: "pimpmylog.{{ vagrant_hostname }}"
    documentroot: "{{ pimpmylog_install_dir }}"
    extra_parameters: "{{ apache_vhost_php_fpm_parameters }}"

  - servername: "{{ vagrant_ip }}"
    serveralias: "dashboard.{{ vagrant_hostname }}"
    documentroot: "{{ dashboard_install_dir }}"
    extra_parameters: "{{ apache_vhost_php_fpm_parameters }}"

apache_packages_state: latest
apache_remove_default_vhost: true
apache_mods_enabled:
  - expires.load
  - headers.load
  - ssl.load
  - rewrite.load
  - proxy.load
  - proxy_fcgi.load

# Nginx hosts. Each site will get a server entry using the configuration defined
# here. Set the 'is_php' property for document roots that contain PHP apps like
# Drupal.
nginx_hosts:
  - server_name: "{{ drupal_domain }} www.{{ drupal_domain }}"
    root: "{{ drupal_core_path }}"
    is_php: true

  - server_name: "adminer.{{ vagrant_hostname }}"
    root: "{{ adminer_install_dir }}"
    is_php: true

  - server_name: "xhprof.{{ vagrant_hostname }}"
    root: "{{ php_xhprof_html_dir }}"
    is_php: true

  - server_name: "pimpmylog.{{ vagrant_hostname }}"
    root: "{{ pimpmylog_install_dir }}"
    is_php: true

  - server_name: "{{ vagrant_ip }} dashboard.{{ vagrant_hostname }}"
    root: "{{ dashboard_install_dir }}"
    is_php: true

nginx_remove_default_vhost: true
nginx_ppa_use: true
nginx_vhost_template: "templates/nginx-vhost.conf.j2"

# MySQL databases and users.
mysql_databases:
  - name: "{{ drupal_db_name }}"
    encoding: utf8mb4
    collation: utf8mb4_general_ci

mysql_users:
  - name: "{{ drupal_db_user }}"
    host: "%"
    password: "{{ drupal_db_password }}"
    priv: "{{ drupal_db_name }}.*:ALL"

# PostgreSQL databases and users.
postgresql_databases:
  - name: "{{ drupal_db_name }}"

postgresql_users:
  - name: "{{ drupal_db_user }}"
    password: "{{ drupal_db_password }}"
    db: "{{ drupal_db_name }}"
    priv: "ALL"

# Comment out any extra utilities you don't want to install. If you don't want
# to install *any* extras, set this value to an empty set, e.g. `[]`.
installed_extras:
  - adminer
  # - blackfire
  # - drupalconsole
  - drush
  # - elasticsearch
  # - java
  - mailhog
  # - memcached
  # - newrelic
  # - nodejs
  - pimpmylog
  # - redis
  # - ruby
  # - selenium
  # - solr
  # - tideways
  # - upload-progress
  - varnish
  # - xdebug
  # - xhprof # use `tideways` if you're installing PHP 7+

# Add any extra apt or yum packages you would like installed.
extra_packages:
  - sqlite

# You can configure almost anything else on the server in the rest of this file.
extra_security_enabled: false

firewall_enabled: true
firewall_allowed_tcp_ports:
  - "22"
  - "25"
  - "80"
  - "81"
  - "443"
  - "4444"
  - "8025"
  - "8080"
  - "8443"
  - "8983"
  - "9200"
firewall_log_dropped_packets: false
firewall_disable_firewalld: true
firewall_disable_ufw: true

# PHP Configuration. Currently-supported versions: 7.2, 7.3, 7.4.
# See version-specific notes: http://docs.drupalvm.com/en/latest/configurations/php/
php_version: "7.2"
php_install_recommends: no
php_memory_limit: "-1"
php_display_errors: "On"
php_display_startup_errors: "On"
php_realpath_cache_size: "1024K"
php_sendmail_path: "/opt/mailhog/mhsendmail"
php_opcache_enabled_in_ini: true
php_opcache_memory_consumption: "192"
php_opcache_max_accelerated_files: 4096
php_max_input_vars: "4000"

# Drupal VM defaults to using PHP-FPM with either Apache or Nginx. If you wish
# to instead use Apache + mod_php with an Ubuntu base box, make sure you add
# libapache2-mod-php7.0 to `extra_packages` elsewhere in this config file.
php_enable_php_fpm: true
php_fpm_listen: "<IP_ADDRESS>:9000"

composer_path: /usr/bin/composer
composer_home_path: "/home/{{ drupalvm_user }}/.composer"
composer_home_owner: "{{ drupalvm_user }}"
composer_home_group: "{{ drupalvm_user }}"
composer_global_packages:
  - { name: hirak/prestissimo, release: '^0.3' }

# Run specified scripts before or after VM is provisioned. Use {{ playbook_dir }}
# to reference the provisioning/ folder in Drupal VM or {{ config_dir }} to
# reference the directory where your `config.yml` is.
pre_provision_scripts: []
post_provision_scripts: []
  # - "{{ playbook_dir }}/../examples/scripts/configure-solr.sh"

# MySQL Configuration.
mysql_root_password: root
mysql_slow_query_log_enabled: true
mysql_slow_query_time: 2
mysql_wait_timeout: 300
adminer_install_filename: index.php

# Node.js configuration (if enabled above).
# Valid examples: "6.x", "8.x", "10.x", etc.
nodejs_version: "10.x"
nodejs_npm_global_packages:
  - name: npm
nodejs_install_npm_user: "{{ drupalvm_user }}"
npm_config_prefix: "/home/{{ drupalvm_user }}/.npm-global"

# Ruby Configuration (if enabled above).
ruby_install_gems_user: "{{ drupalvm_user }}"
ruby_install_gems: []

# Varnish Configuration (if enabled above).
varnish_listen_port: "81"
varnish_default_vcl_template_path: templates/drupalvm.vcl.j2
varnish_default_backend_host: "<IP_ADDRESS>"
varnish_default_backend_port: "80"

# Pimp my Log settings.
pimpmylog_install_dir: /usr/share/php/pimpmylog
pimpmylog_grant_all_privs: true

# XDebug configuration. XDebug is disabled by default for better performance.
php_xdebug_default_enable: 0
php_xdebug_coverage_enable: 0
php_xdebug_cli_disable: yes
php_xdebug_remote_enable: 1
php_xdebug_remote_connect_back: 1
php_xdebug_idekey: PHPSTORM
php_xdebug_max_nesting_level: 256
php_xdebug_remote_host: "{{ ansible_default_ipv4.gateway }}"

# Solr Configuration (if enabled above).
solr_version: "5.5.5"
solr_xms: "64M"
solr_xmx: "128M"

# Selenium configuration.
selenium_version: 2.53.0

# Docker configuration.
docker_container_name: drupal-vm
docker_image_name: drupal-vm
docker_image_path: ~/Downloads

# Other configuration.
dashboard_install_dir: /var/www/dashboard
known_hosts_path: ~/.ssh/known_hosts
hostname_configure: true
hostname_fqdn: "{{ vagrant_hostname }}"
ssh_home: "{{ drupal_core_path }}"

drush_launcher_install: no
drush_install_from_source: yes
drush_source_install_version: "8.1.15"

drupal.make.yml
---
api: 2

# Basic Drush Make file for Drupal. Be sure to update the drupal_major_version
# variable inside config.yml if you change the major version in this file.

# Drupal core (major version, e.g. 6.x, 7.x, 8.x).
core: "7.x"

projects:

  # Core.
  drupal:
    version: "7.54"
    # Use this if you need a working git repository of Drupal core instead of
    # the latest stable.
    # type: "core"
    # download:
    #   # Drupal core branch (e.g. "6.x", "7.x", "8.3.x", "8.5.x").
    #   branch: "8.4.x"
    #   working-copy: true

  # Other modules.
  devel: "1.x-dev"

I managed to create the /var/www/drupalvm directory manually by using vagrant ssh and ran vagrant up again. I now have a different error:
TASK [geerlingguy.drupal : Ensure drupal_core_path directory exists.] **********
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: OSError: [Errno 1] Operation not permitted: '/var/www/drupalvm/drupal'
fatal: [drupalvm]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n  File \"/home/vagrant/.ansible/tmp/ansible-tmp-1578486163.4-237125634738484/AnsiballZ_file.py\", line 102, in <module>\n    _ansiballz_main()\n  File \"/home/vagrant/.ansible/tmp/ansible-tmp-1578486163.4-237125634738484/AnsiballZ_file.py\", line 94, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/home/vagrant/.ansible/tmp/ansible-tmp-1578486163.4-237125634738484/AnsiballZ_file.py\", line 40, in invoke_module\n    runpy.run_module(mod_name='ansible.modules.files.file', init_globals=None, run_name='__main__', alter_sys=True)\n  File \"/usr/lib/python2.7/runpy.py\", line 188, in run_module\n    fname, loader, pkg_name)\n  File \"/usr/lib/python2.7/runpy.py\", line 82, in _run_module_code\n    mod_name, mod_fname, mod_loader, pkg_name)\n  File \"/usr/lib/python2.7/runpy.py\", line 72, in _run_code\n    exec code in run_globals\n  File \"/tmp/ansible_file_payload_tufeEK/ansible_file_payload.zip/ansible/modules/files/file.py\", line 940, in <module>\n  File \"/tmp/ansible_file_payload_tufeEK/ansible_file_payload.zip/ansible/modules/files/file.py\", line 926, in main\n  File \"/tmp/ansible_file_payload_tufeEK/ansible_file_payload.zip/ansible/modules/files/file.py\", line 662, in ensure_directory\n  File \"/tmp/ansible_file_payload_tufeEK/ansible_file_payload.zip/ansible/module_utils/basic.py\", line 1342, in set_fs_attributes_if_different\n  File \"/tmp/ansible_file_payload_tufeEK/ansible_file_payload.zip/ansible/module_utils/basic.py\", line 1109, in set_mode_if_different\nOSError: [Errno 1] Operation not permitted: '/var/www/drupalvm/drupal'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

Ah I didn't set the user for the drupalvm folder and the drupal folder as vagrant.
sudo chown -R $USER drupalvm
andsudo chown -R $USER drupal
has fixed the issue.


label:question Notebook Chapter 4

In Chapter 4 notebook block 37, I wonder which method between fit and fit_transform is used by the pipeline for PolynomialFeatures and how? I mean according to the previous blocks it is clear that we need to use fit_transform but I could not see a specific indication of it within the code.
polynomial_regression = Pipeline([
    ('poly_features', PolynomialFeatures(degree=10, include_bias=False)),
    ('lin_reg', LinearRegression()),
])

Hi Anu,
If you look at the pipeline documentation on scikit-learn, https://scikit-learn.org/stable/modules/generated/sklearn.pipeline.Pipeline.html you can see that a pipeline is simply a list of transforms and a final estimator. This means that the final step in the pipeline (linear regression() in this instance) is the estimator and then the preceding steps (polynomial features() in this instance) are all transforms to some input data. The pipeline thus uses fit_transform for the transformers preceding the model object (estimator)
For the example above, if you added the following piece of code:
poly = polynomial_regression.fit(x_train, y_train)
The sequential steps that the code would execute are:

The pipeline will take some data, X containing n features and then transform the data (using fit_transform) using polynomial features() object. This would transform the n features in X to (n+d)!/n!d! number of features where d = the degree of freedom (d=10 here).
the transformed data would then be fitted to the Lin_reg step of the pipeline. You can then use the poly (taking the code above) to predict scores for any new data (validation or test)

The reason for this is the Fit() method will fit all the transforms one after the other and transform the data, then fit the transformed data using the final estimator.
You can go one step further and add another transformer, say a StandardScalar() object after the polynomial transform and this would just add a transformation step. The model will then not only be fitted to poly transformed data but scaled, polynomial transformed data.
If you want to test the way the pipeline works, you can break up the code and test the two outputs on the same validation data. Considering, input training data X_train and y_train:
1. Method1:
polynomial_regression = Pipeline([
('poly_features', PolynomialFeatures(degree=10, include_bias=False)),
('lin_reg', LinearRegression()),
])
Lin_reg = polynomial_regression.fit(X_train, y_train)
2. Method2:
poly= PolynomialFeatures(degree=10, include_bias=False)
poly_features = poly.fit_transform(X_train)
lin_reg = LinearRegression()
lin_reg = lin_reg.fit(poly_features, y_train)
you can then compare the
lin_reg.intercept_
lin_reg.coef_
Or its predictions on some new data.
Note: you will need to stay consistent with a random_state hyperparam for results to match.
I hope that helps.
Regards,
Dan

The pipeline works does the following:
Step 1: poly_features = PolynomialFeatures(degree=10, include_bias=False)),
Step 2: X_transform = poly_features.fit_transform(X_train)
Step 3: y_transform = poly_features.fit_transform(y_train)
Step 4: lin_reg = LinearRegression()
Step 5: lin_reg.fit(X_transform, y_transform)
When you call polynomial_regression.fit(X_train, y_train), the pipeline will go through those steps sequentially. So to answer your question, the pipeline use fit_transform() instead of fit()

Thanks, @Dseal95 @JosephChan101 for sparing some time for answering!


Semgrep - additional platform support

@ambroisie is there anything stopping aarch64-darwin to be added as a supported architecture?
https://github.com/NixOS/nixpkgs/blob/a63021a330d8d33d862a8e29924b42d73037dd37/pkgs/tools/security/semgrep/common.nix#L56

@ck3mp3r if upstream packages it in its releases, sure.
semgrep is a chore to build from source due to their large amount of vendoring and using custom, non-tagged released versions of their dependencies. For now we simply make use of their static binary releases.

@ambroisie says on their release notes page "Semgrep installation through PyPi is now supported on Apple M1 processors!"
What binaries are they using there or is pip doing something on top of it?

$ file artifacts/semgrep-core
artifacts/semgrep-core: Mach-O 64-bit x86_64 executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|WEAK_DEFINES|BINDS_TO_WEAK|PIE>

The *-osx.zip release is still only x86_64 only. You could open an issue upstream asking them to also add their aarch64 releases if you need them.

Just added this upstream request: https://github.com/returntocorp/semgrep/issues/6015

Since the pr is merged this can be closed, feel free to reopen if something is missing.


Add nanobind 2.2.0 and 2.4.0

This also makes a few minor changes to the BUILD file:

This removes the global -undefined dynamic_lookup on macOS and uses
the provided symbols file instead to only ignore symbols that nanobind
knows will come from python
This removes some compiler flags that I don't think nanobind should be
deciding for the project, specifically -Os and -flto, IMO these
should be configured by the user if desired
This uses the current python headers instead of those from python 3.8,
as depending on the user's project they might not want to use 3.8
specifically, this can be changed via a transition if needed, but
otherwise will pull the user's default toolchain
This adds -frtti which is required similar to exceptions

@adzenith ptal and lmk what you think about the BUILD file changes here

Hello @adzenith, modules you maintain (nanobind) have been updated in this PR. Please review the changes.


"Exclude" for whole department

Is your feature request related to a problem? Please describe.
I've got a few legacy Rails applications where we're transitioning from MiniTest to RSpec, consequently I'm using rubocop-rspec and rubocop-minitest. When running rubocop test/, I'm getting warnings from rubocop-rspec:
$ bundle exec rubocop test/
...
test/unit/user_test.rb:50:9: C: [Correctable] RSpec/Rails/AvoidSetupHook: Use before instead of setup.
        setup do ...
        ^^^^^^^^
...

I don't want change setup to before here. I could disable the cop in my rubocop.yml, like so:
inherit_from:
- https://company.com/shared/rubocop.yml
- https://company.com/shared/rubocop-rails.yml
- https://company.com/shared/rubocop-rspec.yml

RSpec/Rails/AvoidSetupHook:
  Exclude:
    - test/**/*.rb

However, RSpec/Rails/AvoidSetupHook is just one example. For various reasons, I found the need to disable whole departments for specific directories (another example is a really old legacy library in dire need of refactoring, but for now I don't want Rubocop to touch it in any way) - and excluding one directory in dozens of cops gets tedious.
Describe the solution you'd like
I'd like to Exclude on whole departments:
RSpec/*:
  Exclude:
    - test/**/*.rb

Style/*:
  Exclude:
    - vendor/legacylib/**/*.rb

I'm not hung-up on the syntax used in the example above (<Department>/*).
Describe alternatives you've considered
The only alternative I've found was to exclude the directories from each cop, one-by-one. In Rubocop 1.17, there are 215 style cops in total (though, not all enabled by default).
Additional context
I want to run Rubocop both as pre-commit hook (on changed files), as well as on our CI, however the amount of noise produced in the examples described above (or the configuration work needed to keep that noise level down) prevents me from doing so.

Also running into this where I need to disable a department for a specific folder.

I'll leave to @jonas054 to comment of the feasibility of this. The code around inclusions and exclusions is already so complex that I'm always hesitant to add more complexity there.

This is supposed to work already with the syntax
RSpec:
  Exclude:
    - test/**/*.rb

Style:
  Exclude:
    - vendor/legacylib/**/*.rb

I just tried it on RuboCop's own source code, disabling the RSpec department for the spec directory tree, removing all other RSpec configuration in .rubocop.yml, and that worked for me.
Please check if this syntax works for you @dmke and @athix, and report any relevant details if it doesn't.

@jonas054: There seems to be some interference with inherited rules:
# .ruboco-rspec.yml
require:
  - rubocop-rspec

RSpec/Rails/AvoidSetupHook:
  Enabled: true

# .rubocop.yml
inherit_from:
  - ./.rubocop-rspec.yml

require:
  - rspec-minitest

AllCops:
  NewCops: enable

RSpec:
  Exclude:
    - test/**/*_test.rb

$ bundle exec rubocop
Inspecting 2 files
.C

Offenses:

test/unit/user_test.rb:4:3: C: [Correctable] RSpec/Rails/AvoidSetupHook: Use before instead of setup.
  setup do ...
  ^^^^^^^^

I've placed a reproduction repo here: https://github.com/dmke/rubocop-9889
(N.B.: the setup/should syntax is part of shoulda-context)

My bad. The department for this cop is RSpec/Rails, not RSpec. So it should be:
RSpec/Rails:
  Exclude:
    - test/**/*_test.rb

That indeed does what I want.
Thank you!


Mark integration_ui flaky

This test fails consistently on mac2 and mac3 with the attached Moto G4
devices but passes consistently on other machines.
Adding a delay of 1s right after driver.connect() in setUpAll() causes
it to pass on the machines in question, which suggests a race condition.
Specifically it looks like connect returns the moment Flutter Driver
identifies that the isolate is up and running, but empirically it looks
like we start running the first test before the UI is actually up. This
triggers a failure wherein we start looking for elements before they're
onstage.
Link to viewport.dart:213 at HEAD:
https://github.com/flutter/flutter/blob/b2b46659262c66ff13abc2b8016a94a47646eaad/packages/flutter/lib/src/widgets/viewport.dart#L213
Stack trace:
FlutterDriver waitFor should find text "present"
  DriverError: Error in Flutter application: Uncaught extension error while executing waitFor: NoSuchMethodError: The getter 'visible' was called on null.


Fail when property value is longer then 255 characters

Related to https://github.com/pinterest/ktlint/issues/739.
Currently such properties are silently ignored. I would like that ec4j throws an error on such property either every time or when such option is enabled.

That behavior used to be required by the editorconfig specs and tests. The fix is ready https://github.com/ec4j/ec4j/pull/111 but is blocked by  https://github.com/editorconfig/editorconfig-core-test/pull/41


Chore: Use community.cratedb.com instead of previous crate.io

About
Fix the last link pointing to crate.io here.

Will only become active with the next release. We will run one soon, including the dark mode feature.


Example listView (without Alloy views)

Hi,
Can we get an example for a implementation in a listView if no views are defined in Alloy? We have the templates structure in the TSS file, so no views.

Always look at the example directory:
https://github.com/AndreaVitale/av.imageview/blob/master/ios/example/app.js#L29

Hi,
Following the example when I try to load the library in Android it says "AvImageview is not defined", in iOS this doesn't happen, the library loads into the template without problems.
I have checked and the library is installed and working for both platforms.


Syntax error in Webhook update Docs

There is a syntax error in the webhook update docs, missing a ,

....
begin
  result = api_instance.update_webhook(app_id, webhook_idwebhook_update_body)
  p result
.....

https://github.com/smooch/smooch-ruby/blob/master/docs/WebhookApi.md#update_webhook

👋  @iamcaleberic,
The wrong generated ruby code in the docs has been fixed in v5.16.1.


feat(utils): auto-refresh builtin palette on ColorScheme

This PR implemented dynamic palette support for https://github.com/ayamir/nvimdots/issues/698#issuecomment-1614699356.
cc @volpan

Then how can I use it in configs such as lualine?

Just use it as usual. The only difference is each call to get_palette would now return a palette configured for the active colorscheme - the same as require("catppuccin.palettes").get_palette().

Actually, if I use this in the autocmd ColorScheme (the same autocmd as util), it has a delay which means this can be applied in the next color-scheme change.

LGTM


add 'novaseq' and 'hiseq' to the InstrumentModelEnum

per @aclum during discussions of instrument migration

Added!


Make a first release

Now that the backup/restore is operational, we can tag a new release: v1.0.0:

[ ] tag a release in git
[ ] add a CHANGELOG.md

There is a release tag no at: https://github.com/rija/ghost-ssg/releases/tag/v1.0.0


Update etcdadm controller references to use AWS org

Backporting #2309 to release-0.9 branch.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve


[Feature] Expose a way to add custom global keybinds from within a plugin

Before Requesting

[X] I found no existing issue matching my feature request

Describe the feature you'd like!
It would be nice if you could add the ability for a plugin to add/register custom keybinds that work globally (even if discord is not in focus), whether via exposing globalShortcut in require("electron") or by adding a wrapper of some kind that allows for adding custom global keybinds.
Anything else?
https://www.electronjs.org/docs/latest/tutorial/keyboard-shortcuts#global-shortcuts

you can use Discord's api for this:
DiscordNative.nativeModules.requireModule("discord_utils").inputEventRegister(
    1337,
    [
         [0, 0xA2],
         [0, 0x42]
    ],
    isDown => console.log(isDown),
    {
        blurred: true,
        focused: true,
        keydown: true,
        keyup: true
    }
)

the first argument is a numeric id that you can later use to unregister the handler again
the second argument is an array of keycodes. I'm not sure what the first number means, you can just pass 0 for it. The second number is the virtual keycode for the specific key. You can find a list of them at https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes. In my example, i use 0xA2 (left control) + 0x42 (B)
the third argument is either the callback or the literal string "UNASSIGNED". It will be fired whenever the key is pressed or released, and gives you the boolean state as argument
the final argument is an options object:

blurred: keybind active when discord not focused
focused: keybind active when discord focused
keydown: fire callback for key down (isDown = true)
keyup: fire callback for key up (isDown = false)

To unregister:
DiscordNative.nativeModules.requireModule("discord_utils").inputEventUnregister(1337)

Thanks! I can confirm this works. Though it isn't an official bd api I'll close this issue for now. If anyone comes up with a better solution in the future they can re-open.

Makes sense, I was under the impression that this was not a huge concern for BD. But I'm happy that it's still being considered an issue.


Implement a full Duktape Debugger Transport

Sparked from discussion in PR #61: https://github.com/nick-thompson/blueprint/pull/61#discussion_r440878576
To implement debugging with Duktape we're using their debug-trans-socket/duk_trans_socket_unix.c implementation with a little hack for preventing SIGPIPE issues. Their implementation seems to refer to itself as not production quality, so the task here is to revisit this debugger transport and implement whatever updates we may need to make it effective and robust

@nick-thompson, this probably doesn't need to be beta. Correct me if I'm wrong.

:+1:


Removed call to drawKnee() so it's not drawn automatically

This task only took about 5-10 minutes total time


fix typo in cli.go

Doesn't compile at the moment. This fixes the issue.

My bad, I had an old version of github.com/google/go-github in my GOPATH.

Thanks. You can download git-hooks from releases directly.

Turns out that


Switch audio source

Summary: Switch Audio source implementation
Type: Feature
Owner: Marcin Wojciechowski
Reviewers: Adam Czynszak, Stuart Pett
Coding Standard Applied: Y
Test Plan: None
Dependencies and Impacts: None
Jira: RIALTO-28

https://jenkins.code.rdkcentral.com/job/github-triggered/25386/ started

https://jenkins.code.rdkcentral.com/job/build-component/61515/ started.

https://jenkins.cmf.code.rdkcentral.com/job/github-triggered/17811/ started

https://jenkins.cmf.code.rdkcentral.com/job/build-component-platform/29952/ started.

build-rpi-mc-wpe-dunfell Console Log uploaded to Gist URL: https://gist.github.com/01246d28141546350b082a84a0f75b6e

build-rpi-hybrid-wpe-dunfell Console Log uploaded to Gist URL: https://gist.github.com/b8dd993465db47befe83e123b7b1d06d

https://jenkins.code.rdkcentral.com/job/build-component/61517/ started.

https://jenkins.cmf.code.rdkcentral.com/job/github-triggered/17815/ started

https://jenkins.cmf.code.rdkcentral.com/job/build-component-platform/29954/ started.

build-rpi-mc-wpe-dunfell Console Log uploaded to Gist URL: https://gist.github.com/55a70862bef9cff734391c46246baaf9

build-brcm-refboard Console Log uploaded to Gist URL: https://gist.github.com/6ba20bb8f7afe9ffe6f72fd8e14c3fd8

build-rpi-hybrid-wpe-dunfell Console Log uploaded to Gist URL: https://gist.github.com/8ca6f5c8a72ab42908a5dd3941fed049

build-aml-reftv Console Log uploaded to Gist URL: https://gist.github.com/5fd987f509e8235398cf6ec057b82d45

https://jenkins.code.rdkcentral.com/job/github-triggered/25398/ started

https://jenkins.code.rdkcentral.com/job/build-component/61527/ started.

https://jenkins.cmf.code.rdkcentral.com/job/github-triggered/17823/ started

build-rpi-mc-wpe-dunfell Console Log uploaded to Gist URL: https://gist.github.com/12a285015f0db370a4306d6478aa4ec7

build-aml-reftv Console Log uploaded to Gist URL: https://gist.github.com/fc846c1655136375a6369a1f4c9f20b6

build-brcm-refboard Console Log uploaded to Gist URL: https://gist.github.com/29e9bda6fc786d8ede845edd541e9ec3

build-rpi-hybrid-wpe-dunfell Console Log uploaded to Gist URL: https://gist.github.com/5527619708bee48d389f3c750a3d4e01

build-aml-refboard Console Log uploaded to Gist URL: https://gist.github.com/1d3474c1d9bd2acfff3d69759c8ba569

Job started https://jenkins.cmf.code.rdkcentral.com/job/manual-verification/845/

https://jenkins.cmf.code.rdkcentral.com/job/build-component-platform/30013/ started.

Job started https://jenkins.cmf.code.rdkcentral.com/job/manual-verification/846/

https://jenkins.cmf.code.rdkcentral.com/job/build-component-platform/30022/ started.

Job started https://jenkins.code.rdkcentral.com/job/manual-verification/2930/

https://jenkins.code.rdkcentral.com/job/build-component/61564/ started.

Smoke tests for ['build-rpi-hybrid-wpe-dunfell'/'build-rpi-mc-wpe-dunfell'] added.
https://jenkins.cmf.code.rdkcentral.com/job/test-components-flow/133204/

Smoke tests for ['build-rpi-hybrid-refapp2'] added.
https://jenkins.cmf.code.rdkcentral.com/job/test-components-flow/133203/

Smoke tests for ['build-aml-refboard'] added.
https://jenkins.cmf.code.rdkcentral.com/job/test-components-flow/133224/

Smoke tests for ['build-aml-reftv'] added.
https://jenkins.cmf.code.rdkcentral.com/job/test-components-flow/133225/

Smoke tests for ['build-brcm-refboard'] added.
https://jenkins.cmf.code.rdkcentral.com/job/test-components-flow/133226/

Smoke tests for ['build-brcm-va'] added.
https://jenkins.cmf.code.rdkcentral.com/job/test-components-flow/133227/


Follow-up to Formatting Question

Is there a way to change font color of the sub/sub list items to differentiate them from their sub headings?
Thanks again!
Scott

Please look at the line 137 http://codepen.io/riogrande/pen/MKXweV - you change the color of "a" . Please ask if you have more questions

Okay, thanks again!


Error when installing requirements.

Not sure why this wont work. I also couldn't get the collar to work. A simple instruction video would be helpful.
`Requirement already satisfied: requests in /Users/dylanwhite/miniconda3/lib/python3.10/site-packages (from -r requirements.txt (line 1)) (2.28.2)
Collecting langchain
Using cached langchain-0.0.153-py3-none-any.whl (696 kB)
Collecting streamlit
Using cached streamlit-1.22.0-py2.py3-none-any.whl (8.9 MB)
Collecting streamlit-chat-media
Using cached streamlit_chat_media-0.0.4-py3-none-any.whl (2.7 MB)
Requirement already satisfied: numpy in /Users/dylanwhite/miniconda3/lib/python3.10/site-packages (from -r requirements.txt (line 5)) (1.24.2)
Collecting retry
Using cached retry-0.9.2-py2.py3-none-any.whl (8.0 kB)
Collecting revChatGPT
Using cached revChatGPT-5.0.0-py3-none-any.whl (32 kB)
Collecting duckduckgo-search
Using cached duckduckgo_search-2.9.1-py3-none-any.whl (30 kB)
Requirement already satisfied: transformers in /Users/dylanwhite/miniconda3/lib/python3.10/site-packages (from -r requirements.txt (line 9)) (4.27.4)
Collecting tabulate
Using cached tabulate-0.9.0-py3-none-any.whl (35 kB)
Collecting wikipedia
Using cached wikipedia-1.4.0.tar.gz (27 kB)
Preparing metadata (setup.py) ... done
Collecting faiss-gpu
Using cached faiss-gpu-1.7.1.post2.tar.gz (40 kB)
Preparing metadata (setup.py) ... done
WARNING: Generating metadata for package faiss-gpu produced metadata for project name faiss-cpu. Fix your #egg=faiss-gpu fragments.
Discarding https://files.pythonhosted.org/packages/17/76/47d0cc8161f4bf988583a2839bb1e56baf09d6b80cfa472b9eba4d5f543b/faiss-gpu-1.7.1.post2.tar.gz (from https://pypi.org/simple/faiss-gpu/): Requested faiss-cpu from https://files.pythonhosted.org/packages/17/76/47d0cc8161f4bf988583a2839bb1e56baf09d6b80cfa472b9eba4d5f543b/faiss-gpu-1.7.1.post2.tar.gz (from -r requirements.txt (line 12)) has inconsistent name: expected 'faiss-gpu', but metadata has 'faiss-cpu'
Using cached faiss-gpu-1.7.1.post1.tar.gz (41 kB)
Preparing metadata (setup.py) ... done
WARNING: Generating metadata for package faiss-gpu produced metadata for project name faiss-cpu. Fix your #egg=faiss-gpu fragments.
Discarding https://files.pythonhosted.org/packages/39/8d/b62bc92c8dd4b2a99d4a06b8804280f6445748b6d698eabb037e111080c7/faiss-gpu-1.7.1.post1.tar.gz (from https://pypi.org/simple/faiss-gpu/): Requested faiss-cpu from https://files.pythonhosted.org/packages/39/8d/b62bc92c8dd4b2a99d4a06b8804280f6445748b6d698eabb037e111080c7/faiss-gpu-1.7.1.post1.tar.gz (from -r requirements.txt (line 12)) has inconsistent name: expected 'faiss-gpu', but metadata has 'faiss-cpu'
Using cached faiss-gpu-1.7.1.tar.gz (40 kB)
Preparing metadata (setup.py) ... done
WARNING: Generating metadata for package faiss-gpu produced metadata for project name faiss-cpu. Fix your #egg=faiss-gpu fragments.
Discarding https://files.pythonhosted.org/packages/51/85/7a7490dbecaea9272953b88e236a45fe8c47571a069bc28b352f0b224ea3/faiss-gpu-1.7.1.tar.gz (from https://pypi.org/simple/faiss-gpu/): Requested faiss-cpu from https://files.pythonhosted.org/packages/51/85/7a7490dbecaea9272953b88e236a45fe8c47571a069bc28b352f0b224ea3/faiss-gpu-1.7.1.tar.gz (from -r requirements.txt (line 12)) has inconsistent name: expected 'faiss-gpu', but metadata has 'faiss-cpu'
Using cached faiss-gpu-1.7.0.tar.gz (34 kB)
Preparing metadata (setup.py) ... done
WARNING: Generating metadata for package faiss-gpu produced metadata for project name faiss-cpu. Fix your #egg=faiss-gpu fragments.
Discarding https://files.pythonhosted.org/packages/63/15/289ecf5d23f209c4c6f2f5f4db1d2b4a2be22d1fc49619354363e9367c19/faiss-gpu-1.7.0.tar.gz (from https://pypi.org/simple/faiss-gpu/): Requested faiss-cpu from https://files.pythonhosted.org/packages/63/15/289ecf5d23f209c4c6f2f5f4db1d2b4a2be22d1fc49619354363e9367c19/faiss-gpu-1.7.0.tar.gz (from -r requirements.txt (line 12)) has inconsistent name: expected 'faiss-gpu', but metadata has 'faiss-cpu'
Using cached faiss-gpu-1.6.5.tar.gz (28 kB)
Preparing metadata (setup.py) ... done
WARNING: Generating metadata for package faiss-gpu produced metadata for project name faiss-cpu. Fix your #egg=faiss-gpu fragments.
Discarding https://files.pythonhosted.org/packages/9c/27/3477c856ea3d678619c33ae72f89ede4fbe08e9c5ba3b89a5feb3d9938b0/faiss-gpu-1.6.5.tar.gz (from https://pypi.org/simple/faiss-gpu/): Requested faiss-cpu from https://files.pythonhosted.org/packages/9c/27/3477c856ea3d678619c33ae72f89ede4fbe08e9c5ba3b89a5feb3d9938b0/faiss-gpu-1.6.5.tar.gz (from -r requirements.txt (line 12)) has inconsistent name: expected 'faiss-gpu', but metadata has 'faiss-cpu'
Using cached faiss-gpu-1.6.4.post2.tar.gz (25 kB)
Preparing metadata (setup.py) ... done
WARNING: Generating metadata for package faiss-gpu produced metadata for project name faiss-cpu. Fix your #egg=faiss-gpu fragments.
Discarding https://files.pythonhosted.org/packages/7d/00/b3aaad408a44e4f5d87ebfcd75d0b14eeaed9fe9bc7a9f5e185ff1d503d6/faiss-gpu-1.6.4.post2.tar.gz (from https://pypi.org/simple/faiss-gpu/): Requested faiss-cpu from https://files.pythonhosted.org/packages/7d/00/b3aaad408a44e4f5d87ebfcd75d0b14eeaed9fe9bc7a9f5e185ff1d503d6/faiss-gpu-1.6.4.post2.tar.gz (from -r requirements.txt (line 12)) has inconsistent name: expected 'faiss-gpu', but metadata has 'faiss-cpu'
Using cached faiss-gpu-1.6.4.tar.gz (3.4 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [7 lines of output]
running egg_info
creating /private/var/folders/s_/8x1nm6wx53z2m0478zhgrc6r0000gn/T/pip-pip-egg-info-1k89xptk/faiss_cpu.egg-info
writing /private/var/folders/s_/8x1nm6wx53z2m0478zhgrc6r0000gn/T/pip-pip-egg-info-1k89xptk/faiss_cpu.egg-info/PKG-INFO
writing dependency_links to /private/var/folders/s_/8x1nm6wx53z2m0478zhgrc6r0000gn/T/pip-pip-egg-info-1k89xptk/faiss_cpu.egg-info/dependency_links.txt
writing top-level names to /private/var/folders/s_/8x1nm6wx53z2m0478zhgrc6r0000gn/T/pip-pip-egg-info-1k89xptk/faiss_cpu.egg-info/top_level.txt
writing manifest file '/private/var/folders/s_/8x1nm6wx53z2m0478zhgrc6r0000gn/T/pip-pip-egg-info-1k89xptk/faiss_cpu.egg-info/SOURCES.txt'
error: package directory '/private/var/folders/s_/8x1nm6wx53z2m0478zhgrc6r0000gn/T/pip-install-l74xplyc/faiss-gpu_cb43f56646c24c099baca5c7609e68d1/faiss/faiss/python' does not exist
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.`

Thank you guys so much for all the effort and work you put in!!! Cant put it in words!


your apk link is dead

I would like to mention that your APK link is dead. I am trying to see the demo on the pull refresh thing.
thank you so much.
Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
   > Could not find com.google.android:support-v4:r18.
     Searched in the following locations:
         https://jcenter.bintray.com/com/google/android/support-v4/r18/support-v4-r18.pom
         https://jcenter.bintray.com/com/google/android/support-v4/r18/support-v4-r18.jar
         file:/Users/hesk/Library/Android/sdk/extras/android/m2repository/com/google/android/support-v4/r18/support-v4-r18.pom
         file:/Users/hesk/Library/Android/sdk/extras/android/m2repository/com/google/android/support-v4/r18/support-v4-r18.jar
         file:/Users/hesk/Library/Android/sdk/extras/google/m2repository/com/google/android/support-v4/r18/support-v4-r18.pom
         file:/Users/hesk/Library/Android/sdk/extras/google/m2repository/com/google/android/support-v4/r18/support-v4-r18.jar
     Required by:
         UltraPullRefresh:app:unspecified > in.srain.cube:cube-sdk:1.0.22

Qqqq


Remove or explain the dependency from Microsoft.EntityFrameworkCore.Relational

I mean it should be possible to use / test OdataToEntity with InMemory database.
May be it will be more clear for user to separate: OdataToEntity.EfCore and OdtatToEntity.EfCore.Relational

Microsoft.EntityFrameworkCore.Relational  used for execute stored procedures.
Project OdataToEntity.Test uses InMemory database provider for test.

What about splitting to two, OdataToEntity.EfCore and OdtatToEntity.EfCore.Relational ? I do not have strong arguments, just follow the EfCore logic: if EFCore authors split them then user libs should follow main road.

More abstractions to the god of abstractions. This will lead to the complicating of design and will not give advantages. Ef Core support Sql and NoSQL database.


Use xdg-open in Linux for the o alias, if it's available.

Hi @gokceneraslan, it's been a long time but I managed to find a clean and simple solution, look at the web-search plugin to safely open across different platforms.
What do you say if I put that into a lib file so we can use it across the project?

Looks very similar to my patch :) Go go go...

Hi @gokceneraslan, I finally implemented my standard open command. Now the o alias is a -e open_command, where open_command is the implemented function.
Please test if it works correctly since I don't have fasd to check.
Cheers!


[TextServer] Do not draw non-visual characters.

Adds some checks to skip drawing non-visual glyphs and glyphs with zero size texture.
See https://github.com/godotengine/godot/pull/85811#pullrequestreview-1768611978

Thanks!


Some corrections

Some observations to improve countries.json:

alpha2: "IC" and alpha2: "EA" are not countries. Canary Islands, Ceuta and Melilla are Spain's regions.
alpha2: "GB" and alpha2: "UK" are the same country. The correct ISO Code is GB.
alpha2: "EU" isn't a country (it's a politico-economic union of 28 countries).

These are all marked with a status of reserved.
I think I'll leave them in for now. What actually constitutes a country is a pretty difficult question. See Åland for a great example :)


Allow nil references with required_with when the target is also empty

Fixes Or Enhances # .
Make sure that you've checked the boxes below before you submit PR:

[X] Tests exist or have been written that cover this particular change.

Change Details:
Currently if you have a field like this with a string ref:
FieldB     bool              `validate:"omitempty" json:"field_b"`
FieldRefB  *string           `validate:"required_with=FieldB" json:"field_refb"`

If FieldB is set to false and FieldRefB is nil validation will fail. This fixes that very specific instance.
@go-playground/admins

Coverage remained the same at 100.0% when pulling 5379be8e94df4e11778d58163f2614906232f83c on timt-unity3d:v9 into 884d31b8cad6a1ec877f2400d555924cea03bbea on go-playground:v9.


Royal Mafia Territory

The Royal Mafia territory extends down to the Del Perro Freeway and East to Lower Power St (construction site). Additionally, they are no longer "Italian-based" and use a hierarchy structure based on chess pieces.

Updated in b909e34.


Added Build 19564

Added Build 19564

It was added in my PR (https://github.com/MicrosoftDocs/windows-insider/pull/274) already.

No worries  I'll close this one 😀


I need of a recommendation about Obsidian Git along Quartz

Is your feature request related to a problem? Please describe.

Obsidian Git is a widely used plugin in the Obsidian community. It helps manage a git repository inside the vault.
When using Quartz, the vault is embedded within the content folder, at the first level
As a result the git repository managed by Obsidian Git resides now one level under the Quartz directory (quartz > content > .git)
Quartz also has its own git repository, at the first level of the Quartz directory. It is needed by Quartz when compiling.
However, having two different git repos in nested directories is not recommended.

Describe the solution you'd like
Actually, I am looking for a recommendation:

because I would like to keep the benefits of Obsidian Git, which is great in so many respects (vault versioning and backup)
and at the same time use Quartz, which I find outstanding.

Describe alternatives you've considered
I favored Quartz over Obsidian and kept only the Quartz git repo. But now I cannot use Obsidian Git any longer.

@asitemade4u You could use git submodules: https://www.atlassian.com/git/tutorials/git-submodule

Closing as answered. If you'd like more help, you can join the Community Discord

Hello, I would like to bump this and ask if there is a guide for using both quartz and obsidian-git at the same time?
I tried looking at the quartz documentation, but i didn't see anything related:

Hello, I would like to bump this and ask if there is a guide for using both quartz and obsidian-git at the same time?
I tried looking at the quartz documentation, but i didn't see anything related:
1.

Assuming you already have two separate repositories:

One for Quartz
One for obsidian-git

Clone your Quartz repository.
Delete your content folder.
Add the Obsidian repository as submodule like so:

git submodule add <URL to your obsidian-git repository> content

This will add your obsidian-git repository as a submodule into the content folder. As well as a .gitmodules file. You can change the content .gitmodules file to specify a branch, in case your obsidian-git uses a different branch than the default branch.
To get the latest changes from your obsidian-git repository, run:
git submodule update --init --recursive --remote

Don't forget to push to your Quartz repository afterwards.

Thank you very much for the tutorial for dummies!


Add option about  objectStorageForcePathStyle

Summary
Add option about  objectStorageForcePathStyle in order to have a choice to control the aws-sdk to use or not use s3ForcePathStyle connect APIs.
Fix #7118

Thank you!
This PR was merged at https://github.com/syuilo/misskey/pull/7122.

Thanks


[Easy Dictionary] OCR translating not working

Extension
https://www.raycast.com/isfeng/easydict
Description
OCR translation function can extract the text but will not translate the extracted text sometimes. See below,

Steps To Reproduce

Install eazy dict
search OCR
select some text and translate Eazy

Current Behaviour
No response
Expected Behaviour
No response

Hi, it's possible that the language recognition has failed, causing it to get stuck. The extension uses some online language recognition services, such as Bing, Baidu, etc., and you need to turn on the corresponding translation service option before it will be enabled. It is recommended to enable at least two or more language recognition services.
I will update a version later to optimize the language recognition function.

It's going to take a little while before I'm free to deal with this, sorry.

After checked serval translation service options, I could use it.

A new version v2.9.1 has been released.
💎 Optimization

Support customized OpenAI API URL, thanks to liyaodong for the PR.
Optimized the language recognition function, added Baidu language recognition as default option.

@raycastbot close this issue


Update aws reference config to be more comprehensive

I unintentionally already pushed the changes here via our internal repo. However, I am addressing John's comments in this file as well, so I'll also add David's feedback to the mix.


⚠ Bofrost.be has degraded performance

In 668d4e0, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 2082 ms

Resolved: Bofrost.be performance has improved in 8d2b29f.


Footprints not found pcbnew import

Made a simple start of a clock schematic with Skidl and generated a netlist without errors.
When I try to import the netlist into pcbnew (kicad 5.1.0) it gives errors saying it cannot find the footprints.

Error: Cannot add new symbol R1 due to missing footprint Resistor_SMD.pretty:R_0805_2012Metric.
Error: Cannot add new symbol Y1 due to missing footprint Crystal.pretty:Crystal_HC18-U_Vertical.
Error: Cannot add new symbol U1 due to missing footprint Package_SO.pretty:SOIC-14_3.9x8.7mm_P1.27mm.
Error: Cannot add new symbol R54 due to missing footprint Resistor_SMD.pretty:R_0805_2012Metric.
Error: Cannot add new symbol R2 due to missing footprint Resistor_SMD.pretty:R_0805_2012Metric.
Error: R1 footprint “R_0805_2012Metric” not found in any libraries in the footprint library table.
Error: Cannot add new symbol C1 due to missing footprint Capacitor_SMD.pretty:C_0805_2012Metric.
Error: C1 footprint “C_0805_2012Metric” not found in any libraries in the footprint library table.
Error: Y1 footprint “Crystal_HC18-U_Vertical” not found in any libraries in the footprint library table.
Error: U1 footprint “SOIC-14_3.9x8.7mm_P1.27mm” not found in any libraries in the footprint library table.
Error: R54 footprint “R_0805_2012Metric” not found in any libraries in the footprint library table.
Error: R2 footprint “R_0805_2012Metric” not found in any libraries in the footprint library table.

To test this I dropped a 7400 onto a schematic and exported its netlist. The footprint name is NOT (1) the same as I used in my skidl code, but pcbnew-import does not give any errors...?
So what am I doing wrong?
Here's the code:
from skidl import *

# libraries
logic74 = '74xx'
device = 'device'

# footprints
fpR = 'Resistor_SMD.pretty:R_0805_2012Metric'
fpC = 'Capacitor_SMD.pretty:C_0805_2012Metric'
fpXTAL = 'Crystal.pretty:Crystal_HC18-U_Vertical'
fpU14 = 'Package_SO.pretty:SOIC-14_3.9x8.7mm_P1.27mm'

# global nets
vcc = Net('VCC')
gnd = Net('GND')

xtal = Part(device, 'crystal', footprint=fpXTAL)
r1 = Part(device, 'R', value='470R', footprint=fpR)
r2 = Part(device, 'R', value='470R', footprint=fpR)
c1 = Part(device, 'C', value='100pF', footprint=fpC)
u1 = Part(logic74, '74LS00', footprint=fpU14)

u1[7] += gnd
u1[14] += vcc
u1[12] += vcc
u1[9] += vcc

xtal[1] += r1[1]
xtal[1] += u1[13]

r1[2] += c1[1]
r1[2] += u1[11]

r2[2] += c1[2]
r2[2] += u1[10]

xtal[2] += r2[1]
xtal[2] += u1[4]
xtal[2] += u1[5]
xtal[2] += u1[8]

clk14 = Net('Clk14')
r54 = Part(device, 'R', value='4K7', footprint=fpR)
r54.ref = 'R54'

r54[1] += vcc
r54[2] += clk14
r54[2] += u1[6]
#--------------------------------
generate_netlist()

Here is the example of the generated netlist 7400 part:
(comp (ref U1)
      (value 74LS00)
      (footprint Package_SO.pretty:SOIC-14_3.9x8.7mm_P1.27mm)
      (fields
        (field (name keywords) "TTL nand 2-input buffer")
        (field (name description) "quad 2-input NAND buffer"))
      (libsource (lib 74xx) (part 74LS00))
      (sheetpath (names /top/17017331776065520654) (tstamps /top/17017331776065520654)))

And here is the 7400 part generated from the schematic
(comp (ref U1)
      (value 74HC00)
      (footprint Package_SO:SOIC-14_3.9x8.7mm_P1.27mm)
      (datasheet http://www.ti.com/lit/gpn/sn74hc00)
      (libsource (lib 74xx) (part 74HC00) (description "quad 2-input NAND gate"))
      (sheetpath (names /) (tstamps /))
      (tstamp 5CCF1A6A)))

I assume it should be possible to import the skidl generated netlist into pcbnew, yes?

After typing in this whole story it occurred to me that the schematic netlist did not use the .pretty extension. I typed it in because of the skidl 'getting started' examples, but remove that and it works...

What version of KiCad are you using? That may have something to do with whether it likes the ".pretty" extension or not.

kicad 5.1.0

Confirmed. At least on version 5.1.8 the footprint string should not contain the .pretty extension.

Error: Cannot add R2 (footprint 'Resistor_SMD.pretty:R_0805_2012Metric' not found). Having the same error on KiCad version 6.0.8. Please, what can I do?

Please provide the code that caused this error in addition to the version of SKiDL, python, and your OS. Thanks!

Thanks, I fixed it by removing .pretty in the footprint argument. I think it is an issue with kiCad version 6 using a new way of defining library footprints. Thanks once again. Is there a gitter or community platform for skidl. I would like to know how best to transpose my netlist in spice .sp or json .json to a kiCad schematic using skidl.


Add Slovene support 🇸🇮

Done:

Added slovenian support for IntegerConverter and BankingMoneyConverter
Added tests
Updated README.md

Codecov Report

Merging #134 (fd60290) into master (ccbf140) will decrease coverage by 0.13%.
Report is 1 commits behind head on master.
The diff coverage is 96.55%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
@@             Coverage Diff              @@
##             master     #134      +/-   ##
============================================
- Coverage     99.19%   99.06%   -0.13%
- Complexity      425      449      +24
============================================
  Files            67       70       +3
  Lines          1736     1822      +86
  Branches         50       54       +4
============================================
+ Hits           1722     1805      +83
- Misses            7        9       +2
- Partials          7        8       +1

Files Changed
Coverage Δ

...llegro/finance/tradukisto/LongValueConverters.java
100.00% <ø> (ø)

...uages/slovene/SloveneThousandToWordsConverter.java
87.50% <87.50%> (ø)

...isto/internal/languages/slovene/SloveneValues.java
97.67% <97.67%> (ø)

...pl/allegro/finance/tradukisto/MoneyConverters.java
100.00% <100.00%> (ø)

...pl/allegro/finance/tradukisto/ValueConverters.java
100.00% <100.00%> (ø)

...allegro/finance/tradukisto/internal/Container.java
100.00% <100.00%> (ø)

...dukisto/internal/languages/SlovenePluralForms.java
100.00% <100.00%> (ø)


774 - Remove Additional Metadata Construct

Issue Number
https://github.com/AlexsLemonade/scpca-portal/issues/774
Purpose/Implementation Notes

This PR removes the Sample model's additional_metadata attribute, replacing it with a metadata attribute that stores the input sample metadata file as a JSONField. An additional_metadata property method is added to derive the additional_metadata value previously stored in the database, which is necessary for presentation on the front end.
The Sample::get_metadata logic was also updated to conform to this new construct, inverting the approach from one that included a select group of predetermined attributes and excluded the rest, to one that excludes a predetermined group of metadata attributes and includes the rest (and described in more detail in the PR's connected issue).
Types of changes
What types of changes does your code introduce?

Refactor (addresses code organization and design mentioned in corresponding issue)

Functional tests
N/A
Checklist

[ ] Lint and unit tests pass locally with my changes

Screenshots
N/A

This PR was also meant to address the Project model's additional_metadata_keys attribute, but the approach has to be discussed further.
Unlike with additional_metadata on the Sample model, which is populated with fields from samples_metadata.csv that have no corresponding model attribute, the additional_metadata_keys attribute on the Project model is made up of an aggregation of Sample metadata keys, and does not originate from the projects_metadata.csv file.
In fact, there are even a field or two on the projects_metadata.csv file that we do not save to the db, and essentially throw away. We have to clarify our intended approach on whether or not we want to allow the science team to send through arbitrary fields for us to pass throw to our output file in the Project model like we want in the Sample model.


"Window Font" does not exist in Amos Pro, I need to use Amos The Creator to support it.


Upgrade syn to 2.0

Syn 2.0 has been released, and it'd be lovely if this crate were updated for it.
I think https://github.com/TedDriggs/darling/pull/226 needs to be merged before this crate can be updated though.

I tried it and found errors in darling.
I think TedDriggs/darling#238 needs to be fixed.


Add support for Basler Ace cameras

At moment, LV Pro does not detect Basler Ace cameras, only Darts. it would be nice to add this, when we can.  (it may be as simple as just allowing them?  I don't see anything obvious in the code preventing this.

Testing acA1920-155um with the ace branch.  It appears to work!
Testing acA4024-29um.  (12MP camera) with the Ace branch.
Get this error
lumaviewpro.log
[INFO] 02/27/2024 19:27:01.008 - pyloncamera.py - [CAM Class ] PylonCamera.init()
[ERROR] 02/27/2024 19:27:01.504 - pyloncamera.py - [CAM Class ] PylonCamera.connect() failed
Traceback (most recent call last):
File "C:\Users\Eric Weiner\Downloads\LumaViewPro-feature-support-cam-acA1920\pyloncamera.py", line 81, in connect
self._center()
File "C:\Users\Eric Weiner\Downloads\LumaViewPro-feature-support-cam-acA1920\pyloncamera.py", line 61, in _center
self.active.BslCenterX.Execute()
File "C:\Users\Eric Weiner\AppData\Roaming\Python\Python310\site-packages\pypylon\pylon.py", line 4287, in getattr
return self.GetNodeMap().GetNode(attribute)
File "C:\Users\Eric Weiner\AppData\Roaming\Python\Python310\site-packages\pypylon\genicam.py", line 1357, in GetNode
return _genicam.INodeMap_GetNode(self, Name)
_genicam.LogicalErrorException: Node not existing (file 'genicam_wrap.cpp', line 16130)
I get the same error when I try it back in the "main" branch
[INFO] 02/27/2024 19:33:50.292 - pyloncamera.py - [CAM Class ] PylonCamera.init()
[ERROR] 02/27/2024 19:33:50.803 - pyloncamera.py - [CAM Class ] PylonCamera.connect() failed
Traceback (most recent call last):
File "C:\Users\Eric Weiner\Downloads\LumaViewPro-dev-jcorey-2024-02-22\LumaViewPro-dev-jcorey\pyloncamera.py", line 64, in connect
self.active.BslCenterX.Execute()
File "C:\Users\Eric Weiner\AppData\Roaming\Python\Python310\site-packages\pypylon\pylon.py", line 4287, in getattr
return self.GetNodeMap().GetNode(attribute)
File "C:\Users\Eric Weiner\AppData\Roaming\Python\Python310\site-packages\pypylon\genicam.py", line 1357, in GetNode
return _genicam.INodeMap_GetNode(self, Name)
_genicam.LogicalErrorException: Node not existing (file 'genicam_wrap.cpp', line 16130)

Latest update now solves acA4024-29um. issue, it provides an image now.  (I did not verify the direction yet as it wasn't installed in an optics module. )


fix(data-loader): apply @types/yargs bugfix (DefinitelyTyped/DefinitelyTyped#52624)

Why

yargs/yargs#1928 is fixed by DefinitelyTyped/DefinitelyTyped#52624
What

[x] set demandOption: true parameter to option()

How to test

This PR doesn't affect on runtime.
$ yarn build
$ yarn lint
$ yarn test

Checklist

[x] Read CONTRIBUTING.md
[x] Updated documentation if it is required.
[x] Added tests if it is required.
[x] Passed yarn lint and yarn test on the root directory.

LGTM!
Thank you for your work!


Add a .gitattributes to normalise line endings

... and standardise on CRLF :trollface:

.gitattributes is a great idea. CRLF, not so much :)

our repos needs more .editorconfig too, will take a crack at that tomorrow.


node:crypto performance for working with JWT

Hello! First of all I wanted to say thank you for the awesome job you do here, you really make the Node.js better!
I noticed, that Node.js has very poor performance in such a common operation as working with JWT in comparison with other languages:
https://medium.com/deno-the-complete-reference/node-js-vs-python-whos-faster-for-jwt-sign-verify-efd249eaba39
https://medium.com/deno-the-complete-reference/node-js-vs-java-how-faster-is-bytecode-compared-to-interpreted-code-for-jwt-sign-verify-910caa55a7f2
The same situations in comparison with other JS runtimes:
https://medium.com/deno-the-complete-reference/node-js-vs-deno-whos-faster-for-jwt-sign-verify-1015169d8c02
https://medium.com/deno-the-complete-reference/node-js-vs-bun-whos-faster-for-jwt-sign-verify-78cd47dd06ca
So I guess if other JS runtimes are much faster in this, I guess it is possible to make big improvements for node:crypto a lot as well, because for example usage of Rust binding with https://github.com/napi-rs/node-rs/tree/main/packages%2Fjsonwebtoken makes it 3+ times faster, so it definitely something wrong with node:crypto here.
I'm sorry I can't introduce some PR to help, because I'm not a C/C++ guy 😔.
I hope you will be able to take your attention to the issue, as working with JWT is a very common task, and it would be great if it worked better.

Hi,
We won't take libraries into consideration (example jsonwebtoken), but for node:crypto, we have identified that OpenSSL 3.0.x is slower than OpenSSL 1.1.1 (used by Node.js <= 16.x). See: https://github.com/nodejs/performance/issues/72

Wow, really big performance drop, looks like it might be the cause of the issue. I'll try OpenSSL 1.1.1 for an experiment. Thank you!

Closing in favor of #72


srcset: vw + vh combined descriptors

Currently srcset only supports one single descriptor (e.g. vw or vh), but not multiple ones (e.g. vw and vh).
However, the image in question is cropped and available for different widths and heights - and the actual dimensions depend on a container with unpredictable dimensions (using mediaquries as in sizes).
A library like lazysizes would fit perfectly here as it can calculate the exact dimensions during the layout changes without prior knowledge.
As already JavaScript is used, it would be nice to also take the width + height combinations into acount.
A traditional srcset would look like this:
200x100.jpg 200vw, 300x100.jpg 300vw, 400x100.jpg 400vw
A srcset analog (e.g. data-srcset-vh or data-srcset-multi) that can take also the height into account could look like this:
200x100 jpg 200vw 100vh, 200x200 jpg 200vw 200vh, 300x100.jpg 300vw 100vh, 300x200.jpg 300vw 200vh, 400x100.jpg 400vw 100vh. 400x200.jpg 400vw 200vh
Now a suitable image can be picked for image elements that have 100px height and 200px height - or between/below.
Can lazysizes also handle these kinds of calculations?

I think you don't really understand the meaning of the images inside of one srcset. It is also w and h descriptors not vh/vw.  They don't have to do anything with the viewport. Also you can already combine w and h descriptors. Only h descriptors aren't supported natively.
A plugin that chooses the best image based on width and height is the following one:
https://github.com/aFarkas/lazysizes/tree/gh-pages/plugins/artdirect

parent-fit plugin can be configured to do this: https://github.com/aFarkas/lazysizes/issues/931#issuecomment-962681603


[MRG] Notebook on bayesian optimisation

My attempt at #101

LGTM

Thanks! Merging then :)
(We can still improve things later)

jupp.com


Text Field Colors Incorrect

What MDC-Web Version are you using?
Online text field example: https://material-components-web.appspot.com/textfield.html
What browser(s) is this bug affecting?
All
What are the steps to reproduce the bug?

Review link: https://material-components-web.appspot.com/textfield.html
Click on the text field example at the top
Observe the bottom line, label text, and cursor.
The colors are not matching the material guidelines for label text, and cursor.

What is the expected result?
https://storage.googleapis.com/material-design/publish/material_v_12/assets/0B8wSqcLwbhFuR3IwS3Vvb1ZacHc/textfields-presslight-01.mp4
https://material.io/guidelines/components/text-fields.html#text-fields-states

Closing out issue, posted to wrong board. Thought I was on the MDC board... 👍


Fix tight loop if watched etcd key does not exist.

Required promotion of etcd stub library to avoid order dependence in UTs.

LGTM

Good for merge once the UTs have run.

Sorry, this never completed tests, and now does not merge! Can you please resolve the conflicts? I'm happy to have you just merge it if the tests run clean for you.

Rebased onto master.  Interestingly, there weren't any conflicts so I'm not sure what Github was moaning about.


ATOM Yum Repository

Hi Fellows,
Just an idea, but it would be great to have an ATOM Yum Repository for RPM based Linuxes.
Best regards,
Good work.

Closing in favor of #2956 - feel free to subscribe there for updates.


Telegram Bot API Scheme

Hi,
The question is more about Telegram bots rather than about tdlib.
Is there anywhere bot api scheme (like in .tl format or in .json) to generate types and functions from it?
Is it possible to ask Telegram team about it? Maybe it is possible to publish it?
Thank you.

No, there is no such scheme. Human-readable documentation will remain primary documentation source in the near future.
But there are parsers of the documentation, for example, https://github.com/aiogram/tg-codegen/blob/d52ce351fce023784688f43b29db7380b0de4a48/generator/parser.py.

I see. Thanks.


add GetLatestTreeState() grpc

Closes #321

@LarryRuane what's needed to close this one?

Can we get clarity why this is needed @pacu? It has been added to a lightwalletd epic.

I can't remember but maybe it was for generating checkpoints?

Yes, it's for that, I thought this was already merged in.

We could also use the -1 method on the block height to get the latest. Small enhancement required!

Force-pushed to rebase onto latest master branch


bug: contact section nav bar replicate multiple times

contact section nav bar replicate multiple times

@Anupkjha2601 have a look.


Fix depwarns on Julia 0.7 (current master)

Codecov Report

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

@@           Coverage Diff           @@
##           master      #33   +/-   ##
=======================================
  Coverage   98.62%   98.62%
=======================================
  Files           7        7
  Lines         656      656
=======================================
  Hits          647      647
  Misses          9        9

Impacted Files
Coverage Δ

src/EzXML.jl
100% <ø> (ø)
:arrow_up:

src/streamreader.jl
96.87% <ø> (ø)
:arrow_up:

src/node.jl
99.44% <ø> (ø)
:arrow_up:

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 253f132...7142c16. Read the comment docs.


Support for jade -> pug name change ?

Will you be updating to support the jade -> pug name change?

+1

I think this should be resolved when https://github.com/tj/consolidate.js/pull/232 is merged and node-email-templates updates its consolidate version.

pub is now in<EMAIL_ADDRESS>

All right!  node-email-templates declares "consolidate": "^0.14.0", so support should already be available.

Correct it should be OK to use, if not, please let me know and I'll re-open.

It doesn't work for me, node v5.3.0, pug 2.0.0-beta6, consolidate (pug dependency) 0.14.1.
Unhandled rejection Error: Cannot find module 'jade'
    at Function.Module._resolveFilename (module.js:326:15)
    at Function.Module._load (module.js:277:25)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at /home/build/application/node_modules/consolidate/lib/consolidate.js:324:34
    at /home/build/application/node_modules/consolidate/lib/consolidate.js:143:5
    at Promise._execute (/home/build/application/node_modules/bluebird/js/release/debuggability.js:284:9)
    at Promise._resolveFromExecutor (/home/build/application/node_modules/bluebird/js/release/promise.js:480:18)
    at new Promise (/home/build/application/node_modules/bluebird/js/release/promise.js:77:14)
    at promisify (/home/build/application/node_modules/consolidate/lib/consolidate.js:136:10)
    at Function.exports.jade.render (/home/build/application/node_modules/consolidate/lib/consolidate.js:320:10)
    at /home/build/application/node_modules/email-templates/lib/template-manager.js:61:44
    at Promise._execute (/home/build/application/node_modules/bluebird/js/release/debuggability.js:284:9)
    at Promise._resolveFromExecutor (/home/build/application/node_modules/bluebird/js/release/promise.js:480:18)
    at new Promise (/home/build/application/node_modules/bluebird/js/release/promise.js:77:14)
    at render (/home/build/application/node_modules/email-templates/lib/template-manager.js:50:10)
    at renderFile (/home/build/application/node_modules/email-templates/lib/util.js:110:38)
    at /home/build/application/node_modules/email-templates/lib/email-template.js:169:61
    at tryCatcher (/home/build/application/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/home/build/application/node_modules/bluebird/js/release/promise.js:509:31)
    at Promise._settlePromise (/home/build/application/node_modules/bluebird/js/release/promise.js:566:18)
    at Promise._settlePromise0 (/home/build/application/node_modules/bluebird/js/release/promise.js:611:10)
    at Promise._settlePromises (/home/build/application/node_modules/bluebird/js/release/promise.js:690:18)
    at Promise._fulfill (/home/build/application/node_modules/bluebird/js/release/promise.js:635:18)
    at Promise._resolveCallback (/home/build/application/node_modules/bluebird/js/release/promise.js:430:57)
    at Promise._settlePromiseFromHandler (/home/build/application/node_modules/bluebird/js/release/promise.js:521:17)
    at Promise._settlePromise (/home/build/application/node_modules/bluebird/js/release/promise.js:566:18)
    at Promise._settlePromise0 (/home/build/application/node_modules/bluebird/js/release/promise.js:611:10)
    at Promise._settlePromises (/home/build/application/node_modules/bluebird/js/release/promise.js:690:18)
    at Promise._fulfill (/home/build/application/node_modules/bluebird/js/release/promise.js:635:18)


Added awesome fontconfig support

Branched off next branch as asked #105

Thank you, @V1rgul! We really appreciate the contribution!!


Validation problem (laravel dont validate if del array input)

Laravel Version: 6.0.3
PHP Version: 7

Description:
Hello, I found one Bug, if you do a validation on a input name[] (array) and the user deletes the input, the validator ignore.
Steps To Reproduce:
Make a validation on a field that is null on $request.
request()->validate([
'products.*' => 'required',
]);
This will not throw a error.
if use 'products' without '.*' then throws the error.
and i can not use only 'products' because when have de inputs they will become as array and validator will give a error.

Hi there,
Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

Laracasts Forums
Laravel.io Forums
StackOverflow
Discord
Larachat
IRC

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!
Thanks.

Hello, why closed? this is a bug

Hi there,
Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

Laracasts Forums
Laravel.io Forums
StackOverflow
Discord
Larachat
IRC

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!
Thanks.

Hello, why closed? this is a bug


Make DAO more selection global

Is your feature request related to a problem? Please describe.
Users now have to choose a DAO in 2 separate places. First, on the build page under the export tab. This determines which DAO will the multicall be proposed on. Second in the DAO page, to select what DAO to see information about.
Describe the solution you'd like
Would be nice if DAO selection is a more obvious and global thing, just like what account is the user signed in with. when a DAO is selected then it should be chosen for all pages. This also helps to determine whether the user is able to do something on that DAO from the beginning, see #16
Describe alternatives you've considered
A possibility is to have something on the header, where a user can input a DAO address using a text field, and preferably also have autocomplete suggestions coming from a selection of DAOs provided from the Astro API for that particular user ("your DAOs").
It would also be nice to save DAOs that a user has used previously in his local storage and suggest them to him in the future

There's a great MUI component for this. It will autocomplete to a set of selections and also accept custom values:
https://mui.com/components/autocomplete/#creatable

A new file was introduced: persistent.ts, which serves as a navigation persistent place to store user, dao and multicall addresses. Once a better solution was found in #5, technology should adapt.


OmniPod UTC "bootstrapping"

WIP.
Still some TODOs - tests and making sure this is "turn-off-able" so that we can merge but wait to "activate" until we have all devices. All the important logic is in TimezoneOffsetUtil, and I think it should be generalizable to all the drivers.
Also still need to investigate how it'll work with non-fresh accounts.
It'd be great if we could chat about this tomorrow @kentquirk.

Closing this in favor of #106


Remove deprecated Flags API

Upgrades the collector libraries to 0.57.2 and removes the deprecated Flags API in favor of FlagsStruct.  Let me know if the package upgrade needs to be done in a separate PR.

/cc @dashpole

/gcbrun
Thanks!

looks like it needs a make gotidy?

looks like it needs a make gotidy?

@dashpole done

/gcbrun


chore: add @[simp] uniformly to _top_of_surjective lemmas

Some such lemmas are already labelled @[simp], and this PR adds @[simp] to the remaining ones.
It's useful for some automation I'm writing to have these all in simp.

maintainer merge

Thanks!
bors merge


java.lang.IllegalArgumentException: Browser name must be htmlunit (but that is the browser name I passed in)

I am getting this error:
java.lang.IllegalArgumentException: Browser name must be htmlunit
However, that IS the browser name:
Open Browser	url=https://www.google.com/	browserName=htmlunit
Here is my system configuration:
Operating system: 64 bit Windows 10
Python interpret type: Jython 2.7.0.
Robot Framework version: 3.0.2 (I believe). We are using Robot maven plugin 1.4.7.
RED Plugin version: 0.8.3.
When I don't name the browser argument, but simply pass in the value, I still get the error:
java.lang.IllegalArgumentException: Browser name must be htmlunit
When I name the argument as browser, I get this error:
com.github.markusbernhardt.seleniumlibrary.SeleniumLibraryFatalException: browser=htmlunit is not a supported browser.
I have attached the stack trace using log level TRACE:
trace.txt

What version of the library you're using? Seems that the error comes from Selenium's side, so might be that some version upgrade has broken htmlunit usage.

@Hi-Fi Hello,
I am using version <IP_ADDRESS>:
	<dependency>
		<groupId>com.github.hi-fi</groupId>
		<artifactId>robotframework-seleniumlibrary</artifactId>
		<version><IP_ADDRESS></version>
		<scope>test</scope>
	</dependency>

That is the .jar I have in my local .m2 repository.

Didn't mean to close ^

Fixed in <IP_ADDRESS>, which is on the way to maven central

@Hi-Fi Thanks


Jesse: Watch depicter.com

Jesse requests the watch of the watch_keyword depicter\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

depicter\.com has been seen in 1 true positive, 1 false positive, and 0 NAAs.

Approved by Jeff Schaller in Charcoal HQ


Connection with IAM authentication leads to "Assuming cluster is using NLB/custom domain name" Error

Driver version
^2.0.913
Redshift version
PostgreSQL 8.0.2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3), Redshift 1.0.54052
Client Operating System
AWS Lambda x86_64 Architecture
Python version
Python 3.10
Table schema

Problem description

Expected behaviour: Connection and querying from Redshift Cluster
Actual behaviour: Querying Succeeds but an Error is logged.
Error message/stack trace:
[ERROR]	2023-08-10T07:58:00.747Z	adb51ef0-a89c-49c0-8338-ec38fb684189	User provided cluster_identifier. Assuming cluster is using NLB/custom domain name. Using cluster_identifier
Any other details that can be helpful: The error is related to custom domain name, however a custom domain name has NOT been configured for the Redshift cluster.

Python Driver trace logs

Reproduction code

conn = redshift_connector.connect(
            cluster_identifier=REDSHIFT_CLUSTER_IDENTIFIER,
            database=REDSHIFT_DATABASE,
            db_user=REDSHIFT_DB_USER,
            iam=True,
            db_groups=[REDSHIFT_DB_GROUP],
            auto_create=True,
        )
cursor = conn.cursor()
res = cursor.execute('SELECT 1;')
```

@Kareeno, are you seeing issue connecting? looks like this is incorrectly being logged with the level error and should be using debug instead.

Hi @Brooke-white, indeed there is no issue actually connecting, only the logging of the error.

Thanks, @Kareeno , understood. Apologies for the inconvenience.  We will address this is our next release.

Thanks!!

Fixed in 2.0.914


b2ChainDef  Custom Color

Setter/getter for max velocity, tuning as well.
Explosion mask bits and surface area.

#810 for custom chain color and explosion stuff.


TDD for class and methods for PR

In this PR
-> Understand an existing codebase in a way that allows for adding tests.
-> Write Rspec unit tests with mocks for factorial, reverse and fizzbuzz methods.
->Later we implemented a class with methods, doing test-driven development (TDD).

Thanks @TadesseDev for reviewing and approving our PR, we'll merge it now.


Add automax procs to gcm

How to categorize this PR?

/area performance
/kind enhancement
What this PR does / why we need it:
Automatically set the GOMAXPROCS environment variable to prevent throttling on startup. If there is high enough load and the CPU limits are not high enough the leader election goroutine may be CPU starved and cause the GCM to end up in a CrashLoopBackoff.
Here you can see the goroutines without GOMAXPROCS set properly. This is running on a 16 core machine so go assumes it can multiplex its goroutines over all 16 cores. However, there is a limit of 4 cores so most of the goroutines get throttled in each 100ms time slice by the CFS (completely fair scheduler) for about 80ms. This means for every 100ms the GCM will not do anything for about 80ms because it is throttled. You can visually see this in the screenshot (captured via go tool trace):

With GOMAXPROCS=4 the picture looks better. There is more context switching between goroutines and even though the processes are saturated there is no throttling occurring for 80ms like in the scenario above.

For more information regarding GOMAXPROCS and why we need uber's automaxproc see: https://github.com/golang/go/issues/33803
Special notes for your reviewer:
We should add automaxprocs to the other controllers as well, but we wanted to start with the controller manager since it was most affected by throttling.
Release note:

Add automaxprocs to the controller manager

A bit more context for this PR:
In one of our larger landscapes, we observed that gardener-controller-manager repeatedly lost its leadership during its initialization phase. In a closer investigation, @istvanballok @wyb1 and @danielfoehrKn found out, that because of the high number of concurrentSyncs (controller worker goroutines), that we use in this landscape, the go scheduler scheduled the leader election goroutine less frequently (because it is fair). However, as the go runtime and scheduler are not cgroup aware, goroutines were scheduled onto 16 OS threads, which in turn were throttled at their given CPU quota (i.e. cpu limits) by CFS (see screenshots and explanations above). As there are many runnable goroutines during the initialization phase (basically all controller goroutines are runnable because of initial reconciliations), the lease goroutine would need to wait longer to get CPU time again and thus gcm lost its leadership.
Some more thoughts on this from a discussion with @istvanballok @wyb1 (and @danielfoehrKn):

automaxprocs helps in avoiding CPU throttling due to a mismatch between the default GOMAXPROCS (# of cores) and the CPU limit. Throttling also introduces artifacts in the go tool trace UI which are confusing at first sight. Excessive context switching also increases the overhead of the context switching (see https://github.com/uber-go/automaxprocs/issues/12)
however, it is orthogonal to fixing the gcm config by decreasing the concurrentSyncs settings -> lowering these means less runnable goroutines during the initial reconciliation phase and therefore a higher chance for the lease goroutine to get the required CPU time

metrics, that controller-runtime exposes by default, (like queue length/add rate/latency and reconciliation rate), will act as good indicators on when the concurrentSyncs settings need to be increased
these metrics will come with https://github.com/gardener/gardener/issues/4251

we thought about how the automaxprocs usage will play together with VPA recommendations:

automaxprocs floors the CPU quota (favors underutilization over throttling, see https://github.com/uber-go/automaxprocs/pull/13, also see go issue)
by this, it effectively blocks VPA scale-up for Pods in Guaranteed QoS (requests==limits) and Pods with a small requests/limits ratio
however, we came to the conclusion, that as long as Pods have requests * 2 <= limits (like it is the case for the default values in our chart), it is not a problem
the limits are mainly relevant during the initialization phase, afterwards gcm will likely never reach such high CPU usage again during normal operation (much lower and quite stable during its lifetime)

additionally, it might be worth measuring how much overhead DeepCopy operations add (controller-runtime cache reader does a DeepCopy by default on every Get and List, but can be disabled see https://github.com/kubernetes-sigs/controller-runtime/pull/1274)


Fix sklearn tests

Description
Due to a recent update of scikit-learn, some of our tests fail.
This PR fixes that by

adapting the our code to the changes of their public API
not using private API anymore to avoid errors like this in the future

Closes #3504

Before you get started

[x] ☝ Create an issue to discuss what you are going to do

Checklist
It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.

[x] 🛠 This pull request has a descriptive title
[x] 🛠 Code is written according to the code quality guidelines
[x] 🛠 Documentation is available
[ ] 🛠 ~Tests run successfully~ see https://github.com/ESMValGroup/ESMValTool/pull/3506#issuecomment-1905992518
[x] 🛠 The list of authors is up to date
[x] 🛠 Any changed dependencies have been added or removed correctly
[ ] 🛠 ~All checks below this pull request were successful~ see https://github.com/ESMValGroup/ESMValTool/pull/3506#issuecomment-1905992518

New or updated recipe/diagnostic

[x] 🧪 Recipe runs successfully
[x] 🧪 Recipe is well documented
[x] 🧪 Figure(s) and data look as expected from literature
[x] 🛠 Provenance information has been added

To help with the number of pull requests:

🙏 We kindly ask you to review two other open pull requests in this repository

I guess the CircleCI tests are failing due to the outdated docker container, the tests run fine locally and on GitHub actions 👍
I will test one recipe, then we can merge this.

Recipes ran successful and output looks good, this can be merged 👍

legend Manu :beer:


Threat Intelligence Solution latest version is not published to Content Hub

Describe the bug
The Threat Intelligence solution is at 3.0.2 as of a few weeks ago, but content hub still shows 3.0.1 as latest version. 3.0.2 was updated in PR #9369 and merged on 2023-12-20
To Reproduce
Steps to reproduce the behavior:

Go to Content Hub in Sentinel
Find Threat Intelligence solution
View version

Expected behavior
Expect 3.0.2 to be shown, instead 3.0.1 is shown as latest
Screenshots
N/A
Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):
N/A
Additional context
N/A

Hi @kfriede , Thanks for flagging this issue, we will investigate this issue and get back to you with some updates by 29Dec2023. Thanks!

Hi @kfriede, Thank you for raising this issue with us. We have checked this issue and found that, the few contents of the Threat Intelligence solution are in private preview, due to that this solution has not been rolled out yet. However, if you wish to use version 3.0.2, we would be happy to share the custom deployment steps with you. By using a custom deployment, you can access the features of the 3.0.2 solution.
Please find the custom deployment steps in attachment's-
Main Template link - https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Threat Intelligence/Package/mainTemplate.json
Custom Deployment of the Solution.docx
Thanks!

Hi @v-sudkharat, could you please indicate which parts of the solution are in private preview that weren't in 3.0.1? I don't see any changes that would prevent it from being published.


fatal error detected by Java Runtime Environment:

Trying to run a Spark file.
Code ran the first couple of lines, then got the error
-- This is what i got.
 A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000000116aa3d6e, pid=16574, tid=217347
#
# JRE version: OpenJDK Runtime Environment AdoptOpenJDK (11.0.8+10) (build 11.0.8+10)
# Java VM: OpenJDK 64-Bit Server VM AdoptOpenJDK (11.0.8+10, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64)
# Problematic frame:
# J 11279 c1 org.apache.spark.unsafe.Platform.putInt(Ljava/lang/Object;JI)V (10 bytes) @ 0x0000000116aa3d6e [0x0000000116aa3d40+0x000000000000002e]
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

I also have a problem running Cassandra. It always comes up with an OpenJDK Error.

This is a problem in Apache Spark. They do unsafe memory access using sun.misc.Unsafe and apparently aren't doing it correclty, so it crashes and takes the JVM with it:
J 11279 c1 org.apache.spark.unsafe.Platform.putInt(Ljava/lang/Object;JI)V

Please report it to Apache Spark, ideally with a code sample that reproduces the problem.

This is a problem in Apache Spark. They do unsafe memory access using sun.misc.Unsafe and apparently aren't doing it correclty, so it crashes and takes the JVM with it:
J 11279 c1 org.apache.spark.unsafe.Platform.putInt(Ljava/lang/Object;JI)V

Please report it to Apache Spark, ideally with a code sample that reproduces the problem.


[cherry-pick][branch-2.1] Fix round with double in halfway cases

What type of PR is this：

[x] bug
[ ] feature
[ ] enhancement
[ ] refactor
[ ] others

Which issues of this PR fixes ：

Fixes https://github.com/StarRocks/starrocks/issues/5843
Problem Summary(Required) ：

run starrocks_be_unittest


Missing support for snowflake as source connector

Looks like the provider doesnt support Snowflake as source connectors currently in Beta.  Schema block isnt really applicable for this connector type.
 Error: Insufficient destination_schema blocks │  │   on ../../terraform_modules/snowflake_connector_module/snowflake_connector.tf line 6, in resource "fivetran_connector" "snowflake_connector": │    6: resource "fivetran_connector" "snowflake_connector" { │  │ At least 1 "destination_schema" blocks are required. ╵ ╷ │ Error: Unsupported argument │  │   on ../../terraform_modules/snowflake_connector_module/snowflake_connector.tf line 15, in resource "fivetran_connector" "snowflake_connector": │   15:     schema_prefix            = var.schema_prefix │  │ An argument named "schema_prefix" is not expected here. ╵ ╷ │ Error: Unsupported argument │  │   on ../../terraform_modules/snowflake_connector_module/snowflake_connector.tf line 16, in resource "fivetran_connector" "snowflake_connector": │   16:     auth                     = var.auth │  │ An argument named "auth" is not expected here. Did you mean "path"? ╵ ╷ │ Error: Unsupported argument │  │   on ../../terraform_modules/snowflake_connector_module/snowflake_connector.tf line 23, in resource "fivetran_connector" "snowflake_connector": │   23:     passphrase               = var.passphrase │  │ An argument named "passphrase" is not expected here. ╵ ╷ │ Error: Unsupported argument │  │   on ../../terraform_modules/snowflake_connector_module/snowflake_connector.tf line 25, in resource "fivetran_connector" "snowflake_connector": │   25:     is_private_key_encrypted = var.is_private_key_encrypted │  │ An argument named "is_private_key_encrypted" is not expected here.

We have prepared Open API Schema based connector resource with dynamically built schema for connector configs. So the fields will be available to manage via terraform in next upcoming release

Fixed in latest provider release - v0.7.0
@kristian-petersen please download latest version v0.7.0 to be able to use reported previously missing fields.
Closing this issue

Support for Snowflake DB connector will be included into v0.7.2
PR to track changes: https://github.com/fivetran/terraform-provider-fivetran/pull/159


Feature request: support unnamed columns

First, thanks for the awesome job you're doing with this project, it helps me tremendously!
The actual feature request:
[
  { '': 2 },
  statement: 'select max(1), max(2)',
  parameters: undefined,
  return: undefined,
  count: -1,
  columns: [ { name: '', dataType: 4 }, { name: '', dataType: 4 } ]
]

Since both columns have no name, only one is key is created and the second one overwrites the first.
My suggestion is to auto-name (or potentially add the options argument for this to be user-controlled) missing keys - .e.g as _1, _2, ... or something along those lines, making it essentially equivalent to this:
[
  { _1: 1, _2: 2 },
  statement: 'select max(1) _1, max(2) _2',
  parameters: undefined,
  return: undefined,
  count: -1,
  columns: [ { name: '_1', dataType: 4 }, { name: '_2', dataType: 4 } ]
]

Interesting. I will have to think of the best way to have user's indicate how they want keys to be generated, but in the meantime it shouldn't be difficult to check whether the column name is blank, and if so, generate a name like _00000, _00001, etc.

Alright, I've pushed a fix to a new branch. You can download with:
npm install markdirish/node-odbc#2.3.0-unnamed-columns`

That should generate column names if the column name returned has no length. Let me know if it works (my DBMS of choice doesn't allow unnamed columns, it auto generates them for me).
Other solutions that might work (depending on whether you like how this is implemented now):

You can modify your queries to use the AS keyword: select max(1) as "1", max(2) as "2" (your syntax may vary).
This connector has a (apparently hidden) feature that allows results to be returned as an Array instead of an object/dictionary. To activate this behavior, your connection needs to be given a connection object with the property fetchArray: true:

const odbc = require('odbc');

async function test() {
  try {
    const connectionobj = {
      connectionString: 'DSN=MyDSN',
      fetchArray: true
    }
    const connection = await odbc.connect(connectionobj);
    const result = await connection.query(`SELECT '1' FROM SYSIBM.SYSDUMMY1`);
    console.log(result);
  } catch (error) {
    console.error(error);
  }
}

test();

Let me know what you think!

Thanks for a quick turnaround @markdirish!

I will have to think of the best way to have user's indicate how they want keys to be generated

Perhaps adding a column naming function (i.e. column index => column name or even better (column name, column index) => column name) for these would be best, but that may require changing the API, so not sure if that's desirable.
I'm also not sure how often this is going to be used and how much it complicates things on your end. It might not be worth the additional effort, especially given the other options.

npm install markdirish/node-odbc#2.3.0-unnamed-columns

This looks good to me:
[
  { _00000: 1, _00001: 2 },
  statement: 'select max(1), max(2)',
  parameters: undefined,
  return: undefined,
  count: -1,
  columns: [ { name: '_00000', dataType: 4 }, { name: '_00001', dataType: 4 } ]
]

I'd just make them shorter (i.e. _0 instead of _00000), as it's unlikely you'd have 10k columns in a select :) While a bit less likely with longer identifiers, clashes with user-supplied columns are possible either way:
[
  { _00000: 2 },
  statement: 'select max(1) _00000, max(2) _00000',
  parameters: undefined,
  return: undefined,
  count: -1,
  columns: [ { name: '_00000', dataType: 4 }, { name: '_00000', dataType: 4 } ]
]

You can modify your queries to use the AS keyword: select max(1) as "1", max(2) as "2" (your syntax may vary).

Yeah, that was what I was using so far.

This connector has a (apparently hidden) feature that allows results to be returned as an Array instead of an object/dictionary. To activate this behavior, your connection needs to be given a connection object with the property fetchArray: true:

This works great as well:
[
  [ 1, 2 ],
  statement: 'select max(1), max(2)',
  parameters: undefined,
  return: undefined,
  count: -1,
  columns: [ { name: '_00000', dataType: 4 }, { name: '_00001', dataType: 4 } ]
]

All three approaches are good from my perspective, including keeping it as you implemented it in this version.


Current Project Status Update?

Hey there! I was curious what the current project status is, as it hasn't been updated in a few years.
I totally understand if you just ran out of time for the project or something like that, but I was curious what your thoughts on the current code state is. Do you feel like the direction was right, and might just need to be updated to later versions of WGPU or something, or do you feel like there are better options now, or maybe the original plan didn't go as well as immagined?
That kind of stuff. :)
I'm thinking of adding a WGPU-powered backend to burn for machine learning, and Emu seems to have a lot of the right goals, but I'm not sure if it'd be better to use WGPU directly, since there hasn't been a lot of activity here for a while.

Hey @zicklag. Thanks for posting this issue. I'm currently not maintaining/developing Emu further. The current status is that it is broken with some of the updates to Rust and other dependent packages.
I do think the direction is right and this is a good abstraction for WGPU for compute. It does need to be updated which I think can be done without an unreasonable amount of work (since it seems most relevant WGPU changes since last Emu update are API related).
Hope that helps!

Thanks a bunch that's exactly what I was looking for! I don't have any real use for it yet, but I might take another look at Emu one day if I need something like it, even if just for reference.
I'm good closing this issue, or leaving it open if you want to help discoverability in the issue list.


Timestamp jitter causes strokeWidth to become fixed at minimum

If the timestamp is equal between two TimedPoints the check for (velocity != velocity) will not catch infinity and SignaturePad.mLastVelocity will get pinned to infinity.
This should fix TimedPoint so it doesn't return an unsafe velocity

Thank you very much for your contribution!


"Pick a remote to publish the branch to" should have a "new branch" option

To address the original issue in https://github.com/Microsoft/vscode/issues/21189 more directly, it would be great if this worked:

Create a new branch
Run the "Publish branch" command
See the "Pick a remote..." prompt
Select a "Add New Remote" option
The remote is added and the branch is pushed to that remote

Is that what you originally had in mind @Tyriar?

I would like to take this.

@roblourens yep that was it.
@jmbockhorst 👍


[magnum-integration] Add feature for upcoming GlmIntegration library

Hi @ras0219-msft !
Just a tiny change, adding a feature to magnum-integration.
Thanks in advance!
Cheers, Jonathan.

(Pending review by @mosra)

Thank you! Looks good to me :+1:

Thanks for the PR guys!