Add docker compose files in example-mysql

#21
➜  trillian-tessera git:(main) ✗ docker compose -f ./cmd/example-mysql/docker/compose.yaml up
Attaching to tessera-example-mysql, tessera-mysql-db
tessera-mysql-db       | 2024-07-30 19:30:10+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.4.2-1.el9 started.
tessera-mysql-db       | 2024-07-30 19:30:10+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
tessera-mysql-db       | 2024-07-30 19:30:10+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.4.2-1.el9 started.
tessera-mysql-db       | 2024-07-30 19:30:10+00:00 [Note] [Entrypoint]: Initializing database files
tessera-mysql-db       | 2024-07-30T19:30:10.938375Z 0 [System] [MY-015017] [Server] MySQL Server Initialization - start.
tessera-mysql-db       | 2024-07-30T19:30:10.940524Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.4.2) initializing of server in progress as process 82
tessera-mysql-db       | 2024-07-30T19:30:10.952694Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
tessera-mysql-db       | 2024-07-30T19:30:11.788719Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
tessera-mysql-db       | 2024-07-30T19:30:15.082202Z 6 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
tessera-mysql-db       | 2024-07-30T19:30:17.769855Z 0 [System] [MY-015018] [Server] MySQL Server Initialization - end.
tessera-mysql-db       | 2024-07-30 19:30:17+00:00 [Note] [Entrypoint]: Database files initialized
tessera-mysql-db       | 2024-07-30 19:30:17+00:00 [Note] [Entrypoint]: Starting temporary server
tessera-mysql-db       | 2024-07-30T19:30:17.831263Z 0 [System] [MY-015015] [Server] MySQL Server - start.
tessera-mysql-db       | 2024-07-30T19:30:18.279223Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.4.2) starting as process 127
tessera-mysql-db       | 2024-07-30T19:30:18.313143Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
tessera-mysql-db       | 2024-07-30T19:30:18.947609Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
tessera-mysql-db       | 2024-07-30T19:30:19.530560Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
tessera-mysql-db       | 2024-07-30T19:30:19.530637Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
tessera-mysql-db       | 2024-07-30T19:30:19.537816Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
tessera-mysql-db       | 2024-07-30T19:30:19.584335Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.4.2'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  MySQL Community Server - GPL.
tessera-mysql-db       | 2024-07-30T19:30:19.584505Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Socket: /var/run/mysqld/mysqlx.sock
tessera-mysql-db       | 2024-07-30 19:30:19+00:00 [Note] [Entrypoint]: Temporary server started.
tessera-mysql-db       | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
tessera-mysql-db       | 2024-07-30T19:30:20.391119Z 9 [Warning] [MY-013360] [Server] Plugin sha256_password reported: ''sha256_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
tessera-mysql-db       | Warning: Unable to load '/usr/share/zoneinfo/iso3166.tab' as time zone. Skipping it.
tessera-mysql-db       | Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
tessera-mysql-db       | Warning: Unable to load '/usr/share/zoneinfo/leapseconds' as time zone. Skipping it.
tessera-mysql-db       | Warning: Unable to load '/usr/share/zoneinfo/tzdata.zi' as time zone. Skipping it.
tessera-mysql-db       | Warning: Unable to load '/usr/share/zoneinfo/zone.tab' as time zone. Skipping it.
tessera-mysql-db       | Warning: Unable to load '/usr/share/zoneinfo/zone1970.tab' as time zone. Skipping it.
tessera-mysql-db       | 2024-07-30 19:30:23+00:00 [Note] [Entrypoint]: Creating database tessera
tessera-mysql-db       | 2024-07-30 19:30:23+00:00 [Note] [Entrypoint]: Creating user tessera
tessera-mysql-db       | 2024-07-30 19:30:23+00:00 [Note] [Entrypoint]: Giving user tessera access to schema tessera
tessera-mysql-db       |
tessera-mysql-db       | 2024-07-30 19:30:23+00:00 [Note] [Entrypoint]: Stopping temporary server
tessera-mysql-db       | 2024-07-30T19:30:23.437132Z 14 [System] [MY-013172] [Server] Received SHUTDOWN from user root. Shutting down mysqld (Version: 8.4.2).
tessera-mysql-db       | 2024-07-30T19:30:24.787369Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.4.2)  MySQL Community Server - GPL.
tessera-mysql-db       | 2024-07-30T19:30:24.787399Z 0 [System] [MY-015016] [Server] MySQL Server - end.
tessera-mysql-db       | 2024-07-30 19:30:25+00:00 [Note] [Entrypoint]: Temporary server stopped
tessera-mysql-db       |
tessera-mysql-db       | 2024-07-30 19:30:25+00:00 [Note] [Entrypoint]: MySQL init process done. Ready for start up.
tessera-mysql-db       |
tessera-mysql-db       | 2024-07-30T19:30:25.488336Z 0 [System] [MY-015015] [Server] MySQL Server - start.
tessera-mysql-db       | 2024-07-30T19:30:25.839269Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.4.2) starting as process 1
tessera-mysql-db       | 2024-07-30T19:30:25.848248Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
tessera-mysql-db       | 2024-07-30T19:30:26.398305Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
tessera-mysql-db       | 2024-07-30T19:30:26.821165Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
tessera-mysql-db       | 2024-07-30T19:30:26.821231Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
tessera-mysql-db       | 2024-07-30T19:30:26.828502Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
tessera-mysql-db       | 2024-07-30T19:30:26.876650Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
tessera-mysql-db       | 2024-07-30T19:30:26.877034Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.4.2'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server - GPL.
tessera-example-mysql  | I0730 19:30:31.578541       1 mysql.go:83] Initializing checkpoint

Codecov Report
Attention: Patch coverage is 0% with 11 lines in your changes missing coverage. Please review.

Project coverage is 31.23%. Comparing base (46ec9c2) to head (3cd32ba).
Report is 19 commits behind head on main.

Files
Patch %
Lines

cmd/example-mysql/main.go
0.00%
11 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #99      +/-   ##
==========================================
- Coverage   35.80%   31.23%   -4.57%
==========================================
  Files          16       16
  Lines        1363     1556     +193
==========================================
- Hits          488      486       -2
- Misses        801      996     +195
  Partials       74       74

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


fix(cli): fix read package on command start

:tada: This PR is included in version 4.5.6 :tada:
The release is available on:

v4.5.6
GitHub release

Your semantic-release bot :package::rocket:


Storage error while using Real Time Facades

Hi there!
I'm getting an error when I try to use real time facades, but I don't understand why...it's looks is associated with Tenant Storage settings.
file_put_contents(/mnt/c/Users/pedro/Projects/cool-saas/storage/tenante594198d-3a8f-47cc-8f62-5eb53f3eb391/framework/cache/facade-4e0fa087d60f28713ef2f7c1a97f99e8e2a731c0.php): failed to open stream: No such file or directory

Am I missing some configuration? 🤔

Hi, I had the same problem which is fixed with the creation of the tenant storage folder. This is what i did :
        // Storage
        $storage_path = 'storage/board-'.$tenant->id;

        mkdir($storage_path);
        mkdir("$storage_path/app");
        mkdir("$storage_path/app/public");
        mkdir("$storage_path/framework");
        mkdir("$storage_path/framework/cache");
        mkdir("$storage_path/framework/sessions");
        mkdir("$storage_path/framework/testing");
        mkdir("$storage_path/framework/views");
        mkdir("$storage_path/logs");

Would it be a common way to achieve it ?  Why not include it by default if we are on the local disk ?  Just a simple question to be curious  ;)

Was your problem also related to real time facades or something else? I think those folders should get created automatically.

Yes it concerns Real time facades too

Can you give me some code that I can use to reproduce this?

For sure :
1. Create a app/Test.php class :

namespace App;

class Test {

   public function foo()
   {
      return 'bar';
   }

}

2. Go to routes/tenant.php file and put this route :

use Facades\App\Test;

Route::get('test', function() {
   echo Test::foo();
});

3. You'll get this file_put_contents ErrorException :
ErrorException
file_put_contents(/Users/francois.dusautoir/Code/databoard/storage/board-fcbf85e0-1f55-4ca5-b38e-25af8251ae72/framework/cache/facade-d6dc2dfdf9ed62fa0c35ef530c42f68b1a73ac56.php): failed to open stream: No such file or directory

Then the error is solved by created the board-... folder in the storage folder.

Do you plan to include this issue in the next 2.3.0 release ?

If this issue exists for more things than realtime facades, then yes. If it exists only for realtime facades, then I'll focus on this after 2.3.0 is released and fix it in 2.3.1 or something.
There are more important things to be done and I personally don't believe realtime facades have any use so I'm not going to make this my main priority.

Will try to get this added to tenant creation somehow https://github.com/stancl/tenancy/issues/283#issuecomment-596210846

Moved to #462


Addresses #1579 [NTR] [ASCT+B table] descending thin limb epithelial …

Addresses #1579 [NTR] [ASCT+B table] descending thin limb epithelial cell (3 types)

@emquardokus, could you kindly review my proposed updates?
FYI, @paolaroncaglia

@emquardokus, per yesterday's discussion, we agreed that references to biomarkers can be relegated to definition gloss (i.e., not appearing in the first sentence of the text definitions) unless there is a compelling reason.
@paolaroncaglia, if there is no objection by end of day today, would you review and approve (if appropriate) this PR so I can move forward with adding the other kidney cell terms?


instantiate custom rules with DI

Apparently, there is no way to inject something from DI container when creating a custom rule. For example, I want to inject preconfigured HttpClient that exists in the container in order to call the backend for checking e-mail uniqueness.
Currently, you need to wrap the custom rule definition in an artificial class which you need to inject only in order to register the cutom rule (see an example of such).
I wish I could define a custom rule as a class, that would be instantiated with DI, resolving all of its dependencies.
Dream:
Definition:
class EmailUniquenessCustomValidationRule implements ValidationRule {
  validate (value, obj) { /* ... */ }
}

Registration (not sure if it is mandatory if we use class name directly):
ValidationRules.customRule(ValidateEmailUniqueness);

Usage:
ValidationRules
  .ensure('email').satisfiesRule(ValidateEmailUniqueness);

Is this a shortcut for doing something like:
ValidationRules.customRule(
  'email-unique',
  container.get(ValidateEmailUniqueness).validate
);

Another thing you could do today is:
main.js
export function configure(aurelia: Aurelia) {
  aurelia.use....
    ...
    .feature('./custom-rules')
    ...

custom-rules.js
configure(config: FrameworkConfiguration) {
  const service = config.container.get(EmailService);

  ValidationRules.customRule(
    'email-unique',
    value => service.checkUnique(value)
  );

  ValidationRules.customRule(
    ...
    ...
  );

}

what do you think?

I have proposed a solution for this.  One would be able to use DI to instantiate SatisfiesConditionArguments  (ie, any of SatisfiesConditionParameters | SatisfiesRuleParameters | SatisfiesTaggedRuleParameters) and pass it into a new method satisfiesCondition.
Note that part of this is also to support tagged rules, using SatisfiesTaggedRuleParameters.
This API has the advantage going forward of making it quite easy to extend the way satisfies works without breaking existing functionality.
It is forked from another branch of mine, hence the "FluentRulesGenerator", but could easily be made to work with the current master, if FluentRulesGenerator is not also accepted as a change.
export type SatisfiesConditionArguments =
  SatisfiesConditionParameters | SatisfiesRuleParameters | SatisfiesTaggedRuleParameters;

/**
   * Applies a named or ad hoc rule to an ensured property or object.
   * @param SatisfiesConditionArguments Configuration for the rule. Can be either a SatisfiesConditionParameters,
   * for ad hoc rules, or SatisfiesRuleParameters, for named rules, SatisfiesTaggedRuleParameters for named rules.
   */
  public satisfiesCondition(params: SatisfiesConditionArguments): FluentRulesGenerator<TObject>;


Fix apparent race condition in test, observed in docker-machine on Mac

Startup success detection appeared to be seeing container as having exited already
For the purposes of this test, all we need is a positive isRunning state, so
a container sleep command of reasonable length is sufficient to achieve this

I'm really not sure why we've not seen this before, but with docker-machine on Mac I started getting a consistent failure on this test (which was only added in July).
I've added a sleep command in the container so that Testcontainers detects it entering the running state and finishes startup. The previous state (starting a container that has no command and thus exits immediately) was not really representative of normal use.


Tooling: Formatter benchmark on unformatted projects

Benchmark Ruff's formatter compatibility on unblacked projects by

Format the project with Ruff
Format the same project with Black
Compare the outputs

@konstin I believe you worked on this. Would you mind documenting your findings and closing the issue if there's nothing else to do?


CommonJS support

I tried to swap in tinyhttp for my large-ish express application. Loved the initial experience, types, etc, but ultimately couldn't get it to run because it would have required ESM which I couldn't get to play nice with my ts-node-dev, esbuild, ... setup.
I'd love to use this lib, so I'm wondering what the rationale was behind dropping CommonJS, it's still somewhat widely used in the types of applications where you could have the most impact.
Consider this less of a direct feature request and more as feedback. Keep up the good work!

it was answered before
CommonJS is a thing of the past. ESM is the future.


Question: Use  tag instead parent-

We have a <video>-tag, e.g.: <video id="player"><source...></video>.
Is there a chance to create a DPlayer-Instance using this <video>-tag?

yes you can，but the source is unuseful
------------------ 原始邮件 ------------------
发件人<EMAIL_ADDRESS>发送时间: 2019年10月31日(星期四) 晚上9:18
收件人<EMAIL_ADDRESS>抄送<EMAIL_ADDRESS>主题: [MoePlayer/DPlayer] Question: Use <video> tag instead parent-<div> (#613)
We have a <video>-tag, e.g.: <video id="player"><source...></video>.
Is there a chance to create a DPlayer-Instance using this <video>-tag?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


[Unity] Introduce Default Schedule Pass

This PR introduces a default schedule pass that creates default thread binding for PrimFuncs, including symbolic shape functions so that these PrimFuncs could be built and run on Cuda device. The pass picks out all the blocks inside the PrimFunc and does loop fusion, split and reorder based on the loop extent and target information (max thread block number and max thread per block).
Co-authored-by: Josh Fromm<EMAIL_ADDRESS>CC: @sunggg @vinx13 @tqchen

cc @junrushao

cc @junrushao

please run the following commend to update to latest change
git rebase --onto upstream/unity upstream/unity-rebase-backup-2023-03-05

Thanks for this excellent PR @zxybazh! This is now merged.


CIV-4306 Payment of hearing fee

JIRA link (if applicable)
Change description
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[ x ] No

Build turned green. I'm forced to update the branch even though there are no conflicting features, but I'll be overriding and merging even though the new build will still be running.

Build was green. I'm forced to update before merging but I'll be overriding this in the interest of speed. It is not expected that this will break anything.


How to use php-fpm:7?

I've not used php-fpm in the past and I'm trying to put together nginx and php-fpm, right now, my docker-compose.yml file looks like this:
web:
  image: nginx:latest
  ports:
    - "8080:80"
  volumes:
    - ./src:/src
    - ./nginx.conf:/etc/nginx/conf.d/default.conf
  links:
    - php
php:
  image: phalconphp/php-fpm:7
  volumes:
      - ./src:/etc/php/7.0/fpm/pool.d/

and my nginx.conf looks like this:
server {
    listen       80;
    server_name  localhost;
    location / {
        root   /src;
        index  index.php;
        autoindex on;
    }
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /src;
    }

    location ~ \.php$ {
        index          index.php;
        root           /src;
        fastcgi_pass   php:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME /scripts$fastcgi_script_name;
        include        fastcgi_params;
        autoindex on;
    }
}

Now when I go to localhost:8080, it says file not found, nginx finds the file, but it can't process using php-fpm, The error message I get is:

2017/02/09 06:09:14 [error] 7#7: *4 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: <IP_ADDRESS>, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://<IP_ADDRESS>:9000", host: "localhost:8080"

I'm pretty sure I'm doing something stupid, but I can't figure out what.
Can you add something so that I can go forward with.
Thanks

Hm... did you tried something like this?
version: '2'

services:
  mysql:
    restart: always
    image: mysql:5.7
    container_name: phalcon_mysql
    ports:
      - "3306:3306"
    environment:
      MYSQL_DATABASE: phalcon_test
      MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
    volumes:
      - mysql:/var/lib/mysql

  php:
    restart: always
    image: phalconphp/php-fpm:7.0
    container_name: phalcon_php
    working_dir: /app
    ports:
      - "9000:9000"
      - "9001:9001"
    volumes:
      - ./src:/app
    depends_on:
      - mysql

  nginx:
    restart: always
    image: phalconphp/nginx:1.1.0
    container_name: phalcon_nginx
    ports:
      - "8080:80"
    volumes:
      - ./src:/var/www/mysite
      - ./nginx.conf:/etc/nginx/sites-enabled/my-site.conf
    depends_on:
      - php

# docker volume create --name=mysql
volumes:
  mysql:
    external: true

# docker network create --driver bridge phalcon_nw
networks:
  default:
    external:
      name: phalcon_nw

Thanks a lot. :)

I'll create a PR with a little bit of documentation of how we can use these, (once I gain enough confidence)


Fixed bug that prevents login users inside views

Please, integrate it into the main branch

As we talked before, please consider optimizing your patch. :-)


Tiles support

Could you update this module to do the same thing for tiles? This would be helpfull too. And maybe do a 360° step-by-step rotation too.
Thanks

Flipping tiles will definitely be in the next release when I get the chance to work on it. I'll also include the ability to do vertical flipping (probably more useful for tiles).
Thanks for the suggestion!

v1.1.0 has support for flipping tiles and introduced Shift+F to flip tiles and tokens vertically.


Address identicon handler

Takes GET requests at /identicon/<address>. Returns string containing a 24 by 24 px div with the identicon as an inline background image.

@repoman Here is the code that will be fetching the identicon: https://github.com/elimu-ai/webapp/pull/994/files#diff-eae9172dbb0a6920c34a4a010cbc7d97R56

Ready to be merged.


Add updater endpoint to update every student in programme x / year y

related to #2694, make it possible to update stuff directly in updater scheduler

reasoning behind: our current logic relies on backend, but would be better if updater was able to figure out studentnumbers to update directly from importer tables

@otahontas this is already implemented, is it not? Closing for the time being.


support Laravel 6.0

@bacanu thanks a lot for your help!
Could you also modify the .travis.yml file for v3 to not run tests on php7.1?
Thank you!

Modified .travis.yml


Improve BluetoothClient and BluetoothServer documentation

As noted by the power users, the SendXByteNumber methods of the Bluetooth client/server components is rather underspecified.
In particular, we should note that a 1-byte number is restricted between -128 and 255, a 2-byte number is restricted to -32768 to 65535, and that a 4-byte number is between -2^31 to 2^32-1. It was also noted that an example for each function may be useful.

Hello @ewpatton sir,   is this issue is resolved or not , i am willing to work on this ?


Feature: Adding Link Validation Pattern of Link Component to Editor Config

This PR contains:

[ ] bugfix
[x] feature
[ ] refactor
[ ] tests
[x] documentation
[ ] others

Breaking Changes?

[ ] yes
[x] no

Checklist

[x] commit messages follow the Conventional Commits pattern

A feature commit message is prefixed "feat:"
A bugfix commit message is prefixed "fix:"
A document related commit is prefixed "docs:"

[x] docs have been added / updated (for bug fixes / features)

Describe Your Changes
Validation Pattern in the Link Component can now be set with a configuration in Editor.
Use linkValidationPattern option to achive it. If option is not set the default is used.

Does this PR affects any existing issues?

[x] yes
[ ] no

closes #396

Thanks @schmoizz.

No Problem @sibiraj-s.
Can you maybe pack this new functionality into a release? I have a project on hand where i need it quite urgent.
Thanks in advance.

Sure @schmoizz . I merged a breaking change yesterday that requires angular 14.1.0, was testing some aspects of it hence the delay. I will do the release today.

Published in v15.0.0 🎉


How to uninstall?

Can't find a way to uninstall this on Mac. Installed using Native Installer with Vagrant and VirtualBox.
The uninstaller described here isn't present anywhere.

Thanks for reporting @vahagnaharonian. I'll have @glinton take a look. He manages the installers/uninstallers.

:+1: I also can't find the uninstaller in the package file.

For now, you can download and run .uninstall.tool - it's a bash shell script.
If you installed with Homebrew Cask (ie. brew install nanobox), you can just run brew zap nanobox. (The only part of the above script that won't be run is removing the related boxes)
ie.
vagrant box list  | grep '^nanobox/boot2docker ' &> /dev/null
if [[ $? -eq 0 ]]; then
    vagrant box remove nanobox/boot2docker --force &> /dev/null
fi

@adityadalal924 that script didn't work, got this error:
The uninstallation process requires administrative privileges
because some of the installed files cannot be removed by a
normal user. You may now be prompted for a password...

107:114: syntax error: Expected “given”, “with”, “without”, other parameter name, etc. but found identifier. (-2741)
An error must have occurred since a file that was supposed to be
removed still exists: /opt/nanobox

But thanks anyway for it. I deleted those files manually.

@vahagnaharonian I don't maintain the script, I just saw it and thought it might be useful.

It was a design decision to leave the uninstaller out of the .dmg file, but it is still there, just hidden. It should be accessible at /Volumes/nanobox/.uninstall.tool when the dmg is mounted. I'll be releasing a new dmg today that has a fix for the issue @adityadalal924 mentioned.

How do I uninstall this?
I've also noticed some containers aren't stopped.

First, run nanobox implode to clear out the VM, if we created one, and any Nanobox containers, along with any settings or configuration. Then, run the uninstall tool mentioned above.


[prod-beta] insights-loader: remove firstLoad logic, simplify; add debug log

Related to #36, #669, #705
debugging the new menu changes, menu not working after the first load, and menu redirecting to bad routes

OK... prod-beta
on https://cloud.redhat.com/beta/ansible/automation-hub/
no event on initial page load
basename /beta/ansible/automation-hub
click on collections {domEvent:{href: "/ansible/automation-hub",id: "automation-hub",navId: "automation-hub"},navId: "automation-hub"}
when on https://cloud.redhat.com/beta/ansible/automation-hub/repo/published/netapp/azure
after fresh page load
click on menu Repositories (link url good)
works right away
goes to the right place
:+1:

master-stable
on https://qa.cloud.redhat.com/ansible/automation-hub
no event on initial load
basename /ansible/automation-hub
click on collections { domEvent: { href: "/ansible/automation-hub", id: "automation-hub", navId: "automation-hub" }, navId: "automation-hub" }

prod-stable
on https://cloud.redhat.com/ansible/automation-hub/
no event on initial load
basename /ansible/automation-hub
click on collections { domEvent: {react event, no href, no navId, no id, yes target.href: "https://cloud.redhat.com/ansible/automation-hub/"}, navId: "" }


Unable to prevent network hanging if there's no internet accessible.

Steps to reproduce

Disconnect your computer from the internet (no WiFi, no ethernet).
Try to run an example or a test that attempts to reach noaa.

Desired result
Can modify the example or test to provide a timeout so the request fails gracefully.
Actual result
All tests and examples will hang indefinitely, ultimately failing if the test has a time limit imposed on it.
And because the code performing the network call uses http.DefaultClient, and http.DefaultClient doesn't provide a way to set a timeout value, you have no hope of allowing this to time out gracefully.
This causes problems in production environments where the internet can be spotty.

Thanks for the related PR.
Closed by https://github.com/icodealot/noaa/pull/10


MicroProfile Client ProblemResponseExceptionMapper is not called

As observed by the code coverage, it turns out the ProblemResponseExceptionMapper is never called. Instead, the JAX-RS ProblemClientResponseFilter takes precedence, and the thrown ResponseProcessingException is being unwrapped by:
https://github.com/resteasy/resteasy/blob/120abda3249de866a8269b9fd2128ddce318eedb/resteasy-client-microprofile-base/src/main/java/org/jboss/resteasy/microprofile/client/ProxyInvocationHandler.java#L157-L162.
Can we remove the ProblemResponseExceptionMapper?
Are all MicroProfile REST client implementations guaranteed to implement this unwrapping behavior (which differs from JAX-RS)?
Or alternatively can we prevent the ProblemClientResponseFilter from being picked up by MicroProfile REST client?

It doesn't feel right to rely on this ResponseProcessingException unwrapping behavior, as it's not part of the spec.
Instead, I found a way to detect in the ProblemClientResponseFilter whether we are running on MicroProfile REST Client (by checking for org.eclipse.microprofile.rest.client.invokedMethod property) and bypass it in order for the ProblemResponseExceptionMapper to be called as intended.


thank Yuan-Sen Ting in the current paper

done, thank you. is this worth re-uploading to the arXiv, or should I wait until I have a critical mass of updates?

I would wait until after the ref. report

I agree with @mkness: Unless there is something huge and embarrassing, we should only re-submit to arXiv when we respond to referee.


Validator error

So it seems that if one of the data file eg : 'nwb' or 'nix' are missing in the data set , no error were raised by the validator.
See also https://github.com/INT-NIT/AnDO/pull/73

this should be fixed also in #80, @Slowblitz. so can we close this one?

Yes #80 is now fixed also


fragment: add FlushInterval to journal spec

This adds the ability to add specify a time interval at which fragments are flushed to the backing fragment store, or dropped if no backing store is configured.
In addition to implementing the integration test suite has been modified to leverage the flush interval to flush fragments every 10 minutes.

This change is

Resolves this issue https://github.com/LiveRamp/gazette/issues/63

a discussion (no related file):

I took the approach that I mentioned in the comment where I do no return the boolean flag, let me know if you think it is more or less confusing. I keep going back and forth on it, it could just be a naming issue.

I created a new commit to house the changes made based on your suggestions. I will do a rebase before landing where I squash the r4 commit in the r1 commit.

v2/pkg/broker/replica_test.go, line 315 at r4 (raw file):
Previously, jgraettinger (Johnny Graettinger) wrote…
optional: spec is not changing meaningfully between cases. hoist to top?

Done.

v2/test/journalspace.yaml, line 49 at r4 (raw file):
Previously, jgraettinger (Johnny Graettinger) wrote…
nit: comment still a bit wonky. drop the first line? Also "defines" is here twice.

yeah I think something happened with when attempting to do some rebasing.


Update to Bittensor Version 7

Edit

All changes so far were based on the Bittensor Release Notes detailed here: https://docs.bittensor.com/bittensor-rel-notes


Import error: No module named 'lifetimes'

I fitted a model last week and it worked perfectly, but now this error appears:
No module named 'lifetimes'

Could you give us more info on your setup? Maybe your Python Version, your OS, the lifetimes version you installed, etc.
If you can, try installing it in a virtual environment and see if you can make it work there. For example, using pipenv:
pipenv install lifetimes
pipenv shell
python
>>> import lifetimes
>>> liftetimes.__version__
'0.11.1'

Thank you very much for your answer, I did what you just said and worked!


Update OpenShift documentation

clarify that cilium organization does not maintain cilium-olm repository (ref https://github.com/cilium/cilium-olm/pull/107). vendors that do maintain OLM for cilium can add their specific instructions in this page:
https://docs.cilium.io/en/v1.13/installation/k8s-install-openshift-okd/

I talked with @joestringer, @xmulligan and @saintdle last week about this a little bit and we were thinking of modifying the OpenShift documentation to point to the RedHat OLM marketplace, where vendors can publish the OLM images they maintain for installing Cilium and provide installation instructions.
I think it would make sense to also move the installation instructions for the deprecated cilium/cilium-olm repo that's currently in the docs to the isovalent/olm-for-cilium repository.
cc @jtaleric @egrosdou01

Alright I've created two PRs:

https://github.com/isovalent/olm-for-cilium/pull/48
https://github.com/cilium/cilium/pull/29300

Feedback is much appreciated, thanks!

I think that there is value for the community to maintain an installation of Cilium on OpenShift and publish it to the Red Hat community catalogue. I am not following the rational for moving cilium/cilium-olm to isovalent/olm-for-cilium

+1 @fgiloux It will be easier for engineers who work with the exact setup.

I merged the PR earlier based on the understanding that the existing instructions were broken and outdated and hence that PR is better than leaving the instructions, but I did not intend that to be any sort of statement about the path forward. I'd welcome any suggestions on how we can better manage our relationship with the downstream OpenShift project and ensure widespread availability of Cilium on common platforms.


Linting js

Description
We need linting for mono repo working. as requested over at #834
Some issues with stylelint:
Here it seems to be suggested that some version's combination will do the trick but I tried and it does not work.
There are several discussions referring to commenting styles that are breaking stylelint, // breaks it, and /* doesn't but I didn't get to test this.

Motivation and Context
I feel the need, the need for lint!

How Has This Been Tested?
I'm running it on my computer, but this PR will hopefully run with the lint workflow.

Screenshots (if appropriate):
Types of changes

[ ] Refactor (changes the way we code something without changing its functionality)
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] Latest master code has been merged into this branch
[ ] No commented out code (if required, place // TODO above with explanation)
[ ] No linting issues
[ ] Build is successful
[ ] Code follows the API Guidelines
[ ] Updated the documentation
[ ] Added tests to cover changes
[ ] All new and existing tests passed

Have you changed anything? I don't see the workflows running 🤔

Have you changed anything? I don't see the workflows running 🤔

@Golodhros ^

Have you changed anything? I don't see the workflows running 🤔

Nope!
But I see a "Verified" tag on your commits, so I think they are running, right?


 I don't understand why the previous negated character class didn't work, but using the \S class is equivalent to ^\s. I simplified the https? match a bit while I was in there.
Proposed changes:

improve ACTIVITYPUB_URL_REGEXP

Other information:

[ ] Have you written new tests for your changes, if applicable?

Testing instructions:

Go to '..'

@mattwiebe can you add the false positives to the test case?

Will do! Having a little trouble with the tests (again) but I'll circle back with fresh energy tomorrow


Template method on DefinitionDecoder

Hello,
I made a "template method" on DefinitionDecoder. This modification remove the code duplication between the three classes (ItemDefinitionDecoder, ObjectDefinitionDecoder and NpcDefinitionDecoder).
Thanks.

@garyttierney need to change the doc a little but LGTM


Fix peer dependencies, fixes #11

@dmtrKovalenko could you make a new release?

@cpojer I can, but I am not really sure that peer dependency react * is correct

And for me now everything seems to be working. Maybe because of yarn ?

I'm unsure why it was working for you, but this PR is the right fix.

Anyway react: * is bad pattern.

If react will introduce any breaking change in example 17.0 - "Huston, we have a problem"

I'm fine with changing it to ^16.0.


fix: Make locator.hpp self contained (#729)

On Mar 21, 2023, at 8:59 AM, Samuel DEBIONNE via Boost<EMAIL_ADDRESS>wrote:

Hello,
I would like to merge a "missing include" fix from Boost.GIL to master:
https://github.com/boostorg/gil/pull/729

Go ahead
— Marshall

@sdebionne I think it's OK to ignore the failures on AzP. There seem to be a problem which is unrelated to this  change. And, we should get rid of those AzP in master anyway, I think.


Deduplication of code objects can lead to incorrect/misleading stack frame identification

For example, SomeRenderObject.semanticBounds may get deduplicated to RenderClipOval._defaultBounds, because the impelmentations are both Offset.zero & size, leading to a stack trace that looks like this:
at RenderBox.size(box.dart:2023)
at RenderClipOval._defaultClip(proxy_box.dart:1731)
at RenderVisibilityDetectorBase._scheduleUpdate.<anonymous closure>(render_visibility_detector.dart:143)
at RenderVisibilityDetectorBase._processCallbacks(render_visibility_detector.dart:62)
at _TaskEntry.run(binding.dart:91)

The at RenderClipOval._defaultClip(proxy_box.dart:1731) should actually read RenderVisibilityDetectorBase.bounds (which is implemented via semanticBounds and so got deduplicated).
This is counter-intuitive and led me to believe that the stack trace was busted somehow. If we can't avoid this, perhaps we could at least indicate in the symbolication all of the candidates for a particular symbol.
/cc @a-siva @mraleph (who helped figure this out on an internal issue).
xref b/244342335

We have discussed this before, but unfortunately native debugging format does not provide any reasonable means for this, so short of emitting funky names which represent all merged functions we can't really represent this.
We can do something specific for our custom symbolisation tooling - but that's too narrow to be useful.
The alternative is to disable code merging for code that contains potentially throwing instructions altogether. We can try that and see the impact on code size.
/cc @mkustermann @sstrickl

Do you mean actually disabling inlining in production in some cases? Checking the cost sg but it seems heavy handed. Any thoughts on what the cons would be for actually doing the former? And in the above example, just letting the second row be called RenderClipOval._defaultClip or RenderVisibilityDetector.bounds(proxy_box.dart:1731)?

Note the engine's C code has same issue because of its use of -Wl,--icf=all / /Oicf.

We can do something specific for our custom symbolisation tooling - but that's too narrow to be useful.

What if we had the following tooling:

When generating symbol information, the tooling tells you all of the symbols that got deduplicated
Deduplicated symbols get some special name treatment, e.g. instead of RenderClipOval._defaultClip(proxy_box.dart:1713) it would say ** Deduplicated symbol foo(deduplicated_symbols.txt:13)
The deduplicated symbols file would have something like

foobar: RenderClipOval._defaultClip(proxy_box.dart:1713), RenderVisibilityDetector.bounds(render_visibility_detector.dart:43),....`

etc.?


Specify ssh config file and/or known_hosts location?

I'm trying to relocate the ssh keys to another folder instead of the default on Linux. Currently I can use the identity_file kwarg to specify which private key file to use, but this only works if the known_hosts file is still in its original folder.
I've tried making a config file with both the identity file and known hosts file paths specified, but this does not work as the identity_file:
IdentityFile *path1*
UserKnownHostsFile *path2*

Is there a way to specify the known_hosts location, or a config file?
Edit:
Per the ssh manual page specifying the config is an existing option:
-F configfile
            Specifies an alternative per-user configuration file.  If a
            configuration file is given on the command line, the
            system-wide configuration file (/etc/ssh/ssh_config) will
            be ignored.  The default for the per-user configuration
            file is ~/.ssh/config.  If set to “none”, no configuration
            files will be read.

It looks like this could be added very similarly to how identity_file is.
An additional/alternative option is to add -o, which allows (among other things) UserKnownHostsFile to be specified:
-o option
             Can be used to give options in the format used in the
             configuration file.  This is useful for specifying options
             for which there is no separate command-line flag.  For full
             details of the options listed below, and their possible
             values, see ssh_config(5).

Added a pull request to address the issue by adding a config_file option. The config file can contain paths to the identity and known hosts files, so it solves the issue for me.


Feature/testprbranchfail

This is a demo pr.

          1 Error

:no_entry_sign:
Please target PRs to develop branch

  Generated by :no_entry_sign: Danger


raw file missing

Error:(295, 72) error: cannot find symbol variable raw

In order to try out this sample, visit the Cloud Console, and navigate to: API Manager > Credentials > Create credentials > Service account key > New service account. Create a new service account, and download the JSON credentials file. Put the file in the app resources as app/src/main/res/raw/credential.json.

In order to try out this sample, visit the Cloud Console, and navigate to: API Manager > Credentials > Create credentials > Service account key > New service account. Create a new service account, and download the JSON credentials file. Put the file in the app resources as app/src/main/res/raw/credential.json.

This path seems do not work nowadays, would you please update it? Thanks in advanced.


Add option to disable animations for low-perf devices

I'd like a setting to disable animations completely in VS Code. On low performance devices (I'm running on a Helio P60T), Code's renderer often uses more than 90% of all cores whenever animations are triggered, especially loading animations at the top of the navigation column. It would be great to be able to configure VS Code to run smoothly on low-end devices in some sort of lightweight graphics mode. Code runs fine on this device with the exception of rendering tasks, so I think simply creating a setting to remove as many animations (and any other non-critical intensive rendering tasks) as possible would make it very usable. Additionally, if markdown were not rendered by default in this mode, but instead users could trigger markdown rendering with a button, that would improve performance where some extensions automatically open their markdown description pages, which also eat up performance.

This is a big problem for me working from a remote desktop connection over a weak internet connection.  When I mouse over a red squiggly, the box describing the problem fades in, which can take 10 seconds before it fully renders.

Important feature to make Vscode more usable via weak RDP connection, for instance mobile connections.


Crash error launching

https://pastebin.com/uQpcKbPj

Looks to be something with your save file, can you include that as well?

Looks to be something with your save file, can you include that as well? config/acronym/saved/material_parts_contenttweaker.json

it's just a chain of nulls

File broke, pull down a new one

(Since I know y'all keep track of them)

glares at Sky did you do a stealth update without a version change?

No for some reason on occasion, the saved file will get fucked, if you replace that with a proper version, it'll work

will it regen if I just delete it?

Not correctly (As you've added and deleted materials, so it'll just generate in order vs the out of order you'd have.

Though if youd like, you can transition over to the "single item" mode, which makes that file pretty much obsolete - just theres adjustments involved and world breaking (since all the ids change).
Path: 'config/acronym/material_system.cfg`
item {
    # 0 - All Item Parts on a Single MC Item, 1 - All Item Parts have their own MC Item, > 1 - That many Parts per item
    I:size=0
}

I haven't made a thing


Imgflip add

Thank you for taking the time to work on a Pull Request for this project!
To ensure your PR is dealt with swiftly please check the following:

[x] Your submissions are formatted according to the guidelines in the contributing guide
[x ] Your additions are ordered alphabetically
[x ] Your submission has a useful description
[x ] The description does not end with punctuation
[x ] Each table column should be padded with one space on either side
[x ] You have searched the repository for any relevant issues or pull requests
[x ] Any category you are creating has the minimum requirement of 3 items
[x] All changes have been squashed into a single commit

Hey sorry for the delay. Can you move this API so that it is alphabetically ordered?


Tick tock trader update

Updated :)
I reduced the map size significantly and changed the warp pad's to doors so that you can choose your path more freely
as well the districts are much smaller and more varied
also the map design is more simple, there is less overall paths to take in the mid sections

frbファイルとyamlファイルのMaxDiceRollを6に変更してください。これが8だと特定の操作を行ったときにクラッシュが発生するので、それを防ぐために変更が必要です。

Change the MaxDiceRoll in the frb and yaml files to 6. If this is 8, a crash will occur when certain operations are performed, and the change is necessary to prevent this.

Got another error. The value of maxDiceRoll is 6 in the yaml file but 8 in the frb file.
Also as far as I can tell that's the only thing that was changed in the final update? The description mentioned other changes but I don't see any.

Whoops for some reason the branch did not push updating now

It's been a while since I looked at this, but I think it's all been tested for any issues? I'll merge the update for now and let the testers take it from here.


How to use?

Hello, thank you for the library. But because there is no example, I don't know how to use it. Can you provide an example? thanks

Hi, yes, sorry, I understand the library can be a bit alien and daunting at first.
First you wrap your app in a Router:
@main
struct MyApp: App {
	var body: some Scene {
		WindowGroup {
			Router {
				ContentView()
			}
		}
	}
}

The Router initializes all environment values and object etc. So using routes only works inside a Router. (You only need one Router in your entire app.)
Use Route to only render views when their path matches that of the global state. And use NavLink to make buttons that navigate to a path.
struct MyView: View {
	var body: some View {
		VStack {
			Route(path: "/hello-world") {
				// Will only be rendered if the path is "/hello-world".
				Text("Hello world!")
			}

			// A button that will navigate to "/hello-world"
			NavLink(to: "/hello-world") {
				Text("Go to Hello world")
			}
		}
	}
}

These are the basics. The README contains short descriptions of other views and features available in the library. The source code also contains documentation and is accessible in Xcode. (You may have to build the documentation via Product > Build Documentation to get access to the fully formatted docs)

I'm still trying to reserve time to work on tutorial(s) and example code 🙇

Thank you


remove wait of 30 seconds

This is to solve Issue https://github.com/pseudocoder10/Lockout-Bot/issues/9

too many bugs and no willingness to fix :angeryboye:


Feature/plugins and storage

Changes:

added plugin system - https://github.com/datapackages/jsontableschema-py/issues/49
added storage interface - https://github.com/datapackages/jsontableschema-py/issues/47
added export/import resource - https://github.com/datapackages/jsontableschema-py/issues/48
fixed input schema mutation - https://github.com/datapackages/jsontableschema-py/issues/43

@roll this is good for me. I also want @vitorbaptista to look at it as we've all been in this conversation since beginning. After his comments we can merge.
One note is that I think the original model class I wrote was a bit all over the place, and thinking in wider terms, we should probably break this up into two things soon:

A model class for the schema object (similar to most of what we have there already, exposing the schema and various helper methods)
A Resource class which takes a SchemaModel and a data source, and looks something like the resource class in datapackage-py (data iterator, etc).

This pushes most of the Resource logic into this package, where it can be used standalone, and also as part of a data package via datapackage-py.
This would pretty much finalise the API of this package as far as I see.

I need some time to read other thing you've add. But want to write right now it's awesome you've mentioned Resource class - I was thinking about it a lot. Because it's really missing part of abstractions (schema, resource=schema+data, datapackage=[schema+data]).

@roll yes. great. Actually, @vitorbaptista probably has most of the required Resource logic in datapackage-py so it should be quite simple to do this, and it really is the missing link here. If you have a direction on that I'd say go for it and do a PR on this repo with it.

I've updated readme in PR to make distinction  between core and plugins

@roll ok great. We'll wait for @vitorbaptista to look early in the week, and then merge.

Great! For datapackage-py implementation could be the same - just copying code from package.py and helpers.py - https://github.com/okfn/datapackage-storage-py/tree/master/datapackage_storage.
Some notes:

import and export should be substituted (in datapackage-storage-py we export from storage to filesystem but here we export resource or datapackage to storage - OOP approach)
instead of passing storage we're passing backend and **backend_options. To get a storage:

# I don't think we should catch an exception here because JTS plugin system
# raises exception with message describing lack of plugin problem
plugin = import_module('jsontableschema.plugins.%s' % backend)
storage = plugin.Storage(**backend_options)

I always mix importing and exporting resources. Importing a resource is going through a JSON Table Schema file to (say) a SQL table, and exporting is going from a SQL table to a JTS file, right?
Reading the code, I've seen that both while importing and exporting there're files being created. I couldn't figure out why.
I'm also concerned with the tests. This PR is mostly about creating methods that delegate to other libraries, so it's OK to assume that these other libraries work and just testing that we're calling them correctly. I'd prefer to have fewer mocks, testing at least that the CSV files were written correctly, but it's OK.
There're some naming issues, with the test class named Test_export_resource. It should be TestExportResource but, looking into the code, I see that it tests both export and import resource, so it should be TestResource. Also, they're using unittest instead of py.test (check https://github.com/okfn/coding-standards#python-1). The mock package was renamed in Pyton3 as well, so it should be imported as:
try:
    import mock
except ImportError:
    import unittest.mock as mock

To support both Python versions.
There're a few tests missing as well, specially for the utilities.py file. Ideally, we would have many small unit tests.
Overall, the changes look good. I would just like to improve the tests a bit before merging.

@roll good points from @vitorbaptista as always. Would be great to priortize this when you return from holidays so we can merge.

Fixed test name - thanks.
About unittest usage - it's not a part of PR (resource doesn't use it) - we could update tests across the whole codebase if needed in separate PR (but I don't think it's a high priority work).
And about mock - we use python3's mock backport (because mock wasn't part of python2 stdlib at all) - https://pypi.python.org/pypi/mock - cross-platform way to have mock for py2-py3 projects.

The most important name - naming =)
When user has database it's natural to export database to filesystem or import it to filesystem.
When use has datapackage/resource it's natural to export resource to database/filesystem etc or import(?) it from database/filesystem.
Here I really don't now how it would be better. But I know we should be consistent accross all out codebase. So what do you (@vitorbaptista @pwalsh) think about import/export naming for:

Datapackage class
Resource class

Agreed that moving from unittest to py.test should be in a separate PR (and isn't high priority).
About naming, as the code is related to a jsontableschema's resource, even though it isn't OOP, the "export" and "import" should be from the point of view of a resource. Exporting makes more sense for me, as we're exporting a resource to another place (DB, ...), but importing is a bit tricky because we're not really importing a resource from someplace (DB) to someplace else (filesystem), but actually converting something (DB) to a resource.
Thinking in OOP terms, if I saw resource.export(), I would expect to it to export the resource object to some place. Then Resource.import() would be a class-method and would return me a resource object with its data imported from the params.
In the end, export gives me a DB (or something else) with the resource's data, and import gives me a resource with the source's data.
Confusing...

In our final design (with Resource class) there will not be this imoprt_resource and export_resource functions at all - may be I'll try to provide initial Resource class with this functionality tomorrow morning because it looks like no reason to release this functions and, in the next version, remove it.
Other way - release with better naming and mark as unstable part of API. But I don't see a better naming for now.

@roll @vitorbaptista how about push (from JSON+CSV to database) and pull (from database to JSON+CSV)

Or it's much more interesting.
Across our codebase it could be:

save (save to zip)
push (push to storage)
pull (pull from storage)

I'm happy for this to be merged and work on the naming afterwards. Maybe it'll become clearer when the code is changed to a Resource class. Overall, I prefer import/export over push/pull.

Big downside of export/import is python problem with import single word usage. For me it's very annoying in API design when I can use it only in things like Resource.import_resource or other non semantic hacks non symmetrical to export word usage. So push/pull looks better for me.
But in our situation may be we don't need import word at all. Because we have 2 use cases (as I see it):
datapackage/resource.export()

and
instance = Datapackage/Resource.from_storage()
instance.save_to_filesystem()

If we have classes like Datapackage/Resource the second one is more natural for me then single import/pull call in procedural manner.

I thought a little bit more about it and I have to agree with Victor - without Resource design we can't now to say how it should look.
For example use case - big big resource stored in BigQuery - probably we want to provide interface to work with it without saving to filesystem or memory. This use case really affects Resource design. We need to check this and others scenario before making any decision on naming.
So I see to options for now:

be more iterative

rename export_resource to push_resource and import_resource to pull_resource (we still need this renaming because even we can't understand what's direction export/import means)
mark this API as unstable in docs
merge this
add push_package and pull_package to datapackage-py as functions do not integrating it
with Datapackage class (just as side utils)
mark this API as unstable in docs
deprecate datapackage-storage-py
so here our consolidation card we'll be done - we will be having real working tools
design Resource, refactor etc on the next iteration

be less iterative

do not merge
design Resource first

@roll I'm happy to go with your last points. I'd rather we design Resource now for use across both the jts and dp libs, but I think your analysis and approach is more reasonable given our current resources. Please do this so we can tidy up the APIs of all these libs, and open a new issue with everything we've said about Resource, and we'll target that for the subsequent release.

Changes Unknown when pulling bd21ab47d4903889eb7c5eee3824ee97f08ea03e on feature/plugins-and-storage into ** on master**.

Coverage decreased (-3.7%) to 91.737% when pulling 21d73b51eba9d551751d9686fa41cc1b5ce706a2 on feature/plugins-and-storage into 1e2445bdc74c32299b8c9e227de9cc77eaaff543 on master.

Coverage decreased (-4.9%) to 90.572% when pulling 442d22d334dd0dbf0037b98b98571904bd3ca0bf on feature/plugins-and-storage into 1e2445bdc74c32299b8c9e227de9cc77eaaff543 on master.


Design doc for applying rules via matching

This should address the theory for solving Issue #940 .
Please be sure to check the Implementation concerns section at the bottom for relevance w.r.t. Issue #940.

Reviewer checklist

[ ] Test coverage: stack test --coverage
[ ] Public API documentation: stack haddock

For all path, when you make a step, you can not look at only one rule ...

Yes, but this document was supposed to make us understand what we need to do with our code, and we're using the same code for all-path and one-path. If we should use this for non-functional stuff in one-path, and crash the program for all-path, then I'd like that to be obvious enough.


Support token in URLReaders for fetch:* actions in Scaffolder

In order to read things from URLReaders in the scaffolder, there needs to be a PAT or GitHub app configured.
This alleviates this requirement, by being able to pass token to the fetch:* actions which can be grabbed from Custom Field Extensions like the RepoUrlPicker.
That way, it will use the users oauth token for both reading the template files, and creation of the repository, and being able to be run without any configuration or authentication needed in the scaffolder deployment itself.

Hi @benjdlambert,
Once this PR had been integrated in v1.23.0 how can we make use of it? I think it will help in the problem we have.
e.g. We capture the GHE user token with RepoUrlPicker and USER_OAUTH_TOKEN, and your PR should allow that user to create a repo in his GHE personal account
Now we are receiving the error
No auth provider available for 'https://github.company.com/personal-account/NewRepo', see https://backstage.io/link?scm-auth
Regards

You'll need to setup an ScmAuth for GHE. You can see more at the link in the comment. That will enable you to request tokens using the GitHub Auth Provider you have configured in Backstage.
As for using this specific feature. you can pass token: ${{ secrets.USER_OAUTH_TOKEN }} to fetch:* actions, and they're already supported in publish:github for sure.

You'll need to setup an ScmAuth for GHE. You can see more at the link in the comment. That will enable you to request tokens using the GitHub Auth Provider you have configured in Backstage.
As for using this specific feature. you can pass token: ${{ secrets.USER_OAUTH_TOKEN }} to fetch:* actions, and they're already supported in publish:github for sure.

Yes, we tried to setup the scmauth for GHE
https://github.com/backstage/backstage/issues/22501


Hi @jlmxyz, did you resolve this issue?

Hi!
did not tried for long time now... beeing busy with other things although I have to make it build and try it on gentoo... so, I don't know if it's still valid...
best regards
JLM
Sent with Proton Mail secure email.
------- Original Message -------
On Wednesday, March 15th, 2023 at 12:46 PM, Andrin Bertschi @.***> wrote:

Hi @jlmxyz, did you resolve this issue?

—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.[https://mail.proton.me/api/core/v4/images?Url=https%3A%2F%2Fgithub.com%2Fnotifications%2Fbeacon%2FAJUDLRAFESKSAZH7Q4ON5O3W4GT2NA5CNFSM4NBOO4OKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOK6OEEGQ.gif&DryRun=0&UID=g2d4xivsjrxqgcz6os4vlis22igqxhkf]


Malfunction: query processes with the same name returns one process.

E.g. I would like to enable process collector and specify a custom query:
.\wmi_exporter.exe "-collectors.enabled" "process" "-collector.process.processes-where" "Name='firefox'"
Even if there are 4 processes with the same name 'firefox', wmi_exporter returns metrics for only one of them.

To get all the processes, you need to change the where-clause to Name LIKE 'firefox%'

oh.. I tried ='%firefox%'.  Thank you!

No worries, it has confused me too :-)


Simplifying MvcTestFixture

cc @davidfowl \ @JunTaoLuo

Looks good besides CI failure?

@pranavkm - this is super nice cleanup.
The other part of this item... what else would a user need to do to integration test their site? What tasks is the fixture currently performing that the hosting builder is not performing? (Ignore things like test logger and test encoder, which our users probably don't care about by default).

@rynowak setting the app base is the main one. If we override that by handling it at the IApplicationEnvironment layer then AppContext.BaseDirectory won't work but maybe that's fine and we don't care?

The StaticAssemblyProvider bit is also something a user would need to setup. If we change Mvc to not perform controller discovery and instead use a list provided at startup, this would go away.

AppContext.BaseDirectory won't work but maybe that's fine and we don't care?

That seems fine to me.


build: include component to prepare

🐝 PR preview in Swarm
Preview URL: https://bah5acgzafkmnz2mf7iyslk4joq365a645hlgqynnj6zucx2qmssyhkjto5pq.bzz.link
Swarm Hash: 2a98dce985fa3125ab897437ee83dce9d66861ad4fb3415f5064a583a933775f
Commit Hash: dcbc6926add7a39d20f5ab8e37a9eae029c23a2c
Commit Message: build: include component to prepare


Redis & Redis Cluster POC

Description
Introduced two new database wrappers.

Redis integration with batching (speed improvments)
Redis Cluster without batching (better in mem storage)

Type of change
Insert x into the following checkboxes to confirm (eg. [x]):

[ ] Bug fix.
[x] New feature.
[ ] Breaking change (a fix or feature that causes existing functionality to not work as expected).
[ ] Requires documentation update.

Testing
Compared three databases : LevelDB, RamCloud, Redis and found out that Redis would be the best option between those.
More informations in the documents here:
https://drive.google.com/open?id=1lUEyDaju_Bgj211kPhz5wElptxPRlo8E
TLDR; Redis is syncing way faster than LevelDB but the bottleneck is the memory. Redis-Cluster solves the bottleneck but sync is much slower because batching is not possible.

Verification
Insert x into the following checkboxes to confirm (eg. [x]):

[x] I have self-reviewed my own code and conformed to the style guidelines of this project.
[ ] New and existing tests pass locally with my changes.
[ ] I have added tests for my fix or feature.
[ ] I have made appropriate changes to the corresponding documentation.
[x] My code generates no new warnings.
[x] Any dependent changes have been made.

We integrate redis only when it's cluster model have better performance then LDB instead of single nodes model.
Please tested, and for those big changes please wait tech steering committee's approval before merge into master.

@JayT106  don't include this POC into v0.2.8 branch.   Support 2 DB make sense, at it give user options. but support 4 DB just confusing end-users.  before we made the decision which DB should be replaced, no more DB can be added into prod binary. please do more test and give us a recommendation which one should be replaced or just keep this in a POC branch till we ready.

@centrys-sergiu   please ask Jay create a aionnetwork: dev-redis,  and re-PR to poc branch first before merge into main dev.


Update font.js

Should resolve the build issue of missing src/opentype/index.js you were having @RoelN.

Thanks for this PR, and the one over at ~Font.js~ lib-font!

Closing this as we're now using lib-font via NPM.


Update winit to 0.30

Update winit example to use run_app
Update winit example to proxy MenuEvent

I wasn't sure about a couple of things re cross platform because I don't have linux or mac setup to test on.
I also omitted event_loop.set_control_flow(ControlFlow::Wait); as it appears ControlFlow::Wait is the default.

hi, any idea why the events are not caught? the menu doesn't appear in your updated example.
it works when event_loop.set_control_flow(ControlFlow::Poll); but that burns lots of cpu cycles.
in my app i also have other events which work fine (listening a websocket and firing a notification) with event_loop.set_control_flow(ControlFlow::Wait) however i couldn't make the menu appear too (somehow all events and menu pop up appear after the notification triggers the event loop but clicking the tray icon itself doesn't)
(windows 11 24H2)

Weird, running on Windows 10 22H2 and it appears to work correctly for me.
When I run with:
cargo run --package tray-icon --example winit

I can view and click the menu:
TrayIconEvent(Click { id: TrayIconId("1"), position: PhysicalPosition { x: 2304.0, y: 1420.0 }, rect: Rect { size: PhysicalSize { width: 24, height: 40 }, position: PhysicalPosition { x: 2297.0, y: 1400.0 } }, button: Right, button_state: Down })
MenuEvent(MenuEvent { id: MenuId("1001") })

The click on the tray icon is a TrayIconEvent, with the click on the menu itself being a MenuEvent.
I'm not sure what to tell you about Wait vs Poll. I'm using Wait with multiple winit windows and egui events being proxied, and I haven't run into them not firing, but all the examples I've seen of winit / egui change the control flow to Poll 🤷♂.

@poyhen  I did notice when looking at the eframe example the events seem delayed.

winit 0.29 seems to work fine, it happens on 0.30 series so not entirely sure whats going on considering it works fine on your windows 10 22h2. haven't tested egui yet i can try that one tomorrow

@moshen yup similar issue there with egui. tried with a few version and they seem to bump to winit 0.30 in their 0.29 release (https://github.com/emilk/egui/blob/master/crates/egui-winit/CHANGELOG.md#0290---2024-09-26---winit-030) and can reproduce same issue with it. it seems the change in winit 0.30 to use .run_app instead of .run has different behavior

@poyhen  I was looking at my project and I was using winit 0.30.5, and I saw this release w/ notes for 0.30.6 :
https://github.com/rust-windowing/winit/releases/tag/v0.30.6

On Windows, make ControlFlow::WaitUntil work more precisely using CREATE_WAITABLE_TIMER_HIGH_RESOLUTION.

When I force 0.30.6+ I see the behavior you're referring to. The tray icon context menu no longer works.


Launched Space Staion Rocket and crashed, world now inaccessible.

Built Space station on earth and packed it up, placed on rocket and launched successfully but crashed as it reached its destination. Cannot reopen world.

Time: 4/18/17 10:04 PM
Description: Ticking entity
java.lang.NullPointerException: Ticking entity
at zmaster587.advancedRocketry.stations.SpaceObjectManager.moveStationToBody(SpaceObjectManager.java:371)
at zmaster587.advancedRocketry.stations.SpaceObjectManager.moveStationToBody(SpaceObjectManager.java:361)
at zmaster587.advancedRocketry.entity.EntityRocket.unpackSatellites(EntityRocket.java:800)
at zmaster587.advancedRocketry.entity.EntityRocket.onOrbitReached(EntityRocket.java:725)
at zmaster587.advancedRocketry.entity.EntityRocket.func_70071_h_(EntityRocket.java:635)
at net.minecraft.world.World.func_72866_a(World.java:1964)
at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:839)
at net.minecraft.world.World.func_72870_g(World.java:1934)
at net.minecraft.world.World.func_72939_s(World.java:1750)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:620)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:709)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:149)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471)
at java.lang.Thread.run(Thread.java:745)
A detailed walkthrough of the error, its code path and all known details is as follows:
-- Head --
Thread: Server thread
Stacktrace:
at zmaster587.advancedRocketry.stations.SpaceObjectManager.moveStationToBody(SpaceObjectManager.java:371)
at zmaster587.advancedRocketry.stations.SpaceObjectManager.moveStationToBody(SpaceObjectManager.java:361)
at zmaster587.advancedRocketry.entity.EntityRocket.unpackSatellites(EntityRocket.java:800)
at zmaster587.advancedRocketry.entity.EntityRocket.onOrbitReached(EntityRocket.java:725)
at zmaster587.advancedRocketry.entity.EntityRocket.func_70071_h_(EntityRocket.java:635)
at net.minecraft.world.World.func_72866_a(World.java:1964)
at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:839)
at net.minecraft.world.World.func_72870_g(World.java:1934)
-- Entity being ticked --
Details:
Entity Type: advancedRocketry.rocket (zmaster587.advancedRocketry.entity.EntityRocket)
Entity ID: 2979924
Entity Name: Rocket
Entity's Exact location: 392.50, 1001.13, 341.50
Entity's Block location: World: (392,1001,341), Chunk: (at 8,62,5 in 24,21; contains blocks 384,0,336 to 399,255,351), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Entity's Momentum: 0.00, 2.50, 0.00
Entity's Passengers: []
Entity's Vehicle: ERROR NullPointerException: null
Stacktrace:
at net.minecraft.world.World.func_72939_s(World.java:1750)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:620)
-- Affected level --
Details:
Level name: I'm In Space!
All players: 1 total; [EntityPlayerMP['HandyMan67'/175, l='I'm In Space!', x=392.32, y=79.00, z=348.10]]
Chunk stats: ServerChunkCache: 642 Drop: 0
Level seed:<PHONE_NUMBER>737352416
Level generator: ID 00 - default, ver 1. Features enabled: true
Level generator options:
Level spawn location: World: (297,64,277), Chunk: (at 9,4,5 in 18,17; contains blocks 288,0,272 to 303,255,287), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 847070 game time, 644084 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 86718 (now: false), thunder time: 7624 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:709)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:149)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471)
at java.lang.Thread.run(Thread.java:745)
-- System Details --
Details:
Minecraft Version: 1.10.2
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.8.0_25, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 473582064 bytes (451 MB) /<PHONE_NUMBER> bytes (2035 MB) up to<PHONE_NUMBER> bytes (2035 MB)
JVM Flags: 8 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M -Xmx2048M -Xms2048M
IntCache: cache: 0, tcache: 0, allocated: 12, tallocated: 94
FML: MCP 9.32 Powered by Forge <IP_ADDRESS>5 22 mods loaded, 22 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCHIJAAAA	mcp{9.19} [Minecraft Coder Pack] (minecraft.jar)
UCHIJAAAA	FML{<IP_ADDRESS>} [Forge Mod Loader] (forge-1.10.2-<IP_ADDRESS>5.jar)
UCHIJAAAA	Forge{<IP_ADDRESS>5} [Minecraft Forge] (forge-1.10.2-<IP_ADDRESS>5.jar)
UCHIJAAAA	AdvancedRocketryCore{1} [Advanced Rocketry] (minecraft.jar)
UCHIJAAAA	creativecoredummy{1.0.0} [CreativeCoreDummy] (minecraft.jar)
UCHIJAAAA	libVulpes{<IP_ADDRESS>70402130834} [libVulpes] (LibVulpes-1.10.2-0.1.17-universal.jar)
UCHIJAAAA	advancedRocketry{1.10.2-1.0.16} [Advanced Rocketry] (AdvancedRocketry-1.10.2-1.0.16.jar)
UCHIJAAAA	Chameleon{1.10-2.2.2} [Chameleon] (Chameleon-1.10-2.2.2.jar)
UCHIJAAAA	creativecore{1.5.0} [CreativeCore] (CreativeCore v1.6.24 mc1.10.2.jar)
UCHIJAAAA	endercore{1.10.2-<IP_ADDRESS>-beta} [EnderCore] (EnderCore-1.10.2-<IP_ADDRESS>-beta.jar)
UCHIJAAAA	JEI{<IP_ADDRESS>1} [Just Enough Items] (jei_1.10.2-<IP_ADDRESS>1.jar)
UCHIJAAAA	EnderIO{1.10.2-3.1.156} [Ender IO] (EnderIO-1.10.2-3.1.156.jar)
UCHIJAAAA	excore{1.6.2} [EXCore] (Excore-1.6.2-1.10.2.jar)
UCHIJAAAA	ExtraUtils2{1.0} [ExtraUtils2] (extrautils2-1.10.2-1.1.3c.jar)
UCHIJAAAA	justenoughbuttons{1.10.2-1.7.3} [Just Enough Buttons] (justenoughbuttons-1.10.2-1.7.3.jar)
UCHIJAAAA	neid{1.5.3} [NotEnoughIDs] (NotEnoughIDs-1.5.3.jar)
UCHIJAAAA	rftools{5.62} [RFTools] (rftools-1.10-5.62.jar)
UCHIJAAAA	rftoolscontrol{1.5.2} [RFTools Control] (rftoolsctrl-1.10-1.5.2.jar)
UCHIJAAAA	worldedit{6.1.4} [WorldEdit] (worldedit-forge-mc1.10.2-6.1.4-dist.jar)
UCHIJAAAA	WorldEditCuiFe{1.0.2} [WorldEdit CUI Forge Edition] (WorldEditCuiFe-v1.0.6-mf-1.10.2-<IP_ADDRESS>5.jar)
UCHIJAAAA	XaeroMinimap{1.12.5} [Xaero's Minimap] (Xaeros_Minimap_1.12.5_Forge_1.10.2.jar)
UCHIJAAAA	XaeroWorldMap{1.8.1} [Xaero's World Map] (XaerosWorldMap_b1.8.1_Forge_1.10.2.jar)
Loaded coremods (and transformers):
CreativePatchingLoader (CreativeCore v1.6.24 mc1.10.2.jar)
Plugin (NotEnoughIDs-1.5.3.jar)
ru.fewizz.neid.asm.Transformer
EnderCorePlugin (EnderCore-1.10.2-<IP_ADDRESS>-beta.jar)
com.enderio.core.common.transform.EnderCoreTransformer
AdvancedRocketryPlugin (AdvancedRocketry-1.10.2-1.0.16.jar)
zmaster587.advancedRocketry.asm.ClassTransformer
GL info: ERROR RuntimeException: No OpenGL context found in the current thread.
EnderIO: No known problems detected.
Detailed RF API diagnostics:
* RF API class 'EnergyStorage' is loaded from: jar:file:/C:/Users/Ron/AppData/Roaming/.minecraft/versions/1.10.2-forge%20Advanced%20Rockets/mods/mcjtylib-1.10-2.2.0.jar!/cofh/api/energy/EnergyStorage.class
* RF API class 'IEnergyConnection' is loaded from: jar:file:/C:/Users/Ron/AppData/Roaming/.minecraft/versions/1.10.2-forge%20Advanced%20Rockets/mods/mcjtylib-1.10-2.2.0.jar!/cofh/api/energy/IEnergyConnection.class
* RF API class 'IEnergyContainerItem' is loaded from: jar:file:/C:/Users/Ron/AppData/Roaming/.minecraft/versions/1.10.2-forge%20Advanced%20Rockets/mods/mcjtylib-1.10-2.2.0.jar!/cofh/api/energy/IEnergyContainerItem.class
* RF API class 'IEnergyHandler' is loaded from: jar:file:/C:/Users/Ron/AppData/Roaming/.minecraft/versions/1.10.2-forge%20Advanced%20Rockets/mods/mcjtylib-1.10-2.2.0.jar!/cofh/api/energy/IEnergyHandler.class
* RF API class 'IEnergyProvider' is loaded from: jar:file:/C:/Users/Ron/AppData/Roaming/.minecraft/versions/1.10.2-forge%20Advanced%20Rockets/mods/mcjtylib-1.10-2.2.0.jar!/cofh/api/energy/IEnergyProvider.class
* RF API class 'IEnergyReceiver' is loaded from: jar:file:/C:/Users/Ron/AppData/Roaming/.minecraft/versions/1.10.2-forge%20Advanced%20Rockets/mods/mcjtylib-1.10-2.2.0.jar!/cofh/api/energy/IEnergyReceiver.class
* RF API class 'IEnergyStorage' is loaded from: jar:file:/C:/Users/Ron/AppData/Roaming/.minecraft/versions/1.10.2-forge%20Advanced%20Rockets/mods/mcjtylib-1.10-2.2.0.jar!/cofh/api/energy/IEnergyStorage.class
* RF API class 'ItemEnergyContainer' is loaded from: jar:file:/C:/Users/Ron/AppData/Roaming/.minecraft/versions/1.10.2-forge%20Advanced%20Rockets/mods/mcjtylib-1.10-2.2.0.jar!/cofh/api/energy/ItemEnergyContainer.class
* RF API class 'TileEnergyHandler' is loaded from: jar:file:/C:/Users/Ron/AppData/Roaming/.minecraft/versions/1.10.2-forge%20Advanced%20Rockets/mods/mcjtylib-1.10-2.2.0.jar!/cofh/api/energy/TileEnergyHandler.class
Detailed Tesla API diagnostics:
* Tesla API class 'Tesla' could not be loaded (reason: java.lang.ClassNotFoundException: net.darkhax.tesla.Tesla)
* Tesla API class 'TeslaCapabilities' could not be loaded (reason: java.lang.ClassNotFoundException: net.darkhax.tesla.capability.TeslaCapabilities)
* Tesla API class 'ITeslaConsumer' could not be loaded (reason: java.lang.ClassNotFoundException: net.darkhax.tesla.api.ITeslaConsumer)
* Tesla API class 'ITeslaHolder' could not be loaded (reason: java.lang.ClassNotFoundException: net.darkhax.tesla.api.ITeslaHolder)
* Tesla API class 'ITeslaProducer' could not be loaded (reason: java.lang.ClassNotFoundException: net.darkhax.tesla.api.ITeslaProducer)
* Tesla API class 'BaseTeslaContainer' could not be loaded (reason: java.lang.ClassNotFoundException: net.darkhax.tesla.api.implementation.BaseTeslaContainer)
* Tesla API class 'BaseTeslaContainerProvider' could not be loaded (reason: java.lang.ClassNotFoundException: net.darkhax.tesla.api.implementation.BaseTeslaContainerProvider)
* Tesla API class 'InfiniteTeslaConsumer' could not be loaded (reason: java.lang.ClassNotFoundException: net.darkhax.tesla.api.implementation.InfiniteTeslaConsumer)
* Tesla API class 'InfiniteTeslaConsumerProvider' could not be loaded (reason: java.lang.ClassNotFoundException: net.darkhax.tesla.api.implementation.InfiniteTeslaConsumerProvider)
* Tesla API class 'InfiniteTeslaProducer' could not be loaded (reason: java.lang.ClassNotFoundException: net.darkhax.tesla.api.implementation.InfiniteTeslaProducer)
* Tesla API class 'InfiniteTeslaProducerProvider' could not be loaded (reason: java.lang.ClassNotFoundException: net.darkhax.tesla.api.implementation.InfiniteTeslaProducerProvider)
Profiler Position: N/A (disabled)
Player Count: 1 / 8; [EntityPlayerMP['HandyMan67'/175, l='I'm In Space!', x=392.32, y=79.00, z=348.10]]
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'

Would it be possible to upload a copy of the world, or at least the region containing the rocket and the /advRocketry/temp.dat file?  Alternately, is it possible to replicate the issue on demand and if so, can you provide instructions on how to do it?

I'm unable to reopen the world but I could upload it for you.
(https://1drv.ms/f/s!AjGyXQYEAU6zyna0cCxFZjbivmKq)

Looks like the NBT data on the station container in the rocket got erased somehow...  if you build and launch another station does it occur again?
Will link a build that'll prevent the game from crashing on you.  It will delete rockets that try to launch invalid stations however,
http://<IP_ADDRESS>:8080/job/Advanced Rocketry/job/AdvancedRocketry/job/MC1_10/15/

I tried again and everything worked great.
I'm not sure but I may have used glass from another mod the first time.
Thanks for your time.
Sweet mod btw.

Yep, no problem.  And thanks!


eval to undefined should be able to exit with a non-zero error code

I have a script that interacts with the cue CLI. It does an eval in several places based on user input. If the user input is wrong, cue will return an undefined value.
 ./output/bin/cue eval foo.cue  -e foo
_|_ // reference "foo" not found

This output is probably helpful for a user interaction. From a scripting interaction it is very annoying. The backwards compatible way to improve scripting is to exit with a non-zero code. If you really want to stay backwards compatible, add a -e option that turns on the exit code (jq actually does exactly this).

This issue has been migrated to https://github.com/cue-lang/cue/issues/248.
For more details about CUE's migration to a new home, please see https://github.com/cue-lang/cue/issues/1078.


Bug located in Region.material - cannot set material

🔍 Before submitting the issue

[X] I have searched among the existing issues
[X] I am using a Python virtual environment

🐞 Description of the bug
The script does not set Rotor material to "M470-50A" as it should. Material remains set to original material "M250-35A".
Script set in Geometry -> Editor -> Adaptive Templates tab in the attached Motor-CAD file (in .zip).
e9_eMobility_IPM_User.zip
📝 Steps to reproduce
Open attached Motor-CAD file (in .zip) in Motor-CAD v2024R1
Go to Geometry -> Editor -> Adaptive Templates
Click 'Run'
Observe Material of Rotor is still set to original value.
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
Motor-CAD 2024R1
🐍 Which Python version are you using?
3.10
📦 Installed packages
-e git+https://github.com/pyansys/pymotorcad/@47b79e89706f6152d60c9116e329de5923252ff5#egg=ansys_motorcad_core
attrs==22.2.0
cachetools==5.2.1
certifi==2022.12.7
cfgv==3.3.1
chardet==5.1.0
charset-normalizer==3.0.1
click==8.1.3
colorama==0.4.6
contourpy==1.0.7
cycler==0.11.0
distlib==0.3.6
exceptiongroup==1.1.0
filelock==3.9.0
Flask==2.2.2
fonttools==4.39.0
identify==2.5.13
idna==3.4
importlib-metadata==6.0.0
iniconfig==2.0.0
itsdangerous==2.1.2
Jinja2==3.1.2
jsonrpcserver==5.0.9
jsonschema==4.17.3
kiwisolver==1.4.4
MarkupSafe==2.1.2
matplotlib==3.7.1
nodeenv==1.7.0
numpy==1.24.2
OSlash==0.6.3
packaging==23.0
Pillow==9.4.0
platformdirs==2.6.2
pluggy==1.0.0
pre-commit==2.21.0
psutil==5.9.4
pyparsing==3.0.9
pyproject_api==1.5.0
pyrsistent==0.19.3
pytest==7.2.1
python-dateutil==2.8.2
PyYAML==6.0
requests==2.28.2
six==1.16.0
tomli==2.0.1
tox==4.3.5
typing_extensions==4.5.0
urllib3==1.26.14
virtualenv==20.17.1
Werkzeug==2.2.2
zipp==3.11.0

will this bug be fixed? i have similar issue when assigning a magnet material (Vinyl Ferrite) to a region. looks like it's still behaving like air.


Consider Provider Write Multiplexing

Research how difficult it is to implement and expose (safely) multiplex writing of buffers to providers.
An example
Nmwrite 1<EMAIL_ADDRESS><EMAIL_ADDRESS>docker://mycontainer///some_location/somefile.txt

Things to consider

How do we visually show the user which file/files your buffer is interfacing with
What do we do when/if there is a content mismatch between provider files?

I am not sold on how useful this would be but implementing it under the hood would not be difficult. The difficult lies on how to safely convey what is being done and how to allow users to control it.

Closing this request as out of scope. It may come back later as new issue once Netman is more mature but right now there is no feasible way to implement this.


Cmake Fails

I'm on OS X Yosemite, the following errors are produced.

loading initial cache file MAKE_C_COMPILER=/Users/Pixel/Desktop/glfw-master/CMake/i686-pc-mingw32.cmake
CMake Error: Error processing file: MAKE_C_COMPILER=/Users/Pixel/Desktop/glfw-master/CMake/i686-pc-mingw32.cmake
-- The C compiler identification is unknown
CMake Error at CMakeLists.txt:1 (project):
The CMAKE_C_COMPILER:
i586-mingw32msvc-gcc
is not a full path and was not found in the PATH.
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
See also "/Users/Pixel/Desktop/glfw-master/CMakeFiles/CMakeOutput.log".
See also "/Users/Pixel/Desktop/glfw-master/CMakeFiles/CMakeError.log".

The error file contains the following:

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: i586-mingw32msvc-gcc
Build flags:
Id flags:
The output was:
No such file or directory
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: i586-mingw32msvc-gcc
Build flags:
Id flags: -c
The output was:
No such file or directory
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: i586-mingw32msvc-gcc
Build flags:
Id flags: -Aa
The output was:
No such file or directory
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: i586-mingw32msvc-gcc
Build flags:
Id flags:
The output was:
No such file or directory
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: i586-mingw32msvc-gcc
Build flags:
Id flags: -c
The output was:
No such file or directory
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: i586-mingw32msvc-gcc
Build flags:
Id flags: -Aa
The output was:
No such file or directory
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: i586-mingw32msvc-gcc
Build flags:
Id flags:
The output was:
No such file or directory
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: i586-mingw32msvc-gcc
Build flags:
Id flags: -c
The output was:
No such file or directory
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: i586-mingw32msvc-gcc
Build flags:
Id flags: -Aa
The output was:
No such file or directory
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: i586-mingw32msvc-gcc
Build flags:
Id flags:
The output was:
No such file or directory
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: i586-mingw32msvc-gcc
Build flags:
Id flags: -c
The output was:
No such file or directory
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: i586-mingw32msvc-gcc
Build flags:
Id flags: -Aa
The output was:
No such file or directory
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: i586-mingw32msvc-gcc
Build flags:
Id flags:
The output was:
No such file or directory
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: i586-mingw32msvc-gcc
Build flags:
Id flags: -c
The output was:
No such file or directory
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: i586-mingw32msvc-gcc
Build flags:
Id flags: -Aa
The output was:
No such file or directory
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: i586-mingw32msvc-gcc
Build flags:
Id flags:
The output was:
No such file or directory
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: i586-mingw32msvc-gcc
Build flags:
Id flags: -c
The output was:
No such file or directory
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: i586-mingw32msvc-gcc
Build flags:
Id flags: -Aa
The output was:
No such file or directory
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: i586-mingw32msvc-gcc
Build flags:
Id flags:
The output was:
No such file or directory
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: i586-mingw32msvc-gcc
Build flags:
Id flags: -c
The output was:
No such file or directory
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: i586-mingw32msvc-gcc
Build flags:
Id flags: -Aa
The output was:
No such file or directory
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: i586-mingw32msvc-gcc
Build flags:
Id flags:
The output was:
No such file or directory
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: i586-mingw32msvc-gcc
Build flags:
Id flags: -c
The output was:
No such file or directory
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: i586-mingw32msvc-gcc
Build flags:
Id flags: -Aa
The output was:
No such file or directory
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":

Any help is appreciated.

Why are you trying to use MinGW on OS X?

MinGW? I don't know. I just ran "cmake ."

Is it a build tree you have moved from a Windows machine? If so you need to remove the current CMake cache.

Oh, I see. I've re-downloaded the zip and it works now. The includes also work in Eclipse too but when it attempts to compile the project, the following error is produced:

/usr/local/include/GLFW/glfw3native.h:90:3: error: "No window API selected"
#error "No window API selected"
^
/usr/local/include/GLFW/glfw3native.h:102:3: error: "No context API selected"
#error "No context API selected"
^
2 errors generated.
make: *** [src/Prototype-RP.o] Error 1

To quote the header file causing the errors above:

By using the native access functions you assert that you know what you're doing and how to fix problems caused by using them.  If you don't, you shouldn't be using them.

If you are building someone else's project and it uses the native access functions then it may not yet support OS X.

Ah, I'll do a bit of reading up on this because I'm new to C++ (moving from Java) so I'll need to learn how to use the compiler/linker properly.
Your library appears to work perfectly though, thank you for the info!


Move Ankivalenz to nbdev

https://twitter.com/ichverstehe/status/1583043323874271232

I played around a bit with this today (see the nbdev branch).
One issue: how does this work with mypy?
Would it be possible to use nbdev with the VS Code Jupyter feature?

Would it be possible to use nbdev with the VS Code Jupyter feature?

That seems to work out of the box!

Since I am not using poetry with nbdev (because I do not know if they are compatible?), I need to figure out the best way to install Python 3.11 on Ubuntu.

The other day I installed asdf. It worked very well for Elixir. Maybe that will work for Python as well. Does not have an official Python plugin, though.


using ros-tool for battery indicator

I'm using a node service (running within a local docker container) that simulates a robot battery slowly charging and discharging.
I added a battery charge indicator in the devices table.
I have yet to work on the abstractions I used to provide context to the indicator, there's a lot to extract into common components there.
WIP for #17
Some screenshots:
While charging:

full:

medium:

low:

empty:

Looks great!

I have yet to work on the abstractions I used to provide context to the indicator, there's a lot to extract into common components there.

What do you have in mind?

In the current approach we are starting a separate mqtt connection for each robot in the list. We can avoid that by using the fleet API provided by ROS Tool: https://transitiverobotics.com/caps/transitive-robotics/ros-tool/#fleet-api

OK, I refactored the code so we use the fleet API
I also created some context providers to reuse ROS subscription/unsubscription code in context providers.

I also created some context providers to reuse ROS subscription/unsubscription code in context providers.

I actually don't think that's a good idea. We want our users to use transAct to learn Transitive. We don't want them to learn transAct. What I mean by that is we don't want to introduce new wrappers inside transAct, e.g., by introducing new context providers around existing Transitive capabilities, in this case ROS Tool. If we do, then the user who looks at, say the Devices page code will first need to understand what the ROSContextProvider is and the API it exposes. And only once they do will they find the (documented) ROS Tool API underneath.
Instead we want to demonstrate how to use those APIs directly, and the simpler the example, the easier it will be for the user to understand. Another reason is that those APIs exposed by capabilities should be and are documented, e.g., here and any effort spent on documentation should be spent there, not on documenting another indirection we create inside transAct.

Sounds good. And I definitely like the idea of adding more conveniences to the Transitive SDK when they generalize well to the varying setups that Transitive user might have.


Instance variable concurrency

Allows instance variables in Concurrent objects to be wrapped in mutex locks via the new meta-programming declaration, .concurrent()

Use branch origin/experimental.


Op type not registered 'NoOp' from toco

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): no
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): linux ubuntu 17.10
TensorFlow installed from (source or binary): source
TensorFlow version (use command below): r1.6
Python version: python 3.6.3
Bazel version (if compiling from source): bazel-0.11.1-installer-linux-x86_64.sh
GCC/Compiler version (if compiling from source): gcc/g++ 6.4.0
CUDA/cuDNN version: CUDA:9.1 cuDNN 7.1
GPU model and memory: gtx 1060 6GB
Exact command to reproduce:
bazel run --config=opt --copt=-msse4.1 --copt=-msse4.2   //tensorflow/contrib/lite/toco:toco -- --input_file=/home/andy/data/models/Best_model/MFN.pb   --input_format=TENSORFLOW_GRAPHDEF   --output_format=TFLITE   --output_file=/home/andy/data/models/Best_model/MFN.tflite   --inference_type=FLOAT   --inference_input_type=FLOAT   --input_arrays=input   --output_arrays=embeddings   --input_shapes=1,112,112,3

Describe the problem
I had trained and frozen a MobileNet_v2 pretrain model which is under slim architecture to tensorflow graphdef protocol, when I use  toco convert to tflite(command as flow item 1),  I got a error as flow item 2. hold for someone kindly help me solve it, thanks.

toco cmd
bazel run --config=opt --copt=-msse4.1 --copt=-msse4.2   //tensorflow/contrib/lite/toco:toco -- --input_file=/home/andy/data/models/Best_model/MFN.pb   --input_format=TENSORFLOW_GRAPHDEF   --output_format=TFLITE   --output_file=/home/andy/data/models/Best_model/MFN.tflite   --inference_type=FLOAT   --inference_input_type=FLOAT   --input_arrays=input   --output_arrays=embeddings   --input_shapes=1,112,112,3

error logs
2018-05-14 19:35:27.695827: F tensorflow/core/graph/graph.cc:283] Non-OK-status: status status: Not found: Op type not registered 'NoOp' in binary running on andy. Make sure the Op and Kernel are registered in the binary running in this process.

Nagging Assignee @cy89: It has been 15 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Any update on this? I have the same problem

@andrewginns no, i can't solve it, wait for help.

Nagging Assignee @cy89: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Any updates on this issue? Facing the same problem.

@nishanthkorupolu try to update your tensorflow. The toco tools didn't work for me on tf1.6 but work on tf1.8+

@andrewginns I'm currently using tensorflow 1.8.0 and it's showing the same error.

Can anyone having this issue share your model with us, so that we can reproduce the issue ?

NoOp's are a control flow op often introduces by initializers. You should ensure your graph is a frozen eval graph before converting it to TFLite.
If you can still produce this error with the most recent version of TF could you provide repro example?

@suharshs  thanks for your reply. Here is my repro example(Machine Translation Project origin from google group, origin_repro), i modified some of the code in order make it simpler for lite converter project.
Converting into frozen and lite model's code : code
I have a few questions.

what are the different between python version toco(lite.py etc. tf.contrib.lite.TocoConverter.from_frozen_graph) and command version? which one is the newest ones?
I have already used tf.graph_util.convert_variables_to_constants python script to convert normal saved model into frozen graph but it still appears NoOp.
I tried tf.graph_util.remove_training_nodes function for removing training nodes(may contain NoOp?) but the model will be broken(unable to inference, it may change some of the Op of the old graph then it pops errors again.). strange thing is NoOp problem is passed during toco converting.

@aselle @andrehentz @petewarden would you PTAL?

@xsr-ai, could you verify that @suharshs' suggestions helped.
@lkfo415579 could you please open a new issue rather than posting on an existing one (it's difficult to track multiple conversations).

No activity for @xsr-ai's concern. New issue opened for @lkfo415579.

any one solve this problem?

Check https://github.com/DoubangoTelecom/TensorflowStaticNativeLibsAndroid/blob/master/README.md#known-issue


Multiple Servos Send Duplicate Notifications

If you are running multiple servos the send fence is only protecting the one environment. The fix would be to have a "send fence" be database driven.
Existing Fence:
https://github.com/raix/push/blob/60bc871be12a33295e3202563c88863f79f0def4/lib/server/push.api.js#L422
Suggested update, something like this:
https://github.com/raix/push/blob/60bc871be12a33295e3202563c88863f79f0def4/lib/server/push.api.js#L427
var notification = Push.notifications.findOne({ sending: {$ne: true}, sent : { $ne: true } }, { sort: { createdAt: 1 } });

if(notification) {
  var selector = {
     _id: notification._id,
     sending: false,
     sent: false
  };
  var modifier = {
     $set: {
        sending: true
     }
  };
  var numberOfDocsUpdated = Push.notifications.update(selector, modifier);

  if(numberOfDocsUpdated === 1) {
      //proceed with sending
  }
}

If the server crashed in-between updating to sending: true and finishing the send, that particular push notification would be stuck in limbo, so the only other thing to add is a process thats moves the "sending" back to false if a push notification sending: true has not been completed within a certain time period.

Thanks, I thought this was already pushed - I'm sure I've already done this... I'll check up on it

@davidwoody can you give<EMAIL_ADDRESS>a go?

@raix BOOM! Looks fixed to me. Just tried it out in staging and production and it worked like a charm. Thanks!


Add text blocks in test code

Also added testcontainers annotations.

coverage: 87.301% (-0.009%) from 87.31%
when pulling 5f37c248381ea7fb08720763b1974feb6717c192 on hazendaz:pom-cleanup
into 112dfee9d99a6f32e4d228f30558d4ff15b4a608 on mybatis:master.