Check not used messages?

Is your feature request related to a problem? Please describe.
In the progress of dev, there will be a lot of locale messages not being used anymore.
Describe the solution you'd like
Maybe some mechanism to check unused messages?

Hey, @addlistener! This would be an awesome feature!
Additionally, it would be incredibly useful to have a VSCode extension that allows developers to create new translation keys directly within the code. For instance, if a developer types a key that doesn't exist, the extension could suggest creating it automatically across the necessary translation files, saving time and reducing errors.
Example:
return (
  <h1>{t('tempKey')}</h1>
  // VSCode extension suggests: "Create tempKey in translation files."
)

This would allow for a quick workflow where upon hitting a shortcut, the missing key is auto-generated and inserted into all applicable translation files.
For example:
// en.json
{
  // ... other keys
  "tempKey": "Auto-generated"
}

// fr.json
{
  // ... other keys
  "tempKey": "Auto-generated"
}

This feature could streamline the localization process, especially for large-scale applications with multiple locales.


Update aws-java-sdk-bundle to 1.12.555

About this PR
📦 Updates com.amazonaws:aws-java-sdk-bundle from 1.12.550 to 1.12.555
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.amazonaws", artifactId = "aws-java-sdk-bundle" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "com.amazonaws", artifactId = "aws-java-sdk-bundle" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #2906.


update metaparameter values

per forum post by BA Labs: https://forum.makerdao.com/t/stability-scope-parameter-changes-7/22882

Closed. Covered by https://github.com/makerdao/mips/pull/1015


Unable to login after upgrade from 2.3.5 to 2.4

Description
Unable to login after upgrade from 2.3.5 to 2.4. Don't see any migrations to run (or didn't see any?)
Reverting to 2.3 and it works again (interesting other thing, both 2.3.5 and 2.3.6 refer to themselves as 2.3.5 in the footer, tho when running 2.3.6 the git sha is correct)
Steps to reproduce

Stop and remove existing portus containers and volume via docker-compose stop and docker-compose down , docker volume rm portus_static
Bump portus versions in docker-compose.yml to 2.4 for portus and the background containers
Start stack
Background_1 exits with the following error (it behaves different differently to 2.3 in this respect)

background_1  | `Registry synchronization` was disabled because strategy is set to 'initial' and the database is not empty
background_1  | [Initialization] Running: 'Registry events', 'Garbage collector'
background_1  | /srv/Portus/lib/portus/background/garbage_collector.rb:55:in `older_than': undefined method `[]' for nil:NilClass (NoMethodError)
background_1  | 	from /srv/Portus/lib/portus/background/garbage_collector.rb:47:in `tags_to_be_collected'
background_1  | 	from /srv/Portus/lib/portus/background/garbage_collector.rb:18:in `work?'
background_1  | 	from /srv/Portus/bin/background.rb:58:in `block (2 levels) in <top (required)>'
background_1  | 	from /srv/Portus/bin/background.rb:56:in `each'
background_1  | 	from /srv/Portus/bin/background.rb:56:in `each_with_index'
background_1  | 	from /srv/Portus/bin/background.rb:56:in `block in <top (required)>'
background_1  | 	from /srv/Portus/bin/background.rb:55:in `loop'
background_1  | 	from /srv/Portus/bin/background.rb:55:in `<top (required)>'
background_1  | 	from /srv/Portus/vendor/bundle/ruby/2.5.0/gems/railties-4.2.10/lib/rails/commands/runner.rb:60:in `load'
background_1  | 	from /srv/Portus/vendor/bundle/ruby/2.5.0/gems/railties-4.2.10/lib/rails/commands/runner.rb:60:in `<top (required)>'
background_1  | 	from /srv/Portus/vendor/bundle/ruby/2.5.0/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb:123:in `require'
background_1  | 	from /srv/Portus/vendor/bundle/ruby/2.5.0/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb:123:in `require_command!'
background_1  | 	from /srv/Portus/vendor/bundle/ruby/2.5.0/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb:90:in `runner'
background_1  | 	from /srv/Portus/vendor/bundle/ruby/2.5.0/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
background_1  | 	from /srv/Portus/vendor/bundle/ruby/2.5.0/gems/railties-4.2.10/lib/rails/commands.rb:17:in `<top (required)>'
background_1  | 	from bin/rails:12:in `require'
background_1  | 	from bin/rails:12:in `<main>'
background_1  | exit status 1

On navigating to the web interface I get a 500 (albeit a themed one):
portus_1      |   Rendered dashboard/index.html.slim within layouts/application (221.7ms)
portus_1      |   Rendered shared/_config.html.slim (3.6ms)
portus_1      | Completed 401 Unauthorized in 312ms (ActiveRecord: 38.8ms)
portus_1      |
portus_1      | ActionView::Template::Error (undefined method `[]' for nil:NilClass):
portus_1      |     1: javascript:
portus_1      |     2:   window.API_URL = '//#{app_path}';
portus_1      |     3:   window.PAGINATION = {
portus_1      |     4:     limit: #{pagination_limit},
portus_1      |     5:     beforeAfter: #{pagination_before_after}
portus_1      |     6:   };
portus_1      |   app/helpers/application_helper.rb:60:in `pagination_limit'
portus_1      |   app/views/shared/_config.html.slim:4:in `_app_views_shared__config_html_slim___2667011782284473101_35064980'
portus_1      |   app/views/layouts/application.html.slim:31:in `_app_views_layouts_application_html_slim__2518048766129532383_41454580'
portus_1      |   app/middleware/catch_json_parse_errors.rb:11:in `call'
portus_1      |
portus_1      |
portus_1      | Processing by ErrorsController#show as HTML
portus_1      |   Parameters: {"status"=>"500"}
portus_1      |   Rendered errors/500.html.erb within layouts/errors (0.9ms)
portus_1      |   Rendered errors/_status_title.html.slim (2.1ms)
portus_1      | Completed 500 Internal Server Error in 28ms (Views: 27.1ms | ActiveRecord: 0.0ms)

Deployment information
Deployment is via docker-compose though the nginx frontend is in a different compose stack
version: "3"

services:
  portus:
    image: opensuse/portus:2.4
    environment:
      - PORTUS_MACHINE_FQDN_VALUE=${MACHINE_FQDN}

      # DB. The password for the database should definitely not be here. You are
      # probably better off with Docker Swarm secrets.
      - PORTUS_DB_HOST=db
      - PORTUS_DB_DATABASE=portus_production
      - PORTUS_DB_PASSWORD=${DATABASE_PASSWORD}
      - PORTUS_DB_POOL=5

      # Secrets. It can possibly be handled better with Swarm's secrets.
      - PORTUS_SECRET_KEY_BASE=${SECRET_KEY_BASE}
      - PORTUS_KEY_PATH=/certificates/portus.key
      - PORTUS_PASSWORD=${PORTUS_PASSWORD}

      # SSL
      - PORTUS_PUMA_TLS_KEY=/certificates/portus.key
      - PORTUS_PUMA_TLS_CERT=/certificates/portus.crt

      # NGinx is serving the assets instead of Puma. If you want to change this,
      # uncomment this line.
      #- RAILS_SERVE_STATIC_FILES='true'
    ports:
      - 3000:3000
    links:
      - db
    volumes:
      - ./secrets:/certificates:ro
      - ./portus/config.yml:/srv/Portus/config/config.yml
      - static:/srv/Portus/public

  background:
    image: opensuse/portus:2.4
    depends_on:
      - portus
      - db
    environment:
      # Theoretically not needed, but cconfig's been buggy on this...
      - CCONFIG_PREFIX=PORTUS
      - PORTUS_MACHINE_FQDN_VALUE=${MACHINE_FQDN}

      # DB. The password for the database should definitely not be here. You are
      # probably better off with Docker Swarm secrets.
      - PORTUS_DB_HOST=db
      - PORTUS_DB_DATABASE=portus_production
      - PORTUS_DB_PASSWORD=${DATABASE_PASSWORD}
      - PORTUS_DB_POOL=5

      # Secrets. It can possibly be handled better with Swarm's secrets.
      - PORTUS_SECRET_KEY_BASE=${SECRET_KEY_BASE}
      - PORTUS_KEY_PATH=/certificates/portus.key
      - PORTUS_PASSWORD=${PORTUS_PASSWORD}

      - PORTUS_BACKGROUND=true
    links:
      - db
    volumes:
      - ./portus/config.yml:/srv/Portus/config/config.yml
      - ./secrets:/certificates:ro

  db:
    image: library/mariadb:10.0.23
    command: mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci --init-connect='SET NAMES UTF8;' --innodb-flush-log-at-trx-commit=0
    environment:
      - MYSQL_DATABASE=portus_production

      # Again, the password shouldn't be handled like this.
      - MYSQL_ROOT_PASSWORD=${DATABASE_PASSWORD}
    volumes:
      - /var/lib/portus/mariadb:/var/lib/mysql

  registry:
    image: library/registry:2.6
    command: ["/bin/sh", "/etc/docker/registry/init"]
    environment:
      # Authentication
      REGISTRY_AUTH_TOKEN_REALM: https://${MACHINE_FQDN}/v2/token
      REGISTRY_AUTH_TOKEN_SERVICE: ${MACHINE_FQDN}
      REGISTRY_AUTH_TOKEN_ISSUER: ${MACHINE_FQDN}
      REGISTRY_AUTH_TOKEN_ROOTCERTBUNDLE: /secrets/portus.crt

      # SSL
      REGISTRY_HTTP_TLS_CERTIFICATE: /secrets/portus.crt
      REGISTRY_HTTP_TLS_KEY: /secrets/portus.key

      # Portus endpoint
      REGISTRY_NOTIFICATIONS_ENDPOINTS: >
        - name: portus
          url: https://${MACHINE_FQDN}/v2/webhooks/events
          timeout: 2000ms
          threshold: 5
          backoff: 1s
    volumes:
      - /var/lib/portus/registry:/var/lib/registry
      - ./secrets:/secrets:ro
      - ./registry/config.yml:/etc/docker/registry/config.yml:ro
      - ./registry/init:/etc/docker/registry/init:ro
    ports:
      - 5000:5000
      - 5001:5001 # required to access debug service
    links:
      - portus:portus

volumes:
  static:
    driver: local

Configuration:
[Mailer config] Host:     registry.mydomain.org
[Mailer config] Protocol: https://
Evaluated configuration:
---
email:
  from<EMAIL_ADDRESS>  name: Portus
  reply_to<EMAIL_ADDRESS>  smtp:
    enabled: false
    address: smtp.example.com
    port: 587
    domain: example.com
    ssl_tls: ''
    enable_starttls_auto: false
    openssl_verify_mode: none
    ca_path: ''
    ca_file: ''
    user_name: ''
    password: "****"
    authentication: login
gravatar:
  enabled: true
delete:
  enabled: true
ldap:
  enabled: false
oauth:
  google_oauth2:
    enabled: false
  open_id:
    enabled: false
  github:
    enabled: true
    client_id: foo
    client_secret: bar
    organization: baz
    team: ''
    domain: ''
  gitlab:
    enabled: false
  bitbucket:
    enabled: false
first_user_admin:
  enabled: true
signup:
  enabled: false
check_ssl_usage:
  enabled: true
registry:
  jwt_expiration_time:
    value: 15
  catalog_page:
    value: 100
  timeout:
    value: 2
  read_timeout:
    value: 120
machine_fqdn:
  value: registry.mydomain.org
display_name:
  enabled: false
user_permission:
  change_visibility:
    enabled: true
  create_team:
    enabled: true
  manage_team:
    enabled: true
  create_namespace:
    enabled: true
  manage_namespace:
    enabled: true
  create_webhook:
    enabled: true
  manage_webhook:
    enabled: true
  push_images:
    policy: allow-teams
security:
  clair:
    server: ''
    health_port: 6061
    timeout: 900
  zypper:
    server: ''
  dummy:
    server: ''
anonymous_browsing:
  enabled: true
background:
  registry:
    enabled: true
  sync:
    enabled: true
    strategy: initial

Portus version<EMAIL_ADDRESS>

@vitoravelino amazing thank you! I thought I'd merged the configs cleanly but clearly not. Copied the stock config.yml and read through it, now 2.4 starts cleanly; looks like the GC stuff was the blocker.


Package chai is not recognized.

Is it possible to use "chai" in the client test?

Not currently but we can add it. For now, you can use assert instead.


Add code coverage metrics

We don't want to allow commits and PRs without tests. So we will add some tooling to make sure they are there.
Bellow some point the build should break on AppVeyor.

Code coverage added:


Add Affiliation LeaderBoard page

Create the affiliation Leaderboard page based on events from the indexer.

Managed in the affiliate repo


ENOENT: no such file or directory, lstat '/usr/local/bin/node'

Isn't usable in manjaro 4.14.18 (and probably in arch)
/usr/local/bin is empty, node located in /usr/bin
sudo ln -s /usr/bin/node /usr/local/bin/node fixes this issue, but you probably should check $PATH, instead of making your assumptions about location

Thanks for adding that, want to throw out there for beginners, on mine, I had to create the /usr/local/bin folder. To continue eith Enelar's tip:
Step 1, Make the directory
Step 2. Create a symbolic link from the installed location to the location it is looking for.
sudo mkdir -p /usr/local/bin
sudo ln -s /usr/bin/node /usr/local/bin/node

Hope that helps anyone that may not understand what is going on.


branch.framework 0.14.10 build failed

If there is a bug or error in this repo, please file the issue here.
branch.framework 0.14.10 failed to build
BranchShareLink.h not found
If you need assistance integrating a Branch SDK, please email<EMAIL_ADDRESS>Thank you.

How are you integrating Branch into your project?  Through direct integration, CocoaPods, or Carthage?

I'm also getting this error with 0.14.10. It seems like BranchShareLink.h  is not in Branch.framework/Headers/. Adding it there seems to fix it for me.

Fixed in release 0.14.11.


Error in parsing when using arrow functions

I'm getting queh trying to es.merge my javascript files.
  stream.js:75
     throw er; // Unhandled stream error in pipe.

The error message:
Error: Error in parsing: "modules/example/controllers/example-controller.js", Line 8: Unexpected token )
My Controller file:
        self.toggleSidenav = () => {
            return $mdSidenav('left').toggle();
        };

Is there some solution for it?

I think you want https://www.npmjs.com/package/stream-concat instead.
merge doesn't join the input end to end, but just mixes it into one stream.

Thanks! That what i'm looking for :)


 not working

<win-app-bar>
    <win-app-bar-command icon="'home'" label="'Home'"></win-app-bar-command>
	<win-app-bar-separator></win-app-bar-separator>
    <win-app-bar-command icon="'save'" label="'Save'"></win-app-bar-command>
</win-app-bar>

works
BUT -  as shown below does not works


styling issues

Hi, great package!
I'm adding some things that might improve the overall theme.

Better grouping of elements in main menu, currently it overflows a lot to the right in normal screens. Here, some essential sections now go into a Manual category.
We match the theme colours with the ones in the logo
We use the fira code fonts, so that the pipe |> looks like that, not ligatures.
we delete and ignore the package-lock.json file, is not needed.
upgrade to latest vitepress

Amazing! Thank you so much!
I’m travelling but I’ll try it tonight

oh, I didn't update the docs CI, hopefully latest commit will be enough. Otherwise we might also need the DOCUMENTER_KEY.

DOCUMENTER_KEY is set as a repository secret, so hopefully that part should work.

Thank you so much for the PR!


Fields of type File are incorrectly rendered inside a repeating block

When rendering a RepeatingFieldCollection, fields of type File (image, audio, etc) have an incorrect key. More specifically, the key is set to the type of field (i.e. image), while it should be the label (i.e. my_field_name). This not only results in unexpected key names, but also overwrites previous file fields in the same block because they all have the same key.
Example, given the following block:
my_block:
    type: block
    fields:
        my_fieldset:
            fields:
                first_image:
                    type: image
                second_image:
                    type: image

This will be rendered as:
{
  "my_block": [
    {
      "image": {
        "file": "images/filename.jpg",
        "url": "http://hostname.com/files/",
        "thumbnail": "http://hostname.com/thumbs/400x300/images/filename.jpg"
      },
      "_block": "my_fieldset"
    }
  ]
}

Fixed via #89


Add support for LinkedInBot

We've run into an issue when sharing maglev pages on linked in, no preview was created.
While debugging the page with https://www.linkedin.com/post-inspector, we discovered that maglev returns a 404 status when LinkedIn attempted to generate the preview.

2024-04-04 21:37:41.697175870 +0200 CEST[router] method=GET path=“/livre-blanc” host=www.botyglot.com request_id=267c30bc-b22b-4d1d-95f7-975c3be6f9f1 container=web-1 from=“<IP_ADDRESS>" protocol=https status=404 duration=0.008s bytes=1052 referer=“-” user_agent=“LinkedInBot/1.0 (compatible; Mozilla/5.0; Apache-HttpClient +http://www.linkedin.com/)”

This PR fixes the issue.

thank you @dlupu 🙏


Hack Containers -> Hack Arrays

Internals fixed in 4.x
API remains as Hack Containers.

closes #232
#239 fixes this


Is there a way to disable auto-formatter for a block of code?

@ip There is not way to disable the formatter for a specific block of code. Can you help me understand what you're trying to do?

There are cases when you want to preserve the formatting. Other code formatters usually allow this with a special comment like // disable-autoformat. The best way is one where the comment disables formatting for the AST node after it (like Prettier does), simpler ways are when the comment disables formatting of the next line (option 2) and a block of code with an opening an closing comment (option 3).

If you are using Prettier, you can use '// prettier-ignore' in JS environments.


remove file path from rename popup

Before

After

Ideally we'd have just used displayName, but seems like a reasonable change either way. Thank you!


LOCUS maximum accuracy mode for GT trajectory

Hi,
I want to create a ground truth trajectory with LOCUS. I already managed to sucessfully load a prior scanned map into LOCUS and record the odometry msgs for further use with evo. Are there some parameters other than the b_run_with_gt_point_cloud and b_add_keyframes_enabled that have to be changed for LOCUS to run at maximal accuracy sacrificing real-time, as mentioned in the odometry dataset?
Thank you in advance!

Thanks for your question Telios. The two settings you mention are the most important. For the reference of others looking to do the same:

b_run_with_gt_point_cloud - set to true here.
gt_point_cloud_filename - your filename for the prior map (.pcd file) here
b_add_keyframes_enabled - set to false here

For the tuning mentioned in the readme, it is a bit of an iterative process for the specific dataset you are working with.
Some tuning factors to consider include.

Try increasing the number of points coming out of the filter. The relationship here between more points and better results wasn't that direct from our experience, but if you have a nice ground truth scanned map, then I would expect more points to help. Set this to a higher number.
Adjust the GICP parameters for the scan-to-map step here. I would start with increasing iterations so that never limits it. Depending on your scan resolution and filtering settings of the scans, you may want to decrease corr_dist here, so points need to be closer to be considered matches (avoiding potentially incorrect matches). You might consider looking at decreasing tf_epsilon if that is causing exits from the optimization, but I don't think that is likely to make a large difference.
Depending on your data quality, remove any data integration (set this to 0) - to just prioritize the lidar data. If you trust your calibration to IMU or other odometry source, then leave it on. We tended to bias toward the map being the source of truth, which is only linked with lidar - hence we ignored other sensor sources for the ground truth generation.
Definitely try running at a slower speed (rosbag play filename.bag -r 0.1 for instance)
You might want to increase the lidar queue size (here) depending on the rate that you are running, to make sure you don't drop any scans (it will just delay the output pose, which is fine for this).

Other than these, there may be more fine adjustment of the GICP parameters in here, but hopefully you don't need that.

Thank you very much for this detailed answer! This will definetly improve the accuracy of my GT trajectory. You guys made an awesome project!


The outputs are splitted to tabs for each data type, after reloading the notebook

If the cell has multi type outputs, after reloading the notebook, the outputs are splitted to tabs for each data type.
Before reloading

After reloading

Fix by #17


Unable to kick players from town

I've tried to kick multiple members from my town (Stole from me, innapropriate usernames etc.) and upon using the command /town kick [username] I am given an error message saying Invalid user, I don't know if the issue only prevents kicking players that are offline, or all players.

Next time the server restarts there should be a fix for this. It will need to be re-tested at that time.


Sorters suddenly disconnect after loading a save.

Only mod that I have installed is this one.
Not sure this is a bug with this mod, or simply with the fixVersion for this DSP release.
Game version is 2<IP_ADDRESS>89476
Has happened 3 times, so I'm certain at this point that they were previously linked. The container full of wind turbines is proof too, as I only set this assembly line up one time.

Thank you for the report @connorcrothers.  I'm unsure what game version 2<IP_ADDRESS>89476 is.  I've tested on the latest mod version 1.1.0 with the latest DSP game version <IP_ADDRESS>03, and I'm unable to reproduce this problem.  My mod doesn't handle the inserters at all.  They're handled automatically by the game.  My mod has code to deal with every other belt interface type.  So if there is an issue, it's in the lack of some support rather than a bug in an existing part of the implementation.  So I would need to be able to reproduce the problem to see what my mod isn't doing.  Is there any chance you'd be able to tell me how to reproduce the issue?

*<IP_ADDRESS>78

I guess I was looking at the executable's "Product Version"

Noted. Thanks for clarifying. Must have been something else that caused it.

@GreyHak I also often encounter this problem, just now I reproduced this problem on the latest version: DSP_Main-<IP_ADDRESS>63 BepInEx-5.4.11 DSP_Belt_Reverse_Direction-1.1.1
So I created a new clean configuration on r2modman, and created a new map for testing

Then I unlocked the necessary tech and started testing, sorters disconnect after S/L

@muink Thank you for the video.  I've reproduced the issue.  It appears that outgoing connections stay working, but incoming connections get broken.  Reopening report.

@cdcrothers and @muink This issue should be fixed in v1.1.2.  Thank you again for the report.


Bug, always crit

if i write " !rolld 20+15 " the die will always be 20, at least in my server
tested a lot of times

That's not rolling a d20 and adding 15, that's just doing 20 (raw number) + 15. Do !roll d20 + 15.

Yeah, but it only works with 20, try, like !rolld 37+4 or !roll 92+13
Il ven 29 mar 2019, 20:53 Schuyler Cebulskie<EMAIL_ADDRESS>ha
scritto:

Closed #18 https://github.com/Gawdl3y/discord-rpbot/issues/18.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Gawdl3y/discord-rpbot/issues/18#event-2240291650, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AucOw9FBsjFFZkspLSWFcNLc4JLrlg0tks5vbm8ogaJpZM4b60iG
.


[forwardport] Add nodepool validator

Dependent on Forwardport: https://github.com/rancher/rancher/pull/24042 and https://github.com/rancher/norman/pull/320

lgtm


Fix scope attaching issue to the runtime:pricipal

Purpose
As $subject, this will fix the scope attaching issue to the runtime:pricipal
Here this PR corrected the claim name as scope.
Fixes

https://github.com/ballerina-platform/ballerina-lang/issues/33539

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


description < 140 symbols

Needed for bower validation: https://github.com/bower/json/blob/master/lib/json.js#L108

Thanks for your contribution, @TrueDrago.
I created a separate fix, as the bower-json validation also had issues with the multiple CSS and JS files listed in the main property.


cloudflare-quic tests are failing

All of the cloudflare-quic tests are now failing, making me suspect an incompatibility between how we're negotiating the connection. There is no real error message being returned, just a ConnectionClosed blaming crypto with an error code of 120.
As far as I can tell, everything about this crate is still working correctly.

Yeah, Cloudflare dropped support for old QUIC versions, so the ALPN just had to be adjusted.


Add feature: Function name improvment

I implemented it today to generate documentation of function calls inside my module
I use the Find-FUFunction and Write-FUGraph function
in the both case, the function name returned have the case of the name modified and it's more
difficult to read
for exemple, 'Find-FUFunction' become 'Find-Fufunction' and , in my case, funcitons like 'Get-PhysicalLocationByName' become 'Get-Physicallocationbyname'
Maybe good to have a switch to preserve the original name ? and everything is based on the display of the first occurence

I have a workaround for Find-FUFunction, I use the .RawFunctionAST.Name in place of the .Name of the object
$FunctionList = Find-FUFunction $PSM1Path Foreach ($Fction in $FunctionList) {      $Fction.RawFunctionAST.Name }

looking for the Write-FUGraph, I see 2 different approach:

add a switch
->
1.1 change the 2 functions in class FUUtility::getFunction to have 1 more parameter to keep the original format
1.2 add switch to Find-FUFunction (like -KeepFunctionNameFormat) and change the call when creating the object to take it in count
1.3 add switch to write-fugraph (like -KeepFunctionNameFormat) and add it when calling find-function

OR

add just a parameter to write-FUgraph to allow to pass to it the data
if not present, just call the find-function
if present, don't call find-function and use the array in parameter

it's fast and allow to do the trick, we call ourself the find-fufunction command, change the display name and send it to generate the graph
it allow also to be more logic with the name of the function, write-FUgraph generate a graphic and, normally, doesn't have to retrieve the data (but keep the data retrieval to avoid breaking change)

I think i normalize the name of the function because, if the for example you have two calls for the same function, and they are spelled differently ( for example get-something and Get-SomeThing) you'll have two different entries ..., but i can still implement the functionnality if you wish !

ok @Lasio74 so, i'm going to make some changes. And as discussed in slack, you are right, write-fugraph should only output a graph... ! dont remember why i build it the way it is now.
Write-FUGraph should only accept [FuFunction[]] objects ... !
I'll also implement the requested feature !

code available in the Issues Branch ! keep me informed :)
-notitlecase switch for find-fufunction
write-fufunction now accepts data from find-fufunction via the -inputobject parameter


Describe icon usage

Looking to implement the placement of an icon in the button I discovered this is already possible.
using the $(icon-name) syntax.
The names of the possible icons are listed here: https://code.visualstudio.com/api/references/icons-in-labels#icon-listing
Example:
"label": "$(notebook-move-down) [Debug] Build",
I can add a little description to the readme.md if desired?

That would be great!
It might make sense to show that it's possible to use emojis for labels while you are there. example.
Apologies for the slow replies, I plan on coming back to this project and doing some cleanup but I have been really busy as of late.
Appreciate your efforts pal.

I did not know you can also add emoji's. I made a pull request with the changes
https://github.com/spencerwmiles/vscode-task-buttons/pull/19
No worries about the reply times. We are half a world apart anyway (time difference...)


Fix: random seed set to int if not provided, support reproducible runs

set random seed to an int in 0 to (2**32)-1 if it is not specified in the YAML configuration file. This enables runs to be reproducible, even if the seed is not set explicitly.
closes #58

I see, so we set the seed by default and record it, which gets around the whole "random states are easily recorded and reinstantiated." problem.
However, I am curious how we should handle starting from checkpoints in this framework. Should we also eventually include a way to record the random state and just start by using the random state?

I am curious how we should handle starting from checkpoints in this framework. Should we also eventually include a way to record the random state and just start by using the random state?

Good question, I hadn't thought about checkpointing.
I think the way to implement checkpointing (#57) is to write a single .npy file to disk every N timesteps. In the OG checkpointing implementation, the grids are all written to different .npy files, but it should be straightforward to pack the grids, time-status, etc, into one file and write to disk.
So, for the random state, I agree with your idea. We would do a quick rs = np.random.get_state, and then pack rs into the checkpointed .npy file. Then when loading, just set the random state to rs.


Add and update images in UG

Describe your changes

Reflect latest changes
Add annotations for user readability

Issue ticket number and link
closes #225
relates to #154
Checklist before requesting a review

[X] I have performed a self-review of my code.
[X] If it is a core feature, I have added thorough tests.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:


Final tests

Coverage increased (+23.5%) to 100.0% when pulling a3cb326fc319f5f46b08ba3072fd95fdb238ff13 on final-tests into 8bb4d14e2272dcfe2714b50b545fad6ca2978dbd on master.


Shield slot not saved

Shield slot not saved when saving build(shield removed on save)

This is fixed but not yet released (together with a bunch of other equipment related stuff).


Signals are getting stale values inside async methods within a Suspense

Describe the bug
When running under <Suspense> in async functions, signal setters seem to revert/not keep the actual signal value. The example provided uses a createResource call which is setting a signal (which is only set in that function). Before the await, the signal works fine - after the await however, the signal seems to revert back to whatever state it had before. As pseudo-example code:
async () => {
  signal(); // Signal is 0
  setSignal(i => i + 1); // Signal is now 1
  await Promise.resolve(); // any async method (cb); in particular any function that does neither read nor set the signal
  signal(); // Signal is 0
  setSignal(i => i - 1); // Signal is now -1
};

I've tried to make a minimal example using the (limited) knowledge that I have. It's important to note that it seems to work fine when browsing directly to the affected page (i.e. the issue does not pop up and the setters behave as expected), but it happens whenever the component housing this logic is navigated to (either from another component, or from itself to another component an then back).
Your Example Website or App
https://stackblitz.com/~/github.com/LinqToException/solidjs-signal-suspensethingy
Steps to Reproduce the Bug or Issue

Using the sample provided, open the page on /bork. working() should report 0.
 Working should report -1.

The produced output should be similar to:
pre-inc: 0
inc working from 0 value 0
post-inc: 1
pre-cb: 1
post-cb: 0
pre-dec:  0
dec work from 0 value 0
post-dec -1

(note the change of the value pre/post cb).
Expected behavior
I expect the signal to keep its value after awaiting another method.
Expected output should be similar to:
pre-inc: 0
inc working from 0 value 0
post-inc: 1
pre-cb: 1
post-cb: 1
pre-dec:  1
dec work from 1 value 1
post-dec 0

Screenshots or Videos
No response
Platform

OS: Windows
Browser: Firefox
Version: 126

Additional context
The issue happens in pure client-side solid, i.e. there's no hydration or similar going on.
There are two workarounds that seem to "mitigate" this problem:
1.It does not occur if the component in question is not under a <Suspense>
2. It does not occur if the code querying or setting the signal post-await is executed delayed (setTimeout(..., 0)).

Thanks for the detailed report. I'm going to take a look. My guess is the router is involved and the router use Transitions on navigate which would keep the values in the past. But I will see if I can figure out what is going on.

Thank you for taking the time to analyze the issue.
As someone who's a more "casual" TS/JS developer, especially when it comes to reactivity, I find it a bit hard to follow some of those things you've mentioned however - as in, I suppose I can understand that this is an anti-pattern (as async and reactivity seem to be a bit awkward), but what would the "proper" pattern look like?
This is something that makes me feel a bit "left out in the rain" so to speak, especially when it comes to routing/resources. In this case, the basic idea for me was to have a fetch-operation that I could then query for the UI (i.e. <input disabled={fetchIsRunning()} />). The original code had a bool (with the same issues), but since I had multiple fetches that triggered the same lockout, I've moved it into a counter (as an attempt to circumvent this issue).
Suspense/Transitions itself do not necessarily work nicely for me in this case either, because they appear to be too wide-meshed (i.e. can't disable one processing form while offering the user to work on another one on the same page).


Improve: Collaborative editing

Currently, it works with the Real-time database of firebase, thanks to Firepad ❤
We have to add things like:

Showing users editing this particular doc
Assigning colors to their cursor
Show name on hovering cursor of others
Invite someone
Kick someone

The functionality has been partially implemented in the pull request #6 . This needs to be worked on further to complete the callback functions child_added and child_removed. Also, the current user needs to remove themselves when they close tab, log out or show themselves as "away" when they switch to another tab/window.

I would like to take this up.

@Asurari30 Please share the status of the issue. We were thinking of breaking this issue into smaller ones, so multiple people can take up different tasks within this one. Let me know where you are on the progress of this issue.

Please break it up. Due to my lack of knowledge in firebase and firepad I'm stuck. I'm still trying to understand issue 6 and I've commented there.

@Asurari30 Marked this issue as epic and broken it down. Please see the referenced issues for details.


source ocs-operator CSV in OCP CI

Signed-off-by: Jose A. Rivera<EMAIL_ADDRESS>

Great update, should we test once more with a injected error on top (in a separate PR) whether verify-latest-csv now fails as desired?

Certainly, error pushed.

Failure confirmed with dummy commit: https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift_ocs-operator/962/pull-ci-openshift-ocs-operator-master-verify-latest-csv/1339297432827072512

/test ocs-operator-ci

/test ocs-operator-ci


Data: project addition by MisterMicket

Add a new project to the list
I want to add my Portfolio Website.
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSoC'23 contributor
[X] I want to work on this issue

you don't need to create multiple issues project addition at a time


Fix "standalone" include issue by adding header boost/type_traits/is_…

PR fixing issue: https://github.com/boostorg/tokenizer/issues/9
(Quite new to submitting PR, let me know if anything is wrong)

Did this run CI builds?  They should be configured but I see no status.

I tested it locally. I have not seen CI builds for awhile in any changed library.

I just toggled the Travis and Appveyor CI builds off and on.  CI should run on PRs.
Travis: PASS https://travis-ci.org/boostorg/tokenizer/builds/444727886
AppVeyor: FAIL https://ci.appveyor.com/project/jeking3/tokenizer-c6pnd/builds/19694861
Need to see if it's environmental.

Re-running AppVeyor: https://ci.appveyor.com/project/jeking3/tokenizer-c6pnd/builds/19702415


add enable flag and read flag to shroom book interaction

This adds a couple of flags to the ShroomBookInteraction entity.
enableFlag determines whether the entity appears on load and can be used the make the entity only appear in a room under specific circumstances or show a different image depending on a flag (by having two entities with inverse enableFlag conditions). The flag can be inverted with a ! prefix so that the entity only appears when the flag is false.
readFlag is set or cleared after the player finishes reading. This can be used to trigger other events using an activator trigger (here is an example using the flag to trigger a dialogue response to the note https://www.youtube.com/watch?v=CvndGXE4KXk). The flag can be prefixed with ! to clear it instead of setting it.

Did some clean-up + added Ahorn support. Thanks for the contribution!


spdk: missing accel_crypto_key_destroy

https://github.com/opiproject/opi-spdk-bridge/blob/main/pkg/server/middleend.go
we only create key and never remove it...
probably also in UpdateEncryptedVolume need to remove/destroy key before creating a new one ?

waiting on https://github.com/spdk/spdk/issues/2904


feat(SPV-910): apply linter to engine package

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
Attention: Patch coverage is 47.95918% with 204 lines in your changes missing coverage. Please review.

Project coverage is 49.35%. Comparing base (40c62e9) to head (be30ae0).

Additional details and impacted files

@@            Coverage Diff             @@
##             main     #640      +/-   ##
==========================================
+ Coverage   48.89%   49.35%   +0.45%
==========================================
  Files         259      253       -6
  Lines       11531    11483      -48
==========================================
+ Hits         5638     5667      +29
+ Misses       5309     5229      -80
- Partials      584      587       +3

Flag
Coverage Δ

unittests
49.35% <47.95%> (+0.45%)
:arrow_up:

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

Files
Coverage Δ

config/validate_cachestore.go
100.00% <100.00%> (ø)

config/validate_new_relic.go
100.00% <100.00%> (ø)

engine/beef_tx_mock.go
100.00% <100.00%> (ø)

engine/chainstate/broadcast.go
60.60% <100.00%> (ø)

engine/chainstate/chainstate.go
52.63% <ø> (ø)

engine/chainstate/merkle_root.go
85.71% <100.00%> (ø)

engine/chainstate/merkle_root_provider.go
73.33% <100.00%> (ø)

engine/client_internal.go
94.38% <100.00%> (+0.06%)
:arrow_up:

engine/datastore/where.go
100.00% <100.00%> (ø)

engine/db_model_transactions.go
65.26% <100.00%> (+0.36%)
:arrow_up:

... and 86 more

Continue to review full report in Codecov by Sentry.

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


[action] allow filtering by build configuration in update_code_sign_settings

Motivation and Context
Allow finer grain control to update build settings only at a configuration level
Description

Iterate over all of the build configuration separately instead of modifying all at a target level

          1 Warning

:warning:
Big PR

  Generated by :no_entry_sign: Danger


[BUG] pytest is crashing on MacOS

pytest is now crashing messily on macOS and presumably Linux as well. This crash happens when one or more physical lights are attached to the testing host. The pytest run will complete successfully if no lights are attached. Not exactly confidence inspiring.
$ pytest
============================= test session starts ==============================
platform darwin -- Python 3.9.10, pytest-7.0.1, pluggy-1.0.0
rootdir: /Users/ejo/local/busylight, configfile: pyproject.toml
plugins: anyio-3.5.0, cov-3.0.0
collected 98 items

tests/api/test_routes.py ...........Fatal Python error: Illegal instruction

Current thread 0x000070000a78a000 (most recent call first):
  File "/Users/ejo/local/busylight/busylight/lights/usblight.py", line 120 in first_light
  File "/Users/ejo/local/busylight/busylight/lights/usblight.py", line 170 in all_lights
  File "/Users/ejo/local/busylight/busylight/lights/usblight.py", line 179 in all_lights
  File "/Users/ejo/local/busylight/busylight/manager.py", line 173 in update
  File "/Users/ejo/local/busylight/busylight/manager.py", line 86 in __init__
  File "/Users/ejo/local/busylight/busylight/api/__init__.py", line 84 in startup
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 598 in startup
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 518 in __aenter__
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 621 in lifespan
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 645 in __call__
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/starlette/exceptions.py", line 58 in __call__
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/starlette/middleware/base.py", line 22 in __call__
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/starlette/middleware/errors.py", line 146 in __call__
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/starlette/applications.py", line 112 in __call__
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/fastapi/applications.py", line 212 in __call__
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/starlette/testclient.py", line 540 in lifespan
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/anyio/from_thread.py", line 187 in _call_func
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/events.py", line 80 in _run
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 1890 in _run_once
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 596 in run_forever
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 629 in run_until_complete
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/runners.py", line 44 in run
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 233 in run
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/anyio/_core/_eventloop.py", line 56 in run
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/concurrent/futures/thread.py", line 58 in run
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/concurrent/futures/thread.py", line 83 in _worker
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 910 in run
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 973 in _bootstrap_inner
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 930 in _bootstrap

Thread 0x000070000cba8000 (most recent call first):
  File "/Users/ejo/local/busylight/busylight/lights/thread.py", line 76 in run
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 973 in _bootstrap_inner
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 930 in _bootstrap

Thread 0x000070000bb22000 (most recent call first):
  File "/Users/ejo/local/busylight/busylight/lights/thread.py", line 76 in run
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 973 in _bootstrap_inner
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 930 in _bootstrap

Thread 0x00000001165af600 (most recent call first):
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 312 in wait
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/concurrent/futures/_base.py", line 441 in result
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/anyio/from_thread.py", line 240 in call
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/starlette/testclient.py", line 524 in __enter__
  File "/Users/ejo/local/busylight/tests/api/test_routes.py", line 70 in test_all_routes
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/_pytest/python.py", line 192 in pytest_pyfunc_call
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/pluggy/_callers.py", line 39 in _multicall
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/pluggy/_manager.py", line 80 in _hookexec
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/pluggy/_hooks.py", line 265 in __call__
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/_pytest/python.py", line 1718 in runtest
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/_pytest/runner.py", line 168 in pytest_runtest_call
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/pluggy/_callers.py", line 39 in _multicall
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/pluggy/_manager.py", line 80 in _hookexec
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/pluggy/_hooks.py", line 265 in __call__
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/_pytest/runner.py", line 261 in <lambda>
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/_pytest/runner.py", line 340 in from_call
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/_pytest/runner.py", line 260 in call_runtest_hook
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/_pytest/runner.py", line 221 in call_and_report
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/_pytest/runner.py", line 132 in runtestprotocol
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/_pytest/runner.py", line 113 in pytest_runtest_protocol
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/pluggy/_callers.py", line 39 in _multicall
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/pluggy/_manager.py", line 80 in _hookexec
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/pluggy/_hooks.py", line 265 in __call__
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/_pytest/main.py", line 347 in pytest_runtestloop
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/pluggy/_callers.py", line 39 in _multicall
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/pluggy/_manager.py", line 80 in _hookexec
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/pluggy/_hooks.py", line 265 in __call__
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/_pytest/main.py", line 322 in _main
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/_pytest/main.py", line 268 in wrap_session
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/_pytest/main.py", line 315 in pytest_cmdline_main
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/pluggy/_callers.py", line 39 in _multicall
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/pluggy/_manager.py", line 80 in _hookexec
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/pluggy/_hooks.py", line 265 in __call__
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/_pytest/config/__init__.py", line 165 in main
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/lib/python3.9/site-packages/_pytest/config/__init__.py", line 188 in console_main
  File "/Users/ejo/Library/Caches/pypoetry/virtualenvs/busylight-for-humans-ir4E6IDB-py3.9/bin/pytest", line 8 in <module>

The crash report from macOS: crash-report.txt
I suspect this is a HID API thread safety issue (it's not and I was not aware of that until this happened).
This appears to be where things went off the rails in the crash-report above:
Thread 15 Crashed:
0   libsystem_kernel.dylib        	    0x7ff80e28d112 __pthread_kill + 10
1   libsystem_pthread.dylib       	    0x7ff80e2c3214 pthread_kill + 263
2   libsystem_c.dylib             	    0x7ff80e1d21c4 raise + 26
3   libsystem_platform.dylib      	    0x7ff80e2d8e2d _sigtramp + 29
4   ???                           	    0x7ff84faee7a0 _Block_destructInstance + 8
5   ???                           	       0x500583000 ???
6   CoreFoundation                	    0x7ff80e364ce0 CFRunLoopAddSource + 973
7   IOKit                         	    0x7ff810ca3181 IOHIDDeviceScheduleWithRunLoop + 74
8   IOKit                         	    0x7ff810ca7506 __IOHIDManagerDeviceApplier + 527
9   IOKit                         	    0x7ff810c6a58c __IOHIDManagerDeviceAdded + 766
10  IOKit                         	    0x7ff810c6a190 __IOHIDManagerSetDeviceMatching + 347
11  IOKit                         	    0x7ff810c69ffe IOHIDManagerSetDeviceMatchingMultiple + 254
12  IOKit                         	    0x7ff810ca6323 IOHIDManagerSetDeviceMatching + 78
13  hid.cpython-39-darwin.so      	       0x1076d400b hid_enumerate + 379
14  hid.cpython-39-darwin.so      	       0x1076d36ab __pyx_pw_3hid_1enumerate + 459
<elided>

It looks like calling hid.enumerate outside the main thread initiated the crash.

Using busylight to control lights isn't tickling the bug, so it's more than likely a bad assumption in the pytest fixtures.

Starting with 0.17.0, the threading model has been replaced with asyncio. No more crashes in tests.


Add a module to apply updates every k steps (and accumulate them othe…

…rwise)

Looks great!

Tests added!
The tolerance is quite high absolute tolerance is 1e-6 and the relative tolerance is 100.
I tried lower tolerance high absolute tolerance is 1e-10 and the relative tolerance is 1e-5 but the test would fail on TPU.
I am not sure this solution is good though. What is recommended to handle the lower numerical precision on TPU?

We can just skip the test on the TPU; look for the jtu.skip_on_devices helper.

I'll merge, then mark this test as skipped on TPU.

I confirmed internal tests pass after merging this (and after cc53aa9).


Code formatting shortcut messes the format

@lahirus : What is the plugin version you are using? Can you update it to the latest version? (0.8.8)

Updating fixed the issue.


Introduce withCount method

https://laravel.com/docs/5.8/eloquent-relationships#counting-related-models

good!

Are you going to merge it?

Ill still  need help


Fix 10 more warnings 197 -> 187

Sorry for not getting around to this one, had an pressing deadline on gateways in process so warnings in ProcessEngine got fixed when working on the process. Could you resolve conflicts with main?


TypeError: unsupported operand type(s) for /: 'tuple' and 'str'

I have just discovered this library. But the example is not even running and there seems to be a problem which may be related to the issue reported here. What is the work-around just to get the library going - any older versions which would work?
We use poetry for package management
[tool.poetry.dependencies]
python = "^3.10"
fastapi-code-generator = "^0.3.4"
fastapi = "^0.74.1"

path = root / "pyproject.toml"

TypeError: unsupported operand type(s) for /: 'tuple' and 'str'

Having the same problem with a clean virtualenv on python 3.8.12 and 3.10.2.

Having the same issue on Python 3.9.7, fastapi-code-generator 0.3.4 and datamodel-code-generator 0.11.15 on Windows.

Quick fix:
In the source code /python3.9/site-packages/datamodel_code_generator/format.py:
I have changed manually in line 45
path = root /  "pyproject.toml"
to
path = root[0] /  "pyproject.toml"
The project was generated automatically after this change.

Thanks asik03 it works again :)
Also in /python3.9/site-packages/datamodel_code_generator/__main__.py line 432 had to be changed from:
pyproject_toml_path = root / "pyproject.toml"
to:
pyproject_toml_path = root[0] / "pyproject.toml"

This is fixed in 0.3.5. Thanks!

I think this issue should be closed.

Hi @koxudaxi,
When do you plan to publish the new changes to pypi?
Thank you!

@jcarlosgalvezm It's already published in 0.3.5 release


TaskEventLog class seem to have some default filtering operations?

I use TaskEventLog class to get a log of a scheduled task, but the number of views viewed from windows and seen from the code seems inconsistent, is there a default filtering of certain types of data? （There seems to be some warning logs that will be ignored, but I didn't find a description of this part in the document, did I not see it carefully enough?）
In windows ：

In code：

Were you able to find the answer on your own? For curiosity, what caused what you were seeing?


feat(trin-execution): add withdrawal support

What was wrong?
trin-execution didn't support withdrawals
How was it fixed?
by implementing them

@morph-dev this PR is ready for review


POC for a session/cookie based sitcky load balancer implementation.

Possible implementation for #689, meant as a discussion starter (no tests, not wired up to anything).
How it works
The StickySessionLoadBalancer looks for a server id in the scg-instance-id cookie (not married to that name).
If a cookie value is found and that value is a valid service instance ID, the request is routed to that service instance.
If it is not found or if the value is invalid (perhaps the server is no longer active or unhealthy), then a delegate ReactorServiceInstanceLoadBalancer and the request is routed to that server instead.
Regardless of the path taken, the cookie is updated with the instance ID that the request was routed to.
Assumptions/Requirements
This implementation assumes that caller will pass a ServerWebExchange as the Request Context.
It is also dependent on ServiceInstances having valid IDs (the field is nullable, so it might not be available, right?)
Rough spots
I wasn't seeing any existing context usage, so I just took a stab at it.  Casting from an Object feels a little gross
Future work
Make the cookie name configurable
Make the way the cookie value is customized (people may want to encrypt/hash/do something to not expose server IDs)

Nice and tidy PoC @fitzoh . It was easy to follow 👍 . Some thoughts:
I can imagine that in some architectures other consumers will not be aware of other service instances, only the service id. I'm saying this as service instances are a bit ephemeral and consumers shouldn't need to know what service instance they should point to. Their only outlet should be the load balancer.
The strategy for checking what service instance to "stick to" should maybe be configurable so that any use-case can be plugged in? Some developers maybe have user_id's or affinity_key in the incoming requests and will have to perform HTTP requests towards every service instance to check if they own that specific id or key.
Regarding the usage of context in this case, I think one needs to make changes to the org.springframework.cloud.client.loadbalancer.reactive.ReactorLoadBalancerExchangeFilterFunction which intercepts the incoming request. In there, you would have to extract the appropriate cookie/header/whatever from the incoming ClientRequest and put it inside the Contextobject. One way would be doing it like this:
        Request<?> lbRequest = (request) -> request.attribute("affinity_key")
                .map((Function<Object, DefaultRequest<?>>) DefaultRequest::new)
                .orElse(new DefaultRequest<>());

So if there is an attribute value mapped to key affinity_key it will put that value in Context and create a new Request<> with that context.
And then the ReactorLoadBalancerExchangeFilterFunction would have to first fetch the appropriate load balancer for the specified serviceId:
ReactiveLoadBalancer<ServiceInstance> loadBalancer = loadBalancerFactory.getInstance(serviceId);
and finally shoot your new lbRequest like this:
loadBalancer.choose(request)
which will invoke StickySessionLoadBalancer#choose(Request)
If you want I could make some changes to your PoC, but would like to hear your opinions on this first :)

Nice and tidy PoC @fitzoh . It was easy to follow 👍

Thanks @andaziar!

I can imagine that in some architectures other consumers will not be aware of other service instances, only the service id. I'm saying this as service instances are a bit ephemeral and consumers shouldn't need to know what service instance they should point to. Their only outlet should be the load balancer.
The strategy for checking what service instance to "stick to" should maybe be configurable so that any use-case can be plugged in? Some developers maybe have user_id's or affinity_key in the incoming requests and will have to perform HTTP requests towards every service instance to check if they own that specific id or key.

I'm struggling a little bit to follow this... For reference, I'm not super familiar with the library and haven't used it directly (I'm primarily here because I saw https://github.com/spring-cloud/spring-cloud-gateway/issues/1176#issuecomment-617648408 and have a use case for sticky session in spring-cloud-gateway)

Regarding the usage of context in this case, I think one needs to make changes to the org.springframework.cloud.client.loadbalancer.reactive.ReactorLoadBalancerExchangeFilterFunction which intercepts the incoming request. In there, you would have to extract the appropriate cookie/header/whatever from the incoming ClientRequest and put it inside the Context object.

One caveat here... It wouldn't be sufficient to just grab the value out of the cookie/header, we also need to be able to propagate the selected header back to the user.

If you want I could make some changes to your PoC, but would like to hear your opinions on this first :)

No objections here, but I'm definitely interested to hear what @OlgaMaciaszek has to say

Hi @fitzoh @andaziar, sorry for getting back to you with a delay.
Thanks for the first draft @fitzoh . It's a good start, however, I agree with some remarks pointed out by @andaziar:

I think we should not assume that the client already knows the instance id/ key; so if they do, we should take it from the cookies, but if not, we should pick an instance and propagate the id to the cookies
This will, indeed, require modifying ReactorLoadBalancerExchangeFilterFunction to pass this value both ways, however, rather than just passing along that cookie value, I think it makes sense to start propagating the entire ClientRequest and ClientResponse objects (this has also been suggested in https://github.com/spring-cloud/spring-cloud-commons/pull/733#issuecomment-622670619)

Apart from this, I think we can handle the cookies using ClientRequest objects that get passed via the LoadBalancerExchangeFilterFunction rather than ServerWebExchange.
I have created the first draft of possible LoadBalancerExchangeFunction changes so that we can discuss it here: https://github.com/spring-cloud/spring-cloud-commons/pull/769. Let me know what you think?
Also, I'm going back to finishing up this PR now: https://github.com/spring-cloud/spring-cloud-commons/pull/733 - will include the changes with passing along the ClientRequest and ClientResponse there. After the final version of that is merged, you could resubmit your sticky session PR as well.
CC @spencergibb @andersenleo

@fitzoh you can also keep an eye on https://github.com/spring-cloud/spring-cloud-commons/pull/733 as the discussion about modifying which data is going to be passed along through requests and responses will probably take place there.

Hi ,
Could you please let me know if the sticky session implementation is complete?Is there any docs on the usage?

Hi, @fitzoh Would you like to continue working on this? If yes, please merge the current master (that now passes the ClientRequest object to the LB via ReactorLoadBalancerExchangeFilterFunction, switch your implementation to using the requests and add some tests. If you don't have time to work on it now, please let me know - I will get it done.

Interested in picking it back up, not sure on the timeline.
if it was something you were going to prioritize I would say go for it.

Ok @fitzoh, could you give me some kind of estimate? If it's up to a month, we could wait. If it's longer, I'd rather get it done earlier. Let me know.

Ok @fitzoh, could you give me some kind of estimate? If it's up to a month, we could wait. If it's longer, I'd rather get it done earlier. Let me know.

Sorry for the delay @OlgaMaciaszek , I'd so go ahead and implement it


Add tauri e2e test for auth on Linux

Finally making this ready for reviews. Allows for a tauri-driver test of the sign in and sign out flow in KCMA on Ubuntu. I’m using an env var to have main.rs dump the user_code in a /tmp file, which I’m really not happy about but I don’t have a better solution at the moment, let me know you if have any ideas!

I get eslint undefined errors

Oh unless it was my fault because I didn't run yarn install or something when I checked out the branch.

I get eslint undefined errors

Oh unless it was my fault because I didn't run yarn install or something when I checked out the branch.

Oh hey thank you for going through this! Yeah I worked of a copy/paste from the docs and didn't really give it second thoughts. The response is in https://webdriver.io/docs/api/globals/, just added the import in https://github.com/KittyCAD/modeling-app/pull/1040/commits/7ae9a244c915994cd92af70f056d3035301fbccc


python36Packages.filelock: 3.0.9 -> 3.0.10

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.6-filelock/versions.
meta.description for python36Packages.filelock is: '"A platform independent file lock for Python"'.

Checks done (click to expand)

built on NixOS

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 3.0.10 with grep in /nix/store/swyjvmrf8qd1gxxk4jqrwzhq0al8sw73-python3.6-filelock-3.0.10

directory tree listing: https://gist.github.com/ba7fa5fffb6e8435ac5bcb74135f568c

du listing: https://gist.github.com/58e1f93098faaf9ba19f7b1d563c933e

Outpath report (click to expand)

Outpath difference report
16 total rebuild paths
4 package rebuilds
4 x86_64-linux rebuilds
4 i686-linux rebuilds
4 x86_64-darwin rebuilds
4 aarch64-linux rebuilds
First ten rebuilds by attrpath
python27Packages.chainer
python27Packages.filelock
python36Packages.chainer
python36Packages.filelock

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/swyjvmrf8qd1gxxk4jqrwzhq0al8sw73-python3.6-filelock-3.0.10 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(r-ryantm's Cachix cache is only trusted for this store-path realization.)
Or, build yourself:
nix-build -A python36Packages.filelock https://github.com/r-ryantm/nixpkgs/archive/9e8fa9154d3a72167d71205219419267f3d470fe.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/swyjvmrf8qd1gxxk4jqrwzhq0al8sw73-python3.6-filelock-3.0.10
ls -la /nix/store/swyjvmrf8qd1gxxk4jqrwzhq0al8sw73-python3.6-filelock-3.0.10/bin

cc @hyphon81 for testing.

Success on x86_64-darwin (full log)
Attempted: python36Packages.filelock
Partial log (click to expand)
reading manifest file 'filelock.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'filelock.egg-info/SOURCES.txt'
running build_ext

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
/nix/store/hgsw3dfarhssccnq3f8gapv5xy535c73-python3.6-filelock-3.0.10

Success on aarch64-linux (full log)
Attempted: python36Packages.filelock
Partial log (click to expand)
reading manifest file 'filelock.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'filelock.egg-info/SOURCES.txt'
running build_ext

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
/nix/store/9bssdhrwmlg0xbzyb495dlgyjhy9wn2x-python3.6-filelock-3.0.10

Success on x86_64-linux (full log)
Attempted: python36Packages.filelock
Partial log (click to expand)
reading manifest file 'filelock.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'filelock.egg-info/SOURCES.txt'
running build_ext

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
/nix/store/swyjvmrf8qd1gxxk4jqrwzhq0al8sw73-python3.6-filelock-3.0.10


Cons less when decoding bignums

Fixes #3098.
Plans of attack
Below we sketch a few ways how the buffer's first few bytes worth of prefix can be inspected and decoded, given a (S)LEB EOM bit can be seen.
Pedestrian 🚶🏻♂

pull a byte, speculate for EOM, prepare result if so
pull second byte, speculating, combine two bytes to result if EOM
etc. if no EOM seen, fall back

I have that for 2 bytes in f5af7ef and it works, but seems like a maintenance nightmare and it bloats Wasm.
Car 🚘

have a loop inline with max 5 byte pulls from the buffer

Rocket 🚀

pull 8 bytes from buffer if possible
mask for EOMs and surplus bits (SLEB needs a repeated-sign test), if not found, fall back
move 7 bit groups to result

What the fresh hell!!!
test-qc>     intra-actor:                    FAIL (8.63s)
[6725](https://github.com/dfinity/motoko/runs/5759216498?check_suite_focus=true#step:7:6725)
test-qc>       *** Failed! Assertion failed (after 29 tests and 2 shrinks):
[6726](https://github.com/dfinity/motoko/runs/5759216498?check_suite_focus=true#step:7:6726)
test-qc>       Matching (Pair (Ctz (Lit 248)) (Lit (-2)),(NatN 3,IntN (-2)))
[6727](https://github.com/dfinity/motoko/runs/5759216498?check_suite_focus=true#step:7:6727)
test-qc>       STDERR:
[6728](https://github.com/dfinity/motoko/runs/5759216498?check_suite_focus=true#step:7:6728)
test-qc>       Error: failed to run main module `matchLocally.wasm`
[6729](https://github.com/dfinity/motoko/runs/5759216498?check_suite_focus=true#step:7:6729)
test-qc>       Caused by:
[6730](https://github.com/dfinity/motoko/runs/5759216498?check_suite_focus=true#step:7:6730)
test-qc>           0: WebAssembly failed to compile
[6731](https://github.com/dfinity/motoko/runs/5759216498?check_suite_focus=true#step:7:6731)
test-qc>           1: WebAssembly translation error
[6732](https://github.com/dfinity/motoko/runs/5759216498?check_suite_focus=true#step:7:6732)
test-qc>           2: Invalid input WebAssembly code at offset 1133: type mismatch: expected i64, found i32
[6733](https://github.com/dfinity/motoko/runs/5759216498?check_suite_focus=true#step:7:6733)
test-qc>       Use --quickcheck-replay=361254 to reproduce.
[6734](https://github.com/dfinity/motoko/runs/5759216498?check_suite_focus=true#step:7:6734)
test-qc>       Use -p '/intra-actor/' to rerun this test only.
[6735](https://github.com/dfinity/motoko/runs/5759216498?check_suite_focus=true#step:7:6735)
test-qc>   Encoding
[6736](https://github.com/dfinity/motoko/runs/5759216498?check_suite_focus=true#step:7:6736)

Looking at the wasm, I suspect having loops would reduce the byte code size considerably. Here are the size stats as of 9f06cca1252b370b748e6388514be48df98ee4c4:
$ llvm-nm rts/motoko-rts/target/wasm32-unknown-emscripten/release/libmotoko_rts.a | grep decode_word64 | grep ' T '
00000fbe T bigint_leb128_decode_word64
00001246 T bigint_sleb128_decode_word64

I'm still uncomfortable with the complexity of this code and wonder if the extra perf is worth it compared to the simpler solution suggested above. I'll approved but do worry this might bite us later.
I wonder what @nomeata thinks?

complexity of this code

Some complexity will go away when reading buffer past page boundaries can't trap any more (hopefully with #3090).

https://github.com/dfinity/motoko/pull/3178 adds some more rudimentary tests if you want them.


Added External IP to action result if exist in 'Launch VM'

Some error fixed while deleting VM and Added external ip to action result if exist. README also updated acordingly

This is redundant now. Closing.


window overlay

i cannot set windows overlay property. neither from manifest and neither dynamically

Can you give me an example? In another project i used this lib: https://github.com/pingpongboss/StandOut and it wworks really well.

I set overlay mode first in manifest and doesn’t work
than from code editing your library and doesn’t work.
To work around this problem i set animation of toolbar with nine old android and it seems to work, but i would know if there’s a method to use system overlay

Il giorno 11/mar/2015, alle ore 12:09, madcyph3r<EMAIL_ADDRESS>ha scritto:
Can you give me an example? In another project i used this lib: https://github.com/pingpongboss/StandOut https://github.com/pingpongboss/StandOut and it wworks really well.
—
Reply to this email directly or view it on GitHub https://github.com/madcyph3r/AdvancedMaterialDrawer/issues/13#issuecomment-78244016.

Can you provide example code please?

create an activity and in oncreate(...) method before super.oncreate(...) do this
getWindow().requestFeature(Window.FEATURE_ACTIONBAR_OVERLAY)

or this for older android
supportRequestWindowFeature(WindowCompat.FEATURE_ACTIONBAR_OVERLAY)
not work
than i set it from style and theme apply theme in manifest to the activity.
add to theme this line
    <item name="android:windowActionBarOverlay" tools:ignore="NewApi">true</item>
    <item name="windowActionBarOverlay">true</item>

create an activity and in oncreate(...) method before super.oncreate(...) do this
getWindow().requestFeature(Window.FEATURE_ACTIONBAR_OVERLAY)

or this for older android
supportRequestWindowFeature(WindowCompat.FEATURE_ACTIONBAR_OVERLAY)
not work
than i set it from style and theme apply theme in manifest to the activity.
add to theme this line
    <item name="android:windowActionBarOverlay" tools:ignore="NewApi">true</item>
    <item name="windowActionBarOverlay">true</item>

create an activity and in oncreate(...) method before super.oncreate(...) do this
getWindow().requestFeature(Window.FEATURE_ACTIONBAR_OVERLAY)

or this for older android
supportRequestWindowFeature(WindowCompat.FEATURE_ACTIONBAR_OVERLAY)
not work
than i set it from style and theme apply theme in manifest to the activity.
add to theme this line
    <item name="android:windowActionBarOverlay" tools:ignore="NewApi">true</item>
    <item name="windowActionBarOverlay">true</item>

I found a solution. Will come in the next update.

i make a pull request

Il giorno 12/mar/2015, alle ore 01:29, madcyph3r<EMAIL_ADDRESS>ha scritto:
I found a solution. Will come in the next update.
—
Reply to this email directly or view it on GitHub https://github.com/madcyph3r/AdvancedMaterialDrawer/issues/13#issuecomment-78402571.

did you see it?

I have merged your request. It's a nice solution.


Define machine configuration

Aka. Unit Operation Definition

Need API for

Define tags, expose safe values, read/write, choices
Define commands, expose completion


progress bars not displaying in vscode Jupyter notepad

A few days ago fastprogress stopped working in Jupyter notepads in vscode.
It seems to run without error but does not display anything.
I have the same issue in existing environments (venv) and in newly created environments.
I have reverted to Jan 2023 version of vscode where I know it was working before, but that showed no change.
Running the following code works for console output, but in Jupyter notebook nothing.
Where should I look to try and resolve this issue? Any guidance will be valuable because I have pretty much exhausted my knowledge of fastprogress and what I can do.
from time import sleep
from fastprogress.fastprogress import master_bar, progress_bar

mb = master_bar(range(10))
progress_bar(range(100), parent=mb)

for i in mb:
    for j in progress_bar(range(100), parent=mb):
        sleep(0.01)

I have the exact same problem. Discovered something was wierd since fastai wasn't displaying any bars.

@ElisGrahn I also reverted ipywidgets, but I can verify both the ipywidgets 7.7.* and 8 work fine; I can import and run and successfully display widgets in notebooks that I have tried. fastprogress is working in console mode, of course, but not in notebooks in vscode.
makes working through the fastai courses problematic with local setup, which is disappointing because I want to utilize my GPU (which I have successfully set up, which is the trickier part). But now I've hit this wall.

Also having this issue.  In the meantime, if anyone like myself is still early in the learning process and just needs the epoch data, there is a quick workaround. Add cbs=CSVLogger() to your learner, and then create a quick function to display it. Example:
def train_res():
    train_data = pd.read_csv('history.csv')
    return train_data.head(n=50)

learn = tabular_learner(dls, layers=[500, 250], n_out=1, y_range=(-11,11), loss_func=F.mse_loss, cbs=CSVLogger())

learn.fit_one_cycle(1, 1e-2)
train_res()

Nice workaround! Just want to share that the solution I've currently settled on is to add a TensorBoardCallback() in order to view the models in Tensorboard. Might be a bit overkill, but I felt it was useful to learn how to use it.
cbs=[TensorBoardCallback(n_preds=8)]

Same issue here - no progress bars in vscode :(

Ok, I tried a few different versions of the Jupyter extension and:
v2022.11.1003412109 - works
v2023.1.2000312134 - works, progress bar looks different though
v2023.1.2010391206 - works, progress bat looks different
v2023.2.1000592019 - not working
v2023.2.1200692131 - not working

@bosmart thanks for the effort there, I hadn't been aware it was so easy to revert extension versions in vscode now.

@codermrrob I've opened the following: https://github.com/microsoft/vscode-jupyter/issues/13163

Same issue here. Just started with the course and was wondering why I don't get any output. I played around and found out that with a short sleep between the display.update() calls in the show method of the progress bar it actually outputs something. Might be a race condition somewhere.
Here is my code snippet (I only inserted the time.sleep(0.01), the rest is basically unchanged):
# workaround for displaying progress bar in notebook
import time
from fastai.vision.all import *
from fastprogress.fastprogress import NBMasterBar

class NBMasterBarPatched(NBMasterBar):
    def show(self):
        time.sleep(0.01)
        super().show()

class ProgressCallbackPatched(ProgressCallback):
    def before_fit(self):
        if self.create_mbar: self.mbar = NBMasterBarPatched(list(range(self.n_epoch)))
        assert hasattr(self.learn, 'recorder')
        if self.learn.logger != noop:
            self.old_logger,self.learn.logger = self.logger,self._write_stats
            self._write_stats(self.recorder.metric_names)
        else: self.old_logger = noop

defaults.callbacks = [TrainEvalCallback, Recorder, ProgressCallbackPatched]

# now do your learning
learn...

Another workaround from an older issue, forcing text output for the progress bar:
from fastprogress.fastprogress import master_bar, progress_bar
from fastprogress.fastprogress import force_console_behavior
master_bar, progress_bar = force_console_behavior()

Same issue here. Reverted jupyter extension and it seems to be working. I'll add a comment to the vs-code jupyter issue as well.


Refactor the types of entities that we get from Thoas

Type

refactoring

Related JIRA Issue(s)
https://www.ebi.ac.uk/panda/jira/browse/ENSWBSITES-879
Description
Type definitions of our entities, in essence, describe the full set of properties that can be retrieved from our graphql api. However, we've been using these types, without any modification, when declaring the types of props of our React components.
This gave rise to several kinds of problems:

Components, and occasionally helper functions, did not declare their true data requirements, i.e. the bare minimum of data that is sufficient for them to function properly, but rather reused the graphql response types that contained superfluous data.
We lied to our type checker by pretending that a component had access to many more fields on an entity than what it actually requested or received from its parent (e.g. all the fields of the Gene type and of all of its nested types).
There was no correspondence between what data a component actually requested using a graphql query, and the types that we declared that this component received.

This PR addresses the first and the second of these problems. Now components declare in their prop types only the bare minimum of data that is necessary for them to render. Due to typescript's structural typing, if incoming props in fact contain more data, this will be safely ignored.
There seem to be two alternative approaches to describing the types of entities that can be fetched from a graphql service. One approach recognises the fact that any field in any given query may be either requested or omitted and thus marks every field in the graphql response type as optional. This, however, makes such types very hard to work with. The other approach, on the contrary, marks every field in the response type as mandatory, but then this response type is used for deriving more narrow types that actually correspond to what is being fetched. This is the approach taken in this PR.
Notice that the third problem – inferring the type of the graphql response given the actual graphql query string in a component – remains unsolved by this PR.

This PR looks good apart from the conflicts 👍

Conflicts resolved 😄


Technical: FFMPEG libavfilter Signature

#13 talks about video clip matching outside of any particular tech to figure it out.
Here I can talk specifically about ffmpeg, its filter for all kinds of video manipulation and introspection, and specifically the signature filter.

Both fingerprint scripts I’ve created on my own (the fingerprint hash and the one in examples) produced matches.
The trouble with them is they relied on a 1-1 Coarse Signature match.  Coarse Signatures are an amalgam of various methods to identify a short 3 second clip, so that if it shows up again it’ll be signed the same way.  This produced plenty of results, but not as many as I’d wanted.  Large segments of reliably repeating clips (such as the first few pages of BERL credits, though the last few seconds worked) were never a 1-1 match, even when the same mixtape was played in two broadcasts.
Relying on these being a 1-1 match also introduced the idea of matching chains.  If I’m rigidly matching 3-second segments, I need to be able to group together sets of those that also match to identify longer “clips.”  This is possible, but by design the signatures can overlap, so any hand-written sequencing would need that extra bit of complexity to establish parallel chains, which could be confusing.

Those results clashed with results that the signature=detectmode matching parameters for ffmpeg produced.
In addition to creating the signatures themselves, the libavfilter code is built to recognize duplicates of clips of one source in another, two at a time.  This works best when the clip you’re searching for is shorter than 30 minutes, and it helps to have the video you’re searching in, the longer one, be the first argument.  The results will tell you at what timecodes the videos match and for what durations.  If clip B is 10 seconds long and video A is an hour long, it’s possible it will find the last three seconds of clip B in the first few minutes of video A.

So why did I do what I did, and why doesn’t ffmpeg do it?
I didn’t want to always have massive files laying around when I wanted to analyze matching segments, and ffmpeg appeared to crap out at comparing too much material at once.
I chose to generate the signatures as xml and then find a way to flatten them to something useful, small, and still vaguely human readable.  This is what caused me to stick to exact Coarse Signature matches.
FFmpeg will generate signatures in xml or binary but only compare videos.  It would make a ton of sense if they would also compare pre-made signatures.  The xml signatures are still 10% of the original, but the binary versions are closer to 1%.
My compression took it down to .01%.  This allowed me to do mass comparisons faster, but less comprehensive ones than the tool intended.  The tool is built to collect all the matching signatures until they stop matching and then report back on start time and duration.

I found a project that takes the collected binary signatures, and sorts them into sensible lists to then send off to ffmpeg’s comparison engine.
They do this by literally copying the ffmpeg code that does the comparisons into their own code base.
In order to feed that code with inputs, they (literally?) reverse engineered the ffmpeg code that writes the binary signatures to load those same signatures into memory.

So I have some choices.
I can try do adapt the Mpeg7Dupes project for the platforms I use, and see what results it generates for masses of binary signatures that I take time to generate.
I can experiment with the signature detectmode to find a happy medium clip length, and maybe comparison width (how many large files it can compare at once).  I can then use the coarse signature popularity statistics I’ve gathered so far to generate clips of that happy medium length.  I can then run my own schedule of comparing those clips to multiple long videos over time.

Another wrinkle to the story is ffmpeg’s matching algorithm has several parameters to adjust how it finds matches.  Thankfully the defaults have generated satisfying results, but it’s good to know those can be adjusted.  If, for example, matching clips to long broadcasts gets a hit for the clip with the expected frequency (once per mixtape for any BERL), but leaves out parts of the clip that should always be there (like what happened with my strict matching), I can try to adjust to capture those as well.

After interacting with the Mpeg7Dupes author (and getting it to run on one of my linux setups) I've discovered the large files I was using to generate signatures have some anomalies that were causing problems.
The same problems don't appear to affect the smaller "copies" of those files (less bitrate and filesize, but same viewing length).  I've since switched to running their comparison against these copies without failing right away.
Mpeg7Dupes has a debug compilation that allows for much more logging than anyone would ever want, so of course I'm running at that density first ;).  So far, comparing two 2.5 hr files is taking longer than 12 hours and generating more than 700MB of logs.  I enjoy having too much information, but will switch to the normal mode if it ends up taking much longer.
I've also asked the author some questions about how the results of the comparison would be sorted, and about how the parameters/filters work.
So far it looks like it will still be necessary to define my own "series" collection workflow.  Since this works with ffmpeg under the covers, it will identify matching clips up to a certain number of frames (parameterized, defaults to 300), but stop at that.  So you could end up with a series of matches that either overlap or go back-to-back, but are still described as independent matches.  I called these chains earlier, so I can talk about those in detail in a separate comment.


Hooking up travis CI.

moved the root-level logic for install/clean/build/lint/test into a gulpfile that can recurse into as many different directories as needed.
hooks up .travis.yml config to call these gulp tasks
install.sh/install.cmd are still here.
"subs" directories aren't hooked up yet because their build fails.  If the subs stuff can be deleted (not sure why it is here... is it just examples? ), then maybe we can do away with the gulpfile.

@mike-kaufman,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

/cc @MSLaguana, @joshgav

I see that travis says all checks passed, but I can't actually see any of the details; when I click, it claims that it can't find the repo.

I see that travis says all checks passed, but I can't actually see any of the details; when I click, it claims that it can't find the repo.

try this link:  https://travis-ci.com/Microsoft/node-diagnostic-channel/builds/47566854?utm_source=github_status&utm_medium=notification

That's strange, since that exact scenario (no global tslint) works for me:

@MSLaguana  - weird.  Maybe it's a linux thing?

Can't just be a linux thing either, since it works for me there too:
jithomso@Laguana2:diagnostic-channel$ tslint
No command 'tslint' found, did you mean:
 Command 'nslint' from package 'nslint' (universe)
 Command 't1lint' from package 'lcdf-typetools' (universe)
tslint: command not found
jithomso@Laguana2:diagnostic-channel$ npm run lint

><EMAIL_ADDRESS>lint /diagnostic-channel
> tslint -c tslint.json -p tsconfig.json

jithomso@Laguana2:diagnostic-channel$ npm -v
3.10.8

Can't just be a linux thing either, since it works for me there too:

Maybe it's gulp?  Can you sync to this branch on linux & run the gulp commands from the root:  gulp install, gulp clean, gulp build and gulp test?

Just tried it out (on WSL) and apart from having to npm install gulp locally (which gulp requires) things worked fine, both as-is and after I changed node path/to/thing with just thing in package.json.

Closing this pr and re-opening a new one.  The travis stuff has been a bit confused since the repro went from private->public.


Editor crashes when resizing CSG boxes 3D

Godot version
4.0 beta 3
System information
Windows 10 ; AMD Ryzen 7 3700X 8-Core Processor
Issue description
The editor crashes when resizing CSG boxes. I captured the issue in-action in this video, ironically reporting another bug. The only error that regularly shows up is this, and I don't know what it means but it sometimes crashes my debug instance of the project (not my entire editor).

Steps to reproduce

Duplicate a CSGBox in a CSGCombiner 3D
Resize the duplicated box using the dots (not the inspector).

Minimal reproduction project
https://github.com/Gamepro5/Custom_CharacterBody3D_Movement_System/tree/1be17d8578a6975d9f35d317cdff8b30553d82df

I can't reproduce this on v4.0.beta.custom_build [0c23a2cfe] (Linux).
https://user-images.githubusercontent.com/180032/196277444-3d1a0af4-35e3-4c78-96b7-8a8270a1c536.mp4

Perhaps this issue is a random side effect of something else, and it has since been fixed in the latest build. I am still using Godot 4 Beta 3 and I am on a Windows machine. I'll have to wait and see if this issue persists for me on beta 4. If it doesn't, I'll close this issue.

Yeah the same problem here :)  please fix godot 4.0  beta 3

We're at beta 10 already, please always test the latest version.

I tested this with both beta 11 and master, it appears that it happens sporadically and is not always reproducible. In 5 runs I was only able to reproduce it 2 times.

Using my example build above I was able to get it to trigger within a
minute of continuously messing with the node.
It should also be stated that the crash can happen with ANY CSG node and
the more there are the more likely it might happen..
On Wed, Jan 11, 2023 at 2:57 PM Clay John @.***> wrote:

I tested this with both beta 11 and master, it appears that it happens
sporadically and is not always reproducible. In 5 runs I was only able to
reproduce it 2 times.
—
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/issues/67548#issuecomment-1379475018,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJF2HU6RIUQG6WN4DNJBWEDWR4NDFANCNFSM6AAAAAARHKY2QE
.
You are receiving this because you commented.Message ID:
@.***>

This still happens with Beta 12. Only took about 30 seconds


Custom ui configuration by conforming official documentation in app.config.ts does not work with typescript check

Environment
Nuxt project info:                                                                                11:13:14 AM

Operating System: Windows_NT
Node Version:     v20.16.0
Nuxt Version:     3.12.4
CLI Version:      3.12.0
Nitro Version:    2.9.7
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      devtools, ssr, typescript, imports, modules, svgo, mongoose, i18n
Runtime Modules<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Build Modules:    -

Version
v2.18.2
Reproduction
Reproduction
Description
The TS error happened when I updated my nuxt-ui and nuxt dependencies to the latest version, and it works well in<EMAIL_ADDRESS>and<EMAIL_ADDRESS>but can not work well in<EMAIL_ADDRESS>and<EMAIL_ADDRESS>Here is my app.config.ts codes:
export default defineAppConfig({
	ui: {
		primary: 'blue',
		gray: 'cool',

		notifications: {
			// Show toasts at the top right of the screen
			position: 'top-0 bottom-auto',
		},

		//make nuxt-icon(namely iconify) available
		icons: {
			dynamic: true,
		},
	},
})

Here is full dependencies file:
"dependencies": {
		"@nuxt/ui": "^2.18.2",
		"@pinia/nuxt": "^0.5.2",
		"jsonwebtoken": "^9.0.2",
		"nuxt": "^3.12.4",
		"nuxt-mongoose": "^1.0.6",
		"octokit": "^4.0.2",
		"pinia": "^2.2.0",
		"resend": "^3.5.0",
		"vercel": "^35.2.1",
		"vue": "^3.4.34",
		"vue-router": "^4.4.0"
	},
	"devDependencies": {
		"@nuxt/test-utils": "^3.14.0",
		"@nuxtjs/i18n": "^8.3.3",
		"@octokit/types": "^13.5.0",
		"@types/jsonwebtoken": "^9.0.6",
		"@types/node": "^22.0.0",
		"@vue/test-utils": "^2.4.6",
		"happy-dom": "^14.12.3",
		"nuxt-svgo": "^4.0.2",
		"playwright-core": "^1.45.3",
		"typescript": "^5.5.4",
		"vitest": "^2.0.4",
		"vue-tsc": "^2.0.29"
	}

Additional context
No response
Logs
Here is the full error info:
 ERROR(vue-tsc)  Type '{ primary: string; gray: string; notifications: { position: string; }; icons: { dynamic: true; }; }' is not assignable to type 'UI'.
  Type '{ primary: string; gray: string; notifications: { position: string; }; icons: { dynamic: true; }; }' is not assignable to type '{ [key: string]: string | TightMap<string>; }'.
    Property 'icons' is incompatible with index signature.
      Type '{ dynamic: true; }' is not assignable to type 'string | TightMap<string>'.
        Type '{ dynamic: true; }' is not assignable to type 'TightMap<string>'.
          Property 'dynamic' is incompatible with index signature.
            Type 'boolean' is not assignable to type 'string | TightMap<any>'.
 FILE  C:/Users/Nano/Desktop/nano-portfolio/app.config.ts:2:2

    1 | export default defineAppConfig({
  > 2 |         ui: {
      |         ^^
    3 |                 primary: 'blue',
    4 |                 gray: 'cool',
    5 |

■ Do you want to update your nuxt.config to set compatibilityDate: '2024-07-29'?
Yes

Using 2024-04-03 as fallback compatibility date.

The ui.icons option has been removed since v2.18.0 with the migration to the newest @nuxt/icon. Icons collections are now automatically detected so you don't need to specify them anymore. You can read more about this in the release note: https://github.com/nuxt/ui/releases/tag/v2.18.0


Support multiple errors inside of one Error

One of the fiddly bits we have at the moment, is the idea that we might return multiple Validation errors. That's a cool idea and super useful for returning nice API responses to our clients. However, it's a PITA from an implementation perspective. Also, Bluebird now throws warnings if you try to call Promise.reject() with a non-error, e.g. if you call it with an array of errors. With themes, we wrap multiple errors inside a ThemeValidationError. For validation errors, I think it might be a good idea to wrap multiple errors inside an AggregateValidationError or to support multiple errors inside of one ValidationError? In short, lets always pass 1 error around, even if it contains many errors.
I think this will simplify the code, whilst letting us still return super smart JSON error responses via the API.

This was the original comment: https://github.com/TryGhost/Ghost/issues/7116#issuecomment-252231809
To sum up: we would like to support multiple errors in one Error instead of having an error as single instance or as array.
Example:
var err = new errors.ValidationError({
    children: [new errors.GhostError(), new errors.GhostError()]
}):

@ErisDS I've deleted this task from #7116 and added this issue here.

Right now we are using validation.validateSchema in the Base Model to validate incoming properties. This function can return an Array with errors. This also needs to be changed. So the caller can always expect to get one single error back.

Promise.reject(Array) does not work with bluebird.
That's why we are seeing lot's of warnings when running the tests.
(node:22866) Warning: a promise was rejected with a non-error: [object Array]
Most of them are coming from here.

I don't see this ever happening or really being useful, @kirrg001 suggest we close?

Yeah let's close it 👍It might be useful for some cases e.g. return a set of validation errors, but i doubt somebody will work on it in the future 😁