MINOR: add test tag for testDeadToDeadIllegalTransition

Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

@dajac the test failures look unrelated but i've noticed that sometimes the same tests fail altogether

Let me re-trigger the tests.


Update Composer dependencies (2021-07-30-00-07)

Visual regression test passed!
View the visual regression test report


make it easier to setup more diverse exact requests

Hi,
These changes make the requests to exact slightly more flexible to configure.
This is useful to reuse the Request class also connecting to the XML-API of exact.
Some functionality of exact is not available through the Rest-API. I had to build one functionality for matching invoices via XML-API. In Order to reuse the same connector in the gem, I needed these changes and it would be nice to have them within the gem.
thanks for considering,
Daniel

Great addition!


Fix broken worker test

This PR fixes test_worker.py and renames to test_model_runner.py.

@simon-mo thanks for the quick review!


Reference is not removed when user will remove object

I want to merge this change because it changes add a relation to reference. This PR also contain port https://github.com/saleor/saleor/pull/9093/files from 3.0 to 3.1

Impact

[x] New migrations
[ ] New/Updated API fields or mutations
[ ] Deprecated API fields or mutations
[ ] Removed API types, fields, or mutations
[ ] Documentation needs to be updated

Pull Request Checklist

[ ] Privileged queries and mutations are guarded by proper permission checks
[ ] Database queries are optimized and the number of queries is constant
[ ] Database migration files are up to date
[ ] The changes are tested
[ ] GraphQL schema and type definitions are up to date
[ ] Changes are mentioned in the changelog

Task linked: SALEOR-5087 Reference is not removed when user will remove object


docs: fix typo "CustomContext" -> "TrpcContext"

Description of change
Fix typo in docs. As far as I can tell it should be TrpcContext instead of CustomContext in this instance.
Pull-Request Checklist

[ ] Code is up-to-date with the main branch (N/A)
[ ] npm run lint passes with this change (N/A)
[ ] npm run test passes with this changev
[ ] This pull request links relevant issues as Fixes #0000 (N/A)
[ ] There are new or updated unit tests validating the change (N/A)
[ ] Added documentation inside www/docs/main folder. (N/A)
[ ] Included new files inside index.doc.ts. (N/A)
[X] The new commits follow conventions outlined in the conventional commit spec

Hey @tobloef, nice catch, thanks for the PR!


Update favorites

This PR does a few things:

Adds favorites into the user details
Updates the GuestAuth wrapper and subsequent functions to handle the change
Adds a function to the userFunction for updating a users favorites
Updates the favorites page to utilize the new function
Updates the collage tool so that admins without a magic subscription can still access it

Awesome


Cannot uninstall v19.3.0

nvm version 1.1.10
Issue:
Fail to uninstall v19.3.0
How To Reproduce:
nvm uninstall 19.3.0
Error message
Uninstalling node v19.3.0...Error removing node v19.3.0
Manually remove C:\bin\nvm\v19.3.0.
Expected Behavior:
Uninstalling node v19.3.0... done
Desktop:

OS: Windows 11

You're receiving the manual installation notice because there was an error removing the version. 99% of the time, people lack the permissions to remove something from the directory (ex: permissions change on a directory). Every once in a while, npm prevents proper removal. In those cases, manual removal is required to clean up the environment.
Just to illustrate, here's an install/uninstall of that version running as an administrator.

Bottom line, NVM4W resorts to providing that message when something blocks it from doing the uninstallation properly.


feat: use CLI as an npm dependency and replace Execa

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

Visual Studio Marketplace
GitHub release

Your semantic-release bot :package::rocket:


Initial history does not work if on iOS Chrome

Versions
React Router - 4.0.0-alpha.5
iOS - 10.0.1 and 10.1.1
Chrome - 54.0.2840.91
Test Case
No test case, but it is reproducible on the docs at https://react-route.now.sh
Steps to reproduce

on iOS Chrome, navigate to https://react-route.now.sh
Click on any of the example links in the left hand nav (ie URL Parameters)

The page will load the content for the selected example

Use browser back button (again, only seems to be an issue on Chrome on IOS). The page will not change content.

Expected Behavior
It should navigate back to the previous page
Actual Behavior

There is no navigation, the page flickers, but the old content remains.

Other info
It seems like the initial history state for the browser does not get set on first load. In a top level component, in the componentWillMount, if I set:
history.replaceState({}, 'Some page name', location.pathname)
it will work normally.

I believe this is being tracked on the history library here: mjackson/history#383
But I'm mistaken, please open up the appropriate issue over there since that's closer to the source of the problem.

Is there any value in keeping this open until that PR is merged and history has been updated here in react-router?  It's hard to track otherwise.

It's not a bug with Router, so no, we shouldn't keep this issue open.

It's not a bug with Router, so no, we shouldn't keep this issue open.

I just installed react-router and I have this bug. ¯_(ツ)_/¯
I also, as an end user, will only see it fixed when there's a new react-router version.  How do I track if it's in the next version without digging through commits?  I get that the real issue is elsewhere, but this bug is present in projects using react-router until a change is made.  Seems like an issue is the right place to keep track of that change.


jacob-hawkins/additional-form-fields-2

Description
Finished adding additional fields and updated review page.
Relevant issue(s)
#110

Questions

PDF generator needs attention
Radio buttons on Prelim-Operations, Prelim-Additional, and Accessibility reset back to No when navigating back to page, not sure the best way to fix this.

Type of change

[X] New feature (non-breaking change which adds functionality)
[ ] This change requires a documentation update

Checklist:

[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my code
[X] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[X] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[X] I have assigned reviewers to this PR

The other schema that was changed was the Accessibility schema.
New schema:
const languageSupportSchema = {
  asl: boolean,
  spanish: boolean,
  teleinterpreterLanguageService: boolean,
  other: {
      selected: boolean,
      content: string[],
    }
}

languageSupport: languageSupportSchema,
supportedLanguagesWithoutNotice: string[],
accessibilityADA: boolean,


More errors for map file things

ok so unfathomable pain happened because i forgot to fetch upstream before working on this, it was just 2 commits before...

But yeah i tried to keep all of the validation checks at the start of the function, and make them a bit more verbose where needed

ideally the error messages after checking the path should have the name of the specific ui texture instead of "a texture", so that the user is able to more easily identify the problematic ui texture

Done that now :)


Documentation enhancement: Find your libraries location on linux

To find the folder where you should to copy HYPE folder I find easier to just

open the file "~/.processing/preferences.txt"
find the line "sketchbook.path.three=/some/folder"

The sub-folder "/libraries/" in that folder("/some/folder") is where your custom libraries or those downloaded by the processing editors are.
In my case it wasn't the folder " ~/Documents/Processing". It can be anything you specified when you started your processing editor for the first time.
I think this should be added to the documentation because it took me a good hour to figure out what was happening.
This is how it works on my Arch Linux installation at least.

Open any sketch. Hit CTRL+K. The sketchbook path is 1 directory up.

That's a nice command to find them and editing them but it doesn't show the path on my system. It opens a window with the content of the sketchbook.
After doing what you said I have to go to the tab; click "File" then click on "Open Recent" in order to see the path.
This is better if don't mind to have to remember which file you should to search inside :) I wish I knew this before.  You also have to make sure that at least one sketch is saved in your sketchbook in order to make one of those appears in the recent files.


Update reference.rst

added this
snap (0,0)-(100,100) to a.png

Thanks @lookang! @ruthtxh I happen to see this new example from Lawrence, and committed the PR.


AD Auth Fails with known good credentials

Unable to add Active Directory Authentication.
I can run ldapsearch from inside the rancher container and successfully search for users with the same user data I provide to rancher. When I attempt to test and save I get an Invalid Credentials error in the rancher logs.
Error: [ERROR] API error response 401 for POST /v3/activeDirectoryConfigs/activedirectory?action=testAndApply. Cause: LDAP Result Code 49 "Invalid Credentials": 80090308: LdapErr: DSID-0C09042F, comment: AcceptSecurityContext error, data 52e, v2580
The ldapsearch command (obviously generified):
ldapsearch -h ad.dcserver.com -x -D "MYBIND_DN" -w "MYPASSWORD" -p 389 -b "dc=domain,dc=com" -s sub "sAMAccountName=dustin.hendel"
I tried a workaround by adding the AD config through the API calls, and it added the config, but I still can't authenticate.
the api path: rancher.my.server/v3/activeDirectoryConfigs/activedirectory
api output:
{

    "accessMode": "unrestricted",
    "actions": {
        "disable": "…/v3/activeDirectoryConfigs/activedirectory?action=disable",
        "testAndApply": "…/v3/activeDirectoryConfigs/activedirectory?action=testAndApply"
    },
    "allowedPrincipalIds": [
        "local://user-28lfc"
    ],
    "annotations": null,
    "baseType": "authConfig",
    "certificate": "",
    "connectionTimeout": 5000,
    "created": "2018-09-20T20:42:14Z",
    "createdTS":<PHONE_NUMBER>000,
    "creatorId": null,
    "defaultLoginDomain": "domain.com",
    "enabled": true,
    "groupDNAttribute": "distinguishedName",
    "groupMemberMappingAttribute": "member",
    "groupMemberUserAttribute": "distinguishedName",
    "groupNameAttribute": "name",
    "groupObjectClass": "group",
    "groupSearchAttribute": "sAMAccountName",
    "id": "activedirectory",
    "labels": null,
    "links": {
        "self": "…/v3/activeDirectoryConfigs/activedirectory",
        "update": "…/v3/activeDirectoryConfigs/activedirectory"
    },
    "name": "activedirectory",
    "nestedGroupMembershipEnabled": true,
    "port": 389,
    "servers": [
        "dc01.domain.com"
    ],
    "serviceAccountUsername": "domain\\svc_rancherbind",
    "tls": false,
    "type": "activeDirectoryConfig",
    "userDisabledBitMask": 2,
    "userEnabledAttribute": "userAccountControl",
    "userLoginAttribute": "sAMAccountName",
    "userNameAttribute": "name",
    "userObjectClass": "person",
    "userSearchAttribute": "sAMAccountName|sn|givenName",
    "userSearchBase": "STRIPPED OUT",
    "uuid": "a7e5cfdc-bd15-11e8-98ac-005056bbd021"
}

I have gone through #12421 and #14369 and no luck. Also tried turning on/off recursive group search.

Useful
Info

Versions
Rancher v2.0.8 UI: v2.0.67

Access
`` admin

Route
global-admin.security.authentication.activedirectory

@dahendel Can you try changing your default login domain from "domain.com" to domain?

@mrajashree I have tried that as well. Here is the debug output:
2018/09/25 18:46:09 [DEBUG] Now generating Ldap token
2018/09/25 18:46:09 [DEBUG] Now creating Ldap connection
2018/09/25 18:46:09 [DEBUG] Binding service account username password
2018/09/25 18:46:09 [ERROR] API error response 401 for POST /v3/activeDirectoryConfigs/activedirectory?action=testAndApply. Cause: LDAP Result Code 49 "Invalid Credentials": 80090308: LdapErr: DSID-0C09042F, comment: AcceptSecurityContext error, data 52e, v2580

@dahendel I see. From the logs it looks like the service account bind failed, have you run the same ldapsearch command for the service account and seen it succeed?
ldapsearch -h ad.dcserver.com -x -D "MYBIND_DN" -w "MYPASSWORD" -p 389 -b "dc=domain,dc=com" -s sub "sAMAccountName=dustin.hendel"

@mrajashree  Yes. When I run the ldap search with the same service account is succeeds. Also I removed special characters from the password with no luck.

Changing the Login Attribute from name to sAMAccountName fixed the issue. Closing

That's great, from the API UI snapshot above it looked like it was already sAMAccountName though  "userLoginAttribute": "sAMAccountName",

In my case everything was OK but I was using Chrome Browser and didnt work which is very strange, then I tried Mozilla Firefox and I can see my Rancher Dashboard,. Happy me. ; )


Noisy monitor files

The monitor file recorded during the training process is noisy when using MPI.

How to deal with that?

I don't believe that procgen creates monitor files, what are you using to create these?

I wrap the vecenv with gym monitor api to create monitor files.

I don't think the gym monitor api supports vecenvs, are you use VecMonitor?  Could you provide a short example script that illustrates the problem?

Most likely you are logging to the same filename from multiple ranks, you should make sure that each rank logs to a unique filename, such as f"monitor{MPI.COMM_WORLD.rank}.csv"

Thanks, I got it! It solved my problem.


Color setting issues

Hi everyone,
I'm just about to configure my ha bridge and got a little trouble with the new color functionality since it's not really documented so far.
Either way I already figured out some on my own but got a lot of trouble with my color settings.
I found some hints on rgb-format transformation but didn't really know how to implement it into the call-config on my ha bridge.
My only problem is that my controller doesn't accept rgb values directly. It wants a hex number between 00 to FE (0 to 255) to determine the requested color.
I found 00 to be pure blue, 55 to be pure green and AA to be pure red. And FE is nearly perfect blue.
So it's basically a color circle. But I can't figure out how to get this into my bridge device config.
I assume it has to be something like:
udp://XXX.XXX.XXX.XXX:8899/0x40${color.math("this is where I'm lost").hex}
I could imagine a script to determine the needed code but it would need the rgb-values as input.
Any help?
Best regards

Sorry that I forgot to put the color attributes in the doc, will update that soon. As far as a conversion to that color wheel, you'll need to search for that on the web.

Same Thing here.

This sounds like milight/limitlessled to me, am i correct?
If yes, this is already implemented. (for the v5 milight/limitlessled api)
The usage for that is as follows: udp://ip:port/0x${color.milight:x} where x is a number between 0 and 4 (0 all groups, 1-4 specific group). The group is neccessary in case the color turns out to be white (white is handled a little bit different than normal colors in the milight api). The correct group on must of course be sent before that udp packet, like always.
So if you want a color change for example for group 2 you would have two items in the colorUrl ("Color Items"):
The corresponding group on: udp://<IP_ADDRESS>:8899/0x470055
The color change for this group: udp://<IP_ADDRESS>:8899/0x${color.milight:2}
Or for all groups:
The corresponding group on: udp://<IP_ADDRESS>:8899/0x420055
The color change for this group: udp://<IP_ADDRESS>:8899/0x${color.milight:0}
Side note: Because of the limited colors with milight (only 255) setting the temperature via the hue app doesn't result in anything useful with milight. So i would stick to the color tab.

Nailed it.
The config is done, but problems aren't solved yet.
There's no testing for the color-management on the ha-bridge website, am I right?
Furthermore Alexa pretends that my device doesn't support color feature...
How to get that working?
I got no hue bridge so I can't activate the hue skill, is that necessary?
Best regards

Yes there is currently no testing for color on the ha-bridge website, you could use a hue smartphone app instead.
Regarding Alexa, yes, sadly this won't work. I quote myself from the v5 testing issue:

This is due to the fact that alexa does on/off/dim natively & local, but color works through the official hue skill. Since HA-Bridge is not linked to a hue account you can't link ha-bridge with the hue skill and thereby color commands aren't possible without programming a custom skill for alexa and exposing ha-bridge or another server as middle man to the internet. I described this behavior and the rooms feature here
I still implemented this because it's nice to have color at least via apps.
The only way at the moment to get anything like a color command with alexa is to create a device for each color. I did that for my milight ambient light. For example i created a device "Ambient blue" which is a stateless device which when i say "ambient blue on" changes the color and also sets the correct status for my main "Ambient" device, so that it's displayed correctly in my hue app. I also applied an ip filter to these color devices so that they are only visible to alexa and not in my hue app.

Well too bad. So at the moment only on/off/dim with Alexa.
But thank you very much for that detailed answers.
Is there something in development for adding these features to Alexa?

Got a statement from the hue developer support once:

"Alexa commands (e.g. on&off, dimming) are natively integrated into Echo device and users can issue commands out-of-box. For other advanced commands (e.g. changing colors and control scenes), users need to enable Alexa Hue skill for the commands to work."

Also here was talked about that it will not get implemented natively.
So there is nothing in that direction (that i know of).
The other possibility would be to build a custom skill to connect to HA-Bridge. Maybe someone is tinkering a skill for that or has one already, but this would require to make HA-Bridge accessible via the internet in some way which is flagged as not recommended in the readme because it's a security risk.

Hmmm I made some research meanwhile and found out that it is implemented in USA already and will be available in other countrys "soon". But it was an entry from April'17 so...
Anyway thanks for your support.
Maybe I'll change my hardware layout to make it compatible.


Import contribs from api and cli

This PR does three things:

adds contrib_import() to cli - ludwig.cli used to import ludwig.api, but now doesn't so need additional call
checks so that calling contrib_import() twice doesn't doubly instantiate contrib
surround instantiation of contrib with try/except to protect from bad constructors

After PR:

contribs will be instantiated in api and cli
multiple calls of contrib_import() will only create one instance
won't crash with bad contrib constructor

Thank you @dsblank !


add ChatHistoryPlugin

Add ChatHistoryPlugin to save chat history locally, including text, image, video, audio and emoji.

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

Your plugin looks so good to me. And it's seems that it only support sqlite, How about MySQL and postgresql? If you use sqlalchemy orm tool to operate data with db, it will be a more excellent plugin?
This is my suggestion, How do you think about it?

Sure. I will try to use sqlalchemy to operate data with database.

The aiomysql is a library for accessing MySQL database from the asyncio, but it seems that this library have many issues and no update for a long time. So, aiosqlite may be a better local database for local chat history, which can be opearated just like MySQL or even dump to MySQL .
BTW, do you have any idea how to parse Audio .slk file to .mp3/.wma format in Python?
Will try to make CI green.

Maybe we can use asyncio run_in_executor to combine MySQL and sqlalchemy.

Maybe we can use asyncio run_in_executor to combine MySQL and sqlalchemy.

MySql is a database, SqlAlchemy is an orm tool to connect different databases which contain MySQL. So you can just use sqlalchemy to operate data.

btw, hoping for your great solution to encode silk file.

ping @markoxu  Looking forward to your new commit.

New commit use sqlalchemy to operate data with SQLite, MySQL and PostgreSQL. Please take a look.

btw, hoping for your great solution to encode silk file.

Haven't find a simple solution yet~

ping @markoxu  If you have any different views, let's discuss about it.  Hoping for your new commit to push it on.

ping @markoxu If you have any different views, let's discuss about it. Hoping for your new commit to push it on.

PTAL.

The pyproject.toml still cannot make mypy pass yet, so i will temporarily use # type: ignore to pass CI, and then will try to fix type annotations.
Should the filename to be reserved? Becasue we the need to load the stream so that we can the real filename from message.

Imporove type annotation and hints with pyproject.toml and remove all # type: ignore to make code clear. PTAL.

Modify the filter to make CI green, cause mypy does't allow str in this filter
filename = '-'.join(list(filter(lambda x: x is not None, [
                    payload.room_id if payload.room_id else None,
                    payload.from_id,
                    str(payload.timestamp),
                    file_box.name]
)))

Hi @wj-Mcat, can I become a contributor now and get a long-term supported token for further validation, thx.


Incorrect Fees

<!--
  Is this a bug report?
  If so, go back and select the "Bug report" option or your issue WILL be closed.
--!>
I went to swap RUNE for ETH last night (051321) and I ended up with MUCH less ETH than I was told I was going to get for my RUNE. The first swap was 34 RUNE for ETH at 19:39 MST. Was shown I should expect to receive ~0.16ETH with an Eth fee of ~0.011 and RUNE fee of 0.1. When the transaction was processed, the history said I had swapped 34 RUNE for just 0.1188 ETH.

I checked the Etherscan Transaction Hash (0x2d092c9a7af1df0c7cb5f78feba01be98d25cf03db72dca6a86fec34ec3786d4) and it showed a transaction fee of only 0.00854876 ETH (~$32).

So I did another transaction to make sure I wasn’t missing anything as far as the fees that I should expect. Second transaction was selling 20 RUNE for ETH. The swap page told me I’d get a little over 0.09ETH and the fees at the bottom were 0.1 RUNE and again, 0.011ETH. When the transaction went through I was given only 0.055ETH.

Again I checked the Etherscan Transaction Hash (0xde02001d2ac04718ab77552bea8e50d386ffdd7c71aff3a12bfe82fe308450af) and it only showed a transaction fee of 0.00854612 ETH (~$32).

At the time of these trades RUNE was ~$17.63 and ETH was ~$3880 on CoinGecko, but your oracle price was almost $100 lower than that. I don't know what's up, but I just lost 33% of the value of my asset and can't find any transaction data to validate that.

My ETH wallet is: 0xc660b7592e12d4785c89c8f34beeadd8ca830c71
My RUNE wallet is: thor16wk5xwrzljr7r6e6xc3a3cmjp3mfentnu8upf8

I understand this just may be a case of me not looking in the right place for total fees, and I also understand gas fees are extraordinarily high around Ethereum, but it seems like I got taken for a ride. The options you provide me in the transaction history for reviewing what I've done only show me total fees of $65 worth of ETH, NOT $300. Where is the documentation showing me where the rest of my ETH went? Hoping you all can help.

@CryptoGlutton Thanks for you detailed report!
Which version o ASGARDEX desktop have you used?
Currently calculation of fees to swap RUNE -> ETH are calculated as follow:

Inbound fee to send RUNE IN: 0.02 RUNE
Outbound fee to bring ETH OUT: 3 * gasRate (in GWEI, we got from inbound_addresses) * 35000 (units == tx size) (for now it would be 0,01365 ETH)

For your swap:

Inbound fee: 0.02 RUNE (no change)
Outbound fee: Based on formula above and current gas_rage: 130 provided in inbound_addresses) it would be 0,01365 ETH, which is very similar what you got before.

The fees are deducted from your output are not based on fees you see at Etherscan, but as you can see in ASGARDEX ui.
The only source we currently have for this calculation is https://github.com/thorchain/asgardex-electron/issues/1381
Based on your data (just to double check):

First swap: 34 RUNE IN -> 0.1188 ETH OUT= 599.42$ IN -> 460.94$ OUT = 138.48$ fees)

Fees in UI: 0.02 RUNE + 0.011 ETH = $0.3526 + $42.68 = 43.0326
Difference: $138.48 - $43.0326 = $95.44

First swap: 20 RUNE IN -> 0.055 ETH OUT (similar to $352.6 IN -> $213.4 OUT = $139.2 fees)

Fees in UI: 0.02 RUNE + 0.011 ETH = $0.3526  + $42.68 = $43.03
Difference: $139.2 - $43.03 = $96.16

Where is the documentation showing me where the rest of my ETH went?

We don't have an official documentation for that right now. For developers https://github.com/thorchain/asgardex-electron/issues/1381 is a source to follow.
Let me reach out to the team to check why these differences between calculated in UI and "real" fees after swap.

Using v0.1.0.
REALLY appreciate you finally picking this up and running with it. Please let me know if there is any other information I can provide which would help you all figure this out. - CG

Still waiting for a feedback from backend team... At the meantime, pls make sure to use latest ASGDARDEX 0.2.0

Wasn't even aware there was a new version. I'll get right on it. Thanks. - CG

Veado, any feedback from the backend team?!?  So if you see $65 was spent then you were charged $195." Now, this may be true, but to be clear, there is NOTHING on Asdardex, or at least not when I went to make the two transactions described earlier, that in any way, shape or form makes it clear, or even SUGGESTS, that the ETH fee being shown at the bottom of the swap page is just 1/3 of the REAL fee that will be charged. I think you'll agree with me on that.
Additionally, if this IS true about 3x fees, then again, I want to see the transaction record. No tax man in the world is going to accept me just telling them that Thorchain has other fees that you can't see and that's why I only received $600 worth of ETH for $900 worth of RUNE and the Etherscan transactions are just wrong. That's just not going to fly. Again, I think/hope you understand that.
Hoping you continue to work on this and we can get this issue resolved. Again, let me know if there is anything else you need from me. Thanks. - CG

Veado, any feedback from the backend team?!?

It still an going discussion. You can follow it on Discord (it's public):

Message in #mccn channel:  https://discord.com/channels/838986635756044328/839002619481554955/843852866149679105
Message in #asgardex-desktop channel: https://discord.com/channels/838986635756044328/839002220942721024/844904929423654952

Not real familiar with Discord. I'm on there, but when I clicked those links I just end up on a blank page that tells me there is either no channels there or I'm not allowed on them. I'll try and figure it out later. In the meantime, if anything MAJOR comes out of the discussion I'd appreciate you letting me know here. Thanks again for your help. - CG

@CryptoGlutton The team has just realized, my previous calculation example by using your data was wrong. It includes a wrong gas_rate: 130, which was 330 on the day of your trade (see gas_rate of ETH here). With that, result of calculation example is about $142, which is very similar to what you have paid.
By using latest 0.2.0 of ASGARDEX fees should be fine.
Closing issue now ...

This issue is NOT closed. Telling me that there were some hidden gas fees that I didn't know about and that ultimately led to me losing 1/3 of my investment is not a "solution" to my problem. If there were gas fees that high AND I was charged higher fees than Asgardex told me I'd be paying, then I WANT TO SEE A RECORD OF THESE TRANSACTIONS. Just send me the hash. Give me something I can show my tax man. If I don't see the evidence from you all in regard to where my money went then I expect some RUNE or ETH to end up in my Asgardex wallet(s).  I'm tired of getting the run-around on this, and being treated like it was MY FAULT. Your site provided faulty data and you should be accountable for that.

This issue is NOT closed. Telling me that there were some hidden gas fees that I didn't know about and that ultimately led to me losing 1/3 of my investment is not a "solution" to my problem. If there were gas fees that high AND I was charged higher fees than Asgardex told me I'd be paying, then I WANT TO SEE A RECORD OF THESE TRANSACTIONS. Just send me the hash. Give me something I can show my tax man. If I don't see the evidence from you all in regard to where my money went then I expect some RUNE or ETH to end up in my Asgardex wallet(s).  I'm tired of getting the run-around on this, and being treated like it was MY FAULT. Your site provided faulty data and you should be accountable for that.

Hi CG,
THORChain is a permissionless network operated by anonymous node operators. None of the contributors to the protocol or interfaces operate the network. The interfaces are entry points to the system and are in different states of development - users have choice on which interface they use.
You will not be refunded for this transaction for the following reasons:

THORChain is designated #chaosnet - expect chaos. There are multiple warnings to users that THORChain is embryonic technology and subject to risk. When you interact with the network you accept the risks, which have been outlined here: https://medium.com/thorchain/thorchain-chaosnet-risk-outline-c16db4b78df7

No significant defect has occurred - the fee estimate was incorrect, but it could still be incorrect with the fix veado has applied because fees can fluctuate wildly on ethereum. This could have simply changed while your transaction was being processed. It is ONLY an estimate. There was no "faulty data" as you put it. You should educate yourself on how fees work on THORChain and act accordingly.

Your threats to veado to create trouble for the network is unacceptable. This is now how you negotiate and will not be tolerated.

The data you seek is here:
https://etherscan.io/tx/0x2d092c9a7af1df0c7cb5f78feba01be98d25cf03db72dca6a86fec34ec3786d4
https://midgard.thorchain.info/v2/actions?txid=2d092c9a7af1df0c7cb5f78feba01be98d25cf03db72dca6a86fec34ec3786d4&offset=0&limit=50
https://thornode.thorchain.info/thorchain/tx/2d092c9a7af1df0c7cb5f78feba01be98d25cf03db72dca6a86fec34ec3786d4
If you wish to discuss further I offer my telegram ID for your convenience. Github is not the place. @kkkilo

Yeah, I'm gonna hit you up on Telegram, because that's going to make a difference?!? Pretty clear where you all stand.
I'm just going to chalk it up as another $250 mistake, walk away, and do my best to warn people about wildly fluctuating gas fees that skyrocket 3-4 times in mere minutes (behind the scenes) and also all the chaos and risk associated with your site that you yourself just mentioned. That's not a threat, it's a necessary task one much carry out, if they care about the well being of other people, and want to protect the crypto space from bad actors. People have a right to know when there is a high likelihood that they're likely to get taken to the cleaners on a given site or by a given project. See you all on Twitter.


[wip] filter genes by list of genes in the portal

This PR uses the new list of IDs to filter this gene inputs. This is very important because before there were are a handful of genes that are not in the portal that were perviously causing the upload command to crash. This is why #75 is so important.
Now, instead of an error, you get a warning message:
WARNING: requested input id ENSG00000204616 not found in ref_id_list
WARNING: requested input id ENSG00000262302 not found in ref_id_list
...
working for 2 scripts.. need to add the others

new:
output_pieces_gene/01-appyter/
19962
old:
output_pieces_gene/01-appyter/
19971
this catches 9 genes without pages in the portal


WIP: Use a batch size for etcd setup equal to the number of etcd masters (bsc#1066695)

Use a batch size for etcd setup equal to the number of etcd masters
Minor cleanups and a fix for a case where caasp_etcd.py could return 0.
See https://bugzilla.suse.com/show_bug.cgi?id=1066695

The orchestration is dying here when trying to do the discovery: Service etcd is dead after 300 total retries. Expected 50 success in a row, got 0 as maximum.

Some output from etcd on the master node:
Dec 19 11:35:58 caasp-master-0 etcd[3570]: listening for peers on https://<IP_ADDRESS>:2380
Dec 19 11:35:58 caasp-master-0 etcd[3570]: listening for client requests on <IP_ADDRESS>:2379
Dec 19 11:35:58 caasp-master-0 etcd[3570]: resolving b49d7fa88e3843dd9dacb1329b83a63d.infra.caasp.local:2380 to <IP_ADDRESS>:2380
Dec 19 11:35:58 caasp-master-0 etcd[3570]: resolving b49d7fa88e3843dd9dacb1329b83a63d.infra.caasp.local:2380 to <IP_ADDRESS>:2380
Dec 19 11:35:58 caasp-master-0 etcd[3570]: member "b49d7fa88e3843dd9dacb1329b83a63d" has previously registered with discovery service token (h
Dec 19 11:35:58 caasp-master-0 etcd[3570]: But etcd could not find valid cluster configuration in the given data dir (/var/lib/etcd/).
Dec 19 11:35:58 caasp-master-0 systemd[1]: etcd.service: Main process exited, code=exited, status=1/FAILURE
Dec 19 11:35:58 caasp-master-0 systemd[1]: Failed to start Etcd Server.
Dec 19 11:35:58 caasp-master-0 systemd[1]: etcd.service: Unit entered failed state.
Dec 19 11:35:58 caasp-master-0 systemd[1]: etcd.service: Failed with result 'exit-code'.

With a 1+1 deployment I never get success because etcd seems to never reach consensus and it will keep on voting all the time:
Dec 19 12:19:10 caasp-worker-0 etcd[5799]: started HTTP pipelining with peer 6e8adf9397513a08
Dec 19 12:19:10 caasp-worker-0 etcd[5799]: started streaming with peer 6e8adf9397513a08 (writer)
Dec 19 12:19:10 caasp-worker-0 etcd[5799]: started streaming with peer 6e8adf9397513a08 (writer)
Dec 19 12:19:10 caasp-worker-0 etcd[5799]: started peer 6e8adf9397513a08
Dec 19 12:19:10 caasp-worker-0 etcd[5799]: added peer 6e8adf9397513a08
Dec 19 12:19:10 caasp-worker-0 etcd[5799]: started streaming with peer 6e8adf9397513a08 (stream Message reader)
Dec 19 12:19:10 caasp-worker-0 etcd[5799]: started streaming with peer 6e8adf9397513a08 (stream MsgApp v2 reader)
Dec 19 12:19:10 caasp-worker-0 etcd[5799]: 5afbfdace02367fa is starting a new election at term 646
Dec 19 12:19:10 caasp-worker-0 etcd[5799]: 5afbfdace02367fa became candidate at term 647
Dec 19 12:19:10 caasp-worker-0 etcd[5799]: 5afbfdace02367fa received MsgVoteResp from 5afbfdace02367fa at term 647
Dec 19 12:19:10 caasp-worker-0 etcd[5799]: 5afbfdace02367fa [logterm: 1, index: 2] sent MsgVote request to 6e8adf9397513a08 at term 647
Dec 19 12:19:12 caasp-worker-0 etcd[5799]: 5afbfdace02367fa is starting a new election at term 647
Dec 19 12:19:12 caasp-worker-0 etcd[5799]: 5afbfdace02367fa became candidate at term 648
Dec 19 12:19:12 caasp-worker-0 etcd[5799]: 5afbfdace02367fa received MsgVoteResp from 5afbfdace02367fa at term 648
Dec 19 12:19:12 caasp-worker-0 etcd[5799]: 5afbfdace02367fa [logterm: 1, index: 2] sent MsgVote request to 6e8adf9397513a08 at term 648
Dec 19 12:19:13 caasp-worker-0 etcd[5799]: 5afbfdace02367fa is starting a new election at term 648
Dec 19 12:19:13 caasp-worker-0 etcd[5799]: 5afbfdace02367fa became candidate at term 649
Dec 19 12:19:13 caasp-worker-0 etcd[5799]: 5afbfdace02367fa received MsgVoteResp from 5afbfdace02367fa at term 649
Dec 19 12:19:13 caasp-worker-0 etcd[5799]: 5afbfdace02367fa [logterm: 1, index: 2] sent MsgVote request to 6e8adf9397513a08 at term 649

1+3 is also failing, going to check what's going on :(

1+3 is also failing, going to check what's going on :(

Yeah, it is a problem with etcd not reaching consensus in the cluster...

Oh, it'll also need a rebase so it includes https://github.com/kubic-project/salt/commit/1863c0678ef4d554296a361a70aa18c202fc7ca4


1.1.1 not backwards compatible

the bump between 1.1.0 and 1.1.1 for wide-align, according to semver, should be a backwards compatible change. however, the version of string-width has been bumped from 1.x to 2.x at https://github.com/iarna/wide-align/commit/0909e69a807f174396cdeaa10814966203b3f8d0. according to semver, this is a non-backwards compatible change. the appropriate bump would've been for wide-align to bump the major version to signify that the changes are not backwards-compatible.
i came across this package since it's a dependency of popular sass loader by node-sass v3.x:
node-sass -> npmlog -> gauge -> wide-align. the 1.1.1 bump broke a build system we were using that relied on node-sass with node 0.12, which did not natively support the const syntax.
17:25:56 /local/workspace/project.package_react_apps/node_modules/gulp-sass/node_modules/node-sass/node_modules/npmlog/node_modules/gauge/node_modules/wide-align/node_modules/string-width/index.js:2
17:25:56 const stripAnsi = require('strip-ansi');
17:25:56 ^^^^^
17:25:56 SyntaxError: Use of const in strict mode.
17:25:56     at exports.runInThisContext (vm.js:73:16)
17:25:56     at Module._compile (module.js:443:25)
17:25:56     at Object.Module._extensions..js (module.js:478:10)
17:25:56     at Module.load (module.js:355:32)
17:25:56     at Function.Module._load (module.js:310:12)
17:25:56     at Module.require (module.js:365:17)
17:25:56     at require (module.js:384:17)
17:25:56     at Object.<anonymous> (/local/workspace/project/node_modules/gulp-sass/node_modules/node-sass/node_modules/npmlog/node_modules/gauge/node_modules/wide-align/align.js:2:19)
17:25:56     at Module._compile (module.js:460:26)
17:25:56     at Object.Module._extensions..js (module.js:478:10)

This is happening to me too, trying to build<EMAIL_ADDRESS>

for anyone in this thread who can afford to, not-using an ancient version of npm (0.12) does the trick (i tested it with npm=lts/boron). alternatively, if you have a previously installed node_modules folder, you can also try generating a npm shrinkwarp file and manually lock down the subdependency version. for me, our build process is stuck on 0.12.x for a while, so i ended up forking the dependency chain and locking the versions in my local fork.

Same here. Looks like it's due to the major bump of the string-width dependency.
https://github.com/iarna/wide-align/commit/0909e69a807f174396cdeaa10814966203b3f8d0

Encountering the same issue.

for anyone else stuck on this thread: i was able to work around the issue by locking down the version in my project's package.json by adding wide-align as a dependency:
"dependencies": {
  ...
  "gulp-sass": "^3.0.0",
  "wide-align": "1.1.0"
}

this works because gauge only specifies ^1.1.0, and npm can satisfy both requirements with one version (1.1.0) package.

We're having the same issue.

Locking down dependencies (e.g. with shrinkwrap) not possible with node versions < version 6!
Mine: v0.10.25

Same here! Stopped working overnight.
Will try suggested solution, just wanted to say that if you have "node-inspector", "v8-debug", "node-pre-gyp", etc, install will fail.

Same here, using @jamesw-minted solution solved my issue, thanks

Yeah, not intended, I'll revert that!

Awesome! Thank you, @iarna!

1.1.2 published with<EMAIL_ADDRESS>


In api.py: Change function name discover_storage to update_storage_driver

Function name may be not discover_storage considering what it is doing
Originally posted by @sushanthakumar in https://github.com/katurii/dolphin/pull/41/files

considering low impact. lowering priority for June

we have update_access_info interface for updating the storage access_info .. disocver_storage is used only fduring the initial registration to disocver storage system basic details.


Cleaning up .gitignore files

Pull Request Description
What issue does this change request address? (Use "#" before the issue to link it, i.e., #42.)
Addresses #1647
What are the significant changes in functionality due to this change request?
No changes to RAVEN functionality. This PR updates .gitignore files to ignore the files generated from running regression tests. It cleans things up when running git status.

For Change Control Board: Change Request Review
The following review must be completed by an authorized member of the Change Control Board.

[ ] 1. Review all computer code.
[ ] 2. If any changes occur to the input syntax, there must be an accompanying change to the user manual and xsd schema. If the input syntax change deprecates existing input files, a conversion script needs to be added (see Conversion Scripts).
[ ] 3. Make sure the Python code and commenting standards are respected (camelBack, etc.) - See on the wiki for details.
[ ] 4. Automated Tests should pass, including run_tests, pylint, manual building and xsd tests. If there are changes to Simulation.py or JobHandler.py the qsub tests must pass.
[ ] 5. If significant functionality is added, there must  be tests added to check this. Tests should cover all possible options.  Multiple short tests are preferred over one large test. If new development on the internal JobHandler parallel system is performed, a cluster test must be added setting, in  XML block, the node <internalParallel> to True.
[ ] 6. If the change modifies or adds a requirement or a requirement based test case, the Change Control Board's Chair or designee also needs to approve the change.  The requirements and the requirements test shall be in sync.
[ ] 7. The merge request must reference an issue.  If the issue is closed, the issue close checklist shall be done.
[ ] 8. If an analytic test is changed/added is the the analytic documentation updated/added?
[ ] 9. If any test used as a basis for documentation examples (currently found in raven/tests/framework/user_guide and raven/docs/workshop) have been changed, the associated documentation must be reviewed and assured the text matches the example.

A lot of the clean up of .gitignore files was done in #1816. This PR includes a few additional files generated when running the tests to ignore by git.

Job Test qsubs sawtooth on db17354 : invalidated by @dylanjm
Rerun qsuhs

Job Mingw Test on db17354 : invalidated by @dylanjm
Restart this, must''ve got hung up.

@dylanjm Could you go through and mark the checklist? and could you also go through the issue checklist #1647 and close it?


[iOS] How can I implement Apple Promotional Offers

Description
I want to implement iOS Promotional Offers with the library. I've set up the subscription items and I can get the discounts array from getSubscriptions(), but I don't know how to request subscription with the discount in RNIap.
If I do requestPurchase({ sku, withOffer: { identifier: '...', keyIdentifier: '...', nonce: '...', signature: '...', timestamp: '...' } }), the discount doesn't apply and the price remains the original one. I wonder what are the applicable/appropriate parameters for requestPurchase().
Expected Behavior
Implementing iOS promotional offers
Environment:

react-native-iap: 11.0.0
react-native: 0.66.4
Platforms (iOS, Android, emulator, simulator, device): iOS

Additional Context
Official Doc of Apple Promotional Offers

Found it. should be:
RNIap.requestSubscription({
  sku: '...',
  appAccountToken: '...'
  withOffer: {
     identifier: '...',
     keyIdentifier: '...',
     nonce: '...',
     signature: '...',
     timestamp: '...'
  }
})

@rebeccahsu Hey, I need some help here. Where can I get the keyIdentifier, nonce, signature and timestamp?
when I call getSubscriptions () I get the discount object which looks like this -
      {         "localizedPrice": "$9.99",         "type": "SUBSCRIPTION",         "numberOfPeriods": "1",         "price": "9.99",         "paymentMode": "PAYUPFRONT",         "subscriptionPeriod": "YEAR",         "identifier": "firstYearOffer"       }
I am not able to understand the process of applying the offer for IOS. Can you please explain a bit?
Thanks in advance.

Hi @suyogyadavindexnine, for the "withOffer" object, you need to get the signature from your backend.
First generate the key in App Store Connect:
https://developer.apple.com/help/app-store-connect/configure-in-app-purchase-settings/generate-keys-for-in-app-purchase.
And then follow this tutorial on the server to get the data you need:
https://developer.apple.com/documentation/storekit/in-app_purchase/original_api_for_in-app_purchase/subscriptions_and_offers/generating_a_promotional_offer_signature_on_the_server.
Hope this helps!

Found it. should be:
RNIap.requestSubscription({
  sku: '...',
  appAccountToken: '...'
  withOffer: {
     identifier: '...',
     keyIdentifier: '...',
     nonce: '...',
     signature: '...',
     timestamp: '...'
  }
})

Always pop up Unable to Purchase. Seems to be a signature error caused by the appAccountToken.
@suyogyadavindexnine  Can you help me? https://github.com/dooboolab-community/react-native-iap/discussions/2629

Hey all,
Trying to figure out how to subscribe a user to an offer (1 Month Free) given the user is already within a yearly subscription (which is auto renew).
Would the requestSubscription take that into account and only add the offer to the already running subscription ?
Thanks in advance

hi @rebeccahsu  do you now how can I  get the applicationUsername
I tried default value in here
https://developer.apple.com/documentation/storekit/in-app_purchase/original_api_for_in-app_purchase/subscriptions_and_offers/generating_a_promotional_offer_signature_on_the_server
{
    "appBundleID": "",
    "productIdentifier": "",
    "offerId": "",
    "applicationUsername": "8E3DC5F16E13537ADB45FB0F980ACDB6B55839870DBCE7E346E1826F5B0296CA"
}

but I always get not eligible for offer error

I have a sub with a promotional offer defined in my StoreKit config file (sync'd from App Store).  When I look at the subscription from getSubscriptions() it's missing those details.  It this expected @rebeccahsu ?

Hi @caoyongfeng0214 @Akifcan
I take the user id in my app (nothing special, just a UUID) as the applicationUsername used to generate the withOffer item as well as the appAccountToken used in RNIap.requestApplication. Not sure if this info helps.

Hi @eedeebee
I think the details should be included... >< Yet in my experience it needs some time to sync'd from App store, and the cache may influence the results too.


open janicart doesnt show lights layer

Looks like it works this way for all secure crates and is intended.
I assume it is this way since it doesn't matter if it is locked when it's already open, and you can't lock it when it's open.

edited name

It would be simple enough to change, but it's definitely intentional.
args.Sprite.LayerSetVisible(StorageVisualLayers.Lock, !open);

https://github.com/space-wizards/space-station-14/blob/84c5057bb53eeabd308be364d968831d6feb124d/Content.Client/Storage/Visualizers/EntityStorageVisualizerSystem.cs#L80C13-L80C74


⚠ Guya.moe Proxied has degraded performance

In 5db3595, Guya.moe Proxied (https://ice.guya.moe/) experienced degraded performance:

HTTP code: 200
Response time: 12939 ms

Resolved: Guya.moe Proxied performance has improved in a091bb1 after 20 minutes.


Primitive display driver

After the computer is able to boot and the Hello World phase is through, a primitive display driver has to be written, which is based on the BIOS text functions for the time being.
Later, it should definitely be replaced by a proper driver based on the GOP (Graphics Output Protocol), since modern UEFI systems no longer support VESA text mode. As setting individual pixels and considering the capabilities of different monitors would go beyond the scope, we'll keep it simple here.
The issue is considered done when the kernel supports:

Simple line-by-line text output including scrolling
Text output at fixed position, meaning after line and column
Customizable text and background colors
Clearing the screen

Since the necessary effort is lower than initially assumed, the linear graphics mode can be used as a basis after all. A simple example on how to accomplish that can be found here.

It would probably be best if I implement the basic functions of string.h straight away. They are certainly useful for other areas as well.

The graphics driver has been implemented using a bitmap font. Unfortunately the available video RAM is too small to fit our needs. It has been commented out for now and we're falling back to standard EGA text.


💡[Feature]:  To build a machine learning model for analysis the bug status of the current commit history or not.

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
To analyze the dataset of Bug hunter analysis and build and train the model on the basis of different features and variables.
Use Case
To analyze the dataset of Bug hunter analysis and build and train the model on the basis of different features and variables.
Benefits
No response
Add ScreenShots
No response
Priority
High
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

@sanjay-kv  please assign this to me


add a trend line in Historical Data Views

https://github.com/Makanz/chartjs-plugin-trendline

In our case we have time series to show historical data on line charts, but it seems that it's not supported in this version of plugin.
I found en implemented solution in one of issue responses: https://github.com/SigloTech/chartjs-plugin-trendline


Polygon2D.offset doesn't work.

Godot version
Godot 3.4.4 stable / Godot 4 Alpha 5
System information
macOs monterey gles2 / vulkan
Issue description
Adjusting the offset does not affect the vertex positions
Doc
Polygon2D.offset

The offset applied to each vertex.

Steps to reproduce
extends Polygon2D

func _ready():
	print(polygon, offset)
	offset = Vector2(879, 54)
	print(polygon, offset)

# [(0, 0), (100, 0), (0, 100)](0, 0)
# [(0, 0), (100, 0), (0, 100)](879, 54)

Also Polygon2D.position does not affect vertices. and what is the difference between offset and position ?
Minimal reproduction project
No response

Neither offset nor position change the numbers in the PackedVector2Array.
But both are used for displaying the Polygon. For me it works as expected.
Do the values affect how the polygon is displayed for you? They should.
The difference of them is the order, in which they are applied:

Polygon2D.position is applied relative to the parent nodes coordinate system (and also rotation, scale and skew).
Polygon2D.offset is applied relative to the polygons coordinate system.
The values from PackedVector2Array are used for drawing.

Collision and geometry functions produce incorrect results, because the apparent and real positions are different. For example the visible polygon and the return value will be different. This is unexpected behavior for me;
extends Node2D

@onready var pl: Polygon2D = get_node("Polygon2D")

func _ready():
	pl.offset = Vector2(0, 100)

func _process(delta):
	var p = get_global_mouse_position()
	if Geometry2D.is_point_in_polygon(p, pl.polygon):
		pl.color = Color.BLACK
	else:
		pl.color = Color.YELLOW

Can you please be more precise, what you mean by the "offset bug". It would help if you could describe your expected behavior.
Also my code can be simplified to
func _process(delta):
	if Geometry2D.is_point_in_polygon(pl.get_local_mouse_position() - pl.offset, pl.polygon):
		pl.color = Color.BLACK
	else:
		pl.color = Color.YELLOW

But the coordinate I see on the screen and the actual value are different. offset only provides a virtual view. This is so ridiculous to me.

offset should be added automatically with get() set() to the vertices coordinates;
for i in $Polygon2D.polygon.size():
     $Polygon2D.polygon[i] += $Polygon2D.offset

Thank you, now I understand your issue: You want to change all vectors of the polygon in a single step.
Try this:
func _ready():
	var t: Transform2D = Transform2D()
	t = t.translated(Vector2(0, 111))
	pl.polygon = pl.polygon * t # apply the transform to all elements of the polygon
	print(pl.polygon)

I found it wasn't possible to use the multiply operator on between a PoolVector2Array and a Transform2D, this worked for me:
func _ready():
	var t: Transform2D = Transform2D()
	t = t.translated(Vector2(0, 111))
	pl.polygon = t.xform(pl.polygon) # use xform to transform to all elements of the polygon
	print(pl.polygon)


Problems API should be available to plugin authors

Expected Behavior
I'd like to be able to collect build problems inside of a plugin.
Current Behavior (optional)
The problems API is only available via the tooling api, so I cannot write a plugin that adds a problem listener to the build.
Context
Specific use case would be to add configuration cache miss reason to a custom value in the build scan, which would allow us to easily export that data from the develocity api for analysis. I'm aware that develocity has a new api for configuration cache info that includes the miss reasons, but calling that API does not scale well for how many scans we produce.
This api seems generally useful beyond my specific example though, for example we could create a plugin that creates a condensed build report with error info and specific resolution steps.

Followup on the specific use case here, the configuration cache miss reason is available in the eventmodel api: https://docs.gradle.com/enterprise/event-model-javadoc/com/gradle/scan/eventmodel/gradle/ConfigurationCacheCheckFingerprintFinished_1_0.html

This feature request is in the backlog of the relevant team and is prioritized by them.

Also see

#30490


Create publicação “2023-12-27-polimento-de-carro”

Automatically generated by Netlify CMS

👷 Deploy Preview for driveclean-teste processing.

Name
Link

🔨 Latest commit
d6ccc4b40bdfb929bf41ef1556a1deebd15b2d29

🔍 Latest deploy log
https://app.netlify.com/sites/driveclean-teste/deploys/658c8c3025d5c80008043c50


Help with installing

Hello, I am not very good at coding and I don't know how to work with either xampp and mamp to host the site. I also can't find any tutorials on how to install the DSJAS. Can someone help me

nvm

Hello,
Sorry I didn't reply in time, but if you still need some help, please see the install guide in the documentation, located here.
If you need any specific help, open another issue or reply here.
Good luck with your install and happy scambaiting

Hello,
Sorry I didn't reply in time, but if you still need some help, please see the install guide in the documentation, located here.
If you need any specific help, open another issue or reply here.
Good luck with your install and happy scambaiting

Hi can you give me an email or discord to contact you. it is not connected with the DSJAS and it is not that urgent :)

If possible, please email<EMAIL_ADDRESS>for DSJAS related communications


Jenkins custom auth strategy

Support overriding auth config

When I configured Open Id Connect.  The securityRealm has plugin attribute in addition to class attribute like this:
 <securityRealm class="org.jenkinsci.plugins.oic.OicSecurityRealm"<EMAIL_ADDRESS>Does it work without the plugin attribute?


Revert "Revert "Do not expose fieldupdates as a list. Hide implementation details ins…""

Reverts vespa-engine/vespa#6966

@bratseth or @vekterli PR


Drop setsys.f90

The function of setsys.90 is now done with olsbegin.f90. setsys is no longer needed.

Removed setsys in project.


Update README.md

Added link to the documentation.
Given that complete documentation is one of the touted features, it seems to make sense to link to it.
It also makes it much easier to get to for the occasional swift dev (like myself :)).

While that was not the original intent of the feature list, I can't think of any reason not to include it. Thanks for the PR @rojotek!


Though BLE device sends response immediately, App receives the response after a delay.

We are using plugin.ble in our app. App connects to a BLE device and upon successful connection, it reads many characteristics back to back using ReadAsync() API, for example it reads 5 characetristics.
Steps to reproduce
The flow goes like this
   ->send read request to characteristic1
   ->get read response from characteristic1

   ->send read request to characteristic2
   ->get read response from characteristic2

   ->send read request to characteristic3
   ->get read response from characteristic3

   ->send read request to characteristic4
   ->get read response from characteristic4

   ->send read request to characteristic5
   ->get read response from characteristic5

Expected behaviour
App sends read request and should get response immediately from BLE device.
Actual behaviour
This flow works most of time properly as expected. We verified this behaviour by using a tool which traces the BLE packets sent over the air. It works as expected in case of straight forward cases like connect to BLE device and read many characteristics.
we are dealing with a particular scenario.

App is connected to BLE device, now turn OFF bluetooth of iOS device. So, automatically App is disconnected from BLE device.

Upon disconnection, we call ConnectToDeviceAsync(device) API to automatically get connected to BLE device when it is available.

Turn ON iOS device's bluetooth, App gets connected to BLE device.

Soon after successful connection, app tries to read 5 characteristics one by one.
->send read request to characteristic1
->get read response from characteristic1

->send read request to characteristic2
->get read response from characteristic2

->send read request to characteristic3
->App is waiting for a response from BLE device for around 30 seconds.
->After 30 seconds, app received response from characteristic3

We traced the BLE read requests and responses between app and that particular BLE device with timestamp.
Tracing result : App sent read request to characteristic3 at <IP_ADDRESS> am. BLE device sends characteristic3 read response at <IP_ADDRESS>4 am.
So, BLE device sends response to any request within a second. But, app receives the response only after around 20 to 30 seconds.
Do you have any idea about why app recieves response late? who is delaying to deliver the response to app?  Is it iOS or Plugin.BLE or App ?
This is a critical issue which we are facing now.
Can you please help us giving ideas/suggestions to solve issue?
Configuration
Version of the Plugin: Plugin.BLE.1.2.0-beta3
Device 1:
Platform: e.g. iOS 9.3.1
Device: e.g. iPad mini 4.
Device 2:
Platform: e.g. iOS 10.1.1
Device: e.g. iPhone 6S.

One idea I have at the moment is to call ConnectToKnownDeviceAsync(guid) instead of ConnectToDeviceAsync(device) this might refresh the underlying IDevice and CBPeripherial.

Our BLE device will have different address after every restart of the device. So the uuid of the device is not constant.
Because of this, ConnectToKnownDeviceAsync(guid) is not an option for us.
Is there any other way to refresh underlying IDevice and CBPeripherial?

Any updates on this one? We are still awaiting a reply for this and its kind of a logjam for us. Are you working on this currently? any leads would really be helpful. We checked the Release notes of Plugin.BLE 1.2.1 and we couldn't find any fix for our issue.
Appreciate your support on this!! TIA.


Excel.js doesn't parse comments/notes.

Note screenshot

I'm trying to get these type of comments.
worksheet.getCell(1).note  doesn't work. Same for cell._value.model.comments.texts.
Could someone explain how to handle comments/notes with exceljs?

Same for me. If I add note or comments, my excel file is empty
https://codesandbox.io/s/commentsnote-exceljs-huc5z

Should be fixed in v3.1.0

For me it's not working on 4.2.0

For me it's not working on 4.2.1, Please sort it out this kind of bugs

For me it's not working on 4.4.0

why is this closed? Im noticing the issue as well, latest version


Update "response to interferon-gamma (GO:0034341)"

Hi!
A crucial group of genes is missing from the set: CXCL9, CXCL10, and CXCL11. These are genes historically known to be induced by interferon gamma. They are literally called "Monokine induced by gamma-interferon (MIG)", "Interferon gamma-induced protein 10 (IP-10)", and "Interferon-gamma-inducible protein 9 (IP-9)".
Evidence from the 1980s forward is reviewed here: https://doi.org/10.3389/fimmu.2017.01970
Thank you!
Andrea

This should probably be moved to the annotation tracker. We don't associate genes with terms in the ontology itself.


chore: lint and format

Closes #2282
This PR runs the lint and format scripts and resolves the emitted errors (aside from the @carbon/charts dependency, cc @theiliad on how you want to resolve that!)

FYI @carbon-design-system/content I can't remove the request for review but none of the content has changed, it's just auto formatting which triggered the review request


Inconsistent output when printing formatted strings to file

I was trying to cut down on allocations arising from printing formatted strings to file in an application that is not statically compiled and found that the results are very inconsistent depending on multiple factors. An MWE that I have is this:
using StaticTools

function mwe(with_extras::Bool)
    filename = c"mwe.txt"
    fp = fopen(filename, c"w")
    # printf(fp, c"some header...\n")
    fclose(fp)

    for i in 1:10
        v = rand(Float64)
        τ = 0.2
        fp = fopen(filename, c"a")
        printf(fp, c"%-9i\t", i::Int64)

        if with_extras
            printf(fp, c"%-9.5f\t", τ::Float64)
        end

        printf(fp, c"%+-22.15E\t", v::Float64)
        printf(fp, c"%+-22.15E\t", v::Float64)

        printf(fp, c"\n")
        fclose(fp)
    end

    return nothing
end

mwe(true)

If I run this file as above, I get the following output in "mwe.txt":
1        	0.00000  	+9.445493644111154E-01	+6.126737653876023E-62
2        	0.00000  	+8.235657754038058E-01	+9.511677335669656E-43
3        	0.00000  	+7.184351703725228E-01	+1.199878358402299E-71
4        	0.00000  	+5.280713321258327E-01	+4.184875561680537E-62
5        	0.00000  	+9.765792483145930E-02	+9.353006520611142E-67
6        	0.00000  	+7.380412861392404E-01	+6.381266618977980E-67
7        	0.00000  	+3.700248038898262E-01	+5.935085023208982E-38
8        	0.00000  	+2.544724432210064E-01	+2.901918924806577E-57
9        	0.00000  	+9.917970389599711E-01	+2.005620467711123E-76
10       	0.00000  	+3.218949827679188E-01	+3.894907056644168E-33

Notice, that column 2 and 4 print either zeros or random junk.
If I now uncomment the header part before the loop I get:
some header...
1        	0.20000  	+4.490086077189066E-01	+4.490086077189066E-01
2        	0.20000  	+1.470808762272514E-01	+1.470808762272514E-01
3        	0.20000  	+5.350469396912083E-01	+5.350469396912083E-01
4        	0.20000  	+3.608204938822157E-02	+3.608204938822157E-02
5        	0.20000  	+2.015223236450887E-01	+2.015223236450887E-01
6        	0.20000  	+9.762384763210931E-01	+9.762384763210931E-01
7        	0.20000  	+1.340377269733548E-01	+1.340377269733548E-01
8        	0.20000  	+6.970016345570541E-01	+6.970016345570541E-01
9        	0.20000  	+1.798754922164749E-01	+1.798754922164749E-01
10       	0.20000  	+3.721347267230519E-01	+3.721347267230519E-01

which is reasonable.
More weird stuff happens when I, e.g, set v to some fixed value instead of randomly generating it:
Without header:
1        	0.00000  	+0.000000000000000E+00	+1.398043286095132E-76
2        	0.00000  	+0.000000000000000E+00	+1.398043286095132E-76
3        	0.00000  	+0.000000000000000E+00	+1.398043286095132E-76
4        	0.00000  	+0.000000000000000E+00	+1.398043286095132E-76
5        	0.00000  	+0.000000000000000E+00	+1.398043286095132E-76
6        	0.00000  	+0.000000000000000E+00	+1.398043286095132E-76
7        	0.00000  	+0.000000000000000E+00	+1.398043286095132E-76
8        	0.00000  	+0.000000000000000E+00	+1.398043286095132E-76
9        	0.00000  	+0.000000000000000E+00	+1.398043286095132E-76
10       	0.00000  	+0.000000000000000E+00	+1.398043286095132E-76

With header:
some header...
1        	0.20000  	+1.000000000000000E-01	+1.000000000000000E-01
2        	0.20000  	+1.000000000000000E-01	+1.000000000000000E-01
3        	0.20000  	+1.000000000000000E-01	+1.000000000000000E-01
4        	0.20000  	+1.000000000000000E-01	+1.000000000000000E-01
5        	0.20000  	+1.000000000000000E-01	+1.000000000000000E-01
6        	0.20000  	+1.000000000000000E-01	+1.000000000000000E-01
7        	0.20000  	+1.000000000000000E-01	+1.000000000000000E-01
8        	0.20000  	+1.000000000000000E-01	+1.000000000000000E-01
9        	0.20000  	+1.000000000000000E-01	+1.000000000000000E-01
10       	0.20000  	+1.000000000000000E-01	+1.000000000000000E-01

Similar things happen if I change how τ is defined. Alas, when using it in my package even with a header, I get faulty values (mainly zeros). Setting with_extras to false also doesn't ameliorate this behaviour.
The system I am running this on uses Ubuntu under Windows10-WSL2 on the latest version of StaticTools and Julia 1.9.4 (reason for this specific Julia version is that my package is bound to it), but I checked the MWE on 1.10.4 and got similar results.
Full specs:
julia> versioninfo()
Julia Version 1.9.4
Commit 8e5136fa297 (2023-11-14 08:46 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 4 × Intel(R) Core(TM) i5-7600K CPU @ 3.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, skylake)
  Threads: 4 on 4 virtual cores

At first glance it seems to look like it's printing uninitialized memory somehow, which is certainly not what we want. I'm not sure why, and may not have time to investigate for a while. One possibility is https://github.com/brenhinkeller/StaticTools.jl/issues/33, which will be time consuming to fix unless ccalls finally work with StaticCompiler now (I had to avoid them initially to get things to compile). Alternatively, it may be another bug, or maybe even something WSL- or OS-specific (I don't know enough about WSL to be sure on that latter point though).
This package is still very experimental so I probably wouldn't recommend it in general unless you need to statically compile for now, but if we fix #33 (esp. if that also fixes this) then it could be possible to use more widely at some point in the future.

Another thing to note, in case you or someone else find time to investigate this bug at some point, is that I have only seen this behavior so far when printing Floats but not with Ints or Strings

Ah thanks, that’s very helpful for narrowing it down!


BUnit does not work with Blazorise Components

Testing any component that that includes a component from Blazorise fails with:
System.InvalidOperationException : Cannot consume scoped service 'Microsoft.AspNetCore.Components.IComponentActivator' from singleton 'Bunit.Rendering.WebTestRenderer'.
OR:
System.InvalidOperationException : Cannot provide a value for property 'JSModule' on type 'Blazorise.Button'. There is no registered service of type 'Blazorise.Modules.IJSButtonModule'.

Example:
Testing this component:
@using Blazorise

Counter

Current count: @currentCount

<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>

<Button Clicked="IncrementCount">Click Me (Blazorise)</Button>

With this test:
        [Fact]
        public void CounterStartsAtZero()
        {
            // Arrange
            var cut = RenderComponent<Counter>();

            // Assert that content of the paragraph shows counter at zero
           cut.Find("p").MarkupMatches("
Current count: 0
");
        }

Results in this output:
 System.InvalidOperationException : Cannot provide a value for property 'JSModule' on type 'Blazorise.Button'. There is no registered service of type 'Blazorise.Modules.IJSButtonModule'.

Or this test:
        [Fact]
        public void CounterStartsAtZero()
        {
            Services
                .AddBlazorise(options =>
                {
                    options.Immediate = true;
                })
                .AddBootstrapProviders()
                .AddFontAwesomeIcons();

            // Arrange
            var cut = RenderComponent<Counter>();

            // Assert that content of the paragraph shows counter at zero
           cut.Find("p").MarkupMatches("
Current count: 0
");
        }

Results in this output:
 System.InvalidOperationException : Cannot consume scoped service 'Microsoft.AspNetCore.Components.IComponentActivator' from singleton 'Bunit.Rendering.WebTestRenderer'.

Expected behavior:
This line results in successful instantiation of the Counter componet:
        var cut = RenderComponent<Counter>();

Version info:

bUnit version: 1.18.4
.NET Runtime and Blazor version: .NET 7, Microsoft.AspNetCore.Components.WebAssembly 7.0.3
OS type and version: Windows 10

Additional context:
A repo with a reproduction of this error can be found here:
https://github.com/johniwasz/blazorise-bunit-repro

That's odd, since I know the folks from Blazorise (@Megabit) use bUnit to test Blazorise with themselves 🙂
Perhaps @stsrki has a tutorial on how to get started testing components that use Blazorise components.

Ill convert this to a QA discussion.


CNV-41591: unexpected "headless" on creating a VM with sysprep

📝 Description
Changing the headless service selector to network.kubevirt.io/headlessService so it could be more unique
🎥 Demo
After:

/cherry-pick release-4.16


Added support for custom commands

Custom commands scoop-* that are in the $env:scoop\shims directory
can now be run using scoop as well as the built-in commands

Fixes #304

I have a bucket with a test command at https://github.com/deevus/scoop-commands

OK cool. Is this good to go, or does it need some testing still?

If not ready it's close. I tested everything I could think of and couldn't
break it.
On 26/03/2015 6:40 PM, "Luke Sampson"<EMAIL_ADDRESS>wrote:

OK cool. Is this good to go, or does it need some testing still?
—
Reply to this email directly or view it on GitHub
https://github.com/lukesampson/scoop/pull/305#issuecomment-86374676.

That's good enough for me.

Sorry, had to revery—I got lots of these errors when I type scoop help:
gci : Cannot find path 'C:\shims' because it does not exist.
At C:\Users\luke\appdata\local\scoop\apps\scoop\current\lib\commands.ps1:3
char:12
+         + (gci "$env:scoop\shims") `
+            ~~~~~~~~~~~~~~~~~~~~~~

I think you just need to use $scoopdir\shim instead of $env:scoop\shims.

Sure thing I'll look at it later tonight
On 26/03/2015 7:36 PM, "Luke Sampson"<EMAIL_ADDRESS>wrote:

I think you just need to use $scoopdir\shim instead of $env:scoop\shims.
—
Reply to this email directly or view it on GitHub
https://github.com/lukesampson/scoop/pull/305#issuecomment-86402724.


Less noisy renovate

Only update golang.org/x/ packages once a month

Codecov Report

Merging #115 into master will decrease coverage by 0.1%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           master    #115      +/-   ##
=========================================
- Coverage   77.71%   77.6%   -0.11%
=========================================
  Files          23      23
  Lines        1840    1840
=========================================
- Hits         1430    1428       -2
- Misses        287     289       +2
  Partials      123     123

Impacted Files
Coverage Δ

selection.go
75.75% <0%> (-1.22%)
:arrow_down:

Continue to review full report at Codecov.

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


Add an argument to the wave callback

Helpful when your callback is a class member...

I'm actually surprised- and I'm presuming here- that your MP3 player hooks this at all. I guess it's about as good a proof/test of the wave callback you could ever want.
I believe this closely mirrors what SDL does with userdata for audio sample callbacks, so it makes sense. Thank you!

Yeah, I'm streaming the decoded MP3 buffer into channel 0, so the other channels are technically free... Anyway, I've pushed the source here: https://github.com/Daft-Freak/32blit-music-player.


Cache key normalize

What's the purpose of this PR
修复 config-service 开启缓存后对客户端 app.id 配置大小写敏感的问题
Which issue(s) this PR fixes:
Fixes #3529
Brief changelog

在 ConfigServiceWithCache 中定义 LoadingCache 的装饰者类，负责处理key的大小写问题
ConfigServiceWithCache优先取大小写敏感的结果（兼容目前的逻辑）
若区分大小的key获取的值为空，则key转为小写获取对应的值

Follow this checklist to help us incorporate your contribution quickly and easily:

[X] Read the Contributing Guide before making this pull request.
[X] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[X] Write necessary unit tests to verify the code.
[X] Run mvn clean test to make sure this pull request doesn't break anything.

I think we need to consider the following situation:

The correct appId is hello
Client1 access the config service via appId hello
Client2 access the config service via appId Hello

BTW, I think they can all get the correct configuration without this pull request (as long as the backend mysql is case insensitive).

After the configuration of hello changes, only client1 can get the updated configuration and client2 will always get the old configuration.

as https://github.com/ctripcorp/apollo/pull/3747 merged, please update changs log. :-)


Incorrect handling of multiple xref-related docs during nxdl2nyaml

With the current version of nyaml, there is an issue in the backwards direction (i.e. nxdl to nyaml) if there is more than one xref-related part in the docstrings of the NXDL file.
Error message:
pielsticker@pccec0853 MINGW64 ~/lukas/fairmat/code/nexus_definitions (mpes-refactor)
$ nyaml2nxdl contributed_definitions/NXenergydispersion.nxdl.xml
Traceback (most recent call last):
  File "C:\Users\pielsticker\Anaconda3\envs\nexus-defs\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\pielsticker\Anaconda3\envs\nexus-defs\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\pielsticker\Anaconda3\envs\nexus-defs\Scripts\nyaml2nxdl.exe\__main__.py", line 7, in <module>
  File "C:\Users\pielsticker\Anaconda3\envs\nexus-defs\lib\site-packages\click\core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "C:\Users\pielsticker\Anaconda3\envs\nexus-defs\lib\site-packages\click\core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "C:\Users\pielsticker\Anaconda3\envs\nexus-defs\lib\site-packages\click\core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\Users\pielsticker\Anaconda3\envs\nexus-defs\lib\site-packages\click\core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "C:\Users\pielsticker\Lukas\FAIRMat\code\nyaml\nyaml\cli.py", line 141, in launch_tool
    converter.print_yml(input_file, yaml_out_file, verbose)
  File "C:\Users\pielsticker\Lukas\FAIRMat\code\nyaml\nyaml\nxdl2nyaml.py", line 184, in print_yml
    self.xmlparse(output_yml, xml_tree, depth, verbose)
  File "C:\Users\pielsticker\Lukas\FAIRMat\code\nyaml\nyaml\nxdl2nyaml.py", line 1022, in xmlparse
    self.recursion_in_xml_tree(depth, xml_tree, output_yml, verbose)
  File "C:\Users\pielsticker\Lukas\FAIRMat\code\nyaml\nyaml\nxdl2nyaml.py", line 948, in recursion_in_xml_tree
    self.xmlparse(output_yml, xml_tree_children, depth, verbose)
  File "C:\Users\pielsticker\Lukas\FAIRMat\code\nyaml\nyaml\nxdl2nyaml.py", line 1022, in xmlparse
    self.recursion_in_xml_tree(depth, xml_tree, output_yml, verbose)
  File "C:\Users\pielsticker\Lukas\FAIRMat\code\nyaml\nyaml\nxdl2nyaml.py", line 948, in recursion_in_xml_tree
    self.xmlparse(output_yml, xml_tree_children, depth, verbose)
  File "C:\Users\pielsticker\Lukas\FAIRMat\code\nyaml\nyaml\nxdl2nyaml.py", line 999, in xmlparse
    self.handle_not_root_level_doc(
  File "C:\Users\pielsticker\Lukas\FAIRMat\code\nyaml\nyaml\nxdl2nyaml.py", line 402, in handle_not_root_level_doc
    parts[i - 1] += doc
IndexError: list index out of range

Problematic input in NXenergydispersion.nxdl.xml:
<field name="energy_scan_mode" type="NX_CHAR">
    <doc>
         Way of scanning the energy axis (fixed or sweep).

             This concept is related to term `12.65`_ of the ISO 18115-1:2023 standard.

         .. _12.65: https://www.iso.org/obp/ui/en/#iso:std:iso:18115:-1:ed-3:v1:en:term:12.65

             This concept is related to term `12.66`_ of the ISO 18115-1:2023 standard.

         .. _12.66: https://www.iso.org/obp/ui/en/#iso:std:iso:18115:-1:ed-3:v1:en:term:12.66
    </doc>

The problem is in the handle_not_root_level_doc function in nyaml\nxdl2nyaml.py:
    def handle_not_root_level_doc(self, depth, text, tag="doc", file_out=None):
        """Handle docs field of group and field but not root.

        Handle docs field along the yaml file. In this function we also tried to keep
        the track of indentation. E.g. the below doc block.
            * Topic name
                Description of topic
        """
        if "}" in tag:
            tag = remove_namespace_from_tag(tag)
        indent = depth * DEPTH_SIZE
        text = self.clean_and_organise_text(text, depth)  # starts with '\n'
        docs = re.split(r"\n\s*\n", text)
        parts = []

        # Add links to previous docstring
        for i, doc in enumerate(docs):
            link_match = re.match(r"\s*\.\. _.*", doc)
            if link_match is not None:
                parts[i - 1] += doc
            else:
                parts.append(doc)

Any ideas @domna?

Yes, I added this recently. I needed to adapt the parsing here, because we split the paragraphs and handle them separately. So I just appended it to the previous part but obviously there is still something wrong with this approach. I'll give it a check


Why don't static pages (or other path'd pages) load on stage site?

https://broom.moveon.org/2018/about.html
sets window.baseAppPath = /2018/  why doesn't that load the about content or load the react site?

hmm, it's a good question. I forgot about this way of testing it. I'll take a look


Handle region overlap with new API

Closes #22
Introduces the timezones_at function, which will not throw, but can return an empty list of timezones, or multiple timezones, for given coordinates.

Codecov Report
Patch coverage: 100.00% and project coverage change: +0.13 :tada:

Comparison is base (1dc84c8) 98.46% compared to head (3315042) 98.59%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #29      +/-   ##
==========================================
+ Coverage   98.46%   98.59%   +0.13%
==========================================
  Files           1        1
  Lines          65       71       +6
==========================================
+ Hits           64       70       +6
  Misses          1        1

Impacted Files
Coverage Δ

src/TimeZoneFinder.jl
98.59% <100.00%> (+0.13%)
:arrow_up:

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


FTDI-chip based USB2DMX

How can  make work the FTDI-chip based USB2DMX cable on Hass.io?

Sorry not something I can help with here


After migration from Rpi3 to a new Rpi4 the dashboard shows only errors

The migration to Rpi4 has been successfully completed except for the Lovelace dashboard.
The configuration is in:

I have already removed and re-added the add-on once which made no difference:

There was an error on the api server. Should be working now?

Unfortunately, I still have the same problem

I think I have the same issue now. Will check it tonight

Ok, no hurry. Just let me know when I can test again.

[Same here]
Funny fact:  when accessing the relevant cards in my dashboard, the HA Companion App complains that the HA certificate is invalid  :)

Haha indeed! I noticed it too

It does indeed work again. So was pure coincidence in my case.


RefreshSession / Org Change

Howdy  -
I'm using  authkit-react: 0.5.1 >> authkit-js: 0.5 and attempting to build an organization toggle.
Not sure if I am going about this the proper way but, my digging led me trying to call refreshSession(organizationId) on the client from the useAuth hook. However it is no longer exported via #27
Is there another way I should be changing the organization_id for the session?
Thanks

Hey there, we're looking into this and will get back to you shortly!

We're having the same trouble here - looks like all we can do is force the user to logout/login right now.

There is a new switchToOrganization method on the client that can be used to switch orgs (this has also been exported to authkit-react's useAuth hook. let us know if you run into any issues with it.

Works perfect - thank you.


[docs] Add Media Query TS demo

@lksilva Thank you for working on this. It seems like you also rewrote the original demo using hooks. Please make sure that the corresponding .js file is converted as well.
That is why CI is failing: https://app.circleci.com/jobs/github/mui-org/material-ui/120140. For information about how to resolve this please check out https://github.com/mui-org/material-ui/issues/14897.

Thanks!


show full path of files likes the Aria2 WebUI

I'm sorry I don't understand, could you give more description?

for example, I may download several tasks that download files with same name. In AriaNg, it only shows filename rather than path relative to root download folder which is hard to identify the file.

AriaNg would not change this, because it would make ui too ugly. I suggest you should use other frontend.

Maybe you could use a tooltip over a question mark icon ?


sealer build on docker, failed to register layer

What happened:
尝试在容器内使用 sealer build -b lite 构建镜像。
[root@ecs6ejzdybkpr sealer]# docker run -it -v /var/lib/sealer:/var/lib/sealer -v /usr/bin/sealer:/usr/bin/sealer -v /root/sealer:/root/workspace -v /var/run/docker.sock:/var/run/docker.sock centos:7
[root@372c76d68f08 /]# cd /root/workspace/
[root@372c76d68f08 workspace]# ls
Kubefile  bin  charts
[root@372c76d68f08 workspace]# sealer build -b lite -t new-kubernetes:v<IP_ADDRESS> .
...
...
2021-09-07 06:45:26 [EROR] [build.go:57] failed to register layer, err: unable to tar on /var/lib/sealer/data/my-cluster/mount/upper, err: dir /var/lib/sealer/data/my-cluster/mount/upper does not exist, err: stat /var/lib/sealer/data/my-cluster/mount/upper: no such file or directory

报错代码定位：
https://github.com/alibaba/sealer/blob/main/build/lite_builder.go#L153
https://github.com/alibaba/sealer/blob/main/utils/mount/default.go#L33
在 liteBuilder AddUpperLayerToImage 里，先执行了 Unmount 导致 /var/lib/sealer/data/my-cluster/mount 目录被删除，删除操作执行代码为 https://github.com/alibaba/sealer/blob/main/utils/mount/default.go#L33
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:

sealer version (use sealer version):
Cloud provider or hardware configuration:
OS (e.g: cat /etc/os-release):
Kernel (e.g. uname -a):
Install tools:
Others:

overlay mounts all layers to a folder. The upper layer appears after overlay umount. Run the 'modprobe overlay' command to check whether overlay mount is supported.

overlay mounts all layers to a folder. The upper layer appears after overlay umount.
I found this problem. Because of insufficient permissions, overlay was not used to mount the container, and privileges needed to be added to the container using '--privileged=true'.
Use:
  docker run -it  --privileged=true -v /var/lib/sealer:/var/lib/sealer -v /usr/bin/sealer:/usr/bin/sealer -v  /root/sealer:/root/workspace -v /var/run/docker.sock:/var/run/docker.sock centos:7

overlay mounts all layers to a folder. The upper layer appears after overlay umount.
I found this problem. Because of insufficient permissions, overlay was not used to mount the container, and privileges needed to be added to the container using '--privileged=true'.
Use:
  docker run -it --privileged=true -v /var/lib/sealer:/var/lib/sealer -v /usr/bin/sealer:/usr/bin/sealer -v /root/sealer:/root/workspace -v /var/run/docker.sock:/var/run/docker.sock centos:7

特权模式跑，还是不行呀

overlay mounts all layers to a folder. The upper layer appears after overlay umount.
I found this problem. Because of insufficient permissions, overlay was not used to mount the container, and privileges needed to be added to the container using '--privileged=true'.
Use:
  docker run -it --privileged=true -v /var/lib/sealer:/var/lib/sealer -v /usr/bin/sealer:/usr/bin/sealer -v /root/sealer:/root/workspace -v /var/run/docker.sock:/var/run/docker.sock centos:7

特权模式跑，还是不行呀。一样的问题
@bxy4543 可以把这个 unmount 放在最后吗？https://github.com/alibaba/sealer/blob/main/build/lite_builder.go#L138

Is the same error when using '--privileged=true'?

@bxy4543 @yj-cloud 最后是怎么解决的呀~


Add nock requests for publicClient.getProductTradeStream() tests

Looks good, other than the failing test. It seems to be due to the spread operator use... which in turn is due to the unsupported node version.
I guess this would have to be updated project wide && within circle ci?

Assuming this also fixed by #60


Connection already exists - race condition

Describe the bug
I think I'm running into a race condition bug when trying to retrieve/create the same connection multiple times simultaneously.
To Reproduce
Steps to reproduce the behavior:
main.ts
import { SqliteStorageService } from "./services";

SqliteStorageService.getConnection();
SqliteStorageService.getConnection();
SqliteStorageService.getConnection();
SqliteStorageService.getConnection();

services.ts
import { CapacitorSQLite, SQLiteConnection } from "@capacitor-community/sqlite";

const DATABASE_NAME = "MwData";
const sqlite = new SQLiteConnection(CapacitorSQLite);

export async function getConnection() {
  // When HMR we need to make sure connections
  // are consistent between native layer and JS.
  // See https://github.com/capacitor-community/sqlite/issues/106
  const { result: isConsistent } = await sqlite.checkConnectionsConsistency();

  const { result: isConnected } = await sqlite.isConnection(DATABASE_NAME, false);
  if (isConsistent && isConnected) {
    return sqlite.retrieveConnection(DATABASE_NAME, false);
  }

  const connection = await sqlite.createConnection(DATABASE_NAME, false, "no-encryption", 1, false);
  await connection.open();

  return connection;
}

Console:

As seen in screenshot, the last three getConnection calls throw errors, because at the time of checking if connection existed, it didn't, then all 4 calls will go ahead and create a connection, in which only one will succeed.
Expected behavior
I expected to be able to get a connection of all calls.
Do we need a new method, something like retrieveOrCreateConnection(DATABASE_NAME) to make it an atomic operation?
Smartphone (please complete the following information):

Device: iPhone 14 Pro
OS: 16.5
Browser: Safari

Additional context
Above code reproduces the error, but in my app I'm not in control of when the calls happen, since I'm using Vue/Pinia with https://github.com/iendeavor/pinia-plugin-persistedstate-2 to persist stores, and they're automatically hydrated simultaneously at startup - one call per store.

@biesbjerg The @capacitor-community/sqlite accepts only two simultaneously connections to a database one in READ/WRITE mode and one in READONLY mode.

Really appreciate this issue, I was having a tough time with Vite HMR losing the connection betewen HMR reloads but checkConnectionsConsistency() solved it for me.
Here is my code that attempts to initialize a connection.
let sqlite: SQLiteConnection | undefined = undefined;
let db: SQLiteDBConnection | undefined = undefined;

export async function maybeInitialize(): Promise<any> {
	if(!sqlite) {
		sqlite = new SQLiteConnection(CapacitorSQLite)
	}

	try {
		await sqlite.checkConnectionsConsistency();
	} catch (e) {
		console.log('❌ Could not check connections consistency', e);
	}

	if(db && await db?.isDBOpen()) {
		console.log('⚠ SQLite already initialized');
		return;
	}

	// Try to retreive existing connection
	try {
		console.log('⚡ Trying to retrieve connection');
		db = await sqlite?.retrieveConnection('db', false);
		console.log('⚡ Retrieved connection', db);
	} catch (e) {
		console.log('Could not retrieve connection', e);
	}

	// If no connection exists, create a new one
	if(!db) {
		try {
			console.log('🚀 Initializing SQLite');
			db = await sqlite?.createConnection(
				'db',
				false,
				'no-encryption',
				1,
				false
			);

			try {
				await db?.open();

				console.log('🚀 SQLite initialized');
			} catch (e) {
				console.log('Could not connect to db', e);
			}
		} catch (e) {
			console.log('Could not open db', e);
		}
	}
}


invalid_grant when creating an order in sandbox

I'm trying to create a realistic scenario to see if SynapsePay can solve our problem.  I need to let a Company pay an Employee.
I'm creating what I consider a Company entity by doing:
company = SynapsePay::User.create({
        :email => user_params[:email],
        :fullname => user_params[:fullname],
        :ip_address => my_first_public_ipv4,
        :phonenumber => user_params[:phonenumber],
        :force_create => "yes"
      })

This returns a SynapsePay::User with attributes as i'd expect, most notably the :oauth_consumer_key, :refresh_token, and :user_id.
Next, for simplicity I'm linking a non-MFA test bank using the :oauth_consumer_key and :refresh_token I just obtained from the above SynapsePay::User.create:
    client = SynapsePay::Client.new(oauth, refresh_token)
    client.refresh_access

    bank_params = {
      :username => 'synapse_nomfa',
      :password => 'test1234',
      :bank => 'Bank of America'
    }

    client.banks.link(bank_params)

My Company now has a linked bank.
OK:  now I repeat the entire process for what I consider an Employee.  I call SynapseClient::User.create, save the OAuth credentials, and then link an account in the exact same manner using the Employee OAuth.
At this point I theoretically have a Company and Employee user set up in SynapsePay, right?
Now I want to test creating an Order to represent a payment going from the Company to the Employee:
      # Create client from Company POV
      client = SynapsePay::Client.new(company_oauth, company_refresh_token)
      client.refresh_access

      client.orders.create({
        :amount => amount,
        :seller_id => employee_id,    # The employee.user_id
        :bank_id => company_bank_id   # The company bank id from linking
        })

Does that make sense?
I can create the users.  I can link the banks.  When I go to instantiate the client for creating the Order as seen above, I can't seem to get anything but:
SynapsePay::AuthenticationError:
       {"reason": "invalid_grant", "success": false}

It sounds like you are using an invalid refresh token.
When you call refresh_access the first time for the company do you update the refresh token you are using for subsequent calls?

Hi @hrrf I am going to close this since it has sat idle for a while. Let me know if you need it reopened.


Don't try loading data in /dev/seed

If there's a problem loading programs and/or questions on staging, we are unable to load /dev/seed in order to clear the database, as this page parses the programs and questions in the database. Clearing the database then requires manually curling a POST to /dev/seed/clear.
Instead, we should have /dev/seed just include the buttons, and create a separate button to view the data in the database, to avoid this kind of situation. We may need an additional indicator that adding a program/questions was successful since we're not loading the data on this page now.  While we're at it, an additional button to take you to the index page would be nice.

To conclude this is what this issue is asking

having dev/seed page only include current buttons like Seed sample programs Seed sample questions etc.
a new button View data on dev/seed to show user the data if it's clicked
a banner indicates if adding a new program/question is successful.

@nb1701 I'll work towards this direction but let me know if my conclusion isn't right to what you're talking abt up there.


fix(dom): use matrix scale if possible

Closes #2012  @sallerli1 @clfeng - does this work in your demo?
This uses the CSS transform string matrix(...) if possible, otherwise falls back to the old technique (needed for the reference element scale detection, which could inherit the transform)
I have not added code to use the platform getScale because it "infects" everything requiring the method to be passed around to functions and making them async, which is annoying and I don't think it has a very common use case, if at all

So I found two edge cases here:

3D transforms make the matrix a bit different
If the reference is scaled AND the offsetParent is scaled, the logic breaks (which was already the case before too)

This new commit fixes all the different issues (as far as I can tell), but hurts performance a bit unfortunately.
With a 40 node-deep tree of position: relative; parents, the updates take ~2.2ms while before they're only ~0.7ms.
So I'm thinking that we should use the old method which is prone to small abberrations (and thus incorrect positioning) with fractional values, and let the user manually pass in getScale: () => ({x: number, y: number}) instead.


Removed the time fields from StatInk.

Removed time_start_at, time_end_at and time_start_at_msec.
Switched to use 'start_time', 'end_time' and 'start_ofset_msec'
in context['game'] instead.

Thanks!


Fix panic when parsing a format spec with multi-byte character

String::split_at panics if mid is not on a UTF-8 code point boundary, changed to use String::char_indices instead of String::chars().enumerate() to fix it.
Fixes https://github.com/charliermarsh/ruff/issues/1845

(ruff will need to upgrade its rustpython dependency for that issue to be fixed so you may want to change "fixes" in the PR description to "See also" so that the ruff issue isn't closed too early)

git grep 'chars().enumerate()'
common/src/cformat.rs:        let mut chars = text.chars().enumerate().peekable();
common/src/cformat.rs:        let mut iter = text.chars().enumerate().peekable();
common/src/float_ops.rs:            for (index, ch) in value.chars().enumerate() {

BTW, someone should also audit the other similar cases.


Key validation

We need an option to validate the keys on every run if:

The machine is on 10.12.5 and up
The preference to store the key on disk is also set
The preference to rotate used keys is set

If the key fails to unlock the disk, we should remove the config plist, which would force the auth plugin to regenerate a new one during next login.

Addressed in #45

Closable?


Outdated package "lints"

The "lints" package has been updated to version 2.0.0, so ROHD is using an outdated version.
Also I would suggest using a stricter set of rules. There is an article comparing linting packages.

Thanks for the link to the article.  I'm working on cleaning up a ton of lint issues with a bunch more rules based on the recommendations in the article.