How I got telnet access to two Xiaomi Mi Gateway's (EU Version: ZNDMWG02LM)

Hi,
This is just an informational message for anybody trying to open Telnet to a Xiaomi Mi Gateway (ZNDMWG02LM) and how I did it:
I have 2 gateways;

An Xiaomi Mi Gateway (ZNDMWG02LM) with version 1.5.6_0001 firmware, I have this gateway already for 2 years and it was probably having an older firmware when I bought it.

I tried the php miio-cli.php --ip 192.168.x.x --token xxxxxxxxxxxxxxxxxxxxxxxxx --sendcmd '{"id":xxxxxxxxxxxx,"method":"set_ip_info","params":{"ssid":"\"\"","pswd":"123123 ; passwd -d admin ; echo enable > /sys/class/tty/tty/enable; telnetd"}}' command without success, it said:
PHP Deprecated:  Creation of dynamic property miIO::$bind_ip is deprecated in /home/roeller/php-miio/miio.class.php on line 51
Deprecated: Creation of dynamic property miIO::$bind_ip is deprecated in /home/roeller/php-miio/miio.class.php on line 51
Устройство <IP_ADDRESS> не доступно или не отвечает.
Note that I used it with php v8.3.11

Then I tried the Mi Home Toolkit (windows version), logged in with my Xiaomi account, selected the gateway and clicked the 'Execute command' button. In the field method, I entered: set_ip_info  and in the field params I entered: {"ssid":"\"\"","pswd":"123123 ; passwd -d admin ; echo enable > /sys/class/tty/tty/enable; telnetd"}
It gave me some red error in the field under it.

Then I tried the hardware (5-2-2-2-2-2-2) method. Note that I am not sure if you have to repeat the 2 for five times or for six times (so: 5-2-2-2-2-2 or 5-2-2-2-2-2-2). The light stayed blue, but I noticed I could telnet to the device! It worked!  Username: admin, password: admin

My second Xiaomi Mi Gateway (ZNDMWG02LM) came with firmware version: 1.5.0_0026 out of the box. I did not upgrade it!

The manual says that I could add it by only using the token... well,. I couldn't... It said it couldn't communicate to the gateway.  I got the token using the Mi Home Toolkit (windows version).
I tried the php command as I did on my first gateway... so success.
Then I tried the 5-2-2-2-2-2 method (with the 2's repeated 5 times and later again with 6 times). Nothing..!
Then I tried the Mi Home Toolkit (windows version), logged in with my Xiaomi account, selected the gateway and clicked the 'Execute command' button. In the field method, I entered: set_ip_info  and in the field params I entered: {"ssid":"\"\"","pswd":"123123 ; passwd -d admin ; echo enable > /sys/class/tty/tty/enable; telnetd"}
It worked!  I got an ["ok"]  message back and I could now login to the device using telnet with username: admin and password: admin.

For both gateways when I could login to telnet, I cut/paste these 3 commands:
wget -O /tmp/curl "http://master.dl.sourceforge.net/project/mgl03/bin/curl?viasf=1" && chmod +x /tmp/curl
export PATH="$PATH:/tmp"
curl -s -k -L -o /tmp/update.sh https://raw.githubusercontent.com/zvldz/mgl03_fw/main/firmware/mgl03_update.sh && sh /tmp/update.sh
Then selected the modified firmware version 1.5.6 (option 9 in my case) and it download it.. installed it.. rebooted it... After the reboot I still had telnet access, when you login using telnet you could see the token AND the key. I could also add the device to Home Assistant.
These are just my 2 cents for people trying to get this working with different firmware versions using different methods. You can close this ticket :)

thank you, bro!


upgrade go 1.20.1

What problem does this PR solve?

Issue Number: close #170
What is changed and how it works?

/merge


BOM for case, and CAD for CNC

I have ordered some PCBs using your design. I'm based in the UKand will assemble one of these myself. I have access to metal CNC machining and would like to copy your case design if you have the BOM and CAD/STEP files to share. If you could also share a higher resolution picture of the internal assembly that would be helpful to double check the components list.
Thanks, Ben

Thanks much appreciated. I'll get things up and running and will likely 3d print something as a prototype. Once I have the dimensions sorted I'll maybe build an aluminium version like yours. Even for prototyping your measurements would still be helpful.

I finally have the pcbs and most of the components to try and assemble everything. Which type of diode and what rating did you go for D1? I have to order a schwarzy diode for another project that would be rated at 1amp and 60V do you reckon that would be enough for this usecase if i order a few?


branding: rename noVNC

The default vnc.html file has noVNC as the title and so tabs in browsers will show this. I think we should rebrand this to something like RENKU VNC/RENKU Desktop/Renku VNC/Renku Desktop.
Thoughts?
https://github.com/SwissDataScienceCenter/renkulab-docker/blob/20f653dc79d2970141f188e2f85f99baecde46b4/docker/vnc/vnc_renku.html#L17
(We have already 'doctored' this .html (to add full screen functionality))

Thoughts?: I agree
Comments:

I would prefer a name with Desktop in it, and avoid using VNC (everywhere) - not everyone knows VNC.

Should the favicon be changed? e.g. jupyterlab has its own, and it is useful when we need to find interactive environment tabs among many open tabs.

Possibly another issue for vnc.html: when in full screen, the top bar serves little purpose other than providing a clue about the interactive environment. The (un)Full Screen button is not needed since that can be done with ESC (the browser will happily remind you of that), and Ctrl-Alt-Del is only for certain OS. Should we therefore hide the bar, and regain a bit of screen space?

Agree with the above.

The current favicon is the default SDSC one - maybe it could be a renku frog favicon?
For the full screen - do you mean hide the bar when in full-screen mode? I think it'd still be good to show the option somewhere when still in non-full-screen mode

The 'full' vnc.html provides more features that can be made use of, e.g. clipboard and full screen. (See #152) We can test that out and customise the favicon etc.

Agree, the clipboard feature is needed. Note that the 'full' vnc.html stays in the way when in full screen. My preference would be to have no, or a very minimalist vnc interface in that mode. Ideally I would like to hide the bar when in full-screen mode and show it in non-full screen (that was my earlier comment).


[Feature Request] CMake option to use system-provided yyjson

Current state:
yyjson is downloaded during the build step (and vendored as of cd4a5122918aeb3f3dd34c4463d3f6f19a882851), and there's no option to use the system-provided version of the library. Gentoo has a patch that removes the download step to use the system-provided yyjson instead.
Wanted state:
An option to use the system-provided yyjson should be available in CMake or the download/vendoring should be disabled if a system-provided version of yyjson is found.
Why the change is sensible:
Many Linux distributions would benefit from this feature, as they usually want to avoid enabling networking during builds and vendored libraries.

Hello.
Fastfetch v2.0.1 has been released, with -DENABLE_SYSTEM_YYJSON support. Please check it.
Also please check if the terminal detection is correctly fixed.


Rename plugins to components

What was wrong?
We plan to make various functional changes to our plugin API as well as renaming them to components.
Since we've already started to call them components, we often find ourselves writing "Plugins / Components" when we talk about them.
I think we can already rename plugins to components to avoid confusion.
How was it fixed?
Renamed everything from plugin to component.
To-Do

[x] Clean up commit history

[x] Add entry to the release notes

Cute Animal Picture

@pipermerriam I know this touches a lot of code but it's all just renames (zero change in functionality) and it respects casing as well as singular / plural.


Precompute data for school overview + star reading pages

Speed things up!
Precompute assessment results, attendance, discipline incidents — anything that is updated in the database daily or less frequently.

Moved to https://github.com/studentinsights/studentinsights/issues/3.


[RFC] Adopts Writable BaggageContext (Better)

This adopts the baggage API in the shape of https://github.com/slashmo/gsoc-swift-baggage-context/pull/34
I have discussed with @fabianfett and @tomerd a little bit about this.

This adoption is preferable I believe, because of comments that @adam-fowler raised in https://github.com/slashmo/gsoc-swift-baggage-context/pull/34#discussion_r488416689 In general, this means is also ready for the Context requiring a set/get on the baggage, making lifes easier for other folks.
Specifically, we talked with @fabianfett why the Lambda.Context context type was a class -- since it was immutable, it avoided copying around things a lot. We can achieve the same niceness by making it a CoW type, rather than just a struct. It's a bit of work but worth it in the long run as we get the best of both worlds.

Whoop I PRed to master... fixing

closing in inactive PRs, feel free to re-open if still relevant


Fix #32. Issue number ignored

The listComments function needs an issue number but the issues arrays could contain an Issue object or a number. This modification ensures the issues arrays only contain numbers.

Build failed, could you please fix the build error?

Of course! I will fix it ASAP (probably tomorrow morning)

would love to see this merged. Thanks!

@izhangzhihao this is fixed. Don't hesitate to test it on your side if possible 😄

LGTM

@thedmeyer I did another PR to fix the actions, you can now use the issue_number parameter :tada:


Undocumented supported scenario

Under the Product transfer support, it isn't mentioned support for MOSP (PAYG) or MCA to Azure Plan or old CSP offer, although this is supported through Resource Move, as documented in this documentation:
https://docs.microsoft.com/en-us/azure/cost-management-billing/manage/transfer-subscriptions-subscribers-csp#other-subscription-transfers-to-a-csp-partner
I would suggest that this gets corrected as it is causing confusion between customers and partners.

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

ID: 39e27055-9b5c-3fb6-2a01-912ebbc302dc
Version Independent ID: 13e129d7-0973-3a10-4b1b-5a8da7f0a03d
Content: Azure subscription and reservation transfer hub
Content Source: articles/cost-management-billing/manage/subscription-transfer.md
Service: cost-management-billing
Sub-service: billing
GitHub Login: @bandersmsft
Microsoft Alias: banders

@andreatmicro Thanks for the feedback.
Assigning @bandersmsft for visibility, review and document enhancement consideration as appropriate.

Hi @andreatmico. As you noted, undocumented transfer scenarios aren’t officially supported by Microsoft. Customers with a partner could consider a manual resource move, which is a process that Microsoft isn’t involved with.
#please-close


[Codegen 88] extract Visitor to parsers primitives

Summary

Part of Codegen Issue #34872

[Codegen 88] Move the Visitor.js file from parsers/flow/Visitor.js to parser-promitives.js. Copy the TSInterfaceDeclaration(node: $FlowFixMe) function and add it to the Visitor.js just copied. Remove the parsers/typescript/Visitor.js. Make sure we use the same Visitor in both parsers. (We will end up with a Visitor that is the union of the two, being able to handle both Flow and TS. In this specific case, this trade-off make sense as it allows us to remove one file, several duplicated lines for a small price.)

Changelog

[Internal][Changed] - Extract Visitor function to parsers primitives and remove both parsers visitor files
Test Plan

yarn jest
yarn flow
yarn lint
yarn format-check

@tarunrajput could I just ask you to rebase on top of main? We should have fixed the issues in CI.

/rebase

/rebase


Need improvements for '18C Chemistry' section

Due to huge amount of wikipedia's description, i just omitted some for quick creation of documents.
Please add it later if time allows.

As prototype is no longer available, this issue will closed.


Support for Database Auth Variable Override

Sorry for the long wait, and thank you! This got finally merged with https://github.com/kreait/laravel-firebase/commit/d49b5fb2aa4cdc05b8651549f3a8b5cd0265fbe6 🥳


Easy to forget to copy changes to newer sdf/1.X folders when merging forward

Description
I have noticed several pull requests that add features or fix documentation to a version of the SDFormat specification contained in the sdf/1.X folders that doesn't get propagated to newer folders when merging forward. For example, camera type aliases were added to the documentation of sdf/1.6/camera.sdf and sdf/1.7/camera.sdf in #514, but were not added to sdf/1.8/camera.sdf when merged forward to sdf11 in #520. This is easy to forget and not documented as part of our forward porting policy. We should determine an improved process and document it. If possible, we could try to create automated testing to remind us about this, though I'm not sure how.

@scpeters One option could be to merge all sdf/1.X descriptions into a single description and introduce //versionadded, //versionchanged, and //depreciated, similar to what sphinx is doing in rst.
The full signature of the elements could be something like
<versionadded ver="1.X">Description of new feature (see also this issue/PR), e.g., Added the @degrees attribute (#589).</versionadded>
<versionchanged ver="1.X">Description of how the behavior of this element has changed and, possibly, how to upgrade or keep the old behavior. (potentially link to PR/issue)</versionchanged>
<depreciated ver="1.X">Migration instructions on how to substitute the depreciated element.</depreciated>

With these elements added to the meta-language, you can choose how to respond to them when generating docs/xsd/etc. You could keep the current doc structure and simply ignore all elements with a higher //versionadded or lower //depreciated version and add all the //versionchanged texts as additional description to the docs where applicable. Alternatively, you can have a single version of the docs that shows everything and potentially add filters for the tags that hide unavailable elements for a specific version (deprecated/added later).
Either way, you get a clean dev environment where you only maintain a single version and where all changes forward/backward port directly.

@scpeters One option could be to merge all sdf/1.X descriptions into a single description and introduce //versionadded, //versionchanged, and //depreciated, similar to what sphinx is doing in rst.

that sounds pretty nice


Should differentiate between Microsoft work vs microsoft personal accounts

It's not clear whether the term "Microsoft account" refers to a work account, a personal account, or whether it works with both. Even if it does work with both, it's worth being explicit about that fact because developers are used to having to distinguish between them.

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

ID: a4c264c0-0c5c-298e-bb45-9b4891c8d162
Version Independent ID: ce69b990-0b4c-abda-cd2d-68f85cd8031e
Content: Microsoft Account external login setup with ASP.NET Core
Content Source: aspnetcore/security/authentication/social/microsoft-logins.md
Product: aspnet-core
Technology: aspnetcore-security
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

It works for both. To test it, most developers use personal account.
cc  @Tratcher
I could add:
To test it with your Microsoft personal account, select personal account.
But I thought that was too obvious.

Clarification: "This sample shows you how to enable users to sign in with their work, school, or personal Microsoft account using the ASP.NET Core 3.0 project created on the previous page."

@Tratcher thanks. Fixed in #17800


too many values to unpack

While finetuning following the instruction , an error "too many values to unpack" happens in "for iteration, (images, targets, idxs, positive_map, positive_map_eval, greenlight_map) in enumerate(data_loader, start_iter):" (line 92 of maskrcnn_benchmark/engine/trainer.py). What is this problem?
The command is "python tools/eval_odinw.py --config_file configs/pretrain/mq-glip-l.yaml --opts 'MODEL.WEIGHT MODEL/mq-glip-l' --setting 5-shot --add_name large --log_path 'OUTPUT/custom_log/' --task_config configs/custom_dataset.yaml"

Hi,
This is due to a bug here, which gives an additional output "path". I have fixed it in the latest version. To solve this problem, you can either download the latest version or simply delete the "path" here.


Adding potential if

ENSVAR-4601

@olaaustine you need to add the new attrib to the attribs file https://github.com/EBI-G2P/ensembl-gene2phenotype/blob/release/105/sql/attrib_entries.sql#L108

Merged into release/105 and master


Incorrect Terraform code sample using list of blocks

Issue
There is an error in the Terraform app-service.tf code sample.
The  ip_restriction and headers are lists of maps
ip_restriction = [{
  service_tag               = "AzureFrontDoor.Backend"
  ip_address                = null
  virtual_network_subnet_id = null
  action                    = "Allow"
  priority                  = 100
  headers = [{
    x_azure_fdid      = [azurerm_cdn_frontdoor_profile.my_front_door.resource_guid]
    x_fd_health_probe = []
    x_forwarded_for   = []
    x_forwarded_host  = []
  }]
  name = "Allow traffic from Front Door"
}]

Fix
As per the Terraform documentation, the ip_restriction and headerscan be one or more blocks.
Therefore, the code sample should look like this:
ip_restriction {
  service_tag               = "AzureFrontDoor.Backend"
  ip_address                = null
  virtual_network_subnet_id = null
  action                    = "Allow"
  priority                  = 100
  headers {
    x_azure_fdid      = [azurerm_cdn_frontdoor_profile.my_front_door.resource_guid]
    x_fd_health_probe = []
    x_forwarded_for   = []
    x_forwarded_host  = []
  }
  name = "Allow traffic from Front Door"
}

I have tested and the first option does not work with terraform_1.5.4 and azurerm_3.67.0, the second one works.

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

ID: 6f31797b-fb35-e4f9-7694-3cfaffc135c9
Version Independent ID: d7435fe4-62ea-47e1-5bf4-f3ca25c0ab19
Content: Quickstart: Create an Azure Front Door Standard/Premium profile - Terraform
Content Source: articles/frontdoor/create-front-door-terraform.md
Service: frontdoor
GitHub Login: @johndowns
Microsoft Alias: jodowns

@dumitrux
Thanks for your feedback! We will investigate and update as appropriate.

@dumitrux
Thank you for your feedback! We have assigned this issue to the author to review further and take the next course of action.

@dumitrux Thanks. This is a change in a recent AzureRM provider version. The example works as-is when you follow the tutorial and use version 3.27.0 of the provider.
I'll submit a version update shortly - it might take a a bit of time to get updated.
#please-close

PR: https://github.com/Azure/terraform/pull/242

@dumitrux The updated PR has been merged, which means that our docs should update (I think within about 24 hours) :)

It has been updated!
Thanks for the update and quick response @johndowns and all the participants :)


Make vader negation case insensitive

From my point of view negated function of vader sentiment intensity analyzer is not working correctly now, as it looks for NEGATE parts in case-sensitive words, while NEGATE contains case-insensitive ones. This can be ilustrated by a simle example:
In [1]: from nltk.sentiment.vader import SentimentIntensityAnalyzer
In [2]: sid = SentimentIntensityAnalyzer()
In [3]: print(sid.polarity_scores('Not as good as previous'))
{'neu': 0.58, 'pos': 0.42, 'compound': 0.4404, 'neg': 0.0}
In [4]: print(sid.polarity_scores('not as good as previous'))
{'neu': 0.624, 'pos': 0.0, 'compound': -0.3412, 'neg': 0.376}
I suppose check in negated function should be case-insensitive. I tried to find similar issues or pull-requests, but haven't found any, which is surprising, as from my point of view this thing is quite huge. So please correct me if I'm wrong.

Nice work, thanks @sbagan!


Fixed #27416 -- ModelFormSet with queryset accepts invalid POST data for outer models and create unexpected empty data.

ModelFormSet with queryset arg will accept outer model and create invalid empty data.
Details is written in https://code.djangoproject.com/ticket/27416#ticket.
In this PR I changed save_existing_objects method and run tests.
It may be solved to fix def _construct_form or so, but there is not good way to skip constructing  forms.

buildbot, add to whitelist.


timeless routes

New route identifier: 65e93643e5cf769f/00000011--d800a8444b
It has the dongle ID, a 32 bit route counter, and a unique value. The counter is mostly to retain some of the convenience that the datetime provided for developers.

[x] update tools
[x] show route time in useradmin
[x] upload segments in creation order
[x] research/training stack ready

Unable to open a local route with Cabana with the timeless name.
Renaming the folder with date and time solve the problem.


Fix building with platformio

For some reason, including this library in a platformio project tries to build the tester. Wonder if it's setting all option to ON by default?

@TheQuinbox I am on my phone right now but the export is only for packing the repo. Check out the following I think it will solve the issue
https://docs.platformio.org/en/latest/manifests/library-json/fields/build/includedir.html
https://docs.platformio.org/en/latest/manifests/library-json/fields/build/srcfilter.html

@gyoder, I've added it. I can't test if it works quite yet, but I will soon, or you can if you want.


migrate loops until error

When I want to create all my tables, I use a certain order of calling all migrates.
in some I have relations to other entities.
if I have a relation in entity Department with a relation to User, and vice versa,
migrate starts looping like madness until there is a nesting error.
This didn't happen to me before, because I programmed the relations later than I created the tables.
But now I've throw all tables away, to have a fresh setup.
Is there a possibility in first: create all tables without foreign keys, and then implement the foreign keys?
I editted the resolver to skip:
//$this->addForeignKeys($table);
then run it all to create the tables
then uncomment that line, and run it again.
That works, but I think this should work out of the box.
So a migrate should always be a 2-step thing.

Let me see the entities.

Do you have any recursive relations setup that might be causing this? Can you isolate the issue down into a reproducible test case with just a few of your entities?

In the following 2 classes, you can see there is a department relation in User, and a user relation in Department.
What happens in the migration is the following:
Make a sql statement with the creation of table (user) with fields,
if there are foreign keys, then add to that sql statement the foreign keys
But wait... In the foreign keys there is another table (department) that does not exists.
Let's create that first.
Make a sql statement with the creation of table (department) with fields,
if there are foreign keys, then add to that sql statement the foreign keys
But wait... In the foreign keys there is another table (user) that does not exists.
Let's create that first.
And this is what the loop is all about.
In my opinion, this is what probably should fix it:
Make a sql statement with the creation of table (user) with fields,
create that table in the database
if there are foreign keys, then make a sql statement with the foreign keys
try to add the foreign keys to the table (user)
But wait...error... In the foreign keys there is another table (department) that does not exists.
Let's create that first.
Make a sql statement with the creation of table (department) with fields,
create that table in the database
if there are foreign keys, then make a sql statement with the foreign keys
try to add the foreign keys to the table (department)
... at this point, the table (user) does exist in the database, so the creation succeeds
now... where were we... oh yes, there is a task open...
try to add the foreign keys to the table (user)
... at this point, the table (department) does exist in the database, so the creation succeeds
And the above situation is only valid for 2 classes, but think about what it will do with 3 or more classes that has common dependencies.
class User extends \Spot\Entity
{
    public static $table = 'users';
    protected static $mapper = 'Mappers\User';

    public static function fields()
    {
        return [
            'id'               => ['type' => 'integer', 'primary' => true, 'autoincrement' => true],
            'email'            => ['type'  => 'string'],
            'login'            => ['type'  => 'string'],
            'name'             => ['type'  => 'string'],
            'password'         => ['type'  => 'string'],
            'role_id'          => ['type'  => 'integer', 'index' => true],
            'appdepartment_id' => ['type'  => 'integer', 'index' => true],
            'appcreatedby_id'  => ['type'  => 'integer', 'index' => true],
            'appcreatedon'     => ['type' => 'datetime', 'value' => new \DateTime()],
            'appdeletedby_id'  => ['type'  => 'integer', 'index' => true],
            'appdeletedon'     => ['type' => 'datetime', 'value' => new \DateTime()],
            'appmodifiedby_id' => ['type'  => 'integer', 'index' => true],
            'appmodifiedon'    => ['type' => 'datetime', 'value' => new \DateTime()],
            ];
    }

    public static function relations(\Spot\MapperInterface $mapper, \Spot\EntityInterface $entity)
    {
        return [
            'appdepartment' => $mapper->belongsTo($entity, 'Entities\AppDepartment', 'appdepartment_id'),
            'approle'    => $mapper->belongsTo($entity, 'Entities\AppRole', 'role_id')
        ];
    }
}

class AppDepartment extends \Spot\Entity
{
    protected static $table = 'appdepartment';
    protected static $mapper = 'Mappers\AppDepartment';

    public static function fields()
    {
        return [
            'id'               => ['type' => 'integer', 'primary' => true, 'autoincrement' => true],
            'name'             => ['type' => 'string', 'required' => true],
            'shortname'        => ['type' => 'string', 'required' => true],
            'appcreatedby_id'  => ['type'  => 'integer', 'index' => true],
            'appcreatedon'     => ['type' => 'datetime', 'value' => new \DateTime()],
            'appdeletedby_id'  => ['type'  => 'integer', 'index' => true],
            'appdeletedon'     => ['type' => 'datetime', 'value' => new \DateTime()],
            'appmodifiedby_id' => ['type'  => 'integer', 'index' => true],
            'appmodifiedon'    => ['type' => 'datetime', 'value' => new \DateTime()]
        ];
    }

    public static function relations(\Spot\MapperInterface $mapper, \Spot\EntityInterface $entity)
    {
        return [
            'createdby' => $mapper->belongsTo($entity, 'Entities\User', 'appcreatedby_id'),
            'modifiedby' => $mapper->belongsTo($entity, 'Entities\User', 'appmodifiedby_id'),
        ];
    }

}

I have fixed int locally it quite another way, because I really needed a quickfix.
In Query\Resolver there is function migrate.
That call function
$newSchema = $this->migrateCreateSchema();
which I changed into:
$newSchema = $this->migrateCreateSchema($tableExists);
In that function migrateCreateSchema I have:
if ($tableExists)
{
// FOREIGN KEYS
$this->addForeignKeys($table);
}
So when I call
usermapper->migrate()
departmentmapper->migrate()
and then call them again
usermapper->migrate()
departmentmapper->migrate()
Everything works fine


WrappedPiErc20 interface

Codecov Report

Merging #50 (b894f55) into master (a014f31) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #50   +/-   ##
=======================================
  Coverage   82.89%   82.89%
=======================================
  Files          34       34
  Lines        1964     1964
  Branches      298      298
=======================================
  Hits         1628     1628
  Misses        336      336

Impacted Files
Coverage Δ

contracts/powerindex-router/WrappedPiErc20.sol
93.75% <100.00%> (ø)

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 a014f31...b894f55. Read the comment docs.


Add formulas to work with Clickhouse Dictionaries

Hello there!
Dicts are very useful when you work with Clickhouse DataBase and Huge Datasets.
Please, add Formulas to use dictionaries in Datalens
Clickhouse functions are as well that (IMO) should be made
dictGetStringOrDefault
dictGetUInt64OrDefault
dictGetFloat64OrDefau
and in DataLens these have parameters
func('dict':String,'field':String,'key':int64)
or
func('dict':String,'field':String,'key':diffTypes,['key2']:diffTypes) -- to use with tuple dicts
Regards,
Yury

Hey @skaradub!
Closing this issue in favour of #106. Feel free to add comments regarding the desired behaviour/features there.


Operator to check if intersecting sets

Given two array, check if there is at least one common item.
E.g.
[
  "INTERSECT",
  [
    "$Location1ClassOfBusiness",
    "$Location2ClassOfBusiness",
    "$Location3ClassOfBusiness"
  ],
  [
    "123456-0-0",
    "123457-0-9"
  ]
]

[
  "OR"
 [],
  [
    "$Location1ClassOfBusiness",
    "$Location2ClassOfBusiness",
    "$Location3ClassOfBusiness"
  ],
  [
    "123456-0-0",
    "123457-0-9"
  ]
]


Stop poking my completions!

Somehow, cider and company are conspiring to produce the behavior pictured below, where the REPL prompts seem to somehow be "poking" lines of the completion popup one character to the right.

I don't even know what to say, other than maybe I should leave it like this because it's hilarious.

See https://github.com/tumashu/company-childframe.

Closing as stale: I no longer use Clojure, and nobody else has complained about this bug.


Document additional branch protection option in README (required_linear_history)

This proposes a tweak to the README so that folks know that required_linear_history is available without resorting to  issue spelunking.
Related Issues
This has been requested at least twice:

#220 (this may have been related to the enhancement, to be fair)
#292

Notes
I'm open to this turning into an "Add additional supported options to README" PR.

I'm open to this turning into an "Add additional supported options to README" PR.

if there are additional updates you'd like to contribute, i'm happy to discuss


SerializableUIOptionBase should contain value/default-values

currently the values are stored in Options.cs and default values are in the legacy code that loads data.
We need a central place to store values/default values. it is better to be all in one place.
I think we should put them all in SerializableUIOptionBase.
related: #1372 says that all fields of this type should also be moved into one place.

@aubergine10 do you agree with this?

I think it depends on outcome of discussions in https://github.com/CitiesSkylinesMods/TMPE/issues/1372

Performance wise virtual property call cannot be optimised.
Maybe a non virtual getter might not be a bad idea.


Spilo image in example doesn't have resize2fs, resizes fail

The example image to be used with the operator needs resize2fs installed to allow increasing cluster capacity: registry.opensource.zalan.do/acid/spilo-cdp-10:1.4-p8
https://github.com/zalando-incubator/postgres-operator/blob/master/manifests/configmap.yaml#L14

Sidenote: i found it hard to navigate images in the zalando registry:

fetching a list of tags (curl https://registry.opensource.zalan.do/v1/repositories/acid/spilo-cdp-10/tags)
no idea about dockerfiles used (unless intensive googling at times)

It'd help to have access to this info.
Thanks!
PS: having to change a single value in the manifest and get automatic resize, so good :fire:

better endpoint to list tags including timestamp: https://registry.opensource.zalan.do/teams/acid/artifacts/spilo-cdp-10/tags
all our Zalando Docker images contain a so-called scm-source to point to the source git repo and commit, here you go: https://registry.opensource.zalan.do/teams/acid/artifacts/spilo-cdp-10/tags/1.4-p13/scm-source

@hjacobs - Think i'm going full unrelated to the original issue, but please allow me this. I've been trying to figure out the right spilo image to update to, but it's still very hard to see which artifact to use (eg: demospilo, spilo, spilo-10, spilo-cdp-10, ...) and which tag. Even though there's the endpoint providing commit info, correlating the data is cumbersome so I can't really tell which image brings me what novelty.
Usually the git tag <-> docker image tag association feels fastest to navigate/identify (to me at least, but I've got patience to learn other conventions)
I then thought of building the images myself, for a bit more predictability, but i need to figure out how to do it since it uses Zappr from zalando, which deepens the mistery.
In the name of this great piece of software, the postgres operator, please send a helping hand to devs trying to wrap their heads around Spilo's strange image version management.
Do you have any addional hints on how to follow these builds? Is there any other correlation except for that pier-one endpoint associating builds with commits?

@valer-cara thank you, I think this is valid feedback and IMHO both the PostgreSQL Operator and Spilo should use github releases to point to the correct latest release (and Docker image).

We have recently added the p8 release to the spilo release tab: https://github.com/zalando/spilo/releases
Oleksii is updating it to p11 as we speek.
For the operator we are aiming for the 1.0 once we have update the go client version to a more recent version to work with k8s 1.10+
A good source for the images to use imho is the example manifest we provide here.

@valer-cara at the moment, using spilo-10:p11, but also check https://github.com/zalando/spilo/releases from time to time to see if there are new releases.


Created Injective_Polkadot_Bridge.md

Grant Application Checklist

[x ] The application-template.md has been copied, renamed ( "project_name.md") and updated.
[x ] A BTC or Ethereum address for the payment of the milestones is provided inside the application.
[x ] The software of the project will be released under the Apache license version 2.0 as specified in the terms and conditions.
[x ] The total funding amount of the project is below USD $30k for initial grant applications and $100k for follow-up grants at the time of submission.
[x ] The initial PR contains only one commit (squash if needed before submitting your PR).
[x ] The grant will only be announced once we successfully delivered the first milestone.

 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.

 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.

Thanks for the grant application and all the effort you put into this.  But to be honest, I see very little chance for this grant to get the required approvals. First, we are currently not interested in supporting additional bridges, since we have quite a few already under development and want to see these deployed in production first. Second, we usually don’t support solidity code implementations, simply because we are no solidity experts and don’t know what contracts already exist or could provide a lot of valuable feedback regarding the implementation. It might make sense to apply for the solidity specific parts via the Moonbeam Grants Program. I will leave the grant application open, so that the rest of the committee has a chance to comment on it.

Thanks for the grant application and all the effort you put into this.  But to be honest, I see very little chance for this grant to get the required approvals. First, we are currently not interested in supporting additional bridges, since we have quite a few already under development and want to see these deployed in production first. Second, we usually don’t support solidity code implementations, simply because we are no solidity experts and don’t know what contracts already exist or could provide a lot of valuable feedback regarding the implementation. It might make sense to apply for the solidity specific parts via the Moonbeam Grants Program. I will leave the grant application open, so that the rest of the committee has a chance to comment on it.

The danger of supporting additional bridges at this point is that anyone can create their own Polkadot-independent chain and apply for a grant to bridge to Polkadot. Looking through Injective Protocol's GitHub repos, I haven't seen it gain much traction at the moment. Until the bridges which are currently under implementation are live, I would be very selective in approving further ones.
Closing due to inactivity from other Grant Team members. Feel free to re-apply with another proposal in the future.

The danger of supporting additional bridges at this point is that anyone can create their own Polkadot-independent chain and apply for a grant to bridge to Polkadot. Looking through Injective Protocol's GitHub repos, I haven't seen it gain much traction at the moment. Until the bridges which are currently under implementation are live, I would be very selective in approving further ones.
Closing due to inactivity from other Grant Team members. Feel free to re-apply with another proposal in the future.


[2567] Add ability add a subordinate subject to course creation

Context
https://manage-courses-prototype.herokuapp.com/new/V978/subject
Secondary courses need to be able to have a subordinate subject in addition to the master subject.
Changes proposed in this pull request
Add a second subject dropdown to the subjects/new page.
Guidance to review

Checklist

[x] Make sure all information from the Trello card is in here
[x] Attach to Trello card
[x] Rebased master
[x] Cleaned commit history
[x] Tested by running locally

 Add ability to add a subordinate subject to course creation

All the content seems to be missing on the prototype so I can't compare this with that.


[FLINK-36076] Set isSchemaChangeApplying as isSchemaChangeApplying for thread safe.

As discussed in https://issues.apache.org/jira/browse/FLINK-36076 , Current, we apply schema change asynchronous.
SchemaChangeThreadPool will set isSchemaChangeApplying as true when apply schema change event. And the main thread which handle operater event will check isSchemaChangeApplying.
For thread safe, this should be volatile.

@leonardBang @PatrickRen @ruanhang1993 , CC

The PR title and commit content confuse me a little, @loserwang1024 could you check your PR ?


Only enable the sexy bash prompt in iTerm.app

Only enable the sexy bash prompt in iTerm.app, not Terminal.app to prevent the <blink> effect.
You may or may not prefer to move the check to the .bash_prompt file itself.
Also, this uses $TERM_PROGRAM since I don’t know of a way to detect color support. When you feed Terminal.app tput colors, it returns 256. LIES.

Relevant: http://blog.sanctum.geek.nz/256-colour-terminals/


audience REQUIRED for just one trust domain?

This issue is somewhat related to the aud claim comment I made earlier via mail to the authors.
The spec states that audience parameter is REQUIRED in the Txn-Token request. It contains the trust domain. To my understanding, every trust domain has a single (logical) Txn-Service. A Txn-Service is usually configured to only issue Txn-Tokens to one and only one trust domain. Also the authenticating clients which the Txn-Service accepts in incoming requests are part of that trust domain. After all, they have been registered within that trust domain. It might be possible that the Txn-Service is used in multiple trust domains. In those scenarios I fully agree that the audience parameter is REQUIRED. My guess is, though, that the most deployed setup will incorporate a single trust domain.

So, with the move to bind the sub claim to the trust domain identified by the aud claim, I believe we should keep it to be required. I also think that there will be deployments with multiple Transaction Token Services (each using their own unique signing keys) that service a single trust domain.
What is the benefit of making the aud claim optional?

What is the benefit of making the aud claim optional?

Mostly brevity reasons. Also, if it is defined as REQUIRED, it will be enforced by 3rd party libraries which a company might want to integrate in their components/services. This essentially forces the company (albeit using Txn-Tokens within their trust domain only internally) to define and set the aud claim without added benefit.
Having aud REQUIRED also implies that the value needs to be validated somehow. I think this aspect should be mentioned in the spec, if it is really required. So every Token service must have the audience parameter validated as well as every service/worker receiving a Txn-Token must validate the aud claim against a configured accepted value (or list of values).

I think aud is required to prevent a TraT from being reused in a domain it's not supposed to be used in.

Closing as per discussion in meeting on 2/2/24: https://hackmd.io/@rpc-sec-wg/Hk0ggi5ca


Is the app okay for phones enrolled in Android Enterprise management?

Describe the bug
Many people in the UK get mobile phones from their work place.
Employees with company provided android phones may have their device setup with Android Enterprise features enabled that may include global proxies, vpns, custom root certificates installed and enhanced monitoring of applications and activity of the device.
This list might help understand some of the features: https://developers.google.com/android/work/requirements
Which raises a few issues:

Should employers forbid this application on corporate devices?
Should employers distribute this application on corporate devices (user's may not have install privileges)?
How does this affect the privacy promises of the application to users?
Are there any code changes that the application can take to protect privacy on these company provided devices?

Expected behaviour
Users and employers are at least provided guidance on this topic and understand the risks (if any).
Given the privacy goals of the application, efforts should be made to minimise the privacy risks here; although to what extent that is possible may depend on how intrusive the Android Enterprise features are at intercepting network traffic, recording application behaviour and accessing device storage.

Hi Mark, I don't think we've yet issued guidance on corporate devices.  It is up to the corporate owner if they want to prevent this (or any other) app from being installed.
I'll see if we have plans to make such guidance available.
From my understanding of the Android Enterprise / Work Profile, an admin wouldn't be able to see the data generated by the app and stored on the handset. But if you have any specific mitigations in mind, please let us know.

I'm pasting this message in every active GitHub issue, so you may receive duplicate notifications.
Today, I'm happy to announce that NHSX has released the full git commit history for the Isle of Wight Beta apps.

Android - https://github.com/nhsx/COVID-19-app-Android-BETA
iOS - https://github.com/nhsx/COVID-19-app-iOS-BETA

As discussed, we have redacted API keys, sensitive domain names, and some of the developers' personal details. I am still waiting on final approval to publish the server-side code.
I would like to personally thank the community for your comments, bug reports, and vulnerability disclosures. They all went into helping the development process.
The beta trial of this app has now ended and we've moved to the next phase of app development. It is our intention to publish the source code of future apps as the binaries are released to the public.
Once again, thank you for being part of this.
Terence Eden
Head of Open Technology - NHSX

How was this issue resolved?

This particular project has ended - this app is no longer in use

In that case this repository should have been archived instead of closing all the unresolved issues.


log.enabled CVar is not what it seems like, and crashes when enabled under Mono.

The log.enabled config variable doesn't actually toggle logging. It toggles entity component message logging, which gets logged into an IMessageLogger.
IMessageLogger uses some Windows specific service thing to connect to SS14.Tools.MessageProfiler, which uses WPF and is also Windows specific.
The entire config variable is deceiving and attempting to use it on non-Windows systems just causes a NotImplementedException (Mono). Two suggestions:

Tear it out entirely.
Replace it with a non-Windows centric system.
Do nothing except prevent it from being used from Mono.

No matter what it needs clarification.

I'm taking this because it's directly conflicting with #250 and it just seems dumb in general.


PoE2 - Add support for Flail item class when it is added to the game

We will create this issue once new classes are released, if any work needs to be done.


fix:use Os.posix_fallocate to pre-allocate file length

Good job! please fix style check issue first, ref here.

You also can run ./gradlew okcheckDebug locally.


Support Fahrenheit

Currently the app is hardcoded to celsius, it should correctly read fahrenheit as well
The bluetooth api supports the ability to read what value is being reported, use that

Addressed by just hiding the C
values will correctly be returned by the mug based on the setting it's specified as
No current plans to support changing between these from the macos app


Cloudidentity Batch Request Execute failure

I receive a googleapiclient.errors.HttpError: <HttpError 404 when requesting https://cloudidentity.googleapis.com/batch returned "Not Found">  when attempting to run a cloudidentity batch execute. I believe this is a backend issue related to https://cloudidentity.googleapis.com/batch being a bad uri.
Code Example
cloudidentity = build("cloudidentity", "v1", credentials=valid_credentials, cache_discovery=False)
batch_delete_devices = cloudidentity.new_batch_http_request(
            callback=handle_on_delete
)
device_id = sample_id
name=sample_name
batch_delete_devices.add(cloudidentity.devices().get(name=name), request_id=device_id)
batch_delete_devices.execute()

Executing the individual request without batching runs without issue.
Environment details

OS type and version: macOS Catalina 10.15.7
Python version: 3.8.2
pip version: 19.2.3
google-api-python-client version:  1.8.0

Stack trace
 python3.8/site-packages/googleapiclient/http.py", line 1515, in execute
    self._execute(http, self._order, self._requests)
  /python3.8/site-packages/googleapiclient/http.py", line 1449, in _execute
    raise HttpError(resp, content, uri=self._batch_uri)
googleapiclient.errors.HttpError: <HttpError 404 when requesting https://googleapis.com/batch/cloudidentity/v1 returned "Not Found">

Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!

I'm going to close this issue as obsolete as I believe the problem is already resolved. Please feel free to re-open this issue if you're still seeing the problem.
If the issue still persists, please let me know the result after running the following command:
curl -i -X POST -H "Content-Type: multipart/mixed" -F "payload1={\"name\":\"payload1\"};type=application/json" -F "payload2={\"name\":\"payload2\"};type=application/json" https://cloudidentity.googleapis.com/batch -vvvv


Downloading files from compute node

I have looked into several pages and alternatives of Azure batch documentation, but I did not find how to programmatically download files from compute nodes. The example only shows how to retrieve output files manually from portal, which is not as practical, what if you need to retrieve output files from 100 nodes. Perhaps, such functionality doesn't exist in Azure batch, as of today.

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

ID: e5b65a18-51c8-7778-4630-5e266b626342
Version Independent ID: 66ad901b-74cb-5135-56ff-3b7de6897aa3
Content: Run a parallel workload - Azure Batch Python
Content Source: articles/batch/tutorial-parallel-python.md
Service: batch
GitHub Login: @laurenhughes
Microsoft Alias: lahugh

Thanks for the feedback! We are currently investigating and will update you shortly.

@sdk-bonsai In this tutorial, Output files are placed under Blob service in a storage account.
You can programatically access(Rest, CLI and powershell) the contents from the storage account. You can also use Storage explorer (install it on your laptop) to view, upload and download files in the storage account.

But, is there a way to download from batch compute nodes? That doesn't seem to be documented anywhere. Doing it manually using Azure portal is possible for a few files, but for many files, it is not practical.

Batch compute nodes can scale up and down based on load. Please share If there is  any use case which requires that feature.
We can always attach Azure files to the Batch nodes and place the required files on those shares. Lates we can access them easily.

@sdk-bonsai is there any update

I will close this out for now. If you need additional help please let me know and we can reopen and continue.

Hello @jakaruna-MSFT , I wasn't able to find a  way to download files from batch compute nodes to local machine or using azcopy or using outputfile. Not sure how to do it other than manually.  This has put lot of burden on me, as I am stuck with downloading hundreds of files manually. There is no single example anywhere on Azure documentation.  I just want a simple way to download azure batch compute node files programmatically, from all tasks. Not sure what update you asked from me above.

I am looking for downloading script that would allow doing the download in picture below/attached so that I can download 100 files generated in separate 100 tasks.

Hey @sdk-bonsai - there are two things we support and I'm not sure which one you're asking about, so I'll give a bit of detail on both.
Output Files on an Azure Batch task
This is a way to get files from your compute node into Azure Storage as part of the execution of the Batch task itself. This happens before the task has completed (but after your command line has exited). This is the preferred way to get data off of Batch nodes for normal Tasks, but it is not currently supported for Job Prep, Job Release, or Start Tasks. You can read more about this feature and how to use it here. The sample there is in C# but you can see how this feature is used in one of our Python samples here as well.
Note that using this feature gets your files into Azure storage - to download them locally you'll need to use the Azure Storage SDK, AZCopy, or some other tool.
Downloading files from the compute nodes directly
We support APIs to do this. You specify the name of the task and the file produced by it. You can see these APIs.
This requires that the compute nodes which ran your tasks are still around when you call the APIs (otherwise these APIs will fail). As such it's not recommended to do this pattern unless you're sure the VMs will still be around when you do.
There is a 3rd option which is that in your task executable/process itself, you run AzCopy or some other tool to gather whatever files you need and put them somewhere for you. Generally speaking doing one of the two above things is easier but it depends on your use-case and where you wanted to store things.
Hope that helps.

I am thinking more of the Second Option Downloading files from the compute nodes directly. But, I don't see a complete example. Did you mean using this:
<get_from_compute_node(pool_id, node_id, file_path, file_get_from_compute_node_options=None, custom_headers=None, raw=False, callback=None, **operation_config)>

Yes, that's the right API.
There's also another one get_from_task I believe which takes (job_id, task_id, file_path)

I wish there was an example, as the syntax is unclear. I tried a few ways, but it doesn't work.
import azure.batch.operations.file_operations as FileOperations
Then, below:
FileOperations.get_from_compute_node(pool_id='<name_of_pool_id>', node_id= '<name_of_node_id', file_path='workitems\myfolder\job-1\Task145\wd\logs', file_get_from_compute_node_options=None, custom_headers=None, raw=False, callback=None, **operation_config)
Is there an example somewhere?


Set boot order

In a multi-disk machine, boot order needs to be set, otherwise
the overcloud machines will fail to boot.
Signed-off-by: Charles Short<EMAIL_ADDRESS>

Can one of the admins verify this patch?


UBoat Always offline

UBoat Always offline

Can you give us more information about this?
Thanks in advance

This is when the server is turned on.
Otherwise, another error.
This is a debug mod


Embedded video not working

The embedded Channel 9 video on this page under the section "Videos" does not seem to be working.

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

ID: 68737ab0-23e4-6127-3aef-3fec513c9612
Version Independent ID: b127eb18-aac2-30b4-752c-ef1f50574976
Content: Azure DevOps Server to Services Migration overview - Azure DevOps
Content Source: docs/migrate/migration-overview.md
Product: devops
Technology: devops-migrate
GitHub Login: @KathrynEE
Microsoft Alias: kaelli

@andreas-nesheim - The video appears to have been removed.  You may find this video a better resource: 2020 Intro to Azure DevOps Migration Tools. I will be removing the link to the non-existing video from the article.


Sets UI Changes: Connected Backend Endpoints + Added TTS

Still working on:

Getting Speech API Backend call to work
Using Dictionary when creating sets, to ensure all words are valid

Above force push was to rebase on main as there were some changes to ClaritySDK


Nullable parameter tests should not be emitted if a parameter has a default value

Consider the function
public void SomeFunction(string identifier, ISomeInterface interfaceParam = default)

Currently, we would emit null parameter checks for the above method. These are not needed, as the intent is clearly that null is permissible. For string cases, we should still emit string empty and white space checks.

Resolved in 0.137 🎉


Update comboTreePlugin.js

From time to time the following error occurs: 'unrecognized expression: unsupported pseudo: icontains'.
According this post the reason is a not escaped symbol ':' on
row 380.

Thanks...


example texture_binding_array crashes: bindless texture arrays can't be owned

Bevy version
main since https://github.com/bevyengine/bevy/pull/16368
What you did
cargo run --example texture_binding_array
What went wrong
thread 'Compute Task Pool (2)' panicked at examples/shader/texture_binding_array.rs:149:9:
bindless texture arrays can't be owned

fixed by #16641


Timesheet - 07/12/2021 - Daniel

Task 1
Marketing Meeting
Proof of Work

https://docs.google.com/document/d/1gGBnFT0TPyWH3WJcslhVLyNnqxmXTP4eIz2xXki-b4k/edit#
https://docs.google.com/document/d/10c8R3aQPcbICp5pw26TCXOtjsoHEiSXQJbN8NOrhNMs/edit

Time Spent
2 hours

Total Time Spent
2 hours
Account Number
e2ad581361e15447475425c97aeb934a408ccebdedc7de6a1b209baa5603ff1a

I requested access to the second doc :)

I believe Led is the owner of the document, only him can give you access

@Kycermann Access granted


wineWow64Packages.unstable: 8.20 -> 8.21

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for wineWow64Packages.unstable is: An Open Source implementation of the Windows API on top of X, OpenGL, and Unix
meta.homepage for wineWow64Packages.unstable is: https://www.winehq.org/
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 8.21 with grep in /nix/store/5gayh730ns06q0wq5ls4wm4i9md53l88-wine-wow64-8.21
found 8.21 in filename of file in /nix/store/5gayh730ns06q0wq5ls4wm4i9md53l88-wine-wow64-8.21

Rebuild report (if merged into master) (click to expand)

22 total rebuild path(s)

22 package rebuild(s)

First fifty rebuilds by attrpath
grapejuice
pipelight
winbox
wine-staging
wine64Packages.staging
wine64Packages.stagingFull
wine64Packages.unstable
wine64Packages.unstableFull
winePackages.staging
winePackages.stagingFull
winePackages.unstable
winePackages.unstableFull
wineWow64Packages.staging
wineWow64Packages.stagingFull
wineWow64Packages.unstable
wineWow64Packages.unstableFull
wineWowPackages.staging
wineWowPackages.stagingFull
wineWowPackages.unstable
wineWowPackages.unstableFull
yabridge
yabridgectl

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/5gayh730ns06q0wq5ls4wm4i9md53l88-wine-wow64-8.21 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A wineWow64Packages.unstable https://github.com/r-ryantm/nixpkgs/archive/90a2ac34a10798ba399cd75d2658a36b10dd82b7.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/90a2ac34a10798ba399cd75d2658a36b10dd82b7#wineWow64Packages.unstable

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/5gayh730ns06q0wq5ls4wm4i9md53l88-wine-wow64-8.21
ls -la /nix/store/5gayh730ns06q0wq5ls4wm4i9md53l88-wine-wow64-8.21/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review took longer than 45m and timed out

Maintainer pings
cc @avnik @7c6f434c @bendlas @jmc-figueira @reckenrode for testing.

#273232


Upgrade all delivered code to .NET 6.0

All Libraries have now been upgraded to .NET 6.0 and still support .NET 5.0


using shape gives error : InvalidValueError: not an Array

Current behavior
I am having a map and set of users. If no user is selected I am displaying last recorded positions of all the users. If 1 user is selected, I am using shape tag to display his movements. It works while a user is selected. But, If user is removed from selection box, I am getting error .  InvalidValueError: not an Array.  But, the map is displayed correctly. I am using ng-if conditions in shape tag and marker tag.  If I remove shape tag , I am not getting errors.
Expected/desired behavior
No errors
Code Implementation
<ng-map center="12.97, 77.58" zoom="8">
    <marker ng-if="!selected.runner" ng-repeat="pos in markersArray track by $index" position="  {{pos.lat}}, {{pos.lng}}" title="{{pos.title}}" icon="/assets/bike.png"></marker>
    <marker ng-if="selected.runner && markersArray[0]" position="{{markersArray[0].lat}}, {{markersArray[0].lng}}" title="{{markersArray[0].title}}" icon="/assets/bike.png"></marker>
    <shape ng-if="selected.runner && path.length >0" name="polyline" path="{{path}}" geodesic="true" stroke-color="#5B2C6F" stroke-opacity="1.0" stroke-weight="2"></shape>
 </ng-map>

Please take a look at this, https://ngmap.github.io/#/!shape_with_ng_repeat.html.
and if still not resolved create a plunker with "Run in plunker" button" to reproduce your error.

Inserting dummy values in 'path' array like path=[[0,0]], solved my problem. In my code, before inserting actual values in array, I am clearing it. So, these dummy values wont cause problem.

please close this if resolved


Web app crashed when opened in private tab

I had the web-app of my self-hosted ntfy instance open in a normal Firefox tab. It was working fine, showing several subscriptions.
I opened a Firefox private browsing tab and opened the web-app of my self-hosted ntfy instance, https://ntfy.example.org.
The app opened up showing an error page instead of the expected content: "Oh no, ntfy crashed" with this stack trace:

DatabaseClosedError: InvalidStateError A mutation operation was attempted on a database that did not allow mutations.
 InvalidStateError: A mutation operation was attempted on a database that did not allow mutations.
  at undefined (DatabaseClosedError: InvalidStateError A mutation operation was attempted on a database that did not allow mutations.:undefined:undefined)
  at undefined ( InvalidStateError: A mutation operation was attempted on a database that did not allow mutations.:undefined:undefined)
  at from (../node_modules/dexie/dist/modern/dexie.min.mjs:16613:1)
  at from (../node_modules/dexie/dist/modern/dexie.min.mjs:16801:1)
  at from (../node_modules/dexie/dist/modern/dexie.min.mjs:15440:1)
  at from (../node_modules/dexie/dist/modern/dexie.min.mjs:10172:1)
  at from (../node_modules/dexie/dist/modern/dexie.min.mjs:10929:1)
  at from (../node_modules/dexie/dist/modern/dexie.min.mjs:11290:1)

DatabaseClosedError: InvalidStateError A mutation operation was attempted on a database that did not allow mutations.
 InvalidStateError: A mutation operation was attempted on a database that did not allow mutations.
  at Ym@https://ntfy.foad.me.uk/static/js/main.3e6ef68a.js:2:950278
  at Nf@https://ntfy.foad.me.uk/static/js/main.3e6ef68a.js:2:883982
  at n@https://ntfy.foad.me.uk/static/js/main.3e6ef68a.js:2:923169
  at P@https://ntfy.foad.me.uk/static/js/main.3e6ef68a.js:2:355181
  at S@https://ntfy.foad.me.uk/static/js/main.3e6ef68a.js:2:354906
  at C@https://ntfy.foad.me.uk/static/js/main.3e6ef68a.js:2:355291
  at Ff@https://ntfy.foad.me.uk/static/js/main.3e6ef68a.js:2:883242
  at im@https://ntfy.foad.me.uk/static/js/main.3e6ef68a.js:2:919841
  at Xm

I can reproduce it at the moment: any time I open it in a private-mode tab it does the same.
Version: as served by the Docker image id sha256:2fd60d0cd40195ca2d41e32131f79cdfabc6e3f766bf6acc4efcb5524771ce39.
Config: the only config option I set is --behind-proxy.
I am not waiting on a fix: I don't need this to work, I just stumbled across it.

I'm closing this as "won't fix" because as I said:

It would be tremendeous effort to make it work, with very little benefit. Why would anyone use an app with local-only storage in private mode? The use cases are pretty much non-existant.

Hope you understand.

As I said originally, I have no need for the app to work in private browsing mode: I simply happened to be in that mode and it crashed. When it crashed there was no clue that this was the reason and a known limitation. Then (being the curious type) I investigated further.
This seems ideal:

I could make it crash nicer showing why/that it doesn't work...

But now that I myself know how to avoid the crash, it's nowhere on my priority wish list. I won't argue any further.

Re-opening as this just happened to another user. So I suppose I'll add a nicer error message :-D

Did this. I hate it, but I also don't want to re-implement everything for a use case that doesn't exist.

Compared with a crash that's night-and-day better. Thanks!


ldm.module has no attribute PositionNet

Hi, I am getting the following error after I have all the required libraries set up using the given requirements.txt with conda environment.

Thanks

Hi, did you follow our instructions on mode inference? You can run the model inference following this code:
python inference.py
--num_images 8
--output OUTPUT/
--input_json demos/demo_cat_dog_robin.json
--ckpt pretrained/instancediffusion_sd15.pth
--test_config configs/test_box.yaml
--guidance_scale 5
--alpha 0.8
--seed 0
--mis 0.36
--cascade_strength 0.3 \
I just tried it locally, it worked fine. Let me know if it does not work for you.


Harvester Plugin: Remove harvester pkg from master

Following the release of 2.6.9/harvester 1.1.0 the harvester plugin code will live in harvester/dashboard
The harvester plugin 1.0.3 code will still live in rancher/dashboard but in the release-harvester-plugin-v1.0.3 branch
The harvester plugin code from master should be removed
See confluence for details

@richard-cox should we try to target this for 2.7.next1 or should we push it to later?

I'm having second doubts about this. There's been a number of breaking changes that have been caught with the code in master that would have only been discovered late in the day. Which does mean we need to consider releasing a new bundled version with the next1. That's separate though, this change doesn't have to go in to next1

@richard-cox Do we still plan to do this for next2?

This will likely need re-reviewing after Harvester 1.2.

Hi @richard-cox  Do we have plans to remove harvester-manager pkg from the rancher/dashboard repo?   If it could also be maintained as a separate repo, then the rancher and harvester releases would be much freer!

@WuJun2016  At the moment it lives in rancher/dashboard so is built and shipped with the Rancher release. Moving it out of the repo will mean it can be released outside of the Rancher process, however it won't then be installed by default (users will have to manually do this). That's probably something Product side would need to agree / acknowledge. cc @mantis-toboggan-md


-initFromDefaultSourceForConfiguration for FlutterDartProject is awkward to use from Swift

The -initFromDefaultSourceForConfiguration initializer for FlutterDartProject is awkward to use in Swift code because the automatically generated interface is:
public convenience init!(fromDefaultSourceForConfiguration: ())

Looking at it, it's not even obvious how to call it. (Spoiler: FlutterDartProject(fromDefaultSourceForConfiguration: ()))
I am by no means fluent with Swift, but my understanding is that this is a rather unusual construct.
It probably would be better if FlutterDartProject provided a bare -init method that does the same thing.  If it's important for the fromDefaultSourceForConfiguration part to be emphasized in the name, perhaps a class factory method could be used instead.

Looking at the FlutterDartProject init methods some more, -initFromDefaultSourceForConfiguration currently doesn't seem useful.  It either calls -initWithPrecompiledDartBundle: or -initWithFlutterAssets:dartMain:packages:, but since it passes nil for all arguments, both paths end up doing the same thing.
I therefore am inclined to just deprecate (and eventually remove) -initFromDefaultSourceForConfiguration and expose the existing -init method in the interface.


Feature request: install local extensions

Now can only install extensions into

Windows %USERPROFILE%.vscode\extensions
Mac $HOME/.vscode/extensions
Linux $HOME/.vscode/extensions

I think it is more convenient if can install an extension in local project, then every project can have different extensions.

Maybe something like an .vscode/extensions.json

+1
Should be just check at /.vscode/extensions in project folder the same way as global extensions

Oh this is duplicated to #347


AWS networking and VPC resources to v1beta1

What problem are you facing?
Would like a v1beta1 version of networking and VPC resources
How could Crossplane help solve your problem?
Move networking and VPC resources to v1beta1 standards
References

https://crossplane.io/docs/v0.7/api/crossplaneio/stack-aws/network-aws-crossplane-io-v1alpha3.html

finished via https://github.com/crossplane/provider-aws/pull/182

@hasheddan just realized that RouteTable is still at v1alpha4, so keeping this open for now.


"nuxt start-dev" or similar for integration testing

What problem does this feature solve?
I'm building a full-stack PWA which has full-stack integration tests. Currently in those integration tests, Nuxt is running in full 'dev' mode which means the following:

It has to rebuild the entire application when it starts up, which with Vuetify can take ages
It is running the webpack-dev-server, which is completely unnecessary for integration tests

An alternative would be to run nuxt build before starting the tests and then nuxt start for testing the app. The problems are:

nuxt start forces the dev flag to false, meaning that the app cannot run without ssl if the redirect-ssl middleware is installed (for example)
nuxt build hardcodes the values of environment variables at the time the app was built, which in my case will be before I know what API_URL (for @nuxtjs/axios should be)

What does the proposed changes look like?
A new command nuxt start-dev or nuxt start-test that is the same as nuxt start except:

The dev flag is set to true, and
(if possible) it respects changes to environment variables made after the build. I don't understand the build system fully for Nuxt so I appreciate this second option might not be possible.

What do you think? If you like the idea, let me know how I can help!

This feature request is available on Nuxt community (#c9205)

Hi. You can set an env variable during build like this:
{
  env: {
    STAGE: process.env.STAGE
  }
}

And then align runtime behavior according to it. Like disabling redirects.

Hi @pi0 - thanks for the workaround... I will certainly take a look.
I believe my case is a common enough use case that it might warrant a deeper look, however.

For integration testing, I believe it is best practice to keep it consistent and as much as possible near to production environment. Even something like HTTPS should be testable (something may be broken only via https protocol)
The dev: true condition is used for many community modules to consider we are in real development mode with webpack middleware, etc so it can easily break all of them.

OK - thanks for the explanation. Instead, then, (assuming I want to continue testing in dev mode) would it be possible to create a version of nuxt run dev that runs a pre-built copy of the application? My main concern is the large boot time during compilation in the middle of a test.

@pedantic-git I can probably help better if have an example when you need dev flag? (inside plugin, module, config, or...?)

A preview of what happens if we combine build + dev would be like this: (not tested or recommended! use with caution! :D)
modules/dev.js:
module.exports = function() {
  if (!this.options.dev && process.argv.find(a => a === '--dev')) {
    this.options.dev = true
  }
}
```

And register in `nuxt.config.js`:

```
export default {
  modules: [
    '~/modules/dev.js'
  ]
}
```

Then when running `yarn build --dev` or `yarn start --start` the `dev` flag will be set to true.

I think it's perhaps just a misalignment of what I mean by 'integration test'.
My Rails app that provides the API is running in 'test' mode, which can be configured separately from dev and production, and I would ideally like the Nuxt app that runs alongside it to be configured in the same way.
For example, I know I don't care about SSL, so I would like the redirect-ssl module to do its normal thing of ignoring its behaviour in test mode.
But Capybara (a Ruby web browser for tests) starts the Rails app on a custom port so there's not really any way to start Nuxt until after the tests begin executing, and it only gives 60 seconds for any servers to start up, which is sometimes not long enough to start Nuxt.
In my mind, the solution to this was to separate the build and start steps for this 'test mode' Nuxt so that we're not waiting for the compilation during application startup, but you may have an alternative idea!
I believe this is (or should be) quite a common use case for a Nuxt app with a backend written in another language/framework.
Your workaround above might well be what I need for now, but I'd like to explore the possibility of something more "official"?

@pedantic-git Can add a CI step before tests to do nuxt build? nuxt start itself should take few seconds.
How do you register redirect-ssl middleware? We can easily use an environment variable to disable it. Actually, anything is bundled needs a rebuild in order env changes taking effect but all node.js related parts can be changed even after build using env.

@pi0 It's registered like this:
  serverMiddleware: [
    'redirect-ssl'
  ],

I can't readily find the docs to conditionally disable it using an env.
The other envs that are an issue are API_URL / API_URL_BROWSER (from @nuxtjs/axios) which will change depending on the run env. If they can only be set during the build it's probably OK for me to rewrite the backend test so it always runs on the same port instead of a random one.

(PS. Thank you so much for your help and understanding so far! Once this is done I promise I'll write it up in some form for others to take advantage of.)

@pi0 question, if I run nuxt start for integration testing on a bitbucket pipeline, it just hangs, I was wondering if there is a way to run nuxt start in quiet mode so I can use cypress to do the e2e testing.

@pi0 question, if I run nuxt start for integration testing on a bitbucket pipeline, it just hangs, I was wondering if there is a way to run nuxt start in quiet mode so I can use cypress to do the e2e testing.

@jay8t6 were you able to find a solution for this?


Create Turtle.py using turtles.

@mahalakshmi-08 it's a repo for adding information about beginners contributors participating in hacktoberfest2021, not a repo for any other code


Make TweenPerformerReact spit out a bunch of moveTo plans

If #56 successfully happens, Performers essentially become Rx operators - taking a stream of {time, pointer events} and mapping them to a stream of transform plans, which each framework can then consume and apply to a target.

The original JS implementation asked too many simultaneous questions:

How do we solve the technical challenges of motion on the web platform (e.g. missing platform infrastructure for transitions, gestures, etc.)?
What does an idiomatic JS API feel like for Material Motion?  (Probably a lot more functional than the Java/ObjC implementations.)
What tools should we use to include the best open source workflows?
How do we make those tools work well within Google?
How can we improve the Material Motion architecture to enable even more expression?

Trying to solve these questions simultaneously had a tendency to retard project inertia.  Thus, we're now aiming for a more faithful port of the native architecture to JavaScript, using the Angular team's TypeScript tooling to achieve internal/external harmony.  This will enable us to focus on the hard technical problems (e.g. how does a transition work on the web).
Sometime in the future, we can revisit the other questions around functional APIs and expanding the number of things Material Motion can express.  For now, closing all issues that aren't relevant to our near-term plans.


Node.js Best Practices - How to become a better Node.js developer in 2018

For me, one should start writing.  i have just started blogging as well on https://www.nodexplained.com/. I find Secure Your Node.js Web Application by Karl Düüna extremely informative on security aspects of web application programming. I learnt a lot by reading this book.

I've been hunting and hunting to find a good answer to this. Can we use the new ES6 modules stuff? If so, how? If not, why not? I'd love to hear your answer. I just recently saw one article suggest implementing both https://gist.github.com/domenic/4748675 .

Look at the date for the gist, the situation has changed since then.
Jake Archibald does a pretty good job explaining current support for modules in browsers and Contentful does a good job explaining if we should stop bundling now that modules are a thing
Those articles and a crapload of testing are a good starting point.

Neither of those discusses what I brought up - using ES6 modulse in Node.js (unless I'm missing something). I may not have said so explicitly, but didn't think I had to since the article is titled "How to become a better Node.js developer in 2018".

You're right. I misread the original issue and added the wrong links to the discussion.
These are the links for Node:

An Update on ES6 Modules in Node.js
ES6 modules, Node.js and the Michael Jackson Solution
ES6 Modules in Node 9.3.0
Using ES modules natively in Node.js

Sorry about the confusion

Thanks! I wish some of these had shown up in my searches.


feat: syntax highlighting for Markdown

I saw a few specs with code blocks in their description. This PR adds syntax highlighting to the Markdown rendering. Languages are auto-detected.
Wdyt?
The theme definitely needs some love.

Looks great, we just need to use our colours (--default-theme-color-yellow, green, etc...) so it works across all themes

Awesome! Updated the scheme:

SSG works 🎉


Update MD file on new branch 2017-34-18_11-12-39

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestCon.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


delegate to different enum variants

closed #44
Usage:
enum Enum {
    A(A),
    B(B),
    C { v: C },
}
struct A {
    val: usize,
}
impl A {
    fn dbg_inner(&self) {
        dbg!(self.val);
    }
}
struct B {
    val_a: String,
}
impl B {
    fn dbg_inner(&self) {
        dbg!(self.val_a.clone());
    }
}
struct C {
    val_c: f64,
}
impl C {
    fn dbg_inner(&self) {
        dbg!(self.val_c);
    }
}
impl Enum {
    delegate! {
        /// transformed to
        ///
        /// ```rust
        /// match self {
        ///     Enum::A(a) => a.dbg_inner(),
        ///     Enum::B(b) => b.dbg_inner(),
        ///     Enum::C { v: c } => c.dbg_inner(),
        /// }
        /// ```
        to match self {
            Enum::A(a) => a,
            Enum::B(b) => b,
            Enum::C { v: c } => c,
        } {
            fn dbg_inner(&self) ;
        }
    }
}

Thanks! Now just please squash the commits and I'll merge it.

Thanks! Now just please squash the commits and I'll merge it.

Could you just use Github's squash merge feature.

GH's squash button behaves a bit silly, so I don't like to use it :) Thank you very much for the PR! I'll mention you in the changelog and release a new version soon.


[AIRFLOW-XXX] Add VeeR VR to org list in README

Make sure you have checked all steps below.
Jira

[X] My PR addresses the following Airflow Jira issues and references them in the PR title. For example, "[AIRFLOW-XXX] My Airflow PR"

https://issues.apache.org/jira/browse/AIRFLOW-XXX
In case you are fixing a typo in the documentation you can prepend your commit with [AIRFLOW-XXX], code changes always need a Jira issue.

Description

[X] Here are some details about my PR, including screenshots of any UI changes:

Tests

[X] My PR adds the following unit tests OR does not need testing for this extremely good reason:

Commits

[ ] My commits all reference Jira issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters (not including Jira issue reference)
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

Documentation

[ ] In case of new functionality, my PR adds documentation that describes how to use it.

When adding new operators/hooks/sensors, the autoclass documentation generation needs to be added.

Code Quality

[ ] Passes flake8

Codecov Report

Merging #4250 into master will decrease coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #4250      +/-   ##
==========================================
- Coverage   77.82%   77.82%   -0.01%
==========================================
  Files         201      201
  Lines       16367    16367
==========================================
- Hits        12738    12737       -1
- Misses       3629     3630       +1

Impacted Files
Coverage Δ

airflow/models.py
92.25% <0%> (-0.05%)
: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 2fd409d...eca8cb4. Read the comment docs.

@XD-DENG Sorry, I forgot add [ci skip] in commit message.

@pishilong  no worries, I forget it all the time too ;-)

thanks @pishilong and @XD-DENG


Set git-core paths in snap

This PR sets the paths to find git-core in the snap packaging. It fixes the issue to migrate repository from e.g. Github:
Migrate repository from https://github.com/artivis/some-repo.git failed: Clone: exit status 128 - warning: templates not found /usr/share/git-core/templates
fatal: Unable to find remote helper for 'https'

Successfully tested locally.
Closes https://github.com/go-gitea/gitea/issues/12388

@popey FYI.

Are these paths guaranteed to exit?

Are these paths guaranteed to exit?

Yes, /usr/{lib,share}/git-core are the default paths and $SNAP is snapcraft root prefix path. Note that the default paths (without the prefix) do not exist hence the issue.


Questions for Rate Limiting

Expected Behavior
I setup a demo for Ocelot Rate Limiting function. Period: 1m, PeriodTimespan: 10, Limit: 5. As per the Documentation for Rate Limiting, The count of request should be limitted as 5 in 1 min, and then after 10 seconds, it will works again.
Actual Behavior
I setup a console project for sending the request. It will sleep 1s after got a response. Below is the output:
2019/6/3 13:33:31
OK, This is from localhost:8001, path: /api/ocelot/5
2019/6/3 13:33:32
OK, This is from localhost:8001, path: /api/ocelot/5
2019/6/3 13:33:33
OK, This is from localhost:8001, path: /api/ocelot/5
2019/6/3 13:33:34
OK, This is from localhost:8001, path: /api/ocelot/5
2019/6/3 13:33:35
OK, This is from localhost:8001, path: /api/ocelot/5
2019/6/3 13:33:36
TooManyRequests, API calls quota exceeded! maximum admitted 5 per 1m.
2019/6/3 13:33:37
TooManyRequests, API calls quota exceeded! maximum admitted 5 per 1m.
2019/6/3 13:33:38
TooManyRequests, API calls quota exceeded! maximum admitted 5 per 1m.
2019/6/3 13:33:39
TooManyRequests, API calls quota exceeded! maximum admitted 5 per 1m.
2019/6/3 13:33:40
TooManyRequests, API calls quota exceeded! maximum admitted 5 per 1m.
2019/6/3 13:33:41
OK, This is from localhost:8001, path: /api/ocelot/5
2019/6/3 13:33:43
OK, This is from localhost:8001, path: /api/ocelot/5
2019/6/3 13:33:44
OK, This is from localhost:8001, path: /api/ocelot/5
2019/6/3 13:33:45
OK, This is from localhost:8001, path: /api/ocelot/5
2019/6/3 13:33:46
OK, This is from localhost:8001, path: /api/ocelot/5
2019/6/3 13:33:47
TooManyRequests, API calls quota exceeded! maximum admitted 5 per 1m.
2019/6/3 13:33:48
TooManyRequests, API calls quota exceeded! maximum admitted 5 per 1m.
2019/6/3 13:33:49
TooManyRequests, API calls quota exceeded! maximum admitted 5 per 1m.
2019/6/3 13:33:50
TooManyRequests, API calls quota exceeded! maximum admitted 5 per 1m.
2019/6/3 13:33:51
TooManyRequests, API calls quota exceeded! maximum admitted 5 per 1m.

It is 5 successes, 5 rejects as period.
Then I change the RateLimitOptions as Period: 1m, PeriodTimespan: 10, Limit: 6, and I got 6 successes, 4 rejects as period.
My Questions

Does the time of last reject = The time of the 1st success + PeriodTimespan?
After the PeriodTimespan, request will works again, but in a Period(1min here), the count of successful requests is more than the limit(5 times here). What is the logic between Period and PeriodTimespan? Is there anything wrong with my setting?

Steps to Reproduce the Problem
Api service:
[HttpGet("{id}")]
public async Task<IActionResult> Get(int id)
{
	var result = await Task.Run(() =>
	{
		return $"This is from {HttpContext.Request.Host.Value}, path: {HttpContext.Request.Path}";
	});
	return Ok(result);
}

Ocelot.json:
{
  "DownstreamPathTemplate": "/api/ocelot/{postId}",
  "DownstreamScheme": "http",
  "DownstreamHostAndPorts": [
	{
	  "Host": "localhost",
	  "Port": 8001
	}
  ],
  "UpstreamPathTemplate": "/ocelot/ratelimit/{postId}",
  "UpstreamHttpMethod": [ "Get" ],
  "Priority": 2,
  "RateLimitOptions": {
	"ClientWhiteList": [
	  "markadmin"
	],
	"EnableRateLimiting": true,
	"Period": "1m",
	"PeriodTimespan": 10,
	"Limit": 5
  }
}

Console project:
public static async Task Main(string[] args)
{
	using (var client = new HttpClient())
	{
		for (var i = 0; i < 100; i++)
		{
			Console.WriteLine(DateTime.Now);

			var result = await client.GetAsync("http://localhost:4727/ocelot/ratelimit/5");
			Console.WriteLine($"{result.StatusCode}, {result.Content.ReadAsStringAsync().Result}");
			System.Threading.Thread.Sleep(1000);
		}
		Console.Read();
	}
}

Specifications

Version:13.5.1
Platform:.net core 2.2.0
Subsystem:

One more question. I am trying to use the LoadBalancer in this demo, so I change the reroute as below.
{
  "DownstreamPathTemplate": "/api/ocelot/{postId}",
  "DownstreamScheme": "http",
  "DownstreamHostAndPorts": [
	{
	  "Host": "localhost",
	  "Port": 8001
	},
        {
	  "Host": "localhost",
	  "Port": 8002
	}
  ],
  "UpstreamPathTemplate": "/ocelot/ratelimit/{postId}",
  "UpstreamHttpMethod": [ "Get" ],
  "Priority": 2,
  "RateLimitOptions": {
	"ClientWhiteList": [
	  "markadmin"
	],
	"EnableRateLimiting": true,
	"Period": "1m",
	"PeriodTimespan": 10,
	"Limit": 5
  },
    "LoadBalancerOptions": {
    "Type": "RoundRobin"
    }
}

As the document say that
RoundRobin - loops through available services and sends requests.
I do the test as below.
Firstly, both downstream services are running correctly, and the results are correct. Then I try stopping the 8001 service, Ocelot will still transfer request to 8001 service, so I get a half bad request results. Is it correct?

@markjiang7m2, can you please tell me from where you are getting markadmin in RateLimitOptions:ClientWhiteList ?

@markjiang7m2 on Jun 3, 2019

Hi Mark!
Thanks for bug reporting!
Current Rate Limiting issues
We have #1590 which seems is very similar to your user scenario. I would say #1590 is the duplicate of this issue. Please confirm that fact!
So, I'll keep this issue open, to let it be fixed together with #1590...

@markjiang7m2 commented on Jun 5, 2019

Regarding Load Balancer and RoundRobin...
That is already known bug #1513 which we accepted. Seems your case is related to #1041 also.

Rate limiting bug was fixed in #1590
Bug fix is available in versions 23.3.0+


Django connection issue with RTM v2 client

We are refitting to use the v2 RTM client and still observe some stale Django connection issues.  Ie, new DB connections are made for each message that gets processed (thread), but they are apparently not being released.  I have tried using the close_old_connections & also ensure_connection, but seems like it doesn't really help.  I saw you did the changes for the slack-bolt thing here.  Were there going to be similar changes to the v2 RTM client?  Do you have any recommendations in the interim?
Originally posted by @pbrackin in https://github.com/slackapi/bolt-python/issues/280#issuecomment-1185742647

Thanks @seratch for following up on this.  Sorry I didn't get to respond a little sooner.    But I wanted to also point out that I found a solution that seems to work ok.   What I did was call connections.close_all() at the end of my message handler.  Also I call close_old_connections() in my main loop which runs every 15 secs atm.   We use MySQL for this project, and so I figured out that running sudo mysqladmin -i 1 processlist was a good way to see what is happening with the DB connections.  Anyway, with those 2 Django calls in place, the connection list stopped growing with new messages coming in, and I no longer get the OperationalError(s) like "MySQL has gone away".
Before I figured out this solution, I was about to just move all the incoming messages to a Q and have the processing all done by a dedicated processing thread - which would probably be ideal from a DB connection standpoint since that would allow Django to recycle connections in the pool.   The cost of that would be some additional delay in the processing for Q / d-Q stuff.  But with my solution, everything seems ok now.
Anyway - let me know what you think of my approach.   I will get back on adding in the code changes you suggested.

@pbrackin Thanks for your reply. Most of the things you mentioned should be good ways to go but

What I did was call connections.close_all() at the end of my message handler.

This should be close_old_connections  for safety. Refer to https://github.com/slackapi/bolt-python/pull/509 for more details.
Let me know if my above suggestions work for you. Once it is effective, we are happy to enhance the RTM v2 client to enable developers to pass callback functions for this use case.


STM32F0xx reorganisation of hal folder

Reorganisation of hal folder of all STM32F0xx target using the same principle as @bcostm already did with cmsis folder before and as I did for STM32F4xx hal folder.
running build_travis, extended by missing F0 targets (NUCLEO_F070RB and DISCO_F051R8), is OK
singletest.py runs fine for all F0 targets with DTCT_1 ,EXAMPLE_1 ,MBED_10 ,MBED_11 ,MBED_12 ,MBED_16 ,MBED_2 ,MBED_23 ,MBED_24 ,MBED_25 ,MBED_26 ,MBED_34 ,MBED_A1 ,MBED_A21 ,MBED_A5 ,MBED_A6 ,MBED_A7 ,MBED_A9
Except MBED_24 for NUCLEO_F030R8 and DISCO_F051R8. But they failed before too.

Shall we split HAL implementation in some cases to own target's folders? It's for KLXX for example, that spi is not same for KL25Z and KL46Z, therefore spi code file is inside each target's folder.
I noticed in us_ticker and uart in this PR, there are lot of "#ifdef this target, or another target". Can you look at it ?

Here is a sumary of the target specific parts in the hal:

analogin_api

STM32F091 uses another sampling time as the other boards. I think such small differences are OK.

mbed_overrides

These differences are work in progress. They are removed step by step by @bcostm.

pwmout_api

Here are two different blocks with pwm - pin assignment. I'm not sure but I think this can't be changed. It is a mater of further investigation. But it is just one code block, which is different. So I think this would be OK and moving into target specific folders is not necessary.

serial_api

Here are much more different code blocks. But the main difference is the number of available uart blocks: 2, 4 or 8. This could be moved to the target specific folders but nevertheless most parts of the code are the same. So this is a edge case.

sleep

Here are three different parts: timer functions using Timer1, Timer 2 and based on Systick. The last one is work in progress. Again @bcostm is changing this step by step. Perhaps the code would looks better when it is moved to target specific folders. Perhaps @bcostm can give a comment about the future plans.

us_ticker

I think it would be possible to equalize this part a bit. But you are right, it would looks better when it would be moved to target specific folders.

My suggestion is solve 5. and 6. through using the original files and move them into target specific sub folders, leave 1., 3. and 4. as they are in the PR. 2. will be changed soon by @bcostm, I sure, I suggest to leave in the current state. Later on, when the ticker issue is complety finished (removing Systick functions) then we can move the files 5 and 6 back into the common F0 hal folder.
When you agree with this I can change the PR in this way. Or perhaps @bcostm has other ideas.

As this diff is not trivial (= too many changes), we can merge this as it is. The second round would be to unify generic implementation for these platforms. Will be easier to look at it after the merge.

That is a good idea.

@ohagendorf we should resolve the conflict the merge caused. I will do it in the next days, or you can be faster.

Sorry, that I was not fast enough.


Freezing on Mac while loading

Description
Re-Logic screen comes up, fades away into darkness then freezes.
Steps to Reproduce

Download tModLoader and install on Mac
Open Terraria through Steam
Hope that it works and cry when it doesn't

Expected behavior
Game starts as normal with tModLoader logo being in corner
Actual behavior
Never-ending darkness and game freeze than can only be solved with a force quit
Reproduction frequency
90%
Versions
tModLoader <IP_ADDRESS>
Mods
No mods installed
Additional Information
Similar to #237 and #400 but it still happens after the supposed fix for those two bugs. No crash report or error message is displayed- hopefully it's fixed soon!

It's fixed in the next release.


Modify postgres query for listing tables/columns

#205  👈
main

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

Join @RTLS and the rest of your teammates on  Graphite


Add --auth support for impersonating an authenticatedAccount state.

Thought it would be useful to users to move between Squarespace authenticatedAccount states using the CLI API. When the --auth argument is passed to the CLI, this update simply removes the JSON object during template rendering, while keeping it in the cache. Fixes #187.

Solid 👍


Option to Load all sounds with Repeat ON

Hi.
Can you add an option to set all sounds with repeat on?
Thank you for the great job

This is now implemented in v-2.8.0.