Use meteor-client-bundler with angular2-compilers package

Hi,
Im trying to use meteor-client-bundler in my ionic project to connect to the Meteor server with angular2-compilers package. When i execute meteor-client bundle -s sourcedir
I have the following error:
Errors prevented bundling:
While processing files with angular2-compilers (for target web.browser):
native: main.html has wrong layout
at Error (native)
at packages/urigo:static-html-compiler/build/src/index.js:34:27
at Array.forEach (native)
at StaticHtmlCompiler.processFilesForTarget (packages/urigo:static-html-compiler/build/src/index.js:19:15)

/usr/lib/node_modules/meteor-client-bundler/node_modules/execa/index.js:268
		throw (result.error || new Error(result.stderr === '' ? result.stdout : result.stderr));
		^
Error: null
    at Function.module.exports.sync (/usr/lib/node_modules/meteor-client-bundler/node_modules/execa/index.js:268:26)
    at Object.bundle (/usr/lib/node_modules/meteor-client-bundler/lib/bundler.js:72:9)
    at Command.<anonymous> (/usr/lib/node_modules/meteor-client-bundler/cli:37:13)
    at Command.listener (/usr/lib/node_modules/meteor-client-bundler/node_modules/commander/index.js:301:8)
    at emitTwo (events.js:106:13)
    at Command.emit (events.js:191:7)
    at Command.parseArgs (/usr/lib/node_modules/meteor-client-bundler/node_modules/commander/index.js:615:12)
    at Command.parse (/usr/lib/node_modules/meteor-client-bundler/node_modules/commander/index.js:458:21)
    at Object.<anonymous> (/usr/lib/node_modules/meteor-client-bundler/cli:45:9)
    at Module._compile (module.js:570:32)

Too, i try execute meteor-client-bundler configuring the meteor-client.config.json and package.json files in the ionic project like that:
package.json

{
  "name": "ionic-hello-world",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve",
    "meteor-client:bundle": "meteor-client bundle -s sourcedir --url http://<IP_ADDRESS>:3000 -c meteor-client.config.json"

  },
  "dependencies": {
    "@angular/common": "2.2.1",
    "@angular/compiler": "2.2.1",
    "@angular/compiler-cli": "2.2.1",
    "@angular/core": "2.2.1",
    "@angular/forms": "2.2.1",
    "@angular/http": "2.2.1",
    "@angular/platform-browser": "2.2.1",
    "@angular/platform-browser-dynamic": "2.2.1",
    "@angular/platform-server": "2.2.1",
    "@ionic/storage": "1.1.7",
    "angular2-moment": "^1.1.0",
    "babel-runtime": "^6.22.0",
    "ionic-angular": "2.0.0",
    "ionic-native": "2.4.1",
    "ionicons": "3.0.0",
    "meteor-rxjs": "^0.4.7",
    "moment": "^2.17.1",
    "rxjs": "5.0.0-beta.12",
    "sw-toolbox": "3.4.0",
    "zone.js": "0.6.26"
  },
  "devDependencies": {
    "@ionic/app-scripts": "1.0.0",
    "@types/meteor": "^1.3.31",
    "@types/underscore": "^1.7.36",
    "meteor-typings": "^1.3.1",
    "tmp": "0.0.31",
    "typescript": "2.0.9",
    "typescript-extends": "^1.0.1"
  },
  "cordovaPlugins": [
    "cordova-plugin-whitelist",
    "cordova-plugin-console",
    "cordova-plugin-statusbar",
    "cordova-plugin-device",
    "cordova-plugin-splashscreen",
    "ionic-plugin-keyboard"
  ],
  "cordovaPlatforms": [],
  "description": "qmo_mobile: An Ionic project",
  "config": {
    "ionic_webpack": "./webpack.config.js"
  }
}

meteor-client.config.json
{
  "runtime": {
    "meteorEnv": {},
    "DDP_DEFAULT_CONNECTION_URL": "http://<IP_ADDRESS>:3000"
  },
  "import": {
<EMAIL_ADDRESS>[
      "underscore",
      "meteor",
      "modules-runtime",
      "modules",
      "promise",
      "babel-runtime",
      "ecmascript-runtime",
      "ecmascript",
      "base64",
      "ejson",
      "jquery",
      "check",
      "random",
      "tracker",
      "retry",
      "id-map",
      "ordered-dict",
      "geojson-utils",
      "diff-sequence",
      "mongo-id",
      "minimongo",
      "ddp-common",
      "ddp-client",
      "ddp",
      "allow-deny",
      "reactive-var",
      "mongo"
    ],
    "angular2-compilers": []
  },
  "export": {
    "ddp": ["DDP"],
    "meteor": ["Meteor"],
    "mongo": ["Mongo"],
    "tracker": ["Tracker"],
    "underscore": ["_"]
  }
}

I execute the command  npm run meteor-client:bundle (like https://angular-meteor.com/tutorials/whatsapp2/ionic/meteor-server-side )  and i have this error:
Errors prevented bundling:
While processing files with angular2-compilers (for target web.browser):
native: main.html has wrong layout
at Error (native)
at packages/urigo:static-html-compiler/build/src/index.js:34:27
at Array.forEach (native)
at StaticHtmlCompiler.processFilesForTarget (packages/urigo:static-html-compiler/build/src/index.js:19:15)

/usr/lib/node_modules/meteor-client-bundler/node_modules/execa/index.js:268
		throw (result.error || new Error(result.stderr === '' ? result.stdout : result.stderr));
		^
Error: null
    at Function.module.exports.sync (/usr/lib/node_modules/meteor-client-bundler/node_modules/execa/index.js:268:26)
    at Object.bundle (/usr/lib/node_modules/meteor-client-bundler/lib/bundler.js:72:9)
    at Command.<anonymous> (/usr/lib/node_modules/meteor-client-bundler/cli:37:13)
    at Command.listener (/usr/lib/node_modules/meteor-client-bundler/node_modules/commander/index.js:301:8)
    at emitTwo (events.js:106:13)
    at Command.emit (events.js:191:7)
    at Command.parseArgs (/usr/lib/node_modules/meteor-client-bundler/node_modules/commander/index.js:615:12)
    at Command.parse (/usr/lib/node_modules/meteor-client-bundler/node_modules/commander/index.js:458:21)
    at Object.<anonymous> (/usr/lib/node_modules/meteor-client-bundler/cli:45:9)
    at Module._compile (module.js:570:32)

npm ERR! Linux 4.4.0-62-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "meteor-client:bundle"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! ionic-hello-world@ meteor-client:bundle: `meteor-client bundle -s sourcedir --url http://<IP_ADDRESS>:3000 -c meteor-client.config.json`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ionic-hello-world@ meteor-client:bundle script 'meteor-client bundle -s sourcedir --url http://<IP_ADDRESS>:3000 -c meteor-client.config.json'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ionic-hello-world package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     meteor-client bundle -s sourcedir --url http://<IP_ADDRESS>:3000 -c meteor-client.config.json
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs ionic-hello-world
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls ionic-hello-world
npm ERR! There is likely additional logging output above.

The packages of my meteor project:
# Meteor packages used by this project, one per line.
# Check this file (and the other files in this directory) into your repository.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.

<EMAIL_ADDRESS>           # Packages every Meteor app needs to have
<EMAIL_ADDRESS>     # Packages for a great mobile UX
<EMAIL_ADDRESS>                 # The database Meteor supports right now
<EMAIL_ADDRESS>          # Reactive variable for tracker
<EMAIL_ADDRESS>                # Helpful client-side library
<EMAIL_ADDRESS>               # Meteor's client-side reactive programming library

<EMAIL_ADDRESS> # CSS minifier run for production mode
<EMAIL_ADDRESS>  # JS minifier run for production mode
<EMAIL_ADDRESS>              # ECMAScript 5 compatibility for older browsers.
<EMAIL_ADDRESS>          # Server-side component of the `meteor shell` command

<EMAIL_ADDRESS>msavin:mongol
jalik:ufs
jalik:ufs-gridfs
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>mys:fonts
<EMAIL_ADDRESS><EMAIL_ADDRESS>angular2-compilers

This is my projects information:
Meteor project:
Meteor version: Meteor <IP_ADDRESS>
Ionic project:
Your system information:

Cordova CLI: 6.5.0
Ionic Framework Version: 2.0.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.0.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.4
Node Version: v6.9.5
Xcode version: Not installed

I appreciate any help! Regards.

I'm very confused, why would you need angular2-compilers if you're only using Meteor as your server? Anyways, like you said, it's that package which is causing you troubles because it requires you to write HTML files and all these stuff. Try using the following command:
$ meteor-client bundle --url http://<IP_ADDRESS>:3000 -c meteor-client.config.json

With the following config:
{
  "import": [
<EMAIL_ADDRESS>  ]
}

Note: Be sure to add any client-related package to the import field above

Make sure you have<EMAIL_ADDRESS>installed.

Nice! The problem is solved! I execute the command
meteor-client bundle --url http://<IP_ADDRESS>:3000 -c meteor-client.config.json
and modify meteor-client.config.json file. I see my meteor-client-bundler version and i have 0.1.1 version, please keep in mind the version that you mean (1.1.0) is not allowed:
npm ERR! notarget No compatible version found<EMAIL_ADDRESS>npm ERR! notarget Valid install targets:
npm ERR! notarget 0.1.1, 0.1.0, 0.0.4, 0.0.3, 0.0.2, 0.0.1
npm ERR! notarget
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

Regards!


Add disaster recovery VPN configuration

These aren’t enabled all the time, but when you need them, it’s good to
have them set up.

:+1: :cake:


It is not able to submit button by typing enter key on text field.

I found bug.
If activeform doesnt content the submit button,
it is not able to submit button by typing enter key on text field.
Even if I set validateOnSubmit true.
I think it not normal, cause typing the enter key on text field it should submit the form, even if there is no submit button.
Is this a bug?

Probably. Is it reproduceable with simple forms?

Simple form should work, but yii2 active form doesn't.
I think active form shouldn't depend if there exists submit button or not.
It should submit the form anyway, just when you type the enter on text field.
I tested it well and I am sure it is bug.

It not very big bug,  I can make event with $form.yiiActiveForm('submitForm')
But it should work by default I think.

Hi @nurbeknurjanov
Have you tested in more than one browser? I already had a similar problem but it was a browser issue, not my code (dont remember which browser, probably IE, and it was more than 5 years ago!)

I checked again and it is the same. I am sure. I checked in modern brawsers.
Remove the submit button from you active form. then type the enter key in any of your text field.
Then you will see, that form is not submitting.

The problem is not Yii2-related. The plain form without a submit button will never submit on Enter key. Check out this SO question

Deal SilverFire, could you be carefull,
Here is a plain form with only text field in.
And typing enter on text field it sends form. It is a standart as anyone knows,
Could you check it if you dont belive me,
`

`
thank you.

I confirm that submitting on pressing enter is usual browser behavior for plain forms. I think it worth changing in active form JS.

Confirm too

I investigated this problem in details.
@nurbeknurjanov First of all, the form in your example contains only one text field. If you add even one more field, it won't work:
Here is an example in plain PHP:
<?php

if (isset($_POST['text'])) {
    echo "text - " . $_POST['text'] . "\n";
}

if (isset($_POST['text1'])) {
    echo "text1 - " . $_POST['text1'] . "\n";
}
?>

<form action="" method="post">
    <input type="text" name="text">
    <input type="text" name="text1">
</form>

Tested with the latest (at the moment of writing) Mozilla Firefox 50.0 - if you press enter, nothing will happen.
So, as you can see it's not Yii2 related.
But. back to Yii2. Let's say we have form:
<?php

namespace app\models;

use yii\base\Model;

class ContactForm extends Model
{
    public $message;

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            ['message', 'required'],
        ];
    }
}

and related ActiveForm with enabled client validation without submit button for rendering it:
<?php $form = ActiveForm::begin(); ?>

<?= $form->field($model, 'name') ?>

<?php ActiveForm::end(); ?>

Pressing Enter will first trigger required validator and if you fill something - then it will submit the form without any problems.
Adding any additional fields, for example name makes impossible to submit form using Enter.
Hovewer, if submit button exists in the form, Enter can be used for submission when one of text inputs has focus. It works for both plaing PHP and Yii2 (I tested with 2.0.6. and 2,0,10 using latest code from master branch). If enableClientValiation is true then obviously client validation will trigger first and you need to correctly fill all fields before you can submit form.
Bottom line. Submitting form by pressing Enter when text input has focus works if:

form has submit button;
form has no submit button and has only one input with type text.

I found this SO answer useful.
If you still want this, there are some workarounds using CSS, example can be found in SO question mentioned by @SilverFire or JavaScript / JQuery, example.
Note that there can be conflicts with keypress of Enter in the whole form and going to next line in textarea elements. For regular text inputs it should work.

Should be nevertheless included in yii.activeForm.js as a feature?

@arogachev thank you for a good investigation!
It's not a popular use case and there are workarounds, so IMO we should not increase complexity of yii.activeForm.js.
Considering that it's not a Yii2 problem from the beginning and nobody except @nurbeknurjanov reported the same for more than 1 year, I'm closing this issue.

Thank you guys. I really appreciate you.


Add maintainers to pyproject.toml (#173)

Proposed changes
Related to #173
Add maintainers to pyproject.toml file

Add a maintainers section below the authors section.
Include the names and contact information of the maintainers (first version only).
Use the format name <email> for each maintainer.
Add a comment above the maintainers section to indicate its purpose.

Types of changes

[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] Documentation Update (if none of the other choices apply)

Further comments
I have added only @SemyonSinchenko to the maintainers list for now. Please let me know if any others should be added to the list in this same PR. PR checks/GitHub actions have passed when I tried merging to my master/main branch. Kindly review & merge.

@MrPowers and @SemyonSinchenko  - please let me know the list of maintainers of this project, so that I can update the pyproject.toml with that list.
Also, let me know if this section in CONTRIBUTING.md file should also be updated with that relevant list?

Also, let me know if this section in CONTRIBUTING.md file should also be updated with that relevant list?

We can delete this section because from now we have this information in pyproject.toml. @MrPowers @jeffbrennan what do you think?

Also, let me know if this section in CONTRIBUTING.md file should also be updated with that relevant list?

We can delete this section because from now we have this information in pyproject.toml. @MrPowers @jeffbrennan what do you think?

Ok once confirmed, I will delete this section from the CONTRIBUTING.md to update this PR.

@nijanthanvijayakumar ping me when you are done and I will merge it.

@nijanthanvijayakumar ping me when you are done and I will merge it.

Hello @SemyonSinchenko - I'm done with the changes. Thought I was supposed to wait for @jeffbrennan's approval.

@SemyonSinchenko - are you able to merge this PR?


Can't get graphics with openSUSE with upstream DTB

I've recently installed Tow-Boot, as it has been my only solution to get working graphics on my already installed openSUSE. I installed oS via serial console, to the NVMe, LUKS encrypted,
With Tow-Boot I can type my LUKS password and log into my desktop, all seems well. Except I have noticed that there are no modules loaded for sound or battery (cw2015_battery), so I tried to load another dtb from upstream. I don't know how to do it from Tow-Boot, I always get the following:
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
So I load it from GRUB with the following:
devicetree /boot/rk3399-pinebook-pro.dtb
Then the output is different, for instance I now see messages related to the cw2015_battery, so the new dtb seems to be loaded fine. However I have no graphical output again. So far I've tried efifb=off, blacklist=efifb, forcing video parameters similar to how other distros do, but I can't get any video output.
I guess I have one question, as the ARM land is quite new territory for me. Where can I get the dtb that Tow-Boot loads by default? If I could compare them, it would certainly provide some interesting info.
Sorry if this isn't related to Tow-Boot, the boot process is almost black magic to me. I'd be more than happy to provide any additional logs/output. Thanks.

Sorry if this isn't related to Tow-Boot, the boot process is almost black magic to me. I'd be more than happy to provide any additional logs/output. Thanks.

No worries, casting light in the darkness of ARM boot is a goal of Tow-Boot.

I guess I have one question, as the ARM land is quite new territory for me. Where can I get the dtb that Tow-Boot loads by default? If I could compare them, it would certainly provide some interesting info.

The "dtb" that Tow-Boot uses is the internal FDT (flattened device tree), which is built as part of the U-Boot (thus Tow-Boot) build process.
In turn, this is the dtb file used to embed in the firmware:

https://source.denx.de/u-boot/u-boot/-/blob/v2021.04/arch/arm/dts/rk3399-pinebook-pro.dts

Note that it may (actually is) further modified by patches

https://github.com/Tow-Boot/Tow-Boot/blob/development/boards/pine64/pinebook-pro.nix#L23-L37

(Hopefully the patches locations are self-evident for you to look at.)

Another clue that might help you: The generic distro boot scheme, which Tow-Boot uses, after all this is an opinionated distribution of U-Boot, can load DTB files for EFI boot.

https://source.denx.de/u-boot/u-boot/-/blob/v2021.04/include/config_distro_bootcmd.h#L158-164
https://source.denx.de/u-boot/u-boot/-/blob/v2021.04/include/config_distro_bootcmd.h#L150-152

This is a bit thick to parse, so let me explain in words.
On any of the scanned boot sources for EFI, if there is a /dtb or /dtb/current directory, load the board-specific DTB files from there.
By "board-specific DTB files", it's a built-in value, something like rockchip/rk3399-pinebook-pro.dtb for the Pinebook Pro.

Finally, I'm not 100% positive that efifb=off works, even though the kernel source explicitly shows it should. I still haven't actually tried it. My system still boots using the extlinux.conf-compatible boot scheme. Though I do want to migrate to UEFI soon. It will need some minor work in NixOS to support properly (mainly using /dtb/current),

As a footnote, there's a behaviour I still need to properly explore and grok before really talking about it. It's related to the chosen node of the FDT.

https://source.denx.de/u-boot/u-boot/-/blob/v2021.04/arch/arm/dts/rk3399-pinebook-pro.dts#L21-23

It may be overriding the console= parameters when using the built-in FDT. Though don't assume I'm right here. It's in my TODO list, to better understand when it's used.
You may want to try running this in the firmware console:
=> fdt addr $fdtcontroladdr
=> fdt rm /chosen stdout-path

And boot without another dtb being chosen... Actually that would kind of explain the behaviour experience by another user I guess.

Many thanks for your detailed replies, I appreciate it. Now I have more things to test!
The dtb-rockchip package provided by openSUSE has the following structure:
/boot/dtb
├── rk3399-pinebook-pro.dtb -> rockchip/rk3399-pinebook-pro.dtb
└── rockchip
    |── rk3399-pinebook-pro.dtb

Tow-Boot should therefore already be loading the correct file, however if I force this same file via GRUB the behaviour is different, as per my first post. In fact I remember this package not being installed by default in openSUSE, I added it later but it doesn't seem to have any effect by itself.
I'll keep digging and investigating, willl report if I find anything useful. Thanks again for Tow-Boot! It's already so much better for my Pinebook Pro.

After these commands, I open the menu again and select the NVMe (where / is), but it isn't recognized and can't boot.

Oh, that's another issue relatively unrelated here... Let's ignore that for now.

Tow-Boot should therefore already be loading the correct file, however if I force this same file via GRUB the behaviour is different

Odd. /boot is the ESP, right?

Tow-Boot should therefore already be loading the correct file, however if I force this same file via GRUB the behaviour is different

Odd. /boot is the ESP, right?

Sorry, I should have paid more attention to your previous message. I'm using the default layout from openSUSE's installer, which makes /boot/efi the ESP. The rest is under btrfs subvolumes. This is the structure:
/boot/efi/
├── EFI
│   ├── boot
│   │   ├── MokManager.efi
│   │   ├── bootaa64.efi
│   │   ├── grub.cfg
│   │   └── grub.efi
│   └── opensuse
│       ├── grub.cfg
│       └── grubaa64.efi
└── ubootefi.var

Tomorrow I'll try to put a symlink to dtb in ESP and report back.

The symlink won't work as expected across filesystems.
You will have to copy the whole dtb folder (really, the pinebook-pro DTB) for this to work.

You were right, as expected with the DTB in the ESP, I no longer have the error message libfdt fdt_check_header(): FDT_ERR_BADMAGIC, and the file loaded correctly on boot. I'll try to use another DTB, from other distros maybe, and also compare them to understand where the issue could be.

After some experiments I've found that Manjaro's DTB doesn't provide graphics, but Fedora's does. As a bonus, I also have a battery gauge, which wasn't present on U-Boot's upstream DTB. There are probably some other things missing, like sound (Pulseaudio only has a dummy output, aplay -l doesn't find a single device), but for now graphics are solved.
Now I understand this statement on the front page and appreciate your work even more:

Should all the distributions have to build and manage all the BIOS for all your boring x86_64 machines too?

The quest to find the most compatible DTB doesn't look really interesting, but I'll do my best and report my findings upstream. Thanks again for your help.

@13werwolf13 Unfortunately, I no longer have a Pinebook Pro, so I can't be of much help here. I know some changes were made last year to openSUSE's dtb for rockchip, but I don't know exactly.

@Jojonintendo sorry to hear that. I hope you just lost pbp of your own free will and not for tragic reasons.

@13werwolf13 Oh no it worked fine, I just sold it because I was getting tired of maintaining it that much instead of actually using it :p


Confusing name of LTS image when using hardened kernel

Hey, thanks for this amazing tool ! This is a very small issue, it doesn't have any impact but I thought I would still let you know.
When using a hardened kernel, the recovery EFI image of the LTS kernel will be named secure-boot-linux-hardened-recovery-lts.efi which is a bit confusing because this not a hardened version.
Maybe instead of using $NAME-recovery-lts-unsigned.efi you could hardcode linux-recovery-lts-unsigned.efi ? It would require to change the loop logic though.
https://github.com/maximbaz/arch-secure-boot/blob/4b55a33dd99e13b300efe0e430645ac417b2f58c/arch-secure-boot#L85-L93

Thanks for the kind words and the request. I completely agree. I'm not able to test in the near future, but I don't want to hold this back, may I ask you to test #11 and let me know how it went?

Looks fine to me. Though if it were me I would rather name the LTS EFI image secure-boot-linux-lts-recovery.efi for consistence. So that you have linux-hardened-recovery and linux-lts-recovery

Once again you are completely right :+1: Thanks for testing! Will get this merged some time tomorrow.

Great, thanks ! Would be awesome if you could update the AUR package as well


[Tests] MarketCollateralPool.sol tests

Definition of Done

[ ] remove all trading tests / clean up beforeEach
[ ] implement the below tests

mintPositionTokens

[ ] mintPositionTokens fails if market contract is already settled
[ ] mintPositionTokens fails if caller has insufficient collateral balance
[ ] mintPositionTokens fails if caller has not called ERC20 approve on the collateral token
[ ] mintPositionTokens locks the correct amount of collateral
[ ] mintPositionTokens mints the correct number of long and short tokens and transfers to caller
[ ] mintPositionTokens TokensMinted event is fired and correctly returns values

redeemPositionTokens

[ ] redeemPositionTokens correctly redeems expected number of long and short tokens from caller
[ ] redeemPositionTokens fails if user doesn't have needed amount of long tokens
[ ] redeemPositionTokens fails if user doesn't have needed amount of short tokens
[ ] redeemPositionTokens returns the correct amount of collateral to user upon success
[ ] redeemPositionTokens burns the expected number of position tokens upon success
[ ] redeemPositionTokens TokensRedeemed event is fired and correctly returns values

settleAndClose

[ ] settleAndClose fails when called before settlement
[ ] settleAndClose fails when called by user without sufficient long tokens
[ ] settleAndClose fails when called by user without sufficient short tokens
[ ] settleAndClose returns the correct amount of collateral to user upon success
[ ] settleAndClose burns the expected number of position tokens upon success
[ ] settleAndClose TokensRedeemed event is fired and correctly returns values
[ ] any other tests as needed or to reach 100% coverage.

@perfectmak - I added a few of these, just mainly to make sure everying is working.
Please rebase when you are ready to pick this all back up!


Cannot import sv_ttk

This isn't exactly an issue but, on opening the source code files in VSCode, it shows error on 'import sv_ttk'. The error is ModuleNotFoundError: No module named 'sv_ttk'. I have also downloaded this repository: https://github.com/rdbende/Sun-Valley-ttk-theme, however it isn't working. Moreover I could not find any other library named sv_ttk. I have the BlurWindow module and there's no error in importing it. So, could you please describe the steps to setup sv-ttk in VSCode project?

https://github.com/rdbende/Sun-Valley-ttk-theme/discussions/19 here just install the package like normal.

Thanks for the information!

No problems!


Where is the Microsoft-Teams-Sync-for-Canvas Azure app?

Would appreciate more detail in how to find and approve the "Microsoft-Teams-Sync-for-Canvas Azure app" which is a prerequisite for the steps on this page.

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

ID: b696e622-361b-0be8-0b1f-b2ad9708c877
Version Independent ID: 18403e7b-adb6-2828-54c6-ddd410eacadd
Content: Use Microsoft Teams classes with Canvas
Content Source: microsoft-365/lti/teams-classes-with-canvas.md
Service: o365-administration
GitHub Login: @cichur
Microsoft Alias: v-cichur

@neumarke You will have to sign in to Canvas and then integrate it with Azure using the steps mentioned here -https://docs.microsoft.com/en-us/microsoft-365/lti/teams-classes-with-canvas?view=o365-worldwide#microsoft-office-365-admin
It is not an enterprise application that is available to add in the Azure, If at all you are searching for this application directly on Azure.
Hope this helps!

@msbemba Thank you very much for the contribution and sharing this explanation. @neumarke Hope this comment is helpful for you. If you see a documentation update is required, please feel free to open an issue for the same. We proceed here to close it. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


MPD with custom conf

Is it possible to customize mpd.conf with one new output block like
audio_output {
	type		"shout"
	encoding	"mp3"			# optional
	name		"Docker MPD Radio"
	host		"icecast"
	port		"8000"
	mount		"/mpd"
	bitrate		"128"
	format		"44100:16:2"
	mixer_type      "software"              # optional
}

I try to find a solution for Alsa devices and icecast.
I changed the mpd.conf, restart the container, but all changes disappear.

Hello, yes every change is likely to disappear after each restart, because the configuration file is created when the container starts.
You might be able to force the change by overriding the entrypoint of the container, but in this case the container would not be working as intended.
It might be better and more straightforward to implement a way to use shout as a possible output. I am currently supporting alsa (default), pulse and null, I might add "shout" as well.
Can you describe your scenario? Is this the only output you need to configure for your container?

Now definitely yes. My scenario is a stack with mpd, ympd, icecast and sima (Autoqueue client). Now mpd should have two outputs (Alsa/Pulse and shout for icecast).
My plans also contain bluetooth speakers support, but I haven't studied this issue in detail. Maybe I'll need a second Alsa/Pulse output.

Would creating two containers, one for alsa and one for icecast, be viable?

Hmm, I think there will be inconveniences with using (e.g. with ympd). I will also have to duplicate the rest of the services (ympd,sima). And moreover, I will have to play music "simultaneously". I plan to use the Home Assistant integration to control mpd.
I have container with "shout" output, but this mpd container does not support alsa. But I can use it only for "shout" output as the second container.

That one is really old!
So what about a stop-gap solution, such as allow a custom file which should contain a snippet of mpd.conf, with custom outputs, which would be added at container startup to the "real" mpd.conf file?

Old, but fully worked!
Maybe you know a better solution (not mpd, but something else) with support alsa and streaming (only the local net). I tried mopidy, but for this one I should install one more client-side app.
Your solution  for mpd seems good!

My remark about the repo being old, is only related to the fact that it might be abandoned and is unlikely to be updated anytime soon, I was not saying anything bad at all, of course. All the opposite: the repo has 78 stars, it is probably great and I will have a look at it as soon as I can.

Excellent!
The snippet is in mpd.conf, the stream via icecast works, local 3.5 speakers also work.

See issue #97

Available in the latest images.
The test image will be deleted soon (meaningless now). So please make sure to revert to the tag you were using (latest, bullseye, jammy maybe).

Thanks a lot for Your quick reply!
Everything works well. I also configured the pulse audio server and connected my bluetooth speaker. And this config also works fine with the additional output.

Hello @RomchikL, I just added a new feature: we can now add httpd outputs using environment variables. Please check it out when you've got a few minutes.
I would like to do the same also for the shout output using entirely environment variables. Don't worry, the additional output file will be maintained.
What I wanted to ask you is how do you create an instance of shoutcast/icecast server? Are there some docker container images available?
Thank you

Hello @GioF71!
Super! But I'm not sure that httpd output works properly with my Icecast. But I can try it (maybe a little later).
Yep, I use that old repo, but replaced the original mpd container with yours. My compose if the following:
version: '3'

services:
  icecast:
    image: vitiman/alpine-icecast:latest
    container_name: icecast
    restart: unless-stopped
    ports:
      - "8000:8000"
    networks:
      - music_stack

  mpd:
    image: giof71/mpd-alsa:latest #vitiman/alpine-mpd:latest
    container_name: mpd
    hostname: mpd
    restart: unless-stopped
    ports:
      - "6600:6600"
#      - "8005:8000"
    depends_on:
      - icecast
    networks:
      - music_stack
    volumes:
      - /mnt/Data/Media/Music:/music:ro
      - /etc/docker-romchik/configs/mpd/additional-outputs.txt:/user/config/additional-outputs.txt
      - /mnt/Data/Media/Playlists:/var/lib/mpd/playlists
      - /etc/docker-romchik/configs/mpd/mpd_database:/var/lib/mpd/database
      - /run/user/1000/pulse:/run/user/1000/pulse
    devices:
        - /dev/snd:/dev/snd
    environment:
      - MPD_BIND_ADDRESS=<IP_ADDRESS>
      - USER_MODE=Y
      - OUTPUT_MODE=pulse

  ympd:
    image: vitiman/alpine-ympd:latest
    container_name: ympd
    restart: unless-stopped
    ports:
      - "8081:8080"
    depends_on:
      - mpd
    networks:
      - music_stack

networks:
  music_stack:
    driver: bridge

In general, I use it for Internet radio with my smart speaker. There is only one way to play a custom audio stream on the speaker - via bluetooth. So, I tell my speaker something like "turn on MPD" -> the speaker communicates with my Home Assistant -> HA play audio on MPD -> one of outputs - pulseaudio, where my speaker is connected via bluetooth =)
But now there is a latency with playing on several speakers (e.g., my smart speaker and my laptop via icecast). But now this issue is not on the agenda

Ok thanks.
I just forked the repo here
And I have updated the alpine and icecast version in the Dockerfile, so if you want to create an updated image, just switch to the icecast directory and launch:
docker build . -t vitiman/alpine-icecast:local

This really takes a few moments, then you can switch to the vitiman/alpine-icecast:local in your compose file.
I have checked the UI and it seems to be working, as far as I understand.
I believe I might create a new repo for icecast, crediting this user of course. I would like to add multiplaform automated builds as with most of my repos.
I also could add the shout output to my container starting from your snippet and I am able to see the mountpoint.
So, sorry for the ignorance, but what is the next step? Which app can I use to verify that this works properly?
If I can test this, I might add the equivalent feature that I added for httpd for shout as well, hopefully in the next few days.
Thank you for any help!

I got it working with vlc... thanks anyway. In any case, let me know what player(s) you are using downstream.
I will be working on this tomorrow, possibly

@GioF71 I updated the compose file to use your icecast. Everything seems to be working properly.
Almost any player is suitable (in fact, if there exists the function "open url" in the player). VLC is the most popular, yep.
I also use AIMP. Any browser is also able to open the link, e.g., Chrome.
The URL should be http://IP:8000/mpd (by default with this stack). For me it is http://<IP_ADDRESS>:8000/mpd.

Hello @RomchikL, check out the latest release, which allows also multiple shoutcast outputs.
The defaults should almost completely meet your tast and you will need to set just a few variables. For example, I chose vorbis as default encoding.
Careful with your snippet: "encoding" is not a valid key, it should be "encoder".
Also, "mp3" is not a valid encoder, you probably want to use "lame" or maybe "vorbis".
After that, you can specify either "quality" or "bitrate". See the documentation for the shout output for more details.
See here for plugin configuration defaults and here for the encoders
Let me know if this works for you.
Of course if you configure your shout output via environment variables, you can get rid of the additional-outputs.txt file.

Hello @GioF71. I have configured everything using variables. And this works properly, excellent!
I used this snippet from that repo. see conf file. And this also works, amazingly! Now I adjusted the encoder, my compose is the following:
  mpd:
    image: giof71/mpd-alsa:latest
    container_name: mpd
    hostname: mpd
    restart: unless-stopped
    ports:
      - "6600:6600"
#      - "8005:8000"
    depends_on:
      - icecast
    networks:
      - music_stack
    volumes:
      - /mnt/Data/Media/Music:/music:ro
 #     - /etc/docker-romchik/configs/mpd/additional-outputs.txt:/user/config/additional-outputs.txt
      - /mnt/Data/Media/Playlists:/var/lib/mpd/playlists
      - /etc/docker-romchik/configs/mpd/mpd_database:/var/lib/mpd/database
      - /run/user/1000/pulse:/run/user/1000/pulse
    devices:
        - /dev/snd:/dev/snd
    environment:
      - MPD_BIND_ADDRESS=<IP_ADDRESS>
      - USER_MODE=Y
      - OUTPUT_MODE=pulse
      - SHOUT_OUTPUT_CREATE=yes
      - SHOUT_OUTPUT_ENABLED=yes
      - SHOUT_OUTPUT_NAME=MPD Radio
      - SHOUT_OUTPUT_ENCODER_QUALITY=5
      - SHOUT_OUTPUT_MOUNT=/mpd
      - SHOUT_MIXER_TYPE=software

Isn't that beautiful?

Perfect!

BTW I see you use ympd, have you tried mympd? It's miles ahead of ympd.
See here
It is also quite easily installed with docker

@GioF71, hello!
I recently updated the container and found the latest changes with "output_mode".
Could you confirm that the new setting is right:
  mpd:
    image: giof71/mpd-alsa:latest #giof71/mpd-alsa:legacy-latest
    container_name: mpd
    hostname: mpd
    restart: unless-stopped
    ports:
      - "6600:6600"
    networks:
      - music_stack
    volumes:
      - /mnt/Data/Media/Music:/music:ro
 #     - /etc/docker-romchik/configs/mpd/additional-outputs.txt:/user/config/additional-outputs.txt
      - /mnt/Data/Media/Playlists:/var/lib/mpd/playlists
      - /etc/docker-romchik/configs/mpd/mpd_database:/var/lib/mpd/database
      - /run/user/1000/pulse:/run/user/1000/pulse
    environment:
#      - OUTPUT_MODE=pulse
      - USER_MODE=Y
      - PULSE_AUDIO_OUTPUT_CREATE=yes
      - PULSE_AUDIO_OUTPUT_ENABLED=yes
      #
      - SHOUT_OUTPUT_CREATE=yes
      - SHOUT_OUTPUT_ENABLED=yes
      - SHOUT_OUTPUT_NAME=MPD Radio
      - SHOUT_OUTPUT_ENCODER_QUALITY=5
      - SHOUT_OUTPUT_MOUNT=/mpd
      - SHOUT_MIXER_TYPE=software

This setting does not work with pulse for me ("All outputs are disabled"). MPD Radio works well.

Hello @RomchikL, the configuration looks ok... can you post the container log? That should show the resulting mpd.conf file.
You can read the log by typing
docker-compose logs mpd
from the directory where the docker-compose file is.
Also I see there is a restart policy, it usually does not play well with pulseaudio mode. have you tried restarting the container after logging in the desktop environment?

Also, about the "all outputs are disabled" message, can you connect with any mpd client (Cantata for example) and verify it the outputs are actually disabled?

Hello, I just tried this compose file based on yours, and removed anything except pulse, and it works for me:
---
version: "3"

services:
  mpd:
    image: giof71/mpd-alsa:latest #giof71/mpd-alsa:legacy-latest
    container_name: mpd
    hostname: mpd
    restart: unless-stopped
    ports:
      - 6600:6600
    volumes:
      - /run/user/1000/pulse:/run/user/1000/pulse
      - ./log:/log
    environment:
      - MPD_LOG_LEVEL=verbose
      - USER_MODE=Y
      - PULSE_AUDIO_OUTPUT_CREATE=yes
      - PULSE_AUDIO_OUTPUT_ENABLED=yes

Are you using a user which is actually with uid and gid = 1000? You can verify running
id

from the command line.
On this laptop I get the following output:
➜  test git:(master) ✗ id
uid=1000(giovanni) gid=1000(giovanni) groups=1000(giovanni),3(sys),90(network),98(power),961(docker),991(lp),998(wheel)

Also, why are you mounting your directories to those volumes with /var/lib/mpd/...?
The volumes are actually the following:

VOLUME
DESCRIPTION

/db
Where the mpd database is saved

/music
Where the music is stored. You might consider to mount your directory in read-only mode (:ro)

/playlists
Where the playlists are stored

/log
Where all logs are written (e.g. mpd.log, scrobbler.log etc)

/user/config
Additional user-provided configuration files, see this paragraph for the details

Reopening

There is something strange around hybrid_dsd, see that character on the line prev line?
Looks like from there on, everything is ignored maybe?
Or is that something that happened while copying and pasting?

I completely reinstalled PulseAudio and everything works again!
Thanks a lot for your quick reply!

Good to know!!! Have a great day


Gif preview when adding

When manually importing gifs, it would be useful to have a preview of the gif to be able to better tag it.

Yeah, agreed. I sort of hacked adding into the main window UI, but I think it might be served by a completely different window--this would probably fix #28 too.


Make project build under Windows

so there should be no java source with OS-dependant line-endings in any of these:

[ ] nshm-nz-opensha
[ ] opensha-core
[ ] opensha-commons
[ ] opensha-ucerf3

These are the projects our NSHM builds from.
Bonus points for:

[ ] opensha-dev

For the three opensha upstream repos, please fork into this org (GNS-Science) if they're not forked already.

written off for now, workaround for @voj in place


Port https://github.com/dotnet/coreclr/pull/2883 to CoreRT

https://github.com/dotnet/coreclr/pull/2883

LGTM. Thanks!


Number of Settings

When initially developing this extension, my philosophy was that everything should be customisable for the user. However, as I've continued to develop it, I've begun to question this ideology.
Looking at it now, the number of settings under the 'Viewership Numbers' category feels wholly unnecessary. Not only do many of them lack any kind of unambiguous and clear name, but I'm wondering if they're really necessary to begin with. I mean, if you're going to disable viewership numbers in the sidebar, are you really going to keep them in, say, just the channel's page?
Being as that I do not use Twitch all that much, and when I do I keep all of these settings enabled, I can't really answer this question. So, any input is appreciated for sure.

I'll maintain things the way they are for right now, at least until some meaningful discussion can be had one way or the other.


⚠ API (search) has degraded performance

In c1b3a1e, API (search) (https://api.dev.package-search.services.jetbrains.com/search-packages) experienced degraded performance:

HTTP code: 200
Response time: 2967 ms

Resolved: API (search) performance has improved in 346e25d after 7 minutes.


Added new School s-fx.fr

Proposed my school to be approved.

@TicTic56 Please provide us with:

the school official website URL
the school street address, including city and country
an URL of a page on the official website where the school offers an IT-related long-term (>1 year) course
a proof, which shows that the school recognizes the domain you are submitting as an official email domain for the students.

@TicTic56 You might miss my previous comment. Please react.

Hi Philipto,
here are the details :

school official website URL : https://www.saint-francois-xavier.fr/
school street address : 3 Rue Thiers, 56450, Vannes (city), France (country)
URL of a page on the official : https://www.saint-francois-xavier.fr/Premiere_20 (see : " Numérique et sciences de l'informatique " == "Digital & IT sciences" )
a proof, which shows that the school recognizes the domain you are submitting as an official email domain for the students : see https://www.saint-francois-xavier.fr/contact which is the contact form for the school. Each student has a @s-fx.fr email address.

Kind regards & Thanks.

@TicTic56
Thank you for the clarifications and your patience while waiting for a review and processing your request. Pull request merged.


#618: removed obvious nonsense, but still slow

fixed #618 (not yet)

cleanup test and removed obvious nonsense
still the testProgressBarStyleSwitchOnNonWindows that testes linux on Windows seems to cause 2 Minutes of think-time if called from a real shell. My question is what is the benefit of this if the costs are that high.
This PR is a small but nice improvement. However, it does not solve the problem described in #618

Pull Request Test Coverage Report for Build<PHONE_NUMBER>8
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 65.694%

Totals

Change from base Build<PHONE_NUMBER>7:
0.0%

Covered Lines:
5976

Relevant Lines:
8769

💛  - Coveralls

I think the whole test can be omitted because currently it does nothing which we can track inside the test itself. Would need a more complicated solution for the capturing of the prompt with a check for the expected style.

I think the whole test can be omitted because currently it does nothing which we can assert inside the test itself. Would need a more complicated solution for the capturing of the prompt with a check for the expected style.

At least we are testing the progress-bar does not crash and the steps are aggregated both in the abstract super-class as well that they arrive in the progress bar implementation. So I would still say the entire JUnit test class adds some value.

From CI logs:
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.253 s -- in com.devonfw.tools.ide.io.IdeProgressBarConsoleTest

So on linux it took 0.25 seconds what is perfectly fine.
Seems to be a Windows only problem. I will add a "conditional ignore".

I think the whole test can be omitted because currently it does nothing which we can assert inside the test itself. Would need a more complicated solution for the capturing of the prompt with a check for the expected style.

At least we are testing the progress-bar does not crash and the steps are aggregated both in the abstract super-class as well that they arrive in the progress bar implementation. So I would still say the entire JUnit test class adds some value.

I've meant just the testProgressBarStyleSwitchOnNonWindows which you've removed already, not the whole class. So everything is fine now.


Change message for isUnique method

For the past day I have been using the Check methods and I have found that isUnique method when using strings is not clear when returning the message of error.
from pydeequ.checks import *
from pydeequ.verification import *
import pydeequ
from pyspark.sql.types import DateType, FloatType, StringType, StructField, StructType, BooleanType
import datetime
from pyspark.sql import SparkSession, Row
from pyspark.sql import DataFrame as SparkDataFrame
from typing import Dict, List
import time

mock_orders =[
            {
                "date": datetime.date(2019, 12, 28),
                "country_code": "FR",
                "concept_id": "c73bcdcc-2669-4bf6-81d3-e4ae73fb11fd",
                "id": "bar",
                "gtv": 27.0,
            },
            {
                "date": datetime.date(2019, 12, 20),
                "country_code": "UK",
                "concept_id": "123e4567-e89b-12d3-a456-426655440000",
                "id": "bar",
                "gtv": 27.0,
            },
]

orders_reference_mock = spark.createDataFrame(data = mock_orders)

check = Check(spark, CheckLevel.Warning, "Review Check")

checkResult = (VerificationSuite(spark)
    .onData(orders_reference_mock)
    .addCheck(
        check
        .isUnique("gtv")
        .isUnique("id")
    )
    .run())

checkResult_df = VerificationResult.checkResultsAsDataFrame(spark, checkResult)

checkResult_df.collect()

The results is:
[Row(check='Review Check', check_level='Warning', check_status='Warning', constraint='UniquenessConstraint(Uniqueness(List(gtv),None))', constraint_status='Failure', constraint_message='Value: 0.0 does not meet the constraint requirement!'),
 Row(check='Review Check', check_level='Warning', check_status='Warning', constraint='UniquenessConstraint(Uniqueness(List(id),None))', constraint_status='Failure', constraint_message='Value: 0.0 does not meet the constraint requirement!')]

The constraint_message is not clear and doesn't give any information. It happens in both cases if it is string or integer.
Is it possible to have a more clear message please? I am putting this as a feature instead of a bug

Yeah the constraint_message for historical reason actually means the ratio. It cams from Deequ and suffers from this bug https://github.com/awslabs/deequ/issues/245.

Is it possible to have a more clear message please? I am putting this as a feature instead of a bug

One way is the accept a hook for users to customized the  error message template. In that case it's indeed a feature request


fix: copy over keys::Var::from_vcf_allele from annonars…

… to avoid noodles version conflicts in the future

Also see #462


Ctrl + Tab is managed as Tab when Tabster App is in a Native Host

When using Ctrl + Tab inside of an Element that is part of the Tabster Context and the app is in a Native Host, Ctrl + Tab is executed as Tab.
Expected Result.
Ctrl + Tab should not be handled by Tabster.

#180

released under 2.1.2 https://www.npmjs.com/package/tabster/v/2.1.2


Generalized support for di/triatomics

Currently, MAI has a robust workflow for monatomic species added to OMSs. Add support for diatomic and triatomic species in a general, flexible manner when using vector-sum method.

Done with commit 106!


SWIFT Storage | Index "0" region "DE" | Error: TimeoutError

Hi there, I have a problem while executing uploadFiles.
In the connection phase the storage is connecting correctly to my OVH storage, I also can fetch all the objects from my containers. The problem occur when I try to upload some files, it will throw the error in the title plus this 'SWIFT Storage | Object Storages are not available'. I've tried with the path and the buffer but the result is the same.
I also share some code here:
const storage = storageClient({     authUrl: ${process.env.OS_AUTH_URL!}/v3`,
username: process.env.OS_USERNAME!,
password: process.env.OS_PASSWORD!,
region: process.env.OS_REGION_NAME,
});
storage.connection((err: any, connection: any) => {
if (err) {
logError(err);
return;
}
console.log('Connected to Openstack');
});
async function uploadFile2({
containerName,
fileName,
filePath,
oldFileName,
filePrefix
}: {
containerName: string,
fileName: string,
filePath: any,
oldFileName?: string | null,
filePrefix?: string | null
}) {
return new Promise(async (resolve, reject) => {
await storage.listFiles(containerName, (err: any, res: any) => {
if (err) {
logError(err);
return reject(err);
}
console.log(res);
});
    const buffer = Buffer.from(fs.readFileSync(path.join(filePath)));

    const res = await storage.uploadFile(containerName, fileName, buffer, (err: any, res: any) => {
        if (err) {
            logError(err);
            return reject(err);
        }
        resolve(res);
    });
    console.log(res);
});

}
`

Hello,
Your file seems is quite large, and it requires a lot of time to upload, and timeouts.
The default timeout value for uploading is 5000 ms (5s), you can increase it by calling the following function:
storage.setTimeout(60000);

Write this expression one time just after defining the storage, such as:
const storage = storageClient({ authUrl: ${process.env.OS_AUTH_URL!}/v3`,
username: process.env.OS_USERNAME!,
password: process.env.OS_PASSWORD!,
region: process.env.OS_REGION_NAME,
});
storage.setTimeout(60000);

Let me know if it is solved on your side.

That was indeed the problem! Thank you very much!


Avoid some races and nil panics for new block/encoder/iterator usage

cc @xichen2020 @cw9 @kobolog @prateek

Coverage decreased (-0.1%) to 77.225% when pulling 2b526ae779324e34565aa12bfb06001db137a073 on remove-race-conditions into b8b58e4f8721e91e10a32c95a2820417c31506cc on master.

Coverage decreased (-0.04%) to 77.319% when pulling 875eac05ecf9bd667d857e5a96a30ecf25450dd7 on remove-race-conditions into b8b58e4f8721e91e10a32c95a2820417c31506cc on master.


use ActionChains to clear an input instead of .clear()

Sometimes Selenium's .clear() method doesn't work to delete the text in an input element.
In the element.py .set() method (https://github.com/yashaka/selene/blob/master/selene/elements.py#L353), perhaps we should be using ActionChains to clear inputs before we type into them, as shown in https://github.com/SeleniumHQ/selenium/issues/6741

@dskard thank you, but it’s a very specific case! So I think for such situations user is able to use direct selenium calls

I would agree that the original post was very specific, but the solution seems to be the more general solution that people should be aiming to implement. From that conversation, my understanding is that the .clear() method will only work for a subset of input fields a developer may encounter. The ActionChains solution more closely models human behavior, which is what allows it to work on input fields where the .clear() method is currently failing.
If we stick with a .set() method that relies on the .clear() method under the hood, we force developers using Selene to write their own ActionChains code to clear the input and then use a .send_keys() call to populate the input. Doing this for one input is probably ok. Doing this for a form with multiple inputs would get verbose. My guess is people would prefer the concise .set() method that reliably clears the input field before typing into it.
Does that match with your understanding of the conversation or are there other details I am missing?


Rename 'peace_symbol' to 'peace'

peace_symbol was incorrect and did not produce the emoji when used in
a message.
Issue reported here.

We'll copy the current version of that data source. That's a quick fix I'll be happy with. :-)

Open PR fot this https://github.com/zulip/zulip-mobile/pull/2869 :)

@gnprice Sorry for a late reply! I was from laptop due to my mid semester examination. The file that you should be looking at is static/generated/emoji/name_to_codepoint.json. This file gets generated after provisioning. The idea of checking in this file seems wrong because if mobile app connects to some older server version(1.6 for example) this problem will still persist. Their webapp would still be serving the older names while mobile app will be having new ones.
name_to_codepoint.json is a json file so if it can be fetched from the server and persisted to disk when the user adds a new server it will solve the problem.

Thanks for the clarification @HarshitOnGitHub ! So this seems to be a slightly bigger issue than it initially seemed, because the mobile app currently uses a fixed set of emojis that comes with the app.
Leaving this PR open since it still applies as a quick fix for the original issue, but we need a better fix for a long term solution.

@agzuniverse You can close this PR. We will be going with #2869, which also fixes more issues like this :)


Disable default-features on serialport

serialport enables the libudev feature by default to support the enumerate module. Since this module isn't used by mcumgr-client, it adds an unecessary dependency on libudev.
This PR removes the dependency to improve portability.

I checked it, and works still the same on Linux and Mac where we use it, and probably also no problem on Windows.


"Incompatible JVM" message after 23.0.3 install

Description
Getting reports from our users that after they install version 23.0.3 (Community Edition) and launch it, then get a dialog titled "Incompatible JVM". Text in the dialog states "Version 11.0.12 of the JVM is not suitable for this product. Version: 17 or greater is required.
DBeaver is getting installed via the Company Portal or Software Center on Windows 11/Windows 10 devices. The application is managed by a 3rd party vendor. The installer being used is the x86_64-setup.exe. We've had DBeaver in our environment for at least a couple years and I'm unaware of a similar issue being noted previously.
I did see a similar issue noted here for version 22.3: https://github.com/dbeaver/dbeaver/issues/18991.
So far, the fix that has worked for us is to have users reinstall the application. They're then able to launch it without getting the dialog noted above.
DBeaver Version
Community Edition 23.0.3
Operating System
Windows 10 and 11
Database and driver
DB2 (db2jcc4-4.23.42)
Hive (1.9-2.6.5)
Steps to reproduce
Install DBeaver from Software Center (WIndows 10) or Company Portal (Windows 11). A previous version of the application (generally 22.2) existed on all devices where users have reported having the issue.
Launch DBeaver.
"Incompatible JVM" dialog appears.
Additional context
No response

In DBeaver root directory you will find a dbeaver.ini file. Add a -vm parameter with a correct path to the bin directory of your recent JDK with java version 17 or higher just before the -vmargs parameter as shown here:

DBeaver comes with JDK 11.0.18 from the Microsoft Store so you may ask your 3rd party vendor to pack the very same java in their repacks.


I also have this problem. How can I solve it?

1.AS:
https://github.com/OpenStickFoundation/GP2040-CE/issues/94#issuecomment-1252650080
My switch is a version 14.2 system that has been modified by the atmospheric soft magic.Is there a solution?
2.In addition, my Pico is installed on Pico Fighting Board v1.1. The original firmware can only use GP2040 PicoFightingBoard_ V0.4.3. uf2, GP2040 RaspberryPiPico_ The key position of v0.4.3. uf2 is abnormal.The same situation occurs in the two firmware.I wonder if you can check and correct it?

HI @BDJoe360 ,
Are you able to turn on Pro Wired Controller mode from the settings still?
Hacked or modified Switches are touch to troubleshoot.
What is the behaviour when you connect it in switch mode and then press the A button multiple times?

HI @BDJoe360 ,
Are you able to turn on Pro Wired Controller mode from the settings still?
Yes,I can enable Pro Wired Controller mode from the settings.In addition, the original Pro Controller and 8-bitdo GBros can be used normally. (whether wired or wireless)

Hacked or modified Switches are touch to troubleshoot.
I don't quite understand. What do you mean?

What is the behaviour when you connect it in switch mode and then press the A button multiple times?
No reaction, completely unrecognizable.But when plugged into a PC, it will be recognized as POKKEN CONTROLLER (Vendor: 0f0d Product: 0092)

in addition,Can you increase support for Xbox 360 game console?

Hi @BDJoe360 ,
Support for modded or hacked Nintendo Switches is going to be considered out of scope.  There are no issues with non-modified or hacked Switches.  The modding or hacking process changes internal files which may result in GP2040-CE not working as intended.
At this time there is no support for xBox / PS4 / PS5.  If we are able to ever get a legitimate way of offering support for those devices we will scope out its implementation.


Android: subscription upgrade not working since 7.0.0 with various issues (see included list)

Version of react-native-iap
all versions tested from 6.3.0 to 7.0.5
Version of react-native
0.64.1
Platforms you faced the error (IOS or Android or both?)
Android
Expected behavior
Upgrade on Android works as per documentation.
requestSubscription(
          productId, // new sku
          false,
          oldSku,
          oldPurchaseToken,
          ProrationModesAndroid.IMMEDIATE_WITH_TIME_PRORATION, // for upgrade
        )

Actual behavior

Upgrade broken since release 7.0.0 with the migration to billing client 4.0.0
Different, reproducable issues with each version (see below).

How we tested:

Tested with exact same code and same products.
Only changed plugin version, deployed to a device and tested regular purchase and upgrade (multiple times)
(We use the useIAP hook from the plugin, if that's important).

Reproducable behaviours on upgrade with these plugin versions:
6.3.0 – purchase/upgrade/downgrade working fine  ✅
7.0.0–  getting no products from getSubscriptions() (no purchase possible)
7.0.1 – nothing happens after requestSubscription() (no store dialog)
7.0.2 – a regular purchase is started instead of an upgrade although oldSkuAndroid and  purchaseTokenAndroid are passed to requestSubscription() --> if the user buys he will have two active subscriptions in the store instead of changing the original one.
7.0.3 – same as with 7.0.2
7.0.4 – requestSubscription() works on regular purchase but on upgrade leads to a IAPErrorCode.E_SERVICE_ERROR "The service is unreachable. This may be your internet connection, or the Play Store may be down."
(--> although there is no actual connection issue, nor is the Store down)
7.0.5 – same as with 7.0.4
Tested environment
Real Device
Huawaii Mate 20
Android 9.10
Steps to reproduce the behavior
See above code example, which we use for upgrading subscription.
We fetch the purchase history to get the latest sku and token. This works fine in all the above versions.
Otherwise we just implemented purchase like shown here:
https://github.com/hyochan/dooboolab.com/blob/master/src/components/pages/Sponsor.tsx
Since it's working fine on 6.3.0 with the exact same code on our side, there might be undocumented adjustments that are needed to make an upgrade work (?) or the plugin code is not working as expected after the changes introduced since 7.0.0

Hello @EvelinJK , thank you for the detailed report. I looked at the code and E_SERVICE_ERROR is returned in 2 situations:

You might be running the amazon variant on a Google Play device
The native billing client is returning BillingResponseCode.FEATURE_NOT_SUPPORTED:
https://developer.android.com/reference/com/android/billingclient/api/BillingClient.BillingResponseCode#FEATURE_NOT_SUPPORTED. In this case it could have multiple causes that I can foresee:
a) Google Play Services is not up to date on your device
b) You are not signed into the device with a google account
c) Your device/Android OS is no longer supported by the new native library
d) You are attempting to sell a subscription in an area that does not support it. We've seen people from India for example report that some subscriptions are no longer supported in their region: https://github.com/dooboolab/react-native-iap/issues/1426 https://github.com/dooboolab/react-native-iap/issues/1344

Some of them are farfetched but still worth investigating. Please let us know if any of the apply to your case.
Andres

@andresesfm @EvelinJK
I am also facing an exactly similar issue. Tested on various versions of the library and different proration modes.

version 7.0.2 and 7.0.3:
while doing update oldSkuAndroid and purchaseTokenAndroid are passed to requestSubscription() --> google pop up comes up and after buying it, the user will have two active subscriptions in the store instead of changing the original one.
version 7.0.4 and 7.0.5:
while upgrading no matter which proration mode is used google pop-up always throws the same error.
{"message": "The service is unreachable. This may be your internet connection, or the Play Store may be down.","code":"E_SERVICE_ERROR", "debugMessage":"","responseCode":2}

a. Google Play services are up to date.
b. Signed in to the device google account and play store too.
c. Android version is 10. (not an outdated one).
d. Also, not trying to upgrade the subscription in India as we are aware that Google India has restrictions regarding auto-renewable subscriptions.
So we are using a different country billing account where auto-renewable subscriptions are active and subscriptions are being auto-renewed.
Only, upgrade scenario is not working.

Hi @andresesfm
Thanks for the quick feedback.
I'm fairly certain that 1. and 2. a) to d) are not causing the issue:

We definitely don't run the amazon variant.
Device is fairly new, supported by the library and everything is up to date and it's not a general purchase issue, but only on update.
We test with our setup that is already in use in production since we're only "migrating" our App from Cordova to RN. So our store setup, products, backend validation, sandbox environment etc. are all fine and working, and we purchase from the location where the products are sold/supported.

As mentioned, everything worked fine with version 6.3.0 of the plugin.
I think it's unlikely that the issues are caused on our side since I tested all versions after each other, using the exact same code, products and device.
UNLESS there are changes needed on how to handle upgrades with the plugin with the subsequent versions after 6.3.0, that I can not find any documentation for (?)
For e)
We use the useIAP hook on startup. According to the instructions initConnection() is not necessary anymore with the hook:
https://medium.com/dooboolab/announcing-react-native-iap-hooks-96c7ffd3f19a

With useIAP hook, these are handled automatically. You do not have to call initConnection imperatively and calling useIAP() is enough for that

We reverted to 6.3.0 for now, but with that we're missing some bug fixes obviously.
But, yeah. Exactly the same issues with the versions that @aleemilu75 reported above.

Looks like there was some legacy code that was causing some confusion. Here is the fix for the issue you are reporting @EvelinJK  @aleemilu75 : https://github.com/dooboolab/react-native-iap/pull/1438 . Would you be so kind to test and confirm it fixes it.

Thanks for the quick adjustment @andresesfm
I removed the oldPurchaseSku as shown in your changes and tested your fix.
The update subscription dialog from the store is now shown correctly – showing info of the old and the new product – after
requestSubscription(           productId, // new sku           false,           oldPurchaseToken,           ProrationModesAndroid.IMMEDIATE_WITH_TIME_PRORATION, // for upgrade         )
BUT:
After the purchase dialog from Play Store is finished, I'm not getting the receipt with this branch.
currentPurchase is not updating from the useIAP hook, so I cannot validate and finish the receipt.
Not for an update and also not for a regular subscription purchase.
Maybe @aleemilu75 can test the branch too? Not sure what causes this.
In 7.0.5 the currentPurchase still updates correctly after a regular purchase.
But I did have to do some magic to get our project to do a debug build with the branch from your fork since it's a non-npm package. So I'm not 100% sure if it might be related to that... (or if there's an easier way to test this? :D)

Thank you for trying @EvelinJK an easy way to try is to change "react-native-iap":"7.0.5" to "react-native-iap":"git://github.com/andresesfm/react-native-iap.git#4440c644ca34bb57b79d8d3054126be6ddc33a08" and then running yarn or npm install

Closes via #1438

Thanks @andresesfm
I just tested with the new release 7.1.0 and it seems to work fine now.
The receipt issue was probably due to the wonky installation :)
Thanks for the quick fix again 👍

Yes, huge thanks to @andresesfm for continuing maintenance and being a life savior for many others.
@andresesfm Please submit $100 in https://opencollective.com/react-native-iap for a small gift 🙏

Especial thanks to @EvelinJK and @aleemilu75  for a detailed description of the issue and following up. Thank you @hyochan, I'm happy to help the community

@andresesfm @EvelinJK I tested it too. Seems to be working fine without any glitches.
Though I have just 1 question, is there any particular reason why an "oldSKU" is not required while upgrading the subscriptions?

The reason is that it got removed by the native library version 4.0.0. to which we migrated recently

hey using react-native-iap v7.6.5 does these issue still persist in latest version of library or should i upgrade to latest?


Failure on git push to Azure

After I added the local git deployment URL and went to do my initial push, I received the following output.
2018-12-21T18:06:08.308818062Z   _____
2018-12-21T18:06:08.308850164Z   /  _  \ __________ _________   ____
2018-12-21T18:06:08.308867764Z  /  /\  ___   /  |  _  __ _/ __ \
2018-12-21T18:06:08.308871665Z /    |    /    /|  |  /|  | /\  /
2018-12-21T18:06:08.308875065Z _|__  /_____ _/ ||    ___  >
2018-12-21T18:06:08.308878665Z         /      /                  /
2018-12-21T18:06:08.308882265Z A P P   S E R V I C E   O N   L I N U X
2018-12-21T18:06:08.308885765Z
2018-12-21T18:06:08.308888965Z Documentation: http://aka.ms/webapp-linux
2018-12-21T18:06:08.308892165Z Ruby quickstart: https://aka.ms/ruby-qs
2018-12-21T18:06:08.308895466Z
2018-12-21T18:06:08.457022751Z Starting OpenBSD Secure Shell server: sshd.
2018-12-21T18:06:08.950064171Z Bundle install with no 'without' options
2018-12-21T18:06:08.950226578Z Defaulting gem installation directory to /tmp/bundle
2018-12-21T18:06:08.966187855Z Defaulting site config directory to /home/site/config
2018-12-21T18:06:08.966319761Z Secret key base present
2018-12-21T18:06:08.966585172Z RAILS_ENV not set, default to production
2018-12-21T18:06:08.966678476Z Removing any leftover pids if present
2018-12-21T18:06:08.988073384Z Running bundle check
2018-12-21T18:06:09.500924245Z rbenv: version 2.4.1' is not installed (set by /home/site/wwwroot/.ruby-version) 2018-12-21T18:06:10.047876053Z rbenv: version 2.4.1' is not installed (set by /home/site/wwwroot/.ruby-version)
2018-12-21T18:06:10.055212864Z missing dependencies, try redeploying
I did have a .ruby-version file present in my project, but removed it and am still receiving the following output. Please advise

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

ID: 7bb30245-963c-d1ec-76a9-66119c79fb1e
Version Independent ID: d3ee025c-ad6d-d8bd-84a2-9409f1a682f7
Content: Build a Ruby app with Postgres on Linux - Azure App Service
Content Source: articles/app-service/containers/tutorial-ruby-postgres-app.md
Service: app-service-web
GitHub Login: @cephalin
Microsoft Alias: cephalin

Never mind, I fixed this by putting a new .ruby-version file in the repo with the supported Ruby version.
Thanks!

@joeoftheforsythe we are glad you were able to resolve your issue!

@joeoftheforsythe what is the supported ruby version? because I am having the same issue

@daltonrenaldo As shown in the doc, run az webapp list-runtimes --linux in the Cloud Shell to see.

@cephalin I did... and it still wondering work for ruby-2.4 which is listed. I finally removed the .ruby-version file, and I got a new error saying that my ruby version was 2.4.5, but gemfile specified something else. So I updated gemfile, re-added the .ruby-version with 2.4.5 and that seems to work...
however, the containers have older version of bundler install, which still prevents them from running bundle install... :(

@daltonrenaldo Did you try to create a 2.4 web app? The tutorial was written for 2.3 so trying to run it on a different ruby image could get errors.

I did create a 2.4 web app, cause az webapp list-runtimes --linux returned
"RUBY|2.3",
  "RUBY|2.4",
...

and since I was already using 2.4 locally and it's the latest, seem like it was the way to go . Why is it returning things that it doesn't actually support is beyond me. :(

@daltonrenaldo I'm not doubting that Azure doesn't support 2.4 as it indicates, but that the tutorial (or rather, the sample) was written for 2.3 and was tested to work with 2.3, not 2.4.


Accept out argument specified as a tuple, and support it in fusion

Currently CuPy doesn't allows a tuple for 'out' argument. Furthermore fusion has no out support. This PR implements those.
For some popular tasks, including bounding box calculation and color conversion, it is very beneficial to pass multiple output views to a fusion function. The following example illustrates the use case. It converts bounding box format with a single CUDA call.
import cupy

@cupy.fuse
def xywh_to_ltrb(x, y, w, h):
    l = x - 0.5 * w
    t = y - 0.5 * h
    r = x + 0.5 * w
    b = y + 0.5 * h
    return l, t, r, b

xywh = cupy.asarray([[10, 20, 2, 4], [30, 40, 6, 8]], dtype=cupy.float32)
ltrb = cupy.empty_like(xywh)

xywh_to_ltrb(xywh[:, 0], xywh[:, 1], xywh[:, 2], xywh[:, 3],
             out=(ltrb[:, 0], ltrb[:, 1], ltrb[:, 2], ltrb[:, 3]))
print(ltrb)  # [[9, 18, 11, 12], [27, 36, 33, 44]]

This PR also provides workaround for https://github.com/chainer/chainer/issues/5799

Test failures was due to syntax error on old versions of Python. I fixed them.
As I discussed in https://github.com/chainer/chainer/issues/5799 and #1248, this PR is not required for performance, if #1248 is solved using a sophisticated overlapping analysis. To fix #1248 things like modification of const-ness are also required, but those are unrelated to the current PR.
Apart from that, PR is not only for performance. I personally likes the idea that fused functions behaves like ufuncs. But it's a design choice and I'm not a person to decide it. If core developer don't think so, I'm fine to withdraw the PR.

Thanks for the PR!
I'm sorry, but we don't want to support this feature, because we have a concept that fused functions should behave like original functions without the decorator.
We'll fix #1248 from another approach.

@asi1024 Many thanks for your kind response!


Mod for "Mobile PokeCenter"

Mod that allows the player to completely heal their party on the go.

Potential implementations:

Player Pokemon are always healed completely after battle
They're given an item that does it for them

I like the latter a little more (seems more fun), but you could make an argument for the former.

Going with the following implementation:
Clicking the mod instantly heals your pokemon, displays a message box saying so, then the mod disables.

:+1:


Elasticsearch 'include' is deprecated

I've attempted to integrated 411 with ES6.3, but am when I try to test a sample alert, i get no results, and see my Elasticsearch Container return this:
elasticsearch    | [2018-08-05T22:44:24,606][WARN ][o.e.d.c.ParseField       ] Deprecated field [include] used, expected [includes] instead
I replaced include with includes where it appeared in phplib/Filter/Regex.php and phplib/Filter/Expression.php, which seems to let ES accept the request, but it still returns no results.
Incidentally, in Kibana I saw that 411 had created an index called 411_alerts_1, so 411 is communicating with ES somewhat.
Also, when looking at config.php, I couldn't figure out why each ES index has a host key and and index_hosts key, so I deleted the later, which caused 411 to not recognize that ES was running; that could be a different issue though.
I made the most minor of changes to your Dockerfile, you can see my setup here:
https://github.com/lucasjkr/docker-elk/tree/master/fouroneone

Sorry, the ES 6.0 integration is still a WIP (we don't have a ES6.0 cluster internally): https://github.com/etsy/411/issues/179. Looking at this error, it seems the problem may be in: https://github.com/kiwiz/esquery/tree/es-5.x. The ES5.0 PHP library seemed to work well enough when I tested it, but I see there's a separate version for 6.0: https://github.com/elastic/elasticsearch-php#version-matrix.

Hi,
I actually have 411 speaking to Elasticsearch 6.3.2 now; I don't think I needed to make any real changes to the config files, I just had a typo in my index;
The search feature works (can query both of the ES indexes I have), it creates its own alerts index, and records alerts in that new index;
I couldn't get your Dockerfile to work, so I made a new setup with a separate container running cron.php and worker.php every 60 seconds; it uses 600MB extra disk space that way, but is working reliably.
And I switched the DB over to MySQL.
My remaining issues are in the Health dashboard, it always says that ping is failing, and that graphite is failing (not using Graphite); I'm haven't even looked into those two yet, but everything went so easily I haven't even looked in the DB yet (which is where I'm assuming at least some data pertaining to those two sources can be found).
I'm not sure if you'll want my new Dockerfiles, since I have three containers now, and dumped SQLite, but I'd be happy to get everything in sync on here if you do.


Update Dockerfile.windows usage

The build must be run with process (not hyperv) isolation.
Signed-off-by: Andrew Schwartzmeyer<EMAIL_ADDRESS>/cc @jhowardmsft

Unfortunately not. Windows server containers are not supported on client. Hence I'm closing this. I just need to find the bug. Will follow up internally.

@jhowardmsft

Windows server containers are not supported on client.

What does this have to do with the process isolation bug?
This is a current problem with the Windows build instructions and wasted multiple hours of my time to find, these docs need to be updated until the bug is fixed.

Then the dockerfile.Windows file should be updated so say that this only works on Windows server, at currently does not work on Windows client. It is wrong to say use --isolation=process here.

https://github.com/docker/docker/issues/28263
https://github.com/docker/docker/pull/28261


feat(Dropdown): Add onOpen and onClose props

Closes carbon-design-system/carbon-components-react#655
Changelog
New

To the Dropdown component, added two new properties onOpen which is called with no arguments when the dropdown is opened, and onClose which is called with no arguments when the dropdown is closed.
Added these to Dropdown-story.js for demonstration purposes too.
Tests.

@asudoh Thank you! How long is it likely to be before this can be merged and a new version of carbon-components-react released with these changes?


Unable to install via backend

Winter CMS Build
1.1
PHP Version
7.4
Database engine
MySQL/MariaDB
Plugins installed
No response
Issue description
Trying to install a new theme (any theme) while testing Winter, I keep getting this error message:
Update failed
File from server is corrupt.

The "popup" is displayed, and things look like they're downloading. But very briefly after that, the error message is displayed.
It doesn't matter which theme I try to download.
I see no errors in the php.log file (I have error_reporting set to E_ALL, and Winter is in debug mode).
Steps to replicate

Enter backend
Go to Updates & Plugins
Choose themes
Pick any theme

Workaround
No response

This is not something we can control as of yet. The Backend of Winter still uses October's marketplace for downloading plugins and themes, and can break at any moment on the whims of the October maintainers.
Once our new Marketplace is online, we'll switch over these functions to use our Marketplace instead.


hakari: re-compilation problem about build-dependencies

By default, hakari will produce [build-dependencies] (I haven't learned why yet), but I found this will probably make a dependency compiled twice (under --release). This is because build-dependencies have different build profile configs

To compile quickly, all profiles, by default, do not optimize build dependencies

https://doc.rust-lang.org/cargo/reference/profiles.html#build-dependencies
@sunshowers Are you aware of this issue? I'm wondering what's the best practice. Is it better to remove build-dependencies in workspace-hack, or set profile.release.build-override 🤔

Thanks for reporting this! That's definitely an annoying issue and I wasn't aware of it.
Hakari produces build dependencies because what it cares about is dependencies built on the host platform.
I don't plan to work on this unless my employer runs into it. However if you or someone else would like to think through and put together a plan, it would be really appreciated.


Users can see Create Button without permission

I can see Create button in resource without create permission

I confirm, there is a problem

This should already be fixed

I just want to add that a Laravel Policy is required to hide the button, not the Orchid permissions.
See https://laravel.com/docs/8.x/authorization#registering-policies and auto discovery.


[BUG] Passwd wrong password entry not being reset

Describe the bug
Currently when Passwd is enabled the wrong password entry counter is not being reset once the correct password is entered.
To Reproduce
Steps to reproduce the behavior:

Set Passwd
Power off device
Enter wrong PIN 2 times.
Power off device.
Enter correct pin.
Power off device.
Enter wrong PIN once.
Device performs factory reset.

Expected behavior
In the above scenario device should not be factory reset. Instead after each correct pin code, the wrong pin counter should be reset.
Details:

Firmware version: 21.4

See https://github.com/kamilsss655/uv-k5-firmware-custom/wiki/90-‐-00-‐-Early-Release-V.21.x-‐-Features


Merak Network: node registration didn't fill in the data-path-ip

The node registration in the Merak Network didn't fill in the data-path-ip when sending the request to Alcor.
The swagger-ui shows the data-path-ip is null in the node list.

It was the image used to test are old. Just upload new image to .77 to test.
This code have been tested last week, should be fine👍

The code to add in this functionality was PR #68 .


[AST] Metatypes have reference semantics

Metatypes aren't copied during assignment therefore they have reference semantics. This is observable via static variables.
I'd really like to make this change because it makes a private research branch easier to maintain. Thank you for considering this.

@swift-ci please test

@jckarter  recently explained to me that metatypes should always be considered trivial types by the type system and by extension within SIL. They only become references through the magic of bridging.
@tbkka ran into a similar problem on a branch in EscapeAnalysis where I had tried to assert that reference semantics are preserved across checked casts. For that issue, I think we should add a special case to unconditional_checked_cast to check for casting from a non-pointer to a pointer:
https://github.com/apple/swift/blame/856afbb32a975c1d1b849368afacdf09c723c6d4/lib/SILOptimizer/Analysis/EscapeAnalysis.cpp#L144
-  case ValueKind::UnconditionalCheckedCastInst:
       return cast<SingleValueInstruction>(value)->getOperand(0);
+  case ValueKind::UnconditionalCheckedCastInst: {
+    auto src = cast<UncheckedAddrCastInst>(value)->getOperand()
+    if (!isPointer(src))
+      return SILValue();
+
+    return src;

I think the test case was:
// In optimized build: Assertion failed:
// (EA->isPointer(ptrBase) && "The base for derived pointer must also
// be a pointer type") function getNode, file
// lib/SILOptimizer/Analysis/EscapeAnalysis.cpp, line 428.  In pass:
// EarlyRedundantLoadElimination
//
//("StructInt.Type -> AnyObject -> StructInt.Type") {
func foo() {
  struct StructInt { public var value: Int = 7 }
  let a = StructInt.self
  let c = a as! AnyObject
  let d = c as? StructInt.Type
  assert(d != nil)
}

Yeah, I see static variables as more akin to globals than as members of an object; they behave for all intents and purposes the same as globals do as far as initialization, dynamic exclusivity semantics, and so on. The metatype value itself is essentially an immutable singleton, not really "value" nor "reference"-y.

Build failed
Swift Test Linux Platform
Git Sha - 250c515c54d32328def30c3f5141c92122aad496

If I understand correctly, metatypes are bitwise copyable immutable singletons that happen to be represented as pointers.
I'm not sure whether "reference semantics" in the compiler implies that something uses reference counting?

Perhaps I should be clear about how I'm defining "reference semantics". Imagine a Swift 101 course with the following test question: "what can we say about the type of foo if the output is 456?"
foo.x = 123
let bar = foo
foo.x = 456
print(bar.x)

The above is what I'm thinking of when I say that metatypes have reference semantics.
More so, this matters to me because of research I am doing and research that I'd like to do. Without going into the details too much (which would be distracting), I have a branch where swift/AST/ReferenceStorage.def is extended to support read/write locking and these reference storage types work on both class instances and metatypes. The latter is used to control access to static variables within the type (which my branch enforces through type checking).
Even if I weren't experimenting in that area, I could just as easily be experimenting with writing a heap garbage collector or simply code to track when plugins are unloadable. All of these goals require tracking references to metatypes and therefore toward these ends, I'd like to convince you all that metatypes have reference semantics.
The fact that Swift's AST doesn't consider metatypes to have reference semantics has always bothered me during this research and I opened this PR to find out if people had deeply held technical or philosophical objections to metatypes having reference semantics within the AST, or whether the current behavior was just about convenience or indifference.
If we need to audit all of the uses of TypeBase::hasReferenceSemantics(), then I'm happy to do so.

Individual feedback:
@atrick – Ya, I'm NOT proposing that we change how metatypes are lowered by SIL. For all supported platforms and configurations right now, metatypes are "trivial".
@tbkka – Ya, like any project, there is a bunch of terminology, assumptions, and conflations in Swift that need addressing during feature development. In my case, I find that "reference semantics", "reference types", and "reference counting" could all be better defined. In particular, my atomic metatypes are — broadly defined — reference counted, albeit for read/write lock tracking, not deallocation tracking.

The latter is used to control access to static variables within the type (which my branch enforces through type checking).

Ah.  Yes.  You're right.  Static variables on a type are mutable properties of the metatype.  And so metatypes are mutable (if the type has mutable static properties) and do behave like reference types.

As implemented today, I think that it's a bit of a stretch to think of static variables as members of anything, since they behave in all respects like global variables.

@jckarter – Can you elaborate on what you mean by "it's a bit of a stretch to think of static variables as members of anything"? How are people supposed to access a type's static variables WITHOUT member lookup?

To me, that relationship seems more like namespacing than membership. Semantically, once you have access to the static variable, it behaves just like a global variable. Unlike class members, which are all initialized together and exist or don't exist as a unit, each static member is an individual global variable that initializes independently.

Unlike class members, which are all initialized together and exist or don't exist as a unit, each static member is an individual global variable that initializes independently.

Does this have any affect that's visible from Swift?  Or is it just an implementation detail?
Put slightly differently, I can imagine circumstances in which the compiler would be justified in performing the same optimization for certain class members.

Please update the base branch to main by Oct 5th otherwise the pull request will be closed automatically.

How to change the base branch: (Link)
More detail about the branch update: (Link)


List of people, businesses and organisations supporting current events

Eg people and businesses that support peaceful protests

Can you do the same for every Budget ( budget books and allocations, revenue collection and estimates and collection,county reports and any other relevant financial stuffs, for easier understanding. Ndio tujue where we are wasting money)
To be able to track in appropriate allocations and expenditures

Thanks @EdJericho . That's a list of every budget, allocations, revenue collection, estimates, etc? That's very ambitious and I love it! I'll create a new issue for it. We'd need a lot of external contribution for us to know all the government financing though. Unless there's a system already in place to track government budgets


feature: Add Crisp Chat applet to staging/production

Get the new Crips Chat app into: circles.threefold.me and staging-circles.threefold.me
We won't have a lot of people chatting to us on staging so does not matter to implement it there as well.
html snippet that needs to go into the head:

Added to staging Link, will be migrated to production next sunday


Broken link for library category on the library page

https://www.preview.boost.org/libraries/atomic/boost-1-84-0/
At the top of this page, it says "Category: Concurrent". The "Concurrent" link is broken, clicking it shows 500 error. Note that the link contains a number of spaces.

I fixed this yesterday! :sparkles: :cake: :sparkles:

Note that it is only deployed to staging at this time.


Add prioritization polls

User Story:
As a user, I want to have prioritization polls so that the results reflect the general opinion best.

-auswählen ob Prio oder nicht
-export anpassen Prio darzustellen
-bugfix


Fix: set machine id when initially created

:tada: This PR is included in version 0.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Safari / iphone issues with ngFlow

Hello,
I'm expiriencing strange behaviour that only happens on Safari browser (windows, ios).
I've created an sample js fiddle that shows the behaviour: http://jsfiddle.net/7o49xw6c/
It seems that the configuration that has been set  in config dissapears and the following error is thrown:
'undefined' is not an object (evaluating 'this.events.hasOwnProperty')

Is that an bug within ngflow or I am missing something obvious? The fiddle does work flawlessly on Chrome browser.

Hi, Did you found any workaround to solve this issue??? I am getting same issue.

See fiddle:
http://jsfiddle.net/7o49xw6c/4/

Not sure what I did wrong, Is this fiddle working? I tried same configuration within my angular app, Does not worked ...

I've changed the scripts, added the flow factory, and the error did not occur for me anymore.


Volume Key issue

Hi,
I am trying to flash this on windows subsystem for android, Windows volume key shortcuts are not working during installation. is there anything which i can do?

Does Windows subsystem have same type of storage like android phone?
Like to disable it i gonna create a file which stores all options to set true or false.
Does /sdcard exist on windows subsystem?

Not 100% sure about the storage thing, but there is file explorer and stuff available there which is similar to phone. I can create and modify files from google files app in WSA.
not sure about the path so can't comment on /sdcard directory.

ok, so i adding file inside the zip module only you need to extract and change file configuration and rezip it. is this ok with you?

Currently i don't have any windows 11 machine to try that out, but yeah it should work. Thanks.

This is fixed v1.9


[Feature Request]Charm, Charms ,CHARMS!!!!!!!!!

can you make a hotkey or a config to add for the charms, because the speed charm + elytra = To a 1000 blocks in 10 seconds, so you can add a option to disable all charms  and active them Will be realy useful.
Or even better, if you can add a config for the charm to use be more powerful with more uses like, a normal charm gonna waste 1 of durabilty per second a empowered charm gonna waste 5 per second but it gonna be more powerful. (It don't gonna work well with most of the charms but nhe.... is just a Idea).
and make a charm to auto feed you or make you eat more fast.

Yeah the charms are kind of always on, they should have some way to turn them off for sure.
 ill look into it.

I said that the speed charm is fast, but you can make more and it will be Fastest damn, those charms are powerful.

Preview of toggle on/off for charms

Added the on off toggle for charms.  Havent looked into eating speed  yet.
planning that for a feature in the future.
https://minecraft.curseforge.com/projects/cyclic/files/2389366
https://minecraft.curseforge.com/projects/cyclic/files/2389358


rename mod.go files

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 99.283%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
14260

Relevant Lines:
14363

💛  - Coveralls

@jbsv happy to merge, but there are some conflicts now


Separate search popup menus for 'text' and 'token'

Removes "sort" and "contains" from token search parameters.
"Priority":

Confirmed that our "Priority Order" search params still work as expected:

Why are we removing sorting for token parameters? This is a valid FHIR search

Why are we removing sorting for token parameters? This is a valid FHIR sort

Yes, it is valid FHIR sort, and the API will continue to support it.
It is a relatively expensive query.  Yesterday, users clicked on it incidentally, just exploring.  I.e., sorting Observation by code when looking at 3 million rows.  That can cause significant server load without anyone realizing it.
The better long term solution is to improve the performance of those queries, but for now the goal is to subtly steer people away from it.


creating domain name, sketch and simple dice throw

Hi Natos, I have created the stub project and created a simple webpage as a starting point. Could you please review it?

@hruy28 I'm getting: bad pattern: hruy/#1-#8domain_model can you please create a new branch with proper naming (something like 1-8domian_model) so I can checkout and review?
You can close this PR and create a new one with the new branch.


Resource loaded using the ClasspathTemplateLoader require *.jade extension before they are copied in

The problem seems to be caused here.
@Override
public Reader getReader(String name) throws IOException {
    if(!name.endsWith(suffix))name = name + suffix;
    return new InputStreamReader(Thread.currentThread().getContextClassLoader().getResourceAsStream(name), getEncoding());
}

It assumes that all files must have the *.jade extension. So files such as *.css and *.js aren't loaded unless they are appended with *.jade

Added Testcase 135.jade and running all issue Tests also with ClasspathTemplateLoader. Fixed in release 1.2.0


Bdkd 445 release bugs

@balram-ramanathan-sirca  Code looks good. Passing to QA

QA Passed. Merging


Field: move pow and invert to the trait def.

These implementations are generic enough to be defined for any field, but they require some additional bounds on Self::Integer to be able to subtract, right shift and determine the size in bits of the underlying type

LGTM


⚠ Bofrost.be has degraded performance

In 330113d, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1805 ms

Resolved: Bofrost.be performance has improved in 4fb37a5 after 6 minutes.


Deleting Redirect is not possible

https://workspace.palk.co/T91XSsb394KlnzlfJzWJ
Hi there! I've encountered an issue where attempting to delete a redirect through the control panel isn't functioning correctly on both Safari and Chrome browsers.

Hey!
Have you got any errors in the console?

[Error] Failed to load resource: the server responded with a status of 404 () (delete, line 0)
/alt-design/alt-redirect/delete

Am 13.11.2023 um 10:44 schrieb Ben Harvey @.***>:
Hey!
Have you got any errors in the console?
—
Reply to this email directly, view it on GitHub https://github.com/alt-design/Alt-Redirect-Addon/issues/1#issuecomment-1807794429, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQUJBAHL664D5VAEIBHCUG3YEHTYDAVCNFSM6AAAAAA7I3MNNWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBXG44TINBSHE.
You are receiving this because you authored the thread.

Give it an update and another go now!

It’s gone now entirely. No error message. :D

Am 13.11.2023 um 10:55 schrieb Ben Harvey @.***>:
Give it an update and another go now!
—
Reply to this email directly, view it on GitHub https://github.com/alt-design/Alt-Redirect-Addon/issues/1#issuecomment-1807818811, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQUJBAASOTDVYELJ3WE64L3YEHU7ZAVCNFSM6AAAAAA7I3MNNWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBXHAYTQOBRGE.
You are receiving this because you authored the thread.

Ahaa amazing 😅 - just pushed another update, give it a go now!

I’m sorry, still nothing.

Am 13.11.2023 um 21:09 schrieb Ben Harvey @.***>:
Ahaa amazing 😅 - just pushed another update, give it a go now!
—
Reply to this email directly, view it on GitHub https://github.com/alt-design/Alt-Redirect-Addon/issues/1#issuecomment-1808983133, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQUJBADWVEBER6T5AEXYJNTYEJ5BNAVCNFSM6AAAAAA7I3MNNWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBYHE4DGMJTGM.
You are receiving this because you authored the thread.

That's weird - have you checked it's not the cache etc? I've just done a clean install here and it seems okay?
Have you got anything in the console error logs (screenshots etc would be awesome if you have them)

Thank you, seems to work now!

Am 14.11.2023 um 15:06 schrieb Ben Harvey @.***>:
That's weird - have you checked it's not the cache etc? I've just done a clean install here and it seems okay?
Have you got anything in the console error logs (screenshots etc would be awesome if you have them)
—
Reply to this email directly, view it on GitHub https://github.com/alt-design/Alt-Redirect-Addon/issues/1#issuecomment-1810271751, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQUJBAH5NM6BYSVG3SXVZHDYEN3F7AVCNFSM6AAAAAA7I3MNNWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJQGI3TCNZVGE.
You are receiving this because you authored the thread.

Ah amazing! Thanks for bearing with! :)


fixed broken links in README

Can one of the admins verify this patch?

This repo is deprecated and will be archived soon. Please see the latest version of Kafka or Confluent Kafka for DC/OS:
https://docs.mesosphere.com/service-docs/kafka/
https://docs.mesosphere.com/service-docs/confluent-kafka/
The former is based on the code in dcos-commons:
https://github.com/mesosphere/dcos-commons/tree/master/frameworks/kafka

Closing stale PR.


[ENH] support multiple queries in rust vectorreader

Description of changes
Summarize the changes made by this PR.

Improvements & Bug fixes

Update test_sanity to excercise n > 1 queries.

New functionality

This makes the hsnw query orchestrator able to respond to multiple queries, as the contract for it expects.

Test plan
How are these changes tested?
Updated test_sanity

[x] Tests pass locally with pytest for python, yarn test for js, cargo test for rust

Documentation Changes
None

#2206
#2205
#2204  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @HammadB and the rest of your teammates on  Graphite