URGENT: Braintree gateway config not working for live

What I'm trying to achieve
We found a bug in the plugin braintree configuration that is leading to complete non-functional braintree gateway for production. The error is coming from the sandbox_mode configuration parameter.
It works great for sandbox, as this is the standard config:
https://github.com/mirumee/saleor/blob/master/saleor/payment/gateways/braintree/__init__.py#L100
But it seems like sandbox_mode gets stored in saleor as string!! not as python boolean. We checked it by introducing a print(type)) like this, directly after line 100:
    print('Sandbox ? ', sandbox_mode)
    print(type(sandbox_mode))
    if not sandbox_mode:
        environment = braintree_sdk.Environment.Production

and it returns:
Sandbox ? false
<class 'str'>

So here we have the core-issue ..
We wanted to propose a merge request to fix this issue, but honestly I don't know where to fix it the best. This field should never be allowed to be a string, so it seems to be a core issue.
Steps to reproduce the problem

Use braintree with sandbox_mode disabled
try to create an order

Hey, could you tell me more about this issue you are experiencing? What method did you use to change sandbox mode? Do you use dashboard 1.0 or 2.0.
I've checked this (changing sandbox mode to True via Dashboard 1.0) and that's what I get:
In [25]: plugin._cached_config = None

In [26]: plugin._initialize_plugin_configuration()

In [27]: plugin.config
Out[27]: GatewayConfig(gateway_name='Braintree', auto_capture=True, template_path='order/payment/braintree.html', connection_params={'sandbox_mode': False, 'merchant_id': '2', 'public_key': '2327', 'private_key': '22223'}, store_customer=False, require_3d_secure=False)

In [28]: gateway = get_braintree_gateway(**plugin.config.connection_params)

In [29]: gateway.config.environment.__dict__
Out[29]:
{'__name__': 'production',
 '_Environment__server': 'api.braintreegateway.com',
 '_Environment__port': '443',
 'is_ssl': True,
 'ssl_certificate': '/Users/miraszewczyk/.virtualenvs/saleor/lib/python3.7/site-packages/braintree/ssl/api_braintreegateway_com.ca.crt',
 '_Environment__auth_url': 'https://auth.venmo.com',
 '_Environment__graphql_server': 'payments.braintree-api.com',
 '_Environment__graphql_port': '443'}

Missclick

I agree about the normalization that you suggest. Plus, it would be great if a developer could get a warning when the configuration is wrong. E.g. when providing boolean inside a string to get a message in the console "Value for the configuration key %s{key} is wrong".

I have a question in that. When you update these values via graphql it tells you, that it is if type BOOLEAN - so my assumption was, that it gets also saved in the database as boolean - no matter if the Apollo client is sending javascript boolean or not 🧐
But it seems like I'm wrong 🙃 so where is the error appearing the first time? We would really like to deeply understand this case to fix it on our own the next time ;)

@JannikZed You are right. All plugins should overwrite BasePlugin.validate_plugin_configuration to confirm that their configuration is correct. Also, we need to add logic to:
a) raise error in case when we try to save different type ov value that declared field
b) convert string true/false to True/False
I assume, it should be disscussed with some who is responisible for dashboard.
@szewczykmira  Our priority for us is to fix braintree asap, I suggest to use xyz == "true" for now. We will add validation in next release. @maarcingebala Do you agree?

@korycins but if we add this check then saving data with dashboard 1.0 will be failing as there we are saving boolean values and not string. Unfortunately, this will not be as easy as we thought :(


feat: support PostgREST auth via db_pre_request

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

Project coverage is 82.21%. Comparing base (cde2e50) to head (7229961).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #13   +/-   ##
=======================================
  Coverage   82.21%   82.21%
=======================================
  Files           3        3
  Lines         388      388
  Branches       70       70
=======================================
  Hits          319      319
  Misses         69       69

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


Update Actions.xml

hope this time I did it right ...

can you add your changes to plugin.py into your patch-3 branch and push it, please?


How to access voyager relationship in code

Laravel Version: 5.5
Voyager Version: 1.0
PHP Version: 5.5
Database Driver & Version: 10.1.13-MariaDB Source distribution

Description:
I have 2 bread relationships in Voyager between the tables: Users and Currencies. Users belongsTo Currencies; and Currencies hasMany `Users.
Everything works fine in Voyager.
However, in code, when I get the current Auth::user() and do $user->currency it returns null. I also manually declared the normal Laravel way of User's belongsTo currency() method, still not null.
Please help how to use Voyager relationships in normal Laravel code (since everything working perfectly in Voyager. I can do all Voyager BREAD stuff on both models)
Steps To Reproduce:
As described above

In Laravel, you would add the relationships directly into the database, using foreign keys.
What I did was I used xethron/migrations-generator to create Laravel database migration files for the tables created by Voyager, and then edited the files to add the foreign keys.
Then I ran php artisan migrate:rollback --step=1 as many times as there are tables I created with Voyager, and then php artisan migrate to re-create the tables, now with the foreign keys.
And then the relationships do work.

Voyager creates the relationships dynamically, which is why they only work within Voyager. You'll have to manually create the relationship methods on your model classes to get it to work outside of Voyager.

That's a tall one!
I hope Voyager will get to this someday...whatever is achievable with Voyager GUI should be close to replicable in user code (like with some kind of inheritance or extends)
Well for me, for now, I simply use the foreign key to do a quick fetch and return :)
public function currency()
    {
        $c = Currency::where('id', $this->currency_id )->first();
        return $c;
    }

Yes. It does not work by default. It does not work out of the box. I had to do the tweak I mentioned previously. What'd you think?

Then you're doing something wrong.  Laravel/eloquent model relationships are functionally equivalent, but completely separate, from what Voyager is doing under the hood.

Then I will need to peek into my codes and see what I am doing wrong.
I am glad to hear @fletch3555 confirm that Voyager does handle relationships that I make reference to in my code without needing to declare relationships in the responding model files, as I presently do.
If this is true, then this issue can be closed. I will just peek more into my codebase.
Thanks :+1:

No, you misunderstand. You still have to create the relationships in your models, but there's no reason (related to voyager) that it won't work.

Yeahhhhhhhhh!!! We rock @Voyager!!!!
Thanks pal. Issue closed :)

I too am wondering if this is coming sooner rather than later. I love the ability to create the BREAD stuff in the admin panel. I am scratching my head as to why it wouldn't automatically add the necessary programming to the models it creates for you. I have worked with Streams laravel module (the base system for PyroCMS) which does all of this, but it's far more complicated and it's a full on CMS which I don't need in this case. At the very least why not make it so that the generated models extend some models that the BREAD could create and post to the storage or resources folder. So the "blank" model  Xxxx.php in App folder extends Resources\App\Models\Xxxx (or something like this) which is the model that extends Eloquent models. This way, Voyager's system manages the code in these models and leaves us to only have to put in custom stuff outside of what Voyager is already doing. Just a suggestion. I hate having to write the relationship stuff. Always a struggle.


Support Guzzle 7 again

Guzzle 7 support was seemingly removed by accident when the library was updated.
Please re-tag a new version as well.
Thanks!

thx, created v1.1.1


Types destructuring

Suggestion
Types destructuring
🔍 Types destructure
As we know, we can destructure object or module using the following syntax.
import React, { useEffect, useState } from 'react'
import type { FC, CSSProperties } from 'react'

or
import * as React from 'react'
const { useEffect, useState } = React

I would like to suggest that the following types destructuring should be valid too
type { FC, CSSProperties } = React

✅ Viability Checklist
My suggestion meets these guidelines:

[x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[x] This wouldn't change the runtime behavior of existing JavaScript code
[x] This could be implemented without emitting different JS based on the types of the expressions
[x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
[x] This feature would agree with the rest of TypeScript's Design Goals.

Duplicate of #35396.


Copy REL CSV according to the data types defined in schema

Currently the rep csv copier uses Arrow to auto-detect column types. This causes a problem when the there is an all-digit string column in the csv file as it will be detected as an INT column. We should configure the Arrow csv reader with the types defined in the schema.

Fixed in #1723 .


MIC-311 record-investigation/delete-interview/:index screen

MIC-311

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

Project coverage is 79.53%. Comparing base (4f59b5c) to head (2fcf3e4).

Files
Patch %
Lines

...ecord-investigation/delete-interview/controller.ts
23.07%
10 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #115      +/-   ##
==========================================
- Coverage   79.81%   79.53%   -0.28%
==========================================
  Files         139      141       +2
  Lines        1897     1920      +23
  Branches      303      305       +2
==========================================
+ Hits         1514     1527      +13
- Misses        369      379      +10
  Partials       14       14

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


Implement custom defaults function

implement header defaulting such that you can add, override, and delete headers using the config. I think the best approach here is to iterate through thte keys and delete headers for any undefined value
https://github.com/johnhof/express-proxy/blob/master/lib/proxy.js#L140

https://github.com/johnhof/express-proxy/pull/9


Add hackerboy/json-api library

hackerboy/json-api allows PHP programmers implement JSONAPI easily with less opinionated comparing to other libraries.
I'm working seriously on this project and will be listening to the community for update and bug fixes.

Thanks!

Thank you!
On Tue, Nov 13, 2018 at 4:14 AM Dan Gebhardt<EMAIL_ADDRESS>wrote:

Thanks!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/json-api/json-api/pull/1324#issuecomment-438030717,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AqvG-YVguh-dssd1nJP0m2Zzw2ewqrJIks5uueSogaJpZM4YabNb
.


 Suddenly you're rich

To retest once #792 is done


Problem with Eurotronics Spirit ZWAVE+ Thermostat and Fibaro FGWPE/F Wall Plug Gen5+

Hello,
I switched in Domoticz from OZWave to zwave-js-ui. I installed it via snap on my pi4. My sensative spirit window sensors work well, my vision security ZG8101 Garage Door Detector too, My Eurotronics spirit zwave+ Thermostat is not recognised. It shows unknown in the manufacturer. No devices are created. The manufacturere for the Fibaro wall plug is unknown too, but there are some devices createt. I am missing the device to switch the plug on or off. I reintervied the 2 devices with debug log on. Here's the result. Perhaps someone can help me.
PS: In OZWave they work without problems.
2023-08-18 09:47:33.640 DEBUG SOCKET: New connection 8bi29UFz7abWwBUcAAAD
2023-08-18 09:47:34.782 DEBUG SOCKET: Event INITED emitted to 8bi29UFz7abWwBUcAAAD
2023-08-18 09:47:34.817 INFO APP: GET /api/settings 304 1231.359 ms - -
2023-08-18 09:47:34.831 INFO APP: GET /api/auth-enabled 304 5.229 ms - -
2023-08-18 09:48:17.358 DEBUG MQTT: Publishing to zwave/Thermostat_Bad/lastActive: { time:<PHONE_NUMBER>357, value:<PHONE_NUMBER>357 } with options { qos: 1, retain: true }
2023-08-18 09:48:17.608 DEBUG MQTT: Publishing to zwave/Thermostat_Bad/lastActive: { time:<PHONE_NUMBER>608, value:<PHONE_NUMBER>554 } with options { qos: 1, retain: true }
2023-08-18 09:48:20.848 DEBUG MQTT: Publishing to zwave/Steckdose/lastActive: { time:<PHONE_NUMBER>848, value:<PHONE_NUMBER>848 } with options { qos: 1, retain: true }
2023-08-18 09:48:20.862 INFO Z-WAVE: [Node 018] Metadata updated: 49-0-Power
2023-08-18 09:48:20.867 DEBUG MQTT: Publishing to zwave/Steckdose/49/0/Power: {
time:<PHONE_NUMBER>865,
value: 0,
nodeName: 'Steckdose',
nodeLocation: ''
} with options { qos: 1, retain: true }
2023-08-18 09:48:20.872 INFO Z-WAVE: [Node 018] Value updated: 49-0-Power 0 => 0
2023-08-18 09:48:21.099 DEBUG MQTT: Publishing to zwave/Steckdose/lastActive: { time:<PHONE_NUMBER>098, value:<PHONE_NUMBER>848 } with options { qos: 1, reta

zwavejs_2023-08-28.log

If one of those devices was included using Security S2 or S0, Z-Wave JS needs to have the original keys used to include them. As OZW doesn't support S2, I guess they were included using Security S0 and you didn't copy the original S0 key ("network key") into the Z-Wave JS configuration.
Without this, you cannot fully communicate with the devices.

I copied the network key to S2 ind zwave-js-ui zwave config. In domoticz there is only one key. So I made a s0-key in zwave-js-ui via the config-page. Or have I to use the Domoticz network key for both, s0 and s2? Thanks.

Now I changed the keys, the Eurotronic Spirit is recogniced, but only with one device in Domoticz (air temperature). The plug isn't recogniced. I think, I'll have to delete the 2 devices in zwavejsui and reinclude them.

Re-including is rarely necessary. Did you try checking the "reset security classes" checkbox when re-interviewing the plug?

The trick helped. My only persisting problem is, I am missing the mode device to switch the mode for the thermostat. In domoticz I set mode 0 (off), 1 (heating) and 3 (turbo). I attached a list of my created devices. Thanks alot.
spirit.pdf

Debugging that will require another driver log of a re-interview. No need to check the "reset security" checkbox this time.

Works fine now, thanks a lot!


Mixamo Animations do not come with root motion bone

I need a root motion bone to let Godot apply root motion to walking / running animations to get that impulse movement instead of linear non synced movement.
How do I add root motion bone to the GLTF rigged humanoid file?
Will doing this make mixamo animation combining incompatible? If so will I have to add a root motion bone every time I want to add more animations?

Looks like the Mixamo blender plugin will resolve this


Add GitHub Actions

Add CI workflow with GitHub Actions.

Run tests (requires #10 to be finished).
Build Docker image (requires #11 to be finished) on Docker Hub.

00d8618ef08f2a90bf65dc59cff817ac3ef25a0b
4f6e9be9afed1422a16af5a5b16fc534bb938596


The suggest for C# return

Er,I think “The return statement terminates execution of the method in which it appears and returns control to the calling method.”change to"The return statement terminates execution of the method in which it appears and returns control to the statement that  calling method."will be better.

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

ID: 5cf2e265-0377-a0a3-f2b3-bc4a8dcfdd40
Version Independent ID: 9d0aeb19-1545-8a3b-3aa6-f0cb9f3b9006
Content: return (C# Reference)
Content Source: docs/csharp/language-reference/keywords/return.md
Product: dotnet-csharp
GitHub Login: @BillWagner
Microsoft Alias: wiwagn

Your proposed correction is redundant. The calling method is a statement.

@infinitylight Thanks for making this suggestion. However, the suggested addition does not add any clarity to the description of the return statement.
I'm closing this issue. If you disagree, you can reopen and add more information about your suggestion.


Crash in v1.0.45 when switching to GunGame

Hi @nickj609
I updated to v1.0.45 you can see the commit of what I changed (when rolling back).
Metamod, CounterStrikeSharp is up to date.
I started the server, then via server console switced to GunGame by running exec gg and the server crashed.
This looks like it could be the culprit [INFO] (plugin:GameModeManager) Game has ended. Picking random map from current mode.... I just switched to GunGame so it shouldn't be switching the map.
] exec gg
03:06:28 [INFO] (plugin:GameModeManager) Current mode: Casual
03:06:28 [INFO] (plugin:GameModeManager) New mode: Gun Game
03:06:28 [INFO] (plugin:GameModeManager) Regenerating per map votes...
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote cs_italy removed
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote cs_italy removed
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote cs_office removed
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote cs_office removed
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote de_vertigo removed
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote de_vertigo removed
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote de_ancient removed
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote de_ancient removed
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote de_anubis removed
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote de_anubis removed
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote de_dust2 removed
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote de_dust2 removed
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote de_inferno removed
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote de_inferno removed
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote de_mirage removed
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote de_mirage removed
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote de_nuke removed
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote de_nuke removed
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote de_overpass removed
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote de_overpass removed
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote de_assembly removed
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote de_assembly removed
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote de_cbble removed
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote de_cbble removed
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote de_cache removed
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote de_cache removed
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote de_pipeline removed
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote de_pipeline removed
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote de_biome removed
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote de_biome removed
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote mp_raid removed
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote mp_raid removed
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote de_mutiny removed
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote de_mutiny removed
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote cs_assault removed
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote cs_assault removed
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote de_ruins_d_prefab removed
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote de_ruins_d_prefab removed
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote cs_militia removed
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote cs_militia removed
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote de_aztec removed
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote de_aztec removed
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote de_akiba removed
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote de_akiba removed
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote cs_insertion2 removed
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote cs_insertion2 removed
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote de_train removed
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote de_train removed
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote de_mills removed
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote de_mills removed
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote de_thera removed
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote de_thera removed
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote de_season removed
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote de_season removed
03:06:28 [WARN] (cssharp:Core) Display should not be longer than 26 characters for a CenterHtmlMenu item
03:06:28 [WARN] (cssharp:Core) Display should not be longer than 26 characters for a CenterHtmlMenu item
03:06:28 [WARN] (cssharp:Core) Display should not be longer than 26 characters for a CenterHtmlMenu item
03:06:28 [WARN] (cssharp:Core) Display should not be longer than 26 characters for a CenterHtmlMenu item
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote ar_shoots added
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote ar_shoots added
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote ar_baggage added
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote ar_baggage added
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote ar_pool_day added
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote ar_pool_day added
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote de_assembly added
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote de_assembly added
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote fy_iceworld added
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote fy_iceworld added
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote daymare added
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote daymare added
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote mcdonalds added
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote mcdonalds added
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote aim_theorem added
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote aim_theorem added
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote de_safehouse added
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote de_safehouse added
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote de_lake added
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote de_lake added
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote de_bank added
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote de_bank added
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote fun_bounce added
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote fun_bounce added
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote 1v1aim_map_longdustversion_d added
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote 1v1aim_map_longdustversion_d added
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote ar_churches_s2r added
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote ar_churches_s2r added
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote aim_ag_texture_city_advanced added
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote aim_ag_texture_city_advanced added
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote traningoutside added
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote traningoutside added
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote shipment_version_1_0 added
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote shipment_version_1_0 added
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote aim_ag_texture2 added
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote aim_ag_texture2 added
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote aim_ag_texture_jungle added
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote aim_ag_texture_jungle added
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote cs2_bloodstrike added
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote cs2_bloodstrike added
03:06:28 [INFO] (plugin:Custom Votes) [CustomVotes] Vote gg_simpsons_vs_flanders_v2 added
info: CS2_CustomVotes.Services.VoteManager[0]
      [CustomVotes] Vote gg_simpsons_vs_flanders_v2 added
03:06:28 [INFO] (cssharp:PluginContext) Unloading plugin CS2Rcon
03:06:28 [INFO] (cssharp:PluginContext) Finished unloading plugin CS2Rcon
03:06:28 [INFO] (cssharp:PluginContext) Loading plugin CS2Rcon
[CS2Rcon] Plugin: CS2Rcon - Version: 1.2.0 by LordFetznschaedl
[CS2Rcon] Allows for server commands to be executed from the client using !rcon
03:06:28 [INFO] (cssharp:PluginContext) Finished loading plugin CS2Rcon
03:06:28 [INFO] (cssharp:PluginContext) Loading plugin GG2
03:06:28 [INFO] (plugin:CS2_GunGame) API registered
03:06:28 [INFO] (plugin:CS2_GunGame) Loading config: csgo/cfg/gungame/gungame.json
Plugin Respawn T and CT on
03:06:29 [INFO] (plugin:CS2_GunGame) [GUNGAME] GG Start, version v1.1.2
03:06:29 [INFO] (cssharp:PluginContext) Finished loading plugin CS2_GunGame
03:06:29 [INFO] (cssharp:PluginContext) Loading plugin CS2-Remove-Map-Weapons
03:06:29.022 [Remove Map Weapons] Plugin: Remove Map Weapons - Version: 1.0.1 by Kus (https://github.com/kus)
03:06:29.022 [Remove Map Weapons] Remove the weapons from the map
03:06:29 [INFO] (cssharp:PluginContext) Finished loading plugin Remove Map Weapons
[GUNGAME]********* Round 1 Start
03:06:29 [INFO] (plugin:CS2_GunGame) [GUNGAME]********* Round 1 Start
[GunGame]********** Start WarmupRound
03:06:29.033 [Remove Map Weapons] OnRoundStart
03:06:29.034 [Remove Map Weapons] Removing map weapons
[CS2_ExecAfter] exec_after_round_start = exec settings/alltalk_on.cfg
[CS2_ExecAfter] exec_after_map_start = exec gg_settings.cfg
03:06:29 [INFO] (plugin:CS2_GunGame) [GunGame_Stats] ***** InitializeDatabaseConnection: SQLite - success
[CS2_ExecAfter] Executing (round start): exec settings/alltalk_on.cfg
[CS2_ExecAfter] exec_after_round_start = exec settings/alltalk_on.cfg
[S_API FAIL] Tried to access Steam interface SteamUtils010 before SteamAPI_Init succeeded.
03:06:29 [WARN] (cssharp:Core) Display should not be longer than 26 characters for a CenterHtmlMenu item
03:06:29 [WARN] (cssharp:Core) Display should not be longer than 26 characters for a CenterHtmlMenu item
03:06:29 [INFO] (plugin:CS2_GunGame) [GunGame] map ar_pool_day loaded
03:06:29 [INFO] (plugin:CS2_GunGame) Loading config: csgo/cfg/gungame/gungame.json
Plugin Respawn T and CT on
03:06:29 [INFO] (plugin:CS2_GunGame) [GUNGAME] GG Start, version v1.1.2
[GunGame]********** Start WarmupRound
03:06:29.206 [Remove Map Weapons] OnMapStartHandler
03:06:29.206 [Remove Map Weapons] Removing map weapons
[03:06:29.221] CSSharp: CGameSystem::BuildGameSessionManifest
execing gg
execing unload_plugins.cfg
execing custom_gg.cfg
execing gg_settings.cfg
execing gamemode_casual.cfg
SV: Convar 'sv_infinite_ammo' is cheat protected, change ignored.
Unknown command 'mp_weapons_glow_on_ground'!
Unknown command 'sv_gameinstructor_enable'!
execing settings/one_round.cfg
Unknown command 'mp_roundtime_deployment'!
Using spawn points configuration 0x3BD9698F
"settings/one_round.cfg executed"
execing settings/alltalk_on.cfg
"settings/alltalk_on.cfg executed"
execing settings/map_voting.cfg
"settings/map_voting.cfg executed"
execing settings/no_drop_weapons.cfg
"settings/no_drop_weapons.cfg executed"
execing bots.cfg
execing custom_bots.cfg
execing custom_gg.cfg
"gg_settings.cfg executed"
"gg.cfg executed"
[All Chat][Console (0)]: "Changing map..."
Changelevel to ar_pool_day
changelevel "ar_pool_day"
CHostStateMgr::QueueNewRequest( Changelevel (ar_pool_day), 3 )
Could not reload plugin "/home/steam/cs2/game/csgo/addons/counterstrikesharp/plugins/RockTheVote/RockTheVote.dll"
Unknown command 'heartbeat'!
Unknown command 'heartbeat'!
execing gungame/gungame.warmupstart.cfg
Unknown command 'heartbeat'!
Unknown command 'heartbeat'!
SV:  CNetworkServerService::StartChangeLevel( (no landmark) )
HostStateRequest::Start(HSR_GAME):  loop(levelload) id(3) addons() desc(Changelevel (ar_pool_day))
SwitchToLoop levelload requested:  id [3] addons []
13.421875 Long frame (RestartRound): 281.08ms elapsed, 3.20ms sim time, 1 ticks, 859..859.
execing settings/alltalk_on.cfg
"settings/alltalk_on.cfg executed"
SV:  IGameSystem::LoopDeactivateAllSystems {
HO:  IGameSystem::LoopDeactivateAllSystems {
HO:  } IGameSystem::LoopDeactivateAllSystems done
SV:  } IGameSystem::LoopDeactivateAllSystems done
SV:  Server shutting down: NETWORK_DISCONNECT_LOOPDEACTIVATE (55)
CNetworkGameServerBase::SetServerState (ss_active -> ss_dead)
SV: CNetworkStringTableContainer::RemoveAllTables:  removing 12 tables
CL: CNetworkStringTableContainer::RemoveAllTables:  removing 12 tables
SV:  CGameRulesGameSystem::GameShutdown uninstalled game rules
SV:  CGameRules::CGameRules destructed
SV:  Level loading started for 'ar_pool_day'
CL:  CLoopModeLevelLoad::MaybeSwitchToGameLoop switching to "game" loopmode with addons ()
SwitchToLoop game requested:  id [3] addons []
CNetworkGameServerBase::SetServerState (ss_dead -> ss_waitingforgamesessionmanifest)
SV:  maxplayers set to 32
Network socket 'server' opened on port 27015
Initializing CSGO VScript Game System
SV:  Executing server defaults
SV:  Executing dedicated server config file
GameTypes: could not find matching game mode value of "" in any game type.
SV:  CGameRulesGameSystem::GameInit installed game rules
execing gungame/gungame.warmupstart.cfg
exec: couldn't exec '{*}cfg/skill1.cfg', unable to read file
execing server_default.cfg
execing server.cfg
execing gamemode_casual.cfg
exec: couldn't exec '{*}cfg/gamemode_casual_server.cfg', unable to read file
exec: couldn't exec '{*}cfg/gamemode_casual_last.cfg', unable to read file
execing env.cfg
"env.cfg executed"
execing settings/bhop_off.cfg
execing settings/movement_restore.cfg
"settings/movement_restore.cfg executed"
"settings/bhop_off.cfg executed"
Unknown command 'sv_holiday_mode'!
execing bots.cfg
execing custom_bots.cfg
Writing cfg/banned_user.cfg.
Writing cfg/banned_ip.cfg.
execing settings/map_voting.cfg
"settings/map_voting.cfg executed"
execing custom_all.cfg
"server.cfg executed"
03:06:31 [INFO] (plugin:GameModeManager) Game has ended. Picking random map from current mode...
[03:06:31.005] CSSharp: Native d8f03fd4 was invoked on a non-main thread
[03:06:31.005] CSSharp: Native d8f03fd4 was invoked on a non-main thread
[03:06:31.005] CSSharp: Native d8f03fd4 was invoked on a non-main thread
[03:06:31.005] CSSharp: Native d8f03fd4 was invoked on a non-main thread
[03:06:31.006] CSSharp: Native d8f03fd4 was invoked on a non-main thread
[03:06:31.006] CSSharp: Native d8f03fd4 was invoked on a non-main thread
[03:06:31.006] CSSharp: Native d8f03fd4 was invoked on a non-main thread
[03:06:31.006] CSSharp: Native d8f03fd4 was invoked on a non-main thread
[03:06:31.006] CSSharp: Native d8f03fd4 was invoked on a non-main thread
[03:06:31.006] CSSharp: Native d8f03fd4 was invoked on a non-main thread
[03:06:31.006] CSSharp: Native d8f03fd4 was invoked on a non-main thread
[03:06:31.006] CSSharp: Native d8f03fd4 was invoked on a non-main thread
[03:06:31.007] CSSharp: Native d8f03fd4 was invoked on a non-main thread
[03:06:31.007] CSSharp: Native d8f03fd4 was invoked on a non-main thread
[03:06:31.007] CSSharp: Native d8f03fd4 was invoked on a non-main thread
[03:06:31.007] CSSharp: Native d8f03fd4 was invoked on a non-main thread
[03:06:31.007] CSSharp: Native d8f03fd4 was invoked on a non-main thread
[03:06:31.007] CSSharp: Native d8f03fd4 was invoked on a non-main thread
[03:06:31.007] CSSharp: Native 376a0359 was invoked on a non-main thread
Unhandled exception. CounterStrikeSharp.API.Core.NativeException: Invoked on a non-main thread
   at CounterStrikeSharp.API.Core.ScriptContext.CheckErrors() in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/ScriptContext.cs:line 176
   at CounterStrikeSharp.API.Core.NativeAPI.ExecuteVirtualFunction[T](IntPtr function, Object[] arguments) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/API.cs:line 1090
   at CounterStrikeSharp.API.Modules.Memory.DynamicFunctions.BaseMemoryFunction.InvokeInternalVoid(Object[] args) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Modules/Memory/DynamicFunctions/BaseMemoryFunction.cs:line 77
   at CounterStrikeSharp.API.Modules.Memory.DynamicFunctions.MemoryFunctionVoid`6.Invoke(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Modules/Memory/DynamicFunctions/MemoryFunctionVoid.cs:line 156
   at CounterStrikeSharp.API.Server.PrintToChatAll(String message) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Server.cs:line 135
   at GameModeManager.RotationManager.TriggerRotation() in C:\Users\nickj\OneDrive\Documents\CS2\plugins\GameModeManager\Core\RotationManager.cs:line 139
   at GameModeManager.TimeLimitManager.<StartTimer>b__16_0(Object <p0>) in C:\Users\nickj\OneDrive\Documents\CS2\plugins\GameModeManager\Core\TimeLimitManager.cs:line 81
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.TimerQueueTimer.Fire(Boolean isThreadPool)
   at System.Threading.TimerQueue.FireNextTimers()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()

Can confirm getting similar errors.

Hey guys! Thanks for letting me know. Pretty sure its an issue with the rotation settings as you have identified. Will be looking into this soon :)

Apologies for the delay on this guys. Wanted to follow up here that I have a new version prepped that will be released in the next couple of days. It will contain some exciting new features but will also address these issues presented in my last build.

This issue should be resolved in the latest release. Please reopen if you still experience issues.
https://github.com/nickj609/GameModeManager/releases/tag/v1.0.46


Chinese: announcing istio 1.0

Translate announcing istio 1.0 to Chinese

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: rootsongjc
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

content_zh/OWNERS [rootsongjc]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@geeknoid The Chinese homepage and Istio 1.0 announcement page look like not show the latest version? Can you fix it?

You mean on istio.io? Cause I do see it in preliminary.istio.io
To see it on istio.io, I need to cherry-pick from master.

@geeknoid Of course istio.io, some people may visit the Chinese homepage directly, so we'd better fix it soon.

I did the cherry pick, the site should be updated in a few minutes
On Tue, Jul 31, 2018 at 9:45 AM Jimmy Song<EMAIL_ADDRESS>wrote:

@geeknoid https://github.com/geeknoid Of course istio.io, some people
may visit the Chinese homepage directly, so we'd better fix it soon.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/istio/istio.github.io/pull/2088#issuecomment-409288502,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVucHXhoFl-GVC9pGN0FlPpLWZ1xqXkGks5uMImMgaJpZM4Voa-x
.


Link in Policies are broken

The links available in the Policies section are broken (GitHub 404)

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

ID: 55b4c3f6-7ea3-9b94-cd8c-cbe37dc31656
Version Independent ID: 0310805b-ff71-85bf-3f74-ca4caa6a46ce
Content: Tag resources for logical organization - Azure Resource Manager
Content Source: articles/azure-resource-manager/management/tag-resources.md
Service: azure-resource-manager
Sub-service: management
GitHub Login: @tfitzmac
Microsoft Alias: tomfitz

@fleed Thanks for your comment! We will review and provide an update as appropriate.

@fleed Can you refresh the links, try and confirm if it's resolved now ?

These links have been fixed.
#please-close


secp256k1, PublicKey, SecretKey changes

Add secp256k1 sources from Bitcoin
Add PublicKey, SecretKey, Seed, Generator
AnyPublicKey, AnySecretKey are removed

Needs a cryptography audit
Reviewers: @nbougalis @JoelKatz

:+1:

:+1: modulo updating the comment - the rest of the comments are nits, at your discretion.

Incorporated review comments


TLS fix and new commands

Ciao, please can you share some steps about how to install it in hassio?
thanks and regards


sort n/ not working

Hard to remember that sort == sort n/
But sort n/ does not work
Should also just implement sort n/ ??
But then user might be confused what's the difference between sort and sort n/, and if they're the same why accept both
Maybe should just implement sort n/, and go away with sort

ok can have sort n/
we think that users might be stupid and try to sort name also.

need to customise the error message
e.g. : List sorted based on your selected criteria(s)
n/


Matrix Vector Multiplication

Hello. I am trying to multiply this 4 by 2 matrix by a 2 by 1 vector to produce a 4 by 1 vector. Not sure what I am doing wrong. Am receiving an error for line 288, as shown below in the second picture.

The error message is pretty informative -- and you can always check the source code for mju_mulMatVec to understand what input it expects (and shapes).


Updating pymongo to stay in sync with girder

Good thinking @jbeezley . LGTM once travis is green.


external_storage: the s3 backend cannot update data from some not-in-memory Read types

Bug Report

What version of TiKV are you using?
Current master.
What operating system and CPU are you using?
Intel(R) Xeon(R) Gold 6240 CPU @ 2.60GHz
Steps to reproduce
Just simply try to upload a local file with size greater than 5MB via the following code:
        let reader = File::open(data_file.local_path.clone()).await?;
        let reader = UnpinReader(Box::new(limiter.limit(reader.compat())));
        // some code omitted...
        let ret = storage.write(filepath, reader, est_len).await;

What did you expect?
The upload should success.
What did happened?
It failed with message entity size is too small.
Notes
According to the document of S3, this error happens when the PutObjectPart request uploads a part smaller than 5M.
However, the local file I/O in my system would read 16K each time(I guess), so the multi-part upload would upload many 16K parts too.

/type bug
/severity major
/assign YuJuncen

/component backup-restore

/severity minor
This only affects the develop branch br-stream, and has been fixed at that branch.

/remove-severity major


[Bug]: RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!

Email (Optional)
<EMAIL_ADDRESS>Version
git
Which OS(es) are you using?

[ ] MacOS
[ ] Windows
[X] Linux

What happened?
running a simpler example with matgl on gpu seems not to be happy.. it is perfectly fine if I run cpu only.
also tried the variations of commented code with no success.. just diversity in the errors.
Code snippet
from ase import build
from matgl import __version__
from matgl import load_model
from matgl.ext.ase import M3GNetCalculator
import torch

print(__version__)

#torch.set_default_device('cuda')
model = load_model("M3GNet-MP-2021.2.8-DIRECT-PES")
calculator = M3GNetCalculator(potential=model)
#calculator = M3GNetCalculator(potential=model.to("cuda"))

benzene = build.molecule('C6H6')
benzene.calc = calculator

print(f"E_config= {benzene.get_potential_energy()} eV")

Log output
finishes with the error:

 python3 ./simple_m3gnet.py
1.0.0
/work4/scd/scarf562/micromamba/micromamba/envs/mace/lib/python3.11/site-packages/matgl/apps/pes.py:69: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
  self.element_refs = AtomRef(property_offset=torch.tensor(element_refs, dtype=matgl.float_th))
/work4/scd/scarf562/micromamba/micromamba/envs/mace/lib/python3.11/site-packages/matgl/apps/pes.py:75: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
  self.register_buffer("data_mean", torch.tensor(data_mean, dtype=matgl.float_th))
/work4/scd/scarf562/micromamba/micromamba/envs/mace/lib/python3.11/site-packages/matgl/apps/pes.py:76: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
  self.register_buffer("data_std", torch.tensor(data_std, dtype=matgl.float_th))
/work4/scd/scarf562/micromamba/micromamba/envs/mace/lib/python3.11/site-packages/matgl/layers/_basis.py:121: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
  root = torch.tensor(roots[i])
Traceback (most recent call last):
  File "/work4/scd/scarf562/ml/lavello/tests/./simple_m3gnet.py", line 24, in <module>
    print(f"E_config= {benzene.get_potential_energy()} eV")
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/work4/scd/scarf562/micromamba/micromamba/envs/mace/lib/python3.11/site-packages/ase/atoms.py", line 755, in get_potential_energy
    energy = self._calc.get_potential_energy(self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/work4/scd/scarf562/micromamba/micromamba/envs/mace/lib/python3.11/site-packages/ase/calculators/abc.py", line 24, in get_potential_energy
    return self.get_property(name, atoms)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/work4/scd/scarf562/micromamba/micromamba/envs/mace/lib/python3.11/site-packages/ase/calculators/calculator.py", line 537, in get_property
    self.calculate(atoms, [name], system_changes)
  File "/work4/scd/scarf562/micromamba/micromamba/envs/mace/lib/python3.11/site-packages/matgl/ext/ase.py", line 177, in calculate
    energies, forces, stresses, hessians = self.potential(graph, lattice, state_attr_default)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/work4/scd/scarf562/micromamba/micromamba/envs/mace/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/work4/scd/scarf562/micromamba/micromamba/envs/mace/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/work4/scd/scarf562/micromamba/micromamba/envs/mace/lib/python3.11/site-packages/matgl/apps/pes.py", line 120, in forward
    property_offset = torch.squeeze(self.element_refs(g))
                                    ^^^^^^^^^^^^^^^^^^^^
  File "/work4/scd/scarf562/micromamba/micromamba/envs/mace/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/work4/scd/scarf562/micromamba/micromamba/envs/mace/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/work4/scd/scarf562/micromamba/micromamba/envs/mace/lib/python3.11/site-packages/matgl/layers/_atom_ref.py", line 78, in forward
    offset = property_offset_batched * one_hot
             ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!

Code of Conduct

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

Hi @alinelena, thank you very much for reporting this issue. I did the test with your script including the following line:
from ase import build
from matgl import version
from matgl import load_model
from matgl.ext.ase import PESCalculator
import torch
print(version)
torch.set_default_device('cuda')
model = load_model("M3GNet-MP-2021.2.8-DIRECT-PES")
calculator = PESCalculator(potential=model)
#calculator = M3GNetCalculator(potential=model.to("cuda"))
benzene = build.molecule('C6H6')
benzene.calc = calculator
print(f"E_config= {benzene.get_potential_energy()} eV")
I am not able to reproduce your error and the following is my output.
1.0.0
/home/t1ko/miniconda3/envs/mavrl/lib/python3.9/site-packages/torch/utils/device.py:77: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad(True), rather than torch.tensor(sourceTensor).
return func(*args, **kwargs)
/home/t1ko/miniconda3/envs/mavrl/lib/python3.9/site-packages/torch/utils/_device.py:77: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly.  To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
return func(*args, **kwargs)
E_config= -76.01427459716797 eV

odd, thank you for testing I will look in another machine to see if I can reproduce it.
this is just for testing so I am not for accurate results. I will keep you posted

just one thing, this is cuda 12 and pythorch 2.2.1-nigtly so maybe something from there.

@alinelena I would recommend not using pytorch nightly. We stipulate all the supported requirements in our repo. If you use those and there are issues, you can reopen this issue.

Setting torch.set_default_device('cuda') solved the issue for me, just FYI.


Add required deleteView functionality

Added the code required for deleteView to function properly

Added multitouchListener to the PhotoEditor. Implemented required methods and added viewUndo to the onRemoveViewListener.
Made setDeleteView public and added doc

This feature is not in scope for now.


Signed Transaction & Reliable Submition, need support

I'm currently trying to create an airgapped transaction thingy:

As you all know, when someone signs a transaction, it'll look something like this:
Payment(account='AccountGoesHere', transaction_type=<TransactionType.PAYMENT: 'Payment'>, fee='10', sequence=Sequence, account_txn_id=None, flags=0, last_ledger_sequence=Ledger_Sequence, memos=None, signers=None, source_tag=None, signing_pub_key='PubKeySignGoesHere', txn_signature='TransactionSigGoesHere', amount='Amount', destination='DestinationAccount', destination_tag=None, invoice_id=None, paths=None, send_max=None, deliver_min=None)
I tried doing this:

Enter Seed
Sign transaction
Copy and paste to another code that'll send the signed transaction to XRPL node

But it dint work since, i did this:  ( I know this is a dumb solution, just a showcase on what I tried, help )

Does anyone know how I can fix this error of mine, thank you!

hey @wojakkk just saw this.
what was the error? i see that your editor doesn't like your syntax, is that the problem you're referencing?
if i'm understanding this correctly, what you want is that given a seed, your Pi machine can sign and submit the payment transaction, is that right?

Hello @ledhed2222 ,
This is what im trying to do:
Seed -> Raspberry Pi (airgapped) -> Sign transaction -> Signed transaction goes into USB stick -> USB stick goes into a connected machine -> Send signed transaction to XRPL node

I believe your main issue is with the syntax of the TransactionType - that line should be removed, since the Payment object already has the transaction type.
Based on your output, I assume you're just copy-pasting the output that is printed. What you should be doing is using the to_dict and from_dict methods on the Payment object.
Here's some sample code that I think should achieve what you're doing:
On the airgapped machine:
d = payment.to_dict()
# copy-paste the dictionary output

On the connected machine:
# assuming you've copy-pasted the transaction into a dictionary named `d`
payment = Payment.from_dict(d)


Update sbt-scoverage to 1.9.0

Updates org.scoverage:sbt-scoverage from 1.8.2 to 1.9.0.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scoverage", artifactId = "sbt-scoverage" } ]

labels: sbt-plugin-update, semver-minor

Codecov Report

Merging #255 (e2bcd3d) into master (d3fab94) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #255   +/-   ##
=======================================
  Coverage   95.31%   95.31%
=======================================
  Files           6        6
  Lines          64       64
=======================================
  Hits           61       61
  Misses          3        3

Continue to review full report at Codecov.

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


Expand Vec<T> and StorageVec<T> with additional utility methods

An example of a good method to add would be contains(). There are probably plenty of other methods that we can add from https://doc.rust-lang.org/stable/std/vec/struct.Vec.html

Indexing and being able to assign to a specific index
Inserting at specified index
Removing at specified index
Pop from the end
Append vectors together
Split into two
Split at
First element of vec
Last element of vec
Swap two elements
Reverse the vector
Fill
Sorting by various keys, algorithms etc

mutating an already existing value at given index is also a necessary function

mutating an already existing value at given index is also a necessary function

See https://github.com/FuelLabs/sway/issues/2836

Writing some notes since this was partially completed prior to assignment.
Features Requested

Note: (✅ if complete)

✅ Indexing and being able to assign to a specific index
✅ Inserting at specified index
✅ Removing at specified index
✅ Pop from the end
Append vectors together
Split into two
Split at
First element of vec
Last element of vec
✅ Swap two elements
Reverse the vector
Fill
Sorting by various keys, algorithms etc
Resize
✅ Set
Contains
Sync StorageVec / Vec methods

Blockers
The contains method is blocked by issue #3333, resolved by PR 3621, merge pending at time of writing.

Following up on the sort method, it would be good to sort with multiple algorithms. However, in Rust, sort uses a "Timsort inspired" algorithm while sort_unstable uses a pattern defeating quicksort. The sort_by method allows a user-defined function to be used when sorting, but at the time of writing this is not possible in Sway. Should we simply use the sort and sort_unstable algorithm or should we extend the API to implement other sorting methods?
Assuming we implement multiple sorting methods, which of the following would be best? Neither has overlap with the Rust Vec API.
Option 1:
impl<T> Vec<T> {
    // in rust api
    fn sort(ref mut self) {}
    fn sort_unstable(ref mut self) {}

    // beyond rust api
    fn bubblesort(ref mut self) {}
    fn insertionsort(ref mut self) {}
}

Option 2:
enum SortingAlgorithm {
    Bubblesort,
    Insertionsort,
}

impl<T> Vec<T> {
    // in rust api
    fn sort(ref mut self) {}
    fn sort_unstable(ref mut self) {}

    // beyond rust api
    fn sort_with(ref mut self, algorithm: SortingAlgorithm {
        match algorithm {
            SortingAlgorithm::Bubblesort => {}
            SortingAlgorithm::Insertionsort => {}
        };
    }
 }

Let start by following Rust for now - this may be all we need in the foreseeable future. (So sort and sort_unstable).
Oh and you can't use recursion yet so keep that in mind when implementing quick sort.

In the storage vector, what would be desirable behavior for split_off and split_at?
In the memory vector, split_off(&mut self, at: u64) -> Vec<T> creates a new memory vector starting at the at argument (inclusive) to return then resizes the original vector down to the at argument (exclusive). However, in the storage vector, returning a new storage vector does not seem possible. One possible way to do this is to create a new memory vector starting at the at argument to return then clear all storage vector elements from self.len - at to self.len - 1, but this seems clunky.
In the memory vector, split_at(&self, mid: u64) -> (Vec<T>, Vec<T>) does not mutate the original vector, but returning two storage vectors does not seem possible. As with the above, we could return memory vectors, but this still seems clunky.
Thoughts on the proposed implementations? We can also await the type conversion between StorageVec and Vec mentioned in #2439 (not a guaranteed change, but this could serve as motivation to push them), or we could simply not implement them and accept API differences between the memory and storage vectors.

Also, the append(&mut self, other: &mut Vec<T>) method, according to the Rust implementation, clears the other vector when it is appended to self.
This is marginal to implement in memory vectors despite differences in Sway's and Rust's memory models, but in storage vectors, this would require N reads, N writes, and N clears where N is the length of the other vector. Is this the behavior we want for the storage vector as well?

I think for append it's okay to deviate a bit and avoid unnecessary clearing, especially in StorageVec.
If split_off and split_at seems difficult and expensive for StorageVec, we can consider skipping them honestly. It's also reasonable to implement #2439 before we attempt these, if that makes more sense.

Can this be closed now that the PRs in https://github.com/FuelLabs/sway/pull/3935#issuecomment-1442578506 have been merged?

Can this be closed now that the PRs in #3935 (comment) have been merged?

If all features are implemented then sure otherwise I would make a list of the ones that are not implemented and potentially create individual issues for them so that this can be closed.


More Big Trees

It would be lovely if i could use the gigas potion on all trees and make them huge.

You can already do this using tree and resource packs. Since I have yet to make documentation I could make one for you if you'd like.

Well you could make a resoruce pack for everyone i guess.


fix: Add missing service connection

Reason for Change:

Add in missing service connection for Cilium Nightly Pipeline on Cluster Deletion job
Issue Fixed:

Requirements:

[x] uses conventional commit messages

[ ] includes documentation
[ ] adds unit tests
[x] relevant PR labels added

Notes:

/azp run Azure Container Networking PR


MSC Writing very slow disk

Hi,
I have a very slow media that needs much millisecs to write to disk.
What value should usbd_msc_sector_write return if the writing to disk has not completed yet?
If Cherry can delay host to write new data while usbd_msc_sector_write is waiting media complete. How could I know if host is asking a write status or sending new data if usbd_msc_sector_write was called again by usb interrupt while write is in progress?
Regards.

Hi, will return -ETIMEOUT, default is 5s.

So, my function body should be like this?
int usbd_msc_sector_write(uint32_t sector, uint8_t *buffer, uint32_t length)
{

    if(GetDiskStatus() == WRITE_IN_PROGRESS){
          return -ETIMEOUT;
     }else{

    disk_write(buffer, sector, length);
    return 0;
    }

}

Thanks.


Make flagz be usable with normal flag and spf13/pflag

Currently we're tied to spf13/pflag due to two things.
First, we're using Annotations. It would be trivial to remove them and rely on whether the Value implements Type() and check the prefix for dyn_.
Secondly, and less trivially, the interfaces for pflag.Value and flag.Value don't match, as well as the types of Flag.
https://godoc.org/flag#Flag
https://godoc.org/flag#Value
vs
https://godoc.org/github.com/spf13/pflag#Flag
https://godoc.org/github.com/spf13/pflag#Value
For Dyn* flags, we could achieve complete independence from spf13/pflag vs flag if FlagSet.Var accepted a Value that could be abstracted as common.
However, for monitoring and debug endpoints, we need calls to VisitAll. These return an explicit Flag type that differs between the two.
The second problem can be worked around by just recompiling flagz with s/flag "github.com/spf13/flag"/"flag" ;)

This is done in https://github.com/fortio/dflag

Thanks Laurent. Sorry for not being able to maintain this any more actively.

No worries at all, and I am happy I was able to take your great package and further evolve it.
So thank you for making this.


use tput to test for italics support on POSIX systems (fixes #311)

system() call spends time (a bit) and has a negative effect to launching time for Vim. I prefer to using an option to preventl system() call. Such as
if has("gui_running") || g:solarized_italic_in_terminal || ( has("unix") && system("tput sitm") == "\033[3m" )

Is anything happening with this PR? My terminal can display italics just fine, but it doesn't set a TERM_PROGRAM environment variable (and I'm reluctant to fake it, as I don't know what other side effects that would have).
Is there any clean way to enable italics, short of patching an ugly hack into (my own copy of) colors/solarized.vim?


Add logit logs for slow provider Activity page request

Context
We want to monitor how many providers wait over 115 seconds for the activity page and how many providers wait between 30 seconds and 115 seconds.
We assume provider that wait over 115 seconds are experience time outs. Based on UCL, which times out after about 115 seconds.
Changes proposed in this pull request
Added benchmark and logs
Guidance to review
Things to check

[ ] If the code removes any existing feature flags, a data migration has also been added to delete the entry from the database
[ ] This code does not rely on migrations in the same Pull Request
[ ] If this code includes a migration adding or changing columns, it also backfills existing records for consistency
[ ] If this code adds a column to the DB, decide whether it needs to be in analytics yml file or analytics blocklist
[ ] API release notes have been updated if necessary
[ ] If it adds a significant user-facing change, is it documented in the CHANGELOG?
[ ] Required environment variables have been updated added to the Azure KeyVault
[ ] Inform data insights team due to database changes
[x] Make sure all information from the Trello card is in here
[x] Rebased main
[x] Cleaned commit history
[x] Tested by running locally
[x] Add PR link to Trello card

 Add benchmarking to Provider Activity Log


[WIP] iGemm: Reduce index calculation for stride = 2

Reduce index calculation for stride = 2
Can achieve 30~40% improvement for 1x1 convolution fp32, 10~15% for fp16.

@zjing14 Does it also require buffer load?

No. fp16 also use it.

@TejashShah I am testing the improvement on fp16.


Use BigDecimal in examples for accurate pricing arithmetic

💁 Ruby provides built-in support for arbitrary precision integer arithmetic. This is often not sufficient for correctly calculating pricing arithmetic. BigDecimal provides similar support for very large or very accurate floating point numbers and is available in the Ruby standard library.
An example of a potential rounding error which could occur, one using
the existing method and the other using BigDecimal, follows:
irb(main):001:0> "145.65".to_f + "37.77".to_f
=><PHONE_NUMBER>0000002
irb(main):002:0> require 'bigdecimal'
=> true
irb(main):003:0> (BigDecimal("145.65") + BigDecimal("37.77")).to_f
=> 183.42
irb(main):004:0> (BigDecimal("145.65") + BigDecimal("37.77")).to_f.to_s
=> "183.42"

This is demonstrated in practise via one of the existing example files which I have subsequently updated to use BigDecimal.
Created offer request: orq_0000AGIwEFhIrv0eFe6YfQ
Got 1 offers
Selected offer off_0000AGIwEFtM96eOr1kBSE to book
The initial price for offer off_0000AGIwEFtM96eOr1kBSE is 135.65 AUD
The final price for offer off_0000AGIwEFtM96eOr1kBSE is 145.65 AUD
Adding an extra bag with service ase_0000AGIwEUp1SNVTFk9PwP, costing 37.77 AUD
Paying a total amount of<PHONE_NUMBER>0000002
Paying a total amount of 183.42

Adapted the notation format for floating point as per https://ruby-doc.org/stdlib-3.1.0/libdoc/bigdecimal/rdoc/BigDecimal.html#method-i-to_s


MSON block descriptions and markdown in descriptions could be improved

It seems MSON block descriptions don't render at all at the moment?
https://github.com/apiaryio/mson/blob/master/MSON Specification.md#41-block-description
It would be really great to support longer descriptions to help the humans who don't read the JSON schema. Also, markdown bold and italics definitely help highlight certain critical pieces of information.
FORMAT: 1A

# Blueprint

## Item [/item]

+ Attributes
    - id: 1 (number) - This description renders nicely
    - name: example (string) - This one doesn't _render italics_ or **bold**
    - short_description: foobar (string) - First line renders
        This doesn't render at all!
    - description: foobar (string)
        This doesn't render at all!

### Get Item [GET]

+ Response 200 (application/json)

    + Attributes (Item)

That is correct. It should be addressed in the – now infamous – #191

I think this can be closed as a duplicate of #191


However, Go 1.8 beta 2 apparently stores the zero struct in a static variable, that it loads with three separate instructions and then writes back out:
% go tool compile -S foo.go
"".(*OutMessage).Reset t=1 size=42 args=0x8 locals=0x0
        0x0000 00000 (foo.go:15)        TEXT    "".(*OutMessage).Reset(SB), $0-8
        0x0000 00000 (foo.go:15)        FUNCDATA        $0, gclocals·a36216b97439c93dafebe03e7f0808b5(SB)
        0x0000 00000 (foo.go:15)        FUNCDATA        $1, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
        0x0000 00000 (foo.go:17)        MOVQ    "".m+8(FP), AX
        0x0005 00005 (foo.go:17)        MOVQ    $0, (AX)
        0x000c 00012 (foo.go:18)        MOVL    "".statictmp_0(SB), CX
        0x0012 00018 (foo.go:18)        MOVL    "".statictmp_0+4(SB), DX
        0x0018 00024 (foo.go:18)        MOVQ    "".statictmp_0+8(SB), BX
        0x001f 00031 (foo.go:18)        MOVL    CX, 8(AX)
        0x0022 00034 (foo.go:18)        MOVL    DX, 12(AX)
        0x0025 00037 (foo.go:18)        MOVQ    BX, 16(AX)
        0x0029 00041 (foo.go:19)        RET
        0x0000 48 8b 44 24 08 48 c7 00 00 00 00 00 8b 0d 00 00  H.D$.H..........
        0x0010 00 00 8b 15 00 00 00 00 48 8b 1d 00 00 00 00 89  ........H.......
        0x0020 48 08 89 50 0c 48 89 58 10 c3                    H..P.H.X..
        rel 14+4 t=15 "".statictmp_0+0
        rel 20+4 t=15 "".statictmp_0+4
        rel 27+4 t=15 "".statictmp_0+8
[...]

This shows up for me as poor performance in real code when trying out Go 1.8. The effect persists even when the code is linked into a binary.

I've worked around this for now in my performance-sensitive code using the obvious method:
func (m *OutMessage) Reset2() {
        m.payloadOffset = 0

        a := (*[2]uint64)(unsafe.Pointer(&m.header))
        a[0] = 0
        a[1] = 0
}

which generates
"".(*OutMessage).Reset2 t=1 size=35 args=0x8 locals=0x0
        0x0000 00000 (foo.go:23)        TEXT    "".(*OutMessage).Reset2(SB), $0-8
        0x0000 00000 (foo.go:23)        FUNCDATA        $0, gclocals·a36216b97439c93dafebe03e7f0808b5(SB)
        0x0000 00000 (foo.go:23)        FUNCDATA        $1, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
        0x0000 00000 (foo.go:25)        MOVQ    "".m+8(FP), AX
        0x0005 00005 (foo.go:25)        MOVQ    $0, (AX)
        0x000c 00012 (foo.go:27)        LEAQ    8(AX), CX
        0x0010 00016 (foo.go:28)        TESTB   AL, (CX)
        0x0012 00018 (foo.go:28)        MOVQ    $0, 8(AX)
        0x001a 00026 (foo.go:29)        MOVQ    $0, 16(AX)
        0x0022 00034 (foo.go:30)        RET

I would be curious to know why that LEAQ/TESTB pair is there. (I've seen apparently stray TESTB instructions in a few places. Should I file a separate issue for this?)

(Seems like the LEAQ/TESTB is there due to the dereference implicit in m.header, because when I type-pun using just unsafe.Pointer(m), it goes away. Not sure why it needs to be there, given the dereference above, but of course I'm in weird territory once I'm type punning.)

This looks like a change in the frontend which ends up not triggering the zeroing optimization during translation to SSA.
Here's a simple repro:
type X struct {
	a, b, c int
}
func f(x *X) {
	*x = X{}
}
func g(x *X) {
	*x = X{3, 4, 5}
}

Go 1.7 does the right thing for f, and Go 1.8 does not.
Neither does the right thing for g.
For f, it looks like the frontend changed to pass a different Node structure to the SSA builder.  In go.1.7, the '*x=X{}' assignment generates:
.   AS u(2) l(8) tc(1)
.   .   IND u(2) l(8) tc(1) assigned main.X
.   .   .   NAME-main.x u(1) a(true) g(1) l(7) x(0+0) class(PPARAM) f(1) esc(no) tc(1) used(true) PTR64-*X
.   .   STRUCTLIT l(8) tc(1) main.X
.   .   .   TYPE main.X u(1) a(true) l(3) x(0+0) class(PEXTERN) tc(1) type=main.X main.X main.X

In go 1.8 it is:
.   AS u(100) l(8) tc(1)
.   .   IND u(100) l(8) tc(1) assigned main.X
.   .   .   NAME-main.x u(1) a(true) g(1) l(7) x(0) class(PPARAM) f(1) esc(no) tc(1) used(true) PTR64-*X
.   .   NAME-main.statictmp_0 u(1) a(true) l(8) x(0) class(PEXTERN) f(1) tc(1) used(true) main.X

The SSA translator knows that a STRUCTLIT with no args is all zero and optimizes for zeroing.  A statictmp could be any value and thus SSA uses a copy from static data.
@griesemer @mdempsky Any idea why the frontend is using a static temp for an all-zero literal?  And any idea why this changed from 1.7 to 1.8?
We could fix that (too late for 1.8?  Probably, unless the fix is really simple).  But the larger problem is g.  If it wants to, the SSA backend should really be able to look into the statictmp and pull out the static initialization values.  That would fix both f and g.

The LEAQ/TESTB code is the nil pointer check.
It looks like we don't have any rule for "if p passes a nil pointer check, so does p+X".
There's even a TODO in cmd/compile/internal/ssa/nilcheck.go:
	// TODO: Eliminate more nil checks.
	// We can recursively remove any chain of fixed offset calculations,
	// i.e. struct fields and array elements, even with non-constant
	// indices: x is non-nil iff x.a.b[i].c is.

You could work around this for now by doing (untested):
func (m *OutMessage) Reset2() {
        m.payloadOffset = 0
        a := (*[3]uint64)(unsafe.Pointer(m))
        a[1] = 0
        a[2] = 0
}

Thanks for looking so quickly!
Regarding *[3]uint64: that's what I wound up doing, yeah. Interestingly, though it caused the same code to be generated as Go 1.7.4, my benchmark was still slower than with the statictmp version (which in turn is slower than Go 1.7.4). Weird; I can't see a way that eight memory accesses would be better than three.

@jacobsa , benchmarking is hard :(

Yeah, I figure that's it.

@randall77: I bisected to find that c39918a04991387f14cab1204f54fafab81bc105 is the culprit.

I'll squawk my typical testing line: if we had had better codegen test coverage, we could stop regressing on things like this. Yes, I know designing the test framework would be the hard part (so we don't need to re-baseline tons of golden tests with every compiler change). The tests would need to describe the general pattern of what we're aim to generate, and not the exact output.

+1 to @bradfitz; I was going to ask next about whether a regression test could be added.

It appears to be because of c39918a's change to walk.go:724. (/cc @aclements)
In 1.7.3, we recognized m.header = outHeader{} as a zero'ing assignment, and left it as is for SSA to handle.
At tip, we're walk'ing the outHeader{} composite literal, which causes us to emit it as a statictmp.

It appears to be because of c39918a's change to walk.go:724. (/cc @aclements)

This was certainly not an intended effect of that change. Since there are no pointers in the structure being zeroed, we should be able to keep doing what we were doing in 1.7 (if there were pointers, it would be a different story).

CL 34564 is an easy/non-intrusive fix, but it's only a partial solution. It works in this case because outHeader doesn't have any pointer slots.
I think the more complete (but also more intrusive) fix is to just call needwritebarrier in ssa.go. Then we can get rid of OSAWB and applywritebarrier, which will also let us simplify composite literal assignments. I'll prepare a CL for this too, but I think it'll probably want to wait for 1.9.

Thanks very much for fixing this so quickly, and even adding a test! I'm really impressed how well you all respond to bugs like this.

@dsymonds FYI in case you missed my comment on CL 34566, the specific case reported here (assignment of zero-value pointer-free composite literals) has been fixed for 1.8.
Assignments of zero-value pointerful composite literals still use statictmp. But unless we have real world examples of this affecting performance critical code, we don't plan to address this for 1.8.

@mdempsky: I did miss that comment. Thanks! Good to hear.


Added release config for 1.25

Issue #, if available:
Related to https://github.com/aws/eks-distro/issues/1472
Description of changes:
Added release config for 1.25
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve


add mania support

you can find calc here http://maniapp.uy.to/

I think following things could help in understanding the logics of mania pp.

Mania PP Graph + Data
Documentation of the changes of new vs old mania pp system
The spreadsheet complementing the documentation of the new pp system

It's all about star rating, score, OD and object count. No accuracy number. No aim/acc/stream value.
Just some bare numbers.
The only problem is trying to figure out DT/HT.
Afaik there isn't a formula for calculating the star rating without the osu! doing the work itself .
You can ignore HR and NF, as both are unranked. HD, FI and FL are ranked, but don't award score/pp bonus.
PM me on osu! ingame/forums or on Discord (IceDynamix#7153) if you have any questions about the pp formula etc.
	pp = 	( ( StrainBase × StrainMultiplier )^1.1 + AccValue^1,1 )^( 1 ÷ 1,1 ) × 0.88
  Accvalue = 	( OD ÷ 10 ) × 0.2 × StrainBase × ( ( Score - 960000 ) ÷ 40,000 )^1.1
StrainBase = 	( 5 × MAX( 1 , Star Rating × 5 ) - 4 )^2.2  ÷ 110000  × ( 1 + 0.1 × MIN( Objects ÷ 1500 , 1))

Strain Multiplier:
500k - 600k score: 0.00 + 0.30 × ((score - 500,000) ÷ 100,000)
600k - 700k score: 0.30 + 0.25 × ((score - 600,000) ÷ 100,000)
700k - 800k score: 0.55 + 0.20 × ((score - 700,000) ÷ 100,000)
800k - 900k score: 0.75 + 0.15 × ((score - 800,000) ÷ 100,000)
900k - 1mil score: 0.90 + 0.10 × ((score - 900,000) ÷ 100,000)

@IceDynamix The largest problem which still remains is the star difficulty calculation, which as far as I know isn't open source. It would be possible just to fetch and parse that from the page itself, but it's so hacky I wouldn't want to implement it that way.

I did manage to find this project, but I'm not at all sure how accurate that is.
Also, since ezpp! project itself doesn't really implement the pp/difficulty calculation, this issue could be mirrored to ojsama, the library it uses to perform the math.

Let's port this in the same manner as Taiko is currently implemented.


Can't access the website https://plc-handle-tracker.kpherox.dev/

Hello,
I can't open the website https://plc-handle-tracker.kpherox.dev/ , is it currently on maintenance?

Oops, server was down due to a temporary load. Thanks for reporting!


[#MM-12130] Custom Terms of Service

Summary

Create a new selector for showCustomTerms.
Create an action for updateServiceTermsStatus.
Updated Client4.js to make API call for updateServiceTermsStatus.
Refactor buildQueryString from Client4.js to utils to be able to use it in the web-app.

Ticket Link
https://mattermost.atlassian.net/browse/MM-12130
Checklist

[x] Ran make check-style to check for style errors
[x] Ran npm test to ensure unit tests passed
[ ] Ran make flow to ensure type checking passed
[x] Added or updated unit tests (required for all new features)
[x] All new/modified APIs include changes to the drivers

Test Information
This PR was tested on: Ubuntu 18.04

Also one other worry.
The custom terms of service seems to be part of the config that is sent to the client, meaning that every time the config is fetch we will get the text of the terms which can be very large increasing the payload, I think its going to be better if we have an endpoint to fetch the text for the custom terms and retrieve it only when we need to show them so the user can Agree.
thoughts?

@jwilander You were proposed as a second reviewer for this PR

Took a quick look and it looks fine other than @enahum's comment. I'm going to wait until the server PR is approved before doing a proper review here as this PR is very dependent on the server PR.

@enahum, we ended up converging on a discrete endpoint in the server PR around similar concerns. I believe @chetanyakan will update this PR to reflect these changes soon.

As @enahum suggested, I have added an action to make API call for getServiceTerms.

Looks good other than the style error:
/home/ubuntu/jenkins/workspace/rdx_mattermost-redux_PR-642-4UXLIHBBDRCT446TNR7JQXBDEP4IHEGKUISDOYSFXTGBZDZVA2AA/src/selectors/entities/users.js

  351:20  error  'license' is defined but never used  no-unused-vars

✖ 1 problem (1 error, 0 warnings)


had_12_paley is still used instead of the had_12 added in #5

Looks like the code generator just needs a one-line patch to replace had_12_paley by had_12, here: https://github.com/Dao-AILab/fast-hadamard-transform/blob/master/csrc/code_gen.py#L181
had_12 appears to match what QuaRot uses: https://github.com/spcl/QuaRot/blob/main/fake_quant/hadamard_utils.py#L152 (haven't exhaustively inspected it, but the first and second column match had_12 and not had_12_paley)

Looks like @hychiang-git  may have just overlooked this in #5?

I opted to use had_12_paley to follow the original implementation. I added had_12 in the PR for the people who like to use had_12. It is configurable, but you need to recompile the package. Cheers!


Wishbone config

With the help of @piotr-binkowski I managed to configure the fastvdma to use the Wishbone bus.
What still we can change is the type of the reader and writer frontends - do we want to use the WishboneClassic* or do we want WishboneClassicPipelined*.

By mistake I created the pull request on antmicro/fastvdma, sorry!


Questions on replicating the training process

Hi,
I like this work and hope to replicate it, and wish to confirm my understanding regarding this repo:
It seems the repo only provides the trained models and a small example, and there are no visualization code for the curve.  In order to replicate the training process in the paper(for example plain CNN), I would also have to implement myself based on this code. Am I right?

Hi,
The code for training start networks has been provided in this repo. For training plain CNNs with specific settings (architectures and hyperparameters), please refer to "run_simple_convnet.py".
The code for visualization is not included in the repo and you may implement it if needed.

Got it! Thanks a lot.
BTW I have another detailed question when reading the paper: To get the best models you trained for several stages (the starting point of a stage is the best model from last stage). Are the weights for the meta-controller re-initialized or trained continuously between every stage?


Snapshot version broke generated widgetset xml

Hey there, as always let me first thank you for the effort put into this plugin! ;)
Now let's get to the issue, one of my coworkers made a simple code change to one of our vaadin projects and most features related to vaadin add-ons simply stopped working. Comparing the source code, we realized that the generated widgetset xml had drastically changed. I immediately came here and noticed that you had published a new version of the plugin. By simply reverting the version to 0.10.7 the issue was fixed.
Now comes the question, has there been any change in the widgetset generation that requires any type of variable being set on build.gradle or any other place? Or can this be an unexpected side-effect of the new version?  Right now we simply declare the widgetset variable on the vaadin block of build.gradle.
I will update this issue with the xml generated by 0.10.7 and by 0.11 ASAP

Hi,
Indeed just recently 0.11-beta was released to the update site which is a major release with quite a  few changes. It should however be backwards compatible so you shouldn't need to change your build.gradle for the upgrade (you will get some nagging messages in the console though asking you to update from deprecated API).
I did a quick run with a simple project without addons and didn't notice any differences, but maybe with a more complex project there might be. When you have time please post the differing xml files and I'll have another look. If they differ significantly then it is definitely a regression somewhere.

We have a similar issue. The project is a Spring Boot application, and since the upgrade to 0.11 widgetset generation does nothing. Also, push is not enabled anymore.
Here is an extract from build.gradle:
vaadin {
version "$vaadinVersion"
manageDependencies true
push true
widgetset 'UnibosWidgetSet'
//    manageWidgetset true
}
vaadinCompile.manageWidgetset true
Build output:
12:43:42 PM: Executing external task 'vaadinUpdateWidgetset'...
Using Gradle Vaadin Plugin 0.11.0-beta
The vaadin.widgetset property has been deprecated and is scheduled to be removed in Gradle Vaadin Plugin 0.12. This property has been replaced by automatic widgetset detection. You should be able to remove this property definition completely. If you do need to set it manually you can set vaadinCompile.widgetset.
:unibos-ui:vaadinUpdateWidgetset
BUILD SUCCESSFUL
Total time: 19.485 secs
12:44:02 PM: External task execution finished 'vaadinUpdateWidgetset'.
After this UnibosWidgetSet.gwt.xml is untouched, and no widgetset files in src/webapp/VAADIN.

Hi @dawiemalan,

After this UnibosWidgetSet.gwt.xml is untouched, and no widgetset files in src/webapp/VAADIN.

The generated widgetset file should end up in src/main/resources  and not under webapp by default. Could you check that that is the case or have you configured it somehow? If you already have a widgetset file in-place which is up-2-date then the plugin will not alter it unless something is added to the build (like an addon with a widgetset).

Here is the generated widget set (note no addons at all):

Should it contain addons?

... Also, push is not enabled anymore.

I couldn't reproduce the push issue with  a simple case, could you check gradle dependencies contains the vaadin-push configuration with the vaadin-push dependencies? Also ensure your UI is using the @Push annotation.

I can confirm the widgetset is created in src/main/resources. I deleted it, ran it again and the widgetset was re-created, still the same though.
Yes, there should be several addons.  I will come back to the push issue, it may be unrelated.
Here are the addon depencencies:
    compile 'org.vaadin.addon:easyuploads:7.4.2'
    compile 'org.vaadin.addons:vaadin-grid-util:1.0.7'
    compile 'org.vaadin.addons:popupbutton:2.6.0'
    compile 'org.vaadin.addons:contextmenu:4.5'
    compile 'org.vaadin.addons:dcharts-widget:1.7.0'
    compile 'org.vaadin.teemu:switch:2.0.3'
    compile 'org.vaadin.alump.labelbutton:labelbutton-addon:0.1.3'
    compile 'org.vaadin.alump.masonry:masonry-addon:0.5.0'

Something that might be relevant - these dependencies are declared in another module which this module depends on. Will try adding it to this module's build and check if there is a difference.

Adding dependencies directly to this module did not help. I added all Vaadin dependencies too, and disabled vaadin,manageDependencies.  I've got the compiled widgetset now in webapp/VAADIN/widgetsets, but UnibosWidgetSet.gwt.xml is still incomplete:
`

`

@dawiemalan Thanks for the info, can confirm it now.

@jorgebsa @dawiemalan Should be fixed in the 0.11-SNAPSHOT now, if you want you can try it out. I'll release a second beta next weekend to the update site with this fix included as well. Thanks for reporting this critical issue!

Still not working for me. I'm using:
apply from: 'http://plugins.jasoft.fi/vaadin.plugin?0.11-SNAPSHOT'
Did a clean build, gwt-unitCache and widgetsets directories are built as expected, and the widgetset file was created, but still no add-ons in the widgetset and addons.scss is not updated.
We are a bit stuck, we need 0.11 for #216.

Since it is a snapshot could you add "--refresh-dependencies" when running the build to ensure you are getting the latest snapshot and not a snapshot from the gradle cache. Still same result?

Same result.

Something that might be relevant - these dependencies are declared in another module which this module depends on.

I think this is the relevant part in this particular case. Are you exposing these dependencies as transitive dependencies for the module? The plugin will only scan the dependency graph of the module it is run in and and if the module only depends on the resulting artifact of the module (with a project dependency), and the module does not provide its dependencies as transitive dependencies to that artifact then the moudle will not know that the addon dependencies needs to be included.

I thought it might be related, and therefore added the addons as direct dependencies to the UI application yesterday, before your latest fix.
Here is the complete build.gradle for this module:
buildscript {
    ext {
        springLoadedVersion = '1.2.4.RELEASE'
    }
    repositories {
        mavenCentral()
        jcenter()
        maven {url "http://repo.spring.io/snapshot"}
        maven {url "http://repo.spring.io/milestone"}
    }
    dependencies {
//        classpath "fi.jasoft.plugin:gradle-vaadin-plugin:0.10.7"
        classpath("org.springframework.boot:spring-boot-gradle-plugin:$springVersion")
        classpath "org.springframework:springloaded:$springLoadedVersion"
        classpath 'com.netflix.nebula:gradle-info-plugin:3.+'
    }
}

plugins {
    id 'nebula.provided-base' version '3.0.3'
//    id 'fi.jasoft.plugin.vaadin' version '0.11.0-beta'
}

apply plugin:'java'
apply plugin:'groovy'
apply plugin:'maven'
apply plugin:'idea'
apply plugin:'eclipse'
apply plugin: 'nebula.info'
apply plugin: 'spring-boot'
apply from: 'http://plugins.jasoft.fi/vaadin.plugin?0.11-SNAPSHOT'

version rootProject.version

repositories {
    mavenCentral()
}

dependencies {

    compile("org.codehaus.groovy:groovy:$groovyVersion") {
        exclude module:"commons-cli"
        exclude module:"ant"
    }

    compile "org.springframework.boot:spring-boot-starter:$springVersion"
    compile "org.springframework.boot:spring-boot-starter-web:$springVersion"
    compile "org.springframework.boot:spring-boot-starter-actuator:$springVersion"
    compile "org.springframework.boot:spring-boot-starter-security:$springVersion"

    compile 'javax.servlet:javax.servlet-api:3.1.0'
    compile 'org.hibernate:hibernate-validator:4.1.0.Final'

//    compile "com.vaadin:vaadin-spring-boot:$vaadinSpringVersion"
//    compile "com.vaadin:vaadin-server:$vaadinVersion"
//    compile "com.vaadin:vaadin-themes:$vaadinVersion"
//    compile "com.vaadin:vaadin-client:$vaadinVersion"
//    compile "com.vaadin:vaadin-client-compiled:$vaadinVersion"
//    provided "com.vaadin:vaadin-client-compiler:$vaadinVersion"
    compile "com.vaadin:vaadin-push:$vaadinVersion"
    compile 'com.vaadin.external.atmosphere:atmosphere-runtime:2.2.7.vaadin1'

    testCompile group: 'junit', name: 'junit', version: '4.11'

    compile 'org.vaadin.addon:easyuploads:7.4.2'
    compile 'org.vaadin.addons:vaadin-grid-util:1.0.7'
    compile 'org.vaadin.addons:popupbutton:2.6.0'
    compile 'org.vaadin.addons:contextmenu:4.5'
    compile 'org.vaadin.addons:dcharts-widget:1.7.0'
    compile 'org.vaadin.teemu:switch:2.0.3'
    compile 'org.vaadin.alump.labelbutton:labelbutton-addon:0.1.3'
    compile 'org.vaadin.alump.masonry:masonry-addon:0.5.0'

    compile project(':core-common')
    compile project(':core-client')
    compile project(':accounting-common')
    compile project(':accounting-client')
    compile project(':unibos-vaadin')
}

configurations.all {
    resolutionStrategy {
        force "javax.validation:validation-api:1.0.0.GA"
    }
}

jar {
    baseName = 'unibos-ui'
    version =  "$project.version"
}

compileJava.dependsOn(processResources)

//war.enabled = false
jar.enabled = false

vaadin {
    version "$vaadinVersion"
    manageDependencies true
    push true
}

vaadinCompile.widgetset 'UnibosWidgetSet'

springBoot {
    mainClass = 'unibos.ui.UnibosUIApplication'
    executable = true
}

bootRun {
    addResources = true
    systemProperties System.properties
}

bootRepackage {
    executable true
    excludeDevtools true
    //layout 'jar'
}

install.enabled false
uploadArchives.enabled false

I just noticed, some time this morning (probably after the --refresh-dependencies run) the addons.scss was updated.  Just did another clean build and got this in addons.scss (but widgetset still not right):
/* This file is automatically managed and will be overwritten from time to time. */
/* Do not manually edit this file. */

/* Provided by labelbutton-addon-0.1.3.jar */
@import "../../../VAADIN/addons/labelbutton/labelbutton.scss";

/* Provided by contextmenu-4.5.jar */
@import "../../../VAADIN/themes/contextmenu/contextmenu.scss";

/* Provided by masonry-addon-0.5.0.jar */
@import "../../../VAADIN/addons/masonry/masonry.scss";

/* Import and include this mixin into your project theme to include the addon themes */
@mixin addons {
	@include labelbutton;
	@include contextmenu;
	@include masonry;
}

Disabled widgetset management for now.  Will revisit this when beta-2 is available.

@dawiemalan Beta 2 is released. That last fix should resolve the issue with the widgetset genereration not including the inherits.

Resolved, thanks John.


[UI] Source majority components from Sistent

Current Behavior

Desired Behavior

Migrate all v4 components to mui v5 components and sistent components
Remove use of make styles and use styled components
Then use Sistent theme provider that will support v5 theme

Implementation

Acceptance Tests

Mockups

Contributor Guides and Handbook

🛠 Meshery Build & Release Strategy
📚 Instructions for contributing to documentation

Meshery documentation site and source

🎨 Wireframes and designs for Meshery UI in Figma
🙋🏾🙋🏼 Questions: Discussion Forum and Community Slack

@nebula-aac any flow or suggestions you want to add in achieving this and support v5 ? I added a minimal flow in description


Inference using a .pb file

❓ Questions and Help
Hi, I already have a frozen_inference_graph which is a .pb file that I created earlier using matterport mask rcnn model. Now I wish to see the inference time of maskrcnn-benchmark model using that .pb file. What all modifications are required in the test_net.py or the demo notebook ?

@QuickLearner171998   Would tell me please, how you create .pb file using matterport mask rcnn model. I used this code for training and testing,
https://github.com/matterport/Mask_RCNN
but it does not create .pd file, it create weight file as I know.
How can I create .pd file?

@QuickLearner171998 Would tell me please, how you create .pb file using matterport mask rcnn model. I used this code for training and testing,
https://github.com/matterport/Mask_RCNN
but it does not create .pd file, it create weight file as I know.
How can I create .pd file?

https://github.com/matterport/Mask_RCNN/issues/1569#issuecomment-503466928
This worked for me

@QuickLearner171998  Thanks for your comment
what about .pbtxt? How can I create it. Is it ok to use the created .pb file in opencv dnn?

@QuickLearner171998
I am trying to use it in opencv dnn but it gives the following error
error: OpenCV(4.1.0) C:\projects\opencv-python\opencv\modules\dnn\src\tensorflow\tf_importer.cpp:497: error: (-2:Unspecified error) Input layer not found: ROI_7/split/value in function 'cv::dnn::dnn4_v20190122::`anonymous-namespace'::TFImporter::connect'

@ QuickLearner171998
我正在尝试在opencv dnn中使用创建的.pb文件，但它给出以下错误
错误：OpenCV（4.1.0）C：\ projects \ opencv-python \ opencv \ modules \ dnn \ src \ tensorflow \ tf_importer.cpp：497：错误：（-2：未指定错误）未找到输入层：ROI_7 / split / value在函数'cv :: dnn :: dnn4_v20190122 ::`anonymous-namespace':: TFImporter :: connect'

请问您成功使用opencv的dnn调用吗？我使用其他模型训练出的pb模型，生成pbtxt都没有调用成功


False positive

On fully updated Windows 7 SP1 a Windows Server 2008R2 it still says "Your computer is NOT patched against EternalBlue"

Hi @nolimitdev ,
Can you please share the list of installed KBs on these system?
You can either fetch this list using:

Command prompt: "wmic qfe list"
PowerShell: Get-HotFix

According to https://technet.microsoft.com/en-us/library/security/ms17-010.aspx bug was originally fixed in KB4012212 (Security Only) or KB4012215 (Monthly Rollup - March, 2017).
According to https://www.catalog.update.microsoft.com/ScopedViewInline.aspx?updateid=e138ff63-7614-44e4-b6e4-37fc3df1e482 KB4012215 has been replaced by KB4015549 (Monthly Rollup - April, 2017).
According to https://www.catalog.update.microsoft.com/ScopedViewInline.aspx?updateid=c5fc51cf-4111-4218-8ca4-965395c80e62 KB4015549 has been replaced by KB4019264  (Monthly Rollup - 2017-05).
Finally when you check list of included KBs of latest monthly rollup KB4019264 https://support.microsoft.com/en-us/help/4019264/windows-7-update-kb4019264 you can see both KB4012212 and KB4012215.
So if you have installed one of the mentioned KB you are not vulnerable to EternalBlue. It is enough to have installed newest one KB4019264. VerifyEternalBlue.vbs does not check KB4015549 and KB4019264 and causes false positive result.

Confirmed, Win7 Pro SP1 here, and the script says that the system is not patched, which is false. None of the KBs the script is checking for is installed, but KB4019264 is installed. Neither KB4015549, nor KB4012212, nor KB4012215 are installed.

The list of KB entries the script is checking definitely needs fixing. To begin with, I see no reason why the following are checked:
KB4013429
KB4016635
KB4016636
KB4016637
However, the script should be checking (it currently isn't) for the presence of the following KB entries; any of which would indicate that the system has been patched against MS017-010:
KB4015549
KB4015550
KB4015551
KB4019215
KB4019216
KB4019264
KB4019473
KB4019474
For reference, see slide No. 8 in Microsoft's presentation on this subject.
 Well, at least you aren't shelling to PowerShell too. This should be implemented in pure VBScript, using GetObject to obtains a handle to WMI, and then enumerate the installed patches, instead of going through the clipboard, jeez!
Aw, shucks, it would probably be easier to write my own script at this point...

Hi @bontchev ,
Awesome reference! It puts together the list of KBs and I'll update the script right away.
It worth mentioning that the script is prior any no such list was available.
Regarding your own script, let us know about your Columbus' Egg when it is done!

Hi @nolimitdev ,
Thank you for your feedback.
It became clear that Windows 10's rollout model is not friendly enough to this verification strategy.
We just released a tool that verifies if the affected component is in a patched version.
I'll keep the repository for historical purposes only, but I won't be updating KBs list anymore.

@puodzius, you are right - the stupid monthly roll-ups mean that such a script would have to be updated every month with new KB entries added to it, so it makes no sense to do the check like this.
				WScript.Quit
			End If
		Next
	End If
Next

WScript.Echo "The machine " & strPC & " is NOT patched against EternalBlue!"

Function Reachable(strComputer)
	Set objWMIService2 = GetObject("winmgmts:\\.\root\cimv2")
	Set colPing = objWMIService2.ExecQuery("Select * from Win32_PingStatus Where Address = '" & strComputer & "'")
	For Each objItem in colPing
		If IsNull(objItem.StatusCode) Or objItem.Statuscode <> 0 Then
			Reachable = False
		Else
			Reachable = True
		End If
	Next
End Function


Oops! There seems to be an error with your turnip predictions

Things to check

Have you forced a refresh in your browser (e.g. ctrl+F5 in Chrome/Firefox)?

yes

Have you made sure the first time buyer option is correct? If you're unsure, try it both ways

yes

Have you time-travelled this week? Travelling backwards resets the prices, and therefore you must not put prices in from both before & after the time-travel

no

Describe the bug
A clear and concise description of what the bug is.
The predictor stopped working when I entered the turnip prices for Wednesday AM and PM.
To Reproduce
Steps to reproduce the behavior:

Go to https://turnipprophet.io/
Click on "No" for First-time Buyer, "Small Spike" for Previous Pattern
Enter "93" for Sunday
Enter "90, 87, 83, 102, 183, 539" for Monday AM/PM, Tuesday AM/PM, and Wednesday AM/PM, respectively.
Scroll to Output
See error

Permalink to your prices
Please click the Copy Permalink button and paste it here
https://turnipprophet.io?prices=<IP_ADDRESS>.102.183.539......&pattern=3
Expected behavior
A clear and concise description of what you expected to happen.
The predictor was supposed to predict the pattern of the island that week and the ranges of prices the turnip has that week.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: macOS Monterey
Browser: Chrome
Version: macOS Monterey version 12.0.1, Chrome version 96.0.4664.110

Smartphone (please complete the following information):

Device: N/A
OS: N/A
Browser: N/A
Version: N/A

Additional context
Add any other context about the problem here.
The turnips I purchased this week were from a different island.

You may need to input the initial prise of your island, not the other's island.🤔

The price data before Tuesday has confirmed that you are in the fluctuating pattern this time, the price can not be higher than 131 (140% of the weekend price) on Wednesday.