Anvil allows execution of invalid signed transactions

Component
Anvil
Have you ensured that all of these are up to date?

[X] Foundry
[X] Foundryup

What version of Foundry are you on?
0.2.0
What command(s) is the bug in?
No response
Operating System
macOS (Apple Silicon)
Describe the bug
Anvil seemingly allows for the execution of invalid transactions. I'm able to create an invalid transaction, by having a signature on a transaction where the s value is greater than n/2 these transaction should be invalid https://github.com/ethereum/EIPs/blob/master/EIPS/eip-2.md#specification, so even though the signature recovers to the correct / address and public key it shouldn't be able to execute. Here's the decoded version of the signed transaction -- https://rawtxdecode.in/?rawTx=0x02f873827a6980849184e72a849184e72a82753094b89ff4e9ad6b33f69153fa710f9849f51712eec4872386f26fc1000080c080a02b3416d8559c481663227484c8f7dea8705b6e1109d67bb3d0d760ef3b271503a0ec9ca501276589e81c0381db75e978cba19497bc0c15670df49c3a9ef411d70c.
and also a gist of how I was executing the transaction -- https://gist.github.com/k-xo/670520238fbb1c1b950b3bf10211f6be
and some of the anvil and script logs

paging @prestwich
we're using this:
https://github.com/gakonst/ethers-rs/blob/d25351436378967e4cf3cc4e1abdb6c4f7ca073d/ethers-core/src/types/signature.rs#L87-L94
from here:
https://github.com/foundry-rs/foundry/blob/619f3c56302b5a665164002cb98263cd9812e4d5/crates/anvil/core/src/eth/transaction/mod.rs#L1066-L1074

That recover function will accurately recover signers, but will not ensure that the signature is canonical and consensus acceptable.
You need to invoke signature.normalize_s() and check the result of the operation is None
Adding this should remediate:
if  s.normalize_s().is_some() {
    return Err(Signature::RecoveryError);
}

Closing, this was fixed in ethers and bumped here


Misc UI fixes

Update the IconButton button component so it is always square and has hover/focus/disabled styles
Created a new SegmentedControl component which is used in the SX Space editor and also the header modes selector
Convert the viewports mode default HTML components to use theme-ui/components
Disable the xray button when in code mode
Update the margin/padding segmented control to be auto-width, not full-width

Rad!


High Resolution Support for Video Conference Banner

ℹ Computer information

PowerToys version: 0.22.0
PowerToy Utility: Video Conference
Running PowerToys as Admin: Yes
Windows build number: [run "winver"] 19401.450

📝 Provide detailed reproduction steps (if any)

Use Video Conference in high resolution monitor

✔ Expected result
Show correctly
What is the expected result of the above steps?
❌ Actual result
Shown in very small size
What is the actual result of the above steps?
📷 Screenshots

Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form

duplicate of #6371


Athena: SQL Editor disregards selected active schema when executing query

System information:

Operating system (distribution) and version Ubuntu 20.04
DBeaver version 21.1.0
Additional extensions

Connection specification:

Database name and version Athena

Describe the problem you're observing:
SQL Editor runs script with default schema name despite choosing another as active
Steps to reproduce, if exist:

Chose a not default schema as active in SQL Editor
Run an SQL script without defining schema name select * from Table_name for table from active schema.

Expected: Result is shown in ResultSet.
Actual: Error is thrown.

Can be related to #12806

Duplicates #11196


Uh oh! I ran into an error while running this command. Please report the content of the attached file here or on the esmBot Support server:

error (1).txt

Duplicate of #77

thanks


Tag functionality

Just having a look at: https://github.com/felko/neuron-mode - would be great to add in some tag handling stuff such as add tag/s, maybe edit tags too.
Again, I could work on this if you want? Thoughts?
I think add tag would ask you to enter a tag, which would then add it to the yaml. Edit tags would jump you up to tags in the yaml. If the tags section in the yaml doesn't exist, both functions would add it in.

Yes, this is a good feature. I was thinking we should have some kind of tag management initially, but then forgot about it.
I think we could use the same gzz/gzi fzf-powered screen to insert tags based on tags that already exist.

yeah, something where you could do a search by tag would be on the list too. Will get going on it this week.

Got a work in progress here: https://github.com/fiatjaf/neuron.vim/pull/18

Have created a tag-support branch with my work on this in there. Think I will split it up into different issues so that you can get the functionality earlier as it is created vs all at once.

This has now been merged in as part of that latest merge: https://github.com/fiatjaf/neuron.vim/pull/34


MagoMi binary releases

It would be great if you can provide the MagoMI binary as direct download may under "Releases"

I've now added https://github.com/rainers/mago/releases/tag/1.0

Thank you so much


this bot still working

Ciao!

https://github.com/Serpic0/Downloader-bot
Hey Bro Please Add Heroku Deploy Support Or Render Or Any Other Platforms ! I need such one tg bot


Sets configuration

Ping @codefromthecrypt

Sorry I don't think I can put time to review PRs in this repo. I would personally recommend moving it to either a personal repo or tetratelabs, http-wasm doesn't seem to be in coraza's priorities to be honest.

Another suggestion is to focus on a proxy-wasm wrapper implementation for http-wasm. Fragmentation is bad, we've already gone through it with observability. I think for coraza, the best situation for now is to focus on coraza-proxy-wasm - if that module can be magically loaded in http-wasm then no problem. If not, it probably needs to be able the with abi tweaks to support it since interoperability is king in middleware.


Error in created hook: "TypeError: Cannot convert undefined or null to object"

When I load this on model using @click this error show in console.
<FormBuilderModal
        :active="openAddFormDialog"
        :app="app"
        @dialogClose="handleDialogClose"
        ref="formBuilderModal"
        />

<md-button class="md-primary md-icon-button" @click="openAddFormDialog = true">
          <md-icon>add</md-icon>
</md-button>

Hi friend,
Please provide the error on console, a full snippet of your component, where you are using the Vue Form Builder. Since the FormBuilderModal is not the Vue Form Builder' component.
For me, it looks like it's a problem from your internal project, not Vue Form Builder.

There has been a week but no more detail yet. I'll close this issue. Feel free to re-open it again with more information.


:do_not_litter: Removing unused views and JS.

We (well you!) are going to have a hell of a job on our hands when we merge this into Bens.


Add FromSymbol trait

draft
This is a draft for the library-part of a potential FromSymbol trait. Related to https://github.com/potassco/clingo_derive/issues/3
if #13 is changed an implementation of impl FromSymbol for &'static str could also be added, which I think could be useful.
ToDos

[x] Does this feature make sense?
[x] Check if error messages make sense

thank you for your contribution.
This looks good. I merge this into my current wip branch

My next step would probably be to try and create a derive macro for the trait if that makes sense :)

Sounds great!


fix: Fallback for Ledger when Indexer Service is Unavailable

Description

As a fallback when kitwallet indexer fails showed an input to enter an account id manually.

NOTE
This fallback has been added because yesterday kitwallet indexer (testnet) https://testnet-api.kitwallet.app/ and (mainnet) https://api.kitwallet.app/ added a restriction which caused our ledger inplementation to be unusable. We were seeing a 404 error when trying to find accounts linked to a publicKey.
Closes # (issue)

Checklist:

[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings

Type of change. This type of change is the main reason for the PR.

[x] FIX - a PR of this type patches a bug.
[ ] FEATURE - a PR of this type introduces a new feature.
[ ] BUILD - a PR of this type introduces build changes.
[ ] CI - a PR of this type introduces CI changes.
[ ] DOCS - a PR of this type introduces DOCS improvement.
[ ] STYLE - a PR of this type introduces style changes.
[ ] REFACTOR - a PR of this type introduces refactoring.
[ ] PERFORMANCE - a PR of this type introduces performance changes.
[ ] TEST - a PR of this type adds more tests.
[ ] CHORE - a PR introduces other changes than the specified above.

Breaking changes

[ ] BREAKING CHANGE - SPECIFY: _______
[x] NO BREAKING CHANGE - this PR doesn't contain any breaking changes and it's backwards compatible

Closing this PR as it will be addressed as part of this on https://github.com/near/wallet-selector/pull/369


detect cors Ajax requests

Q
A

Is bugfix?
✔

New feature?
❌

Breaks BC?
❌

Tests pass?
❌

Fixed issues
#17878

Cross domain requests contains Origin header, which is always differ from Request::hostInfo

Would that work for non-CORS fetch()?

Yes, because the old check of X-Requested-Withrequest remained in place as before.

But fetch doesn't send X-Requested-With...

Oh, yes, agree ..... checked just now.
fetch does not send any headers that may distinguish it request from ordinal non-ajax.
But ... at least we can detect cross domain requests by the difference between Origin and Request::hostInfo. It's already a little better than nothing at all :)

Added tests, merged. Thanks!


light.mqtt_json reference causing configuration errors

Running HA 0.84.3 on Centos 7, I'm seeing logged issues and reports of configuration errors regarding light.mqtt_json.
Note:  I do not have any such components configured in my system.
The associated log entry is:
2018-12-18 09:43:51 ERROR (Thread-10) [homeassistant.loader] Error loading homeassistant.components.light.mqtt_json. Make sure all dependencies are installed
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/homeassistant/loader.py", line 92, in get_component
module = importlib.import_module(path)
File "/usr/lib64/python3.5/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 985, in _gcd_import
File "", line 968, in _find_and_load
File "", line 957, in _find_and_load_unlocked
File "", line 673, in _load_unlocked
File "", line 697, in exec_module
File "", line 222, in _call_with_frames_removed
File "/usr/lib/python3.5/site-packages/homeassistant/components/light/mqtt_json.py", line 20, in
from homeassistant.components.light.mqtt import CONF_BRIGHTNESS_SCALE

Please read the breaking changes: https://www.home-assistant.io/blog/2018/12/12/release-84/#breaking-changes

And also make sure you're not using any custom components (fill out the issue template please, that was included there)

Reopen.
I am not using any MQTT light components as noted in the bug report.
This is a residual issue with your codebase
On 12/18/18, Otto Winter<EMAIL_ADDRESS>wrote:

And also make sure you're not using any custom components (fill out the
issue template please, that was included there)
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
https://github.com/home-assistant/home-assistant/issues/19434#issuecomment-448323499

--
If you want your mail flagged by the government
just use this phrase often:  purchase plastic explosives

Blech.  Confirmed... found one squirreled away that wasn't even active.


Inertia response bug

I un-skipped the tests in #62 to let the tests fail.. hoping we can figure it out
When I run the tests multiple times.. sometimes it passes sometimes it fails.. not sure why.

@dillingham what I found is, when you run a single test, it's working. But when you run all the tests in a single run it fails.
The reason behind this is, we are getting a wrapped response. Check the below image.

We are calling $resource::wrap in Controller.php's applyResource method. This set's a static variable $wrap in JsonResource.
The default value of $wrap is data, but in the previous tests, it's modified and then never got reset.
so we will need to come up with some solution where we can reset it after use. One good way is to call withoutWrapping. But we need to decide where.

Check my PR here: https://github.com/headlesslaravel/formations/pull/64

@mitulgolakiya awesome thank you! I was stumped on that for awhile 😆
Yes it makes sense to unwrap the resource in inertia responses
I haven't tested in blade at all yet in this project.. but we can revisit then


[Question]Update data without deletion

Hello, I load my data in chunks, because I don't want to keep entire collection in memory. The problem is that the database stores only the last chunk. I assume this is because whenever I do Update it replaces the collection. How can I insert more data into an existing collection?
This is the code I use:
public bool Add(T document)
        {
            using (var db = DbLite.GetDatabase())
            {
                var documents = db.GetCollection(typeof(T).Name);

                var bsonDoc = db.ToDocument(document);

                if (documents.FindById(document.Id) != null)
                    return documents.Update(db.ToDocument(document));

                documents.Insert(bsonDoc);
            }

            return true;
        }

Hi @fcin, try:
public bool Add(T document)
{
    using (var db = DbLite.GetDatabase())
    {
        return db.GetCollection<T>(typeof(T).Name).Upsert(document);
    }
}

Turns out I had 2.0.4 version, that's why I couldn't find Upsert method. Thank you. It certainly helped.
The only problem is that now I get NullReferenceException in checking if collection exists in other method This seems to be a very simple code, so I don't think I messed it up, Could you take a look at it?
public IEnumerable<T> GetAll()
        {
            using (var db = DbLite.GetDatabase())
            {
                if (!db.CollectionExists(typeof (T).Name)) // Throws NullReferenceException
                    return null;

                var documents = db.GetCollection(typeof(T).Name);
                return documents.FindAll().Select(x => (T)db.Mapper.ToObject(typeof(T), x)).ToList();
            }
        }

System.NullReferenceException was unhandled by user code
  HResult=-2147467261
  Message=Object reference not set to an instance of an object.
  Source=LiteDB
  StackTrace:
       at LiteDB.StreamExtensions.<>c__DisplayClass4_0.<TryLock>b__0()
       at LiteDB.FileHelper.TryExec(Action action, TimeSpan timeout)
       at LiteDB.StreamExtensions.TryLock(FileStream stream, Int64 position, Int64 length, TimeSpan timeout)
       at LiteDB.FileDiskService.Lock(LockState state, TimeSpan timeout)
       at LiteDB.LockService.LockShared()
       at LiteDB.LockService.Shared()
       at LiteDB.LiteEngine.GetCollectionNames()
       at LiteDB.LiteDatabase.CollectionExists(String name)
       at DrawMe.Core.Repositories.DmRepository`1.GetAll() in F:\Obrazki\C#\DrawMe\DrawMe\DrawMe.Core\Repositories\DmRepository.cs:line 50
       at DrawMe.Core.Repositories.CachedDmRepository`1.GetAll() in F:\Obrazki\C#\DrawMe\DrawMe\DrawMe.Core\Repositories\CachedDmRepository.cs:line 62
       at DrawMe.BasicDocumentExplorer.ViewModels.DocumentListExplorerViewModel.Update() in F:\Obrazki\C#\DrawMe\DrawMe\DrawMe.BasicDocumentExplorer\ViewModels\DocumentListExplorerViewModel.cs:line 49
       at DrawMe.BasicDocumentExplorer.ViewModels.DocumentListExplorerViewModel..ctor(IDmRepository`1 dmRepository, IEventAggregator eventAggregator, ILanguageManager langManager) in F:\Obrazki\C#\DrawMe\DrawMe\DrawMe.BasicDocumentExplorer\ViewModels\DocumentListExplorerViewModel.cs:line 44

InnerException:

Nevermind, I was disposing it, that's why I got NullReferenceException. This issue can be closed.


Add issue templates

As discussed on https://github.com/surrealdb/surrealdb.py/issues/39, it would be advantageous for the project to implement issue templates for the following categories: Bug Reports, Feature Requests, and Documentation.
I propose that the templates should be formatted similarly to the surrealdb repository and include additional information related to Python. This may include the version of Python, surrealdb.py, surrealdb, the operating system (e.g. Linux), and the installation source (pip or source).
Let me know your thoughts. Thank you. 😄

Closing this as the PR was merged


Update onboarding email templates

If only management plane is in scope then this would be the email to send.  The only change I made was to direct teams to go create release plans (without scheduling an Info meeting or attending onboarding).  Self-service is the end goal, so let’s try this out and see how it goes.  We will remove the “schedule info meeting” from the management plane only scenario and see if office hours is sufficient.  Today I do spend a significant amount of time helping management plane end to end for the new initial SDK scenarios.

Based on the information you provided when onboarding to the Azure SDK team, API details are  for this product.
Your onboarding record in Azure DevOps is: Triage - Release Planner Test Product
Next steps
•	If your product is in scope for APEX, then you should mark the “Lifecycle: Onboard with the Azure SDK team to determine API/SDK scope, ID = d0ac2647-8e12-4fd6-a7f2-69d9747c86b4”, launch criteria as complete and paste the link to the onboarding record in the requester’s notes. See guidance for submitting evidence for APEX signoffs - APEX launch readiness and signoffs (eng.ms)
•	Create a release plan and use it to complete work, ensure all requirements are met, and receive APEX signoff for new Azure REST APIs and SDK versions.  What is a release plan? (eng.ms)
•	Get familiar with the Azure SDK release process and changes in the APEX signoff process https://aka.ms/azsdkdocs
If you have questions, contact us by posting a question to our teams channel, email, or attending Azure SDK Onboarding office hours posted in our teams channel - https://aka.ms/azsdk/onboarding-channel
Your feedback matters to us, and we’d love to hear more about your experience using the Release Planner. Take a quick 2-minute survey to help us improve. Here is a link to the survey.
Regards
Azure SDK Onboarding PM team

Based on the information you provided when onboarding to the Azure SDK team, API details are unsure or data plane is in scope for this product.
Your onboarding record in Azure DevOps is: Triage - Release Planner Test Product
Next steps
•	Attend an Informational meeting with the Azure SDK team. If while you onboarded your team you didn’t get prompt to schedule a meeting, please schedule as soon as possible - Azure SDK informational meeting. During the information meeting we will validate the REST APIs in scope for your product/service, provide overview of the new improvements to our process and tooling, and help you create the appropriate release plan(s).
•	If your product is in scope for APEX, then you should mark the “Lifecycle: Onboard with the Azure SDK team to determine API/SDK scope, ID = d0ac2647-8e12-4fd6-a7f2-69d9747c86b4”, launch criteria as complete and paste the link to the onboarding record in the requester’s notes. See guidance for submitting evidence for APEX signoffs - APEX launch readiness and signoffs (eng.ms)
•	Get familiar with the Azure SDK release process and changes in the APEX signoff process https://aka.ms/azsdkdocs
If you have questions, contact us by posting a question to our teams channel, email, or attending Azure SDK Onboarding office hours posted in our teams channel - https://aka.ms/azsdk/onboarding-channel.
Your feedback matters to us, and we’d love to hear more about your experience using the Release Planner. Take a quick 2-minute survey to help us improve. Here is a link to the survey.
Regards
Azure SDK Onboarding PM team

Closing this issue. I created new email templates and provided links in the GitHub issue tracking the redesign of the onboarding feature. https://github.com/Azure/azure-sdk-tools/issues/7084


Added Inter UI, updated Readme with image samples

Also added image sample for Input Mono.

Merging Vintage Fonts Pack with IBM, AMI, and other fonts as well.


Apply shadow to layerSurfaces

Description
Currently there is no way to apply shadow to layerSurfaces, such as notifications or bars, would be nice to apply shadows to layerSurfaces or at least use something like layerrule = shadow, NAMESPACE

No. Layers should style themselves.

No. Layers should style themselves.

But shadows go behind and around the layer, they don't change the actual rendering of the layer itself.
You've already added the blurring layerrule which I would argue changes the layer's style more than shadows would.
It's also a huge pain reserving space for shadows to extend beyond the edge of a layer.
I understand why you say layers should style themselves, but I think this is one case where the compositor is justified in styling layers.

Blur is easier to get right than shadows. You know you have a transparent surface, you blur it. It works with rounded corners just fine because of the ignorealpha layerrule.
Shadows are harder to do, precisely because they're outside the layer.

It's also a huge pain reserving space for shadows to extend beyond the edge of a layer.

It's really not. All you need is
.window {
  margin: 5px 10px 15px;
  box-shadow: 0 3px 5px 1px rgba(0, 0, 0, 0.3);
}

Shadows are harder to do, precisely because they're outside the layer.

Forgive me, I haven't looked into the codebase, but why wouldn't the current shadow rendering functionality for windows work for other layers?

It's really not. All you need is
.window {
  margin: 5px 10px 15px;
  box-shadow: 0 3px 5px 1px rgba(0, 0, 0, 0.3);
}

The box shadow is cut off at the edge of the reserved space for the layer. It would be nice if the shadows could extend beyond this, which would be simple if it were done by the compositor.
For example, it would be nice if my bar had a shadow which could extend into the gaps_out area.

Forgive me, I haven't looked into the codebase, but why wouldn't the current shadow rendering functionality for windows work for other layers?

Layers can take various shapes visually, but all that Hyprland knows about them is that there's a rectangle WxH at X,Y on the screen. So simply adding shadows to the rectangle, when in reality the layer surface has rounded corners, won't look good.

The box shadow is cut off at the edge of the reserved space for the layer.

Which is why I've added the margin there. It has to be set on a box inside the layer, not the widget itself (talking in GTK terms).

Layers can take various shapes visually, but all that Hyprland knows about them is that there's a rectangle WxH at X,Y on the screen. So simply adding shadows to the rectangle, when in reality the layer surface has rounded corners, won't look good.

Ah makes sense, but could ignorezero not be used to recognise the shape of the layer, and generate shadows for it, as it is for not blurring rounded corners?

Which is why I've added the margin there. It has to be set on a box inside the layer, not the widget itself (talking in GTK terms).

Is there a way to make this margin overlap with gaps_out? As you said, Hyprland doesn't know the contents of the layer, so surely there's no way it can know about the margin

Ah makes sense, but could ignorezero not be used to recognise the shape of the layer, and generate shadows for it, as it is for not blurring rounded corners?

Perhaps, but it's up to Vaxry.

Is there a way to make this margin overlap with gaps_out? As you said, Hyprland doesn't know the contents of the layer, so surely there's no way it can know about the margin.

Yes, setting it manually to the same value.

Yes, setting it manually to the same value.

When I try this, they do not overlap, am I misunderstanding you? The layer has to reserve space for said margin, so how could it overlap with gaps_out?

In my case they do overlap. What I have in my config (that affects this) is the CSS snippet I sent above, and the anchor of the LS being top right.

Ah I believe we are referring to different kinds of layers, sorry for not being clearer.
I am talking about my statusbar, which has its own reserved area on the screen. I would like a shadow around this bar, which can be in the gaps_out area.

This is what I would like to achieve, but I don't think it's currently possible.
The two possible solutions I can think of to achieve this are:

Adding the ability to set individual values for the different sides of gaps_out, in this case the bar's margin and gaps_out(left) would be half of the standard gaps_out value.

This would be a bit hacky (but separate gaps could be useful in other cases).

Add shadows for layers.

It also makes sense for Hyprland to generate shadows globally for the sake of consistency.

make bar not exclusive and add reserved area in hl config manually.

Ah, I was unaware you could do that, thank you. Regardless, what do you think about the revised arguments for Hyprland handling layer shadows here and the proposed solution here?

Ah makes sense, but could ignorezero not be used to recognise the shape of the layer, and generating shadows for it, as it is for not blurring rounded corners?

not possible


make test fails with error

All tests succeed, until "Testing against Unix socket connection":
#44 Throughput:
        (1000x PING: 0.068s)
        (1000x LRANGE with 500 elements: 0.256s)
        (10000x PING (pipelined): 0.043s)
        (10000x LRANGE with 500 elements (pipelined): 13.764s)

Testing against Unix socket connection (/tmp/redis.sock):
Connection error: No such file or directory
make: *** [test] Error 1

Any reason for this?

/etc/redis/redis.conf doesn't exist on my machine, but /etc/redis/6379.conf exists. I un-commented the unixsocket lines there, but the test still fails.


sqlalchemy: PostgreSQL - type Text compatibility

PostgreSQL Text type doesn't accept length parameter: http://www.postgresql.org/docs/9.1/static/datatype-character.html
ProgrammingError: (psycopg2.ProgrammingError) type modifier is not allowed for type "text"
LINE 5:  value TEXT(35) NOT NULL,
                ^
[SQL: "\nCREATE TABLE bib00x (\n\tid SERIAL NOT NULL, \n\ttag VARCHAR(6) DEFAULT '' NOT NULL, \n\tvalue TEXT(35) NOT NULL, \n\tPRIMARY KEY (id)\n)\n\n"]

I tried to ask to zzzeek if exists a easy solution to this problem: https://bitbucket.org/zzzeek/sqlalchemy/issue/3370/text-and-length
In alternative, with @jirikuncar, we agree to resolve in the same way as for Integer

I found that also Integer give us problems if we use latest version of SQLAlchemy 1.0.0.
zzzeek told me about a solution (maybe applicable also to solve integer problem).
So, summarizing all problems:

[ ] Integer problem: Integer takes no parameters
[ ] Text don't take length (see for the solution)


Update to latest WebGPU

[x] Copy latest IDL spec.
[x] Apply some fixes to our IDL parser.
[x] Check diff of structs to see if there are more field renames.
[x] Run codegen and apply fixes in base.py and rs.py
[x] Update examples, utils and tests accordingly.
[ ] Update pygfx.
[ ] Review the changes in base.py and rs.py.

Notable changes:

GPUCanvasContext.get_swap_chain_preferred_format(): now takes an adapter instead of a device.
GPUAdapter.extensions: is now called features.
GPUAdapter.request_device(): the extensions and limit args are now non_guaranteed_features and non_guaranteed_limits.
Device.default_queue: is now called queue.
Device.create_compute_pipeline(): the compute_stage arg is now called compute.
Device.create_bind_group_layout() has changed the required structure of the layout enty dicts.
Device.create_render_pipeline() has changed a lot in terms of shape of input dicts. See new docs.
Texture.create_view(): args mip_level_count and array_layer_count are default None instead of 0.
GPUCommandEncoder.begin_render_pass(): the color_attachments and depth_stencil_attachment arguments have their attachment field renamed to view.
Flag TextureUsage has field OUTPUT_ATTACHMENT renamed to RENDER_ATTACHMENT.
Enum BindingType is split up in different enums for buffer, sampler, sampled texture and storage texture.
Enum BlendFactor has some of its field names changed.
Enum VertexFormat has its field names changed, e.g. ushort2 -> uint16x2.

Bijna!


Apply same fix to latest docs

All changed packages have been documented.

You can try these changes at https://cadlplayground.z22.web.core.windows.net/prs/3034/
Check the website changes at https://tspwebsitepr.z22.web.core.windows.net/prs/3034/


How to avoid panic in shutdown.rs ?

Hello,
I'm working to create a wallet-backend.
And I'm getting one test failure.
All other tests are passed.
I suppose it is required to call a shutdown code after I call Wallet::new().
How can I shut down my wallet safely?
test wallet::tests::test_get ... FAILED

failures:

---- wallet::tests::test_get stdout ----
thread 'wallet::tests::test_get' panicked at 'Cannot drop a runtime in a context where blocking is not allowed. This happens when a runtime is dropped from within an asynchronous context.', /home/monaka/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/runtime/blocking/shutdown.rs:51:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

My code is there: https://github.com/diamondhands-dev/shiro-backend/blob/03e4641da649e567484703eec30d9e34e1941632/src/wallet/mod.rs#L15-L36

I'm not sure but this issue may be caused by using blocking APIs in ConsignmentProxy.
I'm going to creating patches.

Calling shutdown should not be necessary after calling new. Sometimes tests can hang if an expect/unwrap/unreachable is encountered during test execution, but that should mean that something is wrong (code or test). Currently there is a known bug (https://github.com/RGB-WG/rgb-node/issues/208) that sometimes can cause the tests to hang.
We are still looking for a way to shutdown the rgb-node daemon process though. When that will be possible we could provide an rgb-lib method to shutdown.
About the blocking calls to the proxy, I don't think those are the issue here and moreover we need them to be blocking

I suppose this issue is not related to RGB-WG/rgb-node#208.
The root cause looks:

My app is built with Tokio asynchronous framework.
ConsignmentProxy uses reqwest::blocking module.

reqwest::blocking uses tokio::runtime.
https://github.com/seanmonstar/reqwest/blob/231b18f83572836c674404b33cb1ca8b35ca3e36/src/blocking/client.rs#L973
So my app and rgb-lib conflicts.
I'm inspecting how to fix the conflict with no API breakage.

Sorry, I've misread the logs, you're right about conflicts between reqwest blocking and tokio async. Have you tried this solution https://github.com/seanmonstar/reqwest/issues/1017#issuecomment-1073115693 ?

@zoedberg Thank you for your suggestion.
But unfortunately, it looks that spawn_blocking doesn't help this issue.
I attach a part of the error message.
error: generator cannot be sent between threads safely
   --> src/wallet/mod.rs:125:35
    |
125 |         let resp = spawn_blocking(move || test::call_service(&app, req)).await;
    |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ generator is not `Send`
    |
    = help: within `impl std::future::Future<Output = <impl actix_web::dev::Service<actix_http::requests::request::Request, Response = ServiceResponse, Error = actix_web::Error> as actix_web::dev::Service<actix_http::requests::request::Request>>::Response>`, the trait `Send` is not implemented for `<impl actix_web::dev::Service<actix_http::requests::request::Request, Response = ServiceResponse, Error = actix_web::Error> as actix_web::dev::Service<actix_http::requests::request::Request>>::Future`

@monaka Please give a look at https://github.com/RGB-Tools/rgb-lib/tree/reqwest_async , I've switched to using the async version of  reqwest and hence removed its blocking feature that should be causing your issue. If you can please confirm that this fixes your issue, I will then merge this in master.

@zoedberg Thank you for your kind support.
All my tests with https://github.com/RGB-Tools/rgb-lib/tree/reqwest_async are passed.
Please merge your patch to master.

merged in master

Let me re-open this.
I had the same issue in another code.
I attach a part of the log. (Guess it might be useless...).
```thread 'main' panicked at 'Cannot start a runtime from within a runtime. This happens because a function (like block_on) attempted to block the current thread while the thread is being used to drive asynchronous tasks.', /home/monaka/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/runtime/scheduler/current_thread.rs:516:26

My failed test calls `go_online()`.
I'm not sure but this case may be caused by dependent libs.

Just guess but it may be caused by this line. https://github.com/RGB-Tools/rgb-lib/blob/b0dc38c8a35c0d970c70722c8975f5a7526ff3fd/src/wallet/mod.rs#L1424

could you please provide the code to reproduce the issue? if you can't share the code, a minimal example is fine as well

@nicbus Thank you for your response. I pushed my code public.
https://github.com/diamondhands-dev/shiro-backend/blob/c794afe8af509088bb202e2410c6a67f51b45eed/src/wallet/go_online.rs#L54-L89

I found some thread::spawn in _go_online.
https://github.com/RGB-Tools/rgb-lib/blob/b0dc38c8a35c0d970c70722c8975f5a7526ff3fd/src/wallet/mod.rs#L1394
https://github.com/RGB-Tools/rgb-lib/blob/b0dc38c8a35c0d970c70722c8975f5a7526ff3fd/src/wallet/mod.rs#L1407
Just guess but I think they will conflict with Tokio.

How to reproduce:
rustup update
rm -fr /tmp/shiro-wallet
mkdir -p /tmp/shiro-wallet
git clone https://github.com/diamondhands-dev/shiro-backend.git -b pr-go_online-PUT-endpoint
cd shiro-backend/
docker ps -aq | xargs docker kill
docker system prune --force
test-mocks/start_services.sh
RUST_TEST_THREADS=1 BITCOIN_NETWORK_NAME=regtest cargo test

$ rustup -V
rustup 1.25.1 (bb60b1e89 2022-07-12)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.65.0 (897e37553 2022-11-02)`

I inspected this issue a little bit deeper.
I suppose it is not caused by std::thread::{sleep,spawn} but a nested block_on call.

Actix-web calls tokio::runtime::scheduler::current_thread::CurrentThread::block_on().
my async block calls rgb_lib::wallet::Wallet::go_online().
The proxy code in rgb-lib calls block_on() same as above.
The test failed by thread 'main' panicked at 'Cannot start a runtime from within a runtime.

Just a guess but this issue can be fixed by using tokio::task::spawn_blocking ?
I'm checking now.

Just a guess but this issue can be fixed by using tokio::task::spawn_blocking ?

Bingo.
It can be resolved by using spawn_blocking (in tokio::task or actix_web::rt::task).
@nicbus @zoedberg This issue can be resolved on my appication side.
I close this again. Thank you for your kind support.

@monaka I have a doubt that this issue could have been solved using spawn_blocking since the beginning. Could you please push your latest shiro-backend code (on the main branch tests still fail) so that I can do some experiments? I would be really happy if we could revert https://github.com/RGB-Tools/rgb-lib/commit/5211dd8ec43617c393f94e4df0dcb77cb2c7356b

@zoedberg Surely CI builds on shiro-backend (main branch) is failing.
But it is just caused by Codecov and all tests are passed now.
I agree it is reasonable to revert 5211dd8 even though some additional fixes are required to shiro-backend.


Go through the codebase and check all ignored tests, if they should be reenabled

Check all the ignored tests, and then investigate if they should be reenabled.

There seems to  be 8 ignored tests . I have checked, they are also ignored in latest sui.
Here is the summary:
8 results - 7 files

crates/iota/src/unit_tests/profiler_tests.rs:
    #[ignore]
    #[cfg(feature = "gas-profiler")]
    #[tokio::test(flavor = "multi_thread")]
    async fn test_profiler() {

crates/iota-benchmark/tests/simtest.rs:
     // TODO add this back once flakiness is resolved
     #[ignore]
     #[sim_test(config = "test_config()")]
     async fn test_simulated_load_pruning() {

crates/iota-core/src/checkpoints/checkpoint_executor/tests.rs:
    /// on correctly inserting transactions, especially the change_epoch tx. As it
    /// stands, this is better tested in existing reconfig simtests
    #[tokio::test]
    #[ignore]
    pub async fn test_checkpoint_executor_cross_epoch() {

    /// on correctly inserting transactions, especially the change_epoch tx. As it
    /// stands, this is better tested in existing reconfig simtests
    #[tokio::test]
    #[ignore]
    pub async fn test_reconfig_crash_recovery() {

crates/iota-e2e-tests/tests/traffic_control_tests.rs:
    #[ignore]
    #[sim_test]
    async fn test_traffic_sketch_with_slow_blocks() {

crates/iota-replay/src/tests.rs:
    /// Checks that replaying the latest tx on each testnet and mainnet does not
    /// fail
    #[ignore]
    #[tokio::test]
    async fn verify_latest_tx_replay_testnet_mainnet() {

crates/iota-source-validation-service/tests/tests.rs:
    #[allow(clippy::await_holding_lock)]
    #[tokio::test]
    #[ignore]
    async fn test_end_to_end() -> anyhow::Result<()> {

external-crates/move/crates/bytecode-verifier-tests/src/unit_tests/catch_unwind.rs:
    #[ignore]
    #[test]
    fn test_unwind() {

But, I think we need a more experienced eye to decide if they should be re-enabled.

FYI we were/are already investigating them here https://github.com/iotaledger/iota/issues/2045

Can this be in your scope? #4450

Closing this one since all of the tests I have found are already done in https://github.com/iotaledger/iota/issues/2045, except these two which are to be investigated in separate issues:
https://github.com/iotaledger/iota/issues/4448
	crates/iota-source-validation-service/tests/tests.rs:
		#[allow(clippy::await_holding_lock)]
		#[tokio::test]
		#[ignore]
		async fn test_end_to_end() -> anyhow::Result<()> {

https://github.com/iotaledger/iota/issues/4450
	crates/iota-e2e-tests/tests/traffic_control_tests.rs:
		#[ignore]
		#[sim_test]
		async fn test_traffic_sketch_with_slow_blocks() {


add wordpress.org active installs shield

i have made a badge for wordpress-active-installs.
this is a number which is rounded-down and then a + is added at the end to show that at least a number of sites are actively using this plugin.

Reopen of #680. Also related: #662.

Hi, thanks for this!
Would you be willing to add tests? We have a new framework: https://github.com/badges/shields/tree/master/service-tests
Also, index.html has been removed in master. When you merge master you can remove it.

I want it. @koter84 Please let me know if I can help.

@jhabdas, or anyone else, if you would like to adopt this PR, please feel free to do so. Just grab the branch, add more commits addressing the comments, and open a new PR referencing this one. Will close in one month if no one has done so.
@koter84 if you have time, of course feel free to address the comments! Would love to get this merged.

@paulmelnikow happy to drive this home. looks like we just need a few unit tests against the service framework using tape? should I just model discord?

@jhabdas Yup, looks like tests are the main thing. Discord would be a good one to model after, or CRAN in the service test readme.

Okay. Cloned repo down and rebased pull. Look like I'll just need a couple of services. One to check active installs and then a couple of boilerplate negative tests. Am I on the right track?

Yes, that should do it!

@paulmelnikow thanks for the pointer. I sent a message to the community channel on wordpress's slack server asking about an endpoint to get the active install count. if I don't hear back feel free to poke and I'll do some more digging

I saw your note in Slack group community-team. You might consider posting your question in another channel: meta.
I think I've seen that there is an api. But it will give you rounded numbers, not the raw data.

I'm assigning this to @jhabdas just to signal to myself and others that someone is working on this.

@tobifjellner thanks for the pointer! whatever matches what wordpress shows should be good. even npm doesn't provide raw numbers. I'll ask in meta to find out how to tap into that api.

@jhabdas any update?

@paulmelnikow I'm sorry—I'm swamped right now with cryptocurrency stuff. I've opened an issue against my WordPress plug-in to remember and come back to this later.

It's no problem at all! We're all volunteering our time.
If anyone else would like to tackle this in the meantime, feel free to do so. Just grab the branch, add more commits addressing the comments, and open a new PR referencing this one.

Closing for inactivity. If you're reading this and want this implemented, don't be discouraged. You can grab the commits from the pull request branch using git fetch origin pull/890/head:pr-890, address the comments, and reopen.


Switch from Poloniex to Bittrex because Polo still has problems.

We keep hearing about withdrawal delays / problems with Poloniex but not Bittrex.
griffin
[10:28 AM]
I was wondering if anyone else was having problems placing orders today?

[10:28]
My orders seem to simply sit and spin for 10+ minutes

[10:28]
When I refresh the screen, the order has not been placed.

[10:29]
I submitted a ticket

nessie
[10:44 AM]
I just made another withdrawal of a different coin, 6 days in a row so far. However my SC withdrawal from 10 days ago is still processing.

[10:46]
Other coins seem to be ok at the moment just SC

[10:48]
@griffin sometimes Polo had problems with the browser and the trollbox mods would tell you to clear the cache by visiting https://poloniex.com/clearLocalStorage.

griffin
[10:56 AM]
Oh!  Okay, thanks @nessie

[10:57]
Much appreciated

snakes
[11:41 AM]
There are issues which get solved *within an hour* (in my case - xmr withdrawal failed a few times, the support cancelled or re-sent the coins). So it depends on the complexity of the ticket.

siastan [11:57 AM]
@snakes "Withdraw 25K SC" is a simple ticket

snakes
[11:57 AM]
It should be, indeed

balla [11:06 PM]
joined #poloniex-issue

balla [11:07 PM]
Hi, wonder if anyone can help - I withdrew some Sia from Poloniex to Bittrex and they're not showing  up in my wallet even though the withdrawal is showing up as "Complete" on Poloniex. Anyone had similar problems?

zhukai7713 [11:13 PM]
joined #poloniex-issue

----- Today July 27th, 2017 -----
pineapple216 [10:35 AM]
I'm having the same problem. Did you submit a ticket already?

[9:46 AM]
@jarqwek A lot of people is having this problem with Poloniex these days. Most probably they haven't updated to 1.3 yet. Just wait longer, the rest of the people have reported they finally received the Tx after some hours. If 24 have elapsed and you don't see the Tx on any of the blockchain explorers, open a ticket in Poloniex

[9:47]
It is totally normal that every time you clik on "receive Siacoins" a new address is shown. A wallet is a collection of addresses

jarqwek [10:03 AM]
@aerrejon thank you so much.```

looks good to me


Expose -cookie-path as configuration parameter

Description
Exposes the Path attribute of the cookie as config parameter -cookie-path to allow be more flexible cookie configuration.

Motivation and Context
This is the PR for the issue #121

How Has This Been Tested?
Unit tests are passing.
Tested in our environments.

Checklist:

[x] My change requires a change to the documentation or CHANGELOG.
[x] I have updated the documentation/CHANGELOG accordingly.
[x] I have created a feature (non-master) branch for my PR.

Just one little thing before this gets merged, could you update the documentation to add this flag to the list of flags?

Good catch, thank you for that.
I've just pushed the updated documentation.


Change default port in the operator

The latest v0.0.9 release of OFO now has flagD v0.0.7 which has a new default port of 8013
https://github.com/open-feature/open-feature-operator/releases/tag/v0.0.9


TASK: Close should check if the current socket is null

If we call close (by ex. during a reconnect) but the streamSocket is null, we generate useless error for the user.

Coverage increased (+0.3%) to 88.525% when pulling 33a7e1730e4fc09bd543ad401306641e70dfb0d9 on dfeyer:patch-3 into d1fc1dace5e1037cd4d0d26b7b527c73231caaa3 on repejota:develop.

Coverage decreased (-1.1%) to 88.442% when pulling b08935125ddeaba63a80b157e8c1da29e5272abb on dfeyer:patch-3 into 82a139b7174ac1dddc3b1747f7cc4632f723d1b0 on repejota:develop.

Coverage decreased (-1.1%) to 88.442% when pulling b08935125ddeaba63a80b157e8c1da29e5272abb on dfeyer:patch-3 into 82a139b7174ac1dddc3b1747f7cc4632f723d1b0 on repejota:develop.

Coverage decreased (-1.1%) to 88.442% when pulling b08935125ddeaba63a80b157e8c1da29e5272abb on dfeyer:patch-3 into 82a139b7174ac1dddc3b1747f7cc4632f723d1b0 on repejota:develop.

Coverage decreased (-1.1%) to 88.442% when pulling b08935125ddeaba63a80b157e8c1da29e5272abb on dfeyer:patch-3 into 82a139b7174ac1dddc3b1747f7cc4632f723d1b0 on repejota:develop.

Thanks! 💪


false positives with used imports

If a package is imported and used in a struct, an unused import warning is still returned e.g.
package testpackage

import (
	"strings"
)

type TestStruct struct {
  x string
}

when run through gometalinter returns: "strings" imported but not used

"string" is a builtin type, not a package. The error is from the Go compiler.


Typo with FLASHLIGHT pin

The enum name for the light ping indicates port B instead C

Thanks for catching this. I'm on vacation now so won't be looking at Para much until next week.

Autocorrect...  PRs


update autograd.scipy.stats.multivariate_normal

The multivariate_normal file is outdated:

it uses defgrad instead of defvjp
we have a fast grad of np.linalg.cholesky (with general broadcasting support), but this code doesn't use it

Wow, I was in the process of debugging what might be wrong with multivariate_normal.pdf. Do you think that might be the reason of the following behaviour:
.. scipy/stats/_multivariate.py in _process_parameters() on line 382
mean = np.asarray(mean, dtype=float)

it breaks on this and similar lines when grad call passes ArrayNode to it.

Hmm asarray with an ArrayNode argument should work. Can you open a bug issue if you have a reproducible error?


Can we use this directive ngPopup to open multiple dialog with one directive only

Hi
i have been trying to use this directive to build a chat functionality and wanted to open multiple dialogs for different chat session for different users.
i added directive one time in to the HTML and also tried to add directive at run time
Please suggest how can we achieve this functionality using this directive.
Regards,
Hemant Jindal

Hi,
I am little bit confused what you trying to build, can you provide a plunker or jsFiddle?
if you trying to add multiple dialogs in one page, just simply add multiple ngPopup directives in page, and define different options for them,
if you trying to dynamic insert dialog into a page, you can use angular $compile service to link html template with a scope, then append the compiled template into DOM

Close this issue due to no further response..


Default error messages

I tried to use email and phone validations and found out that message option is required.
In docs it said that gem can be used like this:
validates :email, presence: true, email: true

In this case messages will be nil, so model would not be valid, but there will be no message with explanation why.
Can be fixed like this:
validates :email, presence: true, email: { message: 'not valid' }

It's kinda redundant in my opinion.
Mby we need to add default messages for validators?

The validators rely on ActiveModel validations, and will require one to use its i18n-based mechanism (config/locales/...). It's maybe a lack in the documentation by itself and will accept a PR fixing such a thing (at least, something that explains how one's supposed to format them, even if it's redundant with ActiveModel's documentation).
Thanks for reporting this, I hope this helps, WDYT?


fix(change_node_version): upgrade node version

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add workflow steps for building

And remove unnecessary action

Why can't we add npm i as a workflow step so we don't need to include node_modules in git history?

@kevin-david Also do you plan on bumping the release version? Since there are changed to the workflow inputs.

@Yakov5776

@kevin-david Also do you plan on bumping the release version? Since there are changes to the workflow inputs.

https://github.com/kevin-david/zipalign-sign-android-release/releases/tag/v2.0.0 is out - let me know if you see any issues.

@Yakov5776

@kevin-david Also do you plan on bumping the release version? Since there are changes to the workflow inputs.

https://github.com/kevin-david/zipalign-sign-android-release/releases/tag/v2.0.0 is out - let me know if you see any issues.

Thank you, will take a look at it tomorrow or later tonight.

@Yakov5776

@kevin-david Also do you plan on bumping the release version? Since there are changes to the workflow inputs.

https://github.com/kevin-david/zipalign-sign-android-release/releases/tag/v2.0.0 is out - let me know if you see any issues.

Either rename the tag to just v2 or fix the readme to point to v2.0.0 because it's supposed to be an exact tag.

Also you should probably do some testing because right off the bat it fails for resolving a module - not sure why.

I think https://github.com/kevin-david/zipalign-sign-android-release/pull/20 will prevent this kind of mistake in the future!


Clean up server-connector docs

There are jms and file server connector related docs at https://github.com/ballerinalang/ballerina/tree/master/docs/server-connectors.
Need to remove them since they are no longer maintained in this repo.

These docs are not there now.


Custom einsum

It would be good to have a custom einsum function in the code. Then one can invoke different versions of einsum on GPU by patching this function.

support by
https://github.com/pyscf/gpu4pyscf/pull/44


Add license and code of conduct files

Following community guideline.

 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.


[BEAM-12320] Raise timeout and add logging in PubsubTableProviderIT.

R: @TheNeuralBit

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

In my local tests, I'm always seeing at least a 30s gap between the check passing and the SUCCESS signal being received. So it's imaginable a signal could take more than 300s.

TBH I'm not sure why we use TestPubsubSignal instead of a regular PAssert here -- especially when signaling via pubsub seems like an additional source of flakiness.

Good point, I'm not sure either. AFAICT the only thing we need TestPubsubSignal for is to get a signal when the pipeline starts so we know when to start injecting input data. Perhaps we should replace all usages of signalSuccessWhen with a PAssert and get rid of it.


Some questions about use UR-FUNNY datasets

hello , may I have a question?
When I was running this code with the UR-FUNNY dataset, I found that the file 'word_list.pkl' was used during the loading of dataset. But I didn't see this file in the dataset I downloaded. So, Which file in the dataset is processed? look forward to your help in answering

OK，I will try it , thanks a lot

Hello, @xushang1995 , if you created this file, can you please share it?
Best,
Hadi.


Error setting up entry Smart Irrigation for smart_irrigation

What happened?
After update to  v2023.8.0-beta29 integration does not start
How to reproduce
Update from v2023.8.0-beta27 to v2023.8.0-beta29, restart HA
Relevant log output
Error setting up entry Smart Irrigation for smart_irrigation
Traceback (most recent call last):
  File "/private/var/homeassistant/homeassistant/lib/python3.11/site-packages/homeassistant/config_entries.py", line 388, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/homeassistant/.homeassistant/custom_components/smart_irrigation/__init__.py", line 62, in async_setup_entry
    store = await async_get_registry(hass)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/homeassistant/.homeassistant/custom_components/smart_irrigation/store.py", line 524, in async_get_registry
    return cast(SmartIrrigationStorage, await task)
                                        ^^^^^^^^^^
  File "/var/homeassistant/.homeassistant/custom_components/smart_irrigation/store.py", line 519, in _load_reg
    await registry.async_load()
  File "/var/homeassistant/.homeassistant/custom_components/smart_irrigation/store.py", line 191, in async_load
    maximum_duration = zone[ZONE_MAXIMUM_DURATION]
                       ~~~~^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'maximum_duration'

Which version are you running?
v2023.8.0-beta29
Diagnostics file

[X] I have attached a diagnostics file

Additional information
Diagnostics not available

@jeroenterheerdt forgot to put default values on start. Quick solution is to edit .storage/smart_irrigation.storage file and for each zone add "maximum_duration": 0 . Don't forget to add comma at the end of  lead_time

Ok, thanks, started now. But Calculate All call give me follow error:
Error handling request
Traceback (most recent call last):
File "/private/var/homeassistant/homeassistant/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/homeassistant/homeassistant/lib/python3.11/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/homeassistant/homeassistant/lib/python3.11/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/homeassistant/homeassistant/lib/python3.11/site-packages/homeassistant/components/http/security_filter.py", line 85, in security_filter_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/homeassistant/homeassistant/lib/python3.11/site-packages/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/homeassistant/homeassistant/lib/python3.11/site-packages/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/homeassistant/homeassistant/lib/python3.11/site-packages/homeassistant/components/http/ban.py", line 80, in ban_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/homeassistant/homeassistant/lib/python3.11/site-packages/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/homeassistant/homeassistant/lib/python3.11/site-packages/homeassistant/components/http/view.py", line 148, in handle
result = await handler(request, **request.match_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/homeassistant/homeassistant/lib/python3.11/site-packages/homeassistant/components/http/data_validator.py", line 72, in wrapper
result = await method(view, request, data, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/homeassistant/.homeassistant/custom_components/smart_irrigation/websockets.py", line 176, in post
await coordinator.async_update_zone_config(zone, data)
File "/var/homeassistant/.homeassistant/custom_components/smart_irrigation/init.py", line 732, in async_update_zone_config
await self._async_calculate_all()
File "/var/homeassistant/.homeassistant/custom_components/smart_irrigation/init.py", line 411, in _async_calculate_all
data = self.calculate_module(zone, mapping_weatherdata, precip_from_sensor=precip_from_sensor, sol_rad_from_sensor = sol_rad_from_sensor,et_data=et_from_sensor)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/homeassistant/.homeassistant/custom_components/smart_irrigation/init.py", line 474, in calculate_module
data[const.ZONE_BUCKET] = bucket+delta
~~^~
TypeError: unsupported operand type(s) for +: 'NoneType' and 'float'

And Duration is not calculated
config_entry-smart_irrigation-6e18a9ad38f8ac00ef4285672ad17839.json-3.txt

For me calculation don't throw any error, but I noticed that putting 0 in maximum_duration causes to Duration be always 0. Change it to null .

Understood now. Changed Maximum Duration to required value of 3600 s, reset and calculate buckets, no errors in logs. You may close this issue.

Yeah, maximum duration should have been null in the storage by default but it did not work unfortunately. I need to look at this once more to try and make it appear by default without giving it a value so the fix to edit the storage is not necessary

Why not 60min or 3600 s as default, for example?

Well yes, that is something I can do!

should be fixed in v2023.9.0-beta1


Codemods-scripts missing in 5.0.0-alpha.14

Describe the bug
Thanks for a great project! It looks like the latest alpha-release (5.0.0-alpha.14) are missing the codemod-scripts-folder
Your minimal, reproducible example

Steps to reproduce

Get the latest alpha release (5.0.0-alpha.14)
Run the following script

npx jscodeshift ./path/to/src/ \
  --extensions=ts,tsx \
  --parser=tsx \
<EMAIL_ADDRESS>

Recieve error that file is not found

Expected behavior
File is found :)
How often does this bug happen?
Every time
Screenshots or Videos

Platform

OS: Mac

Tanstack Query adapter
react-query
TanStack Query version
5.0.0-alpha.14
TypeScript version
v5.0.3
Additional context

@balazsmatepetro can you have a look please? I think codemods are their own package in the monorepo now, but we wouldn't want them to be their own package on npm. Can we include the codemod files in the framework distributions (react/vue/solid/svelte) so that the command mentioned in the migration guide works ?

Just want to mention that the codemode was missing already in version 5.0.0-alpha.12 (available in npm)

I will take a look. Thank you for mentioning it! 🙏

I'm seeing this fail w/ 5.0.0-alpha.21, though I wasn't able to find the file in my node modules, so I can't blame pnpm like I intended to xD

fixed with #5340
please note that the location of the codemods has slightly changed - I updated the migration guide


Firebird support

http://www.firebirdfaq.org/faq76/

@alexander-zubkov I am writing an article about the new features in SqlKata, do you mind referring you for the Firebird Compiler ?, If no please share with me your Twitter account. Thanks.


Add Hungarian dictionary

Not sure if this is the best source for words, but I needed something to be able to text faster on my dumb phone. I've been using it for the past week and it works great for me (I did have to clean up the word list a little bit to build an APK, so it's not the exact same one as the source).
Note that I've added letters with special characters in between the normal letters, e.g. aábc. This is intentional as it's how I remember old dumb phones working with the Hungarian alphabet and it's logical since we use a lot of these letters.

Thanks for contributing to the project!
The word list looks mostly OK. There some weird word such as: "fellépésfellépésfellépésfellépés", "uunndddooorrríííííttttttttttttóóóóóó" and "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa". I'll try to clean these before merging, because they don't make much sense.

Note that I've added letters with special characters in between the normal letters, e.g. aábc. This is intentional as it's how I remember old dumb phones working with the Hungarian alphabet and it's logical since we use a lot of these letters.

That's OK. Just have in mind the order will be preserved only in ABC mode. In Predictive mode, the letters that are used the most will be shifted to the beginning of the list.

@gyadam, I have cleaned up the word list. Unfortunately, I had to throw away about 30% of the words, but still it works quite well. I'll include Hungarian in the next release.

Awesome, thanks for cleaning it up and merging @sspanak!


Kunci Coin: fix decimal and SNS links

Please note: This repository is being rebuilt to accept the new volume of token additions and modifications. PR merges will be delayed.

I agree to not ping anybody on Discord/Twitter/email about this pull request. Instead I will inquire by posting a new comment in the pull request if needed.

PRs are reviewed in bulk and and can take up to two weeks to be merged.
This repository is managed using an auto merge action. Please ensure your PR has no deleted lines, and it will be merged.
Please provide the following information for your token.
Please include change to the src/tokens/solana.tokenlist.json file in the PR.
DON'T modify any other token on the list.
At minimum each entry should have

Token Address: 4CWQ6KS2ZhNQtWxAytY8AGGt8qgfNEK1dvnHMMQhQBpE
Token Name: Kunci Coin
Token Symbol: KUNCI
Logo: (logo should be uploaded under assets/mainnet//*.<png/svg>)
Link to the official homepage of token: https://kuncicoin.com/
Coingecko ID if available (https://www.coingecko.com/api/documentations/v3#/coins/get_coins__id_):

Auto merge requirements
Your pull request will be automatically merged if the following conditions are met:

Your pull request only adds new tokens to the list. Any modification to existing
tokens will require manual review to prevent unwanted modifications.

Your pull request does not touch unrelated code. In particular, reformatting changes to unrelated
code will cause the auto merge to reject your PR.

Any asset files added correspond to the token address you are adding. Asset files
must be PNG, JPG or SVG files.

Your change is valid JSON and conforms to the schema. If your change failed validation,
read the error message carefully and update your PR accordingly.

No other tokens shares the same name, symbol or address.

For example, this change would be rejected due to unrelated changes:

The bot runs every 60 minutes and bulk-merges all open pull requests to prevent conflicts.
This means that you need to wait up to 60 minutes for your pull request to be merged or reprocessed.

Sorry how to change decimal? I have mistaken at first register.


Change how List Blobs Perf Creates Blobs

Description
Another attempt at removing the need for Schedulers.boundedElastic() in AysncRestProxy. The change stems from using logging in Reactor Netty to find that the same EPoll thread, in Linux, creates all connections to the Storage account. This may be from blob creation happening sequentially, making it parallel forces multiple EPoll threads to create the connections as multiple requests with happen at the same time making it impossible for one thread to create all connections.
All SDK Contribution checklist:

[ ] The pull request does not introduce [breaking changes]
[ ] CHANGELOG is updated for new features, bug fixes or other significant changes.
[ ] I have read the contribution guidelines.

General Guidelines and Best Practices

[ ] Title of the pull request is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[ ] Pull request includes test coverage for the included changes.

API change check
API changes are not detected in this pull request.


move docs folder

Your .travis.yml file was asking for "docs/make.jl", and this location is the more standard anyway.

Nice, thanks


Backport: Update EKS regions (Mumbai, London, Paris)

Backport: https://github.com/rancher/rancher/issues/18114

Version: v2.2-head (6/27/19)
Validated new additional regions.
HTTP looks good, API looks good, compare to AWS console looks good, all checks passed. I was not able to fully test all regions as our account does not have access to them all (cannot fully test those) but the PR looks good to me.
Regions:

FYI:
ap-south-1 - mumbai
eu-west-2 - london
eu-west-3 - paris


Adding External API testing for users actions (task #5024)

Codecov Report

Merging #402 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #402   +/-   ##
=========================================
  Coverage     16.94%   16.94%
  Complexity      644      644
=========================================
  Files            53       53
  Lines          2231     2231
=========================================
  Hits            378      378
  Misses         1853     1853

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 5910446...7bf78cf. Read the comment docs.


Add support for ESLint package Travis deployment

Adding multiple deploy providers to the .travis.yml, one for each ESLint package.
When we push a new version of a package, we also push a new tag that is [packageName]-v[versionNumber]. We match on the package name to do the respective yarn publish for that package.

NOTE: This will need $NPM_TOKEN set in Travis enviornment variables.

Agreed. I didn't even wanna do this, but it became a necessity. I didn't want to add "set up lerna" as yet another dependency to get to the actual goal of updating ESLint in EDS & core.
I think lerna/bolt is the logical next step. Thanks!


⚠ Bofrost.fr has degraded performance

In 576b53a, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 3144 ms

Resolved: Bofrost.fr performance has improved in 1df3d50 after 6 minutes.


Fix code examples for Send SMS and MMS

Fix issue #10

Seems like you have rolled back the readme.md for a previous version of the SDK (1.1.2).
Feel free to kiil off this PR or use it when you move back to 1.1.3.


Would be nice to add products an order editView

Hi huge work!!
I don't have angular skills to get it done by my self.
Adding products to Order editView.

No, I don't want to.


cat2.yml actions using gconftool only when: rhel6stig_xwindows_required

I suggest to enable them whenever based on oscap auditing. I could mitigate findings using these:

name: 'SV-50440r3_rule'
command: gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /apps/gnome-screensaver/mode blank-only
name: 'V-38629 Medium  The graphical desktop environment must set the idle timeout to no more than 15 minutes'
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type int --set /apps/gnome-screensaver/idle_delay 15
name: 'V-38630 Medium  The graphical desktop environment must automatically lock after 15 minutes of inactivity and the system must require user to re-authenticate to unlock the environment'
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type bool --set /apps/gnome-screensaver/idle_activation_enabled true
name: 'V-38638 Medium  The graphical desktop environment must have automatic lock enabled'
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type bool --set /apps/gnome-screensaver/lock_enabled true

Fixed by #108


fix: properly handle trailing / in more routes

#1890 fixed the bug
but after that, I've noticed inconsistent router behavior under the following condition:
...
<Router>
    <Routes>
        <Route path="*"            view=|| { "A" } />

        <Route path="/"            view=|| { "0" } />
        <Route path="/test"        view=|| { "1" } />
        <Route path="/test/test"   view=|| { "2" } />
    </Routes>
</Router>
...

(sorry for the wall of table, but i cant think of any better way to express this)
O: correct
X: incorrect

URL
View
Correct

/
0
O

//
A
O

/////
A
O

/test
1
O

/test/
1
O

/test//
1
X (this should be A)

/test///
A
O

//test
1
O

///test
1
O

////test
A
X (this should be 1)

/test/////test
A
X (this should be 2)

///test///test
A
X (this should be 2)

and there are many more cases...
I just tweaked some of your fixes which I think causing this issue.
Now everything matches correctly and works as I expected.
Let me know if something i changed is wrong

Thanks for the more systematic testing and the fix! This looks great.


Multiple fetch handlers sample

@addyosmani (@jakearchibald as an FYI): This example illustrates the best practices for registering multiple fetch handlers within a service worker, including an explanation of what happens if none of the registered handlers calls event.respondWith() and a warning against doing anything asynchronous before calling event.respondWith().
There's a live version at https://rawgit.com/jeffposnick/samples/multiple-handlers/service-worker/multiple-handlers/index.html

Implementation LGTM. Feel free to merge once this has been rebased against master.


I want to add vim-autosurround

WHAT
I wanna add this.
Plug 'vim-autosurround'

vim-autocurround is not good...i will do not use it.


Can't start mysql-server 5.7

Unable to start mysql service after install
Your Windows build number: 14971.1000
sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libaio1 libcgi-fast-perl libcgi-pm-perl libencode-locale-perl libevent-core-2.0-5 libfcgi-perl libhtml-parser-perl
libhtml-tagset-perl libhtml-template-perl libhttp-date-perl libhttp-message-perl libio-html-perl liblwp-mediatypes-perl
libtimedate-perl liburi-perl mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server-5.7 mysql-server-core-5.7
Suggested packages:
libdata-dump-perl libipc-sharedcache-perl libwww-perl mailx tinyca
The following NEW packages will be installed:
libaio1 libcgi-fast-perl libcgi-pm-perl libencode-locale-perl libevent-core-2.0-5 libfcgi-perl libhtml-parser-perl
libhtml-tagset-perl libhtml-template-perl libhttp-date-perl libhttp-message-perl libio-html-perl liblwp-mediatypes-perl
libtimedate-perl liburi-perl mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server mysql-server-5.7
mysql-server-core-5.7
0 upgraded, 21 newly installed, 0 to remove and 85 not upgraded.
Need to get 18.8 MB of archives.
After this operation, 162 MB of additional disk space will be used.
Do you want to continue?
Selecting previously unselected package libevent-core-2.0-5:amd64.
(Reading database ... 26165 files and directories currently installed.)
Preparing to unpack .../libevent-core-2.0-5_2.0.21-stable-2_amd64.deb ...
Unpacking libevent-core-2.0-5:amd64 (2.0.21-stable-2) ...
Preparing to unpack .../mysql-common_5.7.16-0ubuntu<IP_ADDRESS>_all.deb ...
Unpacking mysql-common (5.7.16-0ubuntu<IP_ADDRESS>) over (5.7.16-0ubuntu<IP_ADDRESS>) ...
Preparing to unpack .../libaio1_0.3.110-2_amd64.deb ...
Unpacking libaio1:amd64 (0.3.110-2) over (0.3.110-2) ...
Preparing to unpack .../mysql-client-core-5.7_5.7.16-0ubuntu<IP_ADDRESS>_amd64.deb ...
Unpacking mysql-client-core-5.7 (5.7.16-0ubuntu<IP_ADDRESS>) over (5.7.16-0ubuntu<IP_ADDRESS>) ...
Preparing to unpack .../mysql-client-5.7_5.7.16-0ubuntu<IP_ADDRESS>_amd64.deb ...
Unpacking mysql-client-5.7 (5.7.16-0ubuntu<IP_ADDRESS>) over (5.7.16-0ubuntu<IP_ADDRESS>) ...
Selecting previously unselected package mysql-server-core-5.7.
Preparing to unpack .../mysql-server-core-5.7_5.7.16-0ubuntu<IP_ADDRESS>_amd64.deb ...
Unpacking mysql-server-core-5.7 (5.7.16-0ubuntu<IP_ADDRESS>) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up mysql-common (5.7.16-0ubuntu<IP_ADDRESS>) ...
Selecting previously unselected package mysql-server-5.7.
(Reading database ... 26269 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.7_5.7.16-0ubuntu<IP_ADDRESS>_amd64.deb ...
Unpacking mysql-server-5.7 (5.7.16-0ubuntu<IP_ADDRESS>) ...
Selecting previously unselected package libhtml-tagset-perl.
Preparing to unpack .../libhtml-tagset-perl_3.20-2_all.deb ...
Unpacking libhtml-tagset-perl (3.20-2) ...
Selecting previously unselected package liburi-perl.
Preparing to unpack .../liburi-perl_1.71-1_all.deb ...
Unpacking liburi-perl (1.71-1) ...
Selecting previously unselected package libhtml-parser-perl.
Preparing to unpack .../libhtml-parser-perl_3.72-1_amd64.deb ...
Unpacking libhtml-parser-perl (3.72-1) ...
Selecting previously unselected package libcgi-pm-perl.
Preparing to unpack .../libcgi-pm-perl_4.26-1_all.deb ...
Unpacking libcgi-pm-perl (4.26-1) ...
Selecting previously unselected package libfcgi-perl.
Preparing to unpack .../libfcgi-perl_0.77-1build1_amd64.deb ...
Unpacking libfcgi-perl (0.77-1build1) ...
Selecting previously unselected package libcgi-fast-perl.
Preparing to unpack .../libcgi-fast-perl_1%3a2.10-1_all.deb ...
Unpacking libcgi-fast-perl (1:2.10-1) ...
Selecting previously unselected package libencode-locale-perl.
Preparing to unpack .../libencode-locale-perl_1.05-1_all.deb ...
Unpacking libencode-locale-perl (1.05-1) ...
Selecting previously unselected package libhtml-template-perl.
Preparing to unpack .../libhtml-template-perl_2.95-2_all.deb ...
Unpacking libhtml-template-perl (2.95-2) ...
Selecting previously unselected package libtimedate-perl.
Preparing to unpack .../libtimedate-perl_2.3000-2_all.deb ...
Unpacking libtimedate-perl (2.3000-2) ...
Selecting previously unselected package libhttp-date-perl.
Preparing to unpack .../libhttp-date-perl_6.02-1_all.deb ...
Unpacking libhttp-date-perl (6.02-1) ...
Selecting previously unselected package libio-html-perl.
Preparing to unpack .../libio-html-perl_1.001-1_all.deb ...
Unpacking libio-html-perl (1.001-1) ...
Selecting previously unselected package liblwp-mediatypes-perl.
Preparing to unpack .../liblwp-mediatypes-perl_6.02-1_all.deb ...
Unpacking liblwp-mediatypes-perl (6.02-1) ...
Selecting previously unselected package libhttp-message-perl.
Preparing to unpack .../libhttp-message-perl_6.11-1_all.deb ...
Unpacking libhttp-message-perl (6.11-1) ...
Selecting previously unselected package mysql-server.
Preparing to unpack .../mysql-server_5.7.16-0ubuntu<IP_ADDRESS>_all.deb ...
Unpacking mysql-server (5.7.16-0ubuntu<IP_ADDRESS>) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (229-4ubuntu8) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libevent-core-2.0-5:amd64 (2.0.21-stable-2) ...
Setting up libaio1:amd64 (0.3.110-2) ...
Setting up mysql-client-core-5.7 (5.7.16-0ubuntu<IP_ADDRESS>) ...
Setting up mysql-client-5.7 (5.7.16-0ubuntu<IP_ADDRESS>) ...
Setting up mysql-server-core-5.7 (5.7.16-0ubuntu<IP_ADDRESS>) ...
Setting up mysql-server-5.7 (5.7.16-0ubuntu<IP_ADDRESS>) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of stop.
update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Renaming removed key_buffer and myisam-recover options (if present)
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Setting up libhtml-tagset-perl (3.20-2) ...
Setting up liburi-perl (1.71-1) ...
Setting up libhtml-parser-perl (3.72-1) ...
Setting up libcgi-pm-perl (4.26-1) ...
Setting up libfcgi-perl (0.77-1build1) ...
Setting up libcgi-fast-perl (1:2.10-1) ...
Setting up libencode-locale-perl (1.05-1) ...
Setting up libhtml-template-perl (2.95-2) ...
Setting up libtimedate-perl (2.3000-2) ...
Setting up libhttp-date-perl (6.02-1) ...
Setting up libio-html-perl (1.001-1) ...
Setting up liblwp-mediatypes-perl (6.02-1) ...
Setting up libhttp-message-perl (6.11-1) ...
Setting up mysql-server (5.7.16-0ubuntu<IP_ADDRESS>) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for systemd (229-4ubuntu8) ...
Processing triggers for ureadahead (0.100.0-19) ...
mysql -u root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
sudo service mysql start

Starting MySQL database server mysqld
No directory, logging in with HOME=/

Strace of the failing command: massive and looping

Required packages and commands to install: sudo apt-get install msyql-server

See our contributing instructions for assistance.

Can you please share the strace traces? I just tried sudo service MySQL start on my build and it works

It works for me as well on 14971. mysql -u root -p gets me to the msql> prompt.

@thomsuey -- the output that you have pasted above shows you starting the MySQL service after you attempt to connect to it.  Just to be sure -- you can't connect to MySQL until after you have started it; could you confirm that you've tried in that order?

Had to 'sudo usermod -d /var/lib/mysql/ mysql'
Also happened to have a conflicting 3306 with an older installed mysql version.


Iterate keys of object when used with for...in loop

This allows for...in loops to work with {} or Object.create(null).
I added isObject and isEmpty for cleaner if statements. I can remove those if you prefer.

Coverage decreased (-0.07%) to 98.815% when pulling 2a16800305a075ff76ea3a6c9b9ce6d4c5fdcd48 on aleclarson:object-for-loop into ed20fe60720b69e5afb57d3a0e478e2ea417f352 on harttle:master.

I added isPlainObject to src/util/underscore.js and removed isEmpty in favor of just simplifying the if statement.
{} and Object.create(null) with no keys are accounted for, since they are converted to arrays.

Coverage decreased (-0.08%) to 98.81% when pulling 12ee674365dfcb91c8d24e54456ff827219bf0b4 on aleclarson:object-for-loop into 9f82aec5693b6f15ce07ee9549525749399d1b1d on harttle:master.

Coverage decreased (-0.08%) to 98.81% when pulling fb52c864b1b87617e15aa6493f9d7a68771003d1 on aleclarson:object-for-loop into 9f82aec5693b6f15ce07ee9549525749399d1b1d on harttle:master.

Coverage decreased (-0.08%) to 98.81% when pulling fb52c864b1b87617e15aa6493f9d7a68771003d1 on aleclarson:object-for-loop into 9f82aec5693b6f15ce07ee9549525749399d1b1d on harttle:master.

I've merged your commits and added test cases. Behaviors related to empty and non-empty strings will be compliant with the ruby version.
This feature is released as 1.9.0. Thank you to lead this feature.


pull request for e2e test at 12/21/2016 01:56:23

:white_check_mark: Validation status: passed
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.


Mark workspace as safe in all actions

Summary

Use Cases

Addresses automation failures like: https://github.com/paketo-buildpacks/full-builder/runs/6011835387?check_suite_focus=true
Checklist

[ ] I have viewed, signed, and submitted the Contributor License Agreement.
[ ] I have linked issue(s) that this PR should close using keywords or the Github UI (See docs)
[ ] I have added an integration test, if necessary.
[ ] I have reviewed the styleguide for guidance on my code quality.
[ ] I'm happy with the commit history on this PR (I have rebased/squashed as needed).

@fg-j I just missed 'em when I did a grep. I can add them now. Thanks!!

@paketo-buildpacks/tooling-maintainers I can't approve this bc I own the PR.


Awesomenify visualizations

What is the expected enhancement?
Make visualizations more appealing.
To do:

[ ] city_plot should be viewed from higher up, and not be green.
[ ] plot_state grid lines should be behind the bars (i.e. use zorder) (
[ ] Perhaps use grey backgrounds for figures.
[ ]  Use a unified color scheme for plots
[ ] Add figsize as possible input to options.

Related issues: #1246

For the city plots, this is what I have so far (continuing with my example plot from #1246):

I've been playing with the angle to make it look like it's higher up, for example:

@nonhermitian what do you think about that.

Is there a reason to use city plots as a visualization tool? I've never used them myself & tend to find them hard to read in talks.

Two 2-dimensional plots strike me as better. Especially if people are going to be using these functions to produce figures for papers/talks.
One suggestion: the plots should use a diverging colormap, with the zero point of the colormap set to zero.

@nonhermitian and @mtreinish could we make sure whatever we do gets shown in the notebook https://github.com/Qiskit/qiskit-tutorial/pull/388.
As I agree the plots need work.
I would also add that the Bloch sphere should be next two each other and the same is true for the qsphere.

@jaygambetta for the bloch sphere I think that I already did that in #1229 But, not for the qsphere, I can add that in a follow up PR easily enough.

ok. When it is merged we should run the tutorial notebook again an update.

@jaygambetta @mtreinish can we change the options['width'] and options['height'] to just options['figsize'] to be inline with what mpl and everyone else is using?

Also why do we have the show kwarg?  We are returning a mpl figure, so the show should just be the usual call.

The height and width things are there because that's what was used for the interactive plots. The same with the options dicts as a concept. I don't like that interface at all, but I figured it was better to make it non-breaking and just do it slightly weird.

As for show() and filename() they're there mostly because the previous use case for these functions didn't return a Figure and instead would actually just call show() internally return nothing (unless you passed in a filename). I think a lot of people who use these just want to output it or save it and not deal with the figure object.

@nonhermitian should we close this now that #1359 has landed?

Sure


Call to showLockScreenWithAnimation method on Change passcode screen doesn't display lock screen

I needed to add a screen locking by timeout (user inactivity). So I added a timer which calls showLockScreenWithAnimation method after user inactive due to timeout duration.
It works except Change Passcode screen when it's not modal.
Steps to reproduce in Demo application:

change _changePasscode method of LTHDemoViewController.m class to

- (void)_changePasscode {
[self showLockViewForChangingPasscode];

[NSTimer scheduledTimerWithTimeInterval:10.0
                                 target:self
                               selector:@selector(showLockViewForTestingPasscode)
                               userInfo:nil
                                repeats:NO];

}

open Demo application;
turn off Touch ID;
press Change button;
wait for 10 seconds;

Actual result: Change passcode screen is gone and you redirected to the main screen but without prompting of entering a passcode.
If TouchID is enabled you will see an 'Unlock using Touch ID' popup but you can press "Cancel" button and lock screen is not displayed.
It is not reproduced if Change passcode screen is modal.

Hey,
Hmm, this isn't really a bug. The problem is that the change controller is popped, and a new controller is being pushed basically at the same time. It's a bit tricky to handle this scenario from within, because while _cancelAndDismissMe does call dismiss or pop, it does so animated, and there's no proper way to check if we're closing because a new instance wants to be presented (and we'd call without animation), or we're simply closing (and we'd call with animation).
I think you have an edge case that you need to handle by yourself, and what I'd suggest is, for example, to call an intermediate showLockscreenAfterInactivity which would pop the current controller and present a new one (and you decided if there's an animation, and when, or not).

@DimaSlk Have you solved the issue? Can I close this one?

Yes, you can close it. I found a way how to avoid it.

Thank you, glad you found a solution!


Web map "Artillery Deployment Location Analysis" references external basemap

Web map "Artillery Deployment Location Analysis" (id: 6be4ecc1f7cf4e0ca12cd195c0ac142a) is referencing an ArcGIS online basemap http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer.
If the operation layers of a web map reference a service on the dev server then the basemap should be a service on the dev server also.

Fixed. Changed basemap to NSEC.

Verified. Closing issue.


AI Model Image Size

I don't quite understand what the "AI Model Image Size" fully means, I've tried doing some research but no luck, could I please have a brief explanation?

I don't quite understand what the "AI Model Image Size" fully means, I've tried doing some research but no luck, could I please have a brief explanation?

The AI Model Image Size is actually passed on to the input variable "imgsz" of the YOLO model. The imgsz in turn refers to the size of the image which will be passed on to the model for inference. So lets say this parameter is set to 640 (which is actually default), now lets say the resolution of the screen capture of the gameplay is 1080p (just an example). So before the image is passed to the model to detect for enemies it will actually be resized to 640x640 resolution (AI Model Image Size). This makes the inference a lot quicker than directly passing the 1080p image.
Here is the description from ultralytics official documentation:

I hope this helps you out!


improve per-connection accounting of sent bytes

Instead of increasing the count when data is sent, and decreasing it
when data is marked as lost, only increase the count based on how
streams' maximum offsets change, so we don't need to decrease the count
on data loss.

This probably needs more tests (e.g. for the data lost case), but I haven't been able to write one so far.

After some more testing, it turns out that this doesn't work properly, so for the time being I made #96 to at least workaround the crash found during interop testing, but we'll need to debug this further.


CenterOS8 is not supported

[root@localhost ~]# bash openvpn-install.sh
CentOS Linux 9 or higher is required to use this installer.
This version of CentOS Linux is too old and unsupported.

CentOS 8 reached its end of life years ago.